@wildo-ai/saas-models 1.1.5 → 1.1.6
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.
- package/dist/esm/applications/application-versions.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/application-versions.shared.resources-config.schemas.js +2 -1
- package/dist/esm/applications/application-versions.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/applications/applications-context.schemas.d.ts +176 -2
- package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.js +3 -2
- package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/applications/applications.shared.schemas.d.ts +7 -5
- package/dist/esm/applications/applications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.schemas.js +6 -4
- package/dist/esm/applications/applications.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts +10 -1
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.js +49 -15
- package/dist/esm/billing/billing-account.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/billing-account.shared.schemas.js +2 -2
- package/dist/esm/billing/billing-account.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts +25 -0
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.js +19 -0
- package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts +27 -5
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.js +30 -4
- package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-types.shared.schemas.d.ts +37 -11
- package/dist/esm/billing/billing-types.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-types.shared.schemas.js +31 -19
- package/dist/esm/billing/billing-types.shared.schemas.js.map +1 -1
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts +2 -0
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js +18 -7
- package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/credit-pool.shared.schemas.d.ts +2 -0
- package/dist/esm/billing/credit-pool.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/credit-pool.shared.schemas.js +7 -1
- package/dist/esm/billing/credit-pool.shared.schemas.js.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js +6 -6
- package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/invoice-ref.shared.schemas.js +1 -1
- package/dist/esm/billing/invoice-ref.shared.schemas.js.map +1 -1
- package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/price.shared.schemas.js +5 -3
- package/dist/esm/billing/price.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts +11 -1
- package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product-behavior-policy.shared.schemas.js +39 -23
- package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product-definition.shared.schemas.d.ts +30 -2
- package/dist/esm/billing/product-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product-definition.shared.schemas.js +35 -0
- package/dist/esm/billing/product-definition.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product.shared.resources-config.schemas.d.ts +6 -3
- package/dist/esm/billing/product.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product.shared.schemas.d.ts +7 -3
- package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product.shared.schemas.js +22 -7
- package/dist/esm/billing/product.shared.schemas.js.map +1 -1
- package/dist/esm/billing/promotions.shared.resources-config.schemas.js +8 -8
- package/dist/esm/billing/promotions.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/public-pricing-catalog.shared.atoms.d.ts +135 -0
- package/dist/esm/billing/public-pricing-catalog.shared.atoms.d.ts.map +1 -0
- package/dist/esm/billing/public-pricing-catalog.shared.atoms.js +112 -0
- package/dist/esm/billing/public-pricing-catalog.shared.atoms.js.map +1 -0
- package/dist/esm/billing/public-pricing-catalog.shared.d.ts +30 -0
- package/dist/esm/billing/public-pricing-catalog.shared.d.ts.map +1 -0
- package/dist/esm/billing/public-pricing-catalog.shared.js +53 -0
- package/dist/esm/billing/public-pricing-catalog.shared.js.map +1 -0
- package/dist/esm/billing/referral-reward.shared.schemas.d.ts +51 -0
- package/dist/esm/billing/referral-reward.shared.schemas.d.ts.map +1 -0
- package/dist/esm/billing/referral-reward.shared.schemas.js +92 -0
- package/dist/esm/billing/referral-reward.shared.schemas.js.map +1 -0
- package/dist/esm/billing/referral.shared.resources-config.schemas.d.ts +54 -33
- package/dist/esm/billing/referral.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/referral.shared.resources-config.schemas.js +56 -2
- package/dist/esm/billing/referral.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/referral.shared.schemas.d.ts +22 -37
- package/dist/esm/billing/referral.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/referral.shared.schemas.js +24 -44
- package/dist/esm/billing/referral.shared.schemas.js.map +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts +9 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.js +55 -22
- package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/subscription.shared.schemas.d.ts +80 -5
- package/dist/esm/billing/subscription.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/subscription.shared.schemas.js +85 -25
- package/dist/esm/billing/subscription.shared.schemas.js.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.js +5 -5
- package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts +143 -2
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js +84 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts +14 -1
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js +4 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.d.ts +70 -0
- package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.js +87 -0
- package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.d.ts +34 -0
- package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.js +137 -3
- package/dist/esm/compliance/audit-trails/audit-export-projection.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.d.ts +7 -0
- package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts +28 -2
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js +29 -8
- package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts +29 -6
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js +38 -9
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts +1822 -146
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js +1777 -87
- package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js.map +1 -1
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts +10 -0
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts.map +1 -1
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js +148 -7
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
- package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.d.ts +2 -0
- package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.js +2 -0
- package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/data-retention.shared.schemas.d.ts +0 -8
- package/dist/esm/compliance/privacy/data-retention.shared.schemas.d.ts.map +0 -1
- package/dist/esm/compliance/privacy/data-retention.shared.schemas.js.map +0 -1
- package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.d.ts +17 -8
- package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.js +43 -20
- package/dist/esm/compliance/privacy/data-subject-rights.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts +38 -0
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js +39 -0
- package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.d.ts +35 -0
- package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.js +82 -0
- package/dist/esm/compliance/privacy/legal-hold-subject-attribution.shared.utils.js.map +1 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.d.ts +37 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.js +223 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.schemas.d.ts +222 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.schemas.js +331 -0
- package/dist/esm/compliance/privacy/legal-holds.shared.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts +37 -3
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js +33 -4
- package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.d.ts +52 -0
- package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.js +116 -0
- package/dist/esm/compliance/privacy/provider-capability-disclosure.shared.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.d.ts +11 -0
- package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.js +11 -0
- package/dist/esm/compliance/privacy/purpose-ref.shared.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/retention-binding.shared.utils.d.ts +93 -0
- package/dist/esm/compliance/privacy/retention-binding.shared.utils.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/retention-binding.shared.utils.js +149 -0
- package/dist/esm/compliance/privacy/retention-binding.shared.utils.js.map +1 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.d.ts +43 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.js +106 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.d.ts +209 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.js +226 -0
- package/dist/esm/compliance/privacy/retention-enforcement-records.shared.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.d.ts +129 -5
- package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.js +128 -4
- package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.d.ts +53 -0
- package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.js +74 -0
- package/dist/esm/compliance/privacy/retention-scope-deleted.shared.utils.js.map +1 -0
- package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.d.ts +311 -0
- package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.js +355 -0
- package/dist/esm/compliance/privacy/subject-data-recipients.shared.schemas.js.map +1 -0
- package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.d.ts +178 -39
- package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.js +145 -35
- package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/subject-export-render.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-export-render.shared.utils.js +26 -0
- package/dist/esm/compliance/privacy/subject-export-render.shared.utils.js.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts +9 -0
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -1
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts +109 -1
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/app-configuration-shared.shared.schemas.js +57 -0
- package/dist/esm/config/app-configuration-shared.shared.schemas.js.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts +69 -0
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.js +93 -0
- package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
- package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts +16 -16
- package/dist/esm/config/frontend/navigation.shared.schemas.d.ts +160 -61
- package/dist/esm/config/frontend/navigation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/frontend/navigation.shared.schemas.js +297 -65
- package/dist/esm/config/frontend/navigation.shared.schemas.js.map +1 -1
- package/dist/esm/errors/caught-error-description.shared.utils.d.ts +69 -0
- package/dist/esm/errors/caught-error-description.shared.utils.d.ts.map +1 -0
- package/dist/esm/errors/caught-error-description.shared.utils.js +77 -0
- package/dist/esm/errors/caught-error-description.shared.utils.js.map +1 -0
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts +76 -3
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts.map +1 -1
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js +76 -2
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
- package/dist/esm/errors/errors.shared.schemas.d.ts +20 -1
- package/dist/esm/errors/errors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/errors/errors.shared.schemas.js +16 -9
- package/dist/esm/errors/errors.shared.schemas.js.map +1 -1
- package/dist/esm/errors/errors.shared.utils.d.ts +0 -24
- package/dist/esm/errors/errors.shared.utils.d.ts.map +1 -1
- package/dist/esm/errors/errors.shared.utils.js +0 -39
- package/dist/esm/errors/errors.shared.utils.js.map +1 -1
- package/dist/esm/errors/thrown-value-description.shared.utils.d.ts +6 -7
- package/dist/esm/errors/thrown-value-description.shared.utils.d.ts.map +1 -1
- package/dist/esm/errors/thrown-value-description.shared.utils.js +6 -7
- package/dist/esm/errors/thrown-value-description.shared.utils.js.map +1 -1
- package/dist/esm/external-data/external-data-pipeline-description.shared.d.ts +70 -0
- package/dist/esm/external-data/external-data-pipeline-description.shared.d.ts.map +1 -0
- package/dist/esm/external-data/external-data-pipeline-description.shared.js +92 -0
- package/dist/esm/external-data/external-data-pipeline-description.shared.js.map +1 -0
- package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.d.ts +154 -0
- package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.d.ts.map +1 -0
- package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.js +161 -0
- package/dist/esm/external-data/external-data-pipeline-pass-mode.shared.js.map +1 -0
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts +1071 -23
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.js +1065 -17
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.js.map +1 -1
- package/dist/esm/external-data/external-data-provenance.shared.d.ts +71 -0
- package/dist/esm/external-data/external-data-provenance.shared.d.ts.map +1 -0
- package/dist/esm/external-data/external-data-provenance.shared.js +88 -0
- package/dist/esm/external-data/external-data-provenance.shared.js.map +1 -0
- package/dist/esm/external-data.exports.d.ts +5 -0
- package/dist/esm/external-data.exports.d.ts.map +1 -1
- package/dist/esm/external-data.exports.js +11 -0
- package/dist/esm/external-data.exports.js.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts +17 -2
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.js +22 -4
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js +3 -0
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -1
- package/dist/esm/external-providers/engine-capability-surface.shared.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capability-surface.shared.js +2 -0
- package/dist/esm/external-providers/engine-capability-surface.shared.js.map +1 -1
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts +152 -1
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts +4 -3
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js +4 -3
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts +45 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js +14 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js.map +1 -1
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts +188 -4
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js +76 -9
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/frontend-provider-public-config.shared.d.ts +175 -33
- package/dist/esm/external-providers/frontend-provider-public-config.shared.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-provider-public-config.shared.js +247 -42
- package/dist/esm/external-providers/frontend-provider-public-config.shared.js.map +1 -1
- package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.d.ts +53 -0
- package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.js +41 -0
- package/dist/esm/external-providers/model-cost-accounting-config.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.d.ts +150 -0
- package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.js +22 -0
- package/dist/esm/external-providers/provider-address-lookup-contract.shared.types.js.map +1 -0
- package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.d.ts +42 -0
- package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.js +49 -0
- package/dist/esm/external-providers/provider-augmentation-opt-ins.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-browser-operations.shared.schemas.d.ts +53 -0
- package/dist/esm/external-providers/provider-browser-operations.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-browser-operations.shared.schemas.js +56 -0
- package/dist/esm/external-providers/provider-browser-operations.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts +34 -0
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-capability.shared.schemas.js +34 -0
- package/dist/esm/external-providers/provider-capability.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts +341 -4
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js +270 -20
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.d.ts +6 -2
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.js +6 -2
- package/dist/esm/external-providers/provider-frontend-component-contract.shared.types.js.map +1 -1
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts +174 -1
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js +125 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts +3 -3
- package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.d.ts +42 -0
- package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.js +57 -0
- package/dist/esm/external-providers/provider-package-allow-list.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts +6 -0
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js +6 -0
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.d.ts +58 -0
- package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.js +35 -0
- package/dist/esm/external-providers/provider-scope-reauthorization.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-shared-connections.shared.schemas.d.ts +115 -0
- package/dist/esm/external-providers/provider-shared-connections.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-shared-connections.shared.schemas.js +137 -0
- package/dist/esm/external-providers/provider-shared-connections.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-usage-cost.shared.d.ts +73 -0
- package/dist/esm/external-providers/provider-usage-cost.shared.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-usage-cost.shared.js +171 -0
- package/dist/esm/external-providers/provider-usage-cost.shared.js.map +1 -0
- package/dist/esm/external-providers/provider-usage-pricing.example.d.ts +12 -0
- package/dist/esm/external-providers/provider-usage-pricing.example.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-usage-pricing.example.js +40 -0
- package/dist/esm/external-providers/provider-usage-pricing.example.js.map +1 -0
- package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.d.ts +68 -32
- package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.js +63 -52
- package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.js.map +1 -1
- package/dist/esm/features/application-features.shared.resources-config.schemas.d.ts +5 -5
- package/dist/esm/features/application-features.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/features/application-features.shared.resources-config.schemas.js +13 -5
- package/dist/esm/features/application-features.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/features/connected-feature.example.d.ts.map +1 -1
- package/dist/esm/features/connected-feature.example.js +2 -1
- package/dist/esm/features/connected-feature.example.js.map +1 -1
- package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
- package/dist/esm/features/core-feature-definitions.shared.js +2 -1
- package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
- package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
- package/dist/esm/features/feature-builders.shared.js.map +1 -1
- package/dist/esm/features/feature-definition.shared.schemas.d.ts +2 -11
- package/dist/esm/features/feature-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/features/feature-definition.shared.schemas.js +0 -12
- package/dist/esm/features/feature-definition.shared.schemas.js.map +1 -1
- package/dist/esm/features/scope-features.shared.schemas.d.ts +31 -17
- package/dist/esm/features/scope-features.shared.schemas.d.ts.map +1 -1
- package/dist/esm/features/scope-features.shared.schemas.js +27 -5
- package/dist/esm/features/scope-features.shared.schemas.js.map +1 -1
- package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts +5 -5
- package/dist/esm/flows-actors/actors.shared.schemas.d.ts +127 -11
- package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/actors.shared.schemas.js +32 -1
- package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/agent-traceability.shared.schemas.d.ts +16 -0
- package/dist/esm/flows-actors/agent-traceability.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/agent-traceability.shared.schemas.js +7 -0
- package/dist/esm/flows-actors/agent-traceability.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.d.ts +68 -0
- package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.js +276 -0
- package/dist/esm/flows-actors/agent-work-decisions.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.d.ts +468 -0
- package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.js +472 -0
- package/dist/esm/flows-actors/agent-work-decisions.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/autonomous-agents.shared.schemas.d.ts +118 -0
- package/dist/esm/flows-actors/autonomous-agents.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/autonomous-agents.shared.schemas.js +144 -0
- package/dist/esm/flows-actors/autonomous-agents.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts +142 -8
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js +209 -11
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts +37 -2
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js +30 -2
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.d.ts +0 -11
- package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.js +12 -5
- package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.d.ts +45 -6
- package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.js +31 -5
- package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js +30 -30
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts +15 -7
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows.shared.schemas.d.ts +15 -0
- package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/human-decision.shared.schemas.d.ts +506 -0
- package/dist/esm/flows-actors/human-decision.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/human-decision.shared.schemas.js +502 -0
- package/dist/esm/flows-actors/human-decision.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.d.ts +46 -0
- package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.js +65 -0
- package/dist/esm/flows-actors/model-call-attributions.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/flows-actors/model-call-attributions.shared.schemas.d.ts +120 -0
- package/dist/esm/flows-actors/model-call-attributions.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/model-call-attributions.shared.schemas.js +165 -0
- package/dist/esm/flows-actors/model-call-attributions.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.d.ts +45 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.js +127 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.d.ts +83 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.js +97 -0
- package/dist/esm/flows-actors/model-cost-period-aggregates.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/model-cost-summary.shared.schemas.d.ts +136 -0
- package/dist/esm/flows-actors/model-cost-summary.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/model-cost-summary.shared.schemas.js +90 -0
- package/dist/esm/flows-actors/model-cost-summary.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.d.ts +5 -1
- package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.js +19 -4
- package/dist/esm/flows-actors/provider-call-records.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/provider-call-records.shared.schemas.d.ts +13 -15
- package/dist/esm/flows-actors/provider-call-records.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/provider-call-records.shared.schemas.js +30 -17
- package/dist/esm/flows-actors/provider-call-records.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/review-deadlines.shared.schemas.d.ts +268 -0
- package/dist/esm/flows-actors/review-deadlines.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/review-deadlines.shared.schemas.js +576 -0
- package/dist/esm/flows-actors/review-deadlines.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/tasks.actors.shared.schemas.d.ts +30 -0
- package/dist/esm/flows-actors/tasks.actors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/work-attribution.shared.schemas.d.ts +129 -0
- package/dist/esm/flows-actors/work-attribution.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/work-attribution.shared.schemas.js +141 -0
- package/dist/esm/flows-actors/work-attribution.shared.schemas.js.map +1 -0
- package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.d.ts +22 -1
- package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.d.ts.map +1 -1
- package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.js +23 -0
- package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.js.map +1 -1
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.d.ts +61 -0
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.d.ts.map +1 -1
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.js +61 -0
- package/dist/esm/frontend-definitions/settings-destination-ref.definitions.js.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.schemas.js +11 -10
- package/dist/esm/guidance/guidance-state.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.schemas.js +6 -6
- package/dist/esm/guidance/lifecycle-state.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.js +8 -7
- package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.js +1 -1
- package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.js.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts +550 -30
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js +498 -34
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -1
- package/dist/esm/http-api-binding/http-api-erasure-stance.shared.d.ts +62 -0
- package/dist/esm/http-api-binding/http-api-erasure-stance.shared.d.ts.map +1 -0
- package/dist/esm/http-api-binding/http-api-erasure-stance.shared.js +66 -0
- package/dist/esm/http-api-binding/http-api-erasure-stance.shared.js.map +1 -0
- package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.d.ts +133 -0
- package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.d.ts.map +1 -0
- package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.js +191 -0
- package/dist/esm/http-api-binding/http-api-rest-write-operations.shared.schemas.js.map +1 -0
- package/dist/esm/http-api-binding/http-api-transport-dialect.shared.d.ts +37 -6
- package/dist/esm/http-api-binding/http-api-transport-dialect.shared.d.ts.map +1 -1
- package/dist/esm/http-api-binding/http-api-transport-dialect.shared.js +37 -6
- package/dist/esm/http-api-binding/http-api-transport-dialect.shared.js.map +1 -1
- package/dist/esm/i18n/application-config-vocabulary.shared.d.ts +36 -0
- package/dist/esm/i18n/application-config-vocabulary.shared.d.ts.map +1 -0
- package/dist/esm/i18n/application-config-vocabulary.shared.js +39 -0
- package/dist/esm/i18n/application-config-vocabulary.shared.js.map +1 -0
- package/dist/esm/i18n/engine-open-vocabulary-values.shared.d.ts +11 -0
- package/dist/esm/i18n/engine-open-vocabulary-values.shared.d.ts.map +1 -0
- package/dist/esm/i18n/engine-open-vocabulary-values.shared.js +14 -0
- package/dist/esm/i18n/engine-open-vocabulary-values.shared.js.map +1 -0
- package/dist/esm/i18n/engine-open-vocabulary.shared.d.ts +20 -0
- package/dist/esm/i18n/engine-open-vocabulary.shared.d.ts.map +1 -0
- package/dist/esm/i18n/engine-open-vocabulary.shared.js +21 -0
- package/dist/esm/i18n/engine-open-vocabulary.shared.js.map +1 -0
- package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.d.ts +94 -0
- package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.js +206 -0
- package/dist/esm/inbound/conversation-threads.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/inbound/conversation-threads.shared.schemas.d.ts +169 -0
- package/dist/esm/inbound/conversation-threads.shared.schemas.d.ts.map +1 -0
- package/dist/esm/inbound/conversation-threads.shared.schemas.js +231 -0
- package/dist/esm/inbound/conversation-threads.shared.schemas.js.map +1 -0
- package/dist/esm/inbound/inbound-channels.shared.schemas.d.ts +195 -0
- package/dist/esm/inbound/inbound-channels.shared.schemas.d.ts.map +1 -0
- package/dist/esm/inbound/inbound-channels.shared.schemas.js +244 -0
- package/dist/esm/inbound/inbound-channels.shared.schemas.js.map +1 -0
- package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.d.ts +36 -0
- package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.js +169 -0
- package/dist/esm/inbound/inbound-delivery.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/inbound/inbound-delivery.shared.schemas.d.ts +404 -0
- package/dist/esm/inbound/inbound-delivery.shared.schemas.d.ts.map +1 -0
- package/dist/esm/inbound/inbound-delivery.shared.schemas.js +449 -0
- package/dist/esm/inbound/inbound-delivery.shared.schemas.js.map +1 -0
- package/dist/esm/inbound/inbound-endpoint-env.shared.d.ts +46 -0
- package/dist/esm/inbound/inbound-endpoint-env.shared.d.ts.map +1 -0
- package/dist/esm/inbound/inbound-endpoint-env.shared.js +57 -0
- package/dist/esm/inbound/inbound-endpoint-env.shared.js.map +1 -0
- package/dist/esm/index.d.ts +58 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +67 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts +28 -0
- package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.js +29 -0
- package/dist/esm/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.d.ts +95 -1
- package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.js +121 -0
- package/dist/esm/meta-workflows/orchestration.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/meta-workflows.exports.d.ts +0 -1
- package/dist/esm/meta-workflows.exports.d.ts.map +1 -1
- package/dist/esm/meta-workflows.exports.js +0 -1
- package/dist/esm/meta-workflows.exports.js.map +1 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts +7 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.js +35 -0
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.d.ts +131 -0
- package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.js +258 -0
- package/dist/esm/notifications/inbound-email/inbound-email.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.d.ts +448 -0
- package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.d.ts.map +1 -0
- package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.js +530 -0
- package/dist/esm/notifications/inbound-email/inbound-email.shared.schemas.js.map +1 -0
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.js +4 -3
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts +16 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js +46 -16
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts +19 -12
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js +77 -12
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.d.ts +35 -3
- package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.js +43 -3
- package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.d.ts +66 -399
- package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.js +111 -58
- package/dist/esm/notifications/notifications.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-features.shared.resources-config.schemas.d.ts +5 -5
- package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js +6 -6
- package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts +3 -0
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js +60 -14
- package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-members.shared.schemas.d.ts +3 -0
- package/dist/esm/organizations/organization-members.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-members.shared.schemas.js +30 -0
- package/dist/esm/organizations/organization-members.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.js +9 -9
- package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.js +4 -4
- package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.d.ts +0 -1
- package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts +5 -5
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.js +15 -10
- package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.js +1 -1
- package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-unit-members.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-members.shared.schemas.js +2 -1
- package/dist/esm/organizations/organization-unit-members.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing-decision.shared.d.ts +63 -1
- package/dist/esm/organizations/organization-unit-narrowing-decision.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing-decision.shared.js +106 -5
- package/dist/esm/organizations/organization-unit-narrowing-decision.shared.js.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.js +9 -0
- package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -1
- package/dist/esm/organizations/organization-units.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-units.shared.resources-config.schemas.js +7 -2
- package/dist/esm/organizations/organization-units.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts +3 -1
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.js +12 -8
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organizations.shared.schemas.d.ts +7 -2
- package/dist/esm/organizations/organizations.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organizations.shared.schemas.js +51 -1
- package/dist/esm/organizations/organizations.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.d.ts +58 -0
- package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.js +188 -0
- package/dist/esm/organizations/service-provider-activity-feed.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.d.ts +122 -0
- package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.d.ts.map +1 -0
- package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.js +136 -0
- package/dist/esm/organizations/service-provider-activity-feed.shared.schemas.js.map +1 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.d.ts +36 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.js +155 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.d.ts +229 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.d.ts.map +1 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.js +290 -0
- package/dist/esm/organizations/service-provider-capability-grants.shared.schemas.js.map +1 -0
- package/dist/esm/organizations/service-provider-client-controls.shared.schemas.d.ts +48 -0
- package/dist/esm/organizations/service-provider-client-controls.shared.schemas.d.ts.map +1 -0
- package/dist/esm/organizations/service-provider-client-controls.shared.schemas.js +50 -0
- package/dist/esm/organizations/service-provider-client-controls.shared.schemas.js.map +1 -0
- package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.d.ts +97 -0
- package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.js +572 -0
- package/dist/esm/organizations/service-provider-relationships.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/organizations/service-provider-relationships.shared.schemas.d.ts +590 -0
- package/dist/esm/organizations/service-provider-relationships.shared.schemas.d.ts.map +1 -0
- package/dist/esm/organizations/service-provider-relationships.shared.schemas.js +869 -0
- package/dist/esm/organizations/service-provider-relationships.shared.schemas.js.map +1 -0
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts +36 -6
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js +57 -16
- package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js.map +1 -1
- package/dist/esm/provider-registration-runtime.exports.d.ts +0 -1
- package/dist/esm/provider-registration-runtime.exports.d.ts.map +1 -1
- package/dist/esm/provider-registration-runtime.exports.js +0 -1
- package/dist/esm/provider-registration-runtime.exports.js.map +1 -1
- package/dist/esm/public-runtime/index.d.ts +30 -11
- package/dist/esm/public-runtime/index.d.ts.map +1 -1
- package/dist/esm/public-runtime/index.js +30 -11
- package/dist/esm/public-runtime/index.js.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.d.ts +36 -8
- package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.js +12 -0
- package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
- package/dist/esm/requests/header-keys.shared.d.ts +6 -0
- package/dist/esm/requests/header-keys.shared.d.ts.map +1 -1
- package/dist/esm/requests/header-keys.shared.js +7 -0
- package/dist/esm/requests/header-keys.shared.js.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-documentation.d.ts.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-documentation.js +147 -8
- package/dist/esm/requests/manual-controllers-routes-documentation.js.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts +51 -23
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-urls.js +64 -0
- package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.d.ts +78 -13
- package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.js +91 -18
- package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
- package/dist/esm/resources/embedded-resource-mark.shared.utils.d.ts +21 -0
- package/dist/esm/resources/embedded-resource-mark.shared.utils.d.ts.map +1 -0
- package/dist/esm/resources/embedded-resource-mark.shared.utils.js +22 -0
- package/dist/esm/resources/embedded-resource-mark.shared.utils.js.map +1 -0
- package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.factory.js +812 -32
- package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources-config.shared.schemas.d.ts +244 -48
- package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.schemas.js +151 -17
- package/dist/esm/resources/resources-config.shared.schemas.js.map +1 -1
- package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts.map +1 -1
- package/dist/esm/resources/resources-registry.shared.core.definitions.js +353 -12
- package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.d.ts +45 -0
- package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.js +92 -0
- package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.d.ts +2 -17
- package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.js +24 -20
- package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
- package/dist/esm/resources/resources.shared.utils.d.ts +16 -8
- package/dist/esm/resources/resources.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.utils.js +16 -8
- package/dist/esm/resources/resources.shared.utils.js.map +1 -1
- package/dist/esm/resources/utils/collection-export.shared.utils.d.ts +2 -2
- package/dist/esm/resources/utils/collection-export.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/collection-export.shared.utils.js +4 -2
- package/dist/esm/resources/utils/collection-export.shared.utils.js.map +1 -1
- package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.d.ts +103 -0
- package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.d.ts.map +1 -0
- package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.js +275 -0
- package/dist/esm/resources/utils/http-api-write-declaration.shared.utils.js.map +1 -0
- package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.d.ts +51 -0
- package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.d.ts.map +1 -0
- package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.js +28 -0
- package/dist/esm/resources/utils/no-subject-data-stance-coherence.shared.utils.js.map +1 -0
- package/dist/esm/resources/utils/populated-file-fields.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/populated-file-fields.shared.utils.js +30 -19
- package/dist/esm/resources/utils/populated-file-fields.shared.utils.js.map +1 -1
- package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.d.ts +2 -0
- package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.d.ts.map +1 -0
- package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.js +33 -0
- package/dist/esm/resources/utils/request-schema-field-carriage.shared.utils.js.map +1 -0
- package/dist/esm/resources/utils/resource-polymorphism.factory.d.ts +15 -0
- package/dist/esm/resources/utils/resource-polymorphism.factory.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.factory.js +6 -1
- package/dist/esm/resources/utils/resource-polymorphism.factory.js.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.schemas.js +30 -4
- package/dist/esm/resources/utils/resource-polymorphism.schemas.js.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts +46 -0
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js +205 -22
- package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js.map +1 -1
- package/dist/esm/resources/utils/resources-serialization.utils.d.ts +19 -2
- package/dist/esm/resources/utils/resources-serialization.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-serialization.utils.js +4 -0
- package/dist/esm/resources/utils/resources-serialization.utils.js.map +1 -1
- package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/shared-persistence-collection.utils.js +15 -9
- package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -1
- package/dist/esm/resources/work-unit.shared.schemas.d.ts +20 -0
- package/dist/esm/resources/work-unit.shared.schemas.d.ts.map +1 -0
- package/dist/esm/resources/work-unit.shared.schemas.js +19 -0
- package/dist/esm/resources/work-unit.shared.schemas.js.map +1 -0
- package/dist/esm/runtime/execution-context.shared.schemas.d.ts +48 -1
- package/dist/esm/runtime/execution-context.shared.schemas.d.ts.map +1 -1
- package/dist/esm/runtime/execution-context.shared.schemas.js +101 -9
- package/dist/esm/runtime/execution-context.shared.schemas.js.map +1 -1
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js +37 -20
- package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts +1 -0
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js +61 -48
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/api-keys/api-keys.shared.schemas.d.ts +26 -0
- package/dist/esm/security/api-keys/api-keys.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/api-keys/api-keys.shared.schemas.js +39 -5
- package/dist/esm/security/api-keys/api-keys.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts +5 -3
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js +6 -0
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.js +2 -2
- package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.d.ts +11 -0
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.js +19 -8
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js +5 -5
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.js +11 -11
- package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.d.ts +2 -0
- package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.js +9 -0
- package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.d.ts +169 -0
- package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.d.ts.map +1 -0
- package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.js +162 -0
- package/dist/esm/security/authentications/service-provider-client-authentication.shared.schemas.js.map +1 -0
- package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.js +10 -8
- package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.js +8 -8
- package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js +17 -16
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js +28 -25
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.d.ts +17 -6
- package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.js +90 -38
- package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts +0 -24
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js +79 -68
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts +8 -1
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js +7 -0
- package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.js +1 -1
- package/dist/esm/security/authorizations/application-access-grants.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js +7 -7
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.defaults.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.defaults.js +56 -0
- package/dist/esm/security/authorizations/roles.shared.defaults.js.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.d.ts +77 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.schemas.js +90 -0
- package/dist/esm/security/authorizations/roles.shared.schemas.js.map +1 -1
- package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.d.ts +86 -0
- package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.js +40 -0
- package/dist/esm/security/connected-accounts/provider-connection-listing.shared.schemas.js.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts +2 -1
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js +2 -1
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts +2 -1
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js +2 -1
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts +46 -14
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js +81 -21
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js.map +1 -1
- package/dist/esm/security/credential-rotation-grace.shared.utils.d.ts +69 -0
- package/dist/esm/security/credential-rotation-grace.shared.utils.d.ts.map +1 -0
- package/dist/esm/security/credential-rotation-grace.shared.utils.js +77 -0
- package/dist/esm/security/credential-rotation-grace.shared.utils.js.map +1 -0
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js +28 -8
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts +3 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js +89 -14
- package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts +1 -0
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js +25 -4
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -1
- package/dist/esm/security/outbound-target-control.shared.schemas.d.ts +7 -1
- package/dist/esm/security/outbound-target-control.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/outbound-target-control.shared.schemas.js +6 -0
- package/dist/esm/security/outbound-target-control.shared.schemas.js.map +1 -1
- package/dist/esm/security/submission-challenge/submission-challenge.shared.d.ts +143 -0
- package/dist/esm/security/submission-challenge/submission-challenge.shared.d.ts.map +1 -0
- package/dist/esm/security/submission-challenge/submission-challenge.shared.js +123 -0
- package/dist/esm/security/submission-challenge/submission-challenge.shared.js.map +1 -0
- package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.d.ts +384 -0
- package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.d.ts.map +1 -0
- package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.js +327 -0
- package/dist/esm/systems-of-record/system-of-record-actions.shared.schemas.js.map +1 -0
- package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.d.ts +121 -8
- package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.d.ts.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.js +83 -4
- package/dist/esm/systems-of-record/system-of-record-declaration.shared.schemas.js.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-error-codes.shared.d.ts +266 -8
- package/dist/esm/systems-of-record/system-of-record-error-codes.shared.d.ts.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-error-codes.shared.js +291 -7
- package/dist/esm/systems-of-record/system-of-record-error-codes.shared.js.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.d.ts +313 -3
- package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.d.ts.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.js +369 -3
- package/dist/esm/systems-of-record/system-of-record-facet.shared.schemas.js.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.js +2 -1
- package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/anonymous-users.shared.resources-config.schemas.d.ts +5 -3
- package/dist/esm/users/anonymous-users.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/anonymous-users.shared.resources-config.schemas.js +19 -10
- package/dist/esm/users/anonymous-users.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js +6 -0
- package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-preferences-reset.shared.utils.js +2 -2
- package/dist/esm/users/user-preferences-reset.shared.utils.js.map +1 -1
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts +0 -3
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts +0 -3
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self.shared.resources-config.schemas.js +1 -1
- package/dist/esm/users/user-self.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/users.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/users.shared.resources-config.schemas.js +82 -20
- package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/users.shared.schemas.d.ts +12 -9
- package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/users.shared.schemas.js +49 -18
- package/dist/esm/users/users.shared.schemas.js.map +1 -1
- package/package.json +4 -4
- package/dist/esm/compliance/privacy/data-retention.shared.schemas.js +0 -7
- package/dist/tsconfig.build.tsbuildinfo +0 -1
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* #1628 — deadlines, reminders and escalation for pending human decisions: the declaration a gate carries,
|
|
3
|
+
* the application's business calendar, and the pure arithmetic both planes arm and advance clocks with.
|
|
4
|
+
*
|
|
5
|
+
* Nothing here reads a store or a clock. Every function takes the instants it reasons about, which is what
|
|
6
|
+
* lets the sweep, the pause/resume doors and the tests share one definition of "when is this due".
|
|
7
|
+
*
|
|
8
|
+
* ## The model (researched 2026-09-25; the sources are on #1628)
|
|
9
|
+
*
|
|
10
|
+
* - Two SERVICE-TARGET clocks — CLAIM and DECISION — separate from the LAPSE, the hard stop. Missing a target
|
|
11
|
+
* fires actions and changes nothing else (WS-HumanTask 1.1 §4.9: "The state of the task is not changed").
|
|
12
|
+
* 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
|
|
13
|
+
* - Durations are ISO-8601 durations (`PT12H`, `P2D`), the form BPMN 2.0.2 timer events and Camunda use.
|
|
14
|
+
* Years and months are refused: their length depends on the calendar date, so they are not durations.
|
|
15
|
+
* - A target counts ELAPSED time by default, or only the working hours of the application's calendar.
|
|
16
|
+
* The lapse always counts ELAPSED time: it bounds how long a turn stays open, and a calendar lapse would
|
|
17
|
+
* let one stay open for a week of holidays.
|
|
18
|
+
*/
|
|
19
|
+
import { z } from 'zod';
|
|
20
|
+
import { FLOW_ACTOR_APPROVAL_DEFAULT_TIMEOUT_MS } from './flows-actors-execution.shared.schemas.js';
|
|
21
|
+
import { isLabelKeySegment } from '../i18n/application-config-vocabulary.shared.js';
|
|
22
|
+
import { ReviewClockBasis, ReviewDeadlineKind, ReviewDeadlineOutcome, ReviewDeadlineStage, ReviewEscalationActionKind, HumanDecision_Outcome, HumanDecision_RouteKind } from './human-decision.shared.schemas.js';
|
|
23
|
+
//===============================================================
|
|
24
|
+
// Durations
|
|
25
|
+
//===============================================================
|
|
26
|
+
/**
|
|
27
|
+
* `P[nW][nD][T[nH][nM][n[.n]S]]`. No years or months, and at least one component. A week is seven days
|
|
28
|
+
* of elapsed time; on a CALENDAR clock the milliseconds are then counted inside working hours only.
|
|
29
|
+
*/
|
|
30
|
+
const REVIEW_DURATION_PATTERN = /^P(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;
|
|
31
|
+
const MS_PER_SECOND = 1000;
|
|
32
|
+
const MS_PER_MINUTE = 60 * MS_PER_SECOND;
|
|
33
|
+
const MS_PER_HOUR = 60 * MS_PER_MINUTE;
|
|
34
|
+
const MS_PER_DAY = 24 * MS_PER_HOUR;
|
|
35
|
+
/** The duration in milliseconds, or `undefined` when `value` is not a positive ISO-8601 duration this model admits. */
|
|
36
|
+
export function parseReviewDurationMs(value) {
|
|
37
|
+
const match = REVIEW_DURATION_PATTERN.exec(value);
|
|
38
|
+
if (!match || value === 'P' || value.endsWith('T'))
|
|
39
|
+
return undefined;
|
|
40
|
+
const [, weeks, days, hours, minutes, seconds] = match;
|
|
41
|
+
const ms = Number(weeks ?? 0) * 7 * MS_PER_DAY
|
|
42
|
+
+ Number(days ?? 0) * MS_PER_DAY
|
|
43
|
+
+ Number(hours ?? 0) * MS_PER_HOUR
|
|
44
|
+
+ Number(minutes ?? 0) * MS_PER_MINUTE
|
|
45
|
+
+ Math.round(Number(seconds ?? 0) * MS_PER_SECOND);
|
|
46
|
+
return ms > 0 ? ms : undefined;
|
|
47
|
+
}
|
|
48
|
+
/** An ISO-8601 duration such as `PT12H` or `P2D`. */
|
|
49
|
+
export const ReviewDurationSchema = z.string().refine((value) => parseReviewDurationMs(value) !== undefined, {
|
|
50
|
+
message: 'Expected a positive ISO-8601 duration without years or months, such as "PT12H", "P2D" or "PT30M".',
|
|
51
|
+
});
|
|
52
|
+
//===============================================================
|
|
53
|
+
// Business calendar
|
|
54
|
+
//===============================================================
|
|
55
|
+
/** A day of the week, as the business calendar names working days. */
|
|
56
|
+
export var CalendarWeekday;
|
|
57
|
+
(function (CalendarWeekday) {
|
|
58
|
+
CalendarWeekday["MONDAY"] = "monday";
|
|
59
|
+
CalendarWeekday["TUESDAY"] = "tuesday";
|
|
60
|
+
CalendarWeekday["WEDNESDAY"] = "wednesday";
|
|
61
|
+
CalendarWeekday["THURSDAY"] = "thursday";
|
|
62
|
+
CalendarWeekday["FRIDAY"] = "friday";
|
|
63
|
+
CalendarWeekday["SATURDAY"] = "saturday";
|
|
64
|
+
CalendarWeekday["SUNDAY"] = "sunday";
|
|
65
|
+
})(CalendarWeekday || (CalendarWeekday = {}));
|
|
66
|
+
/** `Intl`'s short English weekday names, mapped to the vocabulary. Only this module formats dates in English, and never for display. */
|
|
67
|
+
const WEEKDAY_OF_INTL_SHORT_NAME = Object.freeze({
|
|
68
|
+
Mon: CalendarWeekday.MONDAY,
|
|
69
|
+
Tue: CalendarWeekday.TUESDAY,
|
|
70
|
+
Wed: CalendarWeekday.WEDNESDAY,
|
|
71
|
+
Thu: CalendarWeekday.THURSDAY,
|
|
72
|
+
Fri: CalendarWeekday.FRIDAY,
|
|
73
|
+
Sat: CalendarWeekday.SATURDAY,
|
|
74
|
+
Sun: CalendarWeekday.SUNDAY,
|
|
75
|
+
});
|
|
76
|
+
const LOCAL_TIME_PATTERN = /^([01]\d|2[0-3]):([0-5]\d)$/;
|
|
77
|
+
const LOCAL_DATE_PATTERN = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/;
|
|
78
|
+
function minutesOfLocalTime(value) {
|
|
79
|
+
const match = LOCAL_TIME_PATTERN.exec(value);
|
|
80
|
+
if (!match)
|
|
81
|
+
throw new ReviewCalendarError(`"${value}" is not a local time of the form HH:MM.`);
|
|
82
|
+
return Number(match[1]) * 60 + Number(match[2]);
|
|
83
|
+
}
|
|
84
|
+
function isKnownTimeZone(timeZone) {
|
|
85
|
+
try {
|
|
86
|
+
new Intl.DateTimeFormat('en-US', { timeZone });
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** @wildo_source:part:start saas.models.flows-actors.review-calendar facet:layer:shared facet:family:flows-actors facet:audience:app-developer */
|
|
94
|
+
/**
|
|
95
|
+
* The application's business calendar (#1628): when reviewers are expected to be working. Declared ONCE by
|
|
96
|
+
* the application, in its backend configuration as `reviewCalendar`, and read by every gate whose CLAIM or
|
|
97
|
+
* DECISION clock asks for the `CALENDAR` basis.
|
|
98
|
+
*
|
|
99
|
+
* - `timeZone` is an IANA zone (`Europe/Paris`). Working hours and holidays are read in it, so a deadline
|
|
100
|
+
* stays right across a daylight-saving change.
|
|
101
|
+
* - `workingHours` is one window per working day, `start` before `end`; a window crossing midnight is refused.
|
|
102
|
+
* - `holidays` are local dates (`2026-12-25`) on which no working time counts, whatever the weekday.
|
|
103
|
+
*
|
|
104
|
+
* A decision submitted on Friday evening with a `PT8H` CALENDAR target is due at the end of Monday's
|
|
105
|
+
* working day, not on Saturday morning. The lapse is never counted on this calendar.
|
|
106
|
+
*
|
|
107
|
+
* One calendar per application, not per tenant: a second calendar would be a second source for the same
|
|
108
|
+
* fact, and nothing asks for one yet. The shape allows a per-tenant calendar later without a reshape.
|
|
109
|
+
*/
|
|
110
|
+
export const ReviewCalendarSchema = z.object({
|
|
111
|
+
timeZone: z.string().min(1).refine(isKnownTimeZone, { message: 'Expected an IANA time zone such as "Europe/Paris".' }),
|
|
112
|
+
workingDays: z.array(z.enum(CalendarWeekday)).min(1).default([
|
|
113
|
+
CalendarWeekday.MONDAY, CalendarWeekday.TUESDAY, CalendarWeekday.WEDNESDAY, CalendarWeekday.THURSDAY, CalendarWeekday.FRIDAY,
|
|
114
|
+
]),
|
|
115
|
+
workingHours: z.object({
|
|
116
|
+
start: z.string().regex(LOCAL_TIME_PATTERN, 'Expected HH:MM'),
|
|
117
|
+
end: z.string().regex(LOCAL_TIME_PATTERN, 'Expected HH:MM'),
|
|
118
|
+
}).refine((hours) => minutesOfLocalTime(hours.start) < minutesOfLocalTime(hours.end), {
|
|
119
|
+
message: 'workingHours.start must be before workingHours.end (a window crossing midnight is not supported).',
|
|
120
|
+
}).default({ start: '09:00', end: '17:00' }),
|
|
121
|
+
holidays: z.array(z.string().regex(LOCAL_DATE_PATTERN, 'Expected a local date YYYY-MM-DD')).default([]),
|
|
122
|
+
});
|
|
123
|
+
/** @wildo_source:part:end saas.models.flows-actors.review-calendar */
|
|
124
|
+
/** A calendar that cannot answer — refused at startup when declared, so reaching this at run time is a defect. */
|
|
125
|
+
export class ReviewCalendarError extends Error {
|
|
126
|
+
}
|
|
127
|
+
const formatterCache = new Map();
|
|
128
|
+
function formatterFor(timeZone) {
|
|
129
|
+
let formatter = formatterCache.get(timeZone);
|
|
130
|
+
if (!formatter) {
|
|
131
|
+
formatter = new Intl.DateTimeFormat('en-US', {
|
|
132
|
+
timeZone, hourCycle: 'h23', year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', weekday: 'short',
|
|
133
|
+
});
|
|
134
|
+
formatterCache.set(timeZone, formatter);
|
|
135
|
+
}
|
|
136
|
+
return formatter;
|
|
137
|
+
}
|
|
138
|
+
function zonedPartsOf(instant, timeZone) {
|
|
139
|
+
const parts = {};
|
|
140
|
+
for (const part of formatterFor(timeZone).formatToParts(new Date(instant)))
|
|
141
|
+
parts[part.type] = part.value;
|
|
142
|
+
const weekday = WEEKDAY_OF_INTL_SHORT_NAME[parts.weekday ?? ''];
|
|
143
|
+
if (!weekday)
|
|
144
|
+
throw new ReviewCalendarError(`Could not read the weekday of ${new Date(instant).toISOString()} in "${timeZone}".`);
|
|
145
|
+
return {
|
|
146
|
+
year: Number(parts.year), month: Number(parts.month), day: Number(parts.day),
|
|
147
|
+
hour: Number(parts.hour), minute: Number(parts.minute), second: Number(parts.second), weekday,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/** The zone's offset from UTC at `instant`, in milliseconds. */
|
|
151
|
+
function zoneOffsetMs(instant, timeZone) {
|
|
152
|
+
const p = zonedPartsOf(instant, timeZone);
|
|
153
|
+
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;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* The instant at which the zone's wall clock reads `minutesOfDay` on `date`. Iterates to a fixed point, the
|
|
157
|
+
* standard way to invert an offset that itself depends on the instant. In a spring-forward gap the wall time
|
|
158
|
+
* does not exist and the answer lands just after the gap, which is where working time resumes.
|
|
159
|
+
*/
|
|
160
|
+
function instantOfLocalTime(date, minutesOfDay, timeZone) {
|
|
161
|
+
const wall = Date.UTC(date.year, date.month - 1, date.day, 0, minutesOfDay);
|
|
162
|
+
let guess = wall;
|
|
163
|
+
for (let attempt = 0; attempt < 4; attempt += 1) {
|
|
164
|
+
const next = wall - zoneOffsetMs(guess, timeZone);
|
|
165
|
+
if (next === guess)
|
|
166
|
+
break;
|
|
167
|
+
guess = next;
|
|
168
|
+
}
|
|
169
|
+
return guess;
|
|
170
|
+
}
|
|
171
|
+
function nextLocalDate(date) {
|
|
172
|
+
const next = new Date(Date.UTC(date.year, date.month - 1, date.day + 1));
|
|
173
|
+
return { year: next.getUTCFullYear(), month: next.getUTCMonth() + 1, day: next.getUTCDate() };
|
|
174
|
+
}
|
|
175
|
+
function isoLocalDate(date) {
|
|
176
|
+
return `${String(date.year).padStart(4, '0')}-${String(date.month).padStart(2, '0')}-${String(date.day).padStart(2, '0')}`;
|
|
177
|
+
}
|
|
178
|
+
/** Ten years of days. A calendar with at least one working day finds a window long before this. */
|
|
179
|
+
const MAX_CALENDAR_DAYS_SCANNED = 3660;
|
|
180
|
+
function previousLocalDate(date) {
|
|
181
|
+
const previous = new Date(Date.UTC(date.year, date.month - 1, date.day - 1));
|
|
182
|
+
return { year: previous.getUTCFullYear(), month: previous.getUTCMonth() + 1, day: previous.getUTCDate() };
|
|
183
|
+
}
|
|
184
|
+
function compareLocalDates(a, b) {
|
|
185
|
+
return (a.year - b.year) || (a.month - b.month) || (a.day - b.day);
|
|
186
|
+
}
|
|
187
|
+
const WEEKDAY_OF_UTC_DAY = Object.freeze([
|
|
188
|
+
CalendarWeekday.SUNDAY, CalendarWeekday.MONDAY, CalendarWeekday.TUESDAY, CalendarWeekday.WEDNESDAY,
|
|
189
|
+
CalendarWeekday.THURSDAY, CalendarWeekday.FRIDAY, CalendarWeekday.SATURDAY,
|
|
190
|
+
]);
|
|
191
|
+
/** The local date an instant falls on, in the calendar's zone. */
|
|
192
|
+
function localDateOf(instant, calendar) {
|
|
193
|
+
const parts = zonedPartsOf(instant, calendar.timeZone);
|
|
194
|
+
return { year: parts.year, month: parts.month, day: parts.day };
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* The working window on a local DATE, or `undefined` on a day off.
|
|
198
|
+
*
|
|
199
|
+
* Every walk below steps from DATE to date, never from "the instant a day begins" to the next: in a zone
|
|
200
|
+
* whose daylight-saving change happens AT MIDNIGHT (America/Havana, America/Santiago) the local midnight of
|
|
201
|
+
* the changeover day does not exist, and an instant computed for it lands on the day before — so a walk
|
|
202
|
+
* keyed on day-start instants stops advancing (#1628 review M1). A date always advances.
|
|
203
|
+
*/
|
|
204
|
+
function workingWindowOn(date, calendar) {
|
|
205
|
+
const weekday = WEEKDAY_OF_UTC_DAY[new Date(Date.UTC(date.year, date.month - 1, date.day)).getUTCDay()];
|
|
206
|
+
if (!calendar.workingDays.includes(weekday) || calendar.holidays.includes(isoLocalDate(date)))
|
|
207
|
+
return undefined;
|
|
208
|
+
return {
|
|
209
|
+
start: instantOfLocalTime(date, minutesOfLocalTime(calendar.workingHours.start), calendar.timeZone),
|
|
210
|
+
end: instantOfLocalTime(date, minutesOfLocalTime(calendar.workingHours.end), calendar.timeZone),
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* `start` moved by `durationMs` of WORKING time on `calendar` — forward for a positive duration, backward
|
|
215
|
+
* for a negative one (a warning `warnBefore` a CALENDAR deadline). A zero duration answers `start`.
|
|
216
|
+
*
|
|
217
|
+
* Forward from outside working hours, the first working minute is where counting begins: a `PT1H` target
|
|
218
|
+
* raised on Saturday is due one hour into Monday's window.
|
|
219
|
+
*/
|
|
220
|
+
export function addBusinessDuration(start, durationMs, calendar) {
|
|
221
|
+
if (durationMs === 0)
|
|
222
|
+
return new Date(start.getTime());
|
|
223
|
+
const origin = start.getTime();
|
|
224
|
+
if (durationMs > 0) {
|
|
225
|
+
let date = localDateOf(origin, calendar);
|
|
226
|
+
let remaining = durationMs;
|
|
227
|
+
for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED; scanned += 1, date = nextLocalDate(date)) {
|
|
228
|
+
const window = workingWindowOn(date, calendar);
|
|
229
|
+
if (!window)
|
|
230
|
+
continue;
|
|
231
|
+
const from = Math.max(origin, window.start);
|
|
232
|
+
if (from >= window.end)
|
|
233
|
+
continue;
|
|
234
|
+
const available = window.end - from;
|
|
235
|
+
if (remaining <= available)
|
|
236
|
+
return new Date(from + remaining);
|
|
237
|
+
remaining -= available;
|
|
238
|
+
}
|
|
239
|
+
throw new ReviewCalendarError('The review calendar has no working time in the next ten years.');
|
|
240
|
+
}
|
|
241
|
+
let date = localDateOf(origin, calendar);
|
|
242
|
+
let remaining = -durationMs;
|
|
243
|
+
for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED; scanned += 1, date = previousLocalDate(date)) {
|
|
244
|
+
const window = workingWindowOn(date, calendar);
|
|
245
|
+
if (!window)
|
|
246
|
+
continue;
|
|
247
|
+
const to = Math.min(origin, window.end);
|
|
248
|
+
if (to <= window.start)
|
|
249
|
+
continue;
|
|
250
|
+
const available = to - window.start;
|
|
251
|
+
if (remaining <= available)
|
|
252
|
+
return new Date(to - remaining);
|
|
253
|
+
remaining -= available;
|
|
254
|
+
}
|
|
255
|
+
throw new ReviewCalendarError('The review calendar has no working time in the previous ten years.');
|
|
256
|
+
}
|
|
257
|
+
/** How much WORKING time on `calendar` lies between `from` and `to`; zero when `to` is not after `from`. */
|
|
258
|
+
export function businessDurationBetween(from, to, calendar) {
|
|
259
|
+
const begin = from.getTime();
|
|
260
|
+
const end = to.getTime();
|
|
261
|
+
if (end <= begin)
|
|
262
|
+
return 0;
|
|
263
|
+
const lastDate = localDateOf(end, calendar);
|
|
264
|
+
let total = 0;
|
|
265
|
+
let date = localDateOf(begin, calendar);
|
|
266
|
+
for (let scanned = 0; scanned < MAX_CALENDAR_DAYS_SCANNED && compareLocalDates(date, lastDate) <= 0; scanned += 1, date = nextLocalDate(date)) {
|
|
267
|
+
const window = workingWindowOn(date, calendar);
|
|
268
|
+
if (!window)
|
|
269
|
+
continue;
|
|
270
|
+
const overlapStart = Math.max(begin, window.start);
|
|
271
|
+
const overlapEnd = Math.min(end, window.end);
|
|
272
|
+
if (overlapEnd > overlapStart)
|
|
273
|
+
total += overlapEnd - overlapStart;
|
|
274
|
+
}
|
|
275
|
+
return total;
|
|
276
|
+
}
|
|
277
|
+
/** `start` moved by `durationMs` on the given clock basis. CALENDAR without a calendar is refused. */
|
|
278
|
+
export function shiftOnReviewClock(start, durationMs, basis, calendar) {
|
|
279
|
+
if (basis === ReviewClockBasis.ELAPSED)
|
|
280
|
+
return new Date(start.getTime() + durationMs);
|
|
281
|
+
if (!calendar)
|
|
282
|
+
throw new ReviewCalendarError('A CALENDAR review clock needs the application\'s `reviewCalendar`, and none is declared.');
|
|
283
|
+
return addBusinessDuration(start, durationMs, calendar);
|
|
284
|
+
}
|
|
285
|
+
/** How much time the given clock counts between two instants. */
|
|
286
|
+
function countedOnReviewClock(from, to, basis, calendar) {
|
|
287
|
+
if (basis === ReviewClockBasis.ELAPSED)
|
|
288
|
+
return Math.max(0, to.getTime() - from.getTime());
|
|
289
|
+
if (!calendar)
|
|
290
|
+
throw new ReviewCalendarError('A CALENDAR review clock needs the application\'s `reviewCalendar`, and none is declared.');
|
|
291
|
+
return businessDurationBetween(from, to, calendar);
|
|
292
|
+
}
|
|
293
|
+
//===============================================================
|
|
294
|
+
// The gate's declaration
|
|
295
|
+
//===============================================================
|
|
296
|
+
/** @wildo_source:part:start saas.models.flows-actors.review-deadlines-declaration facet:layer:shared facet:family:flows-actors facet:audience:app-developer */
|
|
297
|
+
/** The CLAIM target every gate gets when it declares none: half of its lapse window. */
|
|
298
|
+
export const DEFAULT_REVIEW_CLAIM_FRACTION_OF_LAPSE = 0.5;
|
|
299
|
+
/** The DECISION target every gate gets when it declares none: three quarters of its lapse window. */
|
|
300
|
+
export const DEFAULT_REVIEW_DECISION_FRACTION_OF_LAPSE = 0.75;
|
|
301
|
+
/**
|
|
302
|
+
* When a service-target deadline falls: a duration after the decision was requested (`'PT4H'`), or a
|
|
303
|
+
* fraction of the gate's lapse window (`{ fractionOfLapse: 0.5 }`), counted on the target's clock basis.
|
|
304
|
+
*/
|
|
305
|
+
export const ReviewDeadlineAtSchema = z.union([
|
|
306
|
+
ReviewDurationSchema,
|
|
307
|
+
z.object({ fractionOfLapse: z.number().gt(0).lt(1) }),
|
|
308
|
+
]);
|
|
309
|
+
/** One service-target clock of a gate: CLAIM or DECISION. */
|
|
310
|
+
export const ReviewDeadlineTargetSchema = z.object({
|
|
311
|
+
at: ReviewDeadlineAtSchema,
|
|
312
|
+
/** Elapsed time (the default) or the application's business calendar. */
|
|
313
|
+
basis: z.enum(ReviewClockBasis).optional(),
|
|
314
|
+
/** Arms a WARNING stage this long before the deadline, on the same basis. Absent: no warning stage. */
|
|
315
|
+
warnBefore: ReviewDurationSchema.optional(),
|
|
316
|
+
});
|
|
317
|
+
/**
|
|
318
|
+
* What a stage does when it fires. The data half of a gate's escalation rule; a REASSIGN rule also names a
|
|
319
|
+
* target resolver, declared on the backend gate beside it.
|
|
320
|
+
*/
|
|
321
|
+
export const ReviewEscalationRuleSchema = z.object({
|
|
322
|
+
stage: z.enum(ReviewDeadlineStage),
|
|
323
|
+
action: z.enum(ReviewEscalationActionKind),
|
|
324
|
+
});
|
|
325
|
+
/**
|
|
326
|
+
* A gate's deadlines (`humanApproval.deadlines`). Every field is optional, and a gate declaring nothing
|
|
327
|
+
* still gets the defaults: a 24-hour elapsed lapse, a CLAIM reminder at half of it and a DECISION reminder
|
|
328
|
+
* at three quarters, each notifying the people who may answer. Notifications grant nothing, so this is on
|
|
329
|
+
* for every gate; a silent lapse was the surprising behaviour.
|
|
330
|
+
*
|
|
331
|
+
* - `lapseAfter` — when the decision ends LAPSED. Always elapsed time.
|
|
332
|
+
* - `claim` / `decision` — the two service targets.
|
|
333
|
+
* - `rules` — what fires at each stage, in declaration order. Declaring `rules` REPLACES the default
|
|
334
|
+
* reminders, so a gate that wants a reassignment and a reminder declares both. When several REASSIGN rules
|
|
335
|
+
* fire at one stage, the first declared wins.
|
|
336
|
+
* - `pauseStates` — the application's own names for why a reviewer may stop the clocks
|
|
337
|
+
* (`'awaiting-requester-information'`), labelled through i18n. A gate declaring none cannot be paused.
|
|
338
|
+
*/
|
|
339
|
+
export const ReviewDeadlinesDeclarationSchema = z.object({
|
|
340
|
+
lapseAfter: ReviewDurationSchema.optional(),
|
|
341
|
+
claim: ReviewDeadlineTargetSchema.optional(),
|
|
342
|
+
decision: ReviewDeadlineTargetSchema.optional(),
|
|
343
|
+
rules: z.array(ReviewEscalationRuleSchema).optional(),
|
|
344
|
+
pauseStates: z.array(z.string().trim().min(1)).optional(),
|
|
345
|
+
});
|
|
346
|
+
function resolveTarget(target, defaultFraction, lapseAfterMs) {
|
|
347
|
+
const at = target?.at ?? { fractionOfLapse: defaultFraction };
|
|
348
|
+
const afterMs = typeof at === 'string' ? (parseReviewDurationMs(at) ?? 0) : Math.round(at.fractionOfLapse * lapseAfterMs);
|
|
349
|
+
const warnBeforeMs = target?.warnBefore ? parseReviewDurationMs(target.warnBefore) : undefined;
|
|
350
|
+
return { afterMs, basis: target?.basis ?? ReviewClockBasis.ELAPSED, ...(warnBeforeMs ? { warnBeforeMs } : {}) };
|
|
351
|
+
}
|
|
352
|
+
/** The rules a gate gets when it declares none: a reminder at each MISSED stage, and at each armed WARNING. */
|
|
353
|
+
function defaultRules(claim, decision) {
|
|
354
|
+
const notify = (stage) => ({ stage, action: ReviewEscalationActionKind.NOTIFY });
|
|
355
|
+
return [
|
|
356
|
+
...(claim.warnBeforeMs ? [notify(ReviewDeadlineStage.CLAIM_WARNING)] : []),
|
|
357
|
+
notify(ReviewDeadlineStage.CLAIM_MISSED),
|
|
358
|
+
...(decision.warnBeforeMs ? [notify(ReviewDeadlineStage.DECISION_WARNING)] : []),
|
|
359
|
+
notify(ReviewDeadlineStage.DECISION_MISSED),
|
|
360
|
+
];
|
|
361
|
+
}
|
|
362
|
+
/** A gate's declaration (possibly absent) with every default applied. */
|
|
363
|
+
export function resolveReviewDeadlinePolicy(declaration) {
|
|
364
|
+
// The lapse a gate declaring none gets is the framework's approval window, one source for both.
|
|
365
|
+
const lapseAfterMs = (declaration?.lapseAfter ? parseReviewDurationMs(declaration.lapseAfter) : undefined) ?? FLOW_ACTOR_APPROVAL_DEFAULT_TIMEOUT_MS;
|
|
366
|
+
const claim = resolveTarget(declaration?.claim, DEFAULT_REVIEW_CLAIM_FRACTION_OF_LAPSE, lapseAfterMs);
|
|
367
|
+
const decision = resolveTarget(declaration?.decision, DEFAULT_REVIEW_DECISION_FRACTION_OF_LAPSE, lapseAfterMs);
|
|
368
|
+
return {
|
|
369
|
+
lapseAfterMs, claim, decision,
|
|
370
|
+
rules: declaration?.rules ? [...declaration.rules] : defaultRules(claim, decision),
|
|
371
|
+
pauseStates: [...(declaration?.pauseStates ?? [])],
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
/** The deadline kind a stage belongs to. */
|
|
375
|
+
export function reviewDeadlineKindOfStage(stage) {
|
|
376
|
+
switch (stage) {
|
|
377
|
+
case ReviewDeadlineStage.CLAIM_WARNING:
|
|
378
|
+
case ReviewDeadlineStage.CLAIM_MISSED:
|
|
379
|
+
return ReviewDeadlineKind.CLAIM;
|
|
380
|
+
case ReviewDeadlineStage.DECISION_WARNING:
|
|
381
|
+
case ReviewDeadlineStage.DECISION_MISSED:
|
|
382
|
+
return ReviewDeadlineKind.DECISION;
|
|
383
|
+
default: {
|
|
384
|
+
const unmapped = stage;
|
|
385
|
+
throw new Error(`Review deadline stage "${String(unmapped)}" has no kind.`);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
/** Whether a stage is a WARNING (before a deadline) rather than the deadline being missed. */
|
|
390
|
+
export function isReviewWarningStage(stage) {
|
|
391
|
+
return stage === ReviewDeadlineStage.CLAIM_WARNING || stage === ReviewDeadlineStage.DECISION_WARNING;
|
|
392
|
+
}
|
|
393
|
+
/** The MISSED stage a WARNING stage warns about. */
|
|
394
|
+
function missedStageOf(stage) {
|
|
395
|
+
return reviewDeadlineKindOfStage(stage) === ReviewDeadlineKind.CLAIM ? ReviewDeadlineStage.CLAIM_MISSED : ReviewDeadlineStage.DECISION_MISSED;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Everything wrong with a gate's deadline declaration, as sentences naming the fix. Empty when it is sound.
|
|
399
|
+
* Startup refuses a gate with any, so a declaration that can never do what it says never ships:
|
|
400
|
+
*
|
|
401
|
+
* - a CALENDAR clock in an application that declares no calendar (#1628 I6) — never silently ELAPSED;
|
|
402
|
+
* - an ELAPSED target at or after the lapse, which could never fire before the decision ends;
|
|
403
|
+
* - a warning no earlier than the start of its own clock;
|
|
404
|
+
* - a rule on a WARNING stage whose `warnBefore` is not declared, which could never fire;
|
|
405
|
+
* - a REASSIGN rule on an OWNER gate, whose route cannot move.
|
|
406
|
+
*/
|
|
407
|
+
export function reviewDeadlinesDeclarationIssues(declaration, context) {
|
|
408
|
+
if (!declaration)
|
|
409
|
+
return [];
|
|
410
|
+
const parsed = ReviewDeadlinesDeclarationSchema.safeParse(declaration);
|
|
411
|
+
if (!parsed.success)
|
|
412
|
+
return parsed.error.issues.map((issue) => `deadlines.${issue.path.join('.')}: ${issue.message}`);
|
|
413
|
+
const policy = resolveReviewDeadlinePolicy(parsed.data);
|
|
414
|
+
const issues = [];
|
|
415
|
+
const targets = [
|
|
416
|
+
[ReviewDeadlineKind.CLAIM, policy.claim, parsed.data.claim],
|
|
417
|
+
[ReviewDeadlineKind.DECISION, policy.decision, parsed.data.decision],
|
|
418
|
+
];
|
|
419
|
+
for (const [kind, target] of targets) {
|
|
420
|
+
if (target.basis === ReviewClockBasis.CALENDAR && !context.calendarDeclared) {
|
|
421
|
+
issues.push(`deadlines.${kind} counts on the CALENDAR basis, but the application declares no \`reviewCalendar\`. Declare one, or use the ELAPSED basis.`);
|
|
422
|
+
}
|
|
423
|
+
if (target.basis === ReviewClockBasis.ELAPSED && target.afterMs >= policy.lapseAfterMs) {
|
|
424
|
+
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.`);
|
|
425
|
+
}
|
|
426
|
+
if (target.warnBeforeMs !== undefined && target.warnBeforeMs >= target.afterMs) {
|
|
427
|
+
issues.push(`deadlines.${kind}.warnBefore is not shorter than the ${kind} target itself, so the warning would fall at or before the request.`);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
for (const rule of policy.rules) {
|
|
431
|
+
const target = reviewDeadlineKindOfStage(rule.stage) === ReviewDeadlineKind.CLAIM ? policy.claim : policy.decision;
|
|
432
|
+
if (isReviewWarningStage(rule.stage) && target.warnBeforeMs === undefined) {
|
|
433
|
+
issues.push(`deadlines.rules names the ${rule.stage} stage, but its clock declares no warnBefore, so that stage is never armed.`);
|
|
434
|
+
}
|
|
435
|
+
if (rule.action === ReviewEscalationActionKind.REASSIGN && context.routeKind === HumanDecision_RouteKind.OWNER) {
|
|
436
|
+
issues.push(`deadlines.rules REASSIGNs at ${rule.stage}, but this gate routes to its OWNER, whose route cannot move.`);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
if (new Set(policy.pauseStates).size !== policy.pauseStates.length) {
|
|
440
|
+
issues.push('deadlines.pauseStates names a pause state twice.');
|
|
441
|
+
}
|
|
442
|
+
// A pause state is also the last segment of its label key, `system_enums.HumanDecisionPauseState.<state>` (#1864),
|
|
443
|
+
// and the label tree is addressed by dotted path: a state with a dot could never show its word.
|
|
444
|
+
for (const pauseState of policy.pauseStates) {
|
|
445
|
+
if (!isLabelKeySegment(pauseState)) {
|
|
446
|
+
issues.push(`deadlines.pauseStates "${pauseState}" may contain only letters, digits, "_" and "-": it is also the last segment of its label key.`);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return issues;
|
|
450
|
+
}
|
|
451
|
+
/** Arm a decision's clocks at the moment it is requested. */
|
|
452
|
+
export function armReviewDeadlines(input) {
|
|
453
|
+
const { requestedAt, policy, calendar } = input;
|
|
454
|
+
const claimDeadlineAt = shiftOnReviewClock(requestedAt, policy.claim.afterMs, policy.claim.basis, calendar);
|
|
455
|
+
const decisionDeadlineAt = shiftOnReviewClock(requestedAt, policy.decision.afterMs, policy.decision.basis, calendar);
|
|
456
|
+
return {
|
|
457
|
+
lapseAt: new Date(requestedAt.getTime() + policy.lapseAfterMs),
|
|
458
|
+
claimDeadlineAt,
|
|
459
|
+
...(policy.claim.warnBeforeMs ? { claimWarningAt: shiftOnReviewClock(claimDeadlineAt, -policy.claim.warnBeforeMs, policy.claim.basis, calendar) } : {}),
|
|
460
|
+
claimBasis: policy.claim.basis,
|
|
461
|
+
decisionDeadlineAt,
|
|
462
|
+
...(policy.decision.warnBeforeMs ? { decisionWarningAt: shiftOnReviewClock(decisionDeadlineAt, -policy.decision.warnBeforeMs, policy.decision.basis, calendar) } : {}),
|
|
463
|
+
decisionBasis: policy.decision.basis,
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
/** The stages in the order they fire when due together. */
|
|
467
|
+
export const REVIEW_DEADLINE_STAGE_ORDER = Object.freeze([
|
|
468
|
+
ReviewDeadlineStage.CLAIM_WARNING,
|
|
469
|
+
ReviewDeadlineStage.CLAIM_MISSED,
|
|
470
|
+
ReviewDeadlineStage.DECISION_WARNING,
|
|
471
|
+
ReviewDeadlineStage.DECISION_MISSED,
|
|
472
|
+
]);
|
|
473
|
+
/**
|
|
474
|
+
* May this stage still fire? Not once fired; not a CLAIM stage while the decision is claimed; and not a
|
|
475
|
+
* WARNING whose deadline has already been missed (or is missed at the same moment) — a warning after the
|
|
476
|
+
* fact is noise, and leaving it unmarked is honest: it never fired.
|
|
477
|
+
*/
|
|
478
|
+
function stageMayFire(stage, schedule, now) {
|
|
479
|
+
const dueAt = schedule.dueAt[stage];
|
|
480
|
+
if (schedule.firedAt[stage] || !dueAt)
|
|
481
|
+
return false;
|
|
482
|
+
if (schedule.lapseAt && dueAt.getTime() >= schedule.lapseAt.getTime())
|
|
483
|
+
return false;
|
|
484
|
+
if (schedule.claimed && reviewDeadlineKindOfStage(stage) === ReviewDeadlineKind.CLAIM)
|
|
485
|
+
return false;
|
|
486
|
+
if (isReviewWarningStage(stage)) {
|
|
487
|
+
const missed = missedStageOf(stage);
|
|
488
|
+
if (schedule.firedAt[missed])
|
|
489
|
+
return false;
|
|
490
|
+
const missedDue = schedule.dueAt[missed];
|
|
491
|
+
if (now && missedDue && missedDue.getTime() <= now.getTime())
|
|
492
|
+
return false;
|
|
493
|
+
// A warning about a deadline that falls at or after the lapse warns of something that will never come.
|
|
494
|
+
if (schedule.lapseAt && missedDue && missedDue.getTime() >= schedule.lapseAt.getTime())
|
|
495
|
+
return false;
|
|
496
|
+
}
|
|
497
|
+
return true;
|
|
498
|
+
}
|
|
499
|
+
/** The stages due at `now`, in firing order. */
|
|
500
|
+
export function dueReviewDeadlineStages(schedule, now) {
|
|
501
|
+
return REVIEW_DEADLINE_STAGE_ORDER.filter((stage) => stageMayFire(stage, schedule, now) && schedule.dueAt[stage].getTime() <= now.getTime());
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* The earliest instant any stage may still fire at — what the row's indexed next-due column holds, so the
|
|
505
|
+
* sweep selects due rows by index. `undefined` when nothing is left to fire.
|
|
506
|
+
*/
|
|
507
|
+
export function nextReviewDeadlineDueAt(schedule) {
|
|
508
|
+
let next;
|
|
509
|
+
for (const stage of REVIEW_DEADLINE_STAGE_ORDER) {
|
|
510
|
+
if (!stageMayFire(stage, schedule))
|
|
511
|
+
continue;
|
|
512
|
+
const dueAt = schedule.dueAt[stage];
|
|
513
|
+
if (!next || dueAt.getTime() < next.getTime())
|
|
514
|
+
next = dueAt;
|
|
515
|
+
}
|
|
516
|
+
return next;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* The service targets after a pause from `pausedAt` to `resumedAt`. Each clock stopped at `pausedAt`: an
|
|
520
|
+
* instant still ahead of it keeps the time that was left, counted on its own basis, from `resumedAt`. An
|
|
521
|
+
* instant already behind it has passed and does not move.
|
|
522
|
+
*/
|
|
523
|
+
export function resumeReviewServiceTargets(targets, pausedAt, resumedAt, calendar) {
|
|
524
|
+
const move = (instant, basis) => {
|
|
525
|
+
if (!instant || instant.getTime() <= pausedAt.getTime())
|
|
526
|
+
return instant;
|
|
527
|
+
return shiftOnReviewClock(resumedAt, countedOnReviewClock(pausedAt, instant, basis, calendar), basis, calendar);
|
|
528
|
+
};
|
|
529
|
+
return {
|
|
530
|
+
...targets,
|
|
531
|
+
claimDeadlineAt: move(targets.claimDeadlineAt, targets.claimBasis),
|
|
532
|
+
claimWarningAt: move(targets.claimWarningAt, targets.claimBasis),
|
|
533
|
+
decisionDeadlineAt: move(targets.decisionDeadlineAt, targets.decisionBasis),
|
|
534
|
+
decisionWarningAt: move(targets.decisionWarningAt, targets.decisionBasis),
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Whether each armed service target was MET or MISSED, as the RESOLVED event records it.
|
|
539
|
+
*
|
|
540
|
+
* - DECISION is missed when its MISSED stage fired, when the decision lapsed (nobody decided), or when it
|
|
541
|
+
* ended after the deadline.
|
|
542
|
+
* - CLAIM is met when the decision was claimed, or settled by a person, by the CLAIM deadline; missed when
|
|
543
|
+
* its MISSED stage fired, or when it was taken — or lapsed — only after the deadline.
|
|
544
|
+
*
|
|
545
|
+
* - A WITHDRAWN decision was taken by nobody and answered by nobody, so it is measured only where a
|
|
546
|
+
* deadline had ALREADY been missed before the withdrawal; a clock it was withdrawn inside is omitted,
|
|
547
|
+
* never reported as met.
|
|
548
|
+
*
|
|
549
|
+
* The deadlines passed in must already include any pause, including one still open when the decision
|
|
550
|
+
* ended (see `resumeReviewServiceTargets`): a clock that was stopped cannot have been missed while it was.
|
|
551
|
+
*
|
|
552
|
+
* A clock that was never armed (a row from before #1628) is omitted rather than guessed.
|
|
553
|
+
*/
|
|
554
|
+
export function reviewDeadlineOutcomesOf(input) {
|
|
555
|
+
const outcomes = {};
|
|
556
|
+
if (input.outcome === HumanDecision_Outcome.WITHDRAWN) {
|
|
557
|
+
if (input.claimDeadlineAt && input.claimMissedFiredAt)
|
|
558
|
+
outcomes[ReviewDeadlineKind.CLAIM] = ReviewDeadlineOutcome.MISSED;
|
|
559
|
+
if (input.decisionDeadlineAt && input.decisionMissedFiredAt)
|
|
560
|
+
outcomes[ReviewDeadlineKind.DECISION] = ReviewDeadlineOutcome.MISSED;
|
|
561
|
+
return outcomes;
|
|
562
|
+
}
|
|
563
|
+
const lapsed = input.outcome === HumanDecision_Outcome.LAPSED;
|
|
564
|
+
if (input.decisionDeadlineAt) {
|
|
565
|
+
const missed = !!input.decisionMissedFiredAt || lapsed || input.resolvedAt.getTime() > input.decisionDeadlineAt.getTime();
|
|
566
|
+
outcomes[ReviewDeadlineKind.DECISION] = missed ? ReviewDeadlineOutcome.MISSED : ReviewDeadlineOutcome.MET;
|
|
567
|
+
}
|
|
568
|
+
if (input.claimDeadlineAt) {
|
|
569
|
+
const deadline = input.claimDeadlineAt.getTime();
|
|
570
|
+
const takenBy = input.claimedAt ?? (lapsed ? undefined : input.resolvedAt);
|
|
571
|
+
const met = !input.claimMissedFiredAt && takenBy !== undefined && takenBy.getTime() <= deadline;
|
|
572
|
+
outcomes[ReviewDeadlineKind.CLAIM] = met ? ReviewDeadlineOutcome.MET : ReviewDeadlineOutcome.MISSED;
|
|
573
|
+
}
|
|
574
|
+
return outcomes;
|
|
575
|
+
}
|
|
576
|
+
//# sourceMappingURL=review-deadlines.shared.schemas.js.map
|