@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ExecutionContext_ExecutionType, ExecutionContext_InitiatorIdsSchema } from "../runtime/execution-context.shared.schemas.js";
|
|
3
3
|
import { ErrorCustomMessageReference } from "./errors.custom-message-ref.shared.definitions.js";
|
|
4
|
+
import { isWildoBackendErrorShape } from './caught-error-description.shared.utils.js';
|
|
4
5
|
import { NotificationNextStepType } from "../notifications/notifications.shared.schemas.js";
|
|
5
6
|
/**
|
|
6
7
|
* The coarse error category of every backend error. Import from
|
|
@@ -176,6 +177,16 @@ export const ErrorUserGuidanceSchema = z.object({
|
|
|
176
177
|
explanation: z.string().optional(),
|
|
177
178
|
/** How to resolve the issue */
|
|
178
179
|
resolution: z.string().optional(),
|
|
180
|
+
/**
|
|
181
|
+
* Values the localized guidance label interpolates (`{name}` placeholders, the one label syntax).
|
|
182
|
+
*
|
|
183
|
+
* A localized label outranks the raw `explanation` / `resolution` strings, so without params a label
|
|
184
|
+
* could only ever say something STATIC — and a refusal whose useful part is dynamic (the companion's
|
|
185
|
+
* secrets section relaying the CLI's own sentence, #1637) had to choose between a translated label
|
|
186
|
+
* that hides the reason and an untranslated raw string. Params let the label carry the sentence and the
|
|
187
|
+
* dynamic part both. Values are shown to the user: never put a secret or an internal identifier here.
|
|
188
|
+
*/
|
|
189
|
+
params: z.record(z.string(), z.union([z.string(), z.number()])).optional(),
|
|
179
190
|
/** Steps already completed before the error occurred */
|
|
180
191
|
completedSteps: z.array(z.string()).optional(),
|
|
181
192
|
/** Suggested next action (operation or URL) */
|
|
@@ -209,15 +220,11 @@ export const WildoError_BackendSchema = WildoErrorSchema.extend({
|
|
|
209
220
|
* Type guard for WildoError_Backend — safely identifies engine-thrown errors in catch blocks.
|
|
210
221
|
*
|
|
211
222
|
* Replaces the unsafe `(error as any).type` pattern. Checks for the 4 structural
|
|
212
|
-
* properties that distinguish WildoError_Backend from arbitrary Error objects
|
|
223
|
+
* properties that distinguish WildoError_Backend from arbitrary Error objects — the check itself
|
|
224
|
+
* lives in {@link isWildoBackendErrorShape}, an import-free atom the bundle-safe describers share.
|
|
213
225
|
*/
|
|
214
226
|
export function isWildoBackendError(error) {
|
|
215
|
-
return (error
|
|
216
|
-
typeof error === 'object' &&
|
|
217
|
-
'type' in error &&
|
|
218
|
-
'statusCode' in error &&
|
|
219
|
-
'severity' in error &&
|
|
220
|
-
'customMessageReference' in error);
|
|
227
|
+
return isWildoBackendErrorShape(error);
|
|
221
228
|
}
|
|
222
229
|
// =====================================================
|
|
223
230
|
// WildoError — Frontend
|
|
@@ -297,9 +304,9 @@ export var FieldValidationIssueCode;
|
|
|
297
304
|
*/
|
|
298
305
|
export const ValidationErrorEntry_Schema = z.object({
|
|
299
306
|
/** The issue's code; the frontend resolves `errors_validation.<code>.msg`. */
|
|
300
|
-
code: z.enum(FieldValidationIssueCode),
|
|
307
|
+
code: z.enum(FieldValidationIssueCode).describe("A stable code for the field's problem, to branch on or to look up in your own message catalog. `not_unique`: another record already has this value in a field that must be unique."),
|
|
301
308
|
/** Interpolation parameters for that catalog message. `NOT_UNIQUE` needs none. */
|
|
302
|
-
params: z.record(z.string(), z.string()).optional(),
|
|
309
|
+
params: z.record(z.string(), z.string()).optional().describe("Values to fill into the message for that code. Absent when the code needs none."),
|
|
303
310
|
});
|
|
304
311
|
export const VersionConflictDetailsSchema = z.object({
|
|
305
312
|
currentVersion: z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.shared.schemas.js","sourceRoot":"","sources":["../../../../src/errors/errors.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAiC,mCAAmC,EAAE,MAAM,6CAA6C,CAAC;AACjK,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAN,IAAY,SAqCX;AArCD,WAAY,SAAS;IACrB,4FAA4F;IAE1F,gCAAmB,CAAA;IAEnB,8CAAiC,CAAA;IACjC,4CAA+B,CAAA;IAE/B,sCAAyB,CAAA;IAEzB;;mGAE+F;IAC/F,oDAAuC,CAAA;IAEvC,oCAAuB,CAAA;IACvB,kCAAqB,CAAA;IAErB,sCAAyB,CAAA;IAEzB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,kDAAqC,CAAA;IAErC,gCAAmB,CAAA;IACnB,sDAAyC,CAAA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Context_ExecutionType, ExecutionContext_InitiatorIds, ExecutionContext_InitiatorIdsSchema } from \"../runtime/execution-context.shared.schemas\";\nimport { ErrorCustomMessageReference } from \"./errors.custom-message-ref.shared.definitions\";\nimport { NotificationNextStepType } from \"../notifications/notifications.shared.schemas\";\n\n/**\n * The coarse error category of every backend error. Import from\n * `@wildo-ai/saas-models`.\n *\n * The `ErrorType` you pass to `errorBuilder.buildError(type, …)` is the single\n * driver of the HTTP status code, the severity/logging level, and whether the\n * error's `context` is exposed to the client. Pick the type that matches the\n * real condition — never default everything to `INTERNAL`:\n *\n * | ErrorType | HTTP | Use for |\n * |----------------------|------|-----------------------------------------------------|\n * | `VALIDATION` | 400 | Bad/malformed input, failed cross-field rules |\n * | `AUTHENTICATION` | 401 | Missing/invalid session or credentials |\n * | `AUTHORIZATION` | 403 | Authenticated but not permitted |\n * | `NOT_FOUND` | 404 | Requested resource does not exist / not visible |\n * | `CONFLICT` | 409 | Uniqueness / version / state conflict |\n * | `RATE_LIMIT` | 429 | Too many requests |\n * | `BUSINESS_RULE` | 422 | Domain rule violated (well-formed but not allowed) |\n * | `FEATURE_NOT_AVAILABLE` / `FEATURE_LIMIT_EXCEEDED` / `INSUFFICIENT_CREDITS` | 403/402 | Plan/feature gating |\n * | `EXTERNAL_SERVICE` | 502 | A downstream provider/API failed |\n * | `CONFIGURATION` | 500 | Server misconfiguration |\n * | `INTERNAL` / `DATABASE` / `INFRASTRUCTURE` | 500 | Server-side faults (context is stripped from the client) |\n *\n * Only VALIDATION / CONFLICT / RATE_LIMIT expose `context` to the client; every\n * other type strips it (so `context` is log-only). The user-facing wording never\n * comes from `context` — it comes from the `customMessageReference` (see\n * `ErrorCustomMessageReference`), resolved to localized text by `tErrorMessage`.\n */\nexport enum ErrorType {\n/** @wildo_source:part:start saas.models.error-type facet:layer:shared facet:family:error */\n\n NETWORK = 'NETWORK',\n\n AUTHENTICATION = 'AUTHENTICATION',\n AUTHORIZATION = 'AUTHORIZATION',\n\n VALIDATION = 'VALIDATION',\n\n /** HTTP 413 — the request body exceeded a size limit (e.g. the OAuth mount's 32 KB cap or a global body\n * parser limit). A CLIENT input problem, classified separately from VALIDATION so the response carries the\n * precise 413 status framework-wide rather than a generic 400 (and never an INTERNAL 500). */\n PAYLOAD_TOO_LARGE = 'PAYLOAD_TOO_LARGE',\n\n NOT_FOUND = 'NOT_FOUND',\n CONFLICT = 'CONFLICT',\n\n RATE_LIMIT = 'RATE_LIMIT',\n\n INTERNAL = 'INTERNAL',\n DATABASE = 'DATABASE',\n EXTERNAL_SERVICE = 'EXTERNAL_SERVICE',\n\n UNKNOWN = 'UNKNOWN',\n UNCAUGHT_EXCEPTION = 'UNCAUGHT_EXCEPTION',\n UNHANDLED_REJECTION = 'UNHANDLED_REJECTION',\n\n BUSINESS_RULE = 'BUSINESS_RULE',\n INFRASTRUCTURE = 'INFRASTRUCTURE',\n CONFIGURATION = 'CONFIGURATION',\n\n // Feature gating errors\n FEATURE_NOT_AVAILABLE = 'FEATURE_NOT_AVAILABLE',\n FEATURE_LIMIT_EXCEEDED = 'FEATURE_LIMIT_EXCEEDED',\n INSUFFICIENT_CREDITS = 'INSUFFICIENT_CREDITS',\n/** @wildo_source:part:end saas.models.error-type */\n}\n\n/**\n * Error severity levels\n */\n\nexport enum ErrorSeverity {\n LOW = 'low',\n MEDIUM = 'medium',\n HIGH = 'high',\n CRITICAL = 'critical',\n ALERT = 'alert',\n EMERGENCY = 'emergency',\n}\n\n/**\n * Frontend-specific error actions\n */\nexport enum ErrorActionFrontend {\n NOTIFY = 'NOTIFY',\n REDIRECT = 'REDIRECT',\n RETRY = 'RETRY',\n REFRESH_TOKEN = 'REFRESH_TOKEN',\n DISCONNECT = 'DISCONNECT',\n SHOW_MODAL = 'SHOW_MODAL',\n SHOW_TOAST = 'SHOW_TOAST'\n}\n\n/**\n * Backend-specific error actions\n */\nexport enum ErrorActionBackend {\n LOG = 'LOG',\n ALERT = 'ALERT',\n RECORD_METRICS = 'RECORD_METRICS',\n TRACE = 'TRACE',\n CIRCUIT_BREAK = 'CIRCUIT_BREAK',\n GRACEFUL_DEGRADATION = 'GRACEFUL_DEGRADATION'\n}\n\nexport enum Error_Frontend_RedirectPolicy {\n LOGIN = 'login',\n HOME = 'home',\n HISTORY_BACK = 'history_back',\n // NOT_FOUND = 'not_found',\n // UNAUTHORIZED = 'unauthorized',\n // ERROR_PAGE = 'error_page',\n\n}\n\nexport enum ErrorHandling_Strategy {\n STOP = \"stop\",\n SKIP = \"skip\",\n RETRY = \"retry\",\n FALLBACK = \"fallback\",\n}\n\nexport enum RetryPolicy_BackoffType {\n FIXED = \"fixed\",\n EXPONENTIAL = \"exponential\",\n LINEAR = \"linear\",\n}\n\n\nexport type WildoError_Definition = {\n type: ErrorType;\n severity: ErrorSeverity;\n description: string;\n defaultCustomMessageReference: ErrorCustomMessageReference;\n\n errorHandlingStrategy?: ErrorHandling_Strategy;\n retryPolicy?: RetryPolicy_BackoffType;\n maxRetries?: number;\n initialDelay?: number;\n baseDelay?: number;\n\n // Frontend-specific config\n frontendActions: ErrorActionFrontend[];\n redirectPolicy?: Error_Frontend_RedirectPolicy;\n showToUser?: boolean;\n\n // Backend-specific config\n statusCode: number;\n backendActions: ErrorActionBackend[];\n\n}\n\nexport type WildoError_Frontend_Definition = Omit<\n WildoError_Definition,\n 'statusCode' | 'backendActions'\n>;\n\nexport type WildoError_Backend_Definition = Omit<\n WildoError_Definition,\n 'frontendActions' | 'redirectPolicy' | 'showToUser'\n >;\n\n\n\nexport const WildoErrorSchema = z.object({\n type: z.enum(ErrorType),\n severity: z.enum(ErrorSeverity),\n operationPathKey: z.string().optional(),\n timestamp: z.date(),\n\n /**\n * Free-form context bag attached to the error.\n *\n * The `message` slot is modelled explicitly (L1-6, post-Phase-7\n * close-out) because consumers across the codebase reach for it\n * via `error.context.message` as a strongly-typed human-readable\n * detail string (notably the data-seeding `manual-seed-engine`\n * extracts it via `isWildoBackendError → context.message` to\n * surface scope-mismatch and other CONFIGURATION errors back into\n * the `DataSeedRun.failureReport`). Modeling it here makes the\n * contract typed at the producer side instead of relying on\n * `z.record(string, any)` to let any shape through.\n *\n * Other fields remain free-form (`catchall(z.any())`) so existing\n * callers that attach domain-specific keys (e.g. `envKey`,\n * `headerKey`, `seedKey`) continue to work without a schema bump.\n */\n context: z.object({\n message: z.string().optional(),\n }).catchall(z.any()).optional(),\n ipAddress: z.string().optional(),\n\n // Resilience and retry policy\n errorHandlingStrategy: z.enum(ErrorHandling_Strategy).optional(),\n retryPolicy: z.enum(RetryPolicy_BackoffType).optional(),\n maxRetries: z.number().optional(),\n initialDelay: z.number().optional(),\n baseDelay: z.number().optional(),\n retryCount: z.number().optional(),\n lastRetryTime: z.date().optional(),\n});\n\nexport type WildoError = z.infer<typeof WildoErrorSchema>;\n\n// =====================================================\n// Error User Guidance — contextual error resolution hints (Phase 1b)\n// =====================================================\n\n/**\n * Structured guidance attached to backend errors.\n * Tells the frontend what went wrong, how to fix it, and what to do next.\n *\n * Populated by `ErrorBuilderBackendService.buildErrorWithGuidance()` for\n * error types like CONFIGURATION, FEATURE_NOT_AVAILABLE, RATE_LIMIT, etc.\n *\n * NOTE: Defined before WildoError_BackendSchema because it's referenced there.\n */\nexport const ErrorUserGuidanceSchema = z.object({\n /**\n * i18n lookup key for this guidance block.\n * Resolves labels under `errors_guidance.{guidanceKey}.{field}`.\n * If not set, falls back to the error's `customMessageReference`.\n */\n guidanceKey: z.string().optional(),\n /** Human-readable explanation of what went wrong */\n explanation: z.string().optional(),\n /** How to resolve the issue */\n resolution: z.string().optional(),\n /** Steps already completed before the error occurred */\n completedSteps: z.array(z.string()).optional(),\n /** Suggested next action (operation or URL) */\n nextAction: z.object({\n label: z.string(),\n /** Operation path or URL */\n ref: z.string(),\n type: z.enum(NotificationNextStepType).default(NotificationNextStepType.OPERATION),\n }).optional(),\n /** For rate limits: seconds until retry is available */\n retryAfterSeconds: z.number().optional(),\n /** For configuration errors: what configuration elements are missing */\n missingConfiguration: z.array(z.string()).optional(),\n});\n\nexport type ErrorUserGuidance = z.infer<typeof ErrorUserGuidanceSchema>;\n\n// =====================================================\n// WildoError — Backend (extends base with backend-specific fields)\n// =====================================================\n\nexport const WildoError_BackendSchema = WildoErrorSchema.extend({\n backendActions: z.array(z.enum(ErrorActionBackend)),\n customMessageReference: z.enum(ErrorCustomMessageReference),\n statusCode: z.number(),\n stack: z.string().optional(),\n /** The request-correlation id (see `ExecutionContext.correlationId`). Populated from the EC when one was threaded, else from the ambient request-context ALS frame — that fallback is what attributes the many `buildError` call sites that pass no EC. */\n correlationId: z.string().optional(),\n initiatorIds: ExecutionContext_InitiatorIdsSchema.optional().nullable(),\n executionType: z.enum(ExecutionContext_ExecutionType).optional(),\n /** Contextual user guidance for error resolution (Phase 1b) */\n userGuidance: ErrorUserGuidanceSchema.optional(),\n});\n\nexport type WildoError_Backend = z.infer<typeof WildoError_BackendSchema>;\n\n/**\n * Type guard for WildoError_Backend — safely identifies engine-thrown errors in catch blocks.\n *\n * Replaces the unsafe `(error as any).type` pattern. Checks for the 4 structural\n * properties that distinguish WildoError_Backend from arbitrary Error objects.\n */\nexport function isWildoBackendError(error: unknown): error is WildoError_Backend {\n return (\n error !== null &&\n typeof error === 'object' &&\n 'type' in error &&\n 'statusCode' in error &&\n 'severity' in error &&\n 'customMessageReference' in error\n );\n}\n\n// =====================================================\n// WildoError — Frontend\n// =====================================================\n\nexport const WildoError_FrontendSchema = WildoErrorSchema.extend({\n userId: z.string().optional(),\n organizationId: z.string().optional(),\n customMessageReference: z.enum(ErrorCustomMessageReference),\n frontendActions: z.array(z.enum(ErrorActionFrontend)),\n redirectPolicy: z.enum(Error_Frontend_RedirectPolicy).optional(),\n\n showToUser: z.boolean().optional(),\n\n /**\n * When true, the GLOBAL error handler must NOT surface a user-facing toast or\n * modal for this error — the originating caller already owns the failure UX\n * (e.g. a resource form shows `NOTIFY_RESOURCE_ERROR` + inline field errors).\n * Derived from the per-request `silent` flag. Side-effects (auth-logout,\n * redirect, dedup, analytics) still run.\n *\n * MUST be a declared schema field: the frontend event bus Zod-parses\n * `ERROR_OCCURED` payloads and strips unknown keys, so an untyped\n * `(error as any).suppressUserDisplay` would be dropped before the handler\n * ever reads it.\n */\n suppressUserDisplay: z.boolean().optional(),\n\n /**\n * When true, the error must drive a logout through the AuthSession fast-path.\n * `GlobalErrorHandler` detects `triggerLogout` (independently of the error's\n * `type`) and calls `logout()` — guarded by `isAuthenticated()` so it never\n * logs out when no session is active — then strips the `DISCONNECT`\n * frontendAction from the delegated actions so the ErrorContext fallback does\n * not double-trigger a logout. Derived from the HTTP error-behavior matrix\n * (`HttpErrorBehavior.triggerLogout`, e.g. a 401 invalid session).\n *\n * Intentionally NOT additionally gated on `type === AUTHENTICATION`: the\n * error's `type` comes from the backend payload (`backendErrorType ||\n * behavior.errorType` in `buildWildoError`), so a 401 the backend typed as\n * something else would still carry `triggerLogout` from the status matrix —\n * an extra type gate would silently swallow that logout. Mirrors\n * `handleHttpError`'s `shouldLogout`, which is triggerLogout-only.\n *\n * MUST be a declared schema field — same reason as `suppressUserDisplay`\n * above: the frontend event bus Zod-parses `ERROR_OCCURED` payloads and\n * strips unknown keys, so an untyped `(error as any).triggerLogout` set by\n * `buildWildoError` would be dropped before `GlobalErrorHandler` ever reads\n * it, leaving the AuthSession logout fast-path permanently dead.\n */\n triggerLogout: z.boolean().optional(),\n\n /** Contextual error guidance from backend (Phase 1b) */\n userGuidance: ErrorUserGuidanceSchema.optional(),\n});\n\nexport type WildoError_Frontend = z.infer<typeof WildoError_FrontendSchema>;\n\n\n// =============================================================================\n// VALIDATION ERROR ENTRY — STRUCTURED i18n-READY ERROR FORMAT\n// =============================================================================\n\n/**\n * Field-validation issues the BACKEND raises, beyond the Zod issue codes a schema produces on its own.\n *\n * Each member is a key of the frontend's `errors_validation` catalog (`errors_validation.<code>.msg`), so the\n * words a person reads are the application's, in their language. The server sends the code and never the\n * sentence: RFC 9457 §3.1.4 says a consumer \"SHOULD NOT parse the 'detail' member for information;\n * extensions are more suitable\", and §3.2 puts machine-readable facts in extension members.\n * spec-cite: RFC 9457 (Problem Details for HTTP APIs) §3.1.4, §3.2.\n */\nexport enum FieldValidationIssueCode {\n /** A value already exists on a field declared `.isUnique()`. Raised at write time and by validate-field. */\n NOT_UNIQUE = 'not_unique',\n}\n\n/**\n * A field error the backend raises as a CODE.\n *\n * Validation errors reach a form as either:\n * - a plain string — a message a schema produced, shown as-is;\n * - a `ValidationErrorEntry` — a code the client renders from its own catalog.\n *\n * It carries no message on purpose: prose written here is English in every locale, which is what\n * `.claude/rules/display-text-comes-from-i18n.md` forbids and what #1180 removed.\n */\nexport const ValidationErrorEntry_Schema = z.object({\n /** The issue's code; the frontend resolves `errors_validation.<code>.msg`. */\n code: z.enum(FieldValidationIssueCode),\n /** Interpolation parameters for that catalog message. `NOT_UNIQUE` needs none. */\n params: z.record(z.string(), z.string()).optional(),\n});\n\nexport type ValidationErrorEntry = z.infer<typeof ValidationErrorEntry_Schema>;\n\nexport const VersionConflictDetailsSchema = z.object({\n currentVersion: z.number(),\n expectedVersion: z.number(),\n conflictingFields: z.array(z.string()),\n currentValues: z.record(z.string(), z.unknown()),\n submittedValues: z.record(z.string(), z.unknown()),\n});\n\nexport type VersionConflictDetails = z.infer<typeof VersionConflictDetailsSchema>;\n\n/**\n * SaaS Error Type Definition\n * Replaces the previous WildoError class\n */\n\n/**\n * Error Response Schema\n * Updated to include operationPath and validationErrors (FIX-P6-H1)\n */\nexport const ErrorResponseSchema = z.object({\n error: z.object({\n type: z.enum(ErrorType),\n severity: z.enum(ErrorSeverity),\n message: z.string(),\n customMessage: z.string(),\n customMessageReference: z.string().optional(),\n code: z.string().optional(),\n operationPath: z.string().optional(),\n /**\n * Request-correlation id (see `ExecutionContext.correlationId`) — a safe, non-PII support/trace id\n * the client can quote and that joins this response to the backend log lines + audit rows for the\n * same request. Present for any request-scoped error (the error's captured id, or the ambient\n * request-context frame at send time).\n */\n correlationId: z.string().optional(),\n details: z.object({\n versionConflict: VersionConflictDetailsSchema.optional(),\n }).catchall(z.any()).optional(),\n timestamp: z.string(),\n initiatorIds: ExecutionContext_InitiatorIdsSchema.optional().nullable(),\n /** Field-level validation errors. Values are either plain strings or structured i18n entries. */\n validationErrors: z.record(z.string(), z.union([z.string(), ValidationErrorEntry_Schema])).optional(),\n /** Contextual user guidance for error resolution (Phase 1b) */\n userGuidance: ErrorUserGuidanceSchema.optional(),\n })\n});\n\nexport type ErrorResponse = z.infer<typeof ErrorResponseSchema>;\n\n/**\n * A single validation error value: either a plain string or a structured entry.\n * Backend can return either format; frontend handles both transparently.\n */\nexport type ValidationErrorValue = string | ValidationErrorEntry;\n\n/**\n * Field-level validation errors map.\n * Keys are dot-notation field paths (e.g., \"email\", \"address.city\").\n * Values are either plain strings or structured i18n entries.\n */\nexport type ValidationErrors = Record<string, ValidationErrorValue>;\n\n// =============================================================================\n// VALIDATION ERROR RESPONSE SCHEMA\n// =============================================================================\n\n/**\n * Standardized validation error response format.\n * Used by both backend (400/409 responses) and frontend (error parsing).\n *\n * The `validationErrors` field maps field names to error values:\n * - Plain string: displayed as-is (legacy format)\n * - ValidationErrorEntry: resolved via i18n on frontend\n */\nexport const ValidationErrorResponse_Schema = z.object({\n /** HTTP status code (400 for validation, 409 for unique constraint) */\n code: z.number(),\n /** General error message */\n message: z.string(),\n /**\n * Field-level validation errors.\n * Field names can be dot-notation paths for nested fields.\n * Values are either plain strings or structured i18n entries.\n */\n validationErrors: z.record(z.string(), z.union([z.string(), ValidationErrorEntry_Schema])).optional(),\n});\n\nexport type ValidationErrorResponse = z.infer<typeof ValidationErrorResponse_Schema>;\n\n// =============================================================================\n// PARSED HTTP ERROR — TYPED FRONTEND ERROR REPRESENTATION\n// =============================================================================\n\n/**\n * Parsed HTTP error — the typed result of processing an HTTP error response.\n *\n * This is the frontend counterpart of WildoError_Backend. It provides typed\n * access to all error properties that the HTTP client interceptor extracts\n * from the backend's ErrorResponse format.\n *\n * Replaces the previous untyped `error as Record<string, unknown>` pattern.\n */\nexport interface ParsedHttpError {\n /** HTTP status code (e.g., 400, 401, 409, 500) */\n httpStatus: number;\n /** Error type from the backend error classification */\n errorType: ErrorType;\n /** Human-readable error message */\n message: string;\n /** Field-level validation errors (present for 400/409/422 responses) */\n validationErrors?: ValidationErrors;\n /** Additional error context/details from the backend */\n details?: Record<string, any>;\n /** Operation path that triggered the error */\n operationPath?: string;\n /** Structured user-facing guidance for error resolution */\n userGuidance?: ErrorUserGuidance;\n}\n\n// =============================================================================\n// VALIDATION ERROR EXTRACTION UTILITIES\n// =============================================================================\n\n/**\n * Check whether a validation error value is a coded entry rather than a plain message.\n *\n * There is deliberately NO shared \"resolve this to a display string\" helper: a coded entry carries no words,\n * and only the frontend — which holds the catalog and the person's language — can turn it into text. A helper\n * here could only have invented English (#1180).\n *\n * @param value - A validation error value\n * @returns True when the value is a coded `ValidationErrorEntry`\n */\nexport function isValidationErrorEntry(value: ValidationErrorValue): value is ValidationErrorEntry {\n return typeof value === 'object' && value !== null && 'code' in value;\n}\n\n/**\n * Extract validation errors from a raw error response payload.\n *\n * Handles multiple formats:\n * 1. Standard backend ErrorResponse: `{ error: { validationErrors: { ... } } }`\n * 2. Flat format (legacy): `{ validationErrors: { ... } }`\n * 3. Pre-parsed interceptor format: `error.validationErrors` on the error object\n *\n * @param payload - Raw error response payload (from axios response.data or error object)\n * @returns Extracted validation errors, or undefined if not found\n */\nexport function extractValidationErrors(payload: unknown): ValidationErrors | undefined {\n if (!payload || typeof payload !== 'object') return undefined;\n\n const obj = payload as Record<string, unknown>;\n\n // Path 1: Standard nested format { error: { validationErrors } }\n if (obj.error && typeof obj.error === 'object') {\n const nested = obj.error as Record<string, unknown>;\n if (nested.validationErrors && typeof nested.validationErrors === 'object' && !Array.isArray(nested.validationErrors)) {\n const ve = nested.validationErrors as Record<string, unknown>;\n if (Object.keys(ve).length > 0) {\n return ve as ValidationErrors;\n }\n }\n }\n\n // Path 2: Flat format { validationErrors }\n if (obj.validationErrors && typeof obj.validationErrors === 'object' && !Array.isArray(obj.validationErrors)) {\n const ve = obj.validationErrors as Record<string, unknown>;\n if (Object.keys(ve).length > 0) {\n return ve as ValidationErrors;\n }\n }\n\n return undefined;\n}\n\n// =============================================================================\n// FIELD VALIDATION — REQUEST/RESPONSE SCHEMAS\n// =============================================================================\n\n/**\n * Request schema for the validate-field endpoint.\n *\n * Used to pre-validate a single field value (e.g., uniqueness check on blur)\n * before form submission.\n */\nexport const ValidateFieldRequest_Schema = z.object({\n /** Field name to validate (must match a field in the resource schema) */\n fieldName: z.string(),\n /** The value to validate */\n value: z.unknown(),\n /** For UPDATE operations: exclude this resource ID from uniqueness check (self-exclusion) */\n excludeId: z.string().optional(),\n});\n\nexport type ValidateFieldRequest = z.infer<typeof ValidateFieldRequest_Schema>;\n\n/**\n * Response schema for the validate-field endpoint.\n */\nexport const ValidateFieldResponse_Schema = z.object({\n /** Whether the field value is valid */\n valid: z.boolean(),\n /**\n * The issue when `valid` is false. It carries a CODE, never a sentence: the words are the client's, from\n * `errors_validation.<code>.msg` (#1180).\n */\n error: z.object({\n /** Field name that failed validation */\n fieldName: z.string(),\n /** The issue's code, rendered by the client from its own validation catalog. */\n code: z.enum(FieldValidationIssueCode),\n /** Interpolation parameters for that catalog message. */\n params: z.record(z.string(), z.string()).optional(),\n }).optional(),\n});\n\nexport type ValidateFieldResponse = z.infer<typeof ValidateFieldResponse_Schema>;\n"]}
|
|
1
|
+
{"version":3,"file":"errors.shared.schemas.js","sourceRoot":"","sources":["../../../../src/errors/errors.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAiC,mCAAmC,EAAE,MAAM,6CAA6C,CAAC;AACjK,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+CAA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AQ,EAAE;CACjC,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,uCAAuC;IACvC,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB;;;OAGG;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,wCAAwC;QACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,gFAAgF;QAChF,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC;QACtC,yDAAyD;QACzD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KACpD,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { ExecutionContext_ExecutionType, ExecutionContext_InitiatorIds, ExecutionContext_InitiatorIdsSchema } from \"../runtime/execution-context.shared.schemas\";\nimport { ErrorCustomMessageReference } from \"./errors.custom-message-ref.shared.definitions\";\nimport { isWildoBackendErrorShape } from './caught-error-description.shared.utils';\nimport { NotificationNextStepType } from \"../notifications/notifications.shared.schemas\";\n\n/**\n * The coarse error category of every backend error. Import from\n * `@wildo-ai/saas-models`.\n *\n * The `ErrorType` you pass to `errorBuilder.buildError(type, …)` is the single\n * driver of the HTTP status code, the severity/logging level, and whether the\n * error's `context` is exposed to the client. Pick the type that matches the\n * real condition — never default everything to `INTERNAL`:\n *\n * | ErrorType | HTTP | Use for |\n * |----------------------|------|-----------------------------------------------------|\n * | `VALIDATION` | 400 | Bad/malformed input, failed cross-field rules |\n * | `AUTHENTICATION` | 401 | Missing/invalid session or credentials |\n * | `AUTHORIZATION` | 403 | Authenticated but not permitted |\n * | `NOT_FOUND` | 404 | Requested resource does not exist / not visible |\n * | `CONFLICT` | 409 | Uniqueness / version / state conflict |\n * | `RATE_LIMIT` | 429 | Too many requests |\n * | `BUSINESS_RULE` | 422 | Domain rule violated (well-formed but not allowed) |\n * | `FEATURE_NOT_AVAILABLE` / `FEATURE_LIMIT_EXCEEDED` / `INSUFFICIENT_CREDITS` | 403/402 | Plan/feature gating |\n * | `EXTERNAL_SERVICE` | 502 | A downstream provider/API failed |\n * | `CONFIGURATION` | 500 | Server misconfiguration |\n * | `INTERNAL` / `DATABASE` / `INFRASTRUCTURE` | 500 | Server-side faults (context is stripped from the client) |\n *\n * Only VALIDATION / CONFLICT / RATE_LIMIT expose `context` to the client; every\n * other type strips it (so `context` is log-only). The user-facing wording never\n * comes from `context` — it comes from the `customMessageReference` (see\n * `ErrorCustomMessageReference`), resolved to localized text by `tErrorMessage`.\n */\nexport enum ErrorType {\n/** @wildo_source:part:start saas.models.error-type facet:layer:shared facet:family:error */\n\n NETWORK = 'NETWORK',\n\n AUTHENTICATION = 'AUTHENTICATION',\n AUTHORIZATION = 'AUTHORIZATION',\n\n VALIDATION = 'VALIDATION',\n\n /** HTTP 413 — the request body exceeded a size limit (e.g. the OAuth mount's 32 KB cap or a global body\n * parser limit). A CLIENT input problem, classified separately from VALIDATION so the response carries the\n * precise 413 status framework-wide rather than a generic 400 (and never an INTERNAL 500). */\n PAYLOAD_TOO_LARGE = 'PAYLOAD_TOO_LARGE',\n\n NOT_FOUND = 'NOT_FOUND',\n CONFLICT = 'CONFLICT',\n\n RATE_LIMIT = 'RATE_LIMIT',\n\n INTERNAL = 'INTERNAL',\n DATABASE = 'DATABASE',\n EXTERNAL_SERVICE = 'EXTERNAL_SERVICE',\n\n UNKNOWN = 'UNKNOWN',\n UNCAUGHT_EXCEPTION = 'UNCAUGHT_EXCEPTION',\n UNHANDLED_REJECTION = 'UNHANDLED_REJECTION',\n\n BUSINESS_RULE = 'BUSINESS_RULE',\n INFRASTRUCTURE = 'INFRASTRUCTURE',\n CONFIGURATION = 'CONFIGURATION',\n\n // Feature gating errors\n FEATURE_NOT_AVAILABLE = 'FEATURE_NOT_AVAILABLE',\n FEATURE_LIMIT_EXCEEDED = 'FEATURE_LIMIT_EXCEEDED',\n INSUFFICIENT_CREDITS = 'INSUFFICIENT_CREDITS',\n/** @wildo_source:part:end saas.models.error-type */\n}\n\n/**\n * Error severity levels\n */\n\nexport enum ErrorSeverity {\n LOW = 'low',\n MEDIUM = 'medium',\n HIGH = 'high',\n CRITICAL = 'critical',\n ALERT = 'alert',\n EMERGENCY = 'emergency',\n}\n\n/**\n * Frontend-specific error actions\n */\nexport enum ErrorActionFrontend {\n NOTIFY = 'NOTIFY',\n REDIRECT = 'REDIRECT',\n RETRY = 'RETRY',\n REFRESH_TOKEN = 'REFRESH_TOKEN',\n DISCONNECT = 'DISCONNECT',\n SHOW_MODAL = 'SHOW_MODAL',\n SHOW_TOAST = 'SHOW_TOAST'\n}\n\n/**\n * Backend-specific error actions\n */\nexport enum ErrorActionBackend {\n LOG = 'LOG',\n ALERT = 'ALERT',\n RECORD_METRICS = 'RECORD_METRICS',\n TRACE = 'TRACE',\n CIRCUIT_BREAK = 'CIRCUIT_BREAK',\n GRACEFUL_DEGRADATION = 'GRACEFUL_DEGRADATION'\n}\n\nexport enum Error_Frontend_RedirectPolicy {\n LOGIN = 'login',\n HOME = 'home',\n HISTORY_BACK = 'history_back',\n // NOT_FOUND = 'not_found',\n // UNAUTHORIZED = 'unauthorized',\n // ERROR_PAGE = 'error_page',\n\n}\n\nexport enum ErrorHandling_Strategy {\n STOP = \"stop\",\n SKIP = \"skip\",\n RETRY = \"retry\",\n FALLBACK = \"fallback\",\n}\n\nexport enum RetryPolicy_BackoffType {\n FIXED = \"fixed\",\n EXPONENTIAL = \"exponential\",\n LINEAR = \"linear\",\n}\n\n\nexport type WildoError_Definition = {\n type: ErrorType;\n severity: ErrorSeverity;\n description: string;\n defaultCustomMessageReference: ErrorCustomMessageReference;\n\n errorHandlingStrategy?: ErrorHandling_Strategy;\n retryPolicy?: RetryPolicy_BackoffType;\n maxRetries?: number;\n initialDelay?: number;\n baseDelay?: number;\n\n // Frontend-specific config\n frontendActions: ErrorActionFrontend[];\n redirectPolicy?: Error_Frontend_RedirectPolicy;\n showToUser?: boolean;\n\n // Backend-specific config\n statusCode: number;\n backendActions: ErrorActionBackend[];\n\n}\n\nexport type WildoError_Frontend_Definition = Omit<\n WildoError_Definition,\n 'statusCode' | 'backendActions'\n>;\n\nexport type WildoError_Backend_Definition = Omit<\n WildoError_Definition,\n 'frontendActions' | 'redirectPolicy' | 'showToUser'\n >;\n\n\n\nexport const WildoErrorSchema = z.object({\n type: z.enum(ErrorType),\n severity: z.enum(ErrorSeverity),\n operationPathKey: z.string().optional(),\n timestamp: z.date(),\n\n /**\n * Free-form context bag attached to the error.\n *\n * The `message` slot is modelled explicitly (L1-6, post-Phase-7\n * close-out) because consumers across the codebase reach for it\n * via `error.context.message` as a strongly-typed human-readable\n * detail string (notably the data-seeding `manual-seed-engine`\n * extracts it via `isWildoBackendError → context.message` to\n * surface scope-mismatch and other CONFIGURATION errors back into\n * the `DataSeedRun.failureReport`). Modeling it here makes the\n * contract typed at the producer side instead of relying on\n * `z.record(string, any)` to let any shape through.\n *\n * Other fields remain free-form (`catchall(z.any())`) so existing\n * callers that attach domain-specific keys (e.g. `envKey`,\n * `headerKey`, `seedKey`) continue to work without a schema bump.\n */\n context: z.object({\n message: z.string().optional(),\n }).catchall(z.any()).optional(),\n ipAddress: z.string().optional(),\n\n // Resilience and retry policy\n errorHandlingStrategy: z.enum(ErrorHandling_Strategy).optional(),\n retryPolicy: z.enum(RetryPolicy_BackoffType).optional(),\n maxRetries: z.number().optional(),\n initialDelay: z.number().optional(),\n baseDelay: z.number().optional(),\n retryCount: z.number().optional(),\n lastRetryTime: z.date().optional(),\n});\n\nexport type WildoError = z.infer<typeof WildoErrorSchema>;\n\n// =====================================================\n// Error User Guidance — contextual error resolution hints (Phase 1b)\n// =====================================================\n\n/**\n * Structured guidance attached to backend errors.\n * Tells the frontend what went wrong, how to fix it, and what to do next.\n *\n * Populated by `ErrorBuilderBackendService.buildErrorWithGuidance()` for\n * error types like CONFIGURATION, FEATURE_NOT_AVAILABLE, RATE_LIMIT, etc.\n *\n * NOTE: Defined before WildoError_BackendSchema because it's referenced there.\n */\nexport const ErrorUserGuidanceSchema = z.object({\n /**\n * i18n lookup key for this guidance block.\n * Resolves labels under `errors_guidance.{guidanceKey}.{field}`.\n * If not set, falls back to the error's `customMessageReference`.\n */\n guidanceKey: z.string().optional(),\n /** Human-readable explanation of what went wrong */\n explanation: z.string().optional(),\n /** How to resolve the issue */\n resolution: z.string().optional(),\n /**\n * Values the localized guidance label interpolates (`{name}` placeholders, the one label syntax).\n *\n * A localized label outranks the raw `explanation` / `resolution` strings, so without params a label\n * could only ever say something STATIC — and a refusal whose useful part is dynamic (the companion's\n * secrets section relaying the CLI's own sentence, #1637) had to choose between a translated label\n * that hides the reason and an untranslated raw string. Params let the label carry the sentence and the\n * dynamic part both. Values are shown to the user: never put a secret or an internal identifier here.\n */\n params: z.record(z.string(), z.union([z.string(), z.number()])).optional(),\n /** Steps already completed before the error occurred */\n completedSteps: z.array(z.string()).optional(),\n /** Suggested next action (operation or URL) */\n nextAction: z.object({\n label: z.string(),\n /** Operation path or URL */\n ref: z.string(),\n type: z.enum(NotificationNextStepType).default(NotificationNextStepType.OPERATION),\n }).optional(),\n /** For rate limits: seconds until retry is available */\n retryAfterSeconds: z.number().optional(),\n /** For configuration errors: what configuration elements are missing */\n missingConfiguration: z.array(z.string()).optional(),\n});\n\nexport type ErrorUserGuidance = z.infer<typeof ErrorUserGuidanceSchema>;\n\n// =====================================================\n// WildoError — Backend (extends base with backend-specific fields)\n// =====================================================\n\nexport const WildoError_BackendSchema = WildoErrorSchema.extend({\n backendActions: z.array(z.enum(ErrorActionBackend)),\n customMessageReference: z.enum(ErrorCustomMessageReference),\n statusCode: z.number(),\n stack: z.string().optional(),\n /** The request-correlation id (see `ExecutionContext.correlationId`). Populated from the EC when one was threaded, else from the ambient request-context ALS frame — that fallback is what attributes the many `buildError` call sites that pass no EC. */\n correlationId: z.string().optional(),\n initiatorIds: ExecutionContext_InitiatorIdsSchema.optional().nullable(),\n executionType: z.enum(ExecutionContext_ExecutionType).optional(),\n /** Contextual user guidance for error resolution (Phase 1b) */\n userGuidance: ErrorUserGuidanceSchema.optional(),\n});\n\nexport type WildoError_Backend = z.infer<typeof WildoError_BackendSchema>;\n\n/**\n * Type guard for WildoError_Backend — safely identifies engine-thrown errors in catch blocks.\n *\n * Replaces the unsafe `(error as any).type` pattern. Checks for the 4 structural\n * properties that distinguish WildoError_Backend from arbitrary Error objects — the check itself\n * lives in {@link isWildoBackendErrorShape}, an import-free atom the bundle-safe describers share.\n */\nexport function isWildoBackendError(error: unknown): error is WildoError_Backend {\n return isWildoBackendErrorShape(error);\n}\n\n// =====================================================\n// WildoError — Frontend\n// =====================================================\n\nexport const WildoError_FrontendSchema = WildoErrorSchema.extend({\n userId: z.string().optional(),\n organizationId: z.string().optional(),\n customMessageReference: z.enum(ErrorCustomMessageReference),\n frontendActions: z.array(z.enum(ErrorActionFrontend)),\n redirectPolicy: z.enum(Error_Frontend_RedirectPolicy).optional(),\n\n showToUser: z.boolean().optional(),\n\n /**\n * When true, the GLOBAL error handler must NOT surface a user-facing toast or\n * modal for this error — the originating caller already owns the failure UX\n * (e.g. a resource form shows `NOTIFY_RESOURCE_ERROR` + inline field errors).\n * Derived from the per-request `silent` flag. Side-effects (auth-logout,\n * redirect, dedup, analytics) still run.\n *\n * MUST be a declared schema field: the frontend event bus Zod-parses\n * `ERROR_OCCURED` payloads and strips unknown keys, so an untyped\n * `(error as any).suppressUserDisplay` would be dropped before the handler\n * ever reads it.\n */\n suppressUserDisplay: z.boolean().optional(),\n\n /**\n * When true, the error must drive a logout through the AuthSession fast-path.\n * `GlobalErrorHandler` detects `triggerLogout` (independently of the error's\n * `type`) and calls `logout()` — guarded by `isAuthenticated()` so it never\n * logs out when no session is active — then strips the `DISCONNECT`\n * frontendAction from the delegated actions so the ErrorContext fallback does\n * not double-trigger a logout. Derived from the HTTP error-behavior matrix\n * (`HttpErrorBehavior.triggerLogout`, e.g. a 401 invalid session).\n *\n * Intentionally NOT additionally gated on `type === AUTHENTICATION`: the\n * error's `type` comes from the backend payload (`backendErrorType ||\n * behavior.errorType` in `buildWildoError`), so a 401 the backend typed as\n * something else would still carry `triggerLogout` from the status matrix —\n * an extra type gate would silently swallow that logout. Mirrors\n * `handleHttpError`'s `shouldLogout`, which is triggerLogout-only.\n *\n * MUST be a declared schema field — same reason as `suppressUserDisplay`\n * above: the frontend event bus Zod-parses `ERROR_OCCURED` payloads and\n * strips unknown keys, so an untyped `(error as any).triggerLogout` set by\n * `buildWildoError` would be dropped before `GlobalErrorHandler` ever reads\n * it, leaving the AuthSession logout fast-path permanently dead.\n */\n triggerLogout: z.boolean().optional(),\n\n /** Contextual error guidance from backend (Phase 1b) */\n userGuidance: ErrorUserGuidanceSchema.optional(),\n});\n\nexport type WildoError_Frontend = z.infer<typeof WildoError_FrontendSchema>;\n\n\n// =============================================================================\n// VALIDATION ERROR ENTRY — STRUCTURED i18n-READY ERROR FORMAT\n// =============================================================================\n\n/**\n * Field-validation issues the BACKEND raises, beyond the Zod issue codes a schema produces on its own.\n *\n * Each member is a key of the frontend's `errors_validation` catalog (`errors_validation.<code>.msg`), so the\n * words a person reads are the application's, in their language. The server sends the code and never the\n * sentence: RFC 9457 §3.1.4 says a consumer \"SHOULD NOT parse the 'detail' member for information;\n * extensions are more suitable\", and §3.2 puts machine-readable facts in extension members.\n * spec-cite: RFC 9457 (Problem Details for HTTP APIs) §3.1.4, §3.2.\n */\nexport enum FieldValidationIssueCode {\n /** A value already exists on a field declared `.isUnique()`. Raised at write time and by validate-field. */\n NOT_UNIQUE = 'not_unique',\n}\n\n/**\n * A field error the backend raises as a CODE.\n *\n * Validation errors reach a form as either:\n * - a plain string — a message a schema produced, shown as-is;\n * - a `ValidationErrorEntry` — a code the client renders from its own catalog.\n *\n * It carries no message on purpose: prose written here is English in every locale, which is what\n * `.claude/rules/display-text-comes-from-i18n.md` forbids and what #1180 removed.\n */\nexport const ValidationErrorEntry_Schema = z.object({\n /** The issue's code; the frontend resolves `errors_validation.<code>.msg`. */\n code: z.enum(FieldValidationIssueCode).describe(\"A stable code for the field's problem, to branch on or to look up in your own message catalog. `not_unique`: another record already has this value in a field that must be unique.\"),\n /** Interpolation parameters for that catalog message. `NOT_UNIQUE` needs none. */\n params: z.record(z.string(), z.string()).optional().describe(\"Values to fill into the message for that code. Absent when the code needs none.\"),\n});\n\nexport type ValidationErrorEntry = z.infer<typeof ValidationErrorEntry_Schema>;\n\nexport const VersionConflictDetailsSchema = z.object({\n currentVersion: z.number(),\n expectedVersion: z.number(),\n conflictingFields: z.array(z.string()),\n currentValues: z.record(z.string(), z.unknown()),\n submittedValues: z.record(z.string(), z.unknown()),\n});\n\nexport type VersionConflictDetails = z.infer<typeof VersionConflictDetailsSchema>;\n\n/**\n * SaaS Error Type Definition\n * Replaces the previous WildoError class\n */\n\n/**\n * Error Response Schema\n * Updated to include operationPath and validationErrors (FIX-P6-H1)\n */\nexport const ErrorResponseSchema = z.object({\n error: z.object({\n type: z.enum(ErrorType),\n severity: z.enum(ErrorSeverity),\n message: z.string(),\n customMessage: z.string(),\n customMessageReference: z.string().optional(),\n code: z.string().optional(),\n operationPath: z.string().optional(),\n /**\n * Request-correlation id (see `ExecutionContext.correlationId`) — a safe, non-PII support/trace id\n * the client can quote and that joins this response to the backend log lines + audit rows for the\n * same request. Present for any request-scoped error (the error's captured id, or the ambient\n * request-context frame at send time).\n */\n correlationId: z.string().optional(),\n details: z.object({\n versionConflict: VersionConflictDetailsSchema.optional(),\n }).catchall(z.any()).optional(),\n timestamp: z.string(),\n initiatorIds: ExecutionContext_InitiatorIdsSchema.optional().nullable(),\n /** Field-level validation errors. Values are either plain strings or structured i18n entries. */\n validationErrors: z.record(z.string(), z.union([z.string(), ValidationErrorEntry_Schema])).optional(),\n /** Contextual user guidance for error resolution (Phase 1b) */\n userGuidance: ErrorUserGuidanceSchema.optional(),\n })\n});\n\nexport type ErrorResponse = z.infer<typeof ErrorResponseSchema>;\n\n/**\n * A single validation error value: either a plain string or a structured entry.\n * Backend can return either format; frontend handles both transparently.\n */\nexport type ValidationErrorValue = string | ValidationErrorEntry;\n\n/**\n * Field-level validation errors map.\n * Keys are dot-notation field paths (e.g., \"email\", \"address.city\").\n * Values are either plain strings or structured i18n entries.\n */\nexport type ValidationErrors = Record<string, ValidationErrorValue>;\n\n// =============================================================================\n// VALIDATION ERROR RESPONSE SCHEMA\n// =============================================================================\n\n/**\n * Standardized validation error response format.\n * Used by both backend (400/409 responses) and frontend (error parsing).\n *\n * The `validationErrors` field maps field names to error values:\n * - Plain string: displayed as-is (legacy format)\n * - ValidationErrorEntry: resolved via i18n on frontend\n */\nexport const ValidationErrorResponse_Schema = z.object({\n /** HTTP status code (400 for validation, 409 for unique constraint) */\n code: z.number(),\n /** General error message */\n message: z.string(),\n /**\n * Field-level validation errors.\n * Field names can be dot-notation paths for nested fields.\n * Values are either plain strings or structured i18n entries.\n */\n validationErrors: z.record(z.string(), z.union([z.string(), ValidationErrorEntry_Schema])).optional(),\n});\n\nexport type ValidationErrorResponse = z.infer<typeof ValidationErrorResponse_Schema>;\n\n// =============================================================================\n// PARSED HTTP ERROR — TYPED FRONTEND ERROR REPRESENTATION\n// =============================================================================\n\n/**\n * Parsed HTTP error — the typed result of processing an HTTP error response.\n *\n * This is the frontend counterpart of WildoError_Backend. It provides typed\n * access to all error properties that the HTTP client interceptor extracts\n * from the backend's ErrorResponse format.\n *\n * Replaces the previous untyped `error as Record<string, unknown>` pattern.\n */\nexport interface ParsedHttpError {\n /** HTTP status code (e.g., 400, 401, 409, 500) */\n httpStatus: number;\n /** Error type from the backend error classification */\n errorType: ErrorType;\n /** Human-readable error message */\n message: string;\n /** Field-level validation errors (present for 400/409/422 responses) */\n validationErrors?: ValidationErrors;\n /** Additional error context/details from the backend */\n details?: Record<string, any>;\n /** Operation path that triggered the error */\n operationPath?: string;\n /** Structured user-facing guidance for error resolution */\n userGuidance?: ErrorUserGuidance;\n}\n\n// =============================================================================\n// VALIDATION ERROR EXTRACTION UTILITIES\n// =============================================================================\n\n/**\n * Check whether a validation error value is a coded entry rather than a plain message.\n *\n * There is deliberately NO shared \"resolve this to a display string\" helper: a coded entry carries no words,\n * and only the frontend — which holds the catalog and the person's language — can turn it into text. A helper\n * here could only have invented English (#1180).\n *\n * @param value - A validation error value\n * @returns True when the value is a coded `ValidationErrorEntry`\n */\nexport function isValidationErrorEntry(value: ValidationErrorValue): value is ValidationErrorEntry {\n return typeof value === 'object' && value !== null && 'code' in value;\n}\n\n/**\n * Extract validation errors from a raw error response payload.\n *\n * Handles multiple formats:\n * 1. Standard backend ErrorResponse: `{ error: { validationErrors: { ... } } }`\n * 2. Flat format (legacy): `{ validationErrors: { ... } }`\n * 3. Pre-parsed interceptor format: `error.validationErrors` on the error object\n *\n * @param payload - Raw error response payload (from axios response.data or error object)\n * @returns Extracted validation errors, or undefined if not found\n */\nexport function extractValidationErrors(payload: unknown): ValidationErrors | undefined {\n if (!payload || typeof payload !== 'object') return undefined;\n\n const obj = payload as Record<string, unknown>;\n\n // Path 1: Standard nested format { error: { validationErrors } }\n if (obj.error && typeof obj.error === 'object') {\n const nested = obj.error as Record<string, unknown>;\n if (nested.validationErrors && typeof nested.validationErrors === 'object' && !Array.isArray(nested.validationErrors)) {\n const ve = nested.validationErrors as Record<string, unknown>;\n if (Object.keys(ve).length > 0) {\n return ve as ValidationErrors;\n }\n }\n }\n\n // Path 2: Flat format { validationErrors }\n if (obj.validationErrors && typeof obj.validationErrors === 'object' && !Array.isArray(obj.validationErrors)) {\n const ve = obj.validationErrors as Record<string, unknown>;\n if (Object.keys(ve).length > 0) {\n return ve as ValidationErrors;\n }\n }\n\n return undefined;\n}\n\n// =============================================================================\n// FIELD VALIDATION — REQUEST/RESPONSE SCHEMAS\n// =============================================================================\n\n/**\n * Request schema for the validate-field endpoint.\n *\n * Used to pre-validate a single field value (e.g., uniqueness check on blur)\n * before form submission.\n */\nexport const ValidateFieldRequest_Schema = z.object({\n /** Field name to validate (must match a field in the resource schema) */\n fieldName: z.string(),\n /** The value to validate */\n value: z.unknown(),\n /** For UPDATE operations: exclude this resource ID from uniqueness check (self-exclusion) */\n excludeId: z.string().optional(),\n});\n\nexport type ValidateFieldRequest = z.infer<typeof ValidateFieldRequest_Schema>;\n\n/**\n * Response schema for the validate-field endpoint.\n */\nexport const ValidateFieldResponse_Schema = z.object({\n /** Whether the field value is valid */\n valid: z.boolean(),\n /**\n * The issue when `valid` is false. It carries a CODE, never a sentence: the words are the client's, from\n * `errors_validation.<code>.msg` (#1180).\n */\n error: z.object({\n /** Field name that failed validation */\n fieldName: z.string(),\n /** The issue's code, rendered by the client from its own validation catalog. */\n code: z.enum(FieldValidationIssueCode),\n /** Interpolation parameters for that catalog message. */\n params: z.record(z.string(), z.string()).optional(),\n }).optional(),\n});\n\nexport type ValidateFieldResponse = z.infer<typeof ValidateFieldResponse_Schema>;\n"]}
|
|
@@ -12,28 +12,4 @@ export declare function getErrorStatusCode(errorType: ErrorType): number;
|
|
|
12
12
|
* Get error severity for error type
|
|
13
13
|
*/
|
|
14
14
|
export declare function getErrorSeverity(errorType: ErrorType): ErrorSeverity;
|
|
15
|
-
/**
|
|
16
|
-
* A caught value as ONE readable line, for a destination whose contract is genuinely `string`: an
|
|
17
|
-
* error message, a persisted terminal diagnostic, a DLQ record, a thrown `Error`'s text.
|
|
18
|
-
*
|
|
19
|
-
* It exists because the obvious inline form — take `.message` when the value is an `Error`, else
|
|
20
|
-
* `String(...)` it — is wrong for the engine's own error type: a {@link WildoError_Backend} is a plain
|
|
21
|
-
* object, NOT an `Error`, so it takes the `String(...)` branch and every structured failure reads as the literal
|
|
22
|
-
* `'[object Object]'` — unreadable, and identical for every distinct fault. `check:inline-error-stringify`
|
|
23
|
-
* holds that form shrink-only (#1518).
|
|
24
|
-
*
|
|
25
|
-
* It lives HERE, beside {@link isWildoBackendError}, because this is the lowest layer every package
|
|
26
|
-
* can import: the frontend, the specifications, the test lanes and the backend alike. The backend
|
|
27
|
-
* library's `describeCaughtError` delegates to it, so there is one implementation.
|
|
28
|
-
*
|
|
29
|
-
* For a `WildoError_Backend`: the human `context.message` when present, else the stable
|
|
30
|
-
* `customMessageReference` code. For LOGGING, prefer a structured projection over this string.
|
|
31
|
-
*/
|
|
32
|
-
export declare function describeCaughtError(error: unknown): string;
|
|
33
|
-
/**
|
|
34
|
-
* `"<kind>: <message>"` for ANY caught value — {@link describeCaughtError} for a destination that also
|
|
35
|
-
* needs WHAT KIND of thing failed: a failure digest or dedup key, a persisted terminal diagnostic, a
|
|
36
|
-
* classifier. A `WildoError_Backend` has no `name`; its kind is `type/customMessageReference`.
|
|
37
|
-
*/
|
|
38
|
-
export declare function describeCaughtErrorWithKind(error: unknown): string;
|
|
39
15
|
//# sourceMappingURL=errors.shared.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.shared.utils.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.shared.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"errors.shared.utils.d.ts","sourceRoot":"","sources":["../../../../src/errors/errors.shared.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAInE;;;GAGG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAG7E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE/D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa,CAEpE"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { isWildoBackendError } from './errors.shared.schemas.js';
|
|
2
1
|
import { ERROR_DEFINITIONS } from './errors.shared.definitions.js';
|
|
3
2
|
import { ErrorCustomMessageReference } from './errors.custom-message-ref.shared.definitions.js';
|
|
4
|
-
import { describeNonErrorValue, describeThrownValue } from './thrown-value-description.shared.utils.js';
|
|
5
3
|
/**
|
|
6
4
|
* Check if an error is the "app configuration not initialized" error.
|
|
7
5
|
* Use this instead of string-matching on error messages.
|
|
@@ -22,41 +20,4 @@ export function getErrorStatusCode(errorType) {
|
|
|
22
20
|
export function getErrorSeverity(errorType) {
|
|
23
21
|
return ERROR_DEFINITIONS[errorType].severity;
|
|
24
22
|
}
|
|
25
|
-
/**
|
|
26
|
-
* A caught value as ONE readable line, for a destination whose contract is genuinely `string`: an
|
|
27
|
-
* error message, a persisted terminal diagnostic, a DLQ record, a thrown `Error`'s text.
|
|
28
|
-
*
|
|
29
|
-
* It exists because the obvious inline form — take `.message` when the value is an `Error`, else
|
|
30
|
-
* `String(...)` it — is wrong for the engine's own error type: a {@link WildoError_Backend} is a plain
|
|
31
|
-
* object, NOT an `Error`, so it takes the `String(...)` branch and every structured failure reads as the literal
|
|
32
|
-
* `'[object Object]'` — unreadable, and identical for every distinct fault. `check:inline-error-stringify`
|
|
33
|
-
* holds that form shrink-only (#1518).
|
|
34
|
-
*
|
|
35
|
-
* It lives HERE, beside {@link isWildoBackendError}, because this is the lowest layer every package
|
|
36
|
-
* can import: the frontend, the specifications, the test lanes and the backend alike. The backend
|
|
37
|
-
* library's `describeCaughtError` delegates to it, so there is one implementation.
|
|
38
|
-
*
|
|
39
|
-
* For a `WildoError_Backend`: the human `context.message` when present, else the stable
|
|
40
|
-
* `customMessageReference` code. For LOGGING, prefer a structured projection over this string.
|
|
41
|
-
*/
|
|
42
|
-
export function describeCaughtError(error) {
|
|
43
|
-
if (isWildoBackendError(error)) {
|
|
44
|
-
const detail = error.context?.message;
|
|
45
|
-
return typeof detail === 'string' && detail.length > 0
|
|
46
|
-
? detail
|
|
47
|
-
: String(error.customMessageReference);
|
|
48
|
-
}
|
|
49
|
-
return describeThrownValue(error);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* `"<kind>: <message>"` for ANY caught value — {@link describeCaughtError} for a destination that also
|
|
53
|
-
* needs WHAT KIND of thing failed: a failure digest or dedup key, a persisted terminal diagnostic, a
|
|
54
|
-
* classifier. A `WildoError_Backend` has no `name`; its kind is `type/customMessageReference`.
|
|
55
|
-
*/
|
|
56
|
-
export function describeCaughtErrorWithKind(error) {
|
|
57
|
-
if (isWildoBackendError(error)) {
|
|
58
|
-
return `${error.type}/${error.customMessageReference}: ${describeCaughtError(error)}`;
|
|
59
|
-
}
|
|
60
|
-
return error instanceof Error ? `${error.name}: ${error.message}` : describeNonErrorValue(error);
|
|
61
|
-
}
|
|
62
23
|
//# sourceMappingURL=errors.shared.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.shared.utils.js","sourceRoot":"","sources":["../../../../src/errors/errors.shared.utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.shared.utils.js","sourceRoot":"","sources":["../../../../src/errors/errors.shared.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAE7F;;;GAGG;AACH,MAAM,UAAU,qCAAqC,CAAC,KAAc;IAClE,MAAM,GAAG,GAAG,KAA+D,CAAC;IAC5E,OAAO,GAAG,EAAE,sBAAsB,KAAK,2BAA2B,CAAC,iCAAiC,CAAC;AACvG,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAoB;IACrD,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAoB;IACnD,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;AAC/C,CAAC","sourcesContent":["import { ErrorType, ErrorSeverity } from './errors.shared.schemas';\nimport { ERROR_DEFINITIONS } from './errors.shared.definitions';\nimport { ErrorCustomMessageReference } from './errors.custom-message-ref.shared.definitions';\n\n/**\n * Check if an error is the \"app configuration not initialized\" error.\n * Use this instead of string-matching on error messages.\n */\nexport function isAppConfigurationNotInitializedError(error: unknown): boolean {\n const err = error as { customMessageReference?: string } | null | undefined;\n return err?.customMessageReference === ErrorCustomMessageReference.APP_CONFIGURATION_NOT_INITIALIZED;\n}\n\n/**\n * Get HTTP status code for error type\n */\nexport function getErrorStatusCode(errorType: ErrorType): number {\n return ERROR_DEFINITIONS[errorType].statusCode;\n}\n\n/**\n * Get error severity for error type\n */\nexport function getErrorSeverity(errorType: ErrorType): ErrorSeverity {\n return ERROR_DEFINITIONS[errorType].severity;\n}\n"]}
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
* engine's own error type, and therefore needs no import at all.
|
|
4
4
|
*
|
|
5
5
|
* Split out (2026-09-24) so a BROWSER-bound package can describe a caught value without importing the
|
|
6
|
-
* root of `@wildo-ai/saas-models`: `
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* still one implementation of the rendering.
|
|
6
|
+
* root of `@wildo-ai/saas-models`: a bundle-isolated package (`saas-website`) may reach this package only
|
|
7
|
+
* through `@wildo-ai/saas-models/public-runtime`. It is re-exported there, and `describeCaughtError`
|
|
8
|
+
* (in the import-free `caught-error-description.shared.utils`, #1591 — also on that seam) delegates to
|
|
9
|
+
* it for every value that is not a `WildoError_Backend`, so there is one implementation of the rendering.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Prefer `describeCaughtError`, which is equally light: a value that IS a `WildoError_Backend` reads here
|
|
12
|
+
* as its identifying fields rather than its human message.
|
|
14
13
|
*/
|
|
15
14
|
export declare function describeThrownValue(error: unknown): string;
|
|
16
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thrown-value-description.shared.utils.d.ts","sourceRoot":"","sources":["../../../../src/errors/thrown-value-description.shared.utils.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"thrown-value-description.shared.utils.d.ts","sourceRoot":"","sources":["../../../../src/errors/thrown-value-description.shared.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE1D;AAmBD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAoB5D"}
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
* engine's own error type, and therefore needs no import at all.
|
|
4
4
|
*
|
|
5
5
|
* Split out (2026-09-24) so a BROWSER-bound package can describe a caught value without importing the
|
|
6
|
-
* root of `@wildo-ai/saas-models`: `
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* still one implementation of the rendering.
|
|
6
|
+
* root of `@wildo-ai/saas-models`: a bundle-isolated package (`saas-website`) may reach this package only
|
|
7
|
+
* through `@wildo-ai/saas-models/public-runtime`. It is re-exported there, and `describeCaughtError`
|
|
8
|
+
* (in the import-free `caught-error-description.shared.utils`, #1591 — also on that seam) delegates to
|
|
9
|
+
* it for every value that is not a `WildoError_Backend`, so there is one implementation of the rendering.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Prefer `describeCaughtError`, which is equally light: a value that IS a `WildoError_Backend` reads here
|
|
12
|
+
* as its identifying fields rather than its human message.
|
|
14
13
|
*/
|
|
15
14
|
export function describeThrownValue(error) {
|
|
16
15
|
return error instanceof Error ? error.message : describeNonErrorValue(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thrown-value-description.shared.utils.js","sourceRoot":"","sources":["../../../../src/errors/thrown-value-description.shared.utils.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"thrown-value-description.shared.utils.js","sourceRoot":"","sources":["../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K,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IACzE,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAE,WAAiC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1F,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;QAAE,KAAK,CAAC,IAAI,CAAC,WAAW,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACxE,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IAC5C,OAAO,WAAW,CAAC,MAAM,GAAG,2BAA2B;QACrD,CAAC,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,2BAA2B,CAAC,eAAe;QACrE,CAAC,CAAC,WAAW,CAAC;AAClB,CAAC","sourcesContent":["/**\n * A caught value as ONE readable line — the part of `describeCaughtError` that knows nothing about the\n * engine's own error type, and therefore needs no import at all.\n *\n * Split out (2026-09-24) so a BROWSER-bound package can describe a caught value without importing the\n * root of `@wildo-ai/saas-models`: a bundle-isolated package (`saas-website`) may reach this package only\n * through `@wildo-ai/saas-models/public-runtime`. It is re-exported there, and `describeCaughtError`\n * (in the import-free `caught-error-description.shared.utils`, #1591 — also on that seam) delegates to\n * it for every value that is not a `WildoError_Backend`, so there is one implementation of the rendering.\n *\n * Prefer `describeCaughtError`, which is equally light: a value that IS a `WildoError_Backend` reads here\n * as its identifying fields rather than its human message.\n */\nexport function describeThrownValue(error: unknown): string {\n return error instanceof Error ? error.message : describeNonErrorValue(error);\n}\n\n/**\n * The fields of a thrown plain object that IDENTIFY the fault, rendered with their values — in this\n * order. Everything else on the object is named by KEY only.\n *\n * The split is the logging rule, stated once: a diagnostic carries what failed, never the data it\n * failed on. A provider's structured-generation error is a plain object whose other fields are the\n * model's generated `text`, the provider `response` body and the rejected `cause.value`; rendering the\n * whole object put all three into error logs and into trace telemetry every sink emits (measured\n * 2026-09-24 on `agents.backend.service.structured-output-limit`, five pins red). An engine or\n * application fault object names itself through these keys — `{ kind, reason }`, `{ code, message }` —\n * so its diagnostic survives intact.\n */\nconst IDENTIFYING_FIELDS = ['name', 'code', 'kind', 'type', 'status', 'statusCode', 'reason', 'message'] as const;\n\n/** The longest diagnostic this renders; a longer one is cut and says so. */\nconst NON_ERROR_DESCRIPTION_LIMIT = 400;\n\n/**\n * Render a thrown value that is neither an `Error` nor a {@link WildoError_Backend}.\n *\n * `String(value)` renders EVERY plain object as `'[object Object]'`, so distinct faults become one\n * string. Measured 2026-09-23 (#1273): a playbook failed inside the journey's choreography and the run\n * record persisted `'[object Object]'` as its only diagnostic. So an object is rendered by its\n * {@link IDENTIFYING_FIELDS} with their scalar values, and by the NAMES of its other fields — never\n * their values, which is where the data a fault carries lives (see that constant). A cyclic object\n * needs no serialization this way, and the result is bounded.\n */\nexport function describeNonErrorValue(value: unknown): string {\n if (typeof value !== 'object' || value === null) return String(value);\n let keys: string[];\n try {\n keys = Object.keys(value);\n } catch {\n return String(value);\n }\n const record = value as Record<string, unknown>;\n const identifying = IDENTIFYING_FIELDS.filter((key) => {\n const field = record[key];\n return (typeof field === 'string' && field.length > 0) || typeof field === 'number' || typeof field === 'boolean';\n });\n const parts = identifying.map((key) => `${key}: ${String(record[key])}`);\n const otherKeys = keys.filter((key) => !(identifying as readonly string[]).includes(key));\n if (otherKeys.length > 0) parts.push(`fields: ${otherKeys.join(', ')}`);\n const description = `{${parts.join('; ')}}`;\n return description.length > NON_ERROR_DESCRIPTION_LIMIT\n ? `${description.slice(0, NON_ERROR_DESCRIPTION_LIMIT)}… (truncated)`\n : description;\n}\n"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A pipeline declaration, described for a READER (#1685) — the structured `externalDataPipeline` slice a resource
|
|
3
|
+
* specification carries.
|
|
4
|
+
*
|
|
5
|
+
* ## Why it is derived, never authored
|
|
6
|
+
*
|
|
7
|
+
* Before this, a resource's specification described its pipeline in prose (Wonder Todos' `externalCustomers` did, in
|
|
8
|
+
* `notes` and `businessConstraints`), and prose restating a declaration is a second copy that starts drifting the day
|
|
9
|
+
* the declaration changes. So the slice is a FUNCTION of the declaration: `resourceSpecification()` attaches it when
|
|
10
|
+
* it can materialize the resource configuration, and the companion's specification projection derives it from the
|
|
11
|
+
* configuration it already holds. Nothing here is typed by an author, so nothing here can disagree with what runs.
|
|
12
|
+
*
|
|
13
|
+
* ## What it answers
|
|
14
|
+
*
|
|
15
|
+
* Where the rows come from (system, entity, dialect), which rows (the source filter, archived rows), how they are
|
|
16
|
+
* keyed, when a pass runs, what happens to a row that leaves the source — and, per local field, WHAT writes it: the
|
|
17
|
+
* remote fields it reads and the declared operation, including the four expressions (enum mapping, concatenation,
|
|
18
|
+
* arithmetic, conditional). `expression` is a one-line rendering of that operation for a person reviewing the
|
|
19
|
+
* specification; `entry` is the declared data itself, for a reader that needs the exact values.
|
|
20
|
+
*/
|
|
21
|
+
import { ExternalDataMappingEntryKind, ExternalDataPipelineDirection, type ExternalDataFieldMappingEntry, type ExternalDataPipelineDeclaration } from './external-data-pipeline.shared.schemas';
|
|
22
|
+
/** One local field the pipeline writes, and how. */
|
|
23
|
+
export interface ExternalDataPipelineMappingDescription {
|
|
24
|
+
readonly localField: string;
|
|
25
|
+
readonly kind: ExternalDataMappingEntryKind;
|
|
26
|
+
/** Every remote field this entry reads — what the extraction requests for it. Empty for a CONSTANT. */
|
|
27
|
+
readonly readsRemoteFields: readonly string[];
|
|
28
|
+
/** The declared operation in one line, for a reviewer. */
|
|
29
|
+
readonly expression: string;
|
|
30
|
+
/** The declared entry, exactly as the pipeline runs it. */
|
|
31
|
+
readonly entry: ExternalDataFieldMappingEntry;
|
|
32
|
+
}
|
|
33
|
+
/** The structured pipeline slice of a resource specification. */
|
|
34
|
+
export interface ExternalDataPipelineDescription {
|
|
35
|
+
/**
|
|
36
|
+
* Which way rows travel (#1690). For an OUTBOUND pipeline `source` names where rows are SENT, each mapping entry names
|
|
37
|
+
* the local field sent and the remote field it lands on, and the inbound-only facts (`population`, `orphanPolicy`,
|
|
38
|
+
* `sourceFilter`, `archivedRecords`, `incremental`) describe nothing and are null.
|
|
39
|
+
*/
|
|
40
|
+
readonly direction: ExternalDataPipelineDirection;
|
|
41
|
+
readonly source: {
|
|
42
|
+
readonly system: string;
|
|
43
|
+
readonly entityRef: string;
|
|
44
|
+
readonly dialect: string;
|
|
45
|
+
};
|
|
46
|
+
/** For an OUTBOUND or BIDIRECTIONAL pipeline, the write verbs it sends (`create`, `update`); empty for an inbound one. */
|
|
47
|
+
readonly sends: readonly string[];
|
|
48
|
+
/** A BIDIRECTIONAL pipeline's conflict policy (#1723), resolved; null for any other direction. */
|
|
49
|
+
readonly conflictPolicy: string | null;
|
|
50
|
+
/** The local field holding each row's remote identity, the key the load merges on. */
|
|
51
|
+
readonly remoteKeyLocalField: string;
|
|
52
|
+
readonly sourceFilter: Readonly<Record<string, unknown>> | null;
|
|
53
|
+
readonly population: string | null;
|
|
54
|
+
readonly orphanPolicy: string | null;
|
|
55
|
+
readonly archivedRecords: string | null;
|
|
56
|
+
readonly scheduleCron: string | null;
|
|
57
|
+
readonly incremental: {
|
|
58
|
+
readonly mode: string;
|
|
59
|
+
readonly fullPassCron: string;
|
|
60
|
+
} | null;
|
|
61
|
+
/** The partition stamps; an OUTBOUND pipeline has only the unit a created row is placed by (`key` null). */
|
|
62
|
+
readonly partitionFields: {
|
|
63
|
+
readonly unit: string;
|
|
64
|
+
readonly key: string | null;
|
|
65
|
+
} | null;
|
|
66
|
+
readonly mapping: readonly ExternalDataPipelineMappingDescription[];
|
|
67
|
+
}
|
|
68
|
+
/** Describe a PARSED pipeline declaration for a resource specification (#1685). */
|
|
69
|
+
export declare function describeExternalDataPipeline(declaration: ExternalDataPipelineDeclaration): ExternalDataPipelineDescription;
|
|
70
|
+
//# sourceMappingURL=external-data-pipeline-description.shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-data-pipeline-description.shared.d.ts","sourceRoot":"","sources":["../../../../src/external-data/external-data-pipeline-description.shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAIL,4BAA4B,EAC5B,6BAA6B,EAM7B,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACrC,MAAM,yCAAyC,CAAC;AAEjD,oDAAoD;AACpD,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,4BAA4B,CAAC;IAC5C,uGAAuG;IACvG,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,6BAA6B,CAAC;CAC/C;AAED,iEAAiE;AACjE,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,6BAA6B,CAAC;IAClD,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACnG,0HAA0H;IAC1H,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,kGAAkG;IAClG,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,sFAAsF;IACtF,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAChE,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,WAAW,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACtF,4GAA4G;IAC5G,QAAQ,CAAC,eAAe,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACxF,QAAQ,CAAC,OAAO,EAAE,SAAS,sCAAsC,EAAE,CAAC;CACrE;AA6CD,mFAAmF;AACnF,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,+BAA+B,GAAG,+BAA+B,CA4B1H"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A pipeline declaration, described for a READER (#1685) — the structured `externalDataPipeline` slice a resource
|
|
3
|
+
* specification carries.
|
|
4
|
+
*
|
|
5
|
+
* ## Why it is derived, never authored
|
|
6
|
+
*
|
|
7
|
+
* Before this, a resource's specification described its pipeline in prose (Wonder Todos' `externalCustomers` did, in
|
|
8
|
+
* `notes` and `businessConstraints`), and prose restating a declaration is a second copy that starts drifting the day
|
|
9
|
+
* the declaration changes. So the slice is a FUNCTION of the declaration: `resourceSpecification()` attaches it when
|
|
10
|
+
* it can materialize the resource configuration, and the companion's specification projection derives it from the
|
|
11
|
+
* configuration it already holds. Nothing here is typed by an author, so nothing here can disagree with what runs.
|
|
12
|
+
*
|
|
13
|
+
* ## What it answers
|
|
14
|
+
*
|
|
15
|
+
* Where the rows come from (system, entity, dialect), which rows (the source filter, archived rows), how they are
|
|
16
|
+
* keyed, when a pass runs, what happens to a row that leaves the source — and, per local field, WHAT writes it: the
|
|
17
|
+
* remote fields it reads and the declared operation, including the four expressions (enum mapping, concatenation,
|
|
18
|
+
* arithmetic, conditional). `expression` is a one-line rendering of that operation for a person reviewing the
|
|
19
|
+
* specification; `entry` is the declared data itself, for a reader that needs the exact values.
|
|
20
|
+
*/
|
|
21
|
+
import { ExternalDataConcatenationPartKind, ExternalDataConditionalOutcomeKind, ExternalDataFieldCoercion, ExternalDataMappingEntryKind, ExternalDataPipelineDirection, ExternalDataUnmappedValuePolicy, listExternalDataMappingEntryRemoteFields, resolveExternalDataConflictPolicy, resolveExternalDataFieldOwner, } from './external-data-pipeline.shared.schemas.js';
|
|
22
|
+
const quoted = (value) => JSON.stringify(value);
|
|
23
|
+
function describeOutcome(outcome) {
|
|
24
|
+
return outcome.kind === ExternalDataConditionalOutcomeKind.CONSTANT ? quoted(outcome.constant) : `\`${outcome.remoteField}\``;
|
|
25
|
+
}
|
|
26
|
+
/** The one-line rendering of one entry's operation. Total over the entry kinds. */
|
|
27
|
+
function describeMappingExpression(entry) {
|
|
28
|
+
switch (entry.kind) {
|
|
29
|
+
case ExternalDataMappingEntryKind.REMOTE_FIELD:
|
|
30
|
+
return `\`${entry.remoteField}\``
|
|
31
|
+
+ (entry.coercion === ExternalDataFieldCoercion.NONE ? '' : ` (${entry.coercion})`)
|
|
32
|
+
+ (entry.required ? ', required' : '');
|
|
33
|
+
case ExternalDataMappingEntryKind.CONSTANT:
|
|
34
|
+
return `constant ${quoted(entry.constant)}`;
|
|
35
|
+
case ExternalDataMappingEntryKind.REMOTE_REFERENCE:
|
|
36
|
+
return `foreign key to ${entry.targetResourceType} from \`${entry.remoteField}\``
|
|
37
|
+
+ (entry.valueShape === undefined ? '' : ` (${entry.valueShape})`) + `, unresolved: ${entry.unresolved}`;
|
|
38
|
+
case ExternalDataMappingEntryKind.ENUM_MAP:
|
|
39
|
+
return `\`${entry.remoteField}\` mapped: `
|
|
40
|
+
+ entry.values.map(({ remoteValue, localValue }) => `${quoted(remoteValue)} → ${quoted(localValue)}`).join(', ')
|
|
41
|
+
+ `; unmapped: ${entry.unmapped.policy === ExternalDataUnmappedValuePolicy.USE_DEFAULT ? quoted(entry.unmapped.localValue) : 'reject the row'}`
|
|
42
|
+
+ (entry.required ? ', required' : '');
|
|
43
|
+
case ExternalDataMappingEntryKind.CONCATENATION:
|
|
44
|
+
return 'concatenation of '
|
|
45
|
+
+ entry.parts.map((part) => (part.kind === ExternalDataConcatenationPartKind.REMOTE_FIELD ? `\`${part.remoteField}\`` : quoted(part.literal))).join(', ')
|
|
46
|
+
+ (entry.separator === '' ? '' : ` joined by ${quoted(entry.separator)}`)
|
|
47
|
+
+ (entry.required ? ', required' : '');
|
|
48
|
+
case ExternalDataMappingEntryKind.ARITHMETIC:
|
|
49
|
+
return `\`${entry.remoteField}\` × ${entry.factor}${entry.offset === 0 ? '' : ` + ${entry.offset}`}`
|
|
50
|
+
+ (entry.decimalPlaces === undefined ? '' : `, rounded to ${entry.decimalPlaces} decimal places`)
|
|
51
|
+
+ (entry.required ? ', required' : '');
|
|
52
|
+
case ExternalDataMappingEntryKind.CONDITIONAL:
|
|
53
|
+
return `by \`${entry.remoteField}\`: `
|
|
54
|
+
+ entry.cases.map((entryCase) => `${quoted(entryCase.equals)} → ${describeOutcome(entryCase.then)}`).join('; ')
|
|
55
|
+
+ `; otherwise ${describeOutcome(entry.otherwise)}`;
|
|
56
|
+
default: {
|
|
57
|
+
const unhandled = entry;
|
|
58
|
+
throw new Error(`describeExternalDataPipeline: unhandled mapping entry ${quoted(unhandled)}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/** Describe a PARSED pipeline declaration for a resource specification (#1685). */
|
|
63
|
+
export function describeExternalDataPipeline(declaration) {
|
|
64
|
+
const outbound = declaration.direction === ExternalDataPipelineDirection.OUTBOUND;
|
|
65
|
+
const bidirectional = declaration.direction === ExternalDataPipelineDirection.BIDIRECTIONAL;
|
|
66
|
+
return {
|
|
67
|
+
direction: declaration.direction,
|
|
68
|
+
source: { system: declaration.binding.system, entityRef: declaration.binding.entityRef, dialect: declaration.binding.dialect },
|
|
69
|
+
sends: outbound || bidirectional ? [...declaration.binding.writableVerbs].sort() : [],
|
|
70
|
+
conflictPolicy: bidirectional ? resolveExternalDataConflictPolicy(declaration) : null,
|
|
71
|
+
remoteKeyLocalField: declaration.remoteKeyLocalField,
|
|
72
|
+
sourceFilter: declaration.sourceFilter ?? null,
|
|
73
|
+
// Parsed defaults on an OUTBOUND declaration, which refuses them when authored: describing them would state a load
|
|
74
|
+
// policy for a pipeline that loads nothing.
|
|
75
|
+
population: outbound ? null : declaration.population,
|
|
76
|
+
orphanPolicy: outbound ? null : declaration.orphanPolicy,
|
|
77
|
+
archivedRecords: declaration.archivedRecords?.treatment ?? null,
|
|
78
|
+
scheduleCron: declaration.scheduleCron ?? null,
|
|
79
|
+
incremental: declaration.incremental === undefined ? null : { mode: declaration.incremental.mode, fullPassCron: declaration.incremental.fullPassCron },
|
|
80
|
+
partitionFields: declaration.partitionUnitLocalField === undefined
|
|
81
|
+
? null
|
|
82
|
+
: { unit: declaration.partitionUnitLocalField, key: declaration.partitionKeyLocalField ?? null },
|
|
83
|
+
mapping: declaration.mapping.map((entry) => ({
|
|
84
|
+
localField: entry.localField,
|
|
85
|
+
kind: entry.kind,
|
|
86
|
+
readsRemoteFields: listExternalDataMappingEntryRemoteFields(entry),
|
|
87
|
+
expression: describeMappingExpression(entry) + (bidirectional ? ` — owner ${resolveExternalDataFieldOwner(entry)}` : ''),
|
|
88
|
+
entry,
|
|
89
|
+
})),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=external-data-pipeline-description.shared.js.map
|