@wildo-ai/saas-models 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/__tests__/setup.d.ts.map +1 -1
- package/dist/esm/__tests__/setup.js.map +1 -1
- package/dist/esm/_inspect.d.ts.map +1 -1
- package/dist/esm/_inspect.js.map +1 -1
- package/dist/esm/applications/application-metadata.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/application-metadata.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/applications/application-subject.shared.schemas.d.ts.map +1 -1
- package/dist/esm/applications/application-subject.shared.schemas.js.map +1 -1
- 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-context.schemas.js.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.d.ts.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.d.ts.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.d.ts.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.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/price.shared.resources-config.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.resources-config.schemas.js.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.d.ts.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/promotions.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/promotions.shared.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-flush-evidence.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-flush-evidence.shared.schemas.js.map +1 -1
- package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-record.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.d.ts.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/charts/aggregation-query.shared.schemas.d.ts.map +1 -1
- package/dist/esm/charts/aggregation-query.shared.schemas.js.map +1 -1
- package/dist/esm/charts/aggregation.shared.definitions.d.ts.map +1 -1
- package/dist/esm/charts/aggregation.shared.definitions.js.map +1 -1
- package/dist/esm/charts/chart-definition-builder.shared.d.ts.map +1 -1
- package/dist/esm/charts/chart-definition-builder.shared.js.map +1 -1
- package/dist/esm/companion/artifact-placement.shared.definitions.d.ts.map +1 -1
- package/dist/esm/companion/artifact-placement.shared.definitions.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/companion/shared-library-companion.shared.definitions.d.ts.map +1 -1
- package/dist/esm/companion/shared-library-companion.shared.definitions.js.map +1 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.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/data-classification/data-classification.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/data-classification/data-classification.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/documents/governed-document-interactions.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/documents/governed-document-interactions.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/documents/governed-documents.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/documents/governed-documents.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/documents/user-governed-document-acceptances.shared.schemas.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/capability-consent-purposes.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/capability-consent-purposes.shared.utils.js.map +1 -1
- package/dist/esm/compliance/privacy/client-storage.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/client-storage.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/consent-gate-vocabulary.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/consent-gate-vocabulary.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/consent-purposes.shared.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/consent-purposes.shared.js.map +1 -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-scrub.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.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/operating-jurisdictions.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js.map +1 -1
- 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/personal-data-category.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.js.map +1 -1
- package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/privacy.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/redaction.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
- 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/sharing.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/sharing.shared.schemas.js.map +1 -1
- 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-lane-evidence.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-erasure-lane-evidence.shared.schemas.js.map +1 -1
- 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/compliance/review-cadence.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/review-cadence.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/risk-posture.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/risk-posture.shared.schemas.js.map +1 -1
- package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/analytics-value-moments.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/app-frontend-type.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/app-frontend-type.shared.schemas.js.map +1 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.d.ts.map +1 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
- package/dist/esm/config/brand-assets.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/brand-assets.shared.schemas.js.map +1 -1
- package/dist/esm/config/configuration-validation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/configuration-validation.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/chart-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/frontend/chart-definition.shared.schemas.js.map +1 -1
- package/dist/esm/config/frontend/chart-registration-alignment.shared.d.ts.map +1 -1
- package/dist/esm/config/frontend/chart-registration-alignment.shared.js.map +1 -1
- 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/config/frontend/onboarding.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/frontend/onboarding.shared.schemas.js.map +1 -1
- package/dist/esm/config/postgresql.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/postgresql.shared.schemas.js.map +1 -1
- package/dist/esm/config/registration-acquisition-policy.shared.utils.d.ts.map +1 -1
- package/dist/esm/config/registration-acquisition-policy.shared.utils.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- package/dist/esm/config-authoring.entry.js.map +1 -1
- package/dist/esm/crdt/crdt-merge.shared.utils.d.ts.map +1 -1
- package/dist/esm/crdt/crdt-merge.shared.utils.js.map +1 -1
- package/dist/esm/data-seeding/data-seeding-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/data-seeding/data-seeding-config.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.definitions.d.ts.map +1 -1
- package/dist/esm/errors/errors.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/resource-access-forbidden.shared.error.d.ts.map +1 -1
- package/dist/esm/errors/resource-access-forbidden.shared.error.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/errors/zod-issue-formatting.shared.utils.d.ts.map +1 -1
- package/dist/esm/errors/zod-issue-formatting.shared.utils.js.map +1 -1
- package/dist/esm/exports/tabular-csv.shared.utils.d.ts.map +1 -1
- package/dist/esm/exports/tabular-csv.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/compose-provider-registry.shared.d.ts.map +1 -1
- package/dist/esm/external-providers/compose-provider-registry.shared.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/external-providers.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/external-providers.shared.schemas.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-bootstrap.shared.schemas.js.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-authentication-assurance.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-authentication-assurance.shared.schemas.js.map +1 -1
- 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-metadata.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -1
- 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-tier-rule.shared.utils.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.js.map +1 -1
- 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/feature-registry.shared.d.ts.map +1 -1
- package/dist/esm/features/feature-registry.shared.js.map +1 -1
- package/dist/esm/features/feature-resolution.shared.schemas.d.ts.map +1 -1
- package/dist/esm/features/feature-resolution.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/features/user-features.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/features/user-features.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/files/file-remote-reference-link.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/file-remote-reference-link.shared.schemas.js.map +1 -1
- package/dist/esm/files/file-upload-grant.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/file-upload-grant.shared.schemas.js.map +1 -1
- package/dist/esm/files/files.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/files/files.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/files.shared.schemas.js.map +1 -1
- package/dist/esm/files/files.shared.utils.d.ts.map +1 -1
- package/dist/esm/files/files.shared.utils.js.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.js.map +1 -1
- 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/agents.shared.schemas.d.ts +2 -2
- package/dist/esm/flows-actors/agents.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/agents.shared.schemas.js.map +1 -1
- 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/deliberation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/execution-plan-readiness.shared.utils.d.ts.map +1 -1
- package/dist/esm/flows-actors/execution-plan-readiness.shared.utils.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js.map +1 -1
- 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-task.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors-task.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.d.ts.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.definitions.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.definitions.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-actors.system.shared.schemas.js.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/flows.shared.schemas.js.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/mcp-servers.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/mcp-servers.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/prompt-ir.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/prompt-ir.shared.schemas.js.map +1 -1
- 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/tasks.actors.shared.schemas.js.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-flow.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-flow.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.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/guidance-state.shared.utils.d.ts.map +1 -1
- package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -1
- package/dist/esm/guidance/lifecycle-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/lifecycle-config.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts.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/milestone-builders.shared.d.ts.map +1 -1
- package/dist/esm/guidance/milestone-builders.shared.js.map +1 -1
- package/dist/esm/guidance/milestone-definition.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/milestone-definition.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/progression-presentation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-presentation.shared.schemas.js.map +1 -1
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.resources-config.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.d.ts.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/http-api-binding/read-through-engine-anchors.shared.d.ts.map +1 -1
- package/dist/esm/http-api-binding/read-through-engine-anchors.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/i18n/interpolate-label-params.shared.utils.d.ts.map +1 -1
- package/dist/esm/i18n/interpolate-label-params.shared.utils.js.map +1 -1
- package/dist/esm/i18n/labelling.dto.shared.schemas.d.ts.map +1 -1
- package/dist/esm/i18n/labelling.dto.shared.schemas.js.map +1 -1
- 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/actions.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/meta-workflows/actions.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/meta-workflows/catalog.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/meta-workflows/catalog.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/meta-workflows/coding-tasks.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/meta-workflows/coding-tasks.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/meta-workflows/context-selection.meta-workflows.shared.schemas.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/portable-primitives.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/meta-workflows/portable-primitives.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/monitoring/monitoring.shared.schemas.d.ts.map +1 -1
- package/dist/esm/monitoring/monitoring.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/email/email-context.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-context.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/email/email-submission.shared.enums.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-submission.shared.enums.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/email/email-template.shared.enums.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template.shared.enums.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-contract.shared.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-contract.shared.js.map +1 -1
- 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/m2m-webhook-delivery-log.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.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.core.definitions.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.core.definitions.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/notification-badges.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.shared.resources-config.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/application-owner-organization.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/application-owner-organization.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.d.ts.map +1 -1
- 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-features.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-features.shared.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.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts.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.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.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.resources-config.schemas.js.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-inheritance.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-inheritance.shared.js.map +1 -1
- package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.d.ts.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.example.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.example.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.path.d.ts.map +1 -1
- package/dist/esm/organizations/organization-units.shared.path.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/organization-units.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-units.shared.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.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.d.ts +30 -2
- 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/queue/jobs.shared.utils.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.utils.js.map +1 -1
- package/dist/esm/queue/queues.shared.schemas.d.ts.map +1 -1
- package/dist/esm/queue/queues.shared.schemas.js.map +1 -1
- package/dist/esm/queue/queues.shared.utils.d.ts.map +1 -1
- package/dist/esm/queue/queues.shared.utils.js.map +1 -1
- package/dist/esm/queue/rabbitmq-queue-args.shared.d.ts.map +1 -1
- package/dist/esm/queue/rabbitmq-queue-args.shared.js.map +1 -1
- package/dist/esm/rag/rag-retrieval-health.shared.d.ts.map +1 -1
- package/dist/esm/rag/rag-retrieval-health.shared.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/http-requests.shared.d.ts.map +1 -1
- package/dist/esm/requests/http-requests.shared.js.map +1 -1
- package/dist/esm/requests/idempotency-key.shared.d.ts.map +1 -1
- package/dist/esm/requests/idempotency-key.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/rate-limits.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/rate-limits.shared.schemas.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/child-operations.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/child-operations.shared.schemas.js.map +1 -1
- package/dist/esm/resources/collection-query-parameters.shared.d.ts.map +1 -1
- package/dist/esm/resources/collection-query-parameters.shared.js.map +1 -1
- package/dist/esm/resources/context-policy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/context-policy.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/relationship-display.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/relationship-display.shared.schemas.js.map +1 -1
- 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 +369 -12
- package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources-relationships.shared.factory.d.ts.map +1 -1
- package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources-serialization.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources-serialization.shared.schemas.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/composition-cascade-deletability.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/composition-cascade-deletability.validation.js.map +1 -1
- package/dist/esm/resources/utils/composition-seedability.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/composition-seedability.validation.js.map +1 -1
- package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.js.map +1 -1
- package/dist/esm/resources/utils/dependent-lifecycle-classification.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/dependent-lifecycle-classification.validation.js.map +1 -1
- package/dist/esm/resources/utils/duplicate-relationship-registration.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/duplicate-relationship-registration.validation.js.map +1 -1
- package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/field-value-disclosure.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/initiator-stamped-field-satisfiability.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/initiator-stamped-field-satisfiability.validation.js.map +1 -1
- 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/persistence-adapter-discrimination.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.js.map +1 -1
- 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/repository-dto-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/repository-dto-builder.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/required-fk-fillability.validation.d.ts.map +1 -1
- package/dist/esm/resources/utils/required-fk-fillability.validation.js.map +1 -1
- package/dist/esm/resources/utils/resource-operation-type-guards.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-operation-type-guards.utils.js.map +1 -1
- 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.relationships.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.relationships.js.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.schemas.d.ts.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/resource-polymorphism.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-polymorphism.utils.js.map +1 -1
- package/dist/esm/resources/utils/resource-subtree.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resource-subtree.utils.js.map +1 -1
- package/dist/esm/resources/utils/resources-config-context-needs.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-context-needs.utils.js.map +1 -1
- package/dist/esm/resources/utils/resources-config-naming.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-naming.utils.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-config-operations.path.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.path.utils.js.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.js.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-config-operations.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/resources-summary.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-summary.utils.js.map +1 -1
- package/dist/esm/resources/utils/schema-family-builder.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/schema-family-builder.utils.js.map +1 -1
- package/dist/esm/resources/utils/schema-type-inference.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/schema-type-inference.utils.js.map +1 -1
- package/dist/esm/resources/utils/schema-type-utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/schema-type-utils.js.map +1 -1
- package/dist/esm/resources/utils/schema-variant-resolver.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/schema-variant-resolver.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/utils/templatable-file-fields.shared.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/templatable-file-fields.shared.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/domain-module.shared.definitions.d.ts.map +1 -1
- package/dist/esm/runtime/domain-module.shared.definitions.js.map +1 -1
- 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/runtime/runtime.shared.schemas.d.ts.map +1 -1
- package/dist/esm/runtime/runtime.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/anonymous-session/anonymous-session.shared.contract.d.ts.map +1 -1
- package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.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/authentication.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.utils.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.utils.js.map +1 -1
- package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/consumable-token.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/mfa-backup-code-contract.shared.d.ts.map +1 -1
- package/dist/esm/security/authentications/mfa-backup-code-contract.shared.js.map +1 -1
- package/dist/esm/security/authentications/password-blocklist.shared.utils.d.ts.map +1 -1
- package/dist/esm/security/authentications/password-blocklist.shared.utils.js.map +1 -1
- package/dist/esm/security/authentications/password-reset.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/password-reset.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/same-origin-redirect-path.shared.d.ts.map +1 -1
- package/dist/esm/security/authentications/same-origin-redirect-path.shared.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.d.ts.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.d.ts.map +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.d.ts.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-delivery-dlq.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-outbox.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-delivery-reliability-contract.shared.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.d.ts.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.d.ts.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/application-access-grants.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/application-access-grants.shared.schemas.js.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts.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/platform-access-grants.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authorizations/platform-access-grants.shared.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/authorizations/roles.shared.utils.d.ts.map +1 -1
- package/dist/esm/security/authorizations/roles.shared.utils.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/crypto-keys/crypto-keys.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.js.map +1 -1
- 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/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-resource-server.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-credential-kind.shared.d.ts.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-credential-kind.shared.js.map +1 -1
- 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-env.shared.d.ts.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-env.shared.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/systems-of-record/system-of-record-partition-assignments.shared.schemas.d.ts.map +1 -1
- package/dist/esm/systems-of-record/system-of-record-partition-assignments.shared.schemas.js.map +1 -1
- package/dist/esm/testing/resource-config-builders.d.ts.map +1 -1
- package/dist/esm/testing/resource-config-builders.js.map +1 -1
- package/dist/esm/testing.d.ts.map +1 -1
- package/dist/esm/testing.js.map +1 -1
- package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/anonymous-user-marketing-metadata.shared.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/anonymous-users.shared.schema.d.ts.map +1 -1
- package/dist/esm/users/anonymous-users.shared.schema.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/inbound-contacts.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/inbound-contacts.shared.schemas.js.map +1 -1
- package/dist/esm/users/user-consent-decision.shared.utils.d.ts.map +1 -1
- package/dist/esm/users/user-consent-decision.shared.utils.js.map +1 -1
- package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-credentials.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-credentials.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-credentials.shared.schemas.js.map +1 -1
- package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-identity-links.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-identity-links.shared.schemas.js.map +1 -1
- package/dist/esm/users/user-preferences-reset.shared.utils.d.ts.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-preferences.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-profiles.shared.resources-config.schemas.js.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-preferences.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/user-self.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/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
- 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 +0 -7
- package/dist/esm/compliance/privacy/data-retention.shared.schemas.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templatable-file-fields.shared.utils.js","sourceRoot":"","sources":["../../../../../src/resources/utils/templatable-file-fields.shared.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAY,EACZ,gBAAgB,GAEjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;;GAMG;AACH,SAAS,mBAAmB,CAA+B,MAAoB,EAAE,OAAgB;IAC/F,MAAM,QAAQ,GAAI,MAAc,CAAC,eAAe,CAAC,CAAC;IAClD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAe,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC;IAC/C,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAQD,MAAM,OAAO,yCAA0C,SAAQ,KAAK;IAEhD;IACA;IACA;IAHlB,YACkB,SAAiB,EACjB,gBAAgD,EAChD,mBAAmD;QAEnE,KAAK,CACH,kFAAkF,SAAS,IAAI,CAChG,CAAC;QANc,cAAS,GAAT,SAAS,CAAQ;QACjB,qBAAgB,GAAhB,gBAAgB,CAAgC;QAChD,wBAAmB,GAAnB,mBAAmB,CAAgC;QAKnE,IAAI,CAAC,IAAI,GAAG,2CAA2C,CAAC;IAC1D,CAAC;CACF;AAED,MAAM,UAAU,gCAAgC,CAC9C,MAAoB,EACpB,UAAU,GAAG,EAAE,EACf,aAAa,G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CAAC,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAyB,CAAC;YAC9G,CAAC,CAAC,MAAM,CAAC;QAEX,MAAM,QAAQ,GAAG,aAAa,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACrD,iGAAiG;QACjG,yFAAyF;QACzF,OAAO,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvF,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC9C,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAA6B,CAAC;QACzF,MAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;QACxF,OAAO,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IACrF,CAAC;AACH,CAAC","sourcesContent":["import {\n getFileMetadata,\n getZodDefArrayProperty,\n getZodDef,\n getZodDefProperty,\n getZodDefSchemaProperty,\n getZodDefStringProperty,\n getZodObjectShape,\n getZodType,\n isTemplatableFileField,\n isZodArray,\n isZodDefault,\n isZodNullable,\n isZodObject,\n isZodOptional,\n SCHEMA_METADATA,\n unwrapSchema,\n withArrayElement,\n type FileSchemaMetadata,\n} from '@wildo-ai/zod-decorators';\nimport { z } from 'zod';\n\nexport interface StripTemplatableFileFieldsOptions {\n rebuildObjectSchema?: (\n schema: z.ZodObject<any>,\n shape: Record<string, z.ZodTypeAny>,\n ) => z.ZodTypeAny;\n}\n\n/**\n * Carry decorator metadata (`SCHEMA_METADATA`) from a schema onto the instance that replaces it.\n *\n * Structured value types (`z_address`, `z_file`, `z_money`, `z_range`, …) record their identity as\n * metadata on the schema INSTANCE. A rebuild that does not carry it turns the field into a plain\n * object, and the form then renders its parts as unrelated inputs.\n */\nfunction carrySchemaMetadata<TSchema extends z.ZodTypeAny>(source: z.ZodTypeAny, rebuilt: TSchema): TSchema {\n const metadata = (source as any)[SCHEMA_METADATA];\n if (metadata !== undefined) {\n (rebuilt as any)[SCHEMA_METADATA] = metadata;\n }\n return rebuilt;\n}\n\nexport interface TemplatableFileFieldPath {\n fieldName: string;\n schema: z.ZodTypeAny;\n isInsideArray: boolean;\n}\n\nexport class IncompatibleTemplatableFileFieldPathError extends Error {\n constructor(\n public readonly fieldName: string,\n public readonly existingMetadata: FileSchemaMetadata | undefined,\n public readonly conflictingMetadata: FileSchemaMetadata | undefined,\n ) {\n super(\n `Incompatible generated file metadata detected for templatable file field path \"${fieldName}\".`,\n );\n this.name = 'IncompatibleTemplatableFileFieldPathError';\n }\n}\n\nexport function collectTemplatableFileFieldPaths(\n schema: z.ZodTypeAny,\n pathPrefix = '',\n isInsideArray = false,\n activeSchemas: WeakSet<object> = new WeakSet<object>(),\n): TemplatableFileFieldPath[] {\n if (activeSchemas.has(schema)) {\n return [];\n }\n\n activeSchemas.add(schema);\n try {\n const rawSchemaType = getZodType(schema);\n if (rawSchemaType === 'pipe') {\n const inSchema = getZodDefSchemaProperty(schema, 'in');\n const outSchema = getZodDefSchemaProperty(schema, 'out');\n return mergeTemplatableFileFieldPaths([\n ...(inSchema ? collectTemplatableFileFieldPaths(inSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ...(outSchema ? collectTemplatableFileFieldPaths(outSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ]);\n }\n\n if (isZodOptional(schema) || isZodNullable(schema) || isZodDefault(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n return innerSchema\n ? collectTemplatableFileFieldPaths(innerSchema, pathPrefix, isInsideArray, activeSchemas)\n : [];\n }\n\n const unwrappedSchema = unwrapSchema(schema);\n if (unwrappedSchema !== schema) {\n return collectTemplatableFileFieldPaths(unwrappedSchema, pathPrefix, isInsideArray, activeSchemas);\n }\n\n if (isTemplatableFileField(unwrappedSchema)) {\n return pathPrefix ? [{ fieldName: pathPrefix, schema: unwrappedSchema, isInsideArray }] : [];\n }\n\n const schemaType = getZodType(unwrappedSchema);\n if (schemaType === 'lazy') {\n const lazyGetter = getZodDef(unwrappedSchema)?.getter;\n const lazySchema = typeof lazyGetter === 'function'\n ? lazyGetter()\n : undefined;\n return lazySchema\n ? collectTemplatableFileFieldPaths(lazySchema as z.ZodTypeAny, pathPrefix, isInsideArray, activeSchemas)\n : [];\n }\n\n if (schemaType === 'intersection') {\n const leftSchema = getZodDefSchemaProperty(unwrappedSchema, 'left');\n const rightSchema = getZodDefSchemaProperty(unwrappedSchema, 'right');\n return mergeTemplatableFileFieldPaths([\n ...(leftSchema ? collectTemplatableFileFieldPaths(leftSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ...(rightSchema ? collectTemplatableFileFieldPaths(rightSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ]);\n }\n\n if (schemaType === 'union') {\n const unionOptions = getZodDefArrayProperty(unwrappedSchema, 'options') as z.ZodTypeAny[] | undefined;\n return mergeTemplatableFileFieldPaths(\n (unionOptions ?? []).flatMap((option) =>\n collectTemplatableFileFieldPaths(option, pathPrefix, isInsideArray, activeSchemas)\n ),\n );\n }\n\n if (isZodArray(unwrappedSchema)) {\n const elementSchema = getZodDefProperty(unwrappedSchema, 'element') as z.ZodTypeAny | undefined;\n return elementSchema ? collectTemplatableFileFieldPaths(elementSchema, pathPrefix, true, activeSchemas) : [];\n }\n\n if (schemaType === 'record' || schemaType === 'map' || schemaType === 'set') {\n const valueSchema = getZodDefSchemaProperty(unwrappedSchema, 'valueType');\n return valueSchema\n ? collectTemplatableFileFieldPaths(valueSchema, pathPrefix, true, activeSchemas)\n : [];\n }\n\n if (schemaType === 'tuple') {\n const tupleItems = getZodDefArrayProperty(unwrappedSchema, 'items') as z.ZodTypeAny[] | undefined;\n const restSchema = getZodDefSchemaProperty(unwrappedSchema, 'rest');\n return mergeTemplatableFileFieldPaths([\n ...((tupleItems ?? []).flatMap((item) =>\n collectTemplatableFileFieldPaths(item, pathPrefix, true, activeSchemas)\n )),\n ...(restSchema ? collectTemplatableFileFieldPaths(restSchema, pathPrefix, true, activeSchemas) : []),\n ]);\n }\n\n if (!isZodObject(unwrappedSchema)) {\n return [];\n }\n\n const shape = getZodObjectShape(unwrappedSchema);\n return mergeTemplatableFileFieldPaths(\n Object.entries(shape).flatMap(([fieldName, fieldSchema]) => {\n const nextPath = pathPrefix ? `${pathPrefix}.${fieldName}` : fieldName;\n return collectTemplatableFileFieldPaths(fieldSchema as z.ZodTypeAny, nextPath, isInsideArray, activeSchemas);\n }),\n );\n } finally {\n activeSchemas.delete(schema);\n }\n}\n\nfunction mergeTemplatableFileFieldPaths(\n fields: TemplatableFileFieldPath[],\n): TemplatableFileFieldPath[] {\n const byFieldName = new Map<string, TemplatableFileFieldPath>();\n for (const field of fields) {\n const existing = byFieldName.get(field.fieldName);\n if (existing && !areTemplatableFileMetadataCompatible(existing.schema, field.schema)) {\n throw new IncompatibleTemplatableFileFieldPathError(\n field.fieldName,\n getFileMetadata(existing.schema),\n getFileMetadata(field.schema),\n );\n }\n byFieldName.set(field.fieldName, existing\n ? {\n ...existing,\n isInsideArray: existing.isInsideArray || field.isInsideArray,\n }\n : field);\n }\n return Array.from(byFieldName.values()).sort((left, right) =>\n left.fieldName.localeCompare(right.fieldName)\n );\n}\n\nfunction normalizeMetadataForComparison(value: unknown): unknown {\n if (Array.isArray(value)) {\n return value.map(normalizeMetadataForComparison);\n }\n\n if (value && typeof value === 'object') {\n return Object.fromEntries(\n Object.entries(value as Record<string, unknown>)\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([key, childValue]) => [key, normalizeMetadataForComparison(childValue)]),\n );\n }\n\n return value;\n}\n\nfunction areTemplatableFileMetadataCompatible(\n leftSchema: z.ZodTypeAny,\n rightSchema: z.ZodTypeAny,\n): boolean {\n return JSON.stringify(normalizeMetadataForComparison(getFileMetadata(leftSchema)))\n === JSON.stringify(normalizeMetadataForComparison(getFileMetadata(rightSchema)));\n}\n\n/**\n * Remove generated PDF file fields from request DTO schemas, including nested\n * structures and union arms. These fields are framework-owned outputs, so they\n * must never appear in frontend/authored write DTOs even when custom DTOs are\n * provided by an application.\n */\nexport function stripTemplatableFileFieldsRecursively(\n schema: z.ZodTypeAny,\n options: StripTemplatableFileFieldsOptions = {},\n activeSchemas: WeakSet<object> = new WeakSet<object>(),\n): z.ZodTypeAny {\n if (activeSchemas.has(schema)) {\n return schema;\n }\n activeSchemas.add(schema);\n\n try {\n /*\n * Wrappers hand back the ORIGINAL instance when nothing beneath them changed (#989).\n *\n * They used to rebuild `inner.optional()` unconditionally. A fresh wrapper is a different\n * instance, so the enclosing object read it as \"changed\" and was rebuilt too — and the rebuild\n * dropped the object's decorator metadata. A `z_address()` nested in any object therefore reached\n * the create and update request DTOs as a plain object, and the form rendered its parts as\n * unrelated text inputs. Identity is what tells the object branch nothing was stripped.\n */\n if (isZodOptional(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n if (!innerSchema) {\n return schema;\n }\n const strippedInner = stripTemplatableFileFieldsRecursively(innerSchema, options, activeSchemas);\n return strippedInner === innerSchema ? schema : carrySchemaMetadata(schema, strippedInner.optional());\n }\n\n if (isZodNullable(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n if (!innerSchema) {\n return schema;\n }\n const strippedInner = stripTemplatableFileFieldsRecursively(innerSchema, options, activeSchemas);\n return strippedInner === innerSchema ? schema : carrySchemaMetadata(schema, strippedInner.nullable());\n }\n\n if (isZodDefault(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n if (!innerSchema) {\n return schema;\n }\n const strippedInner = stripTemplatableFileFieldsRecursively(innerSchema, options, activeSchemas);\n if (strippedInner === innerSchema) {\n return schema;\n }\n // Re-READ the default per parse rather than carrying a value across. In Zod 4\n // `def.defaultValue` is a GETTER, so reading it here EVALUATES the default —\n // and this stripped schema is built once, at configuration time, so a value\n // read here would be frozen into every parse the process performs. (The old\n // `typeof defaultValue === 'function'` branch could never fire for a dynamic\n // default for the same reason: the getter returns the VALUE, not the factory.)\n return carrySchemaMetadata(schema, strippedInner.default(() => getZodDefProperty(schema, 'defaultValue') as unknown));\n }\n\n const schemaType = getZodType(schema);\n if (schemaType === 'pipe') {\n const inSchema = getZodDefSchemaProperty(schema, 'in');\n const outSchema = getZodDefSchemaProperty(schema, 'out');\n const strippedIn = inSchema\n ? stripTemplatableFileFieldsRecursively(inSchema, options, activeSchemas)\n : inSchema;\n const strippedOut = outSchema\n ? stripTemplatableFileFieldsRecursively(outSchema, options, activeSchemas)\n : outSchema;\n if (strippedIn === inSchema && strippedOut === outSchema) {\n return schema;\n }\n if (strippedIn && strippedOut) {\n return z.pipe(strippedIn, strippedOut);\n }\n return strippedOut ?? strippedIn ?? schema;\n }\n\n if (schemaType === 'lazy') {\n const lazyGetter = getZodDef(schema)?.getter;\n if (typeof lazyGetter !== 'function') {\n return schema;\n }\n return z.lazy(() =>\n stripTemplatableFileFieldsRecursively(lazyGetter() as z.ZodTypeAny, options, activeSchemas)\n );\n }\n\n if (schemaType === 'intersection') {\n const leftSchema = getZodDefSchemaProperty(schema, 'left');\n const rightSchema = getZodDefSchemaProperty(schema, 'right');\n const strippedLeft = leftSchema\n ? stripTemplatableFileFieldsRecursively(leftSchema, options, activeSchemas)\n : leftSchema;\n const strippedRight = rightSchema\n ? stripTemplatableFileFieldsRecursively(rightSchema, options, activeSchemas)\n : rightSchema;\n return strippedLeft === leftSchema && strippedRight === rightSchema\n ? schema\n : z.intersection(strippedLeft ?? z.object({}), strippedRight ?? z.object({}));\n }\n\n if (schemaType === 'union') {\n const discriminator = getZodDefStringProperty(schema, 'discriminator');\n const unionOptions = getZodDefArrayProperty(schema, 'options') as z.ZodTypeAny[] | undefined;\n if (!unionOptions?.length) {\n return schema;\n }\n\n const strippedOptions = unionOptions.map((option) =>\n stripTemplatableFileFieldsRecursively(option, options, activeSchemas)\n );\n if (strippedOptions.length < 2) {\n return strippedOptions[0] ?? schema;\n }\n if (strippedOptions.every((option, index) => option === unionOptions[index])) {\n return schema;\n }\n\n const rebuiltUnion: z.ZodTypeAny = discriminator\n ? z.discriminatedUnion(\n discriminator,\n strippedOptions as [z.ZodObject<any>, z.ZodObject<any>, ...z.ZodObject<any>[]],\n )\n : z.union(strippedOptions as [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]);\n return carrySchemaMetadata(schema, rebuiltUnion);\n }\n\n if (isZodArray(schema)) {\n const elementSchema = getZodDefProperty(schema, 'element') as z.ZodTypeAny | undefined;\n if (!elementSchema) {\n return schema;\n }\n\n const strippedElement = stripTemplatableFileFieldsRecursively(elementSchema, options, activeSchemas);\n\n // Nothing to strip inside the element — hand back the ORIGINAL schema, the same way the\n // intersection / record / map branches do.\n if (strippedElement === elementSchema) {\n return schema;\n }\n\n // The element WAS rewritten. `withArrayElement` keeps the array's own `.min()` / `.max()` /\n // `.length()` checks across the swap; a plain `z.array(strippedElement)` — what this branch\n // used to do unconditionally — drops them, so an authored constraint never reached the DTO\n // the controller and repository validate against.\n return withArrayElement(schema, strippedElement);\n }\n\n if (schemaType === 'record') {\n const keySchema = getZodDefSchemaProperty(schema, 'keyType');\n const valueSchema = getZodDefSchemaProperty(schema, 'valueType');\n const strippedValue = valueSchema\n ? stripTemplatableFileFieldsRecursively(valueSchema, options, activeSchemas)\n : valueSchema;\n return valueSchema && strippedValue !== valueSchema\n ? z.record((keySchema ?? z.string()) as any, strippedValue)\n : schema;\n }\n\n if (schemaType === 'map') {\n const keySchema = getZodDefSchemaProperty(schema, 'keyType');\n const valueSchema = getZodDefSchemaProperty(schema, 'valueType');\n const strippedValue = valueSchema\n ? stripTemplatableFileFieldsRecursively(valueSchema, options, activeSchemas)\n : valueSchema;\n return keySchema && valueSchema && strippedValue !== valueSchema\n ? z.map(keySchema, strippedValue)\n : schema;\n }\n\n if (schemaType === 'set') {\n const valueSchema = getZodDefSchemaProperty(schema, 'valueType');\n const strippedValue = valueSchema\n ? stripTemplatableFileFieldsRecursively(valueSchema, options, activeSchemas)\n : valueSchema;\n return valueSchema && strippedValue !== valueSchema\n ? z.set(strippedValue)\n : schema;\n }\n\n if (schemaType === 'tuple') {\n const tupleItems = getZodDefArrayProperty(schema, 'items') as z.ZodTypeAny[] | undefined;\n const restSchema = getZodDefSchemaProperty(schema, 'rest');\n const strippedItems = (tupleItems ?? []).map((item) =>\n stripTemplatableFileFieldsRecursively(item, options, activeSchemas)\n );\n const strippedRest = restSchema\n ? stripTemplatableFileFieldsRecursively(restSchema, options, activeSchemas)\n : restSchema;\n const changed = strippedItems.some((item, index) => item !== tupleItems?.[index])\n || strippedRest !== restSchema;\n if (!changed) {\n return schema;\n }\n const rebuiltTuple = z.tuple(strippedItems as any);\n return strippedRest ? rebuiltTuple.rest(strippedRest) : rebuiltTuple;\n }\n\n if (!isZodObject(schema)) {\n return schema;\n }\n\n const shape = getZodObjectShape(schema);\n const strippedShape: Record<string, z.ZodTypeAny> = {};\n let changed = false;\n\n for (const [fieldName, fieldSchema] of Object.entries(shape)) {\n const typedSchema = fieldSchema as z.ZodTypeAny;\n if (isTemplatableFileField(typedSchema)) {\n changed = true;\n continue;\n }\n\n const strippedSchema = stripTemplatableFileFieldsRecursively(typedSchema, options, activeSchemas);\n if (strippedSchema !== typedSchema) {\n changed = true;\n }\n strippedShape[fieldName] = strippedSchema;\n }\n\n if (!changed) {\n return schema;\n }\n\n return options.rebuildObjectSchema\n ? options.rebuildObjectSchema(schema, strippedShape)\n : rebuildObjectSchemaPreservingSemantics(schema, strippedShape);\n } finally {\n activeSchemas.delete(schema);\n }\n}\n\nfunction rebuildObjectSchemaPreservingSemantics(\n schema: z.ZodObject<any>,\n strippedShape: Record<string, z.ZodTypeAny>,\n): z.ZodTypeAny {\n const originalShape = getZodObjectShape(schema);\n const removedFields = Object.keys(originalShape).filter((fieldName) => !(fieldName in strippedShape));\n\n try {\n const omittedSchema = removedFields.length > 0\n ? schema.omit(Object.fromEntries(removedFields.map((fieldName) => [fieldName, true])) as Record<string, true>)\n : schema;\n\n const extended = omittedSchema.extend(strippedShape);\n // Same field set, only a nested field replaced: the object is still what its metadata describes.\n // A field REMOVED means it may not be, so the metadata stays behind on that path (#989).\n return removedFields.length === 0 ? carrySchemaMetadata(schema, extended) : extended;\n } catch {\n const rebuiltSchema = z.object(strippedShape);\n const catchallSchema = getZodDefProperty(schema, 'catchall') as z.ZodTypeAny | undefined;\n const rebuilt = catchallSchema ? rebuiltSchema.catchall(catchallSchema) : rebuiltSchema;\n return removedFields.length === 0 ? carrySchemaMetadata(schema, rebuilt) : rebuilt;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"templatable-file-fields.shared.utils.js","sourceRoot":"","sources":["../../../../src/resources/utils/templatable-file-fields.shared.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,UAAU,EACV,sBAAsB,EACtB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,YAAY,EACZ,gBAAgB,GAEjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;;;;;GAMG;AACH,SAAS,mBAAmB,CAA+B,MAAoB,EAAE,OAAgB;IAC/F,MAAM,QAAQ,GAAI,MAAc,CAAC,eAAe,CAAC,CAAC;IAClD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAe,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC;IAC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AC,OAAO,CAAC;IACrF,CAAC;AACH,CAAC","sourcesContent":["import {\n getFileMetadata,\n getZodDefArrayProperty,\n getZodDef,\n getZodDefProperty,\n getZodDefSchemaProperty,\n getZodDefStringProperty,\n getZodObjectShape,\n getZodType,\n isTemplatableFileField,\n isZodArray,\n isZodDefault,\n isZodNullable,\n isZodObject,\n isZodOptional,\n SCHEMA_METADATA,\n unwrapSchema,\n withArrayElement,\n type FileSchemaMetadata,\n} from '@wildo-ai/zod-decorators';\nimport { z } from 'zod';\n\nexport interface StripTemplatableFileFieldsOptions {\n rebuildObjectSchema?: (\n schema: z.ZodObject<any>,\n shape: Record<string, z.ZodTypeAny>,\n ) => z.ZodTypeAny;\n}\n\n/**\n * Carry decorator metadata (`SCHEMA_METADATA`) from a schema onto the instance that replaces it.\n *\n * Structured value types (`z_address`, `z_file`, `z_money`, `z_range`, …) record their identity as\n * metadata on the schema INSTANCE. A rebuild that does not carry it turns the field into a plain\n * object, and the form then renders its parts as unrelated inputs.\n */\nfunction carrySchemaMetadata<TSchema extends z.ZodTypeAny>(source: z.ZodTypeAny, rebuilt: TSchema): TSchema {\n const metadata = (source as any)[SCHEMA_METADATA];\n if (metadata !== undefined) {\n (rebuilt as any)[SCHEMA_METADATA] = metadata;\n }\n return rebuilt;\n}\n\nexport interface TemplatableFileFieldPath {\n fieldName: string;\n schema: z.ZodTypeAny;\n isInsideArray: boolean;\n}\n\nexport class IncompatibleTemplatableFileFieldPathError extends Error {\n constructor(\n public readonly fieldName: string,\n public readonly existingMetadata: FileSchemaMetadata | undefined,\n public readonly conflictingMetadata: FileSchemaMetadata | undefined,\n ) {\n super(\n `Incompatible generated file metadata detected for templatable file field path \"${fieldName}\".`,\n );\n this.name = 'IncompatibleTemplatableFileFieldPathError';\n }\n}\n\nexport function collectTemplatableFileFieldPaths(\n schema: z.ZodTypeAny,\n pathPrefix = '',\n isInsideArray = false,\n activeSchemas: WeakSet<object> = new WeakSet<object>(),\n): TemplatableFileFieldPath[] {\n if (activeSchemas.has(schema)) {\n return [];\n }\n\n activeSchemas.add(schema);\n try {\n const rawSchemaType = getZodType(schema);\n if (rawSchemaType === 'pipe') {\n const inSchema = getZodDefSchemaProperty(schema, 'in');\n const outSchema = getZodDefSchemaProperty(schema, 'out');\n return mergeTemplatableFileFieldPaths([\n ...(inSchema ? collectTemplatableFileFieldPaths(inSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ...(outSchema ? collectTemplatableFileFieldPaths(outSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ]);\n }\n\n if (isZodOptional(schema) || isZodNullable(schema) || isZodDefault(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n return innerSchema\n ? collectTemplatableFileFieldPaths(innerSchema, pathPrefix, isInsideArray, activeSchemas)\n : [];\n }\n\n const unwrappedSchema = unwrapSchema(schema);\n if (unwrappedSchema !== schema) {\n return collectTemplatableFileFieldPaths(unwrappedSchema, pathPrefix, isInsideArray, activeSchemas);\n }\n\n if (isTemplatableFileField(unwrappedSchema)) {\n return pathPrefix ? [{ fieldName: pathPrefix, schema: unwrappedSchema, isInsideArray }] : [];\n }\n\n const schemaType = getZodType(unwrappedSchema);\n if (schemaType === 'lazy') {\n const lazyGetter = getZodDef(unwrappedSchema)?.getter;\n const lazySchema = typeof lazyGetter === 'function'\n ? lazyGetter()\n : undefined;\n return lazySchema\n ? collectTemplatableFileFieldPaths(lazySchema as z.ZodTypeAny, pathPrefix, isInsideArray, activeSchemas)\n : [];\n }\n\n if (schemaType === 'intersection') {\n const leftSchema = getZodDefSchemaProperty(unwrappedSchema, 'left');\n const rightSchema = getZodDefSchemaProperty(unwrappedSchema, 'right');\n return mergeTemplatableFileFieldPaths([\n ...(leftSchema ? collectTemplatableFileFieldPaths(leftSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ...(rightSchema ? collectTemplatableFileFieldPaths(rightSchema, pathPrefix, isInsideArray, activeSchemas) : []),\n ]);\n }\n\n if (schemaType === 'union') {\n const unionOptions = getZodDefArrayProperty(unwrappedSchema, 'options') as z.ZodTypeAny[] | undefined;\n return mergeTemplatableFileFieldPaths(\n (unionOptions ?? []).flatMap((option) =>\n collectTemplatableFileFieldPaths(option, pathPrefix, isInsideArray, activeSchemas)\n ),\n );\n }\n\n if (isZodArray(unwrappedSchema)) {\n const elementSchema = getZodDefProperty(unwrappedSchema, 'element') as z.ZodTypeAny | undefined;\n return elementSchema ? collectTemplatableFileFieldPaths(elementSchema, pathPrefix, true, activeSchemas) : [];\n }\n\n if (schemaType === 'record' || schemaType === 'map' || schemaType === 'set') {\n const valueSchema = getZodDefSchemaProperty(unwrappedSchema, 'valueType');\n return valueSchema\n ? collectTemplatableFileFieldPaths(valueSchema, pathPrefix, true, activeSchemas)\n : [];\n }\n\n if (schemaType === 'tuple') {\n const tupleItems = getZodDefArrayProperty(unwrappedSchema, 'items') as z.ZodTypeAny[] | undefined;\n const restSchema = getZodDefSchemaProperty(unwrappedSchema, 'rest');\n return mergeTemplatableFileFieldPaths([\n ...((tupleItems ?? []).flatMap((item) =>\n collectTemplatableFileFieldPaths(item, pathPrefix, true, activeSchemas)\n )),\n ...(restSchema ? collectTemplatableFileFieldPaths(restSchema, pathPrefix, true, activeSchemas) : []),\n ]);\n }\n\n if (!isZodObject(unwrappedSchema)) {\n return [];\n }\n\n const shape = getZodObjectShape(unwrappedSchema);\n return mergeTemplatableFileFieldPaths(\n Object.entries(shape).flatMap(([fieldName, fieldSchema]) => {\n const nextPath = pathPrefix ? `${pathPrefix}.${fieldName}` : fieldName;\n return collectTemplatableFileFieldPaths(fieldSchema as z.ZodTypeAny, nextPath, isInsideArray, activeSchemas);\n }),\n );\n } finally {\n activeSchemas.delete(schema);\n }\n}\n\nfunction mergeTemplatableFileFieldPaths(\n fields: TemplatableFileFieldPath[],\n): TemplatableFileFieldPath[] {\n const byFieldName = new Map<string, TemplatableFileFieldPath>();\n for (const field of fields) {\n const existing = byFieldName.get(field.fieldName);\n if (existing && !areTemplatableFileMetadataCompatible(existing.schema, field.schema)) {\n throw new IncompatibleTemplatableFileFieldPathError(\n field.fieldName,\n getFileMetadata(existing.schema),\n getFileMetadata(field.schema),\n );\n }\n byFieldName.set(field.fieldName, existing\n ? {\n ...existing,\n isInsideArray: existing.isInsideArray || field.isInsideArray,\n }\n : field);\n }\n return Array.from(byFieldName.values()).sort((left, right) =>\n left.fieldName.localeCompare(right.fieldName)\n );\n}\n\nfunction normalizeMetadataForComparison(value: unknown): unknown {\n if (Array.isArray(value)) {\n return value.map(normalizeMetadataForComparison);\n }\n\n if (value && typeof value === 'object') {\n return Object.fromEntries(\n Object.entries(value as Record<string, unknown>)\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([key, childValue]) => [key, normalizeMetadataForComparison(childValue)]),\n );\n }\n\n return value;\n}\n\nfunction areTemplatableFileMetadataCompatible(\n leftSchema: z.ZodTypeAny,\n rightSchema: z.ZodTypeAny,\n): boolean {\n return JSON.stringify(normalizeMetadataForComparison(getFileMetadata(leftSchema)))\n === JSON.stringify(normalizeMetadataForComparison(getFileMetadata(rightSchema)));\n}\n\n/**\n * Remove generated PDF file fields from request DTO schemas, including nested\n * structures and union arms. These fields are framework-owned outputs, so they\n * must never appear in frontend/authored write DTOs even when custom DTOs are\n * provided by an application.\n */\nexport function stripTemplatableFileFieldsRecursively(\n schema: z.ZodTypeAny,\n options: StripTemplatableFileFieldsOptions = {},\n activeSchemas: WeakSet<object> = new WeakSet<object>(),\n): z.ZodTypeAny {\n if (activeSchemas.has(schema)) {\n return schema;\n }\n activeSchemas.add(schema);\n\n try {\n /*\n * Wrappers hand back the ORIGINAL instance when nothing beneath them changed (#989).\n *\n * They used to rebuild `inner.optional()` unconditionally. A fresh wrapper is a different\n * instance, so the enclosing object read it as \"changed\" and was rebuilt too — and the rebuild\n * dropped the object's decorator metadata. A `z_address()` nested in any object therefore reached\n * the create and update request DTOs as a plain object, and the form rendered its parts as\n * unrelated text inputs. Identity is what tells the object branch nothing was stripped.\n */\n if (isZodOptional(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n if (!innerSchema) {\n return schema;\n }\n const strippedInner = stripTemplatableFileFieldsRecursively(innerSchema, options, activeSchemas);\n return strippedInner === innerSchema ? schema : carrySchemaMetadata(schema, strippedInner.optional());\n }\n\n if (isZodNullable(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n if (!innerSchema) {\n return schema;\n }\n const strippedInner = stripTemplatableFileFieldsRecursively(innerSchema, options, activeSchemas);\n return strippedInner === innerSchema ? schema : carrySchemaMetadata(schema, strippedInner.nullable());\n }\n\n if (isZodDefault(schema)) {\n const innerSchema = getZodDefSchemaProperty(schema, 'innerType');\n if (!innerSchema) {\n return schema;\n }\n const strippedInner = stripTemplatableFileFieldsRecursively(innerSchema, options, activeSchemas);\n if (strippedInner === innerSchema) {\n return schema;\n }\n // Re-READ the default per parse rather than carrying a value across. In Zod 4\n // `def.defaultValue` is a GETTER, so reading it here EVALUATES the default —\n // and this stripped schema is built once, at configuration time, so a value\n // read here would be frozen into every parse the process performs. (The old\n // `typeof defaultValue === 'function'` branch could never fire for a dynamic\n // default for the same reason: the getter returns the VALUE, not the factory.)\n return carrySchemaMetadata(schema, strippedInner.default(() => getZodDefProperty(schema, 'defaultValue') as unknown));\n }\n\n const schemaType = getZodType(schema);\n if (schemaType === 'pipe') {\n const inSchema = getZodDefSchemaProperty(schema, 'in');\n const outSchema = getZodDefSchemaProperty(schema, 'out');\n const strippedIn = inSchema\n ? stripTemplatableFileFieldsRecursively(inSchema, options, activeSchemas)\n : inSchema;\n const strippedOut = outSchema\n ? stripTemplatableFileFieldsRecursively(outSchema, options, activeSchemas)\n : outSchema;\n if (strippedIn === inSchema && strippedOut === outSchema) {\n return schema;\n }\n if (strippedIn && strippedOut) {\n return z.pipe(strippedIn, strippedOut);\n }\n return strippedOut ?? strippedIn ?? schema;\n }\n\n if (schemaType === 'lazy') {\n const lazyGetter = getZodDef(schema)?.getter;\n if (typeof lazyGetter !== 'function') {\n return schema;\n }\n return z.lazy(() =>\n stripTemplatableFileFieldsRecursively(lazyGetter() as z.ZodTypeAny, options, activeSchemas)\n );\n }\n\n if (schemaType === 'intersection') {\n const leftSchema = getZodDefSchemaProperty(schema, 'left');\n const rightSchema = getZodDefSchemaProperty(schema, 'right');\n const strippedLeft = leftSchema\n ? stripTemplatableFileFieldsRecursively(leftSchema, options, activeSchemas)\n : leftSchema;\n const strippedRight = rightSchema\n ? stripTemplatableFileFieldsRecursively(rightSchema, options, activeSchemas)\n : rightSchema;\n return strippedLeft === leftSchema && strippedRight === rightSchema\n ? schema\n : z.intersection(strippedLeft ?? z.object({}), strippedRight ?? z.object({}));\n }\n\n if (schemaType === 'union') {\n const discriminator = getZodDefStringProperty(schema, 'discriminator');\n const unionOptions = getZodDefArrayProperty(schema, 'options') as z.ZodTypeAny[] | undefined;\n if (!unionOptions?.length) {\n return schema;\n }\n\n const strippedOptions = unionOptions.map((option) =>\n stripTemplatableFileFieldsRecursively(option, options, activeSchemas)\n );\n if (strippedOptions.length < 2) {\n return strippedOptions[0] ?? schema;\n }\n if (strippedOptions.every((option, index) => option === unionOptions[index])) {\n return schema;\n }\n\n const rebuiltUnion: z.ZodTypeAny = discriminator\n ? z.discriminatedUnion(\n discriminator,\n strippedOptions as [z.ZodObject<any>, z.ZodObject<any>, ...z.ZodObject<any>[]],\n )\n : z.union(strippedOptions as [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]);\n return carrySchemaMetadata(schema, rebuiltUnion);\n }\n\n if (isZodArray(schema)) {\n const elementSchema = getZodDefProperty(schema, 'element') as z.ZodTypeAny | undefined;\n if (!elementSchema) {\n return schema;\n }\n\n const strippedElement = stripTemplatableFileFieldsRecursively(elementSchema, options, activeSchemas);\n\n // Nothing to strip inside the element — hand back the ORIGINAL schema, the same way the\n // intersection / record / map branches do.\n if (strippedElement === elementSchema) {\n return schema;\n }\n\n // The element WAS rewritten. `withArrayElement` keeps the array's own `.min()` / `.max()` /\n // `.length()` checks across the swap; a plain `z.array(strippedElement)` — what this branch\n // used to do unconditionally — drops them, so an authored constraint never reached the DTO\n // the controller and repository validate against.\n return withArrayElement(schema, strippedElement);\n }\n\n if (schemaType === 'record') {\n const keySchema = getZodDefSchemaProperty(schema, 'keyType');\n const valueSchema = getZodDefSchemaProperty(schema, 'valueType');\n const strippedValue = valueSchema\n ? stripTemplatableFileFieldsRecursively(valueSchema, options, activeSchemas)\n : valueSchema;\n return valueSchema && strippedValue !== valueSchema\n ? z.record((keySchema ?? z.string()) as any, strippedValue)\n : schema;\n }\n\n if (schemaType === 'map') {\n const keySchema = getZodDefSchemaProperty(schema, 'keyType');\n const valueSchema = getZodDefSchemaProperty(schema, 'valueType');\n const strippedValue = valueSchema\n ? stripTemplatableFileFieldsRecursively(valueSchema, options, activeSchemas)\n : valueSchema;\n return keySchema && valueSchema && strippedValue !== valueSchema\n ? z.map(keySchema, strippedValue)\n : schema;\n }\n\n if (schemaType === 'set') {\n const valueSchema = getZodDefSchemaProperty(schema, 'valueType');\n const strippedValue = valueSchema\n ? stripTemplatableFileFieldsRecursively(valueSchema, options, activeSchemas)\n : valueSchema;\n return valueSchema && strippedValue !== valueSchema\n ? z.set(strippedValue)\n : schema;\n }\n\n if (schemaType === 'tuple') {\n const tupleItems = getZodDefArrayProperty(schema, 'items') as z.ZodTypeAny[] | undefined;\n const restSchema = getZodDefSchemaProperty(schema, 'rest');\n const strippedItems = (tupleItems ?? []).map((item) =>\n stripTemplatableFileFieldsRecursively(item, options, activeSchemas)\n );\n const strippedRest = restSchema\n ? stripTemplatableFileFieldsRecursively(restSchema, options, activeSchemas)\n : restSchema;\n const changed = strippedItems.some((item, index) => item !== tupleItems?.[index])\n || strippedRest !== restSchema;\n if (!changed) {\n return schema;\n }\n const rebuiltTuple = z.tuple(strippedItems as any);\n return strippedRest ? rebuiltTuple.rest(strippedRest) : rebuiltTuple;\n }\n\n if (!isZodObject(schema)) {\n return schema;\n }\n\n const shape = getZodObjectShape(schema);\n const strippedShape: Record<string, z.ZodTypeAny> = {};\n let changed = false;\n\n for (const [fieldName, fieldSchema] of Object.entries(shape)) {\n const typedSchema = fieldSchema as z.ZodTypeAny;\n if (isTemplatableFileField(typedSchema)) {\n changed = true;\n continue;\n }\n\n const strippedSchema = stripTemplatableFileFieldsRecursively(typedSchema, options, activeSchemas);\n if (strippedSchema !== typedSchema) {\n changed = true;\n }\n strippedShape[fieldName] = strippedSchema;\n }\n\n if (!changed) {\n return schema;\n }\n\n return options.rebuildObjectSchema\n ? options.rebuildObjectSchema(schema, strippedShape)\n : rebuildObjectSchemaPreservingSemantics(schema, strippedShape);\n } finally {\n activeSchemas.delete(schema);\n }\n}\n\nfunction rebuildObjectSchemaPreservingSemantics(\n schema: z.ZodObject<any>,\n strippedShape: Record<string, z.ZodTypeAny>,\n): z.ZodTypeAny {\n const originalShape = getZodObjectShape(schema);\n const removedFields = Object.keys(originalShape).filter((fieldName) => !(fieldName in strippedShape));\n\n try {\n const omittedSchema = removedFields.length > 0\n ? schema.omit(Object.fromEntries(removedFields.map((fieldName) => [fieldName, true])) as Record<string, true>)\n : schema;\n\n const extended = omittedSchema.extend(strippedShape);\n // Same field set, only a nested field replaced: the object is still what its metadata describes.\n // A field REMOVED means it may not be, so the metadata stays behind on that path (#989).\n return removedFields.length === 0 ? carrySchemaMetadata(schema, extended) : extended;\n } catch {\n const rebuiltSchema = z.object(strippedShape);\n const catchallSchema = getZodDefProperty(schema, 'catchall') as z.ZodTypeAny | undefined;\n const rebuilt = catchallSchema ? rebuiltSchema.catchall(catchallSchema) : rebuiltSchema;\n return removedFields.length === 0 ? carrySchemaMetadata(schema, rebuilt) : rebuilt;\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** @wildo_source:part:start saas.models.work-unit-ref facet:layer:shared facet:audience:app-developer */
|
|
3
|
+
/**
|
|
4
|
+
* A reference to one CASE — the unit of work an application sells an outcome for (a matter, a file, a
|
|
5
|
+
* claim, a ticket). Model-call cost attribution, expert decisions on agent work and agent turns all carry it
|
|
6
|
+
* as `caseRef`. Import it from `@wildo-ai/saas-models`.
|
|
7
|
+
*
|
|
8
|
+
* `resourceType` is an OPEN application identifier (resource names are not a closed vocabulary), so the
|
|
9
|
+
* shape alone proves nothing: a ref is accepted at a service boundary only after the registry confirms
|
|
10
|
+
* the resource exists and the caller's own authorization can READ that row. The tenant is always derived
|
|
11
|
+
* from the row, never from the caller. And the resource must declare `workUnit: true` in its resource
|
|
12
|
+
* configuration: a ref to any other resource is refused as NOT_A_WORK_UNIT.
|
|
13
|
+
*/
|
|
14
|
+
export declare const WorkUnitRefSchema: z.ZodObject<{
|
|
15
|
+
resourceType: z.ZodString;
|
|
16
|
+
resourceId: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export type WorkUnitRef = z.infer<typeof WorkUnitRefSchema>;
|
|
19
|
+
/** @wildo_source:part:end saas.models.work-unit-ref */
|
|
20
|
+
//# sourceMappingURL=work-unit.shared.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-unit.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/resources/work-unit.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yGAAyG;AACzG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;;;kBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,uDAAuD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** @wildo_source:part:start saas.models.work-unit-ref facet:layer:shared facet:audience:app-developer */
|
|
3
|
+
/**
|
|
4
|
+
* A reference to one CASE — the unit of work an application sells an outcome for (a matter, a file, a
|
|
5
|
+
* claim, a ticket). Model-call cost attribution, expert decisions on agent work and agent turns all carry it
|
|
6
|
+
* as `caseRef`. Import it from `@wildo-ai/saas-models`.
|
|
7
|
+
*
|
|
8
|
+
* `resourceType` is an OPEN application identifier (resource names are not a closed vocabulary), so the
|
|
9
|
+
* shape alone proves nothing: a ref is accepted at a service boundary only after the registry confirms
|
|
10
|
+
* the resource exists and the caller's own authorization can READ that row. The tenant is always derived
|
|
11
|
+
* from the row, never from the caller. And the resource must declare `workUnit: true` in its resource
|
|
12
|
+
* configuration: a ref to any other resource is refused as NOT_A_WORK_UNIT.
|
|
13
|
+
*/
|
|
14
|
+
export const WorkUnitRefSchema = z.strictObject({
|
|
15
|
+
resourceType: z.string().min(1).max(120).describe('Name of the resource the case is a row of, as the API names it (for example `todos`). The resource must exist, and the caller must be able to read the row.'),
|
|
16
|
+
resourceId: z.string().min(1).max(200).describe('Id of that row. The case belongs to the organization that owns the row, whatever organization the request names.'),
|
|
17
|
+
});
|
|
18
|
+
/** @wildo_source:part:end saas.models.work-unit-ref */
|
|
19
|
+
//# sourceMappingURL=work-unit.shared.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-unit.shared.schemas.js","sourceRoot":"","sources":["../../../src/resources/work-unit.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yGAAyG;AACzG;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,6JAA6J,CAAC;IAChN,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,kHAAkH,CAAC;CACpK,CAAC,CAAC;AAEH,uDAAuD","sourcesContent":["import { z } from 'zod';\n\n/** @wildo_source:part:start saas.models.work-unit-ref facet:layer:shared facet:audience:app-developer */\n/**\n * A reference to one CASE — the unit of work an application sells an outcome for (a matter, a file, a\n * claim, a ticket). Model-call cost attribution, expert decisions on agent work and agent turns all carry it\n * as `caseRef`. Import it from `@wildo-ai/saas-models`.\n *\n * `resourceType` is an OPEN application identifier (resource names are not a closed vocabulary), so the\n * shape alone proves nothing: a ref is accepted at a service boundary only after the registry confirms\n * the resource exists and the caller's own authorization can READ that row. The tenant is always derived\n * from the row, never from the caller. And the resource must declare `workUnit: true` in its resource\n * configuration: a ref to any other resource is refused as NOT_A_WORK_UNIT.\n */\nexport const WorkUnitRefSchema = z.strictObject({\n resourceType: z.string().min(1).max(120).describe('Name of the resource the case is a row of, as the API names it (for example `todos`). The resource must exist, and the caller must be able to read the row.'),\n resourceId: z.string().min(1).max(200).describe('Id of that row. The case belongs to the organization that owns the row, whatever organization the request names.'),\n});\nexport type WorkUnitRef = z.infer<typeof WorkUnitRefSchema>;\n/** @wildo_source:part:end saas.models.work-unit-ref */\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-module.shared.definitions.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"domain-module.shared.definitions.d.ts","sourceRoot":"","sources":["../../../src/runtime/domain-module.shared.definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,KAAK,EAAE,oBAAoB,EAAiC,MAAM,+CAA+C,CAAC;AAKzH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAC7F,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;A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,CAAC;IACzC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,4BAA4B,CAAC,EAAE,2BAA2B,EAAE,CAAC;CAC9D;AACD,4DAA4D;AAE5D,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,sBAAsB,EAAE,8CAA8C,CAAC;IACvE,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,qBAAqB,EAAE,oBAAoB,EAAE,CAAC;IAC9C,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,wBAAwB,EAAE,iCAAiC,EAAE,CAAC;IAC9D,0BAA0B,CAAC,EAAE,gBAAgB,CAAC,4BAA4B,CAAC,CAAC;IAC5E,0BAA0B,EAAE,mBAAmB,EAAE,CAAC;IAClD,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,4BAA4B,EAAE,2BAA2B,EAAE,CAAC;CAC7D;AAED,wBAAgB,8BAA8B,CAC5C,GAAG,OAAO,EAAE,gBAAgB,EAAE,GAC7B,yBAAyB,CAgD3B;AAED,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,yBAAyB,GAClC,+BAA+B,GAAG,SAAS,CAuC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-module.shared.definitions.js","sourceRoot":"","sources":["../../../../src/runtime/domain-module.shared.definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,6BAA6B,IAAI,iCAAiC,EAClE,2BAA2B,GAC5B,MAAM,+CAA+C,CAAC;AAwBvD,MAAM,UAAU,wBAAwB,CACtC,GAAG,OAA6B;IAEhC,OAAO;QACL,sBAAsB,EAAE,MAAM,CAAC,MAAM,CACnC,EAAE,EACF,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CACgB;QAC/E,wBAAwB,EAAE,MAAM,CAAC,MAAM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;gBACrD,CAAC,2BAA2B,CAAC,cAAc,CAAC,EAC1C,QAAQ,CAAC,0BAA0B,EAAE,oBAAoB,EAAE,cAAc,EAAE,CAAC,2BAA2B,CAAC,cAAc,CAAC;uBACpH,iCAAiC,CAAC,oBAAoB;gBAC3D,CAAC,2BAA2B,CAAC,cAAc,CAAC,EAC1C,QAAQ,CAAC,0BAA0B,EAAE,oBAAoB,EAAE,cAAc,EAAE,CAAC,2BAA2B,CAAC,cAAc,CAAC;uBACpH,iCAAiC,CAAC,IAAI;aAC5C;SACF;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,IAAI,CAAC,cAAc,IAAI,CAAC,WAAW,IAAI,CAAC,iBAAiB,IAAI,CAAC,SAAS,EAAE,CAAC;QACxE,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS;QAC3E,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;QACjF,cAAc,EAAE,QAAQ,CAAC,0BAA0B,EAAE,cAAc;QACnE,oBAAoB,EAAE,4BAA4B;KACnD,CAAC;AACJ,CAAC","sourcesContent":["import type { ProductDefinition } from '../billing/product-definition.shared.schemas';\nimport type { FeatureConfiguration, FeatureUnavailabilityBehavior } from '../features/feature-definition.shared.schemas';\nimport {\n FeatureUnavailabilityBehavior as FeatureUnavailabilityBehaviorEnum,\n FeatureUnavailabilityReason,\n} from '../features/feature-definition.shared.schemas';\nimport type { FeatureDefinitionWithAutoRegister } from '../features/feature-builders.shared';\nimport type { CustomFeatureConfigurationInput } from '../features/feature-registry.shared';\nimport type { ScopeFeatures } from '../features/scope-features.shared.schemas';\nimport type { MilestoneDefinition } from '../guidance/milestone-definition.shared.schemas';\nimport type { NotificationBadgeDefinition } from '../notifications/notification-badges.schemas';\nimport type {\n ResourceConfiguration_InitializationFactory,\n ResourceConfiguration_InitializationFactoryMap,\n} from '../resources/resources-config.shared.schemas';\nimport type { ResourceRelationship } from '../resources/resources.shared.schemas';\nimport type { RolesConfiguration } from '../security/authorizations/roles.shared.schemas';\n\n/**\n * @wildo_source:part:start saas.models.shared-domain-module facet:layer:shared facet:family:module\n *\n * Cross-runtime module slice: resource factories, field identifiers, and relationship declarations merged across packages.\n */\nexport interface SharedDomainModule {\n resourceConfigurations?: Record<string, ResourceConfiguration_InitializationFactory<any, any, any>>;\n resourceFieldIdentifiers?: Record<string, string>;\n resourceRelationships?: ResourceRelationship[];\n}\n\nexport function mergeSharedDomainModules(\n ...modules: SharedDomainModule[]\n): SharedDomainModule {\n return {\n resourceConfigurations: Object.assign(\n {},\n ...modules.map(m => m.resourceConfigurations).filter(Boolean),\n ) as Record<string, ResourceConfiguration_InitializationFactory<any, any, any>>,\n resourceFieldIdentifiers: Object.assign(\n {},\n ...modules.map(m => m.resourceFieldIdentifiers).filter(Boolean),\n ) as Record<string, string>,\n resourceRelationships: modules.flatMap(m => m.resourceRelationships ?? []),\n };\n}\n/** @wildo_source:part:end saas.models.shared-domain-module */\n\nexport type ApplicationModuleKind = 'domain' | 'engine';\n\n/**\n * @wildo_source:part:start saas.models.shared-saas-module facet:layer:shared facet:family:module\n *\n * App module contract: id, kind, roles, feature/milestone/product/notification-badge definition hooks layered on shared resources.\n */\nexport interface SharedSaaSModule extends SharedDomainModule {\n moduleId: string;\n kind?: ApplicationModuleKind;\n customRoles?: RolesConfiguration;\n customFeatureDefinitions?: FeatureDefinitionWithAutoRegister[];\n customFeatureConfiguration?: {\n profiles?: Record<string, ScopeFeatures>;\n defaultProfile?: string;\n unavailabilityPolicy?: Partial<FeatureConfiguration['unavailabilityPolicy']>;\n };\n /**\n * Progression milestones this module owns.\n *\n * ⚠️ **Milestones need the ANALYTICS capability enabled to appear at all.** The frontend fetches\n * milestone definitions only when analytics is on and returns an empty list otherwise, so with it\n * off the definitions never arrive and the progression tracker renders nothing — declared\n * correctly, and invisible.\n *\n * Enabling analytics with an EMPTY provider list is what lights up the internal progression plane\n * without any telemetry leaving the application. That is the configuration to reach for when an\n * application wants progression and not tracking.\n */\n customMilestoneDefinitions?: MilestoneDefinition[];\n productDefinitions?: ProductDefinition[];\n /**\n * Notification badge definitions owned by this module (a module declares the\n * badges derived from / driven by its own resources — e.g. a tasks module owns\n * an \"incomplete todos\" count). Aggregated across modules by\n * `buildSharedSaaSModulesRegistry` and threaded into the app init config, so a\n * module owns its badge concern end-to-end with no app-level wiring.\n *\n * The framework ships NO badges of its own — every badge in an application is one that application\n * declared.\n *\n * Two limits worth knowing before designing around one. A badge is scoped to a USER or to an\n * ORGANIZATION and to nothing else; there is no application-wide scope. And a DERIVED badge is\n * recomputed off the resource operation's own dispatch, so a change written by some other route\n * does not move it — a client sees the corrected count on its next connection rather than\n * immediately.\n *\n * A badge reference that does not resolve renders nothing, deliberately. The configuration\n * verifier is what makes that loud: an unresolvable badge reference on a launcher item is reported\n * when the application's navigation content is checked.\n */\n notificationBadgeDefinitions?: NotificationBadgeDefinition[];\n}\n/** @wildo_source:part:end saas.models.shared-saas-module */\n\nexport interface SharedSaaSModulesRegistry {\n moduleIds: string[];\n resourceConfigurations: ResourceConfiguration_InitializationFactoryMap;\n resourceFieldIdentifiers: Record<string, string>;\n resourceRelationships: ResourceRelationship[];\n customRoles?: RolesConfiguration;\n customFeatureDefinitions: FeatureDefinitionWithAutoRegister[];\n customFeatureConfiguration?: SharedSaaSModule['customFeatureConfiguration'];\n customMilestoneDefinitions: MilestoneDefinition[];\n productDefinitions: ProductDefinition[];\n notificationBadgeDefinitions: NotificationBadgeDefinition[];\n}\n\nexport function buildSharedSaaSModulesRegistry(\n ...modules: SharedSaaSModule[]\n): SharedSaaSModulesRegistry {\n const mergedSharedModule = mergeSharedDomainModules(...modules);\n const mergedFeatureProfiles = Object.assign(\n {},\n ...modules.map((module) => module.customFeatureConfiguration?.profiles ?? {}),\n ) as Record<string, ScopeFeatures>;\n const hasFeatureProfiles = Object.keys(mergedFeatureProfiles).length > 0;\n\n const mergedUnavailabilityPolicy = Object.assign(\n {},\n ...modules\n .map((module) => module.customFeatureConfiguration?.unavailabilityPolicy)\n .filter(Boolean),\n ) as Partial<FeatureConfiguration['unavailabilityPolicy']>;\n const hasUnavailabilityPolicy = Object.keys(mergedUnavailabilityPolicy).length > 0;\n\n const defaultProfile = [...modules]\n .reverse()\n .find((module) => module.customFeatureConfiguration?.defaultProfile)\n ?.customFeatureConfiguration?.defaultProfile;\n\n const customFeatureConfiguration = hasFeatureProfiles || defaultProfile || hasUnavailabilityPolicy\n ? {\n profiles: hasFeatureProfiles ? mergedFeatureProfiles : undefined,\n defaultProfile,\n unavailabilityPolicy: hasUnavailabilityPolicy ? mergedUnavailabilityPolicy : undefined,\n }\n : undefined;\n\n const mergedRoles = Object.assign(\n {},\n ...modules.map((module) => module.customRoles ?? {}),\n ) as RolesConfiguration;\n\n return {\n moduleIds: modules\n .filter((module) => module.kind !== 'engine')\n .map((module) => module.moduleId),\n resourceConfigurations: (mergedSharedModule.resourceConfigurations ?? {}) as ResourceConfiguration_InitializationFactoryMap,\n resourceFieldIdentifiers: mergedSharedModule.resourceFieldIdentifiers ?? {},\n resourceRelationships: mergedSharedModule.resourceRelationships ?? [],\n customRoles: Object.keys(mergedRoles).length > 0 ? mergedRoles : undefined,\n customFeatureDefinitions: modules.flatMap((module) => module.customFeatureDefinitions ?? []),\n customFeatureConfiguration,\n customMilestoneDefinitions: modules.flatMap((module) => module.customMilestoneDefinitions ?? []),\n productDefinitions: modules.flatMap((module) => module.productDefinitions ?? []),\n notificationBadgeDefinitions: modules.flatMap((module) => module.notificationBadgeDefinitions ?? []),\n };\n}\n\nexport function buildFrontendFeatureConfigurationInput(\n registry: SharedSaaSModulesRegistry,\n): CustomFeatureConfigurationInput | undefined {\n const hasDefinitions = registry.customFeatureDefinitions.length > 0;\n const hasProfiles = Boolean(registry.customFeatureConfiguration?.profiles)\n && Object.keys(registry.customFeatureConfiguration?.profiles ?? {}).length > 0;\n const hasDefaultProfile = Boolean(registry.customFeatureConfiguration?.defaultProfile);\n const hasPolicy = Boolean(registry.customFeatureConfiguration?.unavailabilityPolicy)\n && Object.keys(registry.customFeatureConfiguration?.unavailabilityPolicy ?? {}).length > 0;\n\n const resolvedUnavailabilityPolicy: FeatureConfiguration['unavailabilityPolicy'] | undefined = hasPolicy\n ? {\n defaultBehavior: registry.customFeatureConfiguration?.unavailabilityPolicy?.defaultBehavior\n ?? FeatureUnavailabilityBehaviorEnum.UPGRADE_PROMPT,\n whenBillingDisabled: registry.customFeatureConfiguration?.unavailabilityPolicy?.whenBillingDisabled\n ?? FeatureUnavailabilityBehaviorEnum.HIDE,\n roleDefaults: registry.customFeatureConfiguration?.unavailabilityPolicy?.roleDefaults ?? {},\n reasonDefaults: {\n [FeatureUnavailabilityReason.FEATURE_NOT_ENABLED]:\n registry.customFeatureConfiguration?.unavailabilityPolicy?.reasonDefaults?.[FeatureUnavailabilityReason.FEATURE_NOT_ENABLED]\n ?? FeatureUnavailabilityBehaviorEnum.UPGRADE_PROMPT,\n [FeatureUnavailabilityReason.LIMIT_EXCEEDED]:\n registry.customFeatureConfiguration?.unavailabilityPolicy?.reasonDefaults?.[FeatureUnavailabilityReason.LIMIT_EXCEEDED]\n ?? FeatureUnavailabilityBehaviorEnum.LIMIT_UPGRADE_PROMPT,\n [FeatureUnavailabilityReason.NOT_CONFIGURED]:\n registry.customFeatureConfiguration?.unavailabilityPolicy?.reasonDefaults?.[FeatureUnavailabilityReason.NOT_CONFIGURED]\n ?? FeatureUnavailabilityBehaviorEnum.HIDE,\n },\n }\n : undefined;\n\n if (!hasDefinitions && !hasProfiles && !hasDefaultProfile && !hasPolicy) {\n return undefined;\n }\n\n return {\n definitions: hasDefinitions ? registry.customFeatureDefinitions : undefined,\n profiles: hasProfiles ? registry.customFeatureConfiguration?.profiles : undefined,\n defaultProfile: registry.customFeatureConfiguration?.defaultProfile,\n unavailabilityPolicy: resolvedUnavailabilityPolicy,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"domain-module.shared.definitions.js","sourceRoot":"","sources":["../../../src/runtime/domain-module.shared.definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,6BAA6B,IAAI,iCAAiC,EAClE,2BAA2B,GAC5B,MAAM,+CAA+C,CAAC;AAwBvD,MAAM,UAAU,wBAAwB,CACtC,GAAG,OAA6B;IAEhC,OAAO;QACL,sBAAsB,EAAE,MAAM,CAAC,MAAM,CACnC,EAAE,EACF,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CACgB;QAC/E,wBAAwB,EAAE,MAAM,CAAC,MAAM,CACrC,EAAE,EACF,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CACtC;QAC3B,qBAAqB,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAqB,IAAI,EAAE,CAAC;KAC3E,CAAC;AACJ,CAAC;AAuED,MAAM,UAAU,8BAA8B,CAC5C,GAAG,OAA2B;IAE9B,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,GAAG,OAAO,CAAC,CAAC;IAChE,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CACzC,EAAE,EACF,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,0BAA0B,EAAE,QAAQ,IAAI,EAAE,CAAC,CAC7C,CAAC;IACnC,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IAEzE,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAC9C,EAAE,EACF,GAAG,OAA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,EAAE,cAAc;QACnE,oBAAoB,EAAE,4BAA4B;KACnD,CAAC;AACJ,CAAC","sourcesContent":["import type { ProductDefinition } from '../billing/product-definition.shared.schemas';\nimport type { FeatureConfiguration, FeatureUnavailabilityBehavior } from '../features/feature-definition.shared.schemas';\nimport {\n FeatureUnavailabilityBehavior as FeatureUnavailabilityBehaviorEnum,\n FeatureUnavailabilityReason,\n} from '../features/feature-definition.shared.schemas';\nimport type { FeatureDefinitionWithAutoRegister } from '../features/feature-builders.shared';\nimport type { CustomFeatureConfigurationInput } from '../features/feature-registry.shared';\nimport type { ScopeFeatures } from '../features/scope-features.shared.schemas';\nimport type { MilestoneDefinition } from '../guidance/milestone-definition.shared.schemas';\nimport type { NotificationBadgeDefinition } from '../notifications/notification-badges.schemas';\nimport type {\n ResourceConfiguration_InitializationFactory,\n ResourceConfiguration_InitializationFactoryMap,\n} from '../resources/resources-config.shared.schemas';\nimport type { ResourceRelationship } from '../resources/resources.shared.schemas';\nimport type { RolesConfiguration } from '../security/authorizations/roles.shared.schemas';\n\n/**\n * @wildo_source:part:start saas.models.shared-domain-module facet:layer:shared facet:family:module\n *\n * Cross-runtime module slice: resource factories, field identifiers, and relationship declarations merged across packages.\n */\nexport interface SharedDomainModule {\n resourceConfigurations?: Record<string, ResourceConfiguration_InitializationFactory<any, any, any>>;\n resourceFieldIdentifiers?: Record<string, string>;\n resourceRelationships?: ResourceRelationship[];\n}\n\nexport function mergeSharedDomainModules(\n ...modules: SharedDomainModule[]\n): SharedDomainModule {\n return {\n resourceConfigurations: Object.assign(\n {},\n ...modules.map(m => m.resourceConfigurations).filter(Boolean),\n ) as Record<string, ResourceConfiguration_InitializationFactory<any, any, any>>,\n resourceFieldIdentifiers: Object.assign(\n {},\n ...modules.map(m => m.resourceFieldIdentifiers).filter(Boolean),\n ) as Record<string, string>,\n resourceRelationships: modules.flatMap(m => m.resourceRelationships ?? []),\n };\n}\n/** @wildo_source:part:end saas.models.shared-domain-module */\n\nexport type ApplicationModuleKind = 'domain' | 'engine';\n\n/**\n * @wildo_source:part:start saas.models.shared-saas-module facet:layer:shared facet:family:module\n *\n * App module contract: id, kind, roles, feature/milestone/product/notification-badge definition hooks layered on shared resources.\n */\nexport interface SharedSaaSModule extends SharedDomainModule {\n moduleId: string;\n kind?: ApplicationModuleKind;\n customRoles?: RolesConfiguration;\n customFeatureDefinitions?: FeatureDefinitionWithAutoRegister[];\n customFeatureConfiguration?: {\n profiles?: Record<string, ScopeFeatures>;\n defaultProfile?: string;\n unavailabilityPolicy?: Partial<FeatureConfiguration['unavailabilityPolicy']>;\n };\n /**\n * Progression milestones this module owns.\n *\n * ⚠️ **Milestones need the ANALYTICS capability enabled to appear at all.** The frontend fetches\n * milestone definitions only when analytics is on and returns an empty list otherwise, so with it\n * off the definitions never arrive and the progression tracker renders nothing — declared\n * correctly, and invisible.\n *\n * Enabling analytics with an EMPTY provider list is what lights up the internal progression plane\n * without any telemetry leaving the application. That is the configuration to reach for when an\n * application wants progression and not tracking.\n */\n customMilestoneDefinitions?: MilestoneDefinition[];\n productDefinitions?: ProductDefinition[];\n /**\n * Notification badge definitions owned by this module (a module declares the\n * badges derived from / driven by its own resources — e.g. a tasks module owns\n * an \"incomplete todos\" count). Aggregated across modules by\n * `buildSharedSaaSModulesRegistry` and threaded into the app init config, so a\n * module owns its badge concern end-to-end with no app-level wiring.\n *\n * The framework ships NO badges of its own — every badge in an application is one that application\n * declared.\n *\n * Two limits worth knowing before designing around one. A badge is scoped to a USER or to an\n * ORGANIZATION and to nothing else; there is no application-wide scope. And a DERIVED badge is\n * recomputed off the resource operation's own dispatch, so a change written by some other route\n * does not move it — a client sees the corrected count on its next connection rather than\n * immediately.\n *\n * A badge reference that does not resolve renders nothing, deliberately. The configuration\n * verifier is what makes that loud: an unresolvable badge reference on a launcher item is reported\n * when the application's navigation content is checked.\n */\n notificationBadgeDefinitions?: NotificationBadgeDefinition[];\n}\n/** @wildo_source:part:end saas.models.shared-saas-module */\n\nexport interface SharedSaaSModulesRegistry {\n moduleIds: string[];\n resourceConfigurations: ResourceConfiguration_InitializationFactoryMap;\n resourceFieldIdentifiers: Record<string, string>;\n resourceRelationships: ResourceRelationship[];\n customRoles?: RolesConfiguration;\n customFeatureDefinitions: FeatureDefinitionWithAutoRegister[];\n customFeatureConfiguration?: SharedSaaSModule['customFeatureConfiguration'];\n customMilestoneDefinitions: MilestoneDefinition[];\n productDefinitions: ProductDefinition[];\n notificationBadgeDefinitions: NotificationBadgeDefinition[];\n}\n\nexport function buildSharedSaaSModulesRegistry(\n ...modules: SharedSaaSModule[]\n): SharedSaaSModulesRegistry {\n const mergedSharedModule = mergeSharedDomainModules(...modules);\n const mergedFeatureProfiles = Object.assign(\n {},\n ...modules.map((module) => module.customFeatureConfiguration?.profiles ?? {}),\n ) as Record<string, ScopeFeatures>;\n const hasFeatureProfiles = Object.keys(mergedFeatureProfiles).length > 0;\n\n const mergedUnavailabilityPolicy = Object.assign(\n {},\n ...modules\n .map((module) => module.customFeatureConfiguration?.unavailabilityPolicy)\n .filter(Boolean),\n ) as Partial<FeatureConfiguration['unavailabilityPolicy']>;\n const hasUnavailabilityPolicy = Object.keys(mergedUnavailabilityPolicy).length > 0;\n\n const defaultProfile = [...modules]\n .reverse()\n .find((module) => module.customFeatureConfiguration?.defaultProfile)\n ?.customFeatureConfiguration?.defaultProfile;\n\n const customFeatureConfiguration = hasFeatureProfiles || defaultProfile || hasUnavailabilityPolicy\n ? {\n profiles: hasFeatureProfiles ? mergedFeatureProfiles : undefined,\n defaultProfile,\n unavailabilityPolicy: hasUnavailabilityPolicy ? mergedUnavailabilityPolicy : undefined,\n }\n : undefined;\n\n const mergedRoles = Object.assign(\n {},\n ...modules.map((module) => module.customRoles ?? {}),\n ) as RolesConfiguration;\n\n return {\n moduleIds: modules\n .filter((module) => module.kind !== 'engine')\n .map((module) => module.moduleId),\n resourceConfigurations: (mergedSharedModule.resourceConfigurations ?? {}) as ResourceConfiguration_InitializationFactoryMap,\n resourceFieldIdentifiers: mergedSharedModule.resourceFieldIdentifiers ?? {},\n resourceRelationships: mergedSharedModule.resourceRelationships ?? [],\n customRoles: Object.keys(mergedRoles).length > 0 ? mergedRoles : undefined,\n customFeatureDefinitions: modules.flatMap((module) => module.customFeatureDefinitions ?? []),\n customFeatureConfiguration,\n customMilestoneDefinitions: modules.flatMap((module) => module.customMilestoneDefinitions ?? []),\n productDefinitions: modules.flatMap((module) => module.productDefinitions ?? []),\n notificationBadgeDefinitions: modules.flatMap((module) => module.notificationBadgeDefinitions ?? []),\n };\n}\n\nexport function buildFrontendFeatureConfigurationInput(\n registry: SharedSaaSModulesRegistry,\n): CustomFeatureConfigurationInput | undefined {\n const hasDefinitions = registry.customFeatureDefinitions.length > 0;\n const hasProfiles = Boolean(registry.customFeatureConfiguration?.profiles)\n && Object.keys(registry.customFeatureConfiguration?.profiles ?? {}).length > 0;\n const hasDefaultProfile = Boolean(registry.customFeatureConfiguration?.defaultProfile);\n const hasPolicy = Boolean(registry.customFeatureConfiguration?.unavailabilityPolicy)\n && Object.keys(registry.customFeatureConfiguration?.unavailabilityPolicy ?? {}).length > 0;\n\n const resolvedUnavailabilityPolicy: FeatureConfiguration['unavailabilityPolicy'] | undefined = hasPolicy\n ? {\n defaultBehavior: registry.customFeatureConfiguration?.unavailabilityPolicy?.defaultBehavior\n ?? FeatureUnavailabilityBehaviorEnum.UPGRADE_PROMPT,\n whenBillingDisabled: registry.customFeatureConfiguration?.unavailabilityPolicy?.whenBillingDisabled\n ?? FeatureUnavailabilityBehaviorEnum.HIDE,\n roleDefaults: registry.customFeatureConfiguration?.unavailabilityPolicy?.roleDefaults ?? {},\n reasonDefaults: {\n [FeatureUnavailabilityReason.FEATURE_NOT_ENABLED]:\n registry.customFeatureConfiguration?.unavailabilityPolicy?.reasonDefaults?.[FeatureUnavailabilityReason.FEATURE_NOT_ENABLED]\n ?? FeatureUnavailabilityBehaviorEnum.UPGRADE_PROMPT,\n [FeatureUnavailabilityReason.LIMIT_EXCEEDED]:\n registry.customFeatureConfiguration?.unavailabilityPolicy?.reasonDefaults?.[FeatureUnavailabilityReason.LIMIT_EXCEEDED]\n ?? FeatureUnavailabilityBehaviorEnum.LIMIT_UPGRADE_PROMPT,\n [FeatureUnavailabilityReason.NOT_CONFIGURED]:\n registry.customFeatureConfiguration?.unavailabilityPolicy?.reasonDefaults?.[FeatureUnavailabilityReason.NOT_CONFIGURED]\n ?? FeatureUnavailabilityBehaviorEnum.HIDE,\n },\n }\n : undefined;\n\n if (!hasDefinitions && !hasProfiles && !hasDefaultProfile && !hasPolicy) {\n return undefined;\n }\n\n return {\n definitions: hasDefinitions ? registry.customFeatureDefinitions : undefined,\n profiles: hasProfiles ? registry.customFeatureConfiguration?.profiles : undefined,\n defaultProfile: registry.customFeatureConfiguration?.defaultProfile,\n unavailabilityPolicy: resolvedUnavailabilityPolicy,\n };\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { ResourcePrimaryScope } from "../resources/resources.shared.schemas";
|
|
3
|
+
import { InboundChannelKind, InboundSenderAssurance } from "../inbound/inbound-channels.shared.schemas";
|
|
3
4
|
/**
|
|
4
5
|
* Execution type enum defining how the execution context was initiated.
|
|
5
6
|
*
|
|
@@ -37,7 +38,22 @@ export declare enum ExecutionContext_ExecutionType {
|
|
|
37
38
|
* Created by WebhookHandlerBackendService after signature verification + scope resolution.
|
|
38
39
|
*/
|
|
39
40
|
WEBHOOK_CALLBACK = "webhook_callback",
|
|
40
|
-
ANONYMOUS_SESSION = "anonymous_session"
|
|
41
|
+
ANONYMOUS_SESSION = "anonymous_session",
|
|
42
|
+
/**
|
|
43
|
+
* An application-declared inbound HANDLER running one verified, durably stored delivery (#1596).
|
|
44
|
+
*
|
|
45
|
+
* Unlike `WEBHOOK_CALLBACK`, this is an AUTHORIZED principal: it carries the handler's declared
|
|
46
|
+
* `actingRoles` as its roles, is pinned to the one scope the delivery resolved to, and goes through
|
|
47
|
+
* role authorization, organization-unit narrowing, scope-root confinement and cross-tenant read
|
|
48
|
+
* observation exactly like a user. `WEBHOOK_CALLBACK` skips all four because signature verification
|
|
49
|
+
* is its whole trust story; application code must never inherit that, or a handler would be
|
|
50
|
+
* role-free and cross-tenant.
|
|
51
|
+
*
|
|
52
|
+
* `initiatorIds` is REQUIRED and names the delivery (`inboundDeliveryId`) and the handler
|
|
53
|
+
* (`inboundHandlerRef`); it never carries a user or a machine credential — nobody authenticated, a
|
|
54
|
+
* sender's signature was verified.
|
|
55
|
+
*/
|
|
56
|
+
INBOUND_DELIVERY = "inbound_delivery"
|
|
41
57
|
}
|
|
42
58
|
/**
|
|
43
59
|
* How a MACHINE principal ({@link ExecutionContext_ExecutionType.ORGANIZATION_MACHINE} /
|
|
@@ -96,6 +112,13 @@ export declare const ExecutionContext_InitiatorIdsSchema: z.ZodObject<{
|
|
|
96
112
|
consumableTokenId: z.ZodOptional<z.ZodString>;
|
|
97
113
|
webhookProviderId: z.ZodOptional<z.ZodString>;
|
|
98
114
|
anonymousUserId: z.ZodOptional<z.ZodString>;
|
|
115
|
+
inboundDeliveryId: z.ZodOptional<z.ZodString>;
|
|
116
|
+
inboundHandlerRef: z.ZodOptional<z.ZodString>;
|
|
117
|
+
inboundScopeUserId: z.ZodOptional<z.ZodString>;
|
|
118
|
+
inboundSender: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
channel: z.ZodEnum<typeof InboundChannelKind>;
|
|
120
|
+
assurance: z.ZodEnum<typeof InboundSenderAssurance>;
|
|
121
|
+
}, z.core.$strict>>;
|
|
99
122
|
}, z.core.$strip>;
|
|
100
123
|
export type ExecutionContext_InitiatorIds = z.infer<typeof ExecutionContext_InitiatorIdsSchema>;
|
|
101
124
|
/**
|
|
@@ -106,6 +129,8 @@ export declare const ExecutionContext_RoleInfoSchema: z.ZodObject<{
|
|
|
106
129
|
relatedPrimaryScope: z.ZodEnum<typeof ResourcePrimaryScope>;
|
|
107
130
|
relatedResourceId: z.ZodOptional<z.ZodString>;
|
|
108
131
|
organizationUnitId: z.ZodOptional<z.ZodString>;
|
|
132
|
+
viaServiceProviderRelationshipId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
viaProviderOrganizationId: z.ZodOptional<z.ZodString>;
|
|
109
134
|
}, z.core.$strip>;
|
|
110
135
|
export type ExecutionContext_RoleInfo = z.infer<typeof ExecutionContext_RoleInfoSchema>;
|
|
111
136
|
/**
|
|
@@ -127,6 +152,28 @@ export declare function isOrganizationWideRoleInfo(roleInfo: ExecutionContext_Ro
|
|
|
127
152
|
* question is explicitly unit-aware.
|
|
128
153
|
*/
|
|
129
154
|
export declare function selectOrganizationWideRoles(initiatorRoles: readonly ExecutionContext_RoleInfo[] | undefined): string[];
|
|
155
|
+
/**
|
|
156
|
+
* The role entries that may speak for a request acting inside ONE organization.
|
|
157
|
+
*
|
|
158
|
+
* Every entry that is not ORGANIZATIONS-scoped (the APPLICATION role set, chiefly) is kept: those
|
|
159
|
+
* roles are not held "in" a tenant, and they resolve against their own role table. An
|
|
160
|
+
* ORGANIZATIONS-scoped entry is kept only when it names `organizationId` — organization-wide and
|
|
161
|
+
* unit-scoped entries alike, so a caller partitions on {@link isOrganizationWideRoleInfo} AFTER this.
|
|
162
|
+
*
|
|
163
|
+
* ## Why this exists — measured 2026-09-25
|
|
164
|
+
*
|
|
165
|
+
* The per-instance role gate, the unit-narrowing decision and the role ceiling each unioned
|
|
166
|
+
* organization-wide entries across EVERY organization the caller belongs to, and answered the tenant
|
|
167
|
+
* question separately ("does the caller hold ANY org-wide entry for this row's organization?"). The
|
|
168
|
+
* two answers composed into "ORG_ADMIN somewhere + ORG_GUEST here = ORG_ADMIN here": an ORG_ADMIN of
|
|
169
|
+
* tenant A who was a guest of tenant B passed every ORG_ADMIN per-instance verb on B's rows, and could
|
|
170
|
+
* grant ORG_ADMIN in B through the role ceiling. A role is a fact about a membership, so it is only
|
|
171
|
+
* ever evaluated inside the organization that membership belongs to.
|
|
172
|
+
*
|
|
173
|
+
* An absent `organizationId` keeps no ORGANIZATIONS entry at all — fail closed: a request that names
|
|
174
|
+
* no tenant has no tenant role to speak for it.
|
|
175
|
+
*/
|
|
176
|
+
export declare function selectRoleInfosActingInOrganization(initiatorRoles: readonly ExecutionContext_RoleInfo[] | undefined, organizationId: string | undefined): ExecutionContext_RoleInfo[];
|
|
130
177
|
/**
|
|
131
178
|
* The unit-scoped grants a principal holds, as `(organizationUnitId, roles)` pairs.
|
|
132
179
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution-context.shared.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"execution-context.shared.schemas.d.ts","sourceRoot":"","sources":["../../../src/runtime/execution-context.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAExG;;;;;;;;;GASG;AACH,oBAAY,8BAA8B;IACtC;;;;;;;OAOG;IACH,oBAAoB,yBAAyB;IAC7C;;;;;OAKG;IACH,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,4BAA4B,iCAAiC;IAC7D,gBAAgB,qBAAqB;IACrC;;;;OAIG;IACH,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC;;;;;;;;;;;;;OAaG;IACH,gBAAgB,qBAAqB;CACxC;AAED;;;;;GAKG;AACH,oBAAY,iBAAiB;IACzB,oFAAoF;IACpF,OAAO,YAAY;IACnB;;;;OAIG;IACH,YAAY,iBAAiB;CAChC;AAED,oBAAY,uCAAuC;IAC/C,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;CAC1C;AAED;;GAEG;AACH,oBAAY,WAAW;IACrB,UA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
1
|
import { z } from "zod";
|
|
2
2
|
import { ResourcePrimaryScope } from "../resources/resources.shared.schemas.js";
|
|
3
|
+
import { InboundChannelKind, InboundSenderAssurance } from "../inbound/inbound-channels.shared.schemas.js";
|
|
3
4
|
/**
|
|
4
5
|
* Execution type enum defining how the execution context was initiated.
|
|
5
6
|
*
|
|
@@ -39,6 +40,21 @@ export var ExecutionContext_ExecutionType;
|
|
|
39
40
|
*/
|
|
40
41
|
ExecutionContext_ExecutionType["WEBHOOK_CALLBACK"] = "webhook_callback";
|
|
41
42
|
ExecutionContext_ExecutionType["ANONYMOUS_SESSION"] = "anonymous_session";
|
|
43
|
+
/**
|
|
44
|
+
* An application-declared inbound HANDLER running one verified, durably stored delivery (#1596).
|
|
45
|
+
*
|
|
46
|
+
* Unlike `WEBHOOK_CALLBACK`, this is an AUTHORIZED principal: it carries the handler's declared
|
|
47
|
+
* `actingRoles` as its roles, is pinned to the one scope the delivery resolved to, and goes through
|
|
48
|
+
* role authorization, organization-unit narrowing, scope-root confinement and cross-tenant read
|
|
49
|
+
* observation exactly like a user. `WEBHOOK_CALLBACK` skips all four because signature verification
|
|
50
|
+
* is its whole trust story; application code must never inherit that, or a handler would be
|
|
51
|
+
* role-free and cross-tenant.
|
|
52
|
+
*
|
|
53
|
+
* `initiatorIds` is REQUIRED and names the delivery (`inboundDeliveryId`) and the handler
|
|
54
|
+
* (`inboundHandlerRef`); it never carries a user or a machine credential — nobody authenticated, a
|
|
55
|
+
* sender's signature was verified.
|
|
56
|
+
*/
|
|
57
|
+
ExecutionContext_ExecutionType["INBOUND_DELIVERY"] = "inbound_delivery";
|
|
42
58
|
})(ExecutionContext_ExecutionType || (ExecutionContext_ExecutionType = {}));
|
|
43
59
|
/**
|
|
44
60
|
* How a MACHINE principal ({@link ExecutionContext_ExecutionType.ORGANIZATION_MACHINE} /
|
|
@@ -86,27 +102,65 @@ export var SessionType;
|
|
|
86
102
|
*/
|
|
87
103
|
export const ExecutionContext_MachineCredentialSchema = z.object({
|
|
88
104
|
/** Whether authentication used a static API key or an OAuth client. */
|
|
89
|
-
authMethod: z.enum(MachineAuthMethod),
|
|
105
|
+
authMethod: z.enum(MachineAuthMethod).describe("The kind of machine credential: `api_key` for an API key, `oauth_client` for an OAuth client."),
|
|
90
106
|
/** The authenticating credential's `_id` (the ApiKey row, or the OAuthClient row). */
|
|
91
|
-
credentialId: z.string(),
|
|
107
|
+
credentialId: z.string().describe("The id of that API key or OAuth client."),
|
|
92
108
|
});
|
|
93
109
|
export const ExecutionContext_InitiatorIdsSchema = z.object({
|
|
94
|
-
organizationId: z.string().optional(),
|
|
95
|
-
userId: z.string().optional(),
|
|
96
|
-
applicationId: z.string().optional(),
|
|
110
|
+
organizationId: z.string().optional().describe("The organization the request ran in, when it ran in one."),
|
|
111
|
+
userId: z.string().optional().describe("The signed-in user who made the request."),
|
|
112
|
+
applicationId: z.string().optional().describe("The application the request was made to."),
|
|
97
113
|
/**
|
|
98
114
|
* Credential provenance for a machine principal (see
|
|
99
115
|
* {@link ExecutionContext_MachineCredentialSchema}). Absent for human / anonymous /
|
|
100
116
|
* webhook / internal principals.
|
|
101
117
|
*/
|
|
102
|
-
machineCredential: ExecutionContext_MachineCredentialSchema.optional(),
|
|
103
|
-
consumableTokenId: z.string().optional(),
|
|
118
|
+
machineCredential: ExecutionContext_MachineCredentialSchema.optional().describe("The API key or OAuth client that authenticated the request, when a machine made it."),
|
|
119
|
+
consumableTokenId: z.string().optional().describe("The one-time token the request was authorized by, such as an invitation or a sign-in link."),
|
|
104
120
|
/**
|
|
105
121
|
* Provider reference that triggered the webhook (e.g., 'stripe', 'google').
|
|
106
122
|
* Only populated for WEBHOOK_CALLBACK execution type.
|
|
107
123
|
*/
|
|
108
|
-
webhookProviderId: z.string().optional(),
|
|
109
|
-
anonymousUserId: z.string().optional(),
|
|
124
|
+
webhookProviderId: z.string().optional().describe("The provider whose webhook call started the request, such as `stripe`."),
|
|
125
|
+
anonymousUserId: z.string().optional().describe("The anonymous visitor who made the request, before signing in."),
|
|
126
|
+
/**
|
|
127
|
+
* The stored inbound delivery this execution runs (its `_id`). Only populated for
|
|
128
|
+
* `INBOUND_DELIVERY`, where it is required — it is what the audit trail names as the source of
|
|
129
|
+
* every write the handler makes.
|
|
130
|
+
*/
|
|
131
|
+
inboundDeliveryId: z.string().optional().describe("The stored inbound delivery the request was processing."),
|
|
132
|
+
/** The declared handler running the delivery. Only populated for `INBOUND_DELIVERY`, where it is required. */
|
|
133
|
+
inboundHandlerRef: z.string().optional().describe("The handler that was processing that inbound delivery."),
|
|
134
|
+
/**
|
|
135
|
+
* The person a USER-scope inbound delivery belongs to (#1629) — its SCOPE, never its identity.
|
|
136
|
+
*
|
|
137
|
+
* Deliberately not `userId`: `userId` means somebody authenticated as that person, which no inbound
|
|
138
|
+
* delivery ever did (a sender's signature was verified). Keeping the two apart is what lets the
|
|
139
|
+
* constructor keep refusing an authenticated identity on `INBOUND_DELIVERY` while personal-scope
|
|
140
|
+
* resources are still confined to one person: the ownership check reads this field for an inbound
|
|
141
|
+
* principal, and the repository's scope filter reads the same id from the context map.
|
|
142
|
+
*
|
|
143
|
+
* Only populated for a USER-scope `INBOUND_DELIVERY`.
|
|
144
|
+
*/
|
|
145
|
+
inboundScopeUserId: z.string().optional().describe("The person a user-scoped inbound delivery belongs to. It scopes the records the delivery may reach; nobody signed in as that person."),
|
|
146
|
+
/**
|
|
147
|
+
* Who sent the message an `INBOUND_DELIVERY` runs, as IDENTIFICATION only (#1630, I8): the channel and
|
|
148
|
+
* how well the sender is known. It never grants anything — no authorization decision reads it, and the
|
|
149
|
+
* roles stay the handler's declared `actingRoles`.
|
|
150
|
+
*
|
|
151
|
+
* The address is deliberately NOT carried. A context is serialized into job payloads and trace
|
|
152
|
+
* attributes, where an address would outlive its erasure; the address lives on the conversation
|
|
153
|
+
* message, which the erasure writer can reach.
|
|
154
|
+
*
|
|
155
|
+
* Only populated for `INBOUND_DELIVERY`.
|
|
156
|
+
*/
|
|
157
|
+
inboundSender: z
|
|
158
|
+
.strictObject({
|
|
159
|
+
channel: z.enum(InboundChannelKind).describe("The channel the inbound message arrived through."),
|
|
160
|
+
assurance: z.enum(InboundSenderAssurance).describe("How well the sender is known on that channel."),
|
|
161
|
+
})
|
|
162
|
+
.optional()
|
|
163
|
+
.describe("Who sent the inbound message the request was processing, as identification only: it grants nothing, and the sender's address is not included."),
|
|
110
164
|
});
|
|
111
165
|
/**
|
|
112
166
|
* Role information with related scope and resource context
|
|
@@ -131,6 +185,19 @@ export const ExecutionContext_RoleInfoSchema = z.object({
|
|
|
131
185
|
* exactly one definition.
|
|
132
186
|
*/
|
|
133
187
|
organizationUnitId: z.string().optional(),
|
|
188
|
+
/**
|
|
189
|
+
* Present ⇒ this entry was conferred by a live service-provider relationship (#1597): the caller is
|
|
190
|
+
* a firm's expert (or an admitted firm machine client) acting inside a CLIENT organization.
|
|
191
|
+
*
|
|
192
|
+
* ⚠️ AUDIT ATTRIBUTION ONLY. No authority decision may read it — the entry's authority is fully
|
|
193
|
+
* expressed by `roles`, `relatedResourceId` and `organizationUnitId`, exactly like any other entry.
|
|
194
|
+
* It exists so an audit row written by a provider principal can name the relationship and the firm,
|
|
195
|
+
* which is what lets the client read "who from which firm did this, under which relationship" from
|
|
196
|
+
* its own trail. A system context derived from a request must not inherit it.
|
|
197
|
+
*/
|
|
198
|
+
viaServiceProviderRelationshipId: z.string().optional(),
|
|
199
|
+
/** The firm behind {@link viaServiceProviderRelationshipId}. Audit attribution only, like it. */
|
|
200
|
+
viaProviderOrganizationId: z.string().optional(),
|
|
134
201
|
});
|
|
135
202
|
/**
|
|
136
203
|
* Does this entry confer authority across the WHOLE owning scope?
|
|
@@ -155,6 +222,31 @@ export function isOrganizationWideRoleInfo(roleInfo) {
|
|
|
155
222
|
export function selectOrganizationWideRoles(initiatorRoles) {
|
|
156
223
|
return (initiatorRoles ?? []).filter(isOrganizationWideRoleInfo).flatMap((roleInfo) => roleInfo.roles);
|
|
157
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* The role entries that may speak for a request acting inside ONE organization.
|
|
227
|
+
*
|
|
228
|
+
* Every entry that is not ORGANIZATIONS-scoped (the APPLICATION role set, chiefly) is kept: those
|
|
229
|
+
* roles are not held "in" a tenant, and they resolve against their own role table. An
|
|
230
|
+
* ORGANIZATIONS-scoped entry is kept only when it names `organizationId` — organization-wide and
|
|
231
|
+
* unit-scoped entries alike, so a caller partitions on {@link isOrganizationWideRoleInfo} AFTER this.
|
|
232
|
+
*
|
|
233
|
+
* ## Why this exists — measured 2026-09-25
|
|
234
|
+
*
|
|
235
|
+
* The per-instance role gate, the unit-narrowing decision and the role ceiling each unioned
|
|
236
|
+
* organization-wide entries across EVERY organization the caller belongs to, and answered the tenant
|
|
237
|
+
* question separately ("does the caller hold ANY org-wide entry for this row's organization?"). The
|
|
238
|
+
* two answers composed into "ORG_ADMIN somewhere + ORG_GUEST here = ORG_ADMIN here": an ORG_ADMIN of
|
|
239
|
+
* tenant A who was a guest of tenant B passed every ORG_ADMIN per-instance verb on B's rows, and could
|
|
240
|
+
* grant ORG_ADMIN in B through the role ceiling. A role is a fact about a membership, so it is only
|
|
241
|
+
* ever evaluated inside the organization that membership belongs to.
|
|
242
|
+
*
|
|
243
|
+
* An absent `organizationId` keeps no ORGANIZATIONS entry at all — fail closed: a request that names
|
|
244
|
+
* no tenant has no tenant role to speak for it.
|
|
245
|
+
*/
|
|
246
|
+
export function selectRoleInfosActingInOrganization(initiatorRoles, organizationId) {
|
|
247
|
+
return (initiatorRoles ?? []).filter((roleInfo) => roleInfo.relatedPrimaryScope !== ResourcePrimaryScope.ORGANIZATIONS
|
|
248
|
+
|| (Boolean(organizationId) && String(roleInfo.relatedResourceId ?? '') === organizationId));
|
|
249
|
+
}
|
|
158
250
|
/**
|
|
159
251
|
* The unit-scoped grants a principal holds, as `(organizationUnitId, roles)` pairs.
|
|
160
252
|
*
|