@wildo-ai/saas-specifications 1.1.5 → 1.1.7

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 (677) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +14 -13
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
  6. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
  8. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
  10. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/index.js +34 -13
  12. package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
  14. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
  15. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
  16. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
  17. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
  18. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
  19. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
  21. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
  23. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
  25. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
  27. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
  29. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  30. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
  31. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
  33. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
  36. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  37. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
  38. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  40. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
  41. package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
  42. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
  43. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
  44. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
  46. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  51. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
  52. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  53. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
  54. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  55. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
  56. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  57. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
  58. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  59. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
  60. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
  61. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
  62. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
  63. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
  64. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
  65. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
  66. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
  67. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
  68. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
  69. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
  70. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
  71. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
  72. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
  73. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
  74. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
  75. package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
  76. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  77. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
  78. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  79. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
  80. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  81. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
  82. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
  84. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
  92. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  95. package/dist/esm/_core/index.d.ts +3 -0
  96. package/dist/esm/_core/index.d.ts.map +1 -1
  97. package/dist/esm/_core/index.js +3 -0
  98. package/dist/esm/_core/index.js.map +1 -1
  99. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
  100. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
  102. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  103. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  104. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
  105. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  106. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
  107. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
  109. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  110. package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
  111. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  112. package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
  113. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  114. package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
  115. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  116. package/dist/esm/_core/market/market-category.schemas.js +2 -2
  117. package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
  118. package/dist/esm/_core/market/market-channel.schemas.js +2 -2
  119. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  120. package/dist/esm/_core/market/market-gain.schemas.js +2 -2
  121. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  122. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-icp.schemas.js +2 -2
  124. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  125. package/dist/esm/_core/market/market-job.schemas.js +2 -2
  126. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  127. package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
  128. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  129. package/dist/esm/_core/market/market-objection.schemas.js +2 -2
  130. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  131. package/dist/esm/_core/market/market-pain.schemas.js +2 -2
  132. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  133. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-persona.schemas.js +2 -2
  135. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  136. package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
  137. package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
  138. package/dist/esm/_core/market/market-proof.schemas.js +2 -2
  139. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  140. package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
  141. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-references.schemas.js +6 -0
  143. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  144. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
  145. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
  146. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  147. package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
  148. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market.family-aspects.js +1 -1
  150. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  151. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
  153. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  154. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
  155. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
  157. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
  159. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  160. package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
  161. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/resource-specification.schemas.js +110 -24
  163. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
  165. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
  166. package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
  167. package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
  168. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
  169. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
  171. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  172. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
  173. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  174. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
  175. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  176. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
  177. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  178. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
  179. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  180. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
  181. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
  182. package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
  183. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
  184. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
  185. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
  186. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
  187. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
  188. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
  189. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  190. package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
  191. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
  193. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
  194. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
  195. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
  196. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
  197. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
  199. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  200. package/dist/esm/application-creation.exports.d.ts +7 -0
  201. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  202. package/dist/esm/application-creation.exports.js +7 -0
  203. package/dist/esm/application-creation.exports.js.map +1 -1
  204. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
  205. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
  206. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
  207. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
  208. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  209. package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
  210. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  211. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
  212. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  213. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
  214. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  215. package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
  216. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  217. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  218. package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
  219. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  220. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
  221. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
  223. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  225. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
  226. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  227. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
  228. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
  230. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  231. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
  233. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
  235. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
  237. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  238. package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
  239. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  240. package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
  241. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program.schemas.js +107 -14
  243. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  244. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  245. package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
  246. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  247. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  248. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
  249. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  250. package/dist/esm/assurance/governed-document-release.d.ts +7 -0
  251. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  252. package/dist/esm/assurance/governed-document-release.js +11 -2
  253. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  254. package/dist/esm/companion-exports.d.ts +6 -5
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
  258. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  259. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
  266. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
  269. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  271. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
  272. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  276. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
  277. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
  281. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
  283. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
  285. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
  287. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
  292. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
  295. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  297. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
  299. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
  302. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
  305. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
  308. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
  310. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  311. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
  312. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
  314. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
  316. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
  319. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
  321. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
  323. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  324. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
  325. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
  327. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
  330. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
  332. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
  334. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
  337. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
  339. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  340. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
  341. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  342. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
  343. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  344. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
  345. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  346. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
  347. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  348. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
  349. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
  351. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  352. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
  353. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  354. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
  355. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  356. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  357. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  358. package/dist/esm/engine/compliance/resources/index.js +1 -0
  359. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  360. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
  361. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
  362. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
  363. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
  364. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
  365. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
  366. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
  367. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
  368. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  369. package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
  370. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  371. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/errors/error-messages.specification.js +69 -0
  373. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  374. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
  375. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  376. package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
  377. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
  379. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
  380. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
  382. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  383. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
  386. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
  389. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
  391. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  392. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
  393. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
  394. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
  395. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
  396. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
  397. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
  399. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
  402. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
  404. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
  405. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
  406. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
  407. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
  408. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
  409. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
  410. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
  411. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
  412. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
  414. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
  419. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
  420. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
  421. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
  422. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
  423. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
  424. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
  430. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  433. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
  434. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  435. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  436. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  437. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
  438. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
  439. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
  440. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
  441. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  442. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
  444. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  445. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
  447. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
  448. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
  449. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  450. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  451. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/index.js +3 -0
  453. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  454. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
  455. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  456. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
  457. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
  458. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
  459. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
  460. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
  462. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  464. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  465. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
  467. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  468. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
  470. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  473. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
  474. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
  475. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
  476. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
  477. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
  478. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
  479. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
  480. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
  481. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
  482. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
  483. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
  484. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
  485. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
  486. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
  487. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
  488. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
  489. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
  490. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
  492. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
  494. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
  495. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
  496. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
  497. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
  499. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  500. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
  501. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
  502. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
  503. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
  504. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
  505. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
  507. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +2 -2
  509. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  510. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
  512. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
  514. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
  516. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
  518. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
  520. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
  521. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
  522. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
  523. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
  524. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
  525. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
  526. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
  528. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
  530. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  531. package/dist/esm/engine/notifications/resources/index.js +1 -0
  532. package/dist/esm/engine/notifications/resources/index.js.map +1 -1
  533. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
  534. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
  536. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  537. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
  539. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  540. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
  541. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
  543. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
  545. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
  546. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
  547. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
  548. package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
  549. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  550. package/dist/esm/engine/notifications/system-emails/index.js +4 -2
  551. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  552. package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
  553. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  554. package/dist/esm/engine/organizations/resources/index.js +2 -0
  555. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  556. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
  557. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
  559. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  560. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
  561. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  562. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
  563. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  564. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
  565. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
  567. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  568. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
  570. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
  573. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  574. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
  575. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
  577. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  578. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
  579. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
  580. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
  581. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
  582. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
  583. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
  584. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
  585. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
  586. package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
  587. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  588. package/dist/esm/engine/providers/github.provider.specification.js +1 -1
  589. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  590. package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
  591. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
  592. package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
  593. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
  594. package/dist/esm/engine/providers/google.provider.specification.js +1 -1
  595. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  596. package/dist/esm/engine/providers/index.d.ts +2 -0
  597. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  598. package/dist/esm/engine/providers/index.js +5 -1
  599. package/dist/esm/engine/providers/index.js.map +1 -1
  600. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
  602. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  603. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
  604. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
  605. package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
  606. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
  607. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
  609. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  610. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
  612. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  613. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
  614. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
  615. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
  616. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
  617. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
  618. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
  619. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
  620. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
  621. package/dist/esm/engine/roles/index.d.ts +13 -5
  622. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  623. package/dist/esm/engine/roles/index.js +19 -6
  624. package/dist/esm/engine/roles/index.js.map +1 -1
  625. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
  626. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
  628. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
  629. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
  630. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
  632. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
  633. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
  634. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
  635. package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
  636. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
  637. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  638. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  639. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  640. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  641. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
  642. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  643. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
  644. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  645. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  646. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  647. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
  648. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  649. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
  650. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  651. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
  652. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  653. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
  654. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
  656. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  657. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
  658. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  659. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
  660. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
  662. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  663. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
  664. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  665. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
  667. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  668. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
  669. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
  671. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  672. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  673. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
  674. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  675. package/dist/tsconfig.build.tsbuildinfo +1 -1
  676. package/package.json +8 -8
  677. package/dist/assurance/external-framework-mapping.json +0 -1228
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recaptcha.provider.specification.js","sourceRoot":"","sources":["../../../../../src/engine/providers/recaptcha.provider.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,mCAAmC,CAC/E,EAAE,GAAG,EAAE,WAAW,EAAE,EACpB,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,iJAAiJ;IAC1J,YAAY,EAAE,gVAAgV;IAC9V,OAAO,EAAE,8OAA8O;IACvP,SAAS,EAAE,uSAAuS;IAClT,mBAAmB,EAAE;QACnB,2IAA2I;QAC3I,sGAAsG;KACvG;IACD,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,MAAM,EAAE;IAC3C,MAAM,EAAE,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,SAAS,EAAE,EAAE;IACb,oBAAoB,EAAE,CAAC,kBAAkB,CAAC;IAC1C,kBAAkB,EAAE,EAAE;IACtB,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,QAAQ,CAAC;QAC7B,qBAAqB,EAAE,wBAAwB;KAChD;IACD,eAAe,EAAE;QACf,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,kGAAkG,EAAE;KAC3L;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,yBAAyB;QAC1C,gBAAgB,EAAE,2BAA2B,CAAC,0BAA0B,CAAC;KAC1E;CACF,CAAC,CACH,CAAC","sourcesContent":["import { ProviderDeploymentModel, ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport { providerSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n backendProviderModuleSymbol,\n ENGINE_BACKEND_PROVIDERS_PACKAGE,\n ENGINE_PROVIDER_OWNER_REF,\n} from './_engine-provider-shared';\n\n/**\n * Engine provider specification for `recaptcha` (#1735). The FACTS mirror the backend module; the browser half\n * (the website module that mints tokens) carries the same ref, capability and compliance profile.\n */\nexport const recaptchaProviderSpecification = providerSpecificationFromDefinition(\n { ref: 'recaptcha' },\n () => ({\n purpose: 'Tell a person from a bot on the public website\\'s contact form: the browser half mints a reCAPTCHA v3 token, this half verifies it with Google.',\n businessRole: 'MAIN captcha for every public operation that declares a submission challenge, the engine\\'s own contact form first. Declared on the backend, it makes those operations require an answer from a caller who is not signed in: a verified reCAPTCHA token from a visitor who consented, or the engine\\'s own proof of work from one who did not.',\n useWhen: 'Use to protect the website contact form, and any public operation of your own that declares `submissionChallenge`, against automated submissions, alongside the website module that loads reCAPTCHA once a visitor grants analytics consent.',\n avoidWhen: 'Avoid treating it as consent-free: Google reCAPTCHA also serves Google\\'s own analysis, so it starts only on the visitor\\'s consent; a visitor who declines answers the proof of work instead. Avoid putting the SECRET key in the website\\'s public configuration — only the site key belongs there.',\n businessConstraints: [\n 'The site key (website) and the secret key (backend) must belong to the same reCAPTCHA v3 key pair, registered for the website\\'s domains.',\n 'Google is a recipient of visitors\\' interaction data; the compliance lane records it as a processor.',\n ],\n packageName: ENGINE_BACKEND_PROVIDERS_PACKAGE,\n tier: ProviderTier.MAIN,\n vendor: 'recaptcha',\n origin: { kind: ProviderOriginKind.ENGINE },\n facets: ['backend', 'frontend-website'],\n protocols: [],\n providerCapabilities: ['FRONTEND_CAPTCHA'],\n engineCapabilities: [],\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['global'],\n vendorLegalEntityName: 'Google Ireland Limited',\n },\n secretsContract: [\n { slug: 'secretKey', envVarName: 'RECAPTCHA_SECRET_KEY', required: true, description: 'The reCAPTCHA v3 SECRET key, shared only between this backend and Google, used to verify tokens.' },\n ],\n codeHandling: {\n definitionOwner: ENGINE_PROVIDER_OWNER_REF,\n definitionSymbol: backendProviderModuleSymbol('RecaptchaBackendProvider'),\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resend.provider.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/providers/resend.provider.specification.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,mEAmCvC,CAAC"}
1
+ {"version":3,"file":"resend.provider.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/providers/resend.provider.specification.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,mEAqCvC,CAAC"}
@@ -29,7 +29,9 @@ export const resendProviderSpecification = providerSpecificationFromDefinition({
29
29
  complianceProfile: {
30
30
  deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
31
31
  processingRegions: ['us-east-1'],
32
- vendorLegalEntityName: 'Resend, Inc.',
32
+ // Not the brand: Resend's DPA names the contracting company "Plus Five Five, Inc." (read 2026-09-25).
33
+ // spec-cite: https://resend.com/legal/dpa
34
+ vendorLegalEntityName: 'Plus Five Five, Inc.',
33
35
  },
34
36
  secretsContract: [
35
37
  { slug: 'apiKey', envVarName: 'RESEND_API_KEY', required: true, description: 'Resend API credential for email delivery.' },
@@ -1 +1 @@
1
- {"version":3,"file":"resend.provider.specification.js","sourceRoot":"","sources":["../../../../../src/engine/providers/resend.provider.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpH,OAAO,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mCAAmC,CAC5E,EAAE,GAAG,EAAE,QAAQ,EAAE,EACjB,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,wJAAwJ;IACjK,YAAY,EAAE,2FAA2F;IACzG,OAAO,EAAE,yFAAyF;IAClG,SAAS,EAAE,sFAAsF;IACjG,mBAAmB,EAAE;QACnB,uFAAuF;KACxF;IACD,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,MAAM,EAAE;IAC3C,MAAM,EAAE,CAAC,SAAS,CAAC;IACnB,SAAS,EAAE,CAAC,gBAAgB,CAAC;IAC7B,oBAAoB,EAAE,CAAC,qBAAqB,CAAC;IAC7C,kBAAkB,EAAE,CAAC,gBAAgB,CAAC,mBAAmB,CAAC;IAC1D,2FAA2F;IAC3F,0EAA0E;IAC1E,yFAAyF;IACzF,iCAAiC;IACjC,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,CAAC;QAChC,qBAAqB,EAAE,cAAc;KACtC;IACD,eAAe,EAAE;QACf,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,2CAA2C,EAAE;KAC3H;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,yBAAyB;QAC1C,gBAAgB,EAAE,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;CACF,CAAC,CACH,CAAC","sourcesContent":["import { EngineCapability, ProviderDeploymentModel, ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport { providerSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n backendProviderModuleSymbol,\n ENGINE_BACKEND_PROVIDERS_PACKAGE,\n ENGINE_PROVIDER_OWNER_REF,\n} from './_engine-provider-shared';\n\n/**\n * Engine provider specification for `resend` (#328). The FACTS (protocols, capabilities,\n * engine slots, secrets) mirror the backend module and are reconciled against it by\n * `engine-provider-specifications.reconciliation.test.ts`; the PROSE is the business meaning.\n */\nexport const resendProviderSpecification = providerSpecificationFromDefinition(\n { ref: 'resend' },\n () => ({\n purpose: 'Deliver the transactional email every engine flow sends — invitations, address verification, password reset, magic links — through Resend\\'s HTTP API.',\n businessRole: 'Primary MAIN email sink; the provider a fresh application is expected to configure first.',\n useWhen: 'Use as the transactional email provider in every environment that reaches real inboxes.',\n avoidWhen: 'Avoid for marketing campaigns; Resend is wired for transactional delivery only here.',\n businessConstraints: [\n 'A verified sending domain must exist in the Resend account before invitations go out.',\n ],\n packageName: ENGINE_BACKEND_PROVIDERS_PACKAGE,\n tier: ProviderTier.MAIN,\n vendor: 'resend',\n origin: { kind: ProviderOriginKind.ENGINE },\n facets: ['backend'],\n protocols: ['EMAIL_PROVIDER'],\n providerCapabilities: ['EMAIL_TRANSACTIONAL'],\n engineCapabilities: [EngineCapability.EMAIL_TRANSACTIONAL],\n // Restated from the module and reconciled against it. REQUIRED here because the compliance\n // lane reads SPECIFICATIONS, not backend modules — which is what had left\n // `appAssertedProcessingRegions` unable to compare an operator's declared region against\n // what the vendor offers (#308).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1'],\n vendorLegalEntityName: 'Resend, Inc.',\n },\n secretsContract: [\n { slug: 'apiKey', envVarName: 'RESEND_API_KEY', required: true, description: 'Resend API credential for email delivery.' },\n ],\n codeHandling: {\n definitionOwner: ENGINE_PROVIDER_OWNER_REF,\n definitionSymbol: backendProviderModuleSymbol('ResendBackendProvider'),\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"resend.provider.specification.js","sourceRoot":"","sources":["../../../../../src/engine/providers/resend.provider.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpH,OAAO,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mCAAmC,CAC5E,EAAE,GAAG,EAAE,QAAQ,EAAE,EACjB,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,wJAAwJ;IACjK,YAAY,EAAE,2FAA2F;IACzG,OAAO,EAAE,yFAAyF;IAClG,SAAS,EAAE,sFAAsF;IACjG,mBAAmB,EAAE;QACnB,uFAAuF;KACxF;IACD,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,MAAM,EAAE;IAC3C,MAAM,EAAE,CAAC,SAAS,CAAC;IACnB,SAAS,EAAE,CAAC,gBAAgB,CAAC;IAC7B,oBAAoB,EAAE,CAAC,qBAAqB,CAAC;IAC7C,kBAAkB,EAAE,CAAC,gBAAgB,CAAC,mBAAmB,CAAC;IAC1D,2FAA2F;IAC3F,0EAA0E;IAC1E,yFAAyF;IACzF,iCAAiC;IACjC,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,CAAC;QAChC,sGAAsG;QACtG,0CAA0C;QAC1C,qBAAqB,EAAE,sBAAsB;KAC9C;IACD,eAAe,EAAE;QACf,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,2CAA2C,EAAE;KAC3H;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,yBAAyB;QAC1C,gBAAgB,EAAE,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;CACF,CAAC,CACH,CAAC","sourcesContent":["import { EngineCapability, ProviderDeploymentModel, ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport { providerSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n backendProviderModuleSymbol,\n ENGINE_BACKEND_PROVIDERS_PACKAGE,\n ENGINE_PROVIDER_OWNER_REF,\n} from './_engine-provider-shared';\n\n/**\n * Engine provider specification for `resend` (#328). The FACTS (protocols, capabilities,\n * engine slots, secrets) mirror the backend module and are reconciled against it by\n * `engine-provider-specifications.reconciliation.test.ts`; the PROSE is the business meaning.\n */\nexport const resendProviderSpecification = providerSpecificationFromDefinition(\n { ref: 'resend' },\n () => ({\n purpose: 'Deliver the transactional email every engine flow sends — invitations, address verification, password reset, magic links — through Resend\\'s HTTP API.',\n businessRole: 'Primary MAIN email sink; the provider a fresh application is expected to configure first.',\n useWhen: 'Use as the transactional email provider in every environment that reaches real inboxes.',\n avoidWhen: 'Avoid for marketing campaigns; Resend is wired for transactional delivery only here.',\n businessConstraints: [\n 'A verified sending domain must exist in the Resend account before invitations go out.',\n ],\n packageName: ENGINE_BACKEND_PROVIDERS_PACKAGE,\n tier: ProviderTier.MAIN,\n vendor: 'resend',\n origin: { kind: ProviderOriginKind.ENGINE },\n facets: ['backend'],\n protocols: ['EMAIL_PROVIDER'],\n providerCapabilities: ['EMAIL_TRANSACTIONAL'],\n engineCapabilities: [EngineCapability.EMAIL_TRANSACTIONAL],\n // Restated from the module and reconciled against it. REQUIRED here because the compliance\n // lane reads SPECIFICATIONS, not backend modules — which is what had left\n // `appAssertedProcessingRegions` unable to compare an operator's declared region against\n // what the vendor offers (#308).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1'],\n // Not the brand: Resend's DPA names the contracting company \"Plus Five Five, Inc.\" (read 2026-09-25).\n // spec-cite: https://resend.com/legal/dpa\n vendorLegalEntityName: 'Plus Five Five, Inc.',\n },\n secretsContract: [\n { slug: 'apiKey', envVarName: 'RESEND_API_KEY', required: true, description: 'Resend API credential for email delivery.' },\n ],\n codeHandling: {\n definitionOwner: ENGINE_PROVIDER_OWNER_REF,\n definitionSymbol: backendProviderModuleSymbol('ResendBackendProvider'),\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"stripe.provider.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/providers/stripe.provider.specification.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,mEAqCvC,CAAC"}
1
+ {"version":3,"file":"stripe.provider.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/providers/stripe.provider.specification.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,mEAsCvC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { EngineCapability, ProviderDeploymentModel, ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';
1
+ import { EngineCapability, ProviderDeploymentModel, ProviderOriginKind, ProviderTier, HttpApiErasureStance } from '@wildo-ai/saas-models';
2
2
  import { providerSpecificationFromDefinition } from '../../_core/index.js';
3
3
  import { backendProviderModuleSymbol, ENGINE_BACKEND_PROVIDERS_PACKAGE, ENGINE_PROVIDER_OWNER_REF, } from './_engine-provider-shared.js';
4
4
  /**
@@ -19,7 +19,7 @@ export const stripeProviderSpecification = providerSpecificationFromDefinition({
19
19
  tier: ProviderTier.MAIN,
20
20
  vendor: 'stripe',
21
21
  origin: { kind: ProviderOriginKind.ENGINE },
22
- facets: ['backend', 'frontend-app'],
22
+ facets: ['backend'],
23
23
  protocols: ['BILLING_PROVIDER', 'WEBHOOK_ORIGINATOR'],
24
24
  providerCapabilities: ['BILLING'],
25
25
  engineCapabilities: [EngineCapability.BILLING],
@@ -31,6 +31,7 @@ export const stripeProviderSpecification = providerSpecificationFromDefinition({
31
31
  deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],
32
32
  processingRegions: ['us-east-1', 'eu-west-1'],
33
33
  vendorLegalEntityName: 'Stripe, Inc.',
34
+ subjectErasure: { stance: HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION },
34
35
  },
35
36
  secretsContract: [
36
37
  { slug: 'secretKey', envVarName: 'STRIPE_SECRET_KEY', required: true, description: 'Stripe secret key for Billing API calls.' },
@@ -1 +1 @@
1
- {"version":3,"file":"stripe.provider.specification.js","sourceRoot":"","sources":["../../../../../src/engine/providers/stripe.provider.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpH,OAAO,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mCAAmC,CAC5E,EAAE,GAAG,EAAE,QAAQ,EAAE,EACjB,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,mJAAmJ;IAC5J,YAAY,EAAE,2FAA2F;IACzG,OAAO,EAAE,qEAAqE;IAC9E,SAAS,EAAE,qGAAqG;IAChH,mBAAmB,EAAE;QACnB,0HAA0H;QAC1H,gHAAgH;KACjH;IACD,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,MAAM,EAAE;IAC3C,MAAM,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,SAAS,EAAE,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IACrD,oBAAoB,EAAE,CAAC,SAAS,CAAC;IACjC,kBAAkB,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;IAC9C,2FAA2F;IAC3F,0EAA0E;IAC1E,yFAAyF;IACzF,iCAAiC;IACjC,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;QAC7C,qBAAqB,EAAE,cAAc;KACtC;IACD,eAAe,EAAE;QACf,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE;QAC/H,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,uBAAuB,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,+DAA+D,EAAE;KAC7J;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,yBAAyB;QAC1C,gBAAgB,EAAE,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;CACF,CAAC,CACH,CAAC","sourcesContent":["import { EngineCapability, ProviderDeploymentModel, ProviderOriginKind, ProviderTier } from '@wildo-ai/saas-models';\nimport { providerSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n backendProviderModuleSymbol,\n ENGINE_BACKEND_PROVIDERS_PACKAGE,\n ENGINE_PROVIDER_OWNER_REF,\n} from './_engine-provider-shared';\n\n/**\n * Engine provider specification for `stripe` (#328). The FACTS (protocols, capabilities,\n * engine slots, secrets) mirror the backend module and are reconciled against it by\n * `engine-provider-specifications.reconciliation.test.ts`; the PROSE is the business meaning.\n */\nexport const stripeProviderSpecification = providerSpecificationFromDefinition(\n { ref: 'stripe' },\n () => ({\n purpose: 'Bill organizations: product catalogue sync, checkout, subscriptions, usage metering and the webhooks that keep billing state in step with Stripe.',\n businessRole: 'The MAIN billing provider; the only one the engine\\'s billing services instantiate today.',\n useWhen: 'Use whenever the application enables the BILLING engine capability.',\n avoidWhen: 'Avoid enabling BILLING without it — the billing bootstrap fails closed with no resolvable provider.',\n businessConstraints: [\n 'The webhook secret must match the endpoint registered in the Stripe dashboard, or every delivery is refused as unsigned.',\n 'Stripe is a third-party processor of customer billing identity; the compliance lane records it as a recipient.',\n ],\n packageName: ENGINE_BACKEND_PROVIDERS_PACKAGE,\n tier: ProviderTier.MAIN,\n vendor: 'stripe',\n origin: { kind: ProviderOriginKind.ENGINE },\n facets: ['backend', 'frontend-app'],\n protocols: ['BILLING_PROVIDER', 'WEBHOOK_ORIGINATOR'],\n providerCapabilities: ['BILLING'],\n engineCapabilities: [EngineCapability.BILLING],\n // Restated from the module and reconciled against it. REQUIRED here because the compliance\n // lane reads SPECIFICATIONS, not backend modules — which is what had left\n // `appAssertedProcessingRegions` unable to compare an operator's declared region against\n // what the vendor offers (#308).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Stripe, Inc.',\n },\n secretsContract: [\n { slug: 'secretKey', envVarName: 'STRIPE_SECRET_KEY', required: true, description: 'Stripe secret key for Billing API calls.' },\n { slug: 'webhookSecret', envVarName: 'STRIPE_WEBHOOK_SECRET', required: true, description: 'Stripe webhook signing secret for Billing event verification.' },\n ],\n codeHandling: {\n definitionOwner: ENGINE_PROVIDER_OWNER_REF,\n definitionSymbol: backendProviderModuleSymbol('StripeBackendProvider'),\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"stripe.provider.specification.js","sourceRoot":"","sources":["../../../../../src/engine/providers/stripe.provider.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1I,OAAO,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mCAAmC,CAC5E,EAAE,GAAG,EAAE,QAAQ,EAAE,EACjB,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,mJAAmJ;IAC5J,YAAY,EAAE,2FAA2F;IACzG,OAAO,EAAE,qEAAqE;IAC9E,SAAS,EAAE,qGAAqG;IAChH,mBAAmB,EAAE;QACnB,0HAA0H;QAC1H,gHAAgH;KACjH;IACD,WAAW,EAAE,gCAAgC;IAC7C,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,MAAM,EAAE;IAC3C,MAAM,EAAE,CAAC,SAAS,CAAC;IACnB,SAAS,EAAE,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IACrD,oBAAoB,EAAE,CAAC,SAAS,CAAC;IACjC,kBAAkB,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;IAC9C,2FAA2F;IAC3F,0EAA0E;IAC1E,yFAAyF;IACzF,iCAAiC;IACjC,iBAAiB,EAAE;QACjB,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,aAAa,CAAC;QACzD,iBAAiB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;QAC7C,qBAAqB,EAAE,cAAc;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,oBAAoB,CAAC,0BAA0B,EAAE;KAC5E;IACD,eAAe,EAAE;QACf,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE;QAC/H,EAAE,IAAI,EAAE,eAAe,EAAE,UAAU,EAAE,uBAAuB,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,+DAA+D,EAAE;KAC7J;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,yBAAyB;QAC1C,gBAAgB,EAAE,2BAA2B,CAAC,uBAAuB,CAAC;KACvE;CACF,CAAC,CACH,CAAC","sourcesContent":["import { EngineCapability, ProviderDeploymentModel, ProviderOriginKind, ProviderTier, HttpApiErasureStance } from '@wildo-ai/saas-models';\nimport { providerSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n backendProviderModuleSymbol,\n ENGINE_BACKEND_PROVIDERS_PACKAGE,\n ENGINE_PROVIDER_OWNER_REF,\n} from './_engine-provider-shared';\n\n/**\n * Engine provider specification for `stripe` (#328). The FACTS (protocols, capabilities,\n * engine slots, secrets) mirror the backend module and are reconciled against it by\n * `engine-provider-specifications.reconciliation.test.ts`; the PROSE is the business meaning.\n */\nexport const stripeProviderSpecification = providerSpecificationFromDefinition(\n { ref: 'stripe' },\n () => ({\n purpose: 'Bill organizations: product catalogue sync, checkout, subscriptions, usage metering and the webhooks that keep billing state in step with Stripe.',\n businessRole: 'The MAIN billing provider; the only one the engine\\'s billing services instantiate today.',\n useWhen: 'Use whenever the application enables the BILLING engine capability.',\n avoidWhen: 'Avoid enabling BILLING without it — the billing bootstrap fails closed with no resolvable provider.',\n businessConstraints: [\n 'The webhook secret must match the endpoint registered in the Stripe dashboard, or every delivery is refused as unsigned.',\n 'Stripe is a third-party processor of customer billing identity; the compliance lane records it as a recipient.',\n ],\n packageName: ENGINE_BACKEND_PROVIDERS_PACKAGE,\n tier: ProviderTier.MAIN,\n vendor: 'stripe',\n origin: { kind: ProviderOriginKind.ENGINE },\n facets: ['backend'],\n protocols: ['BILLING_PROVIDER', 'WEBHOOK_ORIGINATOR'],\n providerCapabilities: ['BILLING'],\n engineCapabilities: [EngineCapability.BILLING],\n // Restated from the module and reconciled against it. REQUIRED here because the compliance\n // lane reads SPECIFICATIONS, not backend modules — which is what had left\n // `appAssertedProcessingRegions` unable to compare an operator's declared region against\n // what the vendor offers (#308).\n complianceProfile: {\n deploymentModels: [ProviderDeploymentModel.VENDOR_HOSTED],\n processingRegions: ['us-east-1', 'eu-west-1'],\n vendorLegalEntityName: 'Stripe, Inc.',\n subjectErasure: { stance: HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION },\n },\n secretsContract: [\n { slug: 'secretKey', envVarName: 'STRIPE_SECRET_KEY', required: true, description: 'Stripe secret key for Billing API calls.' },\n { slug: 'webhookSecret', envVarName: 'STRIPE_WEBHOOK_SECRET', required: true, description: 'Stripe webhook signing secret for Billing event verification.' },\n ],\n codeHandling: {\n definitionOwner: ENGINE_PROVIDER_OWNER_REF,\n definitionSymbol: backendProviderModuleSymbol('StripeBackendProvider'),\n },\n }),\n);\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const appBillingProviderEventsRoleSpecification: import("../../_core").RoleSpecificationConfig;
2
+ //# sourceMappingURL=app-billing-provider-events.role.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-billing-provider-events.role.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/roles/app-billing-provider-events.role.specification.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,yCAAyC,+DAwBrD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { CORE_APP_ROLES } from '@wildo-ai/saas-models';
2
+ import { appLevelRoleSpecificationFromDefinition } from '../../_core/index.js';
3
+ import { DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL, ENGINE_OWNER_REF, coreAppRoleIdentifierDeclaration, defaultAppRoleDefinitionCollectionEntry, } from './_engine-role-shared.js';
4
+ export const appBillingProviderEventsRoleSpecification = appLevelRoleSpecificationFromDefinition({ role: CORE_APP_ROLES.APP_BILLING_PROVIDER_EVENTS }, () => ({
5
+ purpose: 'The authority the engine uses to record what the billing provider reports about one person\'s personal billing account: subscriptions, invoices, credit purchases and a deleted customer.',
6
+ businessRole: 'Not a person\'s role. Held only by the engine\'s billing handler while it runs one verified provider event that belongs to one person. Inherits nothing.',
7
+ authorityBoundary: 'On that one person\'s own billing records only: read the billing account, subscriptions, invoice references and credit pools; create and update subscriptions and invoice references; create a credit pool and add purchased credits; deactivate the billing account. No other person\'s records and no access to the product catalog.',
8
+ useWhen: 'Never assigned. The engine applies it to billing provider events for personal billing automatically.',
9
+ avoidWhen: 'Do not give it to a user, an API key or an OAuth client: the application refuses it on every one of them.',
10
+ businessConstraints: [
11
+ 'Refused on every principal except the engine\'s billing handler running a provider event.',
12
+ 'Reaches only the records of the person the event belongs to, checked on every read and write.',
13
+ ],
14
+ codeHandling: {
15
+ definitionOwner: ENGINE_OWNER_REF,
16
+ definitionSymbol: DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL,
17
+ definitionCollectionEntry: defaultAppRoleDefinitionCollectionEntry(CORE_APP_ROLES.APP_BILLING_PROVIDER_EVENTS),
18
+ identifierDeclaration: coreAppRoleIdentifierDeclaration('APP_BILLING_PROVIDER_EVENTS'),
19
+ },
20
+ }));
21
+ //# sourceMappingURL=app-billing-provider-events.role.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-billing-provider-events.role.specification.js","sourceRoot":"","sources":["../../../../../src/engine/roles/app-billing-provider-events.role.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EACL,qCAAqC,EACrC,gBAAgB,EAChB,gCAAgC,EAChC,uCAAuC,GACxC,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,yCAAyC,GAAG,uCAAuC,CAC9F,EAAE,IAAI,EAAE,cAAc,CAAC,2BAA2B,EAAE,EACpD,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EACL,2LAA2L;IAC7L,YAAY,EACV,0JAA0J;IAC5J,iBAAiB,EACf,wUAAwU;IAC1U,OAAO,EACL,sGAAsG;IACxG,SAAS,EACP,2GAA2G;IAC7G,mBAAmB,EAAE;QACnB,2FAA2F;QAC3F,+FAA+F;KAChG;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,qCAAqC;QACvD,yBAAyB,EAAE,uCAAuC,CAAC,cAAc,CAAC,2BAA2B,CAAC;QAC9G,qBAAqB,EAAE,gCAAgC,CAAC,6BAA6B,CAAC;KACvF;CACF,CAAC,CACH,CAAC","sourcesContent":["import { CORE_APP_ROLES } from '@wildo-ai/saas-models';\nimport { appLevelRoleSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL,\n ENGINE_OWNER_REF,\n coreAppRoleIdentifierDeclaration,\n defaultAppRoleDefinitionCollectionEntry,\n} from './_engine-role-shared';\n\nexport const appBillingProviderEventsRoleSpecification = appLevelRoleSpecificationFromDefinition(\n { role: CORE_APP_ROLES.APP_BILLING_PROVIDER_EVENTS },\n () => ({\n purpose:\n 'The authority the engine uses to record what the billing provider reports about one person\\'s personal billing account: subscriptions, invoices, credit purchases and a deleted customer.',\n businessRole:\n 'Not a person\\'s role. Held only by the engine\\'s billing handler while it runs one verified provider event that belongs to one person. Inherits nothing.',\n authorityBoundary:\n 'On that one person\\'s own billing records only: read the billing account, subscriptions, invoice references and credit pools; create and update subscriptions and invoice references; create a credit pool and add purchased credits; deactivate the billing account. No other person\\'s records and no access to the product catalog.',\n useWhen:\n 'Never assigned. The engine applies it to billing provider events for personal billing automatically.',\n avoidWhen:\n 'Do not give it to a user, an API key or an OAuth client: the application refuses it on every one of them.',\n businessConstraints: [\n 'Refused on every principal except the engine\\'s billing handler running a provider event.',\n 'Reaches only the records of the person the event belongs to, checked on every read and write.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n definitionSymbol: DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL,\n definitionCollectionEntry: defaultAppRoleDefinitionCollectionEntry(CORE_APP_ROLES.APP_BILLING_PROVIDER_EVENTS),\n identifierDeclaration: coreAppRoleIdentifierDeclaration('APP_BILLING_PROVIDER_EVENTS'),\n },\n }),\n);\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const appEmailInboundIntakeRoleSpecification: import("../../_core").RoleSpecificationConfig;
2
+ //# sourceMappingURL=app-email-inbound-intake.role.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-email-inbound-intake.role.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/roles/app-email-inbound-intake.role.specification.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,sCAAsC,+DAwBlD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { CORE_APP_ROLES } from '@wildo-ai/saas-models';
2
+ import { appLevelRoleSpecificationFromDefinition } from '../../_core/index.js';
3
+ import { DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL, ENGINE_OWNER_REF, coreAppRoleIdentifierDeclaration, defaultAppRoleDefinitionCollectionEntry, } from './_engine-role-shared.js';
4
+ export const appEmailInboundIntakeRoleSpecification = appLevelRoleSpecificationFromDefinition({ role: CORE_APP_ROLES.APP_EMAIL_INBOUND_INTAKE }, () => ({
5
+ purpose: 'The authority the engine\'s email intake runs as while it fetches a received message from the email provider, finds the organization each recipient address belongs to, and stores the message there.',
6
+ businessRole: 'Not a person\'s role. Held only by the engine\'s email intake while it runs one verified provider notification. Inherits nothing.',
7
+ authorityBoundary: 'Grants no operation at all: the intake writes as the engine itself, and the message reaches an organization only through the email channel handler, which runs with its own declared roles.',
8
+ useWhen: 'Never assigned. The engine applies it to the email provider\'s notifications automatically.',
9
+ avoidWhen: 'Do not give it to a user, an API key or an OAuth client: the application refuses it on every one of them.',
10
+ businessConstraints: [
11
+ 'Refused on every principal except the engine\'s email intake running a provider notification.',
12
+ 'No resource operation names it, so holding it permits nothing.',
13
+ ],
14
+ codeHandling: {
15
+ definitionOwner: ENGINE_OWNER_REF,
16
+ definitionSymbol: DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL,
17
+ definitionCollectionEntry: defaultAppRoleDefinitionCollectionEntry(CORE_APP_ROLES.APP_EMAIL_INBOUND_INTAKE),
18
+ identifierDeclaration: coreAppRoleIdentifierDeclaration('APP_EMAIL_INBOUND_INTAKE'),
19
+ },
20
+ }));
21
+ //# sourceMappingURL=app-email-inbound-intake.role.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-email-inbound-intake.role.specification.js","sourceRoot":"","sources":["../../../../../src/engine/roles/app-email-inbound-intake.role.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EACL,qCAAqC,EACrC,gBAAgB,EAChB,gCAAgC,EAChC,uCAAuC,GACxC,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,sCAAsC,GAAG,uCAAuC,CAC3F,EAAE,IAAI,EAAE,cAAc,CAAC,wBAAwB,EAAE,EACjD,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EACL,uMAAuM;IACzM,YAAY,EACV,mIAAmI;IACrI,iBAAiB,EACf,6LAA6L;IAC/L,OAAO,EACL,6FAA6F;IAC/F,SAAS,EACP,2GAA2G;IAC7G,mBAAmB,EAAE;QACnB,+FAA+F;QAC/F,gEAAgE;KACjE;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,qCAAqC;QACvD,yBAAyB,EAAE,uCAAuC,CAAC,cAAc,CAAC,wBAAwB,CAAC;QAC3G,qBAAqB,EAAE,gCAAgC,CAAC,0BAA0B,CAAC;KACpF;CACF,CAAC,CACH,CAAC","sourcesContent":["import { CORE_APP_ROLES } from '@wildo-ai/saas-models';\nimport { appLevelRoleSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL,\n ENGINE_OWNER_REF,\n coreAppRoleIdentifierDeclaration,\n defaultAppRoleDefinitionCollectionEntry,\n} from './_engine-role-shared';\n\nexport const appEmailInboundIntakeRoleSpecification = appLevelRoleSpecificationFromDefinition(\n { role: CORE_APP_ROLES.APP_EMAIL_INBOUND_INTAKE },\n () => ({\n purpose:\n 'The authority the engine\\'s email intake runs as while it fetches a received message from the email provider, finds the organization each recipient address belongs to, and stores the message there.',\n businessRole:\n 'Not a person\\'s role. Held only by the engine\\'s email intake while it runs one verified provider notification. Inherits nothing.',\n authorityBoundary:\n 'Grants no operation at all: the intake writes as the engine itself, and the message reaches an organization only through the email channel handler, which runs with its own declared roles.',\n useWhen:\n 'Never assigned. The engine applies it to the email provider\\'s notifications automatically.',\n avoidWhen:\n 'Do not give it to a user, an API key or an OAuth client: the application refuses it on every one of them.',\n businessConstraints: [\n 'Refused on every principal except the engine\\'s email intake running a provider notification.',\n 'No resource operation names it, so holding it permits nothing.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n definitionSymbol: DEFAULT_APP_ROLE_CONFIGURATION_SYMBOL,\n definitionCollectionEntry: defaultAppRoleDefinitionCollectionEntry(CORE_APP_ROLES.APP_EMAIL_INBOUND_INTAKE),\n identifierDeclaration: coreAppRoleIdentifierDeclaration('APP_EMAIL_INBOUND_INTAKE'),\n },\n }),\n);\n"]}
@@ -4,21 +4,29 @@ export * from './app-admin-super-admin.role.specification';
4
4
  export * from './app-admin-viewer.role.specification';
5
5
  export * from './app-anonymous.role.specification';
6
6
  export * from './app-audit-evidence-reader.role.specification';
7
+ export * from './app-billing-provider-events.role.specification';
8
+ export * from './app-email-inbound-intake.role.specification';
7
9
  export * from './app-public.role.specification';
8
10
  export * from './app-user.role.specification';
9
11
  export * from './org-admin.role.specification';
12
+ export * from './org-billing-provider-events.role.specification';
13
+ export * from './org-delegated-capabilities.role.specification';
10
14
  export * from './org-guest.role.specification';
11
15
  export * from './org-manager.role.specification';
12
16
  export * from './org-member.role.specification';
13
17
  export * from './org-owner.role.specification';
18
+ export * from './org-service-provider.role.specification';
14
19
  /**
15
- * Engine-shipped {@link RoleSpecification} map covering the 13 core roles:
20
+ * Engine-shipped {@link RoleSpecification} map covering the 23 core roles:
16
21
  *
17
- * - 8 app-level roles (`CORE_APP_ROLES`): `APP_PUBLIC`, `APP_ANONYMOUS`,
22
+ * - 10 app-level roles (`CORE_APP_ROLES`): `APP_PUBLIC`, `APP_ANONYMOUS`,
18
23
  * `APP_USER`, `APP_ADMIN_VIEWER`, `APP_ADMIN_MARKETING_EDITOR`,
19
- * `APP_ADMIN_BILLING_MANAGER`, `APP_ADMIN_SUPER_ADMIN`, `APP_AUDIT_EVIDENCE_READER`.
20
- * - 5 organisation-level roles (`CORE_ORG_ROLES`): `ORG_GUEST`,
21
- * `ORG_MEMBER`, `ORG_MANAGER`, `ORG_ADMIN`, `ORG_OWNER`.
24
+ * `APP_ADMIN_BILLING_MANAGER`, `APP_ADMIN_SUPER_ADMIN`, `APP_AUDIT_EVIDENCE_READER`,
25
+ * `APP_BILLING_PROVIDER_EVENTS` and `APP_EMAIL_INBOUND_INTAKE` (both handler-only).
26
+ * - 13 organisation-level roles (`CORE_ORG_ROLES`): `ORG_GUEST`,
27
+ * `ORG_MEMBER`, `ORG_SERVICE_PROVIDER`, `ORG_MANAGER`, `ORG_ADMIN`, `ORG_OWNER`,
28
+ * `ORG_BILLING_PROVIDER_EVENTS` (handler-only), and the six delegated capability roles
29
+ * `ORG_DELEGATED_*` (#1631, conferred only by a live capability grant).
22
30
  *
23
31
  * The map is built once at module load via
24
32
  * {@link buildRoleSpecificationMap}, which fails closed on duplicate
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/engine/roles/index.ts"],"names":[],"mappings":"AAeA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,yDAcpC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/engine/roles/index.ts"],"names":[],"mappings":"AA2BA,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,iDAAiD,CAAC;AAChE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAE1D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB,yDAwBpC,CAAC"}
@@ -5,39 +5,52 @@ import { appAdminSuperAdminRoleSpecification } from './app-admin-super-admin.rol
5
5
  import { appAdminViewerRoleSpecification } from './app-admin-viewer.role.specification.js';
6
6
  import { appAnonymousRoleSpecification } from './app-anonymous.role.specification.js';
7
7
  import { appAuditEvidenceReaderRoleSpecification } from './app-audit-evidence-reader.role.specification.js';
8
+ import { appBillingProviderEventsRoleSpecification } from './app-billing-provider-events.role.specification.js';
9
+ import { appEmailInboundIntakeRoleSpecification } from './app-email-inbound-intake.role.specification.js';
8
10
  import { appPublicRoleSpecification } from './app-public.role.specification.js';
9
11
  import { appUserRoleSpecification } from './app-user.role.specification.js';
10
12
  import { orgAdminRoleSpecification } from './org-admin.role.specification.js';
13
+ import { orgBillingProviderEventsRoleSpecification } from './org-billing-provider-events.role.specification.js';
14
+ import { orgDelegatedInviteMembersRoleSpecification, orgDelegatedManageRelationshipExpertsRoleSpecification, orgDelegatedReadAuditTrailRoleSpecification, orgDelegatedManageSsoScimRoleSpecification, orgDelegatedManageApiKeysRoleSpecification, orgDelegatedApproveAccessGrantsRoleSpecification, } from './org-delegated-capabilities.role.specification.js';
11
15
  import { orgGuestRoleSpecification } from './org-guest.role.specification.js';
12
16
  import { orgManagerRoleSpecification } from './org-manager.role.specification.js';
13
17
  import { orgMemberRoleSpecification } from './org-member.role.specification.js';
14
18
  import { orgOwnerRoleSpecification } from './org-owner.role.specification.js';
19
+ import { orgServiceProviderRoleSpecification } from './org-service-provider.role.specification.js';
15
20
  export * from './app-admin-billing-manager.role.specification.js';
16
21
  export * from './app-admin-marketing-editor.role.specification.js';
17
22
  export * from './app-admin-super-admin.role.specification.js';
18
23
  export * from './app-admin-viewer.role.specification.js';
19
24
  export * from './app-anonymous.role.specification.js';
20
25
  export * from './app-audit-evidence-reader.role.specification.js';
26
+ export * from './app-billing-provider-events.role.specification.js';
27
+ export * from './app-email-inbound-intake.role.specification.js';
21
28
  export * from './app-public.role.specification.js';
22
29
  export * from './app-user.role.specification.js';
23
30
  export * from './org-admin.role.specification.js';
31
+ export * from './org-billing-provider-events.role.specification.js';
32
+ export * from './org-delegated-capabilities.role.specification.js';
24
33
  export * from './org-guest.role.specification.js';
25
34
  export * from './org-manager.role.specification.js';
26
35
  export * from './org-member.role.specification.js';
27
36
  export * from './org-owner.role.specification.js';
37
+ export * from './org-service-provider.role.specification.js';
28
38
  /**
29
- * Engine-shipped {@link RoleSpecification} map covering the 13 core roles:
39
+ * Engine-shipped {@link RoleSpecification} map covering the 23 core roles:
30
40
  *
31
- * - 8 app-level roles (`CORE_APP_ROLES`): `APP_PUBLIC`, `APP_ANONYMOUS`,
41
+ * - 10 app-level roles (`CORE_APP_ROLES`): `APP_PUBLIC`, `APP_ANONYMOUS`,
32
42
  * `APP_USER`, `APP_ADMIN_VIEWER`, `APP_ADMIN_MARKETING_EDITOR`,
33
- * `APP_ADMIN_BILLING_MANAGER`, `APP_ADMIN_SUPER_ADMIN`, `APP_AUDIT_EVIDENCE_READER`.
34
- * - 5 organisation-level roles (`CORE_ORG_ROLES`): `ORG_GUEST`,
35
- * `ORG_MEMBER`, `ORG_MANAGER`, `ORG_ADMIN`, `ORG_OWNER`.
43
+ * `APP_ADMIN_BILLING_MANAGER`, `APP_ADMIN_SUPER_ADMIN`, `APP_AUDIT_EVIDENCE_READER`,
44
+ * `APP_BILLING_PROVIDER_EVENTS` and `APP_EMAIL_INBOUND_INTAKE` (both handler-only).
45
+ * - 13 organisation-level roles (`CORE_ORG_ROLES`): `ORG_GUEST`,
46
+ * `ORG_MEMBER`, `ORG_SERVICE_PROVIDER`, `ORG_MANAGER`, `ORG_ADMIN`, `ORG_OWNER`,
47
+ * `ORG_BILLING_PROVIDER_EVENTS` (handler-only), and the six delegated capability roles
48
+ * `ORG_DELEGATED_*` (#1631, conferred only by a live capability grant).
36
49
  *
37
50
  * The map is built once at module load via
38
51
  * {@link buildRoleSpecificationMap}, which fails closed on duplicate
39
52
  * bi-scoped keys. Apps merge their own role overlays into a wider map
40
53
  * at their own bootstrap.
41
54
  */
42
- export const engineRoleSpecifications = buildRoleSpecificationMap(appPublicRoleSpecification, appAnonymousRoleSpecification, appUserRoleSpecification, appAdminViewerRoleSpecification, appAdminMarketingEditorRoleSpecification, appAdminBillingManagerRoleSpecification, appAdminSuperAdminRoleSpecification, appAuditEvidenceReaderRoleSpecification, orgGuestRoleSpecification, orgMemberRoleSpecification, orgManagerRoleSpecification, orgAdminRoleSpecification, orgOwnerRoleSpecification);
55
+ export const engineRoleSpecifications = buildRoleSpecificationMap(appPublicRoleSpecification, appAnonymousRoleSpecification, appUserRoleSpecification, appAdminViewerRoleSpecification, appAdminMarketingEditorRoleSpecification, appAdminBillingManagerRoleSpecification, appAdminSuperAdminRoleSpecification, appAuditEvidenceReaderRoleSpecification, appBillingProviderEventsRoleSpecification, appEmailInboundIntakeRoleSpecification, orgGuestRoleSpecification, orgMemberRoleSpecification, orgManagerRoleSpecification, orgAdminRoleSpecification, orgOwnerRoleSpecification, orgServiceProviderRoleSpecification, orgBillingProviderEventsRoleSpecification, orgDelegatedInviteMembersRoleSpecification, orgDelegatedManageRelationshipExpertsRoleSpecification, orgDelegatedReadAuditTrailRoleSpecification, orgDelegatedManageSsoScimRoleSpecification, orgDelegatedManageApiKeysRoleSpecification, orgDelegatedApproveAccessGrantsRoleSpecification);
43
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/engine/roles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,uCAAuC,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,EAAE,wCAAwC,EAAE,MAAM,iDAAiD,CAAC;AAC3G,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,uCAAuC,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAC/D,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wCAAwC,EACxC,uCAAuC,EACvC,mCAAmC,EACnC,uCAAuC,EACvC,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,CAC1B,CAAC","sourcesContent":["import { buildRoleSpecificationMap } from '~wildo-specifications/_core';\nimport { appAdminBillingManagerRoleSpecification } from './app-admin-billing-manager.role.specification';\nimport { appAdminMarketingEditorRoleSpecification } from './app-admin-marketing-editor.role.specification';\nimport { appAdminSuperAdminRoleSpecification } from './app-admin-super-admin.role.specification';\nimport { appAdminViewerRoleSpecification } from './app-admin-viewer.role.specification';\nimport { appAnonymousRoleSpecification } from './app-anonymous.role.specification';\nimport { appAuditEvidenceReaderRoleSpecification } from './app-audit-evidence-reader.role.specification';\nimport { appPublicRoleSpecification } from './app-public.role.specification';\nimport { appUserRoleSpecification } from './app-user.role.specification';\nimport { orgAdminRoleSpecification } from './org-admin.role.specification';\nimport { orgGuestRoleSpecification } from './org-guest.role.specification';\nimport { orgManagerRoleSpecification } from './org-manager.role.specification';\nimport { orgMemberRoleSpecification } from './org-member.role.specification';\nimport { orgOwnerRoleSpecification } from './org-owner.role.specification';\n\nexport * from './app-admin-billing-manager.role.specification';\nexport * from './app-admin-marketing-editor.role.specification';\nexport * from './app-admin-super-admin.role.specification';\nexport * from './app-admin-viewer.role.specification';\nexport * from './app-anonymous.role.specification';\nexport * from './app-audit-evidence-reader.role.specification';\nexport * from './app-public.role.specification';\nexport * from './app-user.role.specification';\nexport * from './org-admin.role.specification';\nexport * from './org-guest.role.specification';\nexport * from './org-manager.role.specification';\nexport * from './org-member.role.specification';\nexport * from './org-owner.role.specification';\n\n/**\n * Engine-shipped {@link RoleSpecification} map covering the 13 core roles:\n *\n * - 8 app-level roles (`CORE_APP_ROLES`): `APP_PUBLIC`, `APP_ANONYMOUS`,\n * `APP_USER`, `APP_ADMIN_VIEWER`, `APP_ADMIN_MARKETING_EDITOR`,\n * `APP_ADMIN_BILLING_MANAGER`, `APP_ADMIN_SUPER_ADMIN`, `APP_AUDIT_EVIDENCE_READER`.\n * - 5 organisation-level roles (`CORE_ORG_ROLES`): `ORG_GUEST`,\n * `ORG_MEMBER`, `ORG_MANAGER`, `ORG_ADMIN`, `ORG_OWNER`.\n *\n * The map is built once at module load via\n * {@link buildRoleSpecificationMap}, which fails closed on duplicate\n * bi-scoped keys. Apps merge their own role overlays into a wider map\n * at their own bootstrap.\n */\nexport const engineRoleSpecifications = buildRoleSpecificationMap(\n appPublicRoleSpecification,\n appAnonymousRoleSpecification,\n appUserRoleSpecification,\n appAdminViewerRoleSpecification,\n appAdminMarketingEditorRoleSpecification,\n appAdminBillingManagerRoleSpecification,\n appAdminSuperAdminRoleSpecification,\n appAuditEvidenceReaderRoleSpecification,\n orgGuestRoleSpecification,\n orgMemberRoleSpecification,\n orgManagerRoleSpecification,\n orgAdminRoleSpecification,\n orgOwnerRoleSpecification,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/engine/roles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,uCAAuC,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,EAAE,wCAAwC,EAAE,MAAM,iDAAiD,CAAC;AAC3G,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,uCAAuC,EAAE,MAAM,gDAAgD,CAAC;AACzG,OAAO,EAAE,yCAAyC,EAAE,MAAM,kDAAkD,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,+CAA+C,CAAC;AACvG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,yCAAyC,EAAE,MAAM,kDAAkD,CAAC;AAC7G,OAAO,EACL,0CAA0C,EAC1C,sDAAsD,EACtD,2CAA2C,EAC3C,0CAA0C,EAC1C,0CAA0C,EAC1C,gDAAgD,GACjD,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mCAAmC,EAAE,MAAM,2CAA2C,CAAC;AAEhG,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,iDAAiD,CAAC;AAChE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2CAA2C,CAAC;AAE1D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,yBAAyB,CAC/D,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wCAAwC,EACxC,uCAAuC,EACvC,mCAAmC,EACnC,uCAAuC,EACvC,yCAAyC,EACzC,sCAAsC,EACtC,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,mCAAmC,EACnC,yCAAyC,EACzC,0CAA0C,EAC1C,sDAAsD,EACtD,2CAA2C,EAC3C,0CAA0C,EAC1C,0CAA0C,EAC1C,gDAAgD,CACjD,CAAC","sourcesContent":["import { buildRoleSpecificationMap } from '~wildo-specifications/_core';\nimport { appAdminBillingManagerRoleSpecification } from './app-admin-billing-manager.role.specification';\nimport { appAdminMarketingEditorRoleSpecification } from './app-admin-marketing-editor.role.specification';\nimport { appAdminSuperAdminRoleSpecification } from './app-admin-super-admin.role.specification';\nimport { appAdminViewerRoleSpecification } from './app-admin-viewer.role.specification';\nimport { appAnonymousRoleSpecification } from './app-anonymous.role.specification';\nimport { appAuditEvidenceReaderRoleSpecification } from './app-audit-evidence-reader.role.specification';\nimport { appBillingProviderEventsRoleSpecification } from './app-billing-provider-events.role.specification';\nimport { appEmailInboundIntakeRoleSpecification } from './app-email-inbound-intake.role.specification';\nimport { appPublicRoleSpecification } from './app-public.role.specification';\nimport { appUserRoleSpecification } from './app-user.role.specification';\nimport { orgAdminRoleSpecification } from './org-admin.role.specification';\nimport { orgBillingProviderEventsRoleSpecification } from './org-billing-provider-events.role.specification';\nimport {\n orgDelegatedInviteMembersRoleSpecification,\n orgDelegatedManageRelationshipExpertsRoleSpecification,\n orgDelegatedReadAuditTrailRoleSpecification,\n orgDelegatedManageSsoScimRoleSpecification,\n orgDelegatedManageApiKeysRoleSpecification,\n orgDelegatedApproveAccessGrantsRoleSpecification,\n} from './org-delegated-capabilities.role.specification';\nimport { orgGuestRoleSpecification } from './org-guest.role.specification';\nimport { orgManagerRoleSpecification } from './org-manager.role.specification';\nimport { orgMemberRoleSpecification } from './org-member.role.specification';\nimport { orgOwnerRoleSpecification } from './org-owner.role.specification';\nimport { orgServiceProviderRoleSpecification } from './org-service-provider.role.specification';\n\nexport * from './app-admin-billing-manager.role.specification';\nexport * from './app-admin-marketing-editor.role.specification';\nexport * from './app-admin-super-admin.role.specification';\nexport * from './app-admin-viewer.role.specification';\nexport * from './app-anonymous.role.specification';\nexport * from './app-audit-evidence-reader.role.specification';\nexport * from './app-billing-provider-events.role.specification';\nexport * from './app-email-inbound-intake.role.specification';\nexport * from './app-public.role.specification';\nexport * from './app-user.role.specification';\nexport * from './org-admin.role.specification';\nexport * from './org-billing-provider-events.role.specification';\nexport * from './org-delegated-capabilities.role.specification';\nexport * from './org-guest.role.specification';\nexport * from './org-manager.role.specification';\nexport * from './org-member.role.specification';\nexport * from './org-owner.role.specification';\nexport * from './org-service-provider.role.specification';\n\n/**\n * Engine-shipped {@link RoleSpecification} map covering the 23 core roles:\n *\n * - 10 app-level roles (`CORE_APP_ROLES`): `APP_PUBLIC`, `APP_ANONYMOUS`,\n * `APP_USER`, `APP_ADMIN_VIEWER`, `APP_ADMIN_MARKETING_EDITOR`,\n * `APP_ADMIN_BILLING_MANAGER`, `APP_ADMIN_SUPER_ADMIN`, `APP_AUDIT_EVIDENCE_READER`,\n * `APP_BILLING_PROVIDER_EVENTS` and `APP_EMAIL_INBOUND_INTAKE` (both handler-only).\n * - 13 organisation-level roles (`CORE_ORG_ROLES`): `ORG_GUEST`,\n * `ORG_MEMBER`, `ORG_SERVICE_PROVIDER`, `ORG_MANAGER`, `ORG_ADMIN`, `ORG_OWNER`,\n * `ORG_BILLING_PROVIDER_EVENTS` (handler-only), and the six delegated capability roles\n * `ORG_DELEGATED_*` (#1631, conferred only by a live capability grant).\n *\n * The map is built once at module load via\n * {@link buildRoleSpecificationMap}, which fails closed on duplicate\n * bi-scoped keys. Apps merge their own role overlays into a wider map\n * at their own bootstrap.\n */\nexport const engineRoleSpecifications = buildRoleSpecificationMap(\n appPublicRoleSpecification,\n appAnonymousRoleSpecification,\n appUserRoleSpecification,\n appAdminViewerRoleSpecification,\n appAdminMarketingEditorRoleSpecification,\n appAdminBillingManagerRoleSpecification,\n appAdminSuperAdminRoleSpecification,\n appAuditEvidenceReaderRoleSpecification,\n appBillingProviderEventsRoleSpecification,\n appEmailInboundIntakeRoleSpecification,\n orgGuestRoleSpecification,\n orgMemberRoleSpecification,\n orgManagerRoleSpecification,\n orgAdminRoleSpecification,\n orgOwnerRoleSpecification,\n orgServiceProviderRoleSpecification,\n orgBillingProviderEventsRoleSpecification,\n orgDelegatedInviteMembersRoleSpecification,\n orgDelegatedManageRelationshipExpertsRoleSpecification,\n orgDelegatedReadAuditTrailRoleSpecification,\n orgDelegatedManageSsoScimRoleSpecification,\n orgDelegatedManageApiKeysRoleSpecification,\n orgDelegatedApproveAccessGrantsRoleSpecification,\n);\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const orgBillingProviderEventsRoleSpecification: import("../../_core").RoleSpecificationConfig;
2
+ //# sourceMappingURL=org-billing-provider-events.role.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-billing-provider-events.role.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/roles/org-billing-provider-events.role.specification.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,yCAAyC,+DAwBrD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { CORE_ORG_ROLES } from '@wildo-ai/saas-models';
2
+ import { appLevelRoleSpecificationFromDefinition } from '../../_core/index.js';
3
+ import { DEFAULT_ORGANIZATION_ROLES_SYMBOL, ENGINE_OWNER_REF, coreOrgRoleIdentifierDeclaration, defaultOrganizationRoleDefinitionCollectionEntry, } from './_engine-role-shared.js';
4
+ export const orgBillingProviderEventsRoleSpecification = appLevelRoleSpecificationFromDefinition({ role: CORE_ORG_ROLES.ORG_BILLING_PROVIDER_EVENTS }, () => ({
5
+ purpose: 'The authority the engine uses to record what the billing provider reports about an organization: its subscriptions, invoices, credit purchases and a deleted customer.',
6
+ businessRole: 'Not a person\'s role. Held only by the engine\'s billing handler while it runs one verified provider event for one organization. Inherits nothing.',
7
+ authorityBoundary: 'Inside the one organization the event belongs to: read its billing account, subscriptions, invoice references and credit pools; create and update subscriptions and invoice references; create a credit pool and add purchased credits; deactivate the billing account. No other resource, no other organization, and no access to the product catalog.',
8
+ useWhen: 'Never assigned. The engine applies it to billing provider events automatically.',
9
+ avoidWhen: 'Do not give it to a member, an API key or an OAuth client: the application refuses it on every one of them. People who manage billing need an administrator role.',
10
+ businessConstraints: [
11
+ 'Refused on every principal except the engine\'s billing handler running a provider event.',
12
+ 'Each provider event it acts on is stored, retried for up to three days, and can be replayed by an administrator if it fails.',
13
+ ],
14
+ codeHandling: {
15
+ definitionOwner: ENGINE_OWNER_REF,
16
+ definitionSymbol: DEFAULT_ORGANIZATION_ROLES_SYMBOL,
17
+ definitionCollectionEntry: defaultOrganizationRoleDefinitionCollectionEntry(CORE_ORG_ROLES.ORG_BILLING_PROVIDER_EVENTS),
18
+ identifierDeclaration: coreOrgRoleIdentifierDeclaration('ORG_BILLING_PROVIDER_EVENTS'),
19
+ },
20
+ }));
21
+ //# sourceMappingURL=org-billing-provider-events.role.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-billing-provider-events.role.specification.js","sourceRoot":"","sources":["../../../../../src/engine/roles/org-billing-provider-events.role.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EACL,iCAAiC,EACjC,gBAAgB,EAChB,gCAAgC,EAChC,gDAAgD,GACjD,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,yCAAyC,GAAG,uCAAuC,CAC9F,EAAE,IAAI,EAAE,cAAc,CAAC,2BAA2B,EAAE,EACpD,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EACL,wKAAwK;IAC1K,YAAY,EACV,oJAAoJ;IACtJ,iBAAiB,EACf,yVAAyV;IAC3V,OAAO,EACL,iFAAiF;IACnF,SAAS,EACP,mKAAmK;IACrK,mBAAmB,EAAE;QACnB,2FAA2F;QAC3F,8HAA8H;KAC/H;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,iCAAiC;QACnD,yBAAyB,EAAE,gDAAgD,CAAC,cAAc,CAAC,2BAA2B,CAAC;QACvH,qBAAqB,EAAE,gCAAgC,CAAC,6BAA6B,CAAC;KACvF;CACF,CAAC,CACH,CAAC","sourcesContent":["import { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\nimport { appLevelRoleSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n DEFAULT_ORGANIZATION_ROLES_SYMBOL,\n ENGINE_OWNER_REF,\n coreOrgRoleIdentifierDeclaration,\n defaultOrganizationRoleDefinitionCollectionEntry,\n} from './_engine-role-shared';\n\nexport const orgBillingProviderEventsRoleSpecification = appLevelRoleSpecificationFromDefinition(\n { role: CORE_ORG_ROLES.ORG_BILLING_PROVIDER_EVENTS },\n () => ({\n purpose:\n 'The authority the engine uses to record what the billing provider reports about an organization: its subscriptions, invoices, credit purchases and a deleted customer.',\n businessRole:\n 'Not a person\\'s role. Held only by the engine\\'s billing handler while it runs one verified provider event for one organization. Inherits nothing.',\n authorityBoundary:\n 'Inside the one organization the event belongs to: read its billing account, subscriptions, invoice references and credit pools; create and update subscriptions and invoice references; create a credit pool and add purchased credits; deactivate the billing account. No other resource, no other organization, and no access to the product catalog.',\n useWhen:\n 'Never assigned. The engine applies it to billing provider events automatically.',\n avoidWhen:\n 'Do not give it to a member, an API key or an OAuth client: the application refuses it on every one of them. People who manage billing need an administrator role.',\n businessConstraints: [\n 'Refused on every principal except the engine\\'s billing handler running a provider event.',\n 'Each provider event it acts on is stored, retried for up to three days, and can be replayed by an administrator if it fails.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n definitionSymbol: DEFAULT_ORGANIZATION_ROLES_SYMBOL,\n definitionCollectionEntry: defaultOrganizationRoleDefinitionCollectionEntry(CORE_ORG_ROLES.ORG_BILLING_PROVIDER_EVENTS),\n identifierDeclaration: coreOrgRoleIdentifierDeclaration('ORG_BILLING_PROVIDER_EVENTS'),\n },\n }),\n);\n"]}
@@ -0,0 +1,7 @@
1
+ export declare const orgDelegatedInviteMembersRoleSpecification: import("../../_core").RoleSpecificationConfig;
2
+ export declare const orgDelegatedManageRelationshipExpertsRoleSpecification: import("../../_core").RoleSpecificationConfig;
3
+ export declare const orgDelegatedReadAuditTrailRoleSpecification: import("../../_core").RoleSpecificationConfig;
4
+ export declare const orgDelegatedManageSsoScimRoleSpecification: import("../../_core").RoleSpecificationConfig;
5
+ export declare const orgDelegatedManageApiKeysRoleSpecification: import("../../_core").RoleSpecificationConfig;
6
+ export declare const orgDelegatedApproveAccessGrantsRoleSpecification: import("../../_core").RoleSpecificationConfig;
7
+ //# sourceMappingURL=org-delegated-capabilities.role.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-delegated-capabilities.role.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/roles/org-delegated-capabilities.role.specification.ts"],"names":[],"mappings":"AA+CA,eAAO,MAAM,0CAA0C,+DAKrD,CAAC;AAEH,eAAO,MAAM,sDAAsD,+DAKjE,CAAC;AAEH,eAAO,MAAM,2CAA2C,+DAKtD,CAAC;AAEH,eAAO,MAAM,0CAA0C,+DAMrD,CAAC;AAEH,eAAO,MAAM,0CAA0C,+DAMrD,CAAC;AAEH,eAAO,MAAM,gDAAgD,+DAM3D,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * The six delegated administrative capability roles (#1631) — one per `DelegatedAdministrativeCapability`.
3
+ *
4
+ * Each is conferred ONLY by a live service-provider capability grant, to a service firm's experts, through the
5
+ * execution-context live filter; no membership row may carry one. Each inherits from nothing and is listed explicitly
6
+ * by the core operations it opens, so it confers exactly those.
7
+ */
8
+ import { CORE_ORG_ROLES } from '@wildo-ai/saas-models';
9
+ import { appLevelRoleSpecificationFromDefinition } from '../../_core/index.js';
10
+ import { DEFAULT_ORGANIZATION_ROLES_SYMBOL, ENGINE_OWNER_REF, coreOrgRoleIdentifierDeclaration, defaultOrganizationRoleDefinitionCollectionEntry, } from './_engine-role-shared.js';
11
+ /** The constraints every delegated capability role shares — the rules of delegation itself. */
12
+ const DELEGATION_CONSTRAINTS = [
13
+ 'Conferred only by a live capability grant on a service-provider relationship, never by a membership row: the member role doors refuse it.',
14
+ 'Confers its operations only while the grant is ACTIVE and its end date is still in the future, re-checked on every request with no sweep involved; the client revokes it at any time.',
15
+ 'Inherits from nothing and never leads to ORG_ADMIN or ORG_OWNER (startup refuses a capability role that does); never counts toward the owner floor.',
16
+ ];
17
+ const delegatedRole = (role, memberName, text) => appLevelRoleSpecificationFromDefinition({ role }, () => ({
18
+ purpose: text.purpose,
19
+ businessRole: `Delegated administration for a service firm's experts: ${text.opens}, and nothing else.`,
20
+ authorityBoundary: text.securityCritical
21
+ ? 'Inside one client organisation, under one relationship, until the grant\'s end date. Only the client\'s owner grants it, with step-up, for at most 30 days (or the application\'s lower cap); a renewal is a new grant.'
22
+ : 'Inside one client organisation, under one relationship, until the grant\'s end date (at most two years). A client administrator grants and revokes it.',
23
+ useWhen: text.useWhen,
24
+ avoidWhen: text.avoidWhen,
25
+ businessConstraints: [...DELEGATION_CONSTRAINTS],
26
+ codeHandling: {
27
+ definitionOwner: ENGINE_OWNER_REF,
28
+ definitionSymbol: DEFAULT_ORGANIZATION_ROLES_SYMBOL,
29
+ definitionCollectionEntry: defaultOrganizationRoleDefinitionCollectionEntry(role),
30
+ identifierDeclaration: coreOrgRoleIdentifierDeclaration(memberName),
31
+ },
32
+ }));
33
+ export const orgDelegatedInviteMembersRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_INVITE_MEMBERS, 'ORG_DELEGATED_INVITE_MEMBERS', {
34
+ purpose: 'Lets a service firm\'s experts invite people into a client organisation, resend and revoke invitations, without administering it.',
35
+ opens: 'the organisation member invite, resend-invitation and revoke-invitation verbs',
36
+ useWhen: 'Use it when the client has nobody available to onboard colleagues and wants the firm to do it for a while.',
37
+ avoidWhen: 'Avoid it to change anyone\'s roles or remove members — it opens the invitation verbs only.',
38
+ });
39
+ export const orgDelegatedManageRelationshipExpertsRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_MANAGE_RELATIONSHIP_EXPERTS, 'ORG_DELEGATED_MANAGE_RELATIONSHIP_EXPERTS', {
40
+ purpose: 'Lets a service firm\'s experts suspend or remove the firm\'s own experts under the same relationship. Never reactivate: a client\'s suspension is its own bar against one person.',
41
+ opens: 'the member suspend and remove verbs, on memberships of the same relationship only',
42
+ useWhen: 'Use it when the firm should manage its own team\'s access in the client without asking the client each time.',
43
+ avoidWhen: 'Avoid it for anything touching the client\'s own members or another firm\'s experts — both are refused.',
44
+ });
45
+ export const orgDelegatedReadAuditTrailRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_READ_AUDIT_TRAIL, 'ORG_DELEGATED_READ_AUDIT_TRAIL', {
46
+ purpose: 'Lets a service firm\'s experts read a client organisation\'s audit trail.',
47
+ opens: 'reading the organisation audit trail',
48
+ useWhen: 'Use it when the firm investigates or reports on activity in the client.',
49
+ avoidWhen: 'Avoid it on a relationship confined to organisation units — the audit trail is organisation-wide, so the grant is refused there.',
50
+ });
51
+ export const orgDelegatedManageSsoScimRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_MANAGE_SSO_SCIM, 'ORG_DELEGATED_MANAGE_SSO_SCIM', {
52
+ purpose: 'Lets a service firm\'s experts configure a client organisation\'s single sign-on and SCIM provisioning for a short, owner-approved window.',
53
+ opens: 'the organisation SSO and SCIM configuration verbs',
54
+ useWhen: 'Use it for a bounded setup task — connecting the client\'s identity provider — granted by the owner for the duration of the task.',
55
+ avoidWhen: 'Avoid it as standing access: it decides who can sign in, which is why only the owner grants it and never for long.',
56
+ securityCritical: true,
57
+ });
58
+ export const orgDelegatedManageApiKeysRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_MANAGE_API_KEYS, 'ORG_DELEGATED_MANAGE_API_KEYS', {
59
+ purpose: 'Lets a service firm\'s experts manage a client organisation\'s API keys for a short, owner-approved window.',
60
+ opens: 'the organisation API key verbs',
61
+ useWhen: 'Use it when the firm sets up an integration for the client.',
62
+ avoidWhen: 'Avoid it as standing access: an API key acts as the client, which is why only the owner grants it and never for long.',
63
+ securityCritical: true,
64
+ });
65
+ export const orgDelegatedApproveAccessGrantsRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_APPROVE_ACCESS_GRANTS, 'ORG_DELEGATED_APPROVE_ACCESS_GRANTS', {
66
+ purpose: 'Lets a service firm\'s experts answer, on the client\'s behalf, a platform operator\'s request to access the client, for a short, owner-approved window.',
67
+ opens: 'the tenant approval and denial of platform access grants',
68
+ useWhen: 'Use it when the firm runs the client\'s support escalations with the platform operator.',
69
+ avoidWhen: 'Avoid it as standing access: it lets someone outside the client admit the platform operator, which is why only the owner grants it and never for long.',
70
+ securityCritical: true,
71
+ });
72
+ //# sourceMappingURL=org-delegated-capabilities.role.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-delegated-capabilities.role.specification.js","sourceRoot":"","sources":["../../../../../src/engine/roles/org-delegated-capabilities.role.specification.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EACL,iCAAiC,EACjC,gBAAgB,EAChB,gCAAgC,EAChC,gDAAgD,GACjD,MAAM,uBAAuB,CAAC;AAE/B,+FAA+F;AAC/F,MAAM,sBAAsB,GAAG;IAC7B,2IAA2I;IAC3I,uLAAuL;IACvL,qJAAqJ;CAC7I,CAAC;AAEX,MAAM,aAAa,GAAG,CACpB,IAAoB,EACpB,UAAkB,EAClB,IAAwG,EACxG,EAAE,CAAC,uCAAuC,CAC1C,EAAE,IAAI,EAAE,EACR,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,YAAY,EAAE,0DAA0D,IAAI,CAAC,KAAK,qBAAqB;IACvG,iBAAiB,EAAE,IAAI,CAAC,gBAAgB;QACtC,CAAC,CAAC,yNAAyN;QAC3N,CAAC,CAAC,wJAAwJ;IAC5J,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,SAAS,EAAE,IAAI,CAAC,SAAS;IACzB,mBAAmB,EAAE,CAAC,GAAG,sBAAsB,CAAC;IAChD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,iCAAiC;QACnD,yBAAyB,EAAE,gDAAgD,CAAC,IAAI,CAAC;QACjF,qBAAqB,EAAE,gCAAgC,CAAC,UAAU,CAAC;KACpE;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAAG,aAAa,CAAC,cAAc,CAAC,4BAA4B,EAAE,8BAA8B,EAAE;IACnJ,OAAO,EAAE,mIAAmI;IAC5I,KAAK,EAAE,+EAA+E;IACtF,OAAO,EAAE,4GAA4G;IACrH,SAAS,EAAE,4FAA4F;CACxG,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sDAAsD,GAAG,aAAa,CAAC,cAAc,CAAC,yCAAyC,EAAE,2CAA2C,EAAE;IACzL,OAAO,EAAE,mLAAmL;IAC5L,KAAK,EAAE,mFAAmF;IAC1F,OAAO,EAAE,8GAA8G;IACvH,SAAS,EAAE,yGAAyG;CACrH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2CAA2C,GAAG,aAAa,CAAC,cAAc,CAAC,8BAA8B,EAAE,gCAAgC,EAAE;IACxJ,OAAO,EAAE,2EAA2E;IACpF,KAAK,EAAE,sCAAsC;IAC7C,OAAO,EAAE,yEAAyE;IAClF,SAAS,EAAE,kIAAkI;CAC9I,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0CAA0C,GAAG,aAAa,CAAC,cAAc,CAAC,6BAA6B,EAAE,+BAA+B,EAAE;IACrJ,OAAO,EAAE,4IAA4I;IACrJ,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,mIAAmI;IAC5I,SAAS,EAAE,oHAAoH;IAC/H,gBAAgB,EAAE,IAAI;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0CAA0C,GAAG,aAAa,CAAC,cAAc,CAAC,6BAA6B,EAAE,+BAA+B,EAAE;IACrJ,OAAO,EAAE,6GAA6G;IACtH,KAAK,EAAE,gCAAgC;IACvC,OAAO,EAAE,6DAA6D;IACtE,SAAS,EAAE,uHAAuH;IAClI,gBAAgB,EAAE,IAAI;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gDAAgD,GAAG,aAAa,CAAC,cAAc,CAAC,mCAAmC,EAAE,qCAAqC,EAAE;IACvK,OAAO,EAAE,0JAA0J;IACnK,KAAK,EAAE,0DAA0D;IACjE,OAAO,EAAE,yFAAyF;IAClG,SAAS,EAAE,wJAAwJ;IACnK,gBAAgB,EAAE,IAAI;CACvB,CAAC,CAAC","sourcesContent":["/**\n * The six delegated administrative capability roles (#1631) — one per `DelegatedAdministrativeCapability`.\n *\n * Each is conferred ONLY by a live service-provider capability grant, to a service firm's experts, through the\n * execution-context live filter; no membership row may carry one. Each inherits from nothing and is listed explicitly\n * by the core operations it opens, so it confers exactly those.\n */\nimport { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\nimport { appLevelRoleSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n DEFAULT_ORGANIZATION_ROLES_SYMBOL,\n ENGINE_OWNER_REF,\n coreOrgRoleIdentifierDeclaration,\n defaultOrganizationRoleDefinitionCollectionEntry,\n} from './_engine-role-shared';\n\n/** The constraints every delegated capability role shares — the rules of delegation itself. */\nconst DELEGATION_CONSTRAINTS = [\n 'Conferred only by a live capability grant on a service-provider relationship, never by a membership row: the member role doors refuse it.',\n 'Confers its operations only while the grant is ACTIVE and its end date is still in the future, re-checked on every request with no sweep involved; the client revokes it at any time.',\n 'Inherits from nothing and never leads to ORG_ADMIN or ORG_OWNER (startup refuses a capability role that does); never counts toward the owner floor.',\n] as const;\n\nconst delegatedRole = (\n role: CORE_ORG_ROLES,\n memberName: string,\n text: { purpose: string; opens: string; useWhen: string; avoidWhen: string; securityCritical?: boolean },\n) => appLevelRoleSpecificationFromDefinition(\n { role },\n () => ({\n purpose: text.purpose,\n businessRole: `Delegated administration for a service firm's experts: ${text.opens}, and nothing else.`,\n authorityBoundary: text.securityCritical\n ? 'Inside one client organisation, under one relationship, until the grant\\'s end date. Only the client\\'s owner grants it, with step-up, for at most 30 days (or the application\\'s lower cap); a renewal is a new grant.'\n : 'Inside one client organisation, under one relationship, until the grant\\'s end date (at most two years). A client administrator grants and revokes it.',\n useWhen: text.useWhen,\n avoidWhen: text.avoidWhen,\n businessConstraints: [...DELEGATION_CONSTRAINTS],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n definitionSymbol: DEFAULT_ORGANIZATION_ROLES_SYMBOL,\n definitionCollectionEntry: defaultOrganizationRoleDefinitionCollectionEntry(role),\n identifierDeclaration: coreOrgRoleIdentifierDeclaration(memberName),\n },\n }),\n);\n\nexport const orgDelegatedInviteMembersRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_INVITE_MEMBERS, 'ORG_DELEGATED_INVITE_MEMBERS', {\n purpose: 'Lets a service firm\\'s experts invite people into a client organisation, resend and revoke invitations, without administering it.',\n opens: 'the organisation member invite, resend-invitation and revoke-invitation verbs',\n useWhen: 'Use it when the client has nobody available to onboard colleagues and wants the firm to do it for a while.',\n avoidWhen: 'Avoid it to change anyone\\'s roles or remove members — it opens the invitation verbs only.',\n});\n\nexport const orgDelegatedManageRelationshipExpertsRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_MANAGE_RELATIONSHIP_EXPERTS, 'ORG_DELEGATED_MANAGE_RELATIONSHIP_EXPERTS', {\n purpose: 'Lets a service firm\\'s experts suspend or remove the firm\\'s own experts under the same relationship. Never reactivate: a client\\'s suspension is its own bar against one person.',\n opens: 'the member suspend and remove verbs, on memberships of the same relationship only',\n useWhen: 'Use it when the firm should manage its own team\\'s access in the client without asking the client each time.',\n avoidWhen: 'Avoid it for anything touching the client\\'s own members or another firm\\'s experts — both are refused.',\n});\n\nexport const orgDelegatedReadAuditTrailRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_READ_AUDIT_TRAIL, 'ORG_DELEGATED_READ_AUDIT_TRAIL', {\n purpose: 'Lets a service firm\\'s experts read a client organisation\\'s audit trail.',\n opens: 'reading the organisation audit trail',\n useWhen: 'Use it when the firm investigates or reports on activity in the client.',\n avoidWhen: 'Avoid it on a relationship confined to organisation units — the audit trail is organisation-wide, so the grant is refused there.',\n});\n\nexport const orgDelegatedManageSsoScimRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_MANAGE_SSO_SCIM, 'ORG_DELEGATED_MANAGE_SSO_SCIM', {\n purpose: 'Lets a service firm\\'s experts configure a client organisation\\'s single sign-on and SCIM provisioning for a short, owner-approved window.',\n opens: 'the organisation SSO and SCIM configuration verbs',\n useWhen: 'Use it for a bounded setup task — connecting the client\\'s identity provider — granted by the owner for the duration of the task.',\n avoidWhen: 'Avoid it as standing access: it decides who can sign in, which is why only the owner grants it and never for long.',\n securityCritical: true,\n});\n\nexport const orgDelegatedManageApiKeysRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_MANAGE_API_KEYS, 'ORG_DELEGATED_MANAGE_API_KEYS', {\n purpose: 'Lets a service firm\\'s experts manage a client organisation\\'s API keys for a short, owner-approved window.',\n opens: 'the organisation API key verbs',\n useWhen: 'Use it when the firm sets up an integration for the client.',\n avoidWhen: 'Avoid it as standing access: an API key acts as the client, which is why only the owner grants it and never for long.',\n securityCritical: true,\n});\n\nexport const orgDelegatedApproveAccessGrantsRoleSpecification = delegatedRole(CORE_ORG_ROLES.ORG_DELEGATED_APPROVE_ACCESS_GRANTS, 'ORG_DELEGATED_APPROVE_ACCESS_GRANTS', {\n purpose: 'Lets a service firm\\'s experts answer, on the client\\'s behalf, a platform operator\\'s request to access the client, for a short, owner-approved window.',\n opens: 'the tenant approval and denial of platform access grants',\n useWhen: 'Use it when the firm runs the client\\'s support escalations with the platform operator.',\n avoidWhen: 'Avoid it as standing access: it lets someone outside the client admit the platform operator, which is why only the owner grants it and never for long.',\n securityCritical: true,\n});\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const orgServiceProviderRoleSpecification: import("../../_core").RoleSpecificationConfig;
2
+ //# sourceMappingURL=org-service-provider.role.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-service-provider.role.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/roles/org-service-provider.role.specification.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,mCAAmC,+DA2B/C,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { CORE_ORG_ROLES } from '@wildo-ai/saas-models';
2
+ import { appLevelRoleSpecificationFromDefinition } from '../../_core/index.js';
3
+ import { DEFAULT_ORGANIZATION_ROLES_SYMBOL, ENGINE_OWNER_REF, coreOrgRoleIdentifierDeclaration, defaultOrganizationRoleDefinitionCollectionEntry, } from './_engine-role-shared.js';
4
+ export const orgServiceProviderRoleSpecification = appLevelRoleSpecificationFromDefinition({ role: CORE_ORG_ROLES.ORG_SERVICE_PROVIDER }, () => ({
5
+ purpose: 'Role an expert of a service firm holds inside a client organisation, conferred by a service-provider relationship the client declared and can end at any time.',
6
+ businessRole: 'Contributor from outside the organisation — inherits `ORG_MEMBER` and nothing above it. The firm assigns which of its experts serve the client; the client decides the relationship, its scope and its term.',
7
+ authorityBoundary: 'Inside one client organisation, and only while the relationship is active, unexpired and the expert is still an active member of the firm and assigned to it. Re-checked on every request. When the relationship is limited to organisation units, the expert reaches only those units.',
8
+ useWhen: 'Use this role as the default role of a service-provider relationship, for experts who do the client\'s ordinary work.',
9
+ avoidWhen: 'Avoid it for people employed by the organisation itself — invite them as members instead. It never confers administration of the organisation; that is a separate, narrow, time-bound delegation.',
10
+ businessConstraints: [
11
+ 'Never counts toward the organisation owner floor, and cannot receive ownership.',
12
+ 'Its role on the membership row is owned by the relationship; it cannot be edited on the membership.',
13
+ 'Ends on the next request after the client terminates or suspends the relationship, or the firm unassigns or removes the expert.',
14
+ ],
15
+ codeHandling: {
16
+ definitionOwner: ENGINE_OWNER_REF,
17
+ definitionSymbol: DEFAULT_ORGANIZATION_ROLES_SYMBOL,
18
+ definitionCollectionEntry: defaultOrganizationRoleDefinitionCollectionEntry(CORE_ORG_ROLES.ORG_SERVICE_PROVIDER),
19
+ identifierDeclaration: coreOrgRoleIdentifierDeclaration('ORG_SERVICE_PROVIDER'),
20
+ },
21
+ }));
22
+ //# sourceMappingURL=org-service-provider.role.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org-service-provider.role.specification.js","sourceRoot":"","sources":["../../../../../src/engine/roles/org-service-provider.role.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,uCAAuC,EAAE,MAAM,6BAA6B,CAAC;AACtF,OAAO,EACL,iCAAiC,EACjC,gBAAgB,EAChB,gCAAgC,EAChC,gDAAgD,GACjD,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,mCAAmC,GAAG,uCAAuC,CACxF,EAAE,IAAI,EAAE,cAAc,CAAC,oBAAoB,EAAE,EAC7C,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EACL,gKAAgK;IAClK,YAAY,EACV,8MAA8M;IAChN,iBAAiB,EACf,yRAAyR;IAC3R,OAAO,EACL,uHAAuH;IACzH,SAAS,EACP,mMAAmM;IACrM,mBAAmB,EAAE;QACnB,iFAAiF;QACjF,qGAAqG;QACrG,iIAAiI;KAClI;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,gBAAgB,EAAE,iCAAiC;QACnD,yBAAyB,EAAE,gDAAgD,CACzE,cAAc,CAAC,oBAAoB,CACpC;QACD,qBAAqB,EAAE,gCAAgC,CAAC,sBAAsB,CAAC;KAChF;CACF,CAAC,CACH,CAAC","sourcesContent":["import { CORE_ORG_ROLES } from '@wildo-ai/saas-models';\nimport { appLevelRoleSpecificationFromDefinition } from '~wildo-specifications/_core';\nimport {\n DEFAULT_ORGANIZATION_ROLES_SYMBOL,\n ENGINE_OWNER_REF,\n coreOrgRoleIdentifierDeclaration,\n defaultOrganizationRoleDefinitionCollectionEntry,\n} from './_engine-role-shared';\n\nexport const orgServiceProviderRoleSpecification = appLevelRoleSpecificationFromDefinition(\n { role: CORE_ORG_ROLES.ORG_SERVICE_PROVIDER },\n () => ({\n purpose:\n 'Role an expert of a service firm holds inside a client organisation, conferred by a service-provider relationship the client declared and can end at any time.',\n businessRole:\n 'Contributor from outside the organisation — inherits `ORG_MEMBER` and nothing above it. The firm assigns which of its experts serve the client; the client decides the relationship, its scope and its term.',\n authorityBoundary:\n 'Inside one client organisation, and only while the relationship is active, unexpired and the expert is still an active member of the firm and assigned to it. Re-checked on every request. When the relationship is limited to organisation units, the expert reaches only those units.',\n useWhen:\n 'Use this role as the default role of a service-provider relationship, for experts who do the client\\'s ordinary work.',\n avoidWhen:\n 'Avoid it for people employed by the organisation itself — invite them as members instead. It never confers administration of the organisation; that is a separate, narrow, time-bound delegation.',\n businessConstraints: [\n 'Never counts toward the organisation owner floor, and cannot receive ownership.',\n 'Its role on the membership row is owned by the relationship; it cannot be edited on the membership.',\n 'Ends on the next request after the client terminates or suspends the relationship, or the firm unassigns or removes the expert.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n definitionSymbol: DEFAULT_ORGANIZATION_ROLES_SYMBOL,\n definitionCollectionEntry: defaultOrganizationRoleDefinitionCollectionEntry(\n CORE_ORG_ROLES.ORG_SERVICE_PROVIDER,\n ),\n identifierDeclaration: coreOrgRoleIdentifierDeclaration('ORG_SERVICE_PROVIDER'),\n },\n }),\n);\n"]}
@@ -129,7 +129,7 @@ export const anonymousUsersResourceSpecification = resourceSpecificationFromFron
129
129
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new anonymous anchor record is minted with a stable id that rate limits, leads, and marketing metadata can attach to.' },
130
130
  ],
131
131
  errorScenarios: [
132
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The provisioning payload (privacy posture, forensic fields) fails schema validation.', errorCode: 'VALIDATION_FAILED' },
132
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The provisioning payload (privacy posture, forensic fields) fails schema validation.' },
133
133
  ],
134
134
  idempotent: false,
135
135
  examples: [
@@ -180,7 +180,7 @@ export const anonymousUsersResourceSpecification = resourceSpecificationFromFron
180
180
  { code: HttpResponseStatusCode.OK_200, meaning: 'The anonymous record’s transposition/privacy/metadata was updated and the latest state is returned.' },
181
181
  ],
182
182
  errorScenarios: [
183
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The mutated fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },
183
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The mutated fields fail schema validation.' },
184
184
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No anonymous anchor exists for the supplied id.' },
185
185
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'A transposition mutation conflicts with existing ownership — e.g. `convertedToUserId` is already set to a different user, so re-binding the session to another identity is rejected.' },
186
186
  ],