@wildo-ai/saas-models 1.1.7 → 1.1.8

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 (861) hide show
  1. package/dist/esm/__tests__/setup.d.ts.map +1 -1
  2. package/dist/esm/__tests__/setup.js.map +1 -1
  3. package/dist/esm/_inspect.d.ts.map +1 -1
  4. package/dist/esm/_inspect.js.map +1 -1
  5. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.d.ts.map +1 -1
  6. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.js.map +1 -1
  7. package/dist/esm/applications/application-subject.shared.schemas.d.ts.map +1 -1
  8. package/dist/esm/applications/application-subject.shared.schemas.js.map +1 -1
  9. package/dist/esm/applications/application-versions.shared.resources-config.schemas.d.ts.map +1 -1
  10. package/dist/esm/applications/application-versions.shared.resources-config.schemas.js.map +1 -1
  11. package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
  12. package/dist/esm/applications/applications-context.schemas.js.map +1 -1
  13. package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
  14. package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
  15. package/dist/esm/applications/applications.shared.schemas.d.ts.map +1 -1
  16. package/dist/esm/applications/applications.shared.schemas.js.map +1 -1
  17. package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts.map +1 -1
  18. package/dist/esm/billing/billing-account.shared.resources-config.schemas.js.map +1 -1
  19. package/dist/esm/billing/billing-account.shared.schemas.d.ts.map +1 -1
  20. package/dist/esm/billing/billing-account.shared.schemas.js.map +1 -1
  21. package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
  22. package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
  23. package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
  24. package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
  25. package/dist/esm/billing/billing-types.shared.schemas.d.ts.map +1 -1
  26. package/dist/esm/billing/billing-types.shared.schemas.js.map +1 -1
  27. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts.map +1 -1
  28. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js.map +1 -1
  29. package/dist/esm/billing/credit-pool.shared.schemas.d.ts.map +1 -1
  30. package/dist/esm/billing/credit-pool.shared.schemas.js.map +1 -1
  31. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts.map +1 -1
  32. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js.map +1 -1
  33. package/dist/esm/billing/invoice-ref.shared.schemas.d.ts.map +1 -1
  34. package/dist/esm/billing/invoice-ref.shared.schemas.js.map +1 -1
  35. package/dist/esm/billing/price.shared.resources-config.schemas.d.ts.map +1 -1
  36. package/dist/esm/billing/price.shared.resources-config.schemas.js.map +1 -1
  37. package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
  38. package/dist/esm/billing/price.shared.schemas.js.map +1 -1
  39. package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts.map +1 -1
  40. package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
  41. package/dist/esm/billing/product-definition.shared.schemas.d.ts.map +1 -1
  42. package/dist/esm/billing/product-definition.shared.schemas.js.map +1 -1
  43. package/dist/esm/billing/product.shared.resources-config.schemas.d.ts.map +1 -1
  44. package/dist/esm/billing/product.shared.resources-config.schemas.js.map +1 -1
  45. package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
  46. package/dist/esm/billing/product.shared.schemas.js.map +1 -1
  47. package/dist/esm/billing/promotions.shared.resources-config.schemas.d.ts.map +1 -1
  48. package/dist/esm/billing/promotions.shared.resources-config.schemas.js.map +1 -1
  49. package/dist/esm/billing/promotions.shared.schemas.d.ts.map +1 -1
  50. package/dist/esm/billing/promotions.shared.schemas.js.map +1 -1
  51. package/dist/esm/billing/public-pricing-catalog.shared.atoms.d.ts.map +1 -1
  52. package/dist/esm/billing/public-pricing-catalog.shared.atoms.js.map +1 -1
  53. package/dist/esm/billing/public-pricing-catalog.shared.d.ts.map +1 -1
  54. package/dist/esm/billing/public-pricing-catalog.shared.js.map +1 -1
  55. package/dist/esm/billing/referral-reward.shared.schemas.d.ts.map +1 -1
  56. package/dist/esm/billing/referral-reward.shared.schemas.js.map +1 -1
  57. package/dist/esm/billing/referral.shared.resources-config.schemas.d.ts.map +1 -1
  58. package/dist/esm/billing/referral.shared.resources-config.schemas.js.map +1 -1
  59. package/dist/esm/billing/referral.shared.schemas.d.ts.map +1 -1
  60. package/dist/esm/billing/referral.shared.schemas.js.map +1 -1
  61. package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts.map +1 -1
  62. package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
  63. package/dist/esm/billing/subscription.shared.schemas.d.ts.map +1 -1
  64. package/dist/esm/billing/subscription.shared.schemas.js.map +1 -1
  65. package/dist/esm/billing/usage-flush-evidence.shared.schemas.d.ts.map +1 -1
  66. package/dist/esm/billing/usage-flush-evidence.shared.schemas.js.map +1 -1
  67. package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts.map +1 -1
  68. package/dist/esm/billing/usage-record.shared.resources-config.schemas.js.map +1 -1
  69. package/dist/esm/billing/usage-record.shared.schemas.d.ts.map +1 -1
  70. package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
  71. package/dist/esm/charts/aggregation-query.shared.schemas.d.ts.map +1 -1
  72. package/dist/esm/charts/aggregation-query.shared.schemas.js.map +1 -1
  73. package/dist/esm/charts/aggregation.shared.definitions.d.ts.map +1 -1
  74. package/dist/esm/charts/aggregation.shared.definitions.js.map +1 -1
  75. package/dist/esm/charts/chart-definition-builder.shared.d.ts.map +1 -1
  76. package/dist/esm/charts/chart-definition-builder.shared.js.map +1 -1
  77. package/dist/esm/companion/artifact-placement.shared.definitions.d.ts.map +1 -1
  78. package/dist/esm/companion/artifact-placement.shared.definitions.js.map +1 -1
  79. package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -1
  80. package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -1
  81. package/dist/esm/companion/shared-library-companion.shared.definitions.d.ts.map +1 -1
  82. package/dist/esm/companion/shared-library-companion.shared.definitions.js.map +1 -1
  83. package/dist/esm/companion-exports.d.ts.map +1 -1
  84. package/dist/esm/companion-exports.js.map +1 -1
  85. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
  86. package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js.map +1 -1
  87. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.d.ts.map +1 -1
  88. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.js.map +1 -1
  89. package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.d.ts.map +1 -1
  90. package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.js.map +1 -1
  91. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.d.ts.map +1 -1
  92. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.js.map +1 -1
  93. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
  94. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js.map +1 -1
  95. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts.map +1 -1
  96. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js.map +1 -1
  97. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts.map +1 -1
  98. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js.map +1 -1
  99. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts.map +1 -1
  100. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
  101. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.d.ts.map +1 -1
  102. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.js.map +1 -1
  103. package/dist/esm/compliance/documents/governed-document-interactions.shared.schemas.d.ts.map +1 -1
  104. package/dist/esm/compliance/documents/governed-document-interactions.shared.schemas.js.map +1 -1
  105. package/dist/esm/compliance/documents/governed-documents.shared.schemas.d.ts.map +1 -1
  106. package/dist/esm/compliance/documents/governed-documents.shared.schemas.js.map +1 -1
  107. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.resources-config.schemas.d.ts.map +1 -1
  108. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.resources-config.schemas.js.map +1 -1
  109. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.schemas.d.ts.map +1 -1
  110. package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.schemas.js.map +1 -1
  111. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.d.ts.map +1 -1
  112. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.js.map +1 -1
  113. package/dist/esm/compliance/privacy/capability-consent-purposes.shared.utils.d.ts.map +1 -1
  114. package/dist/esm/compliance/privacy/capability-consent-purposes.shared.utils.js.map +1 -1
  115. package/dist/esm/compliance/privacy/client-storage.shared.schemas.d.ts.map +1 -1
  116. package/dist/esm/compliance/privacy/client-storage.shared.schemas.js.map +1 -1
  117. package/dist/esm/compliance/privacy/consent-gate-vocabulary.shared.schemas.d.ts.map +1 -1
  118. package/dist/esm/compliance/privacy/consent-gate-vocabulary.shared.schemas.js.map +1 -1
  119. package/dist/esm/compliance/privacy/consent-purposes.shared.d.ts.map +1 -1
  120. package/dist/esm/compliance/privacy/consent-purposes.shared.js.map +1 -1
  121. package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.d.ts.map +1 -1
  122. package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.js.map +1 -1
  123. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts.map +1 -1
  124. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js.map +1 -1
  125. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts.map +1 -1
  126. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js.map +1 -1
  127. package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.d.ts.map +1 -1
  128. package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.js.map +1 -1
  129. package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.d.ts.map +1 -1
  130. package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.js.map +1 -1
  131. package/dist/esm/compliance/privacy/legal-holds.shared.schemas.d.ts.map +1 -1
  132. package/dist/esm/compliance/privacy/legal-holds.shared.schemas.js.map +1 -1
  133. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts.map +1 -1
  134. package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js.map +1 -1
  135. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts.map +1 -1
  136. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js.map +1 -1
  137. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.d.ts.map +1 -1
  138. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.js.map +1 -1
  139. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.d.ts.map +1 -1
  140. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.js.map +1 -1
  141. package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
  142. package/dist/esm/compliance/privacy/privacy.shared.schemas.js.map +1 -1
  143. package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.d.ts.map +1 -1
  144. package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.js.map +1 -1
  145. package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.d.ts.map +1 -1
  146. package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.js.map +1 -1
  147. package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts.map +1 -1
  148. package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
  149. package/dist/esm/compliance/privacy/retention-binding.shared.utils.d.ts.map +1 -1
  150. package/dist/esm/compliance/privacy/retention-binding.shared.utils.js.map +1 -1
  151. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.d.ts.map +1 -1
  152. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.js.map +1 -1
  153. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.d.ts.map +1 -1
  154. package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.js.map +1 -1
  155. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.d.ts.map +1 -1
  156. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.js.map +1 -1
  157. package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.d.ts.map +1 -1
  158. package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.js.map +1 -1
  159. package/dist/esm/compliance/privacy/sharing.shared.schemas.d.ts.map +1 -1
  160. package/dist/esm/compliance/privacy/sharing.shared.schemas.js.map +1 -1
  161. package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.d.ts.map +1 -1
  162. package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.js.map +1 -1
  163. package/dist/esm/compliance/privacy/subject-erasure-lane-evidence.shared.schemas.d.ts.map +1 -1
  164. package/dist/esm/compliance/privacy/subject-erasure-lane-evidence.shared.schemas.js.map +1 -1
  165. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.d.ts.map +1 -1
  166. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.js.map +1 -1
  167. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.d.ts.map +1 -1
  168. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.js.map +1 -1
  169. package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -1
  170. package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -1
  171. package/dist/esm/compliance/review-cadence.shared.schemas.d.ts.map +1 -1
  172. package/dist/esm/compliance/review-cadence.shared.schemas.js.map +1 -1
  173. package/dist/esm/compliance/risk-posture.shared.schemas.d.ts.map +1 -1
  174. package/dist/esm/compliance/risk-posture.shared.schemas.js.map +1 -1
  175. package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
  176. package/dist/esm/config/analytics-value-moments.shared.schemas.js.map +1 -1
  177. package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
  178. package/dist/esm/config/app-configuration-shared.shared.schemas.js.map +1 -1
  179. package/dist/esm/config/app-frontend-type.shared.schemas.d.ts.map +1 -1
  180. package/dist/esm/config/app-frontend-type.shared.schemas.js.map +1 -1
  181. package/dist/esm/config/auth-config-resolution.shared.utils.d.ts.map +1 -1
  182. package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
  183. package/dist/esm/config/brand-assets.shared.schemas.d.ts.map +1 -1
  184. package/dist/esm/config/brand-assets.shared.schemas.js.map +1 -1
  185. package/dist/esm/config/configuration-validation.shared.schemas.d.ts.map +1 -1
  186. package/dist/esm/config/configuration-validation.shared.schemas.js.map +1 -1
  187. package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
  188. package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
  189. package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts.map +1 -1
  190. package/dist/esm/config/frontend/chart-definition.shared.schemas.js.map +1 -1
  191. package/dist/esm/config/frontend/chart-registration-alignment.shared.d.ts.map +1 -1
  192. package/dist/esm/config/frontend/chart-registration-alignment.shared.js.map +1 -1
  193. package/dist/esm/config/frontend/navigation.shared.schemas.d.ts.map +1 -1
  194. package/dist/esm/config/frontend/navigation.shared.schemas.js.map +1 -1
  195. package/dist/esm/config/frontend/onboarding.shared.schemas.d.ts.map +1 -1
  196. package/dist/esm/config/frontend/onboarding.shared.schemas.js.map +1 -1
  197. package/dist/esm/config/postgresql.shared.schemas.d.ts.map +1 -1
  198. package/dist/esm/config/postgresql.shared.schemas.js.map +1 -1
  199. package/dist/esm/config/registration-acquisition-policy.shared.utils.d.ts.map +1 -1
  200. package/dist/esm/config/registration-acquisition-policy.shared.utils.js.map +1 -1
  201. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  202. package/dist/esm/config-authoring.entry.js.map +1 -1
  203. package/dist/esm/crdt/crdt-merge.shared.utils.d.ts.map +1 -1
  204. package/dist/esm/crdt/crdt-merge.shared.utils.js.map +1 -1
  205. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.d.ts.map +1 -1
  206. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.js.map +1 -1
  207. package/dist/esm/errors/caught-error-description.shared.utils.d.ts.map +1 -1
  208. package/dist/esm/errors/caught-error-description.shared.utils.js.map +1 -1
  209. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts.map +1 -1
  210. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
  211. package/dist/esm/errors/errors.shared.definitions.d.ts.map +1 -1
  212. package/dist/esm/errors/errors.shared.definitions.js.map +1 -1
  213. package/dist/esm/errors/errors.shared.schemas.d.ts.map +1 -1
  214. package/dist/esm/errors/errors.shared.schemas.js.map +1 -1
  215. package/dist/esm/errors/errors.shared.utils.d.ts.map +1 -1
  216. package/dist/esm/errors/errors.shared.utils.js.map +1 -1
  217. package/dist/esm/errors/resource-access-forbidden.shared.error.d.ts.map +1 -1
  218. package/dist/esm/errors/resource-access-forbidden.shared.error.js.map +1 -1
  219. package/dist/esm/errors/thrown-value-description.shared.utils.d.ts.map +1 -1
  220. package/dist/esm/errors/thrown-value-description.shared.utils.js.map +1 -1
  221. package/dist/esm/errors/zod-issue-formatting.shared.utils.d.ts.map +1 -1
  222. package/dist/esm/errors/zod-issue-formatting.shared.utils.js.map +1 -1
  223. package/dist/esm/exports/tabular-csv.shared.utils.d.ts.map +1 -1
  224. package/dist/esm/exports/tabular-csv.shared.utils.js.map +1 -1
  225. package/dist/esm/external-data/external-data-pipeline-description.shared.d.ts.map +1 -1
  226. package/dist/esm/external-data/external-data-pipeline-description.shared.js.map +1 -1
  227. package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.d.ts.map +1 -1
  228. package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.js.map +1 -1
  229. package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts.map +1 -1
  230. package/dist/esm/external-data/external-data-pipeline.shared.schemas.js.map +1 -1
  231. package/dist/esm/external-data/external-data-provenance.shared.d.ts.map +1 -1
  232. package/dist/esm/external-data/external-data-provenance.shared.js.map +1 -1
  233. package/dist/esm/external-data.exports.d.ts.map +1 -1
  234. package/dist/esm/external-data.exports.js.map +1 -1
  235. package/dist/esm/external-providers/compose-provider-registry.shared.d.ts.map +1 -1
  236. package/dist/esm/external-providers/compose-provider-registry.shared.js.map +1 -1
  237. package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -1
  238. package/dist/esm/external-providers/engine-capabilities.shared.schemas.js.map +1 -1
  239. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts.map +1 -1
  240. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -1
  241. package/dist/esm/external-providers/engine-capability-surface.shared.d.ts.map +1 -1
  242. package/dist/esm/external-providers/engine-capability-surface.shared.js.map +1 -1
  243. package/dist/esm/external-providers/external-providers.shared.schemas.d.ts.map +1 -1
  244. package/dist/esm/external-providers/external-providers.shared.schemas.js.map +1 -1
  245. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -1
  246. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.js.map +1 -1
  247. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts.map +1 -1
  248. package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js.map +1 -1
  249. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts.map +1 -1
  250. package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js.map +1 -1
  251. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts.map +1 -1
  252. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -1
  253. package/dist/esm/external-providers/frontend-provider-public-config.shared.d.ts.map +1 -1
  254. package/dist/esm/external-providers/frontend-provider-public-config.shared.js.map +1 -1
  255. package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.d.ts.map +1 -1
  256. package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.js.map +1 -1
  257. package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.d.ts.map +1 -1
  258. package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.js.map +1 -1
  259. package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.d.ts.map +1 -1
  260. package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.js.map +1 -1
  261. package/dist/esm/external-providers/provider-authentication-assurance.shared.schemas.d.ts.map +1 -1
  262. package/dist/esm/external-providers/provider-authentication-assurance.shared.schemas.js.map +1 -1
  263. package/dist/esm/external-providers/provider-browser-operations.shared.schemas.d.ts.map +1 -1
  264. package/dist/esm/external-providers/provider-browser-operations.shared.schemas.js.map +1 -1
  265. package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -1
  266. package/dist/esm/external-providers/provider-capability.shared.schemas.js.map +1 -1
  267. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts.map +1 -1
  268. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -1
  269. package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.d.ts.map +1 -1
  270. package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.js.map +1 -1
  271. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts.map +1 -1
  272. package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js.map +1 -1
  273. package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts.map +1 -1
  274. package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -1
  275. package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.d.ts.map +1 -1
  276. package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.js.map +1 -1
  277. package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -1
  278. package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -1
  279. package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.d.ts.map +1 -1
  280. package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.js.map +1 -1
  281. package/dist/esm/external-providers/provider-shared-connections.shared.schemas.d.ts.map +1 -1
  282. package/dist/esm/external-providers/provider-shared-connections.shared.schemas.js.map +1 -1
  283. package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts.map +1 -1
  284. package/dist/esm/external-providers/provider-tier-rule.shared.utils.js.map +1 -1
  285. package/dist/esm/external-providers/provider-usage-cost.shared.d.ts.map +1 -1
  286. package/dist/esm/external-providers/provider-usage-cost.shared.js.map +1 -1
  287. package/dist/esm/external-providers/provider-usage-pricing.example.d.ts.map +1 -1
  288. package/dist/esm/external-providers/provider-usage-pricing.example.js.map +1 -1
  289. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.d.ts.map +1 -1
  290. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.js.map +1 -1
  291. package/dist/esm/features/application-features.shared.resources-config.schemas.d.ts.map +1 -1
  292. package/dist/esm/features/application-features.shared.resources-config.schemas.js.map +1 -1
  293. package/dist/esm/features/connected-feature.example.d.ts.map +1 -1
  294. package/dist/esm/features/connected-feature.example.js.map +1 -1
  295. package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
  296. package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
  297. package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
  298. package/dist/esm/features/feature-builders.shared.js.map +1 -1
  299. package/dist/esm/features/feature-definition.shared.schemas.d.ts.map +1 -1
  300. package/dist/esm/features/feature-definition.shared.schemas.js.map +1 -1
  301. package/dist/esm/features/feature-registry.shared.d.ts.map +1 -1
  302. package/dist/esm/features/feature-registry.shared.js.map +1 -1
  303. package/dist/esm/features/feature-resolution.shared.schemas.d.ts.map +1 -1
  304. package/dist/esm/features/feature-resolution.shared.schemas.js.map +1 -1
  305. package/dist/esm/features/scope-features.shared.schemas.d.ts.map +1 -1
  306. package/dist/esm/features/scope-features.shared.schemas.js.map +1 -1
  307. package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts.map +1 -1
  308. package/dist/esm/features/user-features.shared.resources-config.schemas.js.map +1 -1
  309. package/dist/esm/files/file-remote-reference-link.shared.schemas.d.ts.map +1 -1
  310. package/dist/esm/files/file-remote-reference-link.shared.schemas.js.map +1 -1
  311. package/dist/esm/files/file-upload-grant.shared.schemas.d.ts.map +1 -1
  312. package/dist/esm/files/file-upload-grant.shared.schemas.js.map +1 -1
  313. package/dist/esm/files/files.shared.resources-config.schemas.d.ts.map +1 -1
  314. package/dist/esm/files/files.shared.resources-config.schemas.js.map +1 -1
  315. package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
  316. package/dist/esm/files/files.shared.schemas.js.map +1 -1
  317. package/dist/esm/files/files.shared.utils.d.ts.map +1 -1
  318. package/dist/esm/files/files.shared.utils.js.map +1 -1
  319. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
  320. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js.map +1 -1
  321. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts.map +1 -1
  322. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js.map +1 -1
  323. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts.map +1 -1
  324. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js.map +1 -1
  325. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.d.ts.map +1 -1
  326. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.js.map +1 -1
  327. package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
  328. package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
  329. package/dist/esm/flows-actors/agent-traceability.shared.schemas.d.ts.map +1 -1
  330. package/dist/esm/flows-actors/agent-traceability.shared.schemas.js.map +1 -1
  331. package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.d.ts.map +1 -1
  332. package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.js.map +1 -1
  333. package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.d.ts.map +1 -1
  334. package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.js.map +1 -1
  335. package/dist/esm/flows-actors/agents.shared.schemas.d.ts.map +1 -1
  336. package/dist/esm/flows-actors/agents.shared.schemas.js.map +1 -1
  337. package/dist/esm/flows-actors/autonomous-agents.shared.schemas.d.ts.map +1 -1
  338. package/dist/esm/flows-actors/autonomous-agents.shared.schemas.js.map +1 -1
  339. package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts.map +1 -1
  340. package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -1
  341. package/dist/esm/flows-actors/execution-plan-readiness.shared.utils.d.ts.map +1 -1
  342. package/dist/esm/flows-actors/execution-plan-readiness.shared.utils.js.map +1 -1
  343. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map +1 -1
  344. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js.map +1 -1
  345. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts.map +1 -1
  346. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -1
  347. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts.map +1 -1
  348. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js.map +1 -1
  349. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts.map +1 -1
  350. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js.map +1 -1
  351. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts.map +1 -1
  352. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
  353. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.d.ts.map +1 -1
  354. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.js.map +1 -1
  355. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.d.ts.map +1 -1
  356. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.js.map +1 -1
  357. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts.map +1 -1
  358. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
  359. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.d.ts.map +1 -1
  360. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.js.map +1 -1
  361. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
  362. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js.map +1 -1
  363. package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
  364. package/dist/esm/flows-actors/flows.shared.schemas.js.map +1 -1
  365. package/dist/esm/flows-actors/human-decision.shared.schemas.d.ts.map +1 -1
  366. package/dist/esm/flows-actors/human-decision.shared.schemas.js.map +1 -1
  367. package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts.map +1 -1
  368. package/dist/esm/flows-actors/mcp-servers.shared.schemas.js.map +1 -1
  369. package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.d.ts.map +1 -1
  370. package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.js.map +1 -1
  371. package/dist/esm/flows-actors/model-call-attributions.shared.schemas.d.ts.map +1 -1
  372. package/dist/esm/flows-actors/model-call-attributions.shared.schemas.js.map +1 -1
  373. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.d.ts.map +1 -1
  374. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.js.map +1 -1
  375. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.d.ts.map +1 -1
  376. package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.js.map +1 -1
  377. package/dist/esm/flows-actors/model-cost-summary.shared.schemas.d.ts.map +1 -1
  378. package/dist/esm/flows-actors/model-cost-summary.shared.schemas.js.map +1 -1
  379. package/dist/esm/flows-actors/prompt-ir.shared.schemas.d.ts.map +1 -1
  380. package/dist/esm/flows-actors/prompt-ir.shared.schemas.js.map +1 -1
  381. package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.d.ts.map +1 -1
  382. package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.js.map +1 -1
  383. package/dist/esm/flows-actors/provider-call-records.shared.schemas.d.ts.map +1 -1
  384. package/dist/esm/flows-actors/provider-call-records.shared.schemas.js.map +1 -1
  385. package/dist/esm/flows-actors/review-deadlines.shared.schemas.d.ts.map +1 -1
  386. package/dist/esm/flows-actors/review-deadlines.shared.schemas.js.map +1 -1
  387. package/dist/esm/flows-actors/tasks.actors.shared.schemas.d.ts.map +1 -1
  388. package/dist/esm/flows-actors/tasks.actors.shared.schemas.js.map +1 -1
  389. package/dist/esm/flows-actors/work-attribution.shared.schemas.d.ts.map +1 -1
  390. package/dist/esm/flows-actors/work-attribution.shared.schemas.js.map +1 -1
  391. package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.d.ts.map +1 -1
  392. package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.js.map +1 -1
  393. package/dist/esm/frontend-definitions/settings-destination-ref.definitions.d.ts.map +1 -1
  394. package/dist/esm/frontend-definitions/settings-destination-ref.definitions.js.map +1 -1
  395. package/dist/esm/guidance/guidance-flow.shared.schemas.d.ts.map +1 -1
  396. package/dist/esm/guidance/guidance-flow.shared.schemas.js.map +1 -1
  397. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts.map +1 -1
  398. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js.map +1 -1
  399. package/dist/esm/guidance/guidance-state.shared.schemas.d.ts.map +1 -1
  400. package/dist/esm/guidance/guidance-state.shared.schemas.js.map +1 -1
  401. package/dist/esm/guidance/guidance-state.shared.utils.d.ts.map +1 -1
  402. package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -1
  403. package/dist/esm/guidance/lifecycle-config.shared.schemas.d.ts.map +1 -1
  404. package/dist/esm/guidance/lifecycle-config.shared.schemas.js.map +1 -1
  405. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts.map +1 -1
  406. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js.map +1 -1
  407. package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts.map +1 -1
  408. package/dist/esm/guidance/lifecycle-state.shared.schemas.js.map +1 -1
  409. package/dist/esm/guidance/milestone-builders.shared.d.ts.map +1 -1
  410. package/dist/esm/guidance/milestone-builders.shared.js.map +1 -1
  411. package/dist/esm/guidance/milestone-definition.shared.schemas.d.ts.map +1 -1
  412. package/dist/esm/guidance/milestone-definition.shared.schemas.js.map +1 -1
  413. package/dist/esm/guidance/progression-presentation.shared.schemas.d.ts.map +1 -1
  414. package/dist/esm/guidance/progression-presentation.shared.schemas.js.map +1 -1
  415. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
  416. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js.map +1 -1
  417. package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
  418. package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
  419. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.d.ts.map +1 -1
  420. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.js.map +1 -1
  421. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts.map +1 -1
  422. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -1
  423. package/dist/esm/http-api-binding/http-api-erasure-stance.shared.d.ts.map +1 -1
  424. package/dist/esm/http-api-binding/http-api-erasure-stance.shared.js.map +1 -1
  425. package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.d.ts.map +1 -1
  426. package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.js.map +1 -1
  427. package/dist/esm/http-api-binding/http-api-transport-dialect.shared.d.ts.map +1 -1
  428. package/dist/esm/http-api-binding/http-api-transport-dialect.shared.js.map +1 -1
  429. package/dist/esm/http-api-binding/read-through-engine-anchors.shared.d.ts.map +1 -1
  430. package/dist/esm/http-api-binding/read-through-engine-anchors.shared.js.map +1 -1
  431. package/dist/esm/i18n/application-config-vocabulary.shared.d.ts.map +1 -1
  432. package/dist/esm/i18n/application-config-vocabulary.shared.js.map +1 -1
  433. package/dist/esm/i18n/engine-open-vocabulary-values.shared.d.ts.map +1 -1
  434. package/dist/esm/i18n/engine-open-vocabulary-values.shared.js.map +1 -1
  435. package/dist/esm/i18n/engine-open-vocabulary.shared.d.ts.map +1 -1
  436. package/dist/esm/i18n/engine-open-vocabulary.shared.js.map +1 -1
  437. package/dist/esm/i18n/interpolate-label-params.shared.utils.d.ts.map +1 -1
  438. package/dist/esm/i18n/interpolate-label-params.shared.utils.js.map +1 -1
  439. package/dist/esm/i18n/labelling.dto.shared.schemas.d.ts.map +1 -1
  440. package/dist/esm/i18n/labelling.dto.shared.schemas.js.map +1 -1
  441. package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.d.ts.map +1 -1
  442. package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.js.map +1 -1
  443. package/dist/esm/inbound/conversation-threads.shared.schemas.d.ts.map +1 -1
  444. package/dist/esm/inbound/conversation-threads.shared.schemas.js.map +1 -1
  445. package/dist/esm/inbound/inbound-channels.shared.schemas.d.ts.map +1 -1
  446. package/dist/esm/inbound/inbound-channels.shared.schemas.js.map +1 -1
  447. package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.d.ts.map +1 -1
  448. package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.js.map +1 -1
  449. package/dist/esm/inbound/inbound-delivery.shared.schemas.d.ts.map +1 -1
  450. package/dist/esm/inbound/inbound-delivery.shared.schemas.js.map +1 -1
  451. package/dist/esm/inbound/inbound-endpoint-env.shared.d.ts.map +1 -1
  452. package/dist/esm/inbound/inbound-endpoint-env.shared.js.map +1 -1
  453. package/dist/esm/index.d.ts.map +1 -1
  454. package/dist/esm/index.js.map +1 -1
  455. package/dist/esm/meta-workflows/actions.meta-workflows.shared.schemas.d.ts.map +1 -1
  456. package/dist/esm/meta-workflows/actions.meta-workflows.shared.schemas.js.map +1 -1
  457. package/dist/esm/meta-workflows/catalog.meta-workflows.shared.schemas.d.ts.map +1 -1
  458. package/dist/esm/meta-workflows/catalog.meta-workflows.shared.schemas.js.map +1 -1
  459. package/dist/esm/meta-workflows/coding-tasks.meta-workflows.shared.schemas.d.ts.map +1 -1
  460. package/dist/esm/meta-workflows/coding-tasks.meta-workflows.shared.schemas.js.map +1 -1
  461. package/dist/esm/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -1
  462. package/dist/esm/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map +1 -1
  463. package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts.map +1 -1
  464. package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -1
  465. package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.d.ts.map +1 -1
  466. package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.js.map +1 -1
  467. package/dist/esm/meta-workflows/portable-primitives.meta-workflows.shared.schemas.d.ts.map +1 -1
  468. package/dist/esm/meta-workflows/portable-primitives.meta-workflows.shared.schemas.js.map +1 -1
  469. package/dist/esm/meta-workflows.exports.d.ts.map +1 -1
  470. package/dist/esm/meta-workflows.exports.js.map +1 -1
  471. package/dist/esm/monitoring/monitoring.shared.schemas.d.ts.map +1 -1
  472. package/dist/esm/monitoring/monitoring.shared.schemas.js.map +1 -1
  473. package/dist/esm/notifications/email/email-context.shared.schemas.d.ts.map +1 -1
  474. package/dist/esm/notifications/email/email-context.shared.schemas.js.map +1 -1
  475. package/dist/esm/notifications/email/email-submission.shared.enums.d.ts.map +1 -1
  476. package/dist/esm/notifications/email/email-submission.shared.enums.js.map +1 -1
  477. package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts.map +1 -1
  478. package/dist/esm/notifications/email/email-template-registry.shared.schemas.js.map +1 -1
  479. package/dist/esm/notifications/email/email-template.shared.enums.d.ts.map +1 -1
  480. package/dist/esm/notifications/email/email-template.shared.enums.js.map +1 -1
  481. package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.d.ts.map +1 -1
  482. package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.js.map +1 -1
  483. package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.d.ts.map +1 -1
  484. package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.js.map +1 -1
  485. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.d.ts.map +1 -1
  486. package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.js.map +1 -1
  487. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
  488. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.js.map +1 -1
  489. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.d.ts.map +1 -1
  490. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.js.map +1 -1
  491. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts.map +1 -1
  492. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js.map +1 -1
  493. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -1
  494. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -1
  495. package/dist/esm/notifications/notification-badges.core.definitions.d.ts.map +1 -1
  496. package/dist/esm/notifications/notification-badges.core.definitions.js.map +1 -1
  497. package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
  498. package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
  499. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts.map +1 -1
  500. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js.map +1 -1
  501. package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
  502. package/dist/esm/notifications/notifications.shared.schemas.js.map +1 -1
  503. package/dist/esm/organizations/application-owner-organization.shared.schemas.d.ts.map +1 -1
  504. package/dist/esm/organizations/application-owner-organization.shared.schemas.js.map +1 -1
  505. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.d.ts.map +1 -1
  506. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js.map +1 -1
  507. package/dist/esm/organizations/organization-features.shared.schemas.d.ts.map +1 -1
  508. package/dist/esm/organizations/organization-features.shared.schemas.js.map +1 -1
  509. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts.map +1 -1
  510. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js.map +1 -1
  511. package/dist/esm/organizations/organization-members.shared.schemas.d.ts.map +1 -1
  512. package/dist/esm/organizations/organization-members.shared.schemas.js.map +1 -1
  513. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.d.ts.map +1 -1
  514. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.js.map +1 -1
  515. package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts.map +1 -1
  516. package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
  517. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  518. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.js.map +1 -1
  519. package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.map +1 -1
  520. package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
  521. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.d.ts.map +1 -1
  522. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.js.map +1 -1
  523. package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
  524. package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
  525. package/dist/esm/organizations/organization-unit-inheritance.shared.d.ts.map +1 -1
  526. package/dist/esm/organizations/organization-unit-inheritance.shared.js.map +1 -1
  527. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.d.ts.map +1 -1
  528. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.js.map +1 -1
  529. package/dist/esm/organizations/organization-unit-members.shared.schemas.d.ts.map +1 -1
  530. package/dist/esm/organizations/organization-unit-members.shared.schemas.js.map +1 -1
  531. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.d.ts.map +1 -1
  532. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.js.map +1 -1
  533. package/dist/esm/organizations/organization-unit-narrowing.example.d.ts.map +1 -1
  534. package/dist/esm/organizations/organization-unit-narrowing.example.js.map +1 -1
  535. package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -1
  536. package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -1
  537. package/dist/esm/organizations/organization-units.shared.path.d.ts.map +1 -1
  538. package/dist/esm/organizations/organization-units.shared.path.js.map +1 -1
  539. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.d.ts.map +1 -1
  540. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.js.map +1 -1
  541. package/dist/esm/organizations/organization-units.shared.schemas.d.ts.map +1 -1
  542. package/dist/esm/organizations/organization-units.shared.schemas.js.map +1 -1
  543. package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts.map +1 -1
  544. package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
  545. package/dist/esm/organizations/organizations.shared.schemas.d.ts.map +1 -1
  546. package/dist/esm/organizations/organizations.shared.schemas.js.map +1 -1
  547. package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.d.ts.map +1 -1
  548. package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.js.map +1 -1
  549. package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.d.ts.map +1 -1
  550. package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.js.map +1 -1
  551. package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.d.ts.map +1 -1
  552. package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.js.map +1 -1
  553. package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.d.ts.map +1 -1
  554. package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.js.map +1 -1
  555. package/dist/esm/organizations/service-provider-client-controls.shared.schemas.d.ts.map +1 -1
  556. package/dist/esm/organizations/service-provider-client-controls.shared.schemas.js.map +1 -1
  557. package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.d.ts.map +1 -1
  558. package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.js.map +1 -1
  559. package/dist/esm/organizations/service-provider-relationships.shared.schemas.d.ts.map +1 -1
  560. package/dist/esm/organizations/service-provider-relationships.shared.schemas.js.map +1 -1
  561. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts.map +1 -1
  562. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js.map +1 -1
  563. package/dist/esm/provider-registration-runtime.exports.d.ts.map +1 -1
  564. package/dist/esm/provider-registration-runtime.exports.js.map +1 -1
  565. package/dist/esm/public-runtime/index.d.ts.map +1 -1
  566. package/dist/esm/public-runtime/index.js.map +1 -1
  567. package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts.map +1 -1
  568. package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
  569. package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
  570. package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
  571. package/dist/esm/queue/jobs.shared.utils.d.ts.map +1 -1
  572. package/dist/esm/queue/jobs.shared.utils.js.map +1 -1
  573. package/dist/esm/queue/queues.shared.schemas.d.ts.map +1 -1
  574. package/dist/esm/queue/queues.shared.schemas.js.map +1 -1
  575. package/dist/esm/queue/queues.shared.utils.d.ts.map +1 -1
  576. package/dist/esm/queue/queues.shared.utils.js.map +1 -1
  577. package/dist/esm/queue/rabbitmq-queue-args.shared.d.ts.map +1 -1
  578. package/dist/esm/queue/rabbitmq-queue-args.shared.js.map +1 -1
  579. package/dist/esm/rag/rag-retrieval-health.shared.d.ts.map +1 -1
  580. package/dist/esm/rag/rag-retrieval-health.shared.js.map +1 -1
  581. package/dist/esm/requests/header-keys.shared.d.ts.map +1 -1
  582. package/dist/esm/requests/header-keys.shared.js.map +1 -1
  583. package/dist/esm/requests/http-requests.shared.d.ts.map +1 -1
  584. package/dist/esm/requests/http-requests.shared.js.map +1 -1
  585. package/dist/esm/requests/idempotency-key.shared.d.ts.map +1 -1
  586. package/dist/esm/requests/idempotency-key.shared.js.map +1 -1
  587. package/dist/esm/requests/manual-controllers-routes-documentation.d.ts.map +1 -1
  588. package/dist/esm/requests/manual-controllers-routes-documentation.js.map +1 -1
  589. package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
  590. package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
  591. package/dist/esm/requests/rate-limits.shared.schemas.d.ts.map +1 -1
  592. package/dist/esm/requests/rate-limits.shared.schemas.js.map +1 -1
  593. package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
  594. package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
  595. package/dist/esm/resources/child-operations.shared.schemas.d.ts.map +1 -1
  596. package/dist/esm/resources/child-operations.shared.schemas.js.map +1 -1
  597. package/dist/esm/resources/collection-query-parameters.shared.d.ts.map +1 -1
  598. package/dist/esm/resources/collection-query-parameters.shared.js.map +1 -1
  599. package/dist/esm/resources/context-policy.shared.schemas.d.ts.map +1 -1
  600. package/dist/esm/resources/context-policy.shared.schemas.js.map +1 -1
  601. package/dist/esm/resources/embedded-resource-mark.shared.utils.d.ts.map +1 -1
  602. package/dist/esm/resources/embedded-resource-mark.shared.utils.js.map +1 -1
  603. package/dist/esm/resources/relationship-display.shared.schemas.d.ts.map +1 -1
  604. package/dist/esm/resources/relationship-display.shared.schemas.js.map +1 -1
  605. package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
  606. package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
  607. package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
  608. package/dist/esm/resources/resources-config.shared.schemas.js.map +1 -1
  609. package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts.map +1 -1
  610. package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
  611. package/dist/esm/resources/resources-relationships.shared.factory.d.ts.map +1 -1
  612. package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
  613. package/dist/esm/resources/resources-serialization.shared.schemas.d.ts.map +1 -1
  614. package/dist/esm/resources/resources-serialization.shared.schemas.js.map +1 -1
  615. package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
  616. package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
  617. package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
  618. package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
  619. package/dist/esm/resources/resources.shared.utils.d.ts.map +1 -1
  620. package/dist/esm/resources/resources.shared.utils.js.map +1 -1
  621. package/dist/esm/resources/utils/collection-export.shared.utils.d.ts.map +1 -1
  622. package/dist/esm/resources/utils/collection-export.shared.utils.js.map +1 -1
  623. package/dist/esm/resources/utils/composition-cascade-deletability.validation.d.ts.map +1 -1
  624. package/dist/esm/resources/utils/composition-cascade-deletability.validation.js.map +1 -1
  625. package/dist/esm/resources/utils/composition-seedability.validation.d.ts.map +1 -1
  626. package/dist/esm/resources/utils/composition-seedability.validation.js.map +1 -1
  627. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.d.ts.map +1 -1
  628. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.js.map +1 -1
  629. package/dist/esm/resources/utils/dependent-lifecycle-classification.validation.d.ts.map +1 -1
  630. package/dist/esm/resources/utils/dependent-lifecycle-classification.validation.js.map +1 -1
  631. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.d.ts.map +1 -1
  632. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.js.map +1 -1
  633. package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts.map +1 -1
  634. package/dist/esm/resources/utils/field-value-disclosure.utils.js.map +1 -1
  635. package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.d.ts.map +1 -1
  636. package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.js.map +1 -1
  637. package/dist/esm/resources/utils/initiator-stamped-field-satisfiability.validation.d.ts.map +1 -1
  638. package/dist/esm/resources/utils/initiator-stamped-field-satisfiability.validation.js.map +1 -1
  639. package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.d.ts.map +1 -1
  640. package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.js.map +1 -1
  641. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.d.ts.map +1 -1
  642. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.js.map +1 -1
  643. package/dist/esm/resources/utils/populated-file-fields.shared.utils.d.ts.map +1 -1
  644. package/dist/esm/resources/utils/populated-file-fields.shared.utils.js.map +1 -1
  645. package/dist/esm/resources/utils/repository-dto-builder.utils.d.ts.map +1 -1
  646. package/dist/esm/resources/utils/repository-dto-builder.utils.js.map +1 -1
  647. package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.d.ts.map +1 -1
  648. package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.js.map +1 -1
  649. package/dist/esm/resources/utils/required-fk-fillability.validation.d.ts.map +1 -1
  650. package/dist/esm/resources/utils/required-fk-fillability.validation.js.map +1 -1
  651. package/dist/esm/resources/utils/resource-operation-type-guards.utils.d.ts.map +1 -1
  652. package/dist/esm/resources/utils/resource-operation-type-guards.utils.js.map +1 -1
  653. package/dist/esm/resources/utils/resource-polymorphism.factory.d.ts.map +1 -1
  654. package/dist/esm/resources/utils/resource-polymorphism.factory.js.map +1 -1
  655. package/dist/esm/resources/utils/resource-polymorphism.relationships.d.ts.map +1 -1
  656. package/dist/esm/resources/utils/resource-polymorphism.relationships.js.map +1 -1
  657. package/dist/esm/resources/utils/resource-polymorphism.schemas.d.ts.map +1 -1
  658. package/dist/esm/resources/utils/resource-polymorphism.schemas.js.map +1 -1
  659. package/dist/esm/resources/utils/resource-polymorphism.utils.d.ts.map +1 -1
  660. package/dist/esm/resources/utils/resource-polymorphism.utils.js.map +1 -1
  661. package/dist/esm/resources/utils/resource-subtree.utils.d.ts.map +1 -1
  662. package/dist/esm/resources/utils/resource-subtree.utils.js.map +1 -1
  663. package/dist/esm/resources/utils/resources-config-context-needs.utils.d.ts.map +1 -1
  664. package/dist/esm/resources/utils/resources-config-context-needs.utils.js.map +1 -1
  665. package/dist/esm/resources/utils/resources-config-naming.utils.d.ts.map +1 -1
  666. package/dist/esm/resources/utils/resources-config-naming.utils.js.map +1 -1
  667. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts.map +1 -1
  668. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js.map +1 -1
  669. package/dist/esm/resources/utils/resources-config-operations.path.utils.d.ts.map +1 -1
  670. package/dist/esm/resources/utils/resources-config-operations.path.utils.js.map +1 -1
  671. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.d.ts.map +1 -1
  672. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.js.map +1 -1
  673. package/dist/esm/resources/utils/resources-config-operations.utils.d.ts.map +1 -1
  674. package/dist/esm/resources/utils/resources-config-operations.utils.js.map +1 -1
  675. package/dist/esm/resources/utils/resources-serialization.utils.d.ts.map +1 -1
  676. package/dist/esm/resources/utils/resources-serialization.utils.js.map +1 -1
  677. package/dist/esm/resources/utils/resources-summary.utils.d.ts.map +1 -1
  678. package/dist/esm/resources/utils/resources-summary.utils.js.map +1 -1
  679. package/dist/esm/resources/utils/schema-family-builder.utils.d.ts.map +1 -1
  680. package/dist/esm/resources/utils/schema-family-builder.utils.js.map +1 -1
  681. package/dist/esm/resources/utils/schema-type-inference.utils.d.ts.map +1 -1
  682. package/dist/esm/resources/utils/schema-type-inference.utils.js.map +1 -1
  683. package/dist/esm/resources/utils/schema-type-utils.d.ts.map +1 -1
  684. package/dist/esm/resources/utils/schema-type-utils.js.map +1 -1
  685. package/dist/esm/resources/utils/schema-variant-resolver.utils.d.ts.map +1 -1
  686. package/dist/esm/resources/utils/schema-variant-resolver.utils.js.map +1 -1
  687. package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts.map +1 -1
  688. package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -1
  689. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.d.ts.map +1 -1
  690. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.js.map +1 -1
  691. package/dist/esm/resources/work-unit.shared.schemas.d.ts.map +1 -1
  692. package/dist/esm/resources/work-unit.shared.schemas.js.map +1 -1
  693. package/dist/esm/runtime/domain-module.shared.definitions.d.ts.map +1 -1
  694. package/dist/esm/runtime/domain-module.shared.definitions.js.map +1 -1
  695. package/dist/esm/runtime/execution-context.shared.schemas.d.ts.map +1 -1
  696. package/dist/esm/runtime/execution-context.shared.schemas.js.map +1 -1
  697. package/dist/esm/runtime/runtime.shared.schemas.d.ts.map +1 -1
  698. package/dist/esm/runtime/runtime.shared.schemas.js.map +1 -1
  699. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts.map +1 -1
  700. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js.map +1 -1
  701. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts.map +1 -1
  702. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
  703. package/dist/esm/security/api-keys/api-keys.shared.schemas.d.ts.map +1 -1
  704. package/dist/esm/security/api-keys/api-keys.shared.schemas.js.map +1 -1
  705. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.d.ts.map +1 -1
  706. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.js.map +1 -1
  707. package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
  708. package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
  709. package/dist/esm/security/authentications/authentication.shared.schemas.d.ts.map +1 -1
  710. package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
  711. package/dist/esm/security/authentications/authentication.shared.utils.d.ts.map +1 -1
  712. package/dist/esm/security/authentications/authentication.shared.utils.js.map +1 -1
  713. package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts.map +1 -1
  714. package/dist/esm/security/authentications/consumable-token.shared.schemas.js.map +1 -1
  715. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.d.ts.map +1 -1
  716. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.js.map +1 -1
  717. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.d.ts.map +1 -1
  718. package/dist/esm/security/authentications/mfa-backup-code-contract.shared.js.map +1 -1
  719. package/dist/esm/security/authentications/password-blocklist.shared.utils.d.ts.map +1 -1
  720. package/dist/esm/security/authentications/password-blocklist.shared.utils.js.map +1 -1
  721. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.d.ts.map +1 -1
  722. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.js.map +1 -1
  723. package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
  724. package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
  725. package/dist/esm/security/authentications/same-origin-redirect-path.shared.d.ts.map +1 -1
  726. package/dist/esm/security/authentications/same-origin-redirect-path.shared.js.map +1 -1
  727. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.d.ts.map +1 -1
  728. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.js.map +1 -1
  729. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.d.ts.map +1 -1
  730. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.js.map +1 -1
  731. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts.map +1 -1
  732. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
  733. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.d.ts.map +1 -1
  734. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.js.map +1 -1
  735. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.d.ts.map +1 -1
  736. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.js.map +1 -1
  737. package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.d.ts.map +1 -1
  738. package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.js.map +1 -1
  739. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.d.ts.map +1 -1
  740. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.js.map +1 -1
  741. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.d.ts.map +1 -1
  742. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.js.map +1 -1
  743. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.resources-config.schemas.d.ts.map +1 -1
  744. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.resources-config.schemas.js.map +1 -1
  745. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.schemas.d.ts.map +1 -1
  746. package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.schemas.js.map +1 -1
  747. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts.map +1 -1
  748. package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js.map +1 -1
  749. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.d.ts.map +1 -1
  750. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.js.map +1 -1
  751. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.d.ts.map +1 -1
  752. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.js.map +1 -1
  753. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts.map +1 -1
  754. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js.map +1 -1
  755. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts.map +1 -1
  756. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
  757. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.d.ts.map +1 -1
  758. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.js.map +1 -1
  759. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts.map +1 -1
  760. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js.map +1 -1
  761. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts.map +1 -1
  762. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js.map +1 -1
  763. package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.d.ts.map +1 -1
  764. package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.js.map +1 -1
  765. package/dist/esm/security/authorizations/application-access-grants.shared.schemas.d.ts.map +1 -1
  766. package/dist/esm/security/authorizations/application-access-grants.shared.schemas.js.map +1 -1
  767. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts.map +1 -1
  768. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js.map +1 -1
  769. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts.map +1 -1
  770. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js.map +1 -1
  771. package/dist/esm/security/authorizations/roles.shared.defaults.d.ts.map +1 -1
  772. package/dist/esm/security/authorizations/roles.shared.defaults.js.map +1 -1
  773. package/dist/esm/security/authorizations/roles.shared.schemas.d.ts.map +1 -1
  774. package/dist/esm/security/authorizations/roles.shared.schemas.js.map +1 -1
  775. package/dist/esm/security/authorizations/roles.shared.utils.d.ts.map +1 -1
  776. package/dist/esm/security/authorizations/roles.shared.utils.js.map +1 -1
  777. package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.d.ts.map +1 -1
  778. package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.js.map +1 -1
  779. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts.map +1 -1
  780. package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js.map +1 -1
  781. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts.map +1 -1
  782. package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js.map +1 -1
  783. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts.map +1 -1
  784. package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js.map +1 -1
  785. package/dist/esm/security/credential-rotation-grace.shared.utils.d.ts.map +1 -1
  786. package/dist/esm/security/credential-rotation-grace.shared.utils.js.map +1 -1
  787. package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.d.ts.map +1 -1
  788. package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.js.map +1 -1
  789. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts.map +1 -1
  790. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js.map +1 -1
  791. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts.map +1 -1
  792. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js.map +1 -1
  793. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts.map +1 -1
  794. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -1
  795. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts.map +1 -1
  796. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js.map +1 -1
  797. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts.map +1 -1
  798. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -1
  799. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.d.ts.map +1 -1
  800. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.js.map +1 -1
  801. package/dist/esm/security/outbound-target-control.shared.schemas.d.ts.map +1 -1
  802. package/dist/esm/security/outbound-target-control.shared.schemas.js.map +1 -1
  803. package/dist/esm/security/submission-challenge/submission-challenge.shared.d.ts.map +1 -1
  804. package/dist/esm/security/submission-challenge/submission-challenge.shared.js.map +1 -1
  805. package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.d.ts.map +1 -1
  806. package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.js.map +1 -1
  807. package/dist/esm/systems-of-record/system-of-record-credential-kind.shared.d.ts.map +1 -1
  808. package/dist/esm/systems-of-record/system-of-record-credential-kind.shared.js.map +1 -1
  809. package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.d.ts.map +1 -1
  810. package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.js.map +1 -1
  811. package/dist/esm/systems-of-record/system-of-record-env.shared.d.ts.map +1 -1
  812. package/dist/esm/systems-of-record/system-of-record-env.shared.js.map +1 -1
  813. package/dist/esm/systems-of-record/system-of-record-error-codes.shared.d.ts.map +1 -1
  814. package/dist/esm/systems-of-record/system-of-record-error-codes.shared.js.map +1 -1
  815. package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.d.ts.map +1 -1
  816. package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.js.map +1 -1
  817. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.d.ts.map +1 -1
  818. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.js.map +1 -1
  819. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.schemas.d.ts.map +1 -1
  820. package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.schemas.js.map +1 -1
  821. package/dist/esm/testing/resource-config-builders.d.ts.map +1 -1
  822. package/dist/esm/testing/resource-config-builders.js.map +1 -1
  823. package/dist/esm/testing.d.ts.map +1 -1
  824. package/dist/esm/testing.js.map +1 -1
  825. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.d.ts.map +1 -1
  826. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.js.map +1 -1
  827. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.d.ts.map +1 -1
  828. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.js.map +1 -1
  829. package/dist/esm/users/anonymous-users.shared.schema.d.ts.map +1 -1
  830. package/dist/esm/users/anonymous-users.shared.schema.js.map +1 -1
  831. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts.map +1 -1
  832. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js.map +1 -1
  833. package/dist/esm/users/inbound-contacts.shared.schemas.d.ts.map +1 -1
  834. package/dist/esm/users/inbound-contacts.shared.schemas.js.map +1 -1
  835. package/dist/esm/users/user-consent-decision.shared.utils.d.ts.map +1 -1
  836. package/dist/esm/users/user-consent-decision.shared.utils.js.map +1 -1
  837. package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts.map +1 -1
  838. package/dist/esm/users/user-credentials.shared.resources-config.schemas.js.map +1 -1
  839. package/dist/esm/users/user-credentials.shared.schemas.d.ts.map +1 -1
  840. package/dist/esm/users/user-credentials.shared.schemas.js.map +1 -1
  841. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts.map +1 -1
  842. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js.map +1 -1
  843. package/dist/esm/users/user-identity-links.shared.schemas.d.ts.map +1 -1
  844. package/dist/esm/users/user-identity-links.shared.schemas.js.map +1 -1
  845. package/dist/esm/users/user-preferences-reset.shared.utils.d.ts.map +1 -1
  846. package/dist/esm/users/user-preferences-reset.shared.utils.js.map +1 -1
  847. package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  848. package/dist/esm/users/user-preferences.shared.resources-config.schemas.js.map +1 -1
  849. package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  850. package/dist/esm/users/user-profiles.shared.resources-config.schemas.js.map +1 -1
  851. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  852. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js.map +1 -1
  853. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  854. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js.map +1 -1
  855. package/dist/esm/users/user-self.shared.resources-config.schemas.d.ts.map +1 -1
  856. package/dist/esm/users/user-self.shared.resources-config.schemas.js.map +1 -1
  857. package/dist/esm/users/users.shared.resources-config.schemas.d.ts.map +1 -1
  858. package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
  859. package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
  860. package/dist/esm/users/users.shared.schemas.js.map +1 -1
  861. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"review-deadlines.shared.schemas.js","sourceRoot":"","sources":["../../../src/flows-actors/review-deadlines.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sCAAsC,EAAE,MA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ChG,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC;IACtG,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/**\n * #1628 — deadlines, reminders and escalation for pending human decisions: the declaration a gate carries,\n * the application's business calendar, and the pure arithmetic both planes arm and advance clocks with.\n *\n * Nothing here reads a store or a clock. Every function takes the instants it reasons about, which is what\n * lets the sweep, the pause/resume doors and the tests share one definition of \"when is this due\".\n *\n * ## The model (researched 2026-09-25; the sources are on #1628)\n *\n * - Two SERVICE-TARGET clocks — CLAIM and DECISION — separate from the LAPSE, the hard stop. Missing a target\n * fires actions and changes nothing else (WS-HumanTask 1.1 §4.9: \"The state of the task is not changed\").\n * spec-cite: OASIS WS-HumanTask 1.1 (cs-01) §4.9 \"Elements for Handling Timeouts and Escalations\", fetched 2026-09-27 from https://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html\n * - Durations are ISO-8601 durations (`PT12H`, `P2D`), the form BPMN 2.0.2 timer events and Camunda use.\n * Years and months are refused: their length depends on the calendar date, so they are not durations.\n * - A target counts ELAPSED time by default, or only the working hours of the application's calendar.\n * The lapse always counts ELAPSED time: it bounds how long a turn stays open, and a calendar lapse would\n * let one stay open for a week of holidays.\n */\nimport { z } from 'zod';\n\nimport { FLOW_ACTOR_APPROVAL_DEFAULT_TIMEOUT_MS } from './flows-actors-execution.shared.schemas';\nimport { isLabelKeySegment } from '../i18n/application-config-vocabulary.shared';\nimport { ReviewClockBasis, ReviewDeadlineKind, ReviewDeadlineOutcome, ReviewDeadlineStage, ReviewEscalationActionKind, HumanDecision_Outcome, HumanDecision_RouteKind } from './human-decision.shared.schemas';\n\n//===============================================================\n// Durations\n//===============================================================\n\n/**\n * `P[nW][nD][T[nH][nM][n[.n]S]]`. No years or months, and at least one component. A week is seven days\n * of elapsed time; on a CALENDAR clock the milliseconds are then counted inside working hours only.\n */\nconst REVIEW_DURATION_PATTERN = /^P(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$/;\n\nconst MS_PER_SECOND = 1000;\nconst MS_PER_MINUTE = 60 * MS_PER_SECOND;\nconst MS_PER_HOUR = 60 * MS_PER_MINUTE;\nconst MS_PER_DAY = 24 * MS_PER_HOUR;\n\n/** The duration in milliseconds, or `undefined` when `value` is not a positive ISO-8601 duration this model admits. */\nexport function parseReviewDurationMs(value: string): number | undefined {\n const match = REVIEW_DURATION_PATTERN.exec(value);\n if (!match || value === 'P' || value.endsWith('T')) return undefined;\n const [, weeks, days, hours, minutes, seconds] = match;\n const ms = Number(weeks ?? 0) * 7 * MS_PER_DAY\n + Number(days ?? 0) * MS_PER_DAY\n + Number(hours ?? 0) * MS_PER_HOUR\n + Number(minutes ?? 0) * MS_PER_MINUTE\n + Math.round(Number(seconds ?? 0) * MS_PER_SECOND);\n return ms > 0 ? ms : undefined;\n}\n\n/** An ISO-8601 duration such as `PT12H` or `P2D`. */\nexport const ReviewDurationSchema = z.string().refine((value) => parseReviewDurationMs(value) !== undefined, {\n message: 'Expected a positive ISO-8601 duration without years or months, such as \"PT12H\", \"P2D\" or \"PT30M\".',\n});\n\n//===============================================================\n// Business calendar\n//===============================================================\n\n/** A day of the week, as the business calendar names working days. */\nexport enum CalendarWeekday {\n MONDAY = 'monday',\n TUESDAY = 'tuesday',\n WEDNESDAY = 'wednesday',\n THURSDAY = 'thursday',\n FRIDAY = 'friday',\n SATURDAY = 'saturday',\n SUNDAY = 'sunday',\n}\n\n/** `Intl`'s short English weekday names, mapped to the vocabulary. Only this module formats dates in English, and never for display. */\nconst WEEKDAY_OF_INTL_SHORT_NAME: Readonly<Record<string, CalendarWeekday>> = Object.freeze({\n Mon: CalendarWeekday.MONDAY,\n Tue: CalendarWeekday.TUESDAY,\n Wed: CalendarWeekday.WEDNESDAY,\n Thu: CalendarWeekday.THURSDAY,\n Fri: CalendarWeekday.FRIDAY,\n Sat: CalendarWeekday.SATURDAY,\n Sun: CalendarWeekday.SUNDAY,\n});\n\nconst LOCAL_TIME_PATTERN = /^([01]\\d|2[0-3]):([0-5]\\d)$/;\nconst LOCAL_DATE_PATTERN = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/;\n\nfunction minutesOfLocalTime(value: string): number {\n const match = LOCAL_TIME_PATTERN.exec(value);\n if (!match) throw new ReviewCalendarError(`\"${value}\" is not a local time of the form HH:MM.`);\n return Number(match[1]) * 60 + Number(match[2]);\n}\n\nfunction isKnownTimeZone(timeZone: string): boolean {\n try {\n new Intl.DateTimeFormat('en-US', { timeZone });\n return true;\n } catch {\n return false;\n }\n}\n\n/** @wildo_source:part:start saas.models.flows-actors.review-calendar facet:layer:shared facet:family:flows-actors facet:audience:app-developer */\n/**\n * The application's business calendar (#1628): when reviewers are expected to be working. Declared ONCE by\n * the application, in its backend configuration as `reviewCalendar`, and read by every gate whose CLAIM or\n * DECISION clock asks for the `CALENDAR` basis.\n *\n * - `timeZone` is an IANA zone (`Europe/Paris`). Working hours and holidays are read in it, so a deadline\n * stays right across a daylight-saving change.\n * - `workingHours` is one window per working day, `start` before `end`; a window crossing midnight is refused.\n * - `holidays` are local dates (`2026-12-25`) on which no working time counts, whatever the weekday.\n *\n * A decision submitted on Friday evening with a `PT8H` CALENDAR target is due at the end of Monday's\n * working day, not on Saturday morning. The lapse is never counted on this calendar.\n *\n * One calendar per application, not per tenant: a second calendar would be a second source for the same\n * fact, and nothing asks for one yet. The shape allows a per-tenant calendar later without a reshape.\n */\nexport const ReviewCalendarSchema = z.object({\n timeZone: z.string().min(1).refine(isKnownTimeZone, { message: 'Expected an IANA time zone such as \"Europe/Paris\".' }),\n workingDays: z.array(z.enum(CalendarWeekday)).min(1).default([\n CalendarWeekday.MONDAY, CalendarWeekday.TUESDAY, CalendarWeekday.WEDNESDAY, CalendarWeekday.THURSDAY, CalendarWeekday.FRIDAY,\n ]),\n workingHours: z.object({\n start: z.string().regex(LOCAL_TIME_PATTERN, 'Expected HH:MM'),\n end: z.string().regex(LOCAL_TIME_PATTERN, 'Expected HH:MM'),\n }).refine((hours) => minutesOfLocalTime(hours.start) < minutesOfLocalTime(hours.end), {\n message: 'workingHours.start must be before workingHours.end (a window crossing midnight is not supported).',\n }).default({ start: '09:00', end: '17:00' }),\n holidays: z.array(z.string().regex(LOCAL_DATE_PATTERN, 'Expected a local date YYYY-MM-DD')).default([]),\n});\nexport type ReviewCalendar = z.infer<typeof ReviewCalendarSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.review-calendar */\n\n/** A calendar that cannot answer — refused at startup when declared, so reaching this at run time is a defect. */\nexport class ReviewCalendarError extends Error {}\n\ninterface LocalDate { readonly year: number; readonly month: number; readonly day: number }\n\nconst formatterCache = new Map<string, Intl.DateTimeFormat>();\nfunction formatterFor(timeZone: string): Intl.DateTimeFormat {\n let formatter = formatterCache.get(timeZone);\n if (!formatter) {\n formatter = new Intl.DateTimeFormat('en-US', {\n timeZone, hourCycle: 'h23', year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', weekday: 'short',\n });\n formatterCache.set(timeZone, formatter);\n }\n return formatter;\n}\n\ninterface ZonedParts extends LocalDate { readonly hour: number; readonly minute: number; readonly second: number; readonly weekday: CalendarWeekday }\n\nfunction zonedPartsOf(instant: number, timeZone: string): ZonedParts {\n const parts: Record<string, string> = {};\n for (const part of formatterFor(timeZone).formatToParts(new Date(instant))) parts[part.type] = part.value;\n const weekday = WEEKDAY_OF_INTL_SHORT_NAME[parts.weekday ?? ''];\n if (!weekday) throw new ReviewCalendarError(`Could not read the weekday of ${new Date(instant).toISOString()} in \"${timeZone}\".`);\n return {\n year: Number(parts.year), month: Number(parts.month), day: Number(parts.day),\n hour: Number(parts.hour), minute: Number(parts.minute), second: Number(parts.second), weekday,\n };\n}\n\n/** The zone's offset from UTC at `instant`, in milliseconds. */\nfunction zoneOffsetMs(instant: number, timeZone: string): number {\n const p = zonedPartsOf(instant, timeZone);\n return Date.UTC(p.year, p.month - 1, p.day, p.hour, p.minute, p.second) - Math.floor(instant / MS_PER_SECOND) * MS_PER_SECOND;\n}\n\n/**\n * The instant at which the zone's wall clock reads `minutesOfDay` on `date`. Iterates to a fixed point, the\n * standard way to invert an offset that itself depends on the instant. In a spring-forward gap the wall time\n * does not exist and the answer lands just after the gap, which is where working time resumes.\n */\nfunction instantOfLocalTime(date: LocalDate, minutesOfDay: number, timeZone: string): number {\n const wall = Date.UTC(date.year, date.month - 1, date.day, 0, minutesOfDay);\n let guess = wall;\n for (let attempt = 0; attempt < 4; attempt += 1) {\n const next = wall - zoneOffsetMs(guess, timeZone);\n if (next === guess) break;\n guess = next;\n }\n return guess;\n}\n\nfunction nextLocalDate(date: LocalDate): LocalDate {\n const next = new Date(Date.UTC(date.year, date.month - 1, date.day + 1));\n return { year: next.getUTCFullYear(), month: next.getUTCMonth() + 1, day: next.getUTCDate() };\n}\n\nfunction isoLocalDate(date: LocalDate): string {\n return `${String(date.year).padStart(4, '0')}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`;\n}\n\n/** Ten years of days. A calendar with at least one working day finds a window long before this. */\nconst MAX_CALENDAR_DAYS_SCANNED = 3660;\n\ninterface WorkingWindow { readonly start: number; readonly end: number }\n\nfunction previousLocalDate(date: LocalDate): LocalDate {\n const previous = new Date(Date.UTC(date.year, date.month - 1, date.day - 1));\n return { year: previous.getUTCFullYear(), month: previous.getUTCMonth() + 1, day: previous.getUTCDate() };\n}\n\nfunction compareLocalDates(a: LocalDate, b: LocalDate): number {\n return (a.year - b.year) || (a.month - b.month) || (a.day - b.day);\n}\n\nconst WEEKDAY_OF_UTC_DAY: readonly CalendarWeekday[] = Object.freeze([\n CalendarWeekday.SUNDAY, CalendarWeekday.MONDAY, CalendarWeekday.TUESDAY, CalendarWeekday.WEDNESDAY,\n CalendarWeekday.THURSDAY, CalendarWeekday.FRIDAY, CalendarWeekday.SATURDAY,\n]);\n\n/** The local date an instant falls on, in the calendar's zone. */\nfunction localDateOf(instant: number, calendar: ReviewCalendar): LocalDate {\n const parts = zonedPartsOf(instant, calendar.timeZone);\n return { year: parts.year, month: parts.month, day: parts.day };\n}\n\n/**\n * The working window on a local DATE, or `undefined` on a day off.\n *\n * Every walk below steps from DATE to date, never from \"the instant a day begins\" to the next: in a zone\n * whose daylight-saving change happens AT MIDNIGHT (America/Havana, America/Santiago) the local midnight of\n * the changeover day does not exist, and an instant computed for it lands on the day before — so a walk\n * keyed on day-start instants stops advancing (#1628 review M1). A date always advances.\n */\nfunction workingWindowOn(date: LocalDate, calendar: ReviewCalendar): WorkingWindow | undefined {\n const weekday = WEEKDAY_OF_UTC_DAY[new Date(Date.UTC(date.year, date.month - 1, date.day)).getUTCDay()] as CalendarWeekday;\n if (!calendar.workingDays.includes(weekday) || calendar.holidays.includes(isoLocalDate(date))) return undefined;\n return {\n start: instantOfLocalTime(date, minutesOfLocalTime(calendar.workingHours.start), calendar.timeZone),\n end: instantOfLocalTime(date, minutesOfLocalTime(calendar.workingHours.end), calendar.timeZone),\n };\n}\n\n/**\n * `start` moved by `durationMs` of WORKING time on `calendar` — forward for a positive duration, backward\n * for a negative one (a warning `warnBefore` a CALENDAR deadline). A zero duration answers `start`.\n *\n * Forward from outside working hours, the first working minute is where counting begins: a `PT1H` target\n * raised on Saturday is due one hour into Monday's window.\n */\nexport function addBusinessDuration(start: Date, durationMs: number, calendar: ReviewCalendar): Date {\n if (durationMs === 0) return new Date(start.getTime());\n const origin = start.getTime();\n if (durationMs > 0) {\n let date = localDateOf(origin, calendar);\n let remaining = durationMs;\n for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED; scanned += 1, date = nextLocalDate(date)) {\n const window = workingWindowOn(date, calendar);\n if (!window) continue;\n const from = Math.max(origin, window.start);\n if (from >= window.end) continue;\n const available = window.end - from;\n if (remaining <= available) return new Date(from + remaining);\n remaining -= available;\n }\n throw new ReviewCalendarError('The review calendar has no working time in the next ten years.');\n }\n let date = localDateOf(origin, calendar);\n let remaining = -durationMs;\n for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED; scanned += 1, date = previousLocalDate(date)) {\n const window = workingWindowOn(date, calendar);\n if (!window) continue;\n const to = Math.min(origin, window.end);\n if (to <= window.start) continue;\n const available = to - window.start;\n if (remaining <= available) return new Date(to - remaining);\n remaining -= available;\n }\n throw new ReviewCalendarError('The review calendar has no working time in the previous ten years.');\n}\n\n/** How much WORKING time on `calendar` lies between `from` and `to`; zero when `to` is not after `from`. */\nexport function businessDurationBetween(from: Date, to: Date, calendar: ReviewCalendar): number {\n const begin = from.getTime();\n const end = to.getTime();\n if (end <= begin) return 0;\n const lastDate = localDateOf(end, calendar);\n let total = 0;\n let date = localDateOf(begin, calendar);\n for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED && compareLocalDates(date, lastDate) <= 0; scanned += 1, date = nextLocalDate(date)) {\n const window = workingWindowOn(date, calendar);\n if (!window) continue;\n const overlapStart = Math.max(begin, window.start);\n const overlapEnd = Math.min(end, window.end);\n if (overlapEnd > overlapStart) total += overlapEnd - overlapStart;\n }\n return total;\n}\n\n/** `start` moved by `durationMs` on the given clock basis. CALENDAR without a calendar is refused. */\nexport function shiftOnReviewClock(start: Date, durationMs: number, basis: ReviewClockBasis, calendar: ReviewCalendar | undefined): Date {\n if (basis === ReviewClockBasis.ELAPSED) return new Date(start.getTime() + durationMs);\n if (!calendar) throw new ReviewCalendarError('A CALENDAR review clock needs the application\\'s `reviewCalendar`, and none is declared.');\n return addBusinessDuration(start, durationMs, calendar);\n}\n\n/** How much time the given clock counts between two instants. */\nfunction countedOnReviewClock(from: Date, to: Date, basis: ReviewClockBasis, calendar: ReviewCalendar | undefined): number {\n if (basis === ReviewClockBasis.ELAPSED) return Math.max(0, to.getTime() - from.getTime());\n if (!calendar) throw new ReviewCalendarError('A CALENDAR review clock needs the application\\'s `reviewCalendar`, and none is declared.');\n return businessDurationBetween(from, to, calendar);\n}\n\n//===============================================================\n// The gate's declaration\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.review-deadlines-declaration facet:layer:shared facet:family:flows-actors facet:audience:app-developer */\n/** The CLAIM target every gate gets when it declares none: half of its lapse window. */\nexport const DEFAULT_REVIEW_CLAIM_FRACTION_OF_LAPSE = 0.5;\n/** The DECISION target every gate gets when it declares none: three quarters of its lapse window. */\nexport const DEFAULT_REVIEW_DECISION_FRACTION_OF_LAPSE = 0.75;\n\n/**\n * When a service-target deadline falls: a duration after the decision was requested (`'PT4H'`), or a\n * fraction of the gate's lapse window (`{ fractionOfLapse: 0.5 }`), counted on the target's clock basis.\n */\nexport const ReviewDeadlineAtSchema = z.union([\n ReviewDurationSchema,\n z.object({ fractionOfLapse: z.number().gt(0).lt(1) }),\n]);\nexport type ReviewDeadlineAt = z.infer<typeof ReviewDeadlineAtSchema>;\n\n/** One service-target clock of a gate: CLAIM or DECISION. */\nexport const ReviewDeadlineTargetSchema = z.object({\n at: ReviewDeadlineAtSchema,\n /** Elapsed time (the default) or the application's business calendar. */\n basis: z.enum(ReviewClockBasis).optional(),\n /** Arms a WARNING stage this long before the deadline, on the same basis. Absent: no warning stage. */\n warnBefore: ReviewDurationSchema.optional(),\n});\nexport type ReviewDeadlineTarget = z.infer<typeof ReviewDeadlineTargetSchema>;\n\n/**\n * What a stage does when it fires. The data half of a gate's escalation rule; a REASSIGN rule also names a\n * target resolver, declared on the backend gate beside it.\n */\nexport const ReviewEscalationRuleSchema = z.object({\n stage: z.enum(ReviewDeadlineStage),\n action: z.enum(ReviewEscalationActionKind),\n});\nexport type ReviewEscalationRuleDescriptor = z.infer<typeof ReviewEscalationRuleSchema>;\n\n/**\n * A gate's deadlines (`humanApproval.deadlines`). Every field is optional, and a gate declaring nothing\n * still gets the defaults: a 24-hour elapsed lapse, a CLAIM reminder at half of it and a DECISION reminder\n * at three quarters, each notifying the people who may answer. Notifications grant nothing, so this is on\n * for every gate; a silent lapse was the surprising behaviour.\n *\n * - `lapseAfter` — when the decision ends LAPSED. Always elapsed time.\n * - `claim` / `decision` — the two service targets.\n * - `rules` — what fires at each stage, in declaration order. Declaring `rules` REPLACES the default\n * reminders, so a gate that wants a reassignment and a reminder declares both. When several REASSIGN rules\n * fire at one stage, the first declared wins.\n * - `pauseStates` — the application's own names for why a reviewer may stop the clocks\n * (`'awaiting-requester-information'`), labelled through i18n. A gate declaring none cannot be paused.\n */\nexport const ReviewDeadlinesDeclarationSchema = z.object({\n lapseAfter: ReviewDurationSchema.optional(),\n claim: ReviewDeadlineTargetSchema.optional(),\n decision: ReviewDeadlineTargetSchema.optional(),\n rules: z.array(ReviewEscalationRuleSchema).optional(),\n pauseStates: z.array(z.string().trim().min(1)).optional(),\n});\nexport type ReviewDeadlinesDeclaration = z.infer<typeof ReviewDeadlinesDeclarationSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.review-deadlines-declaration */\n\n/** One resolved service target: how far after the request, on which basis, and how early its warning fires. */\nexport interface ResolvedReviewDeadlineTarget {\n readonly afterMs: number;\n readonly basis: ReviewClockBasis;\n readonly warnBeforeMs?: number;\n}\n\n/** A gate's declaration with every default applied. The one shape arming and validation read. */\nexport interface ReviewDeadlinePolicy {\n readonly lapseAfterMs: number;\n readonly claim: ResolvedReviewDeadlineTarget;\n readonly decision: ResolvedReviewDeadlineTarget;\n readonly rules: readonly ReviewEscalationRuleDescriptor[];\n readonly pauseStates: readonly string[];\n}\n\nfunction resolveTarget(target: ReviewDeadlineTarget | undefined, defaultFraction: number, lapseAfterMs: number): ResolvedReviewDeadlineTarget {\n const at = target?.at ?? { fractionOfLapse: defaultFraction };\n const afterMs = typeof at === 'string' ? (parseReviewDurationMs(at) ?? 0) : Math.round(at.fractionOfLapse * lapseAfterMs);\n const warnBeforeMs = target?.warnBefore ? parseReviewDurationMs(target.warnBefore) : undefined;\n return { afterMs, basis: target?.basis ?? ReviewClockBasis.ELAPSED, ...(warnBeforeMs ? { warnBeforeMs } : {}) };\n}\n\n/** The rules a gate gets when it declares none: a reminder at each MISSED stage, and at each armed WARNING. */\nfunction defaultRules(claim: ResolvedReviewDeadlineTarget, decision: ResolvedReviewDeadlineTarget): ReviewEscalationRuleDescriptor[] {\n const notify = (stage: ReviewDeadlineStage): ReviewEscalationRuleDescriptor => ({ stage, action: ReviewEscalationActionKind.NOTIFY });\n return [\n ...(claim.warnBeforeMs ? [notify(ReviewDeadlineStage.CLAIM_WARNING)] : []),\n notify(ReviewDeadlineStage.CLAIM_MISSED),\n ...(decision.warnBeforeMs ? [notify(ReviewDeadlineStage.DECISION_WARNING)] : []),\n notify(ReviewDeadlineStage.DECISION_MISSED),\n ];\n}\n\n/** A gate's declaration (possibly absent) with every default applied. */\nexport function resolveReviewDeadlinePolicy(declaration: ReviewDeadlinesDeclaration | undefined): ReviewDeadlinePolicy {\n // The lapse a gate declaring none gets is the framework's approval window, one source for both.\n const lapseAfterMs = (declaration?.lapseAfter ? parseReviewDurationMs(declaration.lapseAfter) : undefined) ?? FLOW_ACTOR_APPROVAL_DEFAULT_TIMEOUT_MS;\n const claim = resolveTarget(declaration?.claim, DEFAULT_REVIEW_CLAIM_FRACTION_OF_LAPSE, lapseAfterMs);\n const decision = resolveTarget(declaration?.decision, DEFAULT_REVIEW_DECISION_FRACTION_OF_LAPSE, lapseAfterMs);\n return {\n lapseAfterMs, claim, decision,\n rules: declaration?.rules ? [...declaration.rules] : defaultRules(claim, decision),\n pauseStates: [...(declaration?.pauseStates ?? [])],\n };\n}\n\n/** The deadline kind a stage belongs to. */\nexport function reviewDeadlineKindOfStage(stage: ReviewDeadlineStage): ReviewDeadlineKind {\n switch (stage) {\n case ReviewDeadlineStage.CLAIM_WARNING:\n case ReviewDeadlineStage.CLAIM_MISSED:\n return ReviewDeadlineKind.CLAIM;\n case ReviewDeadlineStage.DECISION_WARNING:\n case ReviewDeadlineStage.DECISION_MISSED:\n return ReviewDeadlineKind.DECISION;\n default: {\n const unmapped: never = stage;\n throw new Error(`Review deadline stage \"${String(unmapped)}\" has no kind.`);\n }\n }\n}\n\n/** Whether a stage is a WARNING (before a deadline) rather than the deadline being missed. */\nexport function isReviewWarningStage(stage: ReviewDeadlineStage): boolean {\n return stage === ReviewDeadlineStage.CLAIM_WARNING || stage === ReviewDeadlineStage.DECISION_WARNING;\n}\n\n/** The MISSED stage a WARNING stage warns about. */\nfunction missedStageOf(stage: ReviewDeadlineStage): ReviewDeadlineStage {\n return reviewDeadlineKindOfStage(stage) === ReviewDeadlineKind.CLAIM ? ReviewDeadlineStage.CLAIM_MISSED : ReviewDeadlineStage.DECISION_MISSED;\n}\n\n/**\n * Everything wrong with a gate's deadline declaration, as sentences naming the fix. Empty when it is sound.\n * Startup refuses a gate with any, so a declaration that can never do what it says never ships:\n *\n * - a CALENDAR clock in an application that declares no calendar (#1628 I6) — never silently ELAPSED;\n * - an ELAPSED target at or after the lapse, which could never fire before the decision ends;\n * - a warning no earlier than the start of its own clock;\n * - a rule on a WARNING stage whose `warnBefore` is not declared, which could never fire;\n * - a REASSIGN rule on an OWNER gate, whose route cannot move.\n */\nexport function reviewDeadlinesDeclarationIssues(\n declaration: ReviewDeadlinesDeclaration | undefined,\n context: { readonly routeKind: HumanDecision_RouteKind; readonly calendarDeclared: boolean },\n): string[] {\n if (!declaration) return [];\n const parsed = ReviewDeadlinesDeclarationSchema.safeParse(declaration);\n if (!parsed.success) return parsed.error.issues.map((issue) => `deadlines.${issue.path.join('.')}: ${issue.message}`);\n const policy = resolveReviewDeadlinePolicy(parsed.data);\n const issues: string[] = [];\n const targets: readonly [ReviewDeadlineKind, ResolvedReviewDeadlineTarget, ReviewDeadlineTarget | undefined][] = [\n [ReviewDeadlineKind.CLAIM, policy.claim, parsed.data.claim],\n [ReviewDeadlineKind.DECISION, policy.decision, parsed.data.decision],\n ];\n for (const [kind, target] of targets) {\n if (target.basis === ReviewClockBasis.CALENDAR && !context.calendarDeclared) {\n issues.push(`deadlines.${kind} counts on the CALENDAR basis, but the application declares no \\`reviewCalendar\\`. Declare one, or use the ELAPSED basis.`);\n }\n if (target.basis === ReviewClockBasis.ELAPSED && target.afterMs >= policy.lapseAfterMs) {\n issues.push(`deadlines.${kind} falls at or after the lapse (${parsed.data.lapseAfter ?? 'the default 24 hours'}), so it could never fire before the decision ends. Make it earlier, or lengthen lapseAfter.`);\n }\n if (target.warnBeforeMs !== undefined && target.warnBeforeMs >= target.afterMs) {\n issues.push(`deadlines.${kind}.warnBefore is not shorter than the ${kind} target itself, so the warning would fall at or before the request.`);\n }\n }\n for (const rule of policy.rules) {\n const target = reviewDeadlineKindOfStage(rule.stage) === ReviewDeadlineKind.CLAIM ? policy.claim : policy.decision;\n if (isReviewWarningStage(rule.stage) && target.warnBeforeMs === undefined) {\n issues.push(`deadlines.rules names the ${rule.stage} stage, but its clock declares no warnBefore, so that stage is never armed.`);\n }\n if (rule.action === ReviewEscalationActionKind.REASSIGN && context.routeKind === HumanDecision_RouteKind.OWNER) {\n issues.push(`deadlines.rules REASSIGNs at ${rule.stage}, but this gate routes to its OWNER, whose route cannot move.`);\n }\n }\n if (new Set(policy.pauseStates).size !== policy.pauseStates.length) {\n issues.push('deadlines.pauseStates names a pause state twice.');\n }\n // A pause state is also the last segment of its label key, `system_enums.HumanDecisionPauseState.<state>` (#1864),\n // and the label tree is addressed by dotted path: a state with a dot could never show its word.\n for (const pauseState of policy.pauseStates) {\n if (!isLabelKeySegment(pauseState)) {\n issues.push(`deadlines.pauseStates \"${pauseState}\" may contain only letters, digits, \"_\" and \"-\": it is also the last segment of its label key.`);\n }\n }\n return issues;\n}\n\n//===============================================================\n// Arming, advancing and settling a decision's clocks\n//===============================================================\n\n/**\n * The instants a decision's clocks were armed with, as the row stores them. Each stage's due instant is\n * stored rather than recomputed, so the sweep never depends on the gate still resolving, and a deployment\n * that changes a gate never reshapes a clock that is already running.\n */\nexport interface ArmedReviewDeadlines {\n readonly lapseAt: Date;\n readonly claimDeadlineAt: Date;\n readonly claimWarningAt?: Date;\n readonly claimBasis: ReviewClockBasis;\n readonly decisionDeadlineAt: Date;\n readonly decisionWarningAt?: Date;\n readonly decisionBasis: ReviewClockBasis;\n}\n\n/** Arm a decision's clocks at the moment it is requested. */\nexport function armReviewDeadlines(input: {\n readonly requestedAt: Date;\n readonly policy: ReviewDeadlinePolicy;\n readonly calendar: ReviewCalendar | undefined;\n}): ArmedReviewDeadlines {\n const { requestedAt, policy, calendar } = input;\n const claimDeadlineAt = shiftOnReviewClock(requestedAt, policy.claim.afterMs, policy.claim.basis, calendar);\n const decisionDeadlineAt = shiftOnReviewClock(requestedAt, policy.decision.afterMs, policy.decision.basis, calendar);\n return {\n lapseAt: new Date(requestedAt.getTime() + policy.lapseAfterMs),\n claimDeadlineAt,\n ...(policy.claim.warnBeforeMs ? { claimWarningAt: shiftOnReviewClock(claimDeadlineAt, -policy.claim.warnBeforeMs, policy.claim.basis, calendar) } : {}),\n claimBasis: policy.claim.basis,\n decisionDeadlineAt,\n ...(policy.decision.warnBeforeMs ? { decisionWarningAt: shiftOnReviewClock(decisionDeadlineAt, -policy.decision.warnBeforeMs, policy.decision.basis, calendar) } : {}),\n decisionBasis: policy.decision.basis,\n };\n}\n\n/** The four stage due instants and fired markers of one decision, whichever plane holds them. */\nexport interface ReviewDeadlineStageSchedule {\n readonly dueAt: Readonly<Partial<Record<ReviewDeadlineStage, Date>>>;\n readonly firedAt: Readonly<Partial<Record<ReviewDeadlineStage, Date>>>;\n /**\n * Whether someone has CLAIMED the decision. The CLAIM clock is met by a claim, so neither CLAIM stage\n * fires while it holds; an UNCLAIM re-opens it.\n */\n readonly claimed: boolean;\n /**\n * When the decision lapses. A stage due at or after it never fires (#1628 review M3): a CALENDAR target\n * pushed past a weekend, or a target moved by a pause, can land beyond the lapse, and a reminder that the\n * decision \"can still be answered until it expires\" would then describe a decision that has expired.\n */\n readonly lapseAt?: Date;\n}\n\n/** The stages in the order they fire when due together. */\nexport const REVIEW_DEADLINE_STAGE_ORDER: readonly ReviewDeadlineStage[] = Object.freeze([\n ReviewDeadlineStage.CLAIM_WARNING,\n ReviewDeadlineStage.CLAIM_MISSED,\n ReviewDeadlineStage.DECISION_WARNING,\n ReviewDeadlineStage.DECISION_MISSED,\n]);\n\n/**\n * May this stage still fire? Not once fired; not a CLAIM stage while the decision is claimed; and not a\n * WARNING whose deadline has already been missed (or is missed at the same moment) — a warning after the\n * fact is noise, and leaving it unmarked is honest: it never fired.\n */\nfunction stageMayFire(stage: ReviewDeadlineStage, schedule: ReviewDeadlineStageSchedule, now?: Date): boolean {\n const dueAt = schedule.dueAt[stage];\n if (schedule.firedAt[stage] || !dueAt) return false;\n if (schedule.lapseAt && dueAt.getTime() >= schedule.lapseAt.getTime()) return false;\n if (schedule.claimed && reviewDeadlineKindOfStage(stage) === ReviewDeadlineKind.CLAIM) return false;\n if (isReviewWarningStage(stage)) {\n const missed = missedStageOf(stage);\n if (schedule.firedAt[missed]) return false;\n const missedDue = schedule.dueAt[missed];\n if (now && missedDue && missedDue.getTime() <= now.getTime()) return false;\n // A warning about a deadline that falls at or after the lapse warns of something that will never come.\n if (schedule.lapseAt && missedDue && missedDue.getTime() >= schedule.lapseAt.getTime()) return false;\n }\n return true;\n}\n\n/** The stages due at `now`, in firing order. */\nexport function dueReviewDeadlineStages(schedule: ReviewDeadlineStageSchedule, now: Date): ReviewDeadlineStage[] {\n return REVIEW_DEADLINE_STAGE_ORDER.filter((stage) => stageMayFire(stage, schedule, now) && (schedule.dueAt[stage] as Date).getTime() <= now.getTime());\n}\n\n/**\n * The earliest instant any stage may still fire at — what the row's indexed next-due column holds, so the\n * sweep selects due rows by index. `undefined` when nothing is left to fire.\n */\nexport function nextReviewDeadlineDueAt(schedule: ReviewDeadlineStageSchedule): Date | undefined {\n let next: Date | undefined;\n for (const stage of REVIEW_DEADLINE_STAGE_ORDER) {\n if (!stageMayFire(stage, schedule)) continue;\n const dueAt = schedule.dueAt[stage] as Date;\n if (!next || dueAt.getTime() < next.getTime()) next = dueAt;\n }\n return next;\n}\n\n/** The service-target instants a pause moves. The lapse is deliberately absent: a pause never moves it (#1628 I4). */\nexport interface ReviewServiceTargetInstants {\n readonly claimDeadlineAt?: Date;\n readonly claimWarningAt?: Date;\n readonly claimBasis: ReviewClockBasis;\n readonly decisionDeadlineAt?: Date;\n readonly decisionWarningAt?: Date;\n readonly decisionBasis: ReviewClockBasis;\n}\n\n/**\n * The service targets after a pause from `pausedAt` to `resumedAt`. Each clock stopped at `pausedAt`: an\n * instant still ahead of it keeps the time that was left, counted on its own basis, from `resumedAt`. An\n * instant already behind it has passed and does not move.\n */\nexport function resumeReviewServiceTargets(\n targets: ReviewServiceTargetInstants,\n pausedAt: Date,\n resumedAt: Date,\n calendar: ReviewCalendar | undefined,\n): ReviewServiceTargetInstants {\n const move = (instant: Date | undefined, basis: ReviewClockBasis): Date | undefined => {\n if (!instant || instant.getTime() <= pausedAt.getTime()) return instant;\n return shiftOnReviewClock(resumedAt, countedOnReviewClock(pausedAt, instant, basis, calendar), basis, calendar);\n };\n return {\n ...targets,\n claimDeadlineAt: move(targets.claimDeadlineAt, targets.claimBasis),\n claimWarningAt: move(targets.claimWarningAt, targets.claimBasis),\n decisionDeadlineAt: move(targets.decisionDeadlineAt, targets.decisionBasis),\n decisionWarningAt: move(targets.decisionWarningAt, targets.decisionBasis),\n };\n}\n\n/**\n * Whether each armed service target was MET or MISSED, as the RESOLVED event records it.\n *\n * - DECISION is missed when its MISSED stage fired, when the decision lapsed (nobody decided), or when it\n * ended after the deadline.\n * - CLAIM is met when the decision was claimed, or settled by a person, by the CLAIM deadline; missed when\n * its MISSED stage fired, or when it was taken — or lapsed — only after the deadline.\n *\n * - A WITHDRAWN decision was taken by nobody and answered by nobody, so it is measured only where a\n * deadline had ALREADY been missed before the withdrawal; a clock it was withdrawn inside is omitted,\n * never reported as met.\n *\n * The deadlines passed in must already include any pause, including one still open when the decision\n * ended (see `resumeReviewServiceTargets`): a clock that was stopped cannot have been missed while it was.\n *\n * A clock that was never armed (a row from before #1628) is omitted rather than guessed.\n */\nexport function reviewDeadlineOutcomesOf(input: {\n readonly claimDeadlineAt?: Date;\n readonly decisionDeadlineAt?: Date;\n readonly claimMissedFiredAt?: Date;\n readonly decisionMissedFiredAt?: Date;\n /** When the decision was claimed, if it is claimed as it ends. */\n readonly claimedAt?: Date;\n readonly outcome: HumanDecision_Outcome;\n readonly resolvedAt: Date;\n}): Partial<Record<ReviewDeadlineKind, ReviewDeadlineOutcome>> {\n const outcomes: Partial<Record<ReviewDeadlineKind, ReviewDeadlineOutcome>> = {};\n if (input.outcome === HumanDecision_Outcome.WITHDRAWN) {\n if (input.claimDeadlineAt && input.claimMissedFiredAt) outcomes[ReviewDeadlineKind.CLAIM] = ReviewDeadlineOutcome.MISSED;\n if (input.decisionDeadlineAt && input.decisionMissedFiredAt) outcomes[ReviewDeadlineKind.DECISION] = ReviewDeadlineOutcome.MISSED;\n return outcomes;\n }\n const lapsed = input.outcome === HumanDecision_Outcome.LAPSED;\n if (input.decisionDeadlineAt) {\n const missed = !!input.decisionMissedFiredAt || lapsed || input.resolvedAt.getTime() > input.decisionDeadlineAt.getTime();\n outcomes[ReviewDeadlineKind.DECISION] = missed ? ReviewDeadlineOutcome.MISSED : ReviewDeadlineOutcome.MET;\n }\n if (input.claimDeadlineAt) {\n const deadline = input.claimDeadlineAt.getTime();\n const takenBy = input.claimedAt ?? (lapsed ? undefined : input.resolvedAt);\n const met = !input.claimMissedFiredAt && takenBy !== undefined && takenBy.getTime() <= deadline;\n outcomes[ReviewDeadlineKind.CLAIM] = met ? ReviewDeadlineOutcome.MET : ReviewDeadlineOutcome.MISSED;\n }\n return outcomes;\n}\n"]}
1
+ {"version":3,"file":"review-deadlines.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/review-deadlines.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAA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AK,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,IAAI,QAAQ,CAAC;QAChG,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAM,CAAC;IACtG,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["/**\n * #1628 — deadlines, reminders and escalation for pending human decisions: the declaration a gate carries,\n * the application's business calendar, and the pure arithmetic both planes arm and advance clocks with.\n *\n * Nothing here reads a store or a clock. Every function takes the instants it reasons about, which is what\n * lets the sweep, the pause/resume doors and the tests share one definition of \"when is this due\".\n *\n * ## The model (researched 2026-09-25; the sources are on #1628)\n *\n * - Two SERVICE-TARGET clocks — CLAIM and DECISION — separate from the LAPSE, the hard stop. Missing a target\n * fires actions and changes nothing else (WS-HumanTask 1.1 §4.9: \"The state of the task is not changed\").\n * spec-cite: OASIS WS-HumanTask 1.1 (cs-01) §4.9 \"Elements for Handling Timeouts and Escalations\", fetched 2026-09-27 from https://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html\n * - Durations are ISO-8601 durations (`PT12H`, `P2D`), the form BPMN 2.0.2 timer events and Camunda use.\n * Years and months are refused: their length depends on the calendar date, so they are not durations.\n * - A target counts ELAPSED time by default, or only the working hours of the application's calendar.\n * The lapse always counts ELAPSED time: it bounds how long a turn stays open, and a calendar lapse would\n * let one stay open for a week of holidays.\n */\nimport { z } from 'zod';\n\nimport { FLOW_ACTOR_APPROVAL_DEFAULT_TIMEOUT_MS } from './flows-actors-execution.shared.schemas';\nimport { isLabelKeySegment } from '../i18n/application-config-vocabulary.shared';\nimport { ReviewClockBasis, ReviewDeadlineKind, ReviewDeadlineOutcome, ReviewDeadlineStage, ReviewEscalationActionKind, HumanDecision_Outcome, HumanDecision_RouteKind } from './human-decision.shared.schemas';\n\n//===============================================================\n// Durations\n//===============================================================\n\n/**\n * `P[nW][nD][T[nH][nM][n[.n]S]]`. No years or months, and at least one component. A week is seven days\n * of elapsed time; on a CALENDAR clock the milliseconds are then counted inside working hours only.\n */\nconst REVIEW_DURATION_PATTERN = /^P(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+(?:\\.\\d+)?)S)?)?$/;\n\nconst MS_PER_SECOND = 1000;\nconst MS_PER_MINUTE = 60 * MS_PER_SECOND;\nconst MS_PER_HOUR = 60 * MS_PER_MINUTE;\nconst MS_PER_DAY = 24 * MS_PER_HOUR;\n\n/** The duration in milliseconds, or `undefined` when `value` is not a positive ISO-8601 duration this model admits. */\nexport function parseReviewDurationMs(value: string): number | undefined {\n const match = REVIEW_DURATION_PATTERN.exec(value);\n if (!match || value === 'P' || value.endsWith('T')) return undefined;\n const [, weeks, days, hours, minutes, seconds] = match;\n const ms = Number(weeks ?? 0) * 7 * MS_PER_DAY\n + Number(days ?? 0) * MS_PER_DAY\n + Number(hours ?? 0) * MS_PER_HOUR\n + Number(minutes ?? 0) * MS_PER_MINUTE\n + Math.round(Number(seconds ?? 0) * MS_PER_SECOND);\n return ms > 0 ? ms : undefined;\n}\n\n/** An ISO-8601 duration such as `PT12H` or `P2D`. */\nexport const ReviewDurationSchema = z.string().refine((value) => parseReviewDurationMs(value) !== undefined, {\n message: 'Expected a positive ISO-8601 duration without years or months, such as \"PT12H\", \"P2D\" or \"PT30M\".',\n});\n\n//===============================================================\n// Business calendar\n//===============================================================\n\n/** A day of the week, as the business calendar names working days. */\nexport enum CalendarWeekday {\n MONDAY = 'monday',\n TUESDAY = 'tuesday',\n WEDNESDAY = 'wednesday',\n THURSDAY = 'thursday',\n FRIDAY = 'friday',\n SATURDAY = 'saturday',\n SUNDAY = 'sunday',\n}\n\n/** `Intl`'s short English weekday names, mapped to the vocabulary. Only this module formats dates in English, and never for display. */\nconst WEEKDAY_OF_INTL_SHORT_NAME: Readonly<Record<string, CalendarWeekday>> = Object.freeze({\n Mon: CalendarWeekday.MONDAY,\n Tue: CalendarWeekday.TUESDAY,\n Wed: CalendarWeekday.WEDNESDAY,\n Thu: CalendarWeekday.THURSDAY,\n Fri: CalendarWeekday.FRIDAY,\n Sat: CalendarWeekday.SATURDAY,\n Sun: CalendarWeekday.SUNDAY,\n});\n\nconst LOCAL_TIME_PATTERN = /^([01]\\d|2[0-3]):([0-5]\\d)$/;\nconst LOCAL_DATE_PATTERN = /^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$/;\n\nfunction minutesOfLocalTime(value: string): number {\n const match = LOCAL_TIME_PATTERN.exec(value);\n if (!match) throw new ReviewCalendarError(`\"${value}\" is not a local time of the form HH:MM.`);\n return Number(match[1]) * 60 + Number(match[2]);\n}\n\nfunction isKnownTimeZone(timeZone: string): boolean {\n try {\n new Intl.DateTimeFormat('en-US', { timeZone });\n return true;\n } catch {\n return false;\n }\n}\n\n/** @wildo_source:part:start saas.models.flows-actors.review-calendar facet:layer:shared facet:family:flows-actors facet:audience:app-developer */\n/**\n * The application's business calendar (#1628): when reviewers are expected to be working. Declared ONCE by\n * the application, in its backend configuration as `reviewCalendar`, and read by every gate whose CLAIM or\n * DECISION clock asks for the `CALENDAR` basis.\n *\n * - `timeZone` is an IANA zone (`Europe/Paris`). Working hours and holidays are read in it, so a deadline\n * stays right across a daylight-saving change.\n * - `workingHours` is one window per working day, `start` before `end`; a window crossing midnight is refused.\n * - `holidays` are local dates (`2026-12-25`) on which no working time counts, whatever the weekday.\n *\n * A decision submitted on Friday evening with a `PT8H` CALENDAR target is due at the end of Monday's\n * working day, not on Saturday morning. The lapse is never counted on this calendar.\n *\n * One calendar per application, not per tenant: a second calendar would be a second source for the same\n * fact, and nothing asks for one yet. The shape allows a per-tenant calendar later without a reshape.\n */\nexport const ReviewCalendarSchema = z.object({\n timeZone: z.string().min(1).refine(isKnownTimeZone, { message: 'Expected an IANA time zone such as \"Europe/Paris\".' }),\n workingDays: z.array(z.enum(CalendarWeekday)).min(1).default([\n CalendarWeekday.MONDAY, CalendarWeekday.TUESDAY, CalendarWeekday.WEDNESDAY, CalendarWeekday.THURSDAY, CalendarWeekday.FRIDAY,\n ]),\n workingHours: z.object({\n start: z.string().regex(LOCAL_TIME_PATTERN, 'Expected HH:MM'),\n end: z.string().regex(LOCAL_TIME_PATTERN, 'Expected HH:MM'),\n }).refine((hours) => minutesOfLocalTime(hours.start) < minutesOfLocalTime(hours.end), {\n message: 'workingHours.start must be before workingHours.end (a window crossing midnight is not supported).',\n }).default({ start: '09:00', end: '17:00' }),\n holidays: z.array(z.string().regex(LOCAL_DATE_PATTERN, 'Expected a local date YYYY-MM-DD')).default([]),\n});\nexport type ReviewCalendar = z.infer<typeof ReviewCalendarSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.review-calendar */\n\n/** A calendar that cannot answer — refused at startup when declared, so reaching this at run time is a defect. */\nexport class ReviewCalendarError extends Error {}\n\ninterface LocalDate { readonly year: number; readonly month: number; readonly day: number }\n\nconst formatterCache = new Map<string, Intl.DateTimeFormat>();\nfunction formatterFor(timeZone: string): Intl.DateTimeFormat {\n let formatter = formatterCache.get(timeZone);\n if (!formatter) {\n formatter = new Intl.DateTimeFormat('en-US', {\n timeZone, hourCycle: 'h23', year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', weekday: 'short',\n });\n formatterCache.set(timeZone, formatter);\n }\n return formatter;\n}\n\ninterface ZonedParts extends LocalDate { readonly hour: number; readonly minute: number; readonly second: number; readonly weekday: CalendarWeekday }\n\nfunction zonedPartsOf(instant: number, timeZone: string): ZonedParts {\n const parts: Record<string, string> = {};\n for (const part of formatterFor(timeZone).formatToParts(new Date(instant))) parts[part.type] = part.value;\n const weekday = WEEKDAY_OF_INTL_SHORT_NAME[parts.weekday ?? ''];\n if (!weekday) throw new ReviewCalendarError(`Could not read the weekday of ${new Date(instant).toISOString()} in \"${timeZone}\".`);\n return {\n year: Number(parts.year), month: Number(parts.month), day: Number(parts.day),\n hour: Number(parts.hour), minute: Number(parts.minute), second: Number(parts.second), weekday,\n };\n}\n\n/** The zone's offset from UTC at `instant`, in milliseconds. */\nfunction zoneOffsetMs(instant: number, timeZone: string): number {\n const p = zonedPartsOf(instant, timeZone);\n return Date.UTC(p.year, p.month - 1, p.day, p.hour, p.minute, p.second) - Math.floor(instant / MS_PER_SECOND) * MS_PER_SECOND;\n}\n\n/**\n * The instant at which the zone's wall clock reads `minutesOfDay` on `date`. Iterates to a fixed point, the\n * standard way to invert an offset that itself depends on the instant. In a spring-forward gap the wall time\n * does not exist and the answer lands just after the gap, which is where working time resumes.\n */\nfunction instantOfLocalTime(date: LocalDate, minutesOfDay: number, timeZone: string): number {\n const wall = Date.UTC(date.year, date.month - 1, date.day, 0, minutesOfDay);\n let guess = wall;\n for (let attempt = 0; attempt < 4; attempt += 1) {\n const next = wall - zoneOffsetMs(guess, timeZone);\n if (next === guess) break;\n guess = next;\n }\n return guess;\n}\n\nfunction nextLocalDate(date: LocalDate): LocalDate {\n const next = new Date(Date.UTC(date.year, date.month - 1, date.day + 1));\n return { year: next.getUTCFullYear(), month: next.getUTCMonth() + 1, day: next.getUTCDate() };\n}\n\nfunction isoLocalDate(date: LocalDate): string {\n return `${String(date.year).padStart(4, '0')}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`;\n}\n\n/** Ten years of days. A calendar with at least one working day finds a window long before this. */\nconst MAX_CALENDAR_DAYS_SCANNED = 3660;\n\ninterface WorkingWindow { readonly start: number; readonly end: number }\n\nfunction previousLocalDate(date: LocalDate): LocalDate {\n const previous = new Date(Date.UTC(date.year, date.month - 1, date.day - 1));\n return { year: previous.getUTCFullYear(), month: previous.getUTCMonth() + 1, day: previous.getUTCDate() };\n}\n\nfunction compareLocalDates(a: LocalDate, b: LocalDate): number {\n return (a.year - b.year) || (a.month - b.month) || (a.day - b.day);\n}\n\nconst WEEKDAY_OF_UTC_DAY: readonly CalendarWeekday[] = Object.freeze([\n CalendarWeekday.SUNDAY, CalendarWeekday.MONDAY, CalendarWeekday.TUESDAY, CalendarWeekday.WEDNESDAY,\n CalendarWeekday.THURSDAY, CalendarWeekday.FRIDAY, CalendarWeekday.SATURDAY,\n]);\n\n/** The local date an instant falls on, in the calendar's zone. */\nfunction localDateOf(instant: number, calendar: ReviewCalendar): LocalDate {\n const parts = zonedPartsOf(instant, calendar.timeZone);\n return { year: parts.year, month: parts.month, day: parts.day };\n}\n\n/**\n * The working window on a local DATE, or `undefined` on a day off.\n *\n * Every walk below steps from DATE to date, never from \"the instant a day begins\" to the next: in a zone\n * whose daylight-saving change happens AT MIDNIGHT (America/Havana, America/Santiago) the local midnight of\n * the changeover day does not exist, and an instant computed for it lands on the day before — so a walk\n * keyed on day-start instants stops advancing (#1628 review M1). A date always advances.\n */\nfunction workingWindowOn(date: LocalDate, calendar: ReviewCalendar): WorkingWindow | undefined {\n const weekday = WEEKDAY_OF_UTC_DAY[new Date(Date.UTC(date.year, date.month - 1, date.day)).getUTCDay()] as CalendarWeekday;\n if (!calendar.workingDays.includes(weekday) || calendar.holidays.includes(isoLocalDate(date))) return undefined;\n return {\n start: instantOfLocalTime(date, minutesOfLocalTime(calendar.workingHours.start), calendar.timeZone),\n end: instantOfLocalTime(date, minutesOfLocalTime(calendar.workingHours.end), calendar.timeZone),\n };\n}\n\n/**\n * `start` moved by `durationMs` of WORKING time on `calendar` — forward for a positive duration, backward\n * for a negative one (a warning `warnBefore` a CALENDAR deadline). A zero duration answers `start`.\n *\n * Forward from outside working hours, the first working minute is where counting begins: a `PT1H` target\n * raised on Saturday is due one hour into Monday's window.\n */\nexport function addBusinessDuration(start: Date, durationMs: number, calendar: ReviewCalendar): Date {\n if (durationMs === 0) return new Date(start.getTime());\n const origin = start.getTime();\n if (durationMs > 0) {\n let date = localDateOf(origin, calendar);\n let remaining = durationMs;\n for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED; scanned += 1, date = nextLocalDate(date)) {\n const window = workingWindowOn(date, calendar);\n if (!window) continue;\n const from = Math.max(origin, window.start);\n if (from >= window.end) continue;\n const available = window.end - from;\n if (remaining <= available) return new Date(from + remaining);\n remaining -= available;\n }\n throw new ReviewCalendarError('The review calendar has no working time in the next ten years.');\n }\n let date = localDateOf(origin, calendar);\n let remaining = -durationMs;\n for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED; scanned += 1, date = previousLocalDate(date)) {\n const window = workingWindowOn(date, calendar);\n if (!window) continue;\n const to = Math.min(origin, window.end);\n if (to <= window.start) continue;\n const available = to - window.start;\n if (remaining <= available) return new Date(to - remaining);\n remaining -= available;\n }\n throw new ReviewCalendarError('The review calendar has no working time in the previous ten years.');\n}\n\n/** How much WORKING time on `calendar` lies between `from` and `to`; zero when `to` is not after `from`. */\nexport function businessDurationBetween(from: Date, to: Date, calendar: ReviewCalendar): number {\n const begin = from.getTime();\n const end = to.getTime();\n if (end <= begin) return 0;\n const lastDate = localDateOf(end, calendar);\n let total = 0;\n let date = localDateOf(begin, calendar);\n for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED && compareLocalDates(date, lastDate) <= 0; scanned += 1, date = nextLocalDate(date)) {\n const window = workingWindowOn(date, calendar);\n if (!window) continue;\n const overlapStart = Math.max(begin, window.start);\n const overlapEnd = Math.min(end, window.end);\n if (overlapEnd > overlapStart) total += overlapEnd - overlapStart;\n }\n return total;\n}\n\n/** `start` moved by `durationMs` on the given clock basis. CALENDAR without a calendar is refused. */\nexport function shiftOnReviewClock(start: Date, durationMs: number, basis: ReviewClockBasis, calendar: ReviewCalendar | undefined): Date {\n if (basis === ReviewClockBasis.ELAPSED) return new Date(start.getTime() + durationMs);\n if (!calendar) throw new ReviewCalendarError('A CALENDAR review clock needs the application\\'s `reviewCalendar`, and none is declared.');\n return addBusinessDuration(start, durationMs, calendar);\n}\n\n/** How much time the given clock counts between two instants. */\nfunction countedOnReviewClock(from: Date, to: Date, basis: ReviewClockBasis, calendar: ReviewCalendar | undefined): number {\n if (basis === ReviewClockBasis.ELAPSED) return Math.max(0, to.getTime() - from.getTime());\n if (!calendar) throw new ReviewCalendarError('A CALENDAR review clock needs the application\\'s `reviewCalendar`, and none is declared.');\n return businessDurationBetween(from, to, calendar);\n}\n\n//===============================================================\n// The gate's declaration\n//===============================================================\n\n/** @wildo_source:part:start saas.models.flows-actors.review-deadlines-declaration facet:layer:shared facet:family:flows-actors facet:audience:app-developer */\n/** The CLAIM target every gate gets when it declares none: half of its lapse window. */\nexport const DEFAULT_REVIEW_CLAIM_FRACTION_OF_LAPSE = 0.5;\n/** The DECISION target every gate gets when it declares none: three quarters of its lapse window. */\nexport const DEFAULT_REVIEW_DECISION_FRACTION_OF_LAPSE = 0.75;\n\n/**\n * When a service-target deadline falls: a duration after the decision was requested (`'PT4H'`), or a\n * fraction of the gate's lapse window (`{ fractionOfLapse: 0.5 }`), counted on the target's clock basis.\n */\nexport const ReviewDeadlineAtSchema = z.union([\n ReviewDurationSchema,\n z.object({ fractionOfLapse: z.number().gt(0).lt(1) }),\n]);\nexport type ReviewDeadlineAt = z.infer<typeof ReviewDeadlineAtSchema>;\n\n/** One service-target clock of a gate: CLAIM or DECISION. */\nexport const ReviewDeadlineTargetSchema = z.object({\n at: ReviewDeadlineAtSchema,\n /** Elapsed time (the default) or the application's business calendar. */\n basis: z.enum(ReviewClockBasis).optional(),\n /** Arms a WARNING stage this long before the deadline, on the same basis. Absent: no warning stage. */\n warnBefore: ReviewDurationSchema.optional(),\n});\nexport type ReviewDeadlineTarget = z.infer<typeof ReviewDeadlineTargetSchema>;\n\n/**\n * What a stage does when it fires. The data half of a gate's escalation rule; a REASSIGN rule also names a\n * target resolver, declared on the backend gate beside it.\n */\nexport const ReviewEscalationRuleSchema = z.object({\n stage: z.enum(ReviewDeadlineStage),\n action: z.enum(ReviewEscalationActionKind),\n});\nexport type ReviewEscalationRuleDescriptor = z.infer<typeof ReviewEscalationRuleSchema>;\n\n/**\n * A gate's deadlines (`humanApproval.deadlines`). Every field is optional, and a gate declaring nothing\n * still gets the defaults: a 24-hour elapsed lapse, a CLAIM reminder at half of it and a DECISION reminder\n * at three quarters, each notifying the people who may answer. Notifications grant nothing, so this is on\n * for every gate; a silent lapse was the surprising behaviour.\n *\n * - `lapseAfter` — when the decision ends LAPSED. Always elapsed time.\n * - `claim` / `decision` — the two service targets.\n * - `rules` — what fires at each stage, in declaration order. Declaring `rules` REPLACES the default\n * reminders, so a gate that wants a reassignment and a reminder declares both. When several REASSIGN rules\n * fire at one stage, the first declared wins.\n * - `pauseStates` — the application's own names for why a reviewer may stop the clocks\n * (`'awaiting-requester-information'`), labelled through i18n. A gate declaring none cannot be paused.\n */\nexport const ReviewDeadlinesDeclarationSchema = z.object({\n lapseAfter: ReviewDurationSchema.optional(),\n claim: ReviewDeadlineTargetSchema.optional(),\n decision: ReviewDeadlineTargetSchema.optional(),\n rules: z.array(ReviewEscalationRuleSchema).optional(),\n pauseStates: z.array(z.string().trim().min(1)).optional(),\n});\nexport type ReviewDeadlinesDeclaration = z.infer<typeof ReviewDeadlinesDeclarationSchema>;\n/** @wildo_source:part:end saas.models.flows-actors.review-deadlines-declaration */\n\n/** One resolved service target: how far after the request, on which basis, and how early its warning fires. */\nexport interface ResolvedReviewDeadlineTarget {\n readonly afterMs: number;\n readonly basis: ReviewClockBasis;\n readonly warnBeforeMs?: number;\n}\n\n/** A gate's declaration with every default applied. The one shape arming and validation read. */\nexport interface ReviewDeadlinePolicy {\n readonly lapseAfterMs: number;\n readonly claim: ResolvedReviewDeadlineTarget;\n readonly decision: ResolvedReviewDeadlineTarget;\n readonly rules: readonly ReviewEscalationRuleDescriptor[];\n readonly pauseStates: readonly string[];\n}\n\nfunction resolveTarget(target: ReviewDeadlineTarget | undefined, defaultFraction: number, lapseAfterMs: number): ResolvedReviewDeadlineTarget {\n const at = target?.at ?? { fractionOfLapse: defaultFraction };\n const afterMs = typeof at === 'string' ? (parseReviewDurationMs(at) ?? 0) : Math.round(at.fractionOfLapse * lapseAfterMs);\n const warnBeforeMs = target?.warnBefore ? parseReviewDurationMs(target.warnBefore) : undefined;\n return { afterMs, basis: target?.basis ?? ReviewClockBasis.ELAPSED, ...(warnBeforeMs ? { warnBeforeMs } : {}) };\n}\n\n/** The rules a gate gets when it declares none: a reminder at each MISSED stage, and at each armed WARNING. */\nfunction defaultRules(claim: ResolvedReviewDeadlineTarget, decision: ResolvedReviewDeadlineTarget): ReviewEscalationRuleDescriptor[] {\n const notify = (stage: ReviewDeadlineStage): ReviewEscalationRuleDescriptor => ({ stage, action: ReviewEscalationActionKind.NOTIFY });\n return [\n ...(claim.warnBeforeMs ? [notify(ReviewDeadlineStage.CLAIM_WARNING)] : []),\n notify(ReviewDeadlineStage.CLAIM_MISSED),\n ...(decision.warnBeforeMs ? [notify(ReviewDeadlineStage.DECISION_WARNING)] : []),\n notify(ReviewDeadlineStage.DECISION_MISSED),\n ];\n}\n\n/** A gate's declaration (possibly absent) with every default applied. */\nexport function resolveReviewDeadlinePolicy(declaration: ReviewDeadlinesDeclaration | undefined): ReviewDeadlinePolicy {\n // The lapse a gate declaring none gets is the framework's approval window, one source for both.\n const lapseAfterMs = (declaration?.lapseAfter ? parseReviewDurationMs(declaration.lapseAfter) : undefined) ?? FLOW_ACTOR_APPROVAL_DEFAULT_TIMEOUT_MS;\n const claim = resolveTarget(declaration?.claim, DEFAULT_REVIEW_CLAIM_FRACTION_OF_LAPSE, lapseAfterMs);\n const decision = resolveTarget(declaration?.decision, DEFAULT_REVIEW_DECISION_FRACTION_OF_LAPSE, lapseAfterMs);\n return {\n lapseAfterMs, claim, decision,\n rules: declaration?.rules ? [...declaration.rules] : defaultRules(claim, decision),\n pauseStates: [...(declaration?.pauseStates ?? [])],\n };\n}\n\n/** The deadline kind a stage belongs to. */\nexport function reviewDeadlineKindOfStage(stage: ReviewDeadlineStage): ReviewDeadlineKind {\n switch (stage) {\n case ReviewDeadlineStage.CLAIM_WARNING:\n case ReviewDeadlineStage.CLAIM_MISSED:\n return ReviewDeadlineKind.CLAIM;\n case ReviewDeadlineStage.DECISION_WARNING:\n case ReviewDeadlineStage.DECISION_MISSED:\n return ReviewDeadlineKind.DECISION;\n default: {\n const unmapped: never = stage;\n throw new Error(`Review deadline stage \"${String(unmapped)}\" has no kind.`);\n }\n }\n}\n\n/** Whether a stage is a WARNING (before a deadline) rather than the deadline being missed. */\nexport function isReviewWarningStage(stage: ReviewDeadlineStage): boolean {\n return stage === ReviewDeadlineStage.CLAIM_WARNING || stage === ReviewDeadlineStage.DECISION_WARNING;\n}\n\n/** The MISSED stage a WARNING stage warns about. */\nfunction missedStageOf(stage: ReviewDeadlineStage): ReviewDeadlineStage {\n return reviewDeadlineKindOfStage(stage) === ReviewDeadlineKind.CLAIM ? ReviewDeadlineStage.CLAIM_MISSED : ReviewDeadlineStage.DECISION_MISSED;\n}\n\n/**\n * Everything wrong with a gate's deadline declaration, as sentences naming the fix. Empty when it is sound.\n * Startup refuses a gate with any, so a declaration that can never do what it says never ships:\n *\n * - a CALENDAR clock in an application that declares no calendar (#1628 I6) — never silently ELAPSED;\n * - an ELAPSED target at or after the lapse, which could never fire before the decision ends;\n * - a warning no earlier than the start of its own clock;\n * - a rule on a WARNING stage whose `warnBefore` is not declared, which could never fire;\n * - a REASSIGN rule on an OWNER gate, whose route cannot move.\n */\nexport function reviewDeadlinesDeclarationIssues(\n declaration: ReviewDeadlinesDeclaration | undefined,\n context: { readonly routeKind: HumanDecision_RouteKind; readonly calendarDeclared: boolean },\n): string[] {\n if (!declaration) return [];\n const parsed = ReviewDeadlinesDeclarationSchema.safeParse(declaration);\n if (!parsed.success) return parsed.error.issues.map((issue) => `deadlines.${issue.path.join('.')}: ${issue.message}`);\n const policy = resolveReviewDeadlinePolicy(parsed.data);\n const issues: string[] = [];\n const targets: readonly [ReviewDeadlineKind, ResolvedReviewDeadlineTarget, ReviewDeadlineTarget | undefined][] = [\n [ReviewDeadlineKind.CLAIM, policy.claim, parsed.data.claim],\n [ReviewDeadlineKind.DECISION, policy.decision, parsed.data.decision],\n ];\n for (const [kind, target] of targets) {\n if (target.basis === ReviewClockBasis.CALENDAR && !context.calendarDeclared) {\n issues.push(`deadlines.${kind} counts on the CALENDAR basis, but the application declares no \\`reviewCalendar\\`. Declare one, or use the ELAPSED basis.`);\n }\n if (target.basis === ReviewClockBasis.ELAPSED && target.afterMs >= policy.lapseAfterMs) {\n issues.push(`deadlines.${kind} falls at or after the lapse (${parsed.data.lapseAfter ?? 'the default 24 hours'}), so it could never fire before the decision ends. Make it earlier, or lengthen lapseAfter.`);\n }\n if (target.warnBeforeMs !== undefined && target.warnBeforeMs >= target.afterMs) {\n issues.push(`deadlines.${kind}.warnBefore is not shorter than the ${kind} target itself, so the warning would fall at or before the request.`);\n }\n }\n for (const rule of policy.rules) {\n const target = reviewDeadlineKindOfStage(rule.stage) === ReviewDeadlineKind.CLAIM ? policy.claim : policy.decision;\n if (isReviewWarningStage(rule.stage) && target.warnBeforeMs === undefined) {\n issues.push(`deadlines.rules names the ${rule.stage} stage, but its clock declares no warnBefore, so that stage is never armed.`);\n }\n if (rule.action === ReviewEscalationActionKind.REASSIGN && context.routeKind === HumanDecision_RouteKind.OWNER) {\n issues.push(`deadlines.rules REASSIGNs at ${rule.stage}, but this gate routes to its OWNER, whose route cannot move.`);\n }\n }\n if (new Set(policy.pauseStates).size !== policy.pauseStates.length) {\n issues.push('deadlines.pauseStates names a pause state twice.');\n }\n // A pause state is also the last segment of its label key, `system_enums.HumanDecisionPauseState.<state>` (#1864),\n // and the label tree is addressed by dotted path: a state with a dot could never show its word.\n for (const pauseState of policy.pauseStates) {\n if (!isLabelKeySegment(pauseState)) {\n issues.push(`deadlines.pauseStates \"${pauseState}\" may contain only letters, digits, \"_\" and \"-\": it is also the last segment of its label key.`);\n }\n }\n return issues;\n}\n\n//===============================================================\n// Arming, advancing and settling a decision's clocks\n//===============================================================\n\n/**\n * The instants a decision's clocks were armed with, as the row stores them. Each stage's due instant is\n * stored rather than recomputed, so the sweep never depends on the gate still resolving, and a deployment\n * that changes a gate never reshapes a clock that is already running.\n */\nexport interface ArmedReviewDeadlines {\n readonly lapseAt: Date;\n readonly claimDeadlineAt: Date;\n readonly claimWarningAt?: Date;\n readonly claimBasis: ReviewClockBasis;\n readonly decisionDeadlineAt: Date;\n readonly decisionWarningAt?: Date;\n readonly decisionBasis: ReviewClockBasis;\n}\n\n/** Arm a decision's clocks at the moment it is requested. */\nexport function armReviewDeadlines(input: {\n readonly requestedAt: Date;\n readonly policy: ReviewDeadlinePolicy;\n readonly calendar: ReviewCalendar | undefined;\n}): ArmedReviewDeadlines {\n const { requestedAt, policy, calendar } = input;\n const claimDeadlineAt = shiftOnReviewClock(requestedAt, policy.claim.afterMs, policy.claim.basis, calendar);\n const decisionDeadlineAt = shiftOnReviewClock(requestedAt, policy.decision.afterMs, policy.decision.basis, calendar);\n return {\n lapseAt: new Date(requestedAt.getTime() + policy.lapseAfterMs),\n claimDeadlineAt,\n ...(policy.claim.warnBeforeMs ? { claimWarningAt: shiftOnReviewClock(claimDeadlineAt, -policy.claim.warnBeforeMs, policy.claim.basis, calendar) } : {}),\n claimBasis: policy.claim.basis,\n decisionDeadlineAt,\n ...(policy.decision.warnBeforeMs ? { decisionWarningAt: shiftOnReviewClock(decisionDeadlineAt, -policy.decision.warnBeforeMs, policy.decision.basis, calendar) } : {}),\n decisionBasis: policy.decision.basis,\n };\n}\n\n/** The four stage due instants and fired markers of one decision, whichever plane holds them. */\nexport interface ReviewDeadlineStageSchedule {\n readonly dueAt: Readonly<Partial<Record<ReviewDeadlineStage, Date>>>;\n readonly firedAt: Readonly<Partial<Record<ReviewDeadlineStage, Date>>>;\n /**\n * Whether someone has CLAIMED the decision. The CLAIM clock is met by a claim, so neither CLAIM stage\n * fires while it holds; an UNCLAIM re-opens it.\n */\n readonly claimed: boolean;\n /**\n * When the decision lapses. A stage due at or after it never fires (#1628 review M3): a CALENDAR target\n * pushed past a weekend, or a target moved by a pause, can land beyond the lapse, and a reminder that the\n * decision \"can still be answered until it expires\" would then describe a decision that has expired.\n */\n readonly lapseAt?: Date;\n}\n\n/** The stages in the order they fire when due together. */\nexport const REVIEW_DEADLINE_STAGE_ORDER: readonly ReviewDeadlineStage[] = Object.freeze([\n ReviewDeadlineStage.CLAIM_WARNING,\n ReviewDeadlineStage.CLAIM_MISSED,\n ReviewDeadlineStage.DECISION_WARNING,\n ReviewDeadlineStage.DECISION_MISSED,\n]);\n\n/**\n * May this stage still fire? Not once fired; not a CLAIM stage while the decision is claimed; and not a\n * WARNING whose deadline has already been missed (or is missed at the same moment) — a warning after the\n * fact is noise, and leaving it unmarked is honest: it never fired.\n */\nfunction stageMayFire(stage: ReviewDeadlineStage, schedule: ReviewDeadlineStageSchedule, now?: Date): boolean {\n const dueAt = schedule.dueAt[stage];\n if (schedule.firedAt[stage] || !dueAt) return false;\n if (schedule.lapseAt && dueAt.getTime() >= schedule.lapseAt.getTime()) return false;\n if (schedule.claimed && reviewDeadlineKindOfStage(stage) === ReviewDeadlineKind.CLAIM) return false;\n if (isReviewWarningStage(stage)) {\n const missed = missedStageOf(stage);\n if (schedule.firedAt[missed]) return false;\n const missedDue = schedule.dueAt[missed];\n if (now && missedDue && missedDue.getTime() <= now.getTime()) return false;\n // A warning about a deadline that falls at or after the lapse warns of something that will never come.\n if (schedule.lapseAt && missedDue && missedDue.getTime() >= schedule.lapseAt.getTime()) return false;\n }\n return true;\n}\n\n/** The stages due at `now`, in firing order. */\nexport function dueReviewDeadlineStages(schedule: ReviewDeadlineStageSchedule, now: Date): ReviewDeadlineStage[] {\n return REVIEW_DEADLINE_STAGE_ORDER.filter((stage) => stageMayFire(stage, schedule, now) && (schedule.dueAt[stage] as Date).getTime() <= now.getTime());\n}\n\n/**\n * The earliest instant any stage may still fire at — what the row's indexed next-due column holds, so the\n * sweep selects due rows by index. `undefined` when nothing is left to fire.\n */\nexport function nextReviewDeadlineDueAt(schedule: ReviewDeadlineStageSchedule): Date | undefined {\n let next: Date | undefined;\n for (const stage of REVIEW_DEADLINE_STAGE_ORDER) {\n if (!stageMayFire(stage, schedule)) continue;\n const dueAt = schedule.dueAt[stage] as Date;\n if (!next || dueAt.getTime() < next.getTime()) next = dueAt;\n }\n return next;\n}\n\n/** The service-target instants a pause moves. The lapse is deliberately absent: a pause never moves it (#1628 I4). */\nexport interface ReviewServiceTargetInstants {\n readonly claimDeadlineAt?: Date;\n readonly claimWarningAt?: Date;\n readonly claimBasis: ReviewClockBasis;\n readonly decisionDeadlineAt?: Date;\n readonly decisionWarningAt?: Date;\n readonly decisionBasis: ReviewClockBasis;\n}\n\n/**\n * The service targets after a pause from `pausedAt` to `resumedAt`. Each clock stopped at `pausedAt`: an\n * instant still ahead of it keeps the time that was left, counted on its own basis, from `resumedAt`. An\n * instant already behind it has passed and does not move.\n */\nexport function resumeReviewServiceTargets(\n targets: ReviewServiceTargetInstants,\n pausedAt: Date,\n resumedAt: Date,\n calendar: ReviewCalendar | undefined,\n): ReviewServiceTargetInstants {\n const move = (instant: Date | undefined, basis: ReviewClockBasis): Date | undefined => {\n if (!instant || instant.getTime() <= pausedAt.getTime()) return instant;\n return shiftOnReviewClock(resumedAt, countedOnReviewClock(pausedAt, instant, basis, calendar), basis, calendar);\n };\n return {\n ...targets,\n claimDeadlineAt: move(targets.claimDeadlineAt, targets.claimBasis),\n claimWarningAt: move(targets.claimWarningAt, targets.claimBasis),\n decisionDeadlineAt: move(targets.decisionDeadlineAt, targets.decisionBasis),\n decisionWarningAt: move(targets.decisionWarningAt, targets.decisionBasis),\n };\n}\n\n/**\n * Whether each armed service target was MET or MISSED, as the RESOLVED event records it.\n *\n * - DECISION is missed when its MISSED stage fired, when the decision lapsed (nobody decided), or when it\n * ended after the deadline.\n * - CLAIM is met when the decision was claimed, or settled by a person, by the CLAIM deadline; missed when\n * its MISSED stage fired, or when it was taken — or lapsed — only after the deadline.\n *\n * - A WITHDRAWN decision was taken by nobody and answered by nobody, so it is measured only where a\n * deadline had ALREADY been missed before the withdrawal; a clock it was withdrawn inside is omitted,\n * never reported as met.\n *\n * The deadlines passed in must already include any pause, including one still open when the decision\n * ended (see `resumeReviewServiceTargets`): a clock that was stopped cannot have been missed while it was.\n *\n * A clock that was never armed (a row from before #1628) is omitted rather than guessed.\n */\nexport function reviewDeadlineOutcomesOf(input: {\n readonly claimDeadlineAt?: Date;\n readonly decisionDeadlineAt?: Date;\n readonly claimMissedFiredAt?: Date;\n readonly decisionMissedFiredAt?: Date;\n /** When the decision was claimed, if it is claimed as it ends. */\n readonly claimedAt?: Date;\n readonly outcome: HumanDecision_Outcome;\n readonly resolvedAt: Date;\n}): Partial<Record<ReviewDeadlineKind, ReviewDeadlineOutcome>> {\n const outcomes: Partial<Record<ReviewDeadlineKind, ReviewDeadlineOutcome>> = {};\n if (input.outcome === HumanDecision_Outcome.WITHDRAWN) {\n if (input.claimDeadlineAt && input.claimMissedFiredAt) outcomes[ReviewDeadlineKind.CLAIM] = ReviewDeadlineOutcome.MISSED;\n if (input.decisionDeadlineAt && input.decisionMissedFiredAt) outcomes[ReviewDeadlineKind.DECISION] = ReviewDeadlineOutcome.MISSED;\n return outcomes;\n }\n const lapsed = input.outcome === HumanDecision_Outcome.LAPSED;\n if (input.decisionDeadlineAt) {\n const missed = !!input.decisionMissedFiredAt || lapsed || input.resolvedAt.getTime() > input.decisionDeadlineAt.getTime();\n outcomes[ReviewDeadlineKind.DECISION] = missed ? ReviewDeadlineOutcome.MISSED : ReviewDeadlineOutcome.MET;\n }\n if (input.claimDeadlineAt) {\n const deadline = input.claimDeadlineAt.getTime();\n const takenBy = input.claimedAt ?? (lapsed ? undefined : input.resolvedAt);\n const met = !input.claimMissedFiredAt && takenBy !== undefined && takenBy.getTime() <= deadline;\n outcomes[ReviewDeadlineKind.CLAIM] = met ? ReviewDeadlineOutcome.MET : ReviewDeadlineOutcome.MISSED;\n }\n return outcomes;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.actors.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/flows-actors/tasks.actors.shared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,MAAM,CAAC;YAC1C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;SACvB,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACrB,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE,6BAA6B;YACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;SACrG,CAAC,CAAC;QAEH,oBAAoB,EAAE,6BAA6B,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACvE,CAAC,CAAC,QAAQ,EAAE;IAEb,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;IACpG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;CACrG,CAAC,CAAC;AAGH;;;;GAIG","sourcesContent":["import { z } from \"zod\";\n\nimport { ArtifactInstanceSchema } from \"./flows-actors.io.shared.schemas\";\nimport { FlowsActors_Checkpoint_Schema, FlowsActors_ElementKind, FlowsActors_Event_ContextSchema, FlowsActors_RelationshipSchema, FlowsActors_Status } from \"./flows-actors.commons.shared.schemas\";\nimport { WildoError_BackendSchema } from \"../errors/errors.shared.schemas\";\nimport { ExecutionContext_InitiatorIdsSchema } from \"../runtime/execution-context.shared.schemas\";\nimport { Flow_Node_RelationshipSchema } from \"./flows.shared.schemas\";\nimport { Actor_Role_Category } from \"./actors.shared.schemas\";\n\n//===============================================================\n// Actors_Memory\n// --------\n// Actors_Memory provides contextual storage for agents and tasks across\n// different time horizons: short-term (immediate context),\n// long-term (persistent knowledge), and working (active processing).\n// This enables stateful conversations, knowledge accumulation,\n// and context-aware decision making in AI-powered workflows.\n//\n// PLANNED SURFACE — KEEP (decided by Paul, 2026-09-21, #1363).\n// Nothing writes `Actors_Task.memory` yet, and that is NOT evidence it\n// is dead. Its intended meaning is the task's CONSOLIDATED memory: what\n// the content of an issue is to a piece of work — the elements that must\n// be kept as the task advances (decisions taken, facts established,\n// what was tried), registered ON the task so a later turn, a resumed\n// run or another actor reads them instead of re-deriving them. A\n// \"zero readers\" sweep will keep finding this field until its first\n// writer lands; do not delete it, its columns or its components on\n// that measurement.\n//===============================================================\n\nexport enum Actors_Memory_Scope {\n SHORT_TERM = \"short_term\",\n LONG_TERM = \"long_term\",\n WORKING = \"working\",\n}\n\nexport const Actors_Memory_EntrySchema = z.object({\n key: z.string(),\n value: z.any(),\n type: z.enum([\"text\", \"json\", \"binary\"]),\n timestamp: z.string(),\n expiresAt: z.string().optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type Actors_Memory_Entry = z.infer<typeof Actors_Memory_EntrySchema>;\n\nexport const Actors_Memory_StoreSchema = z.object({\n entries: z.array(Actors_Memory_EntrySchema),\n maxSize: z.number().optional(),\n ttl: z.number().optional(),\n});\n\nexport type Actors_Memory_Store = z.infer<typeof Actors_Memory_StoreSchema>;\n\nexport const Actors_Memory_ContextSchema = z.object({\n shortTerm: Actors_Memory_StoreSchema,\n longTerm: Actors_Memory_StoreSchema,\n working: Actors_Memory_StoreSchema,\n});\n\nexport type Actors_Memory_Context = z.infer<typeof Actors_Memory_ContextSchema>;\n\n\n\n//===============================================================\n// Actors_Task\n// --------\n// Actors_Tasks represent individual execution instances of flows or actors,\n// tracking their lifecycle from creation to completion. They maintain\n// execution context, budget constraints, error states, and detailed\n// history for monitoring, debugging, and cost management across\n// the distributed workflow execution environment.\n//===============================================================\n\n\n\nexport enum Actor_Task_Topics {\n WEB_SEARCH = \"WEB_SEARCH\",\n RESEARCH = \"RESEARCH\",\n PLANNING = \"PLANNING\",\n IMPLEMENTATION = \"IMPLEMENTATION\",\n VERIFICATION = \"VERIFICATION\",\n /**\n * One step of a METHOD — a playbook run, in the app-creation lane's words, though the member is\n * named for the shape and not the consumer: a unit of work that follows an authored methodology\n * and may itself plan, research, implement or verify. Added 2026-09-20 (#1358); until then a\n * playbook run was filed under `PLANNING` with a comment recording the mismatch.\n */\n METHOD_STEP = \"METHOD_STEP\",\n}\n\n/**\n * What a task is correlated BACK to, in the vocabulary of whichever domain dispatched it.\n *\n * ## Why the engine owns an envelope and not a field list\n *\n * Until 2026-09-19 this object declared five fields by name — `journeyId`, `playbookRef`,\n * `playbookVersion`, `playbookRunId`, `stepRef` — so the GENERIC actor task carried one named\n * consumer's vocabulary. A second topic using the task plane inherited those names and had nowhere\n * to put its own, which is the coupling #1332 exists to remove.\n *\n * They were also, all five, **never written**. Measured 2026-09-19: `journeyId` and `playbookRunId`\n * had zero writers anywhere, the only production creator of a task passed `context: {}`, and the\n * correlation the app-creation lane actually uses is a bespoke `workbenchBuildPlanTaskId` foreign\n * key bolted onto the persisted platform row. So the engine was reserving five names for a\n * correlation nobody populated.\n *\n * The forcing function that produced them is real and is why this is an ENVELOPE rather than\n * nothing: `z.object({})` strips every key on parse, so a producer's context vanishes silently\n * unless the schema declares somewhere to put it. The engine therefore owns the SLOT and its rule;\n * the dispatching domain owns the CONTENT and validates it at its own boundary.\n *\n * ## The contract\n *\n * - `domain` names who the refs belong to, as a stable identifier (`application-creation`,\n * `technical-documentation`, an application's own). It is deliberately OPEN: the whole point is\n * that a topic the engine has never heard of can correlate its work.\n * - `refs` is that domain's own key/value set. The engine checks only that keys and values are\n * non-empty strings; what the keys MEAN, and which are required, is the domain's schema to\n * declare and enforce where it creates the task.\n *\n * No domain payload is declared anywhere yet, deliberately: nothing writes a correlation today, and\n * declaring a shape for a producer that does not exist is how the five dead fields happened. The\n * first producer declares its own (see #1343, which is where a playbook run starts creating tasks).\n */\nexport const Actors_Task_Correlation_Schema = z.object({\n /** Stable identifier of the domain whose vocabulary `refs` uses. */\n domain: z.string().min(1),\n /** That domain's correlation keys. Opaque to the engine; validated by the domain. */\n refs: z.record(z.string().min(1), z.string().min(1)),\n});\n\nexport type Actors_Task_Correlation = z.infer<typeof Actors_Task_Correlation_Schema>;\n\n/**\n * Task context. Absent correlation is the normal case — a task dispatched by nothing in particular\n * carries none.\n */\nexport const Actors_Task_Context_Schema = z.object({\n correlation: Actors_Task_Correlation_Schema.optional(),\n});\n\nexport type Actors_Task_Context = z.infer<typeof Actors_Task_Context_Schema>;\n\nexport const Actors_Task_Schema = z.object({\n _id: z.string(),\n\n title: z.string(),\n description: z.string(),\n /*\n * Both vocabularies DECLARE themselves (#966), which is what lets their words be authored ONCE\n * under `system_enums.<Name>.<value>` instead of per field path. Without the declaration the\n * frontend cascade has no vocabulary to fall back to and renders the raw constant — `PROCESSING`,\n * `IMPLEMENTATION` — which is precisely the \"a missing label must LOOK missing\" state, on two\n * fields every surface that shows a task renders. Metadata only: an application that authors no\n * block still renders the raw value, exactly as before.\n */\n topic: z.enum(Actor_Task_Topics).systemEnum('Actor_Task_Topics'),\n\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status'),\n initiator: ExecutionContext_InitiatorIdsSchema,\n relationships: z.array(FlowsActors_RelationshipSchema),\n\n actors: z.object({\n // actorKind: z.enum(Actor_Role_Category), // circular dependencies\n actorRef: z.string(),\n }),\n\n input: z.any(),\n output: z.any().optional(),\n\n memory: Actors_Memory_ContextSchema,\n context: Actors_Task_Context_Schema,\n\n\n artifacts: z.array(ArtifactInstanceSchema).optional(),\n\n\n actorStates: z.object({\n actorRef: z.string(),\n status: z.enum(FlowsActors_Status),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status),\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n }).array(),\n\n errorStates : z.object({\n errorItems: WildoError_BackendSchema.extend({\n actorRef: z.string(),\n }).array().optional(),\n checkpointChecks: z.array(z.object({\n checkpoint: FlowsActors_Checkpoint_Schema,\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n\n availableCheckpoints: FlowsActors_Checkpoint_Schema.array().optional(),\n }).optional(),\n\n createdAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n startedAt: z.string().optional(),\n completedAt: z.string().optional(),\n});\n\nexport type Actors_Task = z.infer<typeof Actors_Task_Schema>;\n\n\n\n//===============================================================\n// ActorsSystem_ExecutionPlan\n// --------\n// ActorsSystem_ExecutionPlans represent AI-generated execution strategies that outline\n// the steps needed to accomplish complex tasks. They provide\n// cost and duration estimates, dependency mapping, and can be\n// approved before execution, enabling predictable and controlled\n// automated workflow generation by intelligent agents.\n//===============================================================\n\n\n\nexport const ActorsSystem_ExecutionPlan_Step_Schema = z.object({\n _id: z.string(),\n name: z.string().optional(),\n description: z.string().optional(),\n topic: z.string(),\n relationships: z.array(FlowsActors_RelationshipSchema),\n status: z.enum(FlowsActors_Status),\n\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status),\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n\n createdAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n\n});\nexport type ActorsSystem_ExecutionPlan_Step = z.infer<typeof ActorsSystem_ExecutionPlan_Step_Schema>;\n\nexport const ActorsSystem_ExecutionPlan_Schema = z.object({\n _id: z.string(),\n goalDescription: z.string(),\n status: z.enum(FlowsActors_Status),\n initiator: ExecutionContext_InitiatorIdsSchema,\n relationships: z.array(FlowsActors_RelationshipSchema),\n\n planSteps: z.array(ActorsSystem_ExecutionPlan_Step_Schema),\n\n\n stepStates: z.object({\n planStepId: z.string(),\n status: z.enum(FlowsActors_Status),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status),\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n }).array(),\n\n errorStates : z.object({\n errorItems: WildoError_BackendSchema.extend({\n planStepId: z.string(),\n }).array().optional(),\n checkpointChecks: z.array(z.object({\n checkpoint: FlowsActors_Checkpoint_Schema,\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n\n availableCheckpoints: FlowsActors_Checkpoint_Schema.array().optional(),\n }).optional(),\n\n createdAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n});\nexport type ActorsSystem_ExecutionPlan = z.infer<typeof ActorsSystem_ExecutionPlan_Schema>;\n\n/*\n * `Actors_Walkthrough` was removed on 2026-09-20 (#1363): five identity fields and a `// TODO for\n * real`, carried as an optional `walkthrough` on every actor execution — a column, a label and a\n * display line for a thing with no writer, no reader and no definition of what it was.\n */\n"]}
1
+ {"version":3,"file":"tasks.actors.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/tasks.actors.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,6BAA6B,EAA4D,8BA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CAAC;QACrB,UAAU,EAAE,wBAAwB,CAAC,MAAM,CAAC;YAC1C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;SACvB,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACrB,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;YACjC,UAAU,EAAE,6BAA6B;YACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;SACrG,CAAC,CAAC;QAEH,oBAAoB,EAAE,6BAA6B,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;KACvE,CAAC,CAAC,QAAQ,EAAE;IAEb,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;IACpG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,CAAC;CACrG,CAAC,CAAC;AAGH;;;;GAIG","sourcesContent":["import { z } from \"zod\";\n\nimport { ArtifactInstanceSchema } from \"./flows-actors.io.shared.schemas\";\nimport { FlowsActors_Checkpoint_Schema, FlowsActors_ElementKind, FlowsActors_Event_ContextSchema, FlowsActors_RelationshipSchema, FlowsActors_Status } from \"./flows-actors.commons.shared.schemas\";\nimport { WildoError_BackendSchema } from \"../errors/errors.shared.schemas\";\nimport { ExecutionContext_InitiatorIdsSchema } from \"../runtime/execution-context.shared.schemas\";\nimport { Flow_Node_RelationshipSchema } from \"./flows.shared.schemas\";\nimport { Actor_Role_Category } from \"./actors.shared.schemas\";\n\n//===============================================================\n// Actors_Memory\n// --------\n// Actors_Memory provides contextual storage for agents and tasks across\n// different time horizons: short-term (immediate context),\n// long-term (persistent knowledge), and working (active processing).\n// This enables stateful conversations, knowledge accumulation,\n// and context-aware decision making in AI-powered workflows.\n//\n// PLANNED SURFACE — KEEP (decided by Paul, 2026-09-21, #1363).\n// Nothing writes `Actors_Task.memory` yet, and that is NOT evidence it\n// is dead. Its intended meaning is the task's CONSOLIDATED memory: what\n// the content of an issue is to a piece of work — the elements that must\n// be kept as the task advances (decisions taken, facts established,\n// what was tried), registered ON the task so a later turn, a resumed\n// run or another actor reads them instead of re-deriving them. A\n// \"zero readers\" sweep will keep finding this field until its first\n// writer lands; do not delete it, its columns or its components on\n// that measurement.\n//===============================================================\n\nexport enum Actors_Memory_Scope {\n SHORT_TERM = \"short_term\",\n LONG_TERM = \"long_term\",\n WORKING = \"working\",\n}\n\nexport const Actors_Memory_EntrySchema = z.object({\n key: z.string(),\n value: z.any(),\n type: z.enum([\"text\", \"json\", \"binary\"]),\n timestamp: z.string(),\n expiresAt: z.string().optional(),\n metadata: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type Actors_Memory_Entry = z.infer<typeof Actors_Memory_EntrySchema>;\n\nexport const Actors_Memory_StoreSchema = z.object({\n entries: z.array(Actors_Memory_EntrySchema),\n maxSize: z.number().optional(),\n ttl: z.number().optional(),\n});\n\nexport type Actors_Memory_Store = z.infer<typeof Actors_Memory_StoreSchema>;\n\nexport const Actors_Memory_ContextSchema = z.object({\n shortTerm: Actors_Memory_StoreSchema,\n longTerm: Actors_Memory_StoreSchema,\n working: Actors_Memory_StoreSchema,\n});\n\nexport type Actors_Memory_Context = z.infer<typeof Actors_Memory_ContextSchema>;\n\n\n\n//===============================================================\n// Actors_Task\n// --------\n// Actors_Tasks represent individual execution instances of flows or actors,\n// tracking their lifecycle from creation to completion. They maintain\n// execution context, budget constraints, error states, and detailed\n// history for monitoring, debugging, and cost management across\n// the distributed workflow execution environment.\n//===============================================================\n\n\n\nexport enum Actor_Task_Topics {\n WEB_SEARCH = \"WEB_SEARCH\",\n RESEARCH = \"RESEARCH\",\n PLANNING = \"PLANNING\",\n IMPLEMENTATION = \"IMPLEMENTATION\",\n VERIFICATION = \"VERIFICATION\",\n /**\n * One step of a METHOD — a playbook run, in the app-creation lane's words, though the member is\n * named for the shape and not the consumer: a unit of work that follows an authored methodology\n * and may itself plan, research, implement or verify. Added 2026-09-20 (#1358); until then a\n * playbook run was filed under `PLANNING` with a comment recording the mismatch.\n */\n METHOD_STEP = \"METHOD_STEP\",\n}\n\n/**\n * What a task is correlated BACK to, in the vocabulary of whichever domain dispatched it.\n *\n * ## Why the engine owns an envelope and not a field list\n *\n * Until 2026-09-19 this object declared five fields by name — `journeyId`, `playbookRef`,\n * `playbookVersion`, `playbookRunId`, `stepRef` — so the GENERIC actor task carried one named\n * consumer's vocabulary. A second topic using the task plane inherited those names and had nowhere\n * to put its own, which is the coupling #1332 exists to remove.\n *\n * They were also, all five, **never written**. Measured 2026-09-19: `journeyId` and `playbookRunId`\n * had zero writers anywhere, the only production creator of a task passed `context: {}`, and the\n * correlation the app-creation lane actually uses is a bespoke `workbenchBuildPlanTaskId` foreign\n * key bolted onto the persisted platform row. So the engine was reserving five names for a\n * correlation nobody populated.\n *\n * The forcing function that produced them is real and is why this is an ENVELOPE rather than\n * nothing: `z.object({})` strips every key on parse, so a producer's context vanishes silently\n * unless the schema declares somewhere to put it. The engine therefore owns the SLOT and its rule;\n * the dispatching domain owns the CONTENT and validates it at its own boundary.\n *\n * ## The contract\n *\n * - `domain` names who the refs belong to, as a stable identifier (`application-creation`,\n * `technical-documentation`, an application's own). It is deliberately OPEN: the whole point is\n * that a topic the engine has never heard of can correlate its work.\n * - `refs` is that domain's own key/value set. The engine checks only that keys and values are\n * non-empty strings; what the keys MEAN, and which are required, is the domain's schema to\n * declare and enforce where it creates the task.\n *\n * No domain payload is declared anywhere yet, deliberately: nothing writes a correlation today, and\n * declaring a shape for a producer that does not exist is how the five dead fields happened. The\n * first producer declares its own (see #1343, which is where a playbook run starts creating tasks).\n */\nexport const Actors_Task_Correlation_Schema = z.object({\n /** Stable identifier of the domain whose vocabulary `refs` uses. */\n domain: z.string().min(1),\n /** That domain's correlation keys. Opaque to the engine; validated by the domain. */\n refs: z.record(z.string().min(1), z.string().min(1)),\n});\n\nexport type Actors_Task_Correlation = z.infer<typeof Actors_Task_Correlation_Schema>;\n\n/**\n * Task context. Absent correlation is the normal case — a task dispatched by nothing in particular\n * carries none.\n */\nexport const Actors_Task_Context_Schema = z.object({\n correlation: Actors_Task_Correlation_Schema.optional(),\n});\n\nexport type Actors_Task_Context = z.infer<typeof Actors_Task_Context_Schema>;\n\nexport const Actors_Task_Schema = z.object({\n _id: z.string(),\n\n title: z.string(),\n description: z.string(),\n /*\n * Both vocabularies DECLARE themselves (#966), which is what lets their words be authored ONCE\n * under `system_enums.<Name>.<value>` instead of per field path. Without the declaration the\n * frontend cascade has no vocabulary to fall back to and renders the raw constant — `PROCESSING`,\n * `IMPLEMENTATION` — which is precisely the \"a missing label must LOOK missing\" state, on two\n * fields every surface that shows a task renders. Metadata only: an application that authors no\n * block still renders the raw value, exactly as before.\n */\n topic: z.enum(Actor_Task_Topics).systemEnum('Actor_Task_Topics'),\n\n status: z.enum(FlowsActors_Status).systemEnum('FlowsActors_Status'),\n initiator: ExecutionContext_InitiatorIdsSchema,\n relationships: z.array(FlowsActors_RelationshipSchema),\n\n actors: z.object({\n // actorKind: z.enum(Actor_Role_Category), // circular dependencies\n actorRef: z.string(),\n }),\n\n input: z.any(),\n output: z.any().optional(),\n\n memory: Actors_Memory_ContextSchema,\n context: Actors_Task_Context_Schema,\n\n\n artifacts: z.array(ArtifactInstanceSchema).optional(),\n\n\n actorStates: z.object({\n actorRef: z.string(),\n status: z.enum(FlowsActors_Status),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status),\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n }).array(),\n\n errorStates : z.object({\n errorItems: WildoError_BackendSchema.extend({\n actorRef: z.string(),\n }).array().optional(),\n checkpointChecks: z.array(z.object({\n checkpoint: FlowsActors_Checkpoint_Schema,\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n\n availableCheckpoints: FlowsActors_Checkpoint_Schema.array().optional(),\n }).optional(),\n\n createdAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n startedAt: z.string().optional(),\n completedAt: z.string().optional(),\n});\n\nexport type Actors_Task = z.infer<typeof Actors_Task_Schema>;\n\n\n\n//===============================================================\n// ActorsSystem_ExecutionPlan\n// --------\n// ActorsSystem_ExecutionPlans represent AI-generated execution strategies that outline\n// the steps needed to accomplish complex tasks. They provide\n// cost and duration estimates, dependency mapping, and can be\n// approved before execution, enabling predictable and controlled\n// automated workflow generation by intelligent agents.\n//===============================================================\n\n\n\nexport const ActorsSystem_ExecutionPlan_Step_Schema = z.object({\n _id: z.string(),\n name: z.string().optional(),\n description: z.string().optional(),\n topic: z.string(),\n relationships: z.array(FlowsActors_RelationshipSchema),\n status: z.enum(FlowsActors_Status),\n\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status),\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n\n createdAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n\n});\nexport type ActorsSystem_ExecutionPlan_Step = z.infer<typeof ActorsSystem_ExecutionPlan_Step_Schema>;\n\nexport const ActorsSystem_ExecutionPlan_Schema = z.object({\n _id: z.string(),\n goalDescription: z.string(),\n status: z.enum(FlowsActors_Status),\n initiator: ExecutionContext_InitiatorIdsSchema,\n relationships: z.array(FlowsActors_RelationshipSchema),\n\n planSteps: z.array(ActorsSystem_ExecutionPlan_Step_Schema),\n\n\n stepStates: z.object({\n planStepId: z.string(),\n status: z.enum(FlowsActors_Status),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n statusChanges: z.array(z.object({\n status: z.enum(FlowsActors_Status),\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n }).array(),\n\n errorStates : z.object({\n errorItems: WildoError_BackendSchema.extend({\n planStepId: z.string(),\n }).array().optional(),\n checkpointChecks: z.array(z.object({\n checkpoint: FlowsActors_Checkpoint_Schema,\n timestamp: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n })),\n\n availableCheckpoints: FlowsActors_Checkpoint_Schema.array().optional(),\n }).optional(),\n\n createdAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n updatedAt: z.string().refine((val) => !isNaN(Date.parse(val)), { error: 'Invalid datetime string' }),\n});\nexport type ActorsSystem_ExecutionPlan = z.infer<typeof ActorsSystem_ExecutionPlan_Schema>;\n\n/*\n * `Actors_Walkthrough` was removed on 2026-09-20 (#1363): five identity fields and a `// TODO for\n * real`, carried as an optional `walkthrough` on every actor execution — a column, a label and a\n * display line for a thing with no writer, no reader and no definition of what it was.\n */\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"work-attribution.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/flows-actors/work-attribution.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OA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,OAAO,EAAE,yBAAyB,GAAG,SAAS,GAC7C;IAAE,WAAW,EAAE,yBAAyB,CAAC;IAAC,MAAM,EAAE,0BAA0B,CAAA;CAAE,CAehF"}
1
+ {"version":3,"file":"work-attribution.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/flows-actors/work-attribution.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,0BAA0B,CAAC;AAIlC;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B,gHAAgH;IAChH,eAAe,oBAAoB;IACnC;;;OAGG;IACH,wBAAwB,6BAA6B;IACrD,yGAAyG;IACzG,SAAS,cAAc;IACvB,wFAAwF;IACxF,gBAAgB,qBAAqB;CACtC;AAED,uDAAuD;AACvD,eAAO,MAAM,kBAAkB;;;kBAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,+DAA+D;AAC/D,oBAAY,0BAA0B;IACpC,iGAAiG;IACjG,QAAQ,aAAa;IACrB,0FAA0F;IAC1F,OAAO,YAAY;IACnB,oHAAoH;IACpH,YAAY,iBAAiB;CAC9B;AAED,uEAAuE;AACvE,oBAAY,yBAAyB;IACnC,yDAAyD;IACzD,UAAU,eAAe;IACzB;;;OAGG;IACH,2BAA2B,gCAAgC;CAC5D;AAED,+DAA+D;AAC/D,oBAAY,sBAAsB;IAChC,gGAAgG;IAChG,MAAM,WAAW;IACjB,kFAAkF;IAClF,QAAQ,aAAa;CACtB;AAED;;;;;GAKG;AACH,oBAAY,uBAAuB;IACjC,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,yCAAyC;AACzC,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED;;;;;GAKG;AACH,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAC9B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;kBAK1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,qEAAqE;AAErE;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,yBAAyB,GAAG,SAAS,EAC/C,OAAO,EAAE,yBAAyB,GAAG,SAAS,GAC7C;IAAE,WAAW,EAAE,yBAAyB,CAAC;IAAC,MAAM,EAAE,0BAA0B,CAAA;CAAE,CAehF"}
@@ -1 +1 @@
1
- {"version":3,"file":"work-attribution.shared.schemas.js","sourceRoot":"","sources":["../../../src/flows-actors/work-attribution.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,wEAAwE;AACxE,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E;;;;GAIG;AACH,MAAM,CAAN,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IAC1B,gHAAgH;IAChH,uDAAmC,CAAA;IACnC;;;OAGG;IACH,yEAAqD,CAAA;IACrD,yGAAyG;IACzG,2CAAuB,CAAA;IACvB,wFAAwF;IACxF,yDAAqC,CAAA;AACvC,CAAC,EAZW,gBAAgB,KAAhB,gBAAgB,QAY3B;AAED,uDAAuD;AACvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IAC1G,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAA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AY,IAAI,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,IAAI,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7H,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACrG,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;QAC7B,CAAC,CAAC,0BAA0B,CAAC,QAAQ;QACrC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;YACf,CAAC,CAAC,0BAA0B,CAAC,OAAO;YACpC,CAAC,CAAC,0BAA0B,CAAC,YAAY,CAAC;IAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;AACjC,CAAC","sourcesContent":["/**\n * # Work attribution: which tenant, which case and which execution a model call served\n *\n * The shared vocabulary of cost attribution (#1598) and of the expert-correction record (#1599). A model\n * call is attributed to a unit of work so an AI-native service firm can compute its cost per case:\n * inference plus the expert time spent on the same case.\n *\n * Three references travel together, and each answers a different question:\n *\n * - `organizationId` — WHOSE work it was. Derived by the engine from an authenticated owner field or\n * from the case row's own scope, never taken from a caller or a model (#1598 §5).\n * - `caseRef` — WHICH case (a {@link WorkUnitRef}: a row of a resource declared `workUnit: true`).\n * - `executionRef` — WHICH run spent it (a conversational turn, an actor execution, a batch run, the\n * processing of an inbound delivery). `taskRef` optionally narrows it to one actor task.\n *\n * None of these is authority. They are accounting facts: nothing may authorize on them, and the work\n * frame that carries them (`work-attribution.als.backend.ts`) is deliberately separate from the\n * `ExecutionContext`, which IS authority.\n */\nimport { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load (#966).\nimport '@wildo-ai/zod-decorators';\n\nimport { WorkUnitRefSchema } from '../resources/work-unit.shared.schemas';\n\n/**\n * @wildo_source:part:start saas.models.work-attribution-vocabulary facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * What kind of run spent a model call. One member per engine surface that opens a work frame.\n */\nexport enum ExecutionRefKind {\n /** An actor-system execution (`runActorExecution` / `resumeActorExecution`). `id` is the actor execution id. */\n ACTOR_EXECUTION = 'ACTOR_EXECUTION',\n /**\n * A conversational turn (WebSocket chat, A2A, or an autonomous agent's turn, which runs through the\n * same `startConversationalExecution`). `id` is the conversational execution id, which a resume keeps.\n */\n CONVERSATIONAL_EXECUTION = 'CONVERSATIONAL_EXECUTION',\n /** One run of a scheduled or queued batch (the RAG embedding drain, for example). `id` is the run id. */\n BATCH_RUN = 'BATCH_RUN',\n /** The processing of one inbound delivery (email, webhook). `id` is the delivery id. */\n INBOUND_DELIVERY = 'INBOUND_DELIVERY',\n}\n\n/** A reference to the run a model call was made in. */\nexport const ExecutionRefSchema = z.strictObject({\n kind: z.enum(ExecutionRefKind).systemEnum('ExecutionRefKind').describe('What kind of run spent the call.'),\n id: z.string().min(1).max(200).describe('Id of that run, in the store the kind names.'),\n});\nexport type ExecutionRef = z.infer<typeof ExecutionRefSchema>;\n\n/** How an attribution row learned which work a call served. */\nexport enum ModelCallAttributionSource {\n /** The engine call site passed the attribution explicitly with the call. Wins over any frame. */\n EXPLICIT = 'EXPLICIT',\n /** The recorder read it from the ambient work frame the engine opened around the call. */\n AMBIENT = 'AMBIENT',\n /** Neither: the call ran outside any work frame (platform tooling, the companion). Counted apart, never guessed. */\n UNATTRIBUTED = 'UNATTRIBUTED',\n}\n\n/** Which part of one provider call an attribution row accounts for. */\nexport enum ModelCallAttributionShare {\n /** The whole call served one unit of work: share 1/1. */\n WHOLE_CALL = 'WHOLE_CALL',\n /**\n * One call served several source rows of ONE tenant (an embedding batch). Each row gets\n * `shareNumerator` = its input length over `shareDenominator` = the call's total input length.\n */\n APPORTIONED_BY_INPUT_LENGTH = 'APPORTIONED_BY_INPUT_LENGTH',\n}\n\n/** Whether a registered pricing authority matched the call. */\nexport enum ModelCallPricingStatus {\n /** An application-registered authority for the provider and model was effective at the call. */\n PRICED = 'PRICED',\n /** No authority matched. Counted apart by every summary, never priced at zero. */\n UNPRICED = 'UNPRICED',\n}\n\n/**\n * Whether the provider reported how many of the output tokens were reasoning.\n *\n * OpenAI, Google, xAI and Perplexity report it; Anthropic and Mistral do not. An unreported count is\n * `UNREPORTED`, never 0: zero reasoning tokens is a claim, and the provider did not make it.\n */\nexport enum ReasoningUsageReporting {\n REPORTED = 'REPORTED',\n UNREPORTED = 'UNREPORTED',\n}\n\n/** The axis a cost summary groups by. */\nexport enum ModelCostGroupBy {\n CASE = 'CASE',\n ORGANIZATION = 'ORGANIZATION',\n AGENT = 'AGENT',\n MODEL = 'MODEL',\n}\n\n/**\n * Whether a case's expert time could be joined from the expert-decision records (#1599).\n *\n * `NOT_RECORDED` means no decision record exists to join, which is not the same as zero expert time:\n * a summary never reports 0 for time it cannot see.\n */\nexport enum ExpertTimeAvailability {\n JOINED = 'JOINED',\n NOT_RECORDED = 'NOT_RECORDED',\n}\n\n/**\n * Attribution a model call site passes EXPLICITLY (#1598 §4). When present it wins over the ambient work\n * frame, field by field for the fields it sets.\n *\n * Only engine code builds one. A `caseRef` from a client reaches it only after the boundary that accepted\n * it checked that the resource is a work unit and that the caller can READ that row.\n */\nexport const ModelCallAttributionInputSchema = z.strictObject({\n organizationId: z.string().min(1).optional().describe('The tenant, derived from an authenticated owner field or the case row; never from a caller or a model.'),\n caseRef: WorkUnitRefSchema.optional().describe('The case the call served: a row of a resource declared `workUnit: true`.'),\n executionRef: ExecutionRefSchema.optional().describe('The run the call was made in.'),\n taskRef: z.string().min(1).max(200).optional().describe('The actor task within that run, when there is one.'),\n});\nexport type ModelCallAttributionInput = z.infer<typeof ModelCallAttributionInputSchema>;\n/** @wildo_source:part:end saas.models.work-attribution-vocabulary */\n\n/**\n * Merge an explicit attribution over an ambient one, field by field (#1598 §4: explicit first, then the\n * frame). Returns the merged value and the source it will be recorded under: `EXPLICIT` when the call\n * site set any field, `AMBIENT` when only the frame did, `UNATTRIBUTED` when neither said anything.\n */\nexport function resolveModelCallAttribution(\n explicit: ModelCallAttributionInput | undefined,\n ambient: ModelCallAttributionInput | undefined,\n): { attribution: ModelCallAttributionInput; source: ModelCallAttributionSource } {\n const hasAny = (value: ModelCallAttributionInput | undefined): boolean =>\n value !== undefined && (value.organizationId !== undefined || value.caseRef !== undefined || value.executionRef !== undefined || value.taskRef !== undefined);\n const attribution: ModelCallAttributionInput = {\n ...(explicit?.organizationId ?? ambient?.organizationId ? { organizationId: explicit?.organizationId ?? ambient?.organizationId } : {}),\n ...(explicit?.caseRef ?? ambient?.caseRef ? { caseRef: explicit?.caseRef ?? ambient?.caseRef } : {}),\n ...(explicit?.executionRef ?? ambient?.executionRef ? { executionRef: explicit?.executionRef ?? ambient?.executionRef } : {}),\n ...(explicit?.taskRef ?? ambient?.taskRef ? { taskRef: explicit?.taskRef ?? ambient?.taskRef } : {}),\n };\n const source = hasAny(explicit)\n ? ModelCallAttributionSource.EXPLICIT\n : hasAny(ambient)\n ? ModelCallAttributionSource.AMBIENT\n : ModelCallAttributionSource.UNATTRIBUTED;\n return { attribution, source };\n}\n"]}
1
+ {"version":3,"file":"work-attribution.shared.schemas.js","sourceRoot":"","sources":["../../../../src/flows-actors/work-attribution.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,wEAAwE;AACxE,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE1E;;;;GAIG;AACH,MAAM,CAAN,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IAC1B,gHAAgH;IAChH,uDAAmC,CAAA;IACnC;;;OAGG;IACH,yEAAqD,CAAA;IACrD,yGAAyG;IACzG,2CAAuB,CAAA;IACvB,wFAAwF;I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,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,IAAI,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvI,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACpG,GAAG,CAAC,QAAQ,EAAE,YAAY,IAAI,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,IAAI,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7H,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,IAAI,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACrG,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;QAC7B,CAAC,CAAC,0BAA0B,CAAC,QAAQ;QACrC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;YACf,CAAC,CAAC,0BAA0B,CAAC,OAAO;YACpC,CAAC,CAAC,0BAA0B,CAAC,YAAY,CAAC;IAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;AACjC,CAAC","sourcesContent":["/**\n * # Work attribution: which tenant, which case and which execution a model call served\n *\n * The shared vocabulary of cost attribution (#1598) and of the expert-correction record (#1599). A model\n * call is attributed to a unit of work so an AI-native service firm can compute its cost per case:\n * inference plus the expert time spent on the same case.\n *\n * Three references travel together, and each answers a different question:\n *\n * - `organizationId` — WHOSE work it was. Derived by the engine from an authenticated owner field or\n * from the case row's own scope, never taken from a caller or a model (#1598 §5).\n * - `caseRef` — WHICH case (a {@link WorkUnitRef}: a row of a resource declared `workUnit: true`).\n * - `executionRef` — WHICH run spent it (a conversational turn, an actor execution, a batch run, the\n * processing of an inbound delivery). `taskRef` optionally narrows it to one actor task.\n *\n * None of these is authority. They are accounting facts: nothing may authorize on them, and the work\n * frame that carries them (`work-attribution.als.backend.ts`) is deliberately separate from the\n * `ExecutionContext`, which IS authority.\n */\nimport { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load (#966).\nimport '@wildo-ai/zod-decorators';\n\nimport { WorkUnitRefSchema } from '../resources/work-unit.shared.schemas';\n\n/**\n * @wildo_source:part:start saas.models.work-attribution-vocabulary facet:layer:shared facet:family:flows-actors facet:audience:app-developer\n *\n * What kind of run spent a model call. One member per engine surface that opens a work frame.\n */\nexport enum ExecutionRefKind {\n /** An actor-system execution (`runActorExecution` / `resumeActorExecution`). `id` is the actor execution id. */\n ACTOR_EXECUTION = 'ACTOR_EXECUTION',\n /**\n * A conversational turn (WebSocket chat, A2A, or an autonomous agent's turn, which runs through the\n * same `startConversationalExecution`). `id` is the conversational execution id, which a resume keeps.\n */\n CONVERSATIONAL_EXECUTION = 'CONVERSATIONAL_EXECUTION',\n /** One run of a scheduled or queued batch (the RAG embedding drain, for example). `id` is the run id. */\n BATCH_RUN = 'BATCH_RUN',\n /** The processing of one inbound delivery (email, webhook). `id` is the delivery id. */\n INBOUND_DELIVERY = 'INBOUND_DELIVERY',\n}\n\n/** A reference to the run a model call was made in. */\nexport const ExecutionRefSchema = z.strictObject({\n kind: z.enum(ExecutionRefKind).systemEnum('ExecutionRefKind').describe('What kind of run spent the call.'),\n id: z.string().min(1).max(200).describe('Id of that run, in the store the kind names.'),\n});\nexport type ExecutionRef = z.infer<typeof ExecutionRefSchema>;\n\n/** How an attribution row learned which work a call served. */\nexport enum ModelCallAttributionSource {\n /** The engine call site passed the attribution explicitly with the call. Wins over any frame. */\n EXPLICIT = 'EXPLICIT',\n /** The recorder read it from the ambient work frame the engine opened around the call. */\n AMBIENT = 'AMBIENT',\n /** Neither: the call ran outside any work frame (platform tooling, the companion). Counted apart, never guessed. */\n UNATTRIBUTED = 'UNATTRIBUTED',\n}\n\n/** Which part of one provider call an attribution row accounts for. */\nexport enum ModelCallAttributionShare {\n /** The whole call served one unit of work: share 1/1. */\n WHOLE_CALL = 'WHOLE_CALL',\n /**\n * One call served several source rows of ONE tenant (an embedding batch). Each row gets\n * `shareNumerator` = its input length over `shareDenominator` = the call's total input length.\n */\n APPORTIONED_BY_INPUT_LENGTH = 'APPORTIONED_BY_INPUT_LENGTH',\n}\n\n/** Whether a registered pricing authority matched the call. */\nexport enum ModelCallPricingStatus {\n /** An application-registered authority for the provider and model was effective at the call. */\n PRICED = 'PRICED',\n /** No authority matched. Counted apart by every summary, never priced at zero. */\n UNPRICED = 'UNPRICED',\n}\n\n/**\n * Whether the provider reported how many of the output tokens were reasoning.\n *\n * OpenAI, Google, xAI and Perplexity report it; Anthropic and Mistral do not. An unreported count is\n * `UNREPORTED`, never 0: zero reasoning tokens is a claim, and the provider did not make it.\n */\nexport enum ReasoningUsageReporting {\n REPORTED = 'REPORTED',\n UNREPORTED = 'UNREPORTED',\n}\n\n/** The axis a cost summary groups by. */\nexport enum ModelCostGroupBy {\n CASE = 'CASE',\n ORGANIZATION = 'ORGANIZATION',\n AGENT = 'AGENT',\n MODEL = 'MODEL',\n}\n\n/**\n * Whether a case's expert time could be joined from the expert-decision records (#1599).\n *\n * `NOT_RECORDED` means no decision record exists to join, which is not the same as zero expert time:\n * a summary never reports 0 for time it cannot see.\n */\nexport enum ExpertTimeAvailability {\n JOINED = 'JOINED',\n NOT_RECORDED = 'NOT_RECORDED',\n}\n\n/**\n * Attribution a model call site passes EXPLICITLY (#1598 §4). When present it wins over the ambient work\n * frame, field by field for the fields it sets.\n *\n * Only engine code builds one. A `caseRef` from a client reaches it only after the boundary that accepted\n * it checked that the resource is a work unit and that the caller can READ that row.\n */\nexport const ModelCallAttributionInputSchema = z.strictObject({\n organizationId: z.string().min(1).optional().describe('The tenant, derived from an authenticated owner field or the case row; never from a caller or a model.'),\n caseRef: WorkUnitRefSchema.optional().describe('The case the call served: a row of a resource declared `workUnit: true`.'),\n executionRef: ExecutionRefSchema.optional().describe('The run the call was made in.'),\n taskRef: z.string().min(1).max(200).optional().describe('The actor task within that run, when there is one.'),\n});\nexport type ModelCallAttributionInput = z.infer<typeof ModelCallAttributionInputSchema>;\n/** @wildo_source:part:end saas.models.work-attribution-vocabulary */\n\n/**\n * Merge an explicit attribution over an ambient one, field by field (#1598 §4: explicit first, then the\n * frame). Returns the merged value and the source it will be recorded under: `EXPLICIT` when the call\n * site set any field, `AMBIENT` when only the frame did, `UNATTRIBUTED` when neither said anything.\n */\nexport function resolveModelCallAttribution(\n explicit: ModelCallAttributionInput | undefined,\n ambient: ModelCallAttributionInput | undefined,\n): { attribution: ModelCallAttributionInput; source: ModelCallAttributionSource } {\n const hasAny = (value: ModelCallAttributionInput | undefined): boolean =>\n value !== undefined && (value.organizationId !== undefined || value.caseRef !== undefined || value.executionRef !== undefined || value.taskRef !== undefined);\n const attribution: ModelCallAttributionInput = {\n ...(explicit?.organizationId ?? ambient?.organizationId ? { organizationId: explicit?.organizationId ?? ambient?.organizationId } : {}),\n ...(explicit?.caseRef ?? ambient?.caseRef ? { caseRef: explicit?.caseRef ?? ambient?.caseRef } : {}),\n ...(explicit?.executionRef ?? ambient?.executionRef ? { executionRef: explicit?.executionRef ?? ambient?.executionRef } : {}),\n ...(explicit?.taskRef ?? ambient?.taskRef ? { taskRef: explicit?.taskRef ?? ambient?.taskRef } : {}),\n };\n const source = hasAny(explicit)\n ? ModelCallAttributionSource.EXPLICIT\n : hasAny(ambient)\n ? ModelCallAttributionSource.AMBIENT\n : ModelCallAttributionSource.UNATTRIBUTED;\n return { attribution, source };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"frontend-notification-custom-message-ref.definitions.d.ts","sourceRoot":"","sources":["../../../src/frontend-definitions/frontend-notification-custom-message-ref.definitions.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,oBAAY,qCAAqC;IAC/C,UAAU,eAAe;IAGzB,oEAAoE;IACpE,4BAA4B,iCAAiC;IAC7D,mEAAmE;IACnE,2BAA2B,gCAAgC;IAC3D,6DAA6D;IAC7D,+BAA+B,oCAAoC;IACnE,kGAAkG;IAClG,8BAA8B,mCAAmC;IACjE,wEAAwE;IACxE,gCAAgC,qCAAqC;IACrE;;;OAGG;IACH,mCAAmC,wCAAwC;CAC5E"}
1
+ {"version":3,"file":"frontend-notification-custom-message-ref.definitions.d.ts","sourceRoot":"","sources":["../../../../src/frontend-definitions/frontend-notification-custom-message-ref.definitions.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,oBAAY,qCAAqC;IAC/C,UAAU,eAAe;IAGzB,oEAAoE;IACpE,4BAA4B,iCAAiC;IAC7D,mEAAmE;IACnE,2BAA2B,gCAAgC;IAC3D,6DAA6D;IAC7D,+BAA+B,oCAAoC;IACnE,kGAAkG;IAClG,8BAA8B,mCAAmC;IACjE,wEAAwE;IACxE,gCAAgC,qCAAqC;IACrE;;;OAGG;IACH,mCAAmC,wCAAwC;CAC5E"}
@@ -1 +1 @@
1
- {"version":3,"file":"frontend-notification-custom-message-ref.definitions.js","sourceRoot":"","sources":["../../../src/frontend-definitions/frontend-notification-custom-message-ref.definitions.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,qCAmBX;AAnBD,WAAY,qCAAqC;IAC/C,kEAAyB,CAAA;IACzB,qGAAqG;IACrG,qFAAqF;IACrF,oEAAoE;IACpE,sGAA6D,CAAA;IAC7D,mEAAmE;IACnE,oGAA2D,CAAA;IAC3D,6DAA6D;IAC7D,4GAAmE,CAAA;IACnE,kGAAkG;IAClG,0GAAiE,CAAA;IACjE,wEAAwE;IACxE,8GAAqE,CAAA;IACrE;;;OAGG;IACH,oHAA2E,CAAA;AAC7E,CAAC,EAnBW,qCAAqC,KAArC,qCAAqC,QAmBhD","sourcesContent":["\n/**\n * The in-app notifications the ENGINE sends outside any resource operation, each by an identifier whose\n * words live at `notifications_custom.<identifier>.msg`. The labelling planner derives a key for every\n * member, so adding one is what gets its words authored; a notice sent with an identifier missing here\n * would render its raw identifier.\n */\nexport enum FrontendNotificationCustomMessageRefs {\n A_TEMP_REF = \"A_TEMP_REF\",\n // #1628 — a pending decision's deadline stages, sent to the people who may answer it. Each names the\n // decision in its `data`; none grants anything, so they are safe to send by default.\n /** The CLAIM deadline is near and nobody has taken the decision. */\n HUMAN_DECISION_CLAIM_WARNING = \"human_decision_claim_warning\",\n /** The CLAIM deadline passed and nobody has taken the decision. */\n HUMAN_DECISION_CLAIM_MISSED = \"human_decision_claim_missed\",\n /** The DECISION deadline is near and nobody has answered. */\n HUMAN_DECISION_DECISION_WARNING = \"human_decision_decision_warning\",\n /** The DECISION deadline passed and nobody has answered; it still lapses at its original time. */\n HUMAN_DECISION_DECISION_MISSED = \"human_decision_decision_missed\",\n /** A deadline's escalation rule moved the decision to the recipient. */\n HUMAN_DECISION_REASSIGNED_TO_YOU = \"human_decision_reassigned_to_you\",\n /**\n * Sent to the person whose request is waiting (the gate's owner) at a DECISION stage, when they are not\n * the one who can answer it: their request is still waiting for a reviewer.\n */\n HUMAN_DECISION_YOUR_REQUEST_WAITING = \"human_decision_your_request_waiting\",\n}\n"]}
1
+ {"version":3,"file":"frontend-notification-custom-message-ref.definitions.js","sourceRoot":"","sources":["../../../../src/frontend-definitions/frontend-notification-custom-message-ref.definitions.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,qCAmBX;AAnBD,WAAY,qCAAqC;IAC/C,kEAAyB,CAAA;IACzB,qGAAqG;IACrG,qFAAqF;IACrF,oEAAoE;IACpE,sGAA6D,CAAA;IAC7D,mEAAmE;IACnE,oGAA2D,CAAA;IAC3D,6DAA6D;IAC7D,4GAAmE,CAAA;IACnE,kGAAkG;IAClG,0GAAiE,CAAA;IACjE,wEAAwE;IACxE,8GAAqE,CAAA;IACrE;;;OAGG;IACH,oHAA2E,CAAA;AAC7E,CAAC,EAnBW,qCAAqC,KAArC,qCAAqC,QAmBhD","sourcesContent":["\n/**\n * The in-app notifications the ENGINE sends outside any resource operation, each by an identifier whose\n * words live at `notifications_custom.<identifier>.msg`. The labelling planner derives a key for every\n * member, so adding one is what gets its words authored; a notice sent with an identifier missing here\n * would render its raw identifier.\n */\nexport enum FrontendNotificationCustomMessageRefs {\n A_TEMP_REF = \"A_TEMP_REF\",\n // #1628 — a pending decision's deadline stages, sent to the people who may answer it. Each names the\n // decision in its `data`; none grants anything, so they are safe to send by default.\n /** The CLAIM deadline is near and nobody has taken the decision. */\n HUMAN_DECISION_CLAIM_WARNING = \"human_decision_claim_warning\",\n /** The CLAIM deadline passed and nobody has taken the decision. */\n HUMAN_DECISION_CLAIM_MISSED = \"human_decision_claim_missed\",\n /** The DECISION deadline is near and nobody has answered. */\n HUMAN_DECISION_DECISION_WARNING = \"human_decision_decision_warning\",\n /** The DECISION deadline passed and nobody has answered; it still lapses at its original time. */\n HUMAN_DECISION_DECISION_MISSED = \"human_decision_decision_missed\",\n /** A deadline's escalation rule moved the decision to the recipient. */\n HUMAN_DECISION_REASSIGNED_TO_YOU = \"human_decision_reassigned_to_you\",\n /**\n * Sent to the person whose request is waiting (the gate's owner) at a DECISION stage, when they are not\n * the one who can answer it: their request is still waiting for a reviewer.\n */\n HUMAN_DECISION_YOUR_REQUEST_WAITING = \"human_decision_your_request_waiting\",\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"settings-destination-ref.definitions.d.ts","sourceRoot":"","sources":["../../../src/frontend-definitions/settings-destination-ref.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,oJAAoJ;AACpJ;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,4BAA4B;IACtC,+CAA+C;IAC/C,OAAO,YAAY;IACnB,wDAAwD;IACxD,QAAQ,aAAa;IACrB,iEAAiE;IACjE,UAAU,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qBAAqB;IACrC,8EAA8E;IAC9E,gBAAgB,qBAAqB;IACrC,kEAAkE;IAClE,oBAAoB,yBAAyB;IAC7C;;;;;OAKG;IACH,8BAA8B,mCAAmC;IACjE;;;;OAIG;IACH,iCAAiC,sCAAsC;IACvE;;;;;;OAMG;IACH,eAAe,oBAAoB;CACpC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,4EAA4E;AAE5E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gCAAgC,EAAE,WAAW,CAAC,MAAM,CAAgE,CAAC"}
1
+ {"version":3,"file":"settings-destination-ref.definitions.d.ts","sourceRoot":"","sources":["../../../../src/frontend-definitions/settings-destination-ref.definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,oJAAoJ;AACpJ;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,4BAA4B;IACtC,+CAA+C;IAC/C,OAAO,YAAY;IACnB,wDAAwD;IACxD,QAAQ,aAAa;IACrB,iEAAiE;IACjE,UAAU,eAAe;IACzB,kDAAkD;IAClD,WAAW,gBAAgB;IAC3B,8FAA8F;IAC9F,cAAc,mBAAmB;IACjC,mEAAmE;IACnE,oBAAoB,yBAAyB;IAC7C,kFAAkF;IAClF,OAAO,YAAY;IACnB;;;;;;;OAOG;IACH,kBAAkB,uBAAuB;IACzC,qGAAqG;IACrG,OAAO,YAAY;IACnB,mDAAmD;IACnD,QAAQ,aAAa;IACrB;;;;;;;OAOG;IACH,0BAA0B,+BAA+B;IACzD;;;;;;OAMG;IACH,oBAAoB,yBAAyB;IAC7C;;;;;;;;;;OAUG;IACH,uBAAuB,4BAA4B;IACnD,oDAAoD;IACpD,GAAG,QAAQ;IACX,4DAA4D;IAC5D,IAAI,SAAS;IACb,qEAAqE;IACrE,IAAI,SAAS;IACb,mDAAmD;IACnD,QAAQ,aAAa;IACrB;;;OAGG;IACH,kBAAkB,uBAAuB;IACzC;;;;OAIG;IACH,iBAAiB,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