@wildo-ai/saas-models 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/applications/applications-context.schemas.d.ts +14 -10
- package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/applications/applications.shared.resources-config.schemas.js +4 -3
- package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts +0 -4
- package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-configuration.shared.schemas.js +59 -17
- package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts +77 -21
- package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/billing-enums.shared.schemas.js +85 -23
- package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
- package/dist/esm/billing/billing-types.shared.schemas.d.ts +3 -3
- package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/price.shared.schemas.js +7 -1
- package/dist/esm/billing/price.shared.schemas.js.map +1 -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 +52 -11
- package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
- package/dist/esm/billing/product-definition.shared.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.resources-config.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.schemas.d.ts +2 -2
- package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/product.shared.schemas.js +7 -3
- package/dist/esm/billing/product.shared.schemas.js.map +1 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts +1 -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 +15 -1
- package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.d.ts +7 -3
- package/dist/esm/billing/usage-record.shared.schemas.d.ts.map +1 -1
- package/dist/esm/billing/usage-record.shared.schemas.js +22 -3
- package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts +69 -2
- package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js +20 -1
- package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts +85 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js +157 -0
- package/dist/esm/compliance/audit-trails/application-audit-logs.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts +23 -0
- 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 +56 -0
- 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 +480 -20
- 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 +547 -23
- 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.map +1 -1
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js +82 -3
- package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts +31 -30
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js +98 -3
- package/dist/esm/compliance/privacy/operating-jurisdictions.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts +17 -0
- package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/privacy.shared.schemas.js +27 -4
- package/dist/esm/compliance/privacy/privacy.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts +82 -29
- package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/redaction.shared.schemas.js +95 -29
- package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -1
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.js +12 -5
- package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -1
- package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts +21 -0
- package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/analytics-value-moments.shared.schemas.js +20 -0
- package/dist/esm/config/analytics-value-moments.shared.schemas.js.map +1 -1
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts +7 -5
- package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/auth-config-resolution.shared.utils.d.ts +8 -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 +29 -0
- package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts +95 -17
- package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/config/entity-identity-config.shared.schemas.js +86 -8
- package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
- package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts +12 -12
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts +28 -0
- 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 +28 -0
- package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
- package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts +45 -12
- 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.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts +103 -58
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/engine-capabilities.shared.schemas.js +176 -15
- 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 +15 -3
- 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 +32 -5
- package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -1
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts +83 -7
- package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts +59 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js +61 -0
- package/dist/esm/external-providers/frontend-capability-public-config.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts +97 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.d.ts.map +1 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js +41 -0
- package/dist/esm/external-providers/frontend-capability-runtime.shared.types.js.map +1 -0
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts +148 -2
- 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 +56 -1
- package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts +5 -28
- package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-capability.shared.schemas.js +4 -2
- 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 +18 -8
- 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 +9 -4
- package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts +338 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js +332 -0
- package/dist/esm/external-providers/provider-frontend-surface.shared.schemas.js.map +1 -0
- package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts +178 -9
- package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-metadata.shared.schemas.js +181 -9
- package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts +7 -5
- package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -1
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js +7 -5
- package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -1
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts +40 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.d.ts.map +1 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.js +80 -0
- package/dist/esm/external-providers/provider-tier-rule.shared.utils.js.map +1 -0
- package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
- package/dist/esm/features/core-feature-definitions.shared.js +7 -1
- package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
- package/dist/esm/features/feature-builders.shared.d.ts +32 -0
- package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
- package/dist/esm/features/feature-builders.shared.js +32 -0
- package/dist/esm/features/feature-builders.shared.js.map +1 -1
- package/dist/esm/files/file-upload-grant.shared.schemas.d.ts +14 -2
- package/dist/esm/files/file-upload-grant.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/file-upload-grant.shared.schemas.js +44 -5
- package/dist/esm/files/file-upload-grant.shared.schemas.js.map +1 -1
- package/dist/esm/files/files.shared.schemas.d.ts +15 -8
- package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
- package/dist/esm/files/files.shared.schemas.js +15 -8
- package/dist/esm/files/files.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/actors.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/agents.shared.schemas.d.ts +54 -5
- 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/apps-blueprint/apps-blueprint.shared.schemas.d.ts +6 -6
- package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts +0 -3
- package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/deliberation.shared.schemas.js +0 -5
- package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts +14 -0
- 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 +40 -3
- package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts +19 -0
- 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 +33 -0
- package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts +14 -9
- 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 +14 -9
- package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/flows.shared.schemas.js +3 -2
- package/dist/esm/flows-actors/flows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts +128 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.d.ts.map +1 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.js +142 -0
- package/dist/esm/flows-actors/mcp-servers.shared.schemas.js.map +1 -0
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts +0 -3
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js +1 -4
- package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts +0 -16
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js +1 -17
- package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts +3 -3
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js +3 -3
- package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts +2 -8
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts.map +1 -1
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js +4 -15
- package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.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 +1 -0
- package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -1
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts +8 -0
- package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.d.ts +46 -0
- package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
- package/dist/esm/guidance/progression-state.shared.schemas.js +49 -0
- package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts +320 -50
- 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 +137 -36
- package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -1
- package/dist/esm/index.d.ts +9 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts +11 -2
- 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.map +1 -1
- package/dist/esm/notifications/email/email-template.shared.enums.d.ts +15 -0
- package/dist/esm/notifications/email/email-template.shared.enums.d.ts.map +1 -1
- package/dist/esm/notifications/email/email-template.shared.enums.js +15 -0
- package/dist/esm/notifications/email/email-template.shared.enums.js.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts +1 -0
- 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 +19 -0
- 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 +30 -0
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js +65 -1
- package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -1
- package/dist/esm/notifications/notification-badges.core.definitions.d.ts +6 -4
- package/dist/esm/notifications/notification-badges.core.definitions.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.core.definitions.js +6 -4
- package/dist/esm/notifications/notification-badges.core.definitions.js.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.d.ts +167 -5
- package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notification-badges.schemas.js +191 -6
- package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.d.ts +107 -0
- package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
- package/dist/esm/notifications/notifications.shared.schemas.js +149 -1
- package/dist/esm/notifications/notifications.shared.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 +22 -1
- package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts +26 -0
- package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-preferences.shared.schemas.js +25 -0
- package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts +25 -0
- package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
- package/dist/esm/organizations/organization-profile.shared.schemas.js +42 -17
- package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts +3 -2
- package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -1
- package/dist/esm/organizations/organization-unit-narrowing.shared.js +9 -2
- package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -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 +18 -3
- package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/public-runtime/index.d.ts +49 -2
- package/dist/esm/public-runtime/index.d.ts.map +1 -1
- package/dist/esm/public-runtime/index.js +48 -1
- package/dist/esm/public-runtime/index.js.map +1 -1
- package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts +6 -5
- package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.resources-config.schemas.js +6 -5
- package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.d.ts +16 -3
- package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
- package/dist/esm/queue/jobs.shared.schemas.js +16 -3
- package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-documentation.d.ts +137 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.d.ts.map +1 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.js +1201 -0
- package/dist/esm/requests/manual-controllers-routes-documentation.js.map +1 -0
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts +67 -0
- package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
- package/dist/esm/requests/manual-controllers-routes-urls.js +78 -0
- package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
- package/dist/esm/requests/rate-limits.shared.schemas.d.ts +11 -1
- package/dist/esm/requests/rate-limits.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/rate-limits.shared.schemas.js +11 -1
- package/dist/esm/requests/rate-limits.shared.schemas.js.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.d.ts +27 -4
- package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
- package/dist/esm/requests/websocket.shared.schemas.js +35 -0
- package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
- package/dist/esm/resources/resources-config.shared.factory.d.ts +1 -0
- package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
- package/dist/esm/resources/resources-config.shared.factory.js +105 -20
- package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources-config.shared.schemas.d.ts +254 -72
- package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
- 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 +97 -5
- 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 +15 -0
- package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.d.ts +37 -0
- package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.core.definitions.js +51 -0
- package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.d.ts +11 -2
- package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
- package/dist/esm/resources/resources.shared.schemas.js +34 -3
- package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
- package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts +51 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.d.ts.map +1 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.js +53 -0
- package/dist/esm/resources/utils/field-value-disclosure.utils.js.map +1 -0
- package/dist/esm/resources/utils/resources-summary.utils.d.ts +16 -2
- package/dist/esm/resources/utils/resources-summary.utils.d.ts.map +1 -1
- package/dist/esm/resources/utils/resources-summary.utils.js +19 -5
- package/dist/esm/resources/utils/resources-summary.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 +11 -0
- package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -1
- package/dist/esm/runtime/domain-module.shared.definitions.d.ts +25 -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/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 +38 -0
- 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 +38 -0
- package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts +4 -11
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js +0 -1
- package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.schemas.d.ts +84 -5
- package/dist/esm/security/authentications/authentication.shared.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/authentication.shared.schemas.js +83 -3
- package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts +1 -0
- package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
- package/dist/esm/security/authentications/registration.shared.dto.schemas.js +11 -0
- package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts +15 -0
- 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 +21 -4
- package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts +61 -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 +208 -6
- 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 +37 -27
- 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 +134 -12
- package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
- package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts +0 -6
- 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 +17 -8
- package/dist/esm/security/authentications/sso/sso-connection.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 +27 -0
- 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 +52 -7
- 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 +45 -8
- package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js.map +1 -1
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts +31 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js +198 -0
- package/dist/esm/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts +31 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js +191 -0
- package/dist/esm/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.js.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts +250 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.d.ts.map +1 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js +486 -0
- package/dist/esm/security/connected-accounts/provider-credentials.shared.schemas.js.map +1 -0
- package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts +4 -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 +29 -0
- 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 +4 -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 +29 -0
- 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 +6 -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 +31 -0
- package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -1
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts +13 -0
- 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 +24 -3
- package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -1
- package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts +4 -4
- package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts +4 -4
- 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 +33 -3
- 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 +17 -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 +136 -5
- package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
- package/dist/esm/users/users.shared.schemas.d.ts +43 -12
- package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
- package/dist/esm/users/users.shared.schemas.js +38 -7
- 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/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,EAAE,CAAC;AAEpB,cAAc,yDAAyD,CAAC;AACxE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAA;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8DAA8D,CAAC;AAE7E,cAAc,mDAAmD,CAAC;AAClE,cAAc,uDAAuD,CAAC;AACtE,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uEAAuE,CAAC;AACtF,cAAc,iDAAiD,CAAC;AAChE,cAAc,kEAAkE,CAAC;AACjF,cAAc,sDAAsD,CAAC;AACrE,cAAc,uEAAuE,CAAC;AACtF,cAAc,qDAAqD,CAAC;AACpE,cAAc,sEAAsE,CAAC;AACrF,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC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,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2DAA2D,CAAC;AAC1E,wBAAwB;AACxB,cAAc,gDAAgD,CAAC;AAC/D,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8DAA8D,CAAC;AAE7E,sBAAsB;AACtB,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4DAA4D,CAAC;AAE3E,oDAAoD;AACpD,cAAc,mDAAmD,CAAC;AAElE,iBAAiB;AACjB,cAAc,4CAA4C,CAAC","sourcesContent":["// Flow-Actor System & App-Blueprint\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators();\n\nexport * from './companion/shared-library-companion.shared.definitions';\nexport * from './companion/provider-discovery.shared.schemas';\nexport * from './flows-actors/flows.shared.schemas'\nexport * from './flows-actors/actors.shared.schemas';\nexport * from './flows-actors/tasks.actors.shared.schemas';\nexport * from './flows-actors/task-continuity-binding.actors.shared.schemas';\n\nexport * from './flows-actors/flows-actors.system.shared.schemas';\nexport * from './flows-actors/flows-actors.system.shared.definitions';\nexport * from './flows-actors/agents.shared.schemas';\nexport * from './flows-actors/agent-traceability.shared.schemas';\nexport * from './flows-actors/flows-actors.io.shared.schemas';\nexport * from './flows-actors/flows-actors.commons.shared.schemas';\nexport * from './flows-actors/flows-actors.frontend.shared.schemas';\nexport * from './flows-actors/flows-actors-execution.shared.schemas';\nexport * from './flows-actors/flows-actors-execution.shared.resources-config.schemas';\nexport * from './flows-actors/flows-actors-task.shared.schemas';\nexport * from './flows-actors/flows-actors-task.shared.resources-config.schemas';\nexport * from './flows-actors/a2a-token-budget-state.shared.schemas';\nexport * from './flows-actors/a2a-token-budget-state.shared.resources-config.schemas';\nexport * from './flows-actors/a2a-push-delivery-log.shared.schemas';\nexport * from './flows-actors/a2a-push-delivery-log.shared.resources-config.schemas';\nexport * from './flows-actors/prompt-ir.shared.schemas';\nexport * from './flows-actors/deliberation.shared.schemas';\n\nexport * from './flows-actors/utils/flow-actors.context-builder.apps-context.shared.utils';\n\nexport * from './flows-actors/apps-blueprint/apps-blueprint.shared.schemas';\nexport * from './flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas';\n\n// Meta-workflow contracts (playbooks, decisions, actions, execution bindings, portable application\n// continuity) are NOT re-exported here. They are defined in this package and published through the\n// dedicated `@wildo-ai/saas-models/meta-workflows` entrypoint, so the root barrel does not put a\n// whole authoring domain in front of consumers that only need the resource/schema vocabulary.\n// Re-adding any `flows-actors/meta-workflows/**` line here fails `pnpm check:package-entrypoints`.\n// See `.claude/rules/package-public-entrypoints.md`.\n//\n// The BOUNDARY between that domain and the Actor Task vocabulary is\n// `flows-actors/task-continuity-binding.actors.shared.schemas`, exported above. It is deliberately\n// NOT a `meta-workflows/**` file: a root-exported Actor Task carries a continuity correlation, so\n// the correlation object and the one nominal enum on it belong to the root's own surface. Keeping\n// them on the far side of the subpath is what produced `TS2742`/`TS2883` at every consumer that\n// derived a schema from `Actors_Task_Schema` — the `meta-workflows` subpath published the enum,\n// but a root-only consumer never resolves that subpath, so no name it could use existed — while transitively\n// dragging 12 of the 15 `meta-workflows/**` modules into this barrel's closure anyway, which is\n// exactly what the paragraph above claims not to do.\n//\n// When a root-exported contract needs something the authoring domain owns, move it to that\n// boundary module. Do NOT re-export across the subpath, and do NOT annotate the consumer.\n\nexport * from './external-providers/external-providers.shared.schemas';\nexport * from './external-providers/engine-capabilities.shared.schemas';\nexport * from './external-providers/engine-capability-resolution-mode.shared';\nexport * from './external-providers/frontend-bootstrap.shared.schemas';\nexport * from './external-providers/provider-metadata.shared.schemas';\nexport * from './external-providers/provider-capability.shared.schemas';\nexport * from './external-providers/provider-protocol.shared.schemas';\nexport * from './external-providers/compose-provider-registry.shared';\n\n// The external-data AUTHORING contract (the virtual binding + the pipeline declaration) is\n// published ONLY by `@wildo-ai/saas-models/external-data` — one door per room. Row IDENTITY stays\n// here on purpose: a synthesized id reaches URLs and frontend routing, so it is not an integration\n// concern. See `external-data.exports.ts` for the measurement behind both decisions.\nexport * from './http-api-binding/http-api-binding-id.shared.utils';\n\nexport * from './errors/errors.shared.schemas';\nexport * from './frontend-definitions/frontend-notification-custom-message-ref.definitions';\nexport * from './i18n/labelling.dto.shared.schemas';\nexport * from './i18n/interpolate-label-params.shared.utils';\n\nexport * from './errors/errors.shared.definitions';\nexport * from './errors/errors.shared.utils';\nexport * from './errors/errors.custom-message-ref.shared.definitions';\nexport * from './errors/resource-access-forbidden.shared.error';\nexport * from './errors/zod-issue-formatting.shared.utils';\n\nexport * from './files/files.shared.schemas';\nexport * from './files/files.shared.utils';\nexport * from './files/files.shared.resources-config.schemas';\nexport * from './files/file-upload-grant.shared.schemas';\nexport * from './notifications/notification-badges.core.definitions';\nexport * from './notifications/notification-badges.schemas';\nexport * from './notifications/notification-badges.shared.resources-config.schemas';\nexport * from './notifications/notifications.shared.schemas';\nexport * from './notifications/m2m/webhook-config.shared.schemas';\nexport * from './notifications/m2m/m2m-webhook-delivery-contract.shared';\nexport * from './notifications/m2m/webhook-config.shared.resources-config.schemas';\nexport * from './notifications/m2m/m2m-webhook-delivery-log.shared.schemas';\nexport * from './notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas';\n\nexport * from './requests/header-keys.shared';\nexport * from './requests/websocket.shared.schemas';\nexport * from './requests/http-requests.shared';\nexport * from './crdt/crdt-merge.shared.utils';\n\n// Data Seeding — schemas + factory + DataSeedRun resource were RELOCATED to\n// `@wildo-ai/saas-backend-lib` in Phase 2.G (the user moved them; the\n// shared models for data-seeding are a backend-only concern). Consumers\n// must import from `@wildo-ai/saas-backend-lib` instead. Do NOT re-add\n// `export * from './data-seeding/...'` here — the directory no longer\n// exists in this package.\n\nexport * from './requests/rate-limits.shared.schemas';\nexport * from './requests/manual-controllers-routes-urls';\nexport * from './resources/resources-registry.shared.core.definitions';\nexport * from './resources/resources.shared.core.definitions';\nexport * from './resources/resources.shared.schemas';\nexport * from './resources/context-policy.shared.schemas';\nexport * from './resources/child-operations.shared.schemas';\nexport * from './resources/relationship-display.shared.schemas';\nexport * from './resources/resources.shared.utils';\nexport * from './resources/resources-config.shared.factory';\nexport * from './resources/resources-config.shared.schemas';\nexport * from './resources/collection-query-parameters.shared';\nexport * from './resources/resources-relationships.shared.factory';\nexport * from './resources/resources-serialization.shared.schemas';\n// DELETED: resource-frontend.shared.schemas — transferred to @wildo-ai/saas-frontend-lib\nexport * from './resources/utils/persistence-adapter-discrimination.shared.utils';\nexport * from './resources/utils/resources-config-operations.path.utils';\nexport * from './resources/utils/resources-config-operations.utils';\nexport * from './resources/utils/resources-config-operations.urls-builder.utils';\nexport * from './resources/utils/resources-config-operations.dtos-builder.utils';\nexport * from './resources/utils/templatable-file-fields.shared.utils';\nexport * from './resources/utils/context-addressed-composition-singleton.shared.utils';\nexport * from './resources/utils/resources-config-naming.utils';\nexport * from './resources/utils/resource-polymorphism.utils';\nexport * from './resources/utils/resource-polymorphism.schemas';\nexport * from './resources/utils/resource-polymorphism.relationships';\nexport * from './resources/utils/resource-polymorphism.factory';\nexport * from './resources/utils/resources-config-context-needs.utils';\nexport * from './resources/utils/required-fk-fillability.validation';\nexport * from './resources/utils/composition-seedability.validation';\nexport * from './resources/utils/composition-cascade-deletability.validation';\nexport * from './resources/utils/duplicate-relationship-registration.validation';\nexport * from './resources/utils/schema-family-builder.utils';\nexport * from './resources/utils/schema-variant-resolver.utils';\nexport * from './resources/utils/resources-summary.utils';\nexport * from './resources/utils/repository-dto-builder.utils';\nexport * from './resources/utils/schema-type-utils';\nexport * from './resources/utils/schema-type-inference.utils';\nexport * from './resources/utils/resource-operation-type-guards.utils';\nexport * from './resources/utils/shared-persistence-collection.utils';\nexport * from './runtime/execution-context.shared.schemas';\nexport * from './runtime/runtime.shared.schemas';\n\n// Charts / Aggregation engine\nexport * from './charts/aggregation-query.shared.schemas';\nexport * from './charts/aggregation.shared.definitions';\nexport * from './charts/chart-definition-builder.shared';\n\n// Queue system\nexport * from './queue/rabbitmq-queue-args.shared';\nexport * from './queue/queues.shared.schemas';\nexport * from './queue/queues.shared.utils';\nexport * from './queue/jobs.shared.schemas';\nexport * from './queue/jobs.shared.utils';\nexport * from './queue/jobs.shared.resources-config.schemas';\nexport * from './resources/utils/resources-serialization.utils';\nexport * from './resources/utils/resource-subtree.utils';\n\n// Monitoring domain\nexport * from './monitoring/monitoring.shared.schemas';\n\n// Applications domain (must come before config due to dependencies)\nexport * from './applications/application-subject.shared.schemas';\nexport * from './applications/applications.shared.schemas';\nexport * from './applications/applications.shared.resources-config.schemas';\nexport * from './applications/application-versions.shared.resources-config.schemas';\nexport * from './applications/application-metadata.shared.resources-config.schemas';\nexport * from './applications/applications-context.schemas';\n\n// Config domain\nexport * from './config/app-frontend-type.shared.schemas';\nexport * from './config/entity-identity-config.shared.schemas';\nexport * from './config/registration-acquisition-policy.shared.utils';\nexport * from './config/auth-config-resolution.shared.utils';\nexport * from './config/app-configuration-shared.shared.schemas';\nexport * from './config/brand-assets.shared.schemas';\nexport * from './config/configuration-validation.shared.schemas';\nexport * from './config/postgresql.shared.schemas';\nexport * from './config/frontend/navigation.shared.schemas';\n// DELETED: app-level-action-launcher.shared.schemas — transferred to @wildo-ai/saas-frontend-lib\n// DELETED: views-frontend.shared.schemas — FrontendView_ScopeMode + FrontendView_DefinitionSchema transferred to @wildo-ai/saas-frontend-lib\n// DELETED: composite-view.frontend.schemas — transferred to @wildo-ai/saas-frontend-lib\nexport * from './config/frontend/chart-definition.shared.schemas';\nexport * from './config/frontend/chart-registration-alignment.shared';\nexport * from './config/frontend/onboarding.shared.schemas';\n\n// Other domains (excluding resources-config.schemas)\n\n// Audit and Compliance\nexport * from './compliance/audit-trails/audit-actor.shared.schemas';\nexport * from './compliance/audit-trails/auditable-events.shared.schema';\nexport * from './compliance/audit-trails/audit-logs.shared.resources-config.schemas';\nexport * from './compliance/audit-trails/security-audit-event-envelope.shared.schema';\nexport * from './compliance/audit-trails/audit-log-sink.shared.schemas';\nexport * from './compliance/audit-trails/audit-trail-config.shared.schemas';\nexport * from './compliance/data-classification/data-classification.shared.schemas';\nexport * from './compliance/documents/governed-documents.shared.schemas';\nexport * from './compliance/privacy/data-retention.shared.schemas';\nexport * from './compliance/privacy/retention-schedule.shared.schemas';\nexport * from './compliance/privacy/ai-use-posture.shared.schemas';\nexport * from './compliance/privacy/client-storage.shared.schemas';\nexport * from './compliance/privacy/personal-data-category.shared.schemas';\nexport * from './compliance/privacy/personal-data-declaration.shared.utils';\nexport * from './compliance/privacy/operating-jurisdictions.shared.schemas';\nexport * from './compliance/privacy/operator-compliance-identity.shared.schemas';\nexport * from './external-providers/provider-compliance-profile.shared.schemas';\nexport * from './compliance/privacy/impersonalization.shared.schemas';\nexport * from './compliance/privacy/impersonalization-scrub.shared.utils';\nexport * from './compliance/privacy/subject-erasure.shared.schemas';\nexport * from './compliance/privacy/subject-export.shared.schemas';\nexport * from './exports/tabular-csv.shared.utils';\nexport * from './resources/utils/collection-export.shared.utils';\nexport * from './compliance/privacy/subject-export-render.shared.utils';\nexport * from './compliance/privacy/redaction.shared.schemas';\nexport * from './compliance/privacy/privacy.shared.schemas';\nexport * from './compliance/privacy/sharing.shared.schemas';\n// Auth (Polymorphic — SSO + SIEM + SCIM)\n\nexport * from './security/authentications/sso/sso-config.shared.schemas';\nexport * from './security/authentications/sso/sso-config.shared.resources-config.schemas';\nexport * from './security/authentications/sso/sso-connection.shared.schemas';\nexport * from './security/authentications/sso/sso-connection.shared.resources-config.schemas';\nexport * from './security/authentications/siem/siem-export-config.shared.schemas';\nexport * from './security/authentications/siem/siem-export-config.shared.resources-config.schemas';\nexport * from './security/authentications/siem/siem-delivery-dlq.shared.schemas';\nexport * from './security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas';\nexport * from './security/authentications/scim/scim-tokens.shared.schemas';\nexport * from './security/authentications/scim/scim-tokens.shared.resources-config.schemas';\nexport * from './security/authentications/scim/scim-organization-unit-mapping.shared';\nexport * from './security/authentications/scim/scim-provisioning-config.shared.schemas';\nexport * from './security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas';\n\n// Billing\nexport * from './billing/billing-account.shared.schemas';\nexport * from './billing/billing-account.shared.resources-config.schemas';\nexport * from './billing/billing-configuration.shared.schemas';\nexport * from './billing/billing-enums.shared.schemas';\nexport * from './billing/billing-types.shared.schemas';\nexport * from './billing/credit-pool.shared.schemas';\nexport * from './billing/credit-pool.shared.resources-config.schemas';\nexport * from './billing/invoice-ref.shared.schemas';\nexport * from './billing/invoice-ref.shared.resources-config.schemas';\nexport * from './billing/price.shared.schemas';\nexport * from './billing/price.shared.resources-config.schemas';\nexport * from './billing/product.shared.schemas';\nexport * from './billing/product.shared.resources-config.schemas';\nexport * from './billing/product-behavior-policy.shared.schemas';\nexport * from './billing/product-definition.shared.schemas';\nexport * from './billing/promotions.shared.schemas';\nexport * from './billing/promotions.shared.resources-config.schemas';\nexport * from './billing/referral.shared.schemas';\nexport * from './billing/referral.shared.resources-config.schemas';\nexport * from './billing/subscription.shared.schemas';\nexport * from './billing/subscription.shared.resources-config.schemas';\nexport * from './billing/usage-record.shared.schemas';\nexport * from './billing/usage-record.shared.resources-config.schemas';\n\n// Organizations\nexport * from './organizations/organization-features.shared.schemas';\nexport * from './organizations/organization-features.shared.resources-config.schemas';\nexport * from './organizations/organization-members.shared.schemas';\nexport * from './organizations/organization-members.shared.resources-config.schemas';\nexport * from './organizations/organization-notifications.shared.schemas';\nexport * from './organizations/organization-notifications.shared.resources-config.schemas';\nexport * from './organizations/organization-preferences.shared.schemas';\nexport * from './organizations/organization-preferences.shared.resources-config.schemas';\nexport * from './organizations/organization-profile.shared.schemas';\nexport * from './organizations/organization-profile.shared.resources-config.schemas';\nexport * from './organizations/organization-units.shared.schemas';\nexport * from './organizations/organization-units.shared.path';\nexport * from './organizations/organization-unit-members.shared.schemas';\nexport * from './organizations/organization-unit-inheritance.shared';\nexport * from './organizations/organization-unit-narrowing.shared';\nexport * from './organizations/organization-unit-narrowing-decision.shared';\nexport * from './organizations/organization-unit-members.shared.resources-config.schemas';\nexport * from './organizations/organization-units.shared.resources-config.schemas';\nexport * from './organizations/organizations.shared.schemas';\nexport * from './organizations/organizations.shared.resources-config.schemas';\nexport * from './organizations/tenant-teardown-config.shared.schemas';\n\n// Security\nexport * from './security/api-keys/api-keys.shared.schemas';\nexport * from './security/api-keys/api-keys-application.shared.resources-config.schemas';\nexport * from './security/api-keys/api-keys-organization.shared.resources-config.schemas';\nexport * from './security/oauth-clients/oauth-clients.shared.schemas';\nexport * from './security/oauth-clients/oauth-resource-server.shared.schemas';\nexport * from './security/oauth-clients/oauth-clients-application.shared.resources-config.schemas';\nexport * from './security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas';\nexport * from './security/oauth-clients/oauth-consent-grants.shared.schemas';\nexport * from './security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas';\nexport * from './security/authentications/authentication.shared.dto.schemas';\nexport * from './security/authentications/authentication.shared.schemas';\nexport * from './security/authentications/mfa-backup-code-contract.shared';\nexport * from './security/authentications/siem/siem-delivery-reliability-contract.shared';\nexport * from './security/authentications/authentication.shared.utils';\nexport * from './security/authentications/consumable-token.shared.schemas';\nexport * from './security/authentications/anonymous-session/anonymous-session.shared.contract';\nexport * from './security/authentications/password-reset.shared.dto.schemas';\nexport * from './security/authentications/registration.shared.dto.schemas';\nexport * from './security/authorizations/administrative-continuity.shared.schemas';\nexport * from './security/authorizations/platform-access-grants.shared.schemas';\nexport * from './security/authorizations/platform-access-grants.shared.resources-config.schemas';\nexport * from './security/authorizations/roles.shared.defaults';\nexport * from './security/authorizations/roles.shared.schemas';\nexport * from './security/authorizations/roles.shared.utils';\nexport * from './security/crypto-keys/crypto-keys.shared.schemas';\n\n\n// Users\nexport * from './users/inbound-contacts.shared.schemas';\nexport * from './users/inbound-contacts.shared.resources-config.schemas';\nexport * from './users/users.shared.schemas';\nexport * from './users/users.shared.resources-config.schemas';\nexport * from './users/user-profiles.shared.resources-config.schemas';\nexport * from './users/user-preferences-reset.shared.utils';\nexport * from './users/user-preferences.shared.resources-config.schemas';\nexport * from './users/user-self.shared.resources-config.schemas';\nexport * from './users/user-self-profiles.shared.resources-config.schemas';\nexport * from './users/user-self-preferences.shared.resources-config.schemas';\nexport * from './users/anonymous-user-marketing-metadata.shared.schemas';\nexport * from './users/anonymous-users.shared.schema';\nexport * from './users/anonymous-users.shared.resources-config.schemas';\nexport * from './users/user-credentials.shared.schemas';\nexport * from './users/user-credentials.shared.resources-config.schemas';\nexport * from './users/user-identity-links.shared.schemas';\nexport * from './users/user-identity-links.shared.resources-config.schemas';\n\n// Analytics Value Moments\nexport * from './config/analytics-value-moments.shared.schemas';\n\n// Features System\nexport * from './features/core-feature-definitions.shared';\nexport * from './features/feature-builders.shared';\nexport * from './features/feature-definition.shared.schemas';\nexport * from './features/user-features.shared.resources-config.schemas';\nexport * from './features/application-features.shared.resources-config.schemas';\nexport * from './features/scope-features.shared.schemas';\nexport * from './features/feature-registry.shared';\nexport * from './features/feature-resolution.shared.schemas';\n\n// Email System\nexport * from './notifications/email/email-context.shared.schemas';\nexport * from './notifications/email/email-template-registry.shared.schemas';\nexport * from './notifications/email/email-template.shared.enums';\n\n// Guidance\nexport * from './guidance/guidance-flow.shared.schemas';\nexport * from './guidance/guidance-state.shared.schemas';\nexport * from './guidance/guidance-state.shared.utils';\nexport * from './guidance/guidance-state.shared.resources-config.schemas';\n// Progression (Phase 4)\nexport * from './guidance/milestone-definition.shared.schemas';\nexport * from './guidance/milestone-builders.shared';\nexport * from './guidance/progression-state.shared.schemas';\nexport * from './guidance/progression-state.shared.resources-config.schemas';\n\n// Lifecycle (Phase 5)\nexport * from './guidance/lifecycle-state.shared.schemas';\nexport * from './guidance/lifecycle-config.shared.schemas';\nexport * from './guidance/lifecycle-state.shared.resources-config.schemas';\n\n// Data-Seeding (Phase 7 / Item 47 — cron scheduler)\nexport * from './data-seeding/data-seeding-config.shared.schemas';\n\n// Domain Modules\nexport * from './runtime/domain-module.shared.definitions';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBAAiB,EAAE,CAAC;AAEpB,cAAc,yDAAyD,CAAC;AACxE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAA;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8DAA8D,CAAC;AAE7E,cAAc,mDAAmD,CAAC;AAClE,cAAc,uDAAuD,CAAC;AACtE,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uEAAuE,CAAC;AACtF,cAAc,iDAAiD,CAAC;AAChE,cAAc,kEAAkE,CAAC;AACjF,cAAc,sDAAsD,CAAC;AACrE,cAAc,uEAAuE,CAAC;AACtF,cAAc,qDAAqD,CAAC;AACpE,cAAc,sEAAsE,CAAC;AACrF,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,4EAA4E,CAAC;AAE3F,cAAc,6DAA6D,CAAC;AAC5E,cAAc,uEAAuE,CAAC;AAEtF,mGAAmG;AACnG,mGAAmG;AACnG,iGAAiG;AACjG,8FAA8F;AAC9F,mGAAmG;AACnG,qDAAqD;AACrD,EAAE;AACF,oEAAoE;AACpE,mGAAmG;AACnG,kGAAkG;AAClG,kGAAkG;AAClG,gGAAgG;AAChG,gGAAgG;AAChG,6GAA6G;AAC7G,gGAAgG;AAChG,qDAAqD;AACrD,EAAE;AACF,2FAA2F;AAC3F,0FAA0F;AAE1F,cAAc,wDAAwD,CAAC;AACvE,cAAc,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c,8DAA8D,CAAC;AAE7E,sBAAsB;AACtB,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4DAA4D,CAAC;AAE3E,oDAAoD;AACpD,cAAc,mDAAmD,CAAC;AAElE,iBAAiB;AACjB,cAAc,4CAA4C,CAAC","sourcesContent":["// Flow-Actor System & App-Blueprint\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators();\n\nexport * from './companion/shared-library-companion.shared.definitions';\nexport * from './companion/provider-discovery.shared.schemas';\nexport * from './flows-actors/flows.shared.schemas'\nexport * from './flows-actors/actors.shared.schemas';\nexport * from './flows-actors/tasks.actors.shared.schemas';\nexport * from './flows-actors/task-continuity-binding.actors.shared.schemas';\n\nexport * from './flows-actors/flows-actors.system.shared.schemas';\nexport * from './flows-actors/flows-actors.system.shared.definitions';\nexport * from './flows-actors/agents.shared.schemas';\nexport * from './flows-actors/mcp-servers.shared.schemas';\nexport * from './flows-actors/agent-traceability.shared.schemas';\nexport * from './flows-actors/flows-actors.io.shared.schemas';\nexport * from './flows-actors/flows-actors.commons.shared.schemas';\nexport * from './flows-actors/flows-actors.frontend.shared.schemas';\nexport * from './flows-actors/flows-actors-execution.shared.schemas';\nexport * from './flows-actors/flows-actors-execution.shared.resources-config.schemas';\nexport * from './flows-actors/flows-actors-task.shared.schemas';\nexport * from './flows-actors/flows-actors-task.shared.resources-config.schemas';\nexport * from './flows-actors/a2a-token-budget-state.shared.schemas';\nexport * from './flows-actors/a2a-token-budget-state.shared.resources-config.schemas';\nexport * from './flows-actors/a2a-push-delivery-log.shared.schemas';\nexport * from './flows-actors/a2a-push-delivery-log.shared.resources-config.schemas';\nexport * from './flows-actors/prompt-ir.shared.schemas';\nexport * from './flows-actors/deliberation.shared.schemas';\n\nexport * from './flows-actors/utils/flow-actors.context-builder.apps-context.shared.utils';\n\nexport * from './flows-actors/apps-blueprint/apps-blueprint.shared.schemas';\nexport * from './flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas';\n\n// Meta-workflow contracts (playbooks, decisions, actions, execution bindings, portable application\n// continuity) are NOT re-exported here. They are defined in this package and published through the\n// dedicated `@wildo-ai/saas-models/meta-workflows` entrypoint, so the root barrel does not put a\n// whole authoring domain in front of consumers that only need the resource/schema vocabulary.\n// Re-adding any `flows-actors/meta-workflows/**` line here fails `pnpm check:package-entrypoints`.\n// See `.claude/rules/package-public-entrypoints.md`.\n//\n// The BOUNDARY between that domain and the Actor Task vocabulary is\n// `flows-actors/task-continuity-binding.actors.shared.schemas`, exported above. It is deliberately\n// NOT a `meta-workflows/**` file: a root-exported Actor Task carries a continuity correlation, so\n// the correlation object and the one nominal enum on it belong to the root's own surface. Keeping\n// them on the far side of the subpath is what produced `TS2742`/`TS2883` at every consumer that\n// derived a schema from `Actors_Task_Schema` — the `meta-workflows` subpath published the enum,\n// but a root-only consumer never resolves that subpath, so no name it could use existed — while transitively\n// dragging 12 of the 15 `meta-workflows/**` modules into this barrel's closure anyway, which is\n// exactly what the paragraph above claims not to do.\n//\n// When a root-exported contract needs something the authoring domain owns, move it to that\n// boundary module. Do NOT re-export across the subpath, and do NOT annotate the consumer.\n\nexport * from './external-providers/external-providers.shared.schemas';\nexport * from './external-providers/engine-capabilities.shared.schemas';\nexport * from './external-providers/engine-capability-resolution-mode.shared';\nexport * from './external-providers/frontend-bootstrap.shared.schemas';\nexport * from './external-providers/provider-frontend-surface.shared.schemas';\nexport * from './external-providers/provider-metadata.shared.schemas';\nexport * from './external-providers/provider-tier-rule.shared.utils';\nexport * from './external-providers/provider-capability.shared.schemas';\nexport * from './external-providers/provider-protocol.shared.schemas';\nexport * from './external-providers/compose-provider-registry.shared';\n\n// The external-data AUTHORING contract (the virtual binding + the pipeline declaration) is\n// published ONLY by `@wildo-ai/saas-models/external-data` — one door per room. Row IDENTITY stays\n// here on purpose: a synthesized id reaches URLs and frontend routing, so it is not an integration\n// concern. See `external-data.exports.ts` for the measurement behind both decisions.\nexport * from './http-api-binding/http-api-binding-id.shared.utils';\n\nexport * from './errors/errors.shared.schemas';\nexport * from './frontend-definitions/frontend-notification-custom-message-ref.definitions';\nexport * from './i18n/labelling.dto.shared.schemas';\nexport * from './i18n/interpolate-label-params.shared.utils';\n\nexport * from './errors/errors.shared.definitions';\nexport * from './errors/errors.shared.utils';\nexport * from './errors/errors.custom-message-ref.shared.definitions';\nexport * from './errors/resource-access-forbidden.shared.error';\nexport * from './errors/zod-issue-formatting.shared.utils';\n\nexport * from './files/files.shared.schemas';\nexport * from './files/files.shared.utils';\nexport * from './files/files.shared.resources-config.schemas';\nexport * from './files/file-upload-grant.shared.schemas';\nexport * from './notifications/notification-badges.core.definitions';\nexport * from './notifications/notification-badges.schemas';\nexport * from './notifications/notification-badges.shared.resources-config.schemas';\nexport * from './notifications/notifications.shared.schemas';\nexport * from './notifications/m2m/webhook-config.shared.schemas';\nexport * from './notifications/m2m/m2m-webhook-delivery-contract.shared';\nexport * from './notifications/m2m/webhook-config.shared.resources-config.schemas';\nexport * from './notifications/m2m/m2m-webhook-delivery-log.shared.schemas';\nexport * from './notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas';\n\nexport * from './requests/header-keys.shared';\nexport * from './requests/websocket.shared.schemas';\nexport * from './requests/http-requests.shared';\nexport * from './crdt/crdt-merge.shared.utils';\n\n// Data Seeding — schemas + factory + DataSeedRun resource were RELOCATED to\n// `@wildo-ai/saas-backend-lib` in Phase 2.G (the user moved them; the\n// shared models for data-seeding are a backend-only concern). Consumers\n// must import from `@wildo-ai/saas-backend-lib` instead. Do NOT re-add\n// `export * from './data-seeding/...'` here — the directory no longer\n// exists in this package.\n\nexport * from './requests/rate-limits.shared.schemas';\nexport * from './requests/manual-controllers-routes-urls';\nexport * from './requests/manual-controllers-routes-documentation';\nexport * from './resources/resources-registry.shared.core.definitions';\nexport * from './resources/resources.shared.core.definitions';\nexport * from './resources/resources.shared.schemas';\nexport * from './resources/context-policy.shared.schemas';\nexport * from './resources/child-operations.shared.schemas';\nexport * from './resources/relationship-display.shared.schemas';\nexport * from './resources/resources.shared.utils';\nexport * from './resources/resources-config.shared.factory';\nexport * from './resources/resources-config.shared.schemas';\nexport * from './resources/collection-query-parameters.shared';\nexport * from './resources/resources-relationships.shared.factory';\nexport * from './resources/resources-serialization.shared.schemas';\n// DELETED: resource-frontend.shared.schemas — transferred to @wildo-ai/saas-frontend-lib\nexport * from './resources/utils/persistence-adapter-discrimination.shared.utils';\nexport * from './resources/utils/resources-config-operations.path.utils';\nexport * from './resources/utils/resources-config-operations.utils';\nexport * from './resources/utils/resources-config-operations.urls-builder.utils';\nexport * from './resources/utils/resources-config-operations.dtos-builder.utils';\nexport * from './resources/utils/templatable-file-fields.shared.utils';\nexport * from './resources/utils/context-addressed-composition-singleton.shared.utils';\nexport * from './resources/utils/resources-config-naming.utils';\nexport * from './resources/utils/resource-polymorphism.utils';\nexport * from './resources/utils/resource-polymorphism.schemas';\nexport * from './resources/utils/resource-polymorphism.relationships';\nexport * from './resources/utils/resource-polymorphism.factory';\nexport * from './resources/utils/resources-config-context-needs.utils';\nexport * from './resources/utils/required-fk-fillability.validation';\nexport * from './resources/utils/composition-seedability.validation';\nexport * from './resources/utils/composition-cascade-deletability.validation';\nexport * from './resources/utils/duplicate-relationship-registration.validation';\nexport * from './resources/utils/schema-family-builder.utils';\nexport * from './resources/utils/schema-variant-resolver.utils';\nexport * from './resources/utils/field-value-disclosure.utils';\nexport * from './resources/utils/resources-summary.utils';\nexport * from './resources/utils/repository-dto-builder.utils';\nexport * from './resources/utils/schema-type-utils';\nexport * from './resources/utils/schema-type-inference.utils';\nexport * from './resources/utils/resource-operation-type-guards.utils';\nexport * from './resources/utils/shared-persistence-collection.utils';\nexport * from './runtime/execution-context.shared.schemas';\nexport * from './runtime/runtime.shared.schemas';\n\n// Charts / Aggregation engine\nexport * from './charts/aggregation-query.shared.schemas';\nexport * from './charts/aggregation.shared.definitions';\nexport * from './charts/chart-definition-builder.shared';\n\n// Queue system\nexport * from './queue/rabbitmq-queue-args.shared';\nexport * from './queue/queues.shared.schemas';\nexport * from './queue/queues.shared.utils';\nexport * from './queue/jobs.shared.schemas';\nexport * from './queue/jobs.shared.utils';\nexport * from './queue/jobs.shared.resources-config.schemas';\nexport * from './resources/utils/resources-serialization.utils';\nexport * from './resources/utils/resource-subtree.utils';\n\n// Monitoring domain\nexport * from './monitoring/monitoring.shared.schemas';\n\n// Applications domain (must come before config due to dependencies)\nexport * from './applications/application-subject.shared.schemas';\nexport * from './applications/applications.shared.schemas';\nexport * from './applications/applications.shared.resources-config.schemas';\nexport * from './applications/application-versions.shared.resources-config.schemas';\nexport * from './applications/application-metadata.shared.resources-config.schemas';\nexport * from './applications/applications-context.schemas';\n\n// Config domain\nexport * from './config/app-frontend-type.shared.schemas';\nexport * from './config/entity-identity-config.shared.schemas';\nexport * from './config/registration-acquisition-policy.shared.utils';\nexport * from './config/auth-config-resolution.shared.utils';\nexport * from './config/app-configuration-shared.shared.schemas';\nexport * from './config/brand-assets.shared.schemas';\nexport * from './config/configuration-validation.shared.schemas';\nexport * from './config/postgresql.shared.schemas';\nexport * from './config/frontend/navigation.shared.schemas';\n// DELETED: app-level-action-launcher.shared.schemas — transferred to @wildo-ai/saas-frontend-lib\n// DELETED: views-frontend.shared.schemas — FrontendView_ScopeMode + FrontendView_DefinitionSchema transferred to @wildo-ai/saas-frontend-lib\n// DELETED: composite-view.frontend.schemas — transferred to @wildo-ai/saas-frontend-lib\nexport * from './config/frontend/chart-definition.shared.schemas';\nexport * from './config/frontend/chart-registration-alignment.shared';\nexport * from './config/frontend/onboarding.shared.schemas';\n\n// Other domains (excluding resources-config.schemas)\n\n// Audit and Compliance\nexport * from './compliance/audit-trails/audit-actor.shared.schemas';\nexport * from './compliance/audit-trails/auditable-events.shared.schema';\nexport * from './compliance/audit-trails/audit-logs.shared.resources-config.schemas';\nexport * from './compliance/audit-trails/application-audit-logs.shared.resources-config.schemas';\nexport * from './compliance/audit-trails/security-audit-event-envelope.shared.schema';\nexport * from './compliance/audit-trails/audit-log-sink.shared.schemas';\nexport * from './compliance/audit-trails/audit-trail-config.shared.schemas';\nexport * from './compliance/data-classification/data-classification.shared.schemas';\nexport * from './compliance/documents/governed-documents.shared.schemas';\nexport * from './compliance/privacy/data-retention.shared.schemas';\nexport * from './compliance/privacy/retention-schedule.shared.schemas';\nexport * from './compliance/privacy/ai-use-posture.shared.schemas';\nexport * from './compliance/privacy/client-storage.shared.schemas';\nexport * from './compliance/privacy/personal-data-category.shared.schemas';\nexport * from './compliance/privacy/personal-data-declaration.shared.utils';\nexport * from './compliance/privacy/operating-jurisdictions.shared.schemas';\nexport * from './compliance/privacy/operator-compliance-identity.shared.schemas';\nexport * from './external-providers/provider-compliance-profile.shared.schemas';\nexport * from './compliance/privacy/impersonalization.shared.schemas';\nexport * from './compliance/privacy/impersonalization-scrub.shared.utils';\nexport * from './compliance/privacy/subject-erasure.shared.schemas';\nexport * from './compliance/privacy/subject-export.shared.schemas';\nexport * from './exports/tabular-csv.shared.utils';\nexport * from './resources/utils/collection-export.shared.utils';\nexport * from './compliance/privacy/subject-export-render.shared.utils';\nexport * from './compliance/privacy/redaction.shared.schemas';\nexport * from './compliance/privacy/privacy.shared.schemas';\nexport * from './compliance/privacy/sharing.shared.schemas';\n// Auth (Polymorphic — SSO + SIEM + SCIM)\n\nexport * from './security/authentications/sso/sso-config.shared.schemas';\nexport * from './security/authentications/sso/sso-config.shared.resources-config.schemas';\nexport * from './security/authentications/sso/sso-connection.shared.schemas';\nexport * from './security/authentications/sso/sso-connection.shared.resources-config.schemas';\nexport * from './security/authentications/siem/siem-export-config.shared.schemas';\nexport * from './security/authentications/siem/siem-export-config.shared.resources-config.schemas';\nexport * from './security/authentications/siem/siem-delivery-dlq.shared.schemas';\nexport * from './security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas';\nexport * from './security/authentications/scim/scim-tokens.shared.schemas';\nexport * from './security/authentications/scim/scim-tokens.shared.resources-config.schemas';\nexport * from './security/authentications/scim/scim-organization-unit-mapping.shared';\nexport * from './security/authentications/scim/scim-provisioning-config.shared.schemas';\nexport * from './security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas';\n\n// Billing\nexport * from './billing/billing-account.shared.schemas';\nexport * from './billing/billing-account.shared.resources-config.schemas';\nexport * from './billing/billing-configuration.shared.schemas';\nexport * from './billing/billing-enums.shared.schemas';\nexport * from './billing/billing-types.shared.schemas';\nexport * from './billing/credit-pool.shared.schemas';\nexport * from './billing/credit-pool.shared.resources-config.schemas';\nexport * from './billing/invoice-ref.shared.schemas';\nexport * from './billing/invoice-ref.shared.resources-config.schemas';\nexport * from './billing/price.shared.schemas';\nexport * from './billing/price.shared.resources-config.schemas';\nexport * from './billing/product.shared.schemas';\nexport * from './billing/product.shared.resources-config.schemas';\nexport * from './billing/product-behavior-policy.shared.schemas';\nexport * from './billing/product-definition.shared.schemas';\nexport * from './billing/promotions.shared.schemas';\nexport * from './billing/promotions.shared.resources-config.schemas';\nexport * from './billing/referral.shared.schemas';\nexport * from './billing/referral.shared.resources-config.schemas';\nexport * from './billing/subscription.shared.schemas';\nexport * from './billing/subscription.shared.resources-config.schemas';\nexport * from './billing/usage-record.shared.schemas';\nexport * from './billing/usage-record.shared.resources-config.schemas';\n\n// Organizations\nexport * from './organizations/organization-features.shared.schemas';\nexport * from './organizations/organization-features.shared.resources-config.schemas';\nexport * from './organizations/organization-members.shared.schemas';\nexport * from './organizations/organization-members.shared.resources-config.schemas';\nexport * from './organizations/organization-notifications.shared.schemas';\nexport * from './organizations/organization-notifications.shared.resources-config.schemas';\nexport * from './organizations/organization-preferences.shared.schemas';\nexport * from './organizations/organization-preferences.shared.resources-config.schemas';\nexport * from './organizations/organization-profile.shared.schemas';\nexport * from './organizations/organization-profile.shared.resources-config.schemas';\nexport * from './organizations/organization-units.shared.schemas';\nexport * from './organizations/organization-units.shared.path';\nexport * from './organizations/organization-unit-members.shared.schemas';\nexport * from './organizations/organization-unit-inheritance.shared';\nexport * from './organizations/organization-unit-narrowing.shared';\nexport * from './organizations/organization-unit-narrowing-decision.shared';\nexport * from './organizations/organization-unit-members.shared.resources-config.schemas';\nexport * from './organizations/organization-units.shared.resources-config.schemas';\nexport * from './organizations/organizations.shared.schemas';\nexport * from './organizations/organizations.shared.resources-config.schemas';\nexport * from './organizations/tenant-teardown-config.shared.schemas';\n\n// Security\nexport * from './security/api-keys/api-keys.shared.schemas';\nexport * from './security/api-keys/api-keys-application.shared.resources-config.schemas';\nexport * from './security/api-keys/api-keys-organization.shared.resources-config.schemas';\nexport * from './security/connected-accounts/provider-credentials.shared.schemas';\nexport * from './security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas';\nexport * from './security/connected-accounts/provider-credentials-user.shared.resources-config.schemas';\nexport * from './security/oauth-clients/oauth-clients.shared.schemas';\nexport * from './security/oauth-clients/oauth-resource-server.shared.schemas';\nexport * from './security/oauth-clients/oauth-clients-application.shared.resources-config.schemas';\nexport * from './security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas';\nexport * from './security/oauth-clients/oauth-consent-grants.shared.schemas';\nexport * from './security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas';\nexport * from './security/authentications/authentication.shared.dto.schemas';\nexport * from './security/authentications/authentication.shared.schemas';\nexport * from './security/authentications/mfa-backup-code-contract.shared';\nexport * from './security/authentications/siem/siem-delivery-reliability-contract.shared';\nexport * from './security/authentications/authentication.shared.utils';\nexport * from './security/authentications/consumable-token.shared.schemas';\nexport * from './security/authentications/anonymous-session/anonymous-session.shared.contract';\nexport * from './security/authentications/password-reset.shared.dto.schemas';\nexport * from './security/authentications/registration.shared.dto.schemas';\nexport * from './security/authorizations/administrative-continuity.shared.schemas';\nexport * from './security/authorizations/platform-access-grants.shared.schemas';\nexport * from './security/authorizations/platform-access-grants.shared.resources-config.schemas';\nexport * from './security/authorizations/roles.shared.defaults';\nexport * from './security/authorizations/roles.shared.schemas';\nexport * from './security/authorizations/roles.shared.utils';\nexport * from './security/crypto-keys/crypto-keys.shared.schemas';\n\n\n// Users\nexport * from './users/inbound-contacts.shared.schemas';\nexport * from './users/inbound-contacts.shared.resources-config.schemas';\nexport * from './users/users.shared.schemas';\nexport * from './users/users.shared.resources-config.schemas';\nexport * from './users/user-profiles.shared.resources-config.schemas';\nexport * from './users/user-preferences-reset.shared.utils';\nexport * from './users/user-preferences.shared.resources-config.schemas';\nexport * from './users/user-self.shared.resources-config.schemas';\nexport * from './users/user-self-profiles.shared.resources-config.schemas';\nexport * from './users/user-self-preferences.shared.resources-config.schemas';\nexport * from './users/anonymous-user-marketing-metadata.shared.schemas';\nexport * from './users/anonymous-users.shared.schema';\nexport * from './users/anonymous-users.shared.resources-config.schemas';\nexport * from './users/user-credentials.shared.schemas';\nexport * from './users/user-credentials.shared.resources-config.schemas';\nexport * from './users/user-identity-links.shared.schemas';\nexport * from './users/user-identity-links.shared.resources-config.schemas';\n\n// Analytics Value Moments\nexport * from './config/analytics-value-moments.shared.schemas';\n\n// Features System\nexport * from './features/core-feature-definitions.shared';\nexport * from './features/feature-builders.shared';\nexport * from './features/feature-definition.shared.schemas';\nexport * from './features/user-features.shared.resources-config.schemas';\nexport * from './features/application-features.shared.resources-config.schemas';\nexport * from './features/scope-features.shared.schemas';\nexport * from './features/feature-registry.shared';\nexport * from './features/feature-resolution.shared.schemas';\n\n// Email System\nexport * from './notifications/email/email-context.shared.schemas';\nexport * from './notifications/email/email-template-registry.shared.schemas';\nexport * from './notifications/email/email-template.shared.enums';\n\n// Guidance\nexport * from './guidance/guidance-flow.shared.schemas';\nexport * from './guidance/guidance-state.shared.schemas';\nexport * from './guidance/guidance-state.shared.utils';\nexport * from './guidance/guidance-state.shared.resources-config.schemas';\n// Progression (Phase 4)\nexport * from './guidance/milestone-definition.shared.schemas';\nexport * from './guidance/milestone-builders.shared';\nexport * from './guidance/progression-state.shared.schemas';\nexport * from './guidance/progression-state.shared.resources-config.schemas';\n\n// Lifecycle (Phase 5)\nexport * from './guidance/lifecycle-state.shared.schemas';\nexport * from './guidance/lifecycle-config.shared.schemas';\nexport * from './guidance/lifecycle-state.shared.resources-config.schemas';\n\n// Data-Seeding (Phase 7 / Item 47 — cron scheduler)\nexport * from './data-seeding/data-seeding-config.shared.schemas';\n\n// Domain Modules\nexport * from './runtime/domain-module.shared.definitions';\n"]}
|
|
@@ -41,7 +41,12 @@ export declare enum SystemEmailTemplateRef {
|
|
|
41
41
|
* - `objectContext`: contains `primaryScopeContext` (appName, organizationName, etc.)
|
|
42
42
|
* - `userContext`: recipient info (email, name, preferences) — changes per recipient
|
|
43
43
|
* - `eventData`: system-event-specific payload (replaces `currentObject` for
|
|
44
|
-
* non-resource emails)
|
|
44
|
+
* non-resource emails).
|
|
45
|
+
*
|
|
46
|
+
* ⚠️ Nothing parses a send against `eventDataSchema`. The payload travels in the untyped
|
|
47
|
+
* `additionalContext` slot of the send request and each template casts it, so a misspelled or
|
|
48
|
+
* missing field renders as empty text rather than being refused. Treat the schema below as the
|
|
49
|
+
* DOCUMENTED shape a caller is expected to supply, not as a check that it did.
|
|
45
50
|
*/
|
|
46
51
|
export interface SystemEmailTemplateDefinition {
|
|
47
52
|
/** Unique template reference. */
|
|
@@ -53,11 +58,15 @@ export interface SystemEmailTemplateDefinition {
|
|
|
53
58
|
/** Scope for header/footer behavior. */
|
|
54
59
|
scope: EmailTemplateScope;
|
|
55
60
|
/**
|
|
56
|
-
* Zod schema
|
|
61
|
+
* Zod schema DOCUMENTING the event-specific payload (`eventData`).
|
|
57
62
|
*
|
|
58
63
|
* This is the system-event payload, NOT a flattened input DTO.
|
|
59
64
|
* Common fields (appName, recipientEmail) come from
|
|
60
65
|
* `objectContext` / `userContext`.
|
|
66
|
+
*
|
|
67
|
+
* It is declarative: no send path parses against it. Keep it accurate anyway, because it is the
|
|
68
|
+
* only statement of what a template needs, and a caller that disagrees with it produces a blank
|
|
69
|
+
* region in the rendered email instead of an error.
|
|
61
70
|
*/
|
|
62
71
|
eventDataSchema: z.ZodType<unknown>;
|
|
63
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template-registry.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template-registry.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAMvC;;;GAGG;AACH,oBAAY,sBAAsB;IAEhC,aAAa,yBAAyB;IACtC,cAAc,0BAA0B;IACxC,kBAAkB,8BAA8B;IAChD,SAAS,qBAAqB;IAC9B,UAAU,sBAAsB;IAGhC,uBAAuB,mCAAmC;IAC1D,2BAA2B,uCAAuC;IAGlE,yBAAyB,qCAAqC;IAC9D,sBAAsB,kCAAkC;IACxD,cAAc,0BAA0B;IAGxC,cAAc,0BAA0B;IACxC,gBAAgB,4BAA4B;CAC7C;AAMD
|
|
1
|
+
{"version":3,"file":"email-template-registry.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template-registry.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAMvC;;;GAGG;AACH,oBAAY,sBAAsB;IAEhC,aAAa,yBAAyB;IACtC,cAAc,0BAA0B;IACxC,kBAAkB,8BAA8B;IAChD,SAAS,qBAAqB;IAC9B,UAAU,sBAAsB;IAGhC,uBAAuB,mCAAmC;IAC1D,2BAA2B,uCAAuC;IAGlE,yBAAyB,qCAAqC;IAC9D,sBAAsB,kCAAkC;IACxD,cAAc,0BAA0B;IAGxC,cAAc,0BAA0B;IACxC,gBAAgB,4BAA4B;CAC7C;AAMD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,6BAA6B;IAC5C,iCAAiC;IACjC,WAAW,EAAE,sBAAsB,CAAC;IACpC,uCAAuC;IACvC,IAAI,EAAE,iBAAiB,CAAC;IACxB,0CAA0C;IAC1C,SAAS,EAAE,sBAAsB,CAAC;IAClC,wCAAwC;IACxC,KAAK,EAAE,kBAAkB,CAAC;IAC1B;;;;;;;;;;OAUG;IACH,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;CACrC;AAMD,wCAAwC;AACxC,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,sBAAsB,EAAE,6BAA6B,CAyJrG,CAAC;AAMF,oCAAoC;AACpC,wBAAgB,wBAAwB,IAAI,sBAAsB,EAAE,CAEnE;AAED,6CAA6C;AAC7C,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,sBAAsB,GAAG,6BAA6B,CAEtG;AAED,mDAAmD;AACnD,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,IAAI,sBAAsB,CAG9F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template-registry.shared.schemas.js","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template-registry.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC;AAEvC,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF;;;GAGG;AACH,MAAM,CAAN,IAAY,sBAoBX;AApBD,WAAY,sBAAsB;IAChC,iEAAiE;IACjE,gEAAsC,CAAA;IACtC,kEAAwC,CAAA;IACxC,0EAAgD,CAAA;IAChD,wDAA8B,CAAA;IAC9B,0DAAgC,CAAA;IAEhC,iEAAiE;IACjE,oFAA0D,CAAA;IAC1D,4FAAkE,CAAA;IAElE,iEAAiE;IACjE,wFAA8D,C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C,CAAC;AAC/C,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,2BAA2B,CAAC,GAA2B;IACrE,OAAO,2BAA2B,CAAC,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED,mDAAmD;AACnD,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,OAAO,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,WAAqC,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["/**\n * System Email Template Registry\n *\n * Runtime identity contract for system-level (non-resource-attached) email\n * templates. Carries only mechanical information: `templateRef`, routing\n * classifications (`type`, `frequency`, `scope`), and the Zod schema for the\n * event payload.\n *\n * **All human-readable / spec-oriented content (purpose prose, tone, text\n * slots, event-data field narration) lives in\n * `@wildo-ai/saas-specifications`** — specifically in\n * `SystemEmailTemplateSpecificationConfig` under\n * `src/engine/notifications/system-emails/`. The runtime registry must stay\n * free of i18n/spec prose so the companion translation/transposition\n * pipeline owns the single source of truth for authored semantics.\n */\n\nimport { z } from 'zod';\nimport {\n EmailTemplateType,\n EmailTemplateFrequency,\n EmailTemplateScope,\n} from './email-template.shared.enums';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// SYSTEM EMAIL TEMPLATE REF ENUM\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * System email template registry — non-resource related.\n * Uses dot notation for namespacing (`system.*`).\n */\nexport enum SystemEmailTemplateRef {\n // ─── Authentication ───────────────────────────────────────────\n WELCOME_EMAIL = \"system.welcome_email\",\n PASSWORD_RESET = \"system.password_reset\",\n EMAIL_VERIFICATION = \"system.email_verification\",\n EMAIL_OTP = \"system.email_otp\",\n MAGIC_LINK = \"system.magic_link\",\n\n // ─── Organization ─────────────────────────────────────────────\n ORGANIZATION_INVITATION = \"system.organization_invitation\",\n ORGANIZATION_MEMBER_REMOVED = \"system.organization_member_removed\",\n\n // ─── Subscription & Billing ───────────────────────────────────\n SUBSCRIPTION_CONFIRMATION = \"system.subscription_confirmation\",\n SUBSCRIPTION_CANCELLED = \"system.subscription_cancelled\",\n PAYMENT_FAILED = \"system.payment_failed\",\n\n // ─── Security ─────────────────────────────────────────────────\n SECURITY_ALERT = \"system.security_alert\",\n NEW_DEVICE_LOGIN = \"system.new_device_login\",\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// SYSTEM TEMPLATE DEFINITION INTERFACE\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Runtime identity for a system email template.\n *\n * System templates use the same context structure as resource-based templates:\n * - `objectContext`: contains `primaryScopeContext` (appName, organizationName, etc.)\n * - `userContext`: recipient info (email, name, preferences) — changes per recipient\n * - `eventData`: system-event-specific payload (replaces `currentObject` for\n * non-resource emails); validated by `eventDataSchema`.\n */\nexport interface SystemEmailTemplateDefinition {\n /** Unique template reference. */\n templateRef: SystemEmailTemplateRef;\n /** Email type for provider routing. */\n type: EmailTemplateType;\n /** Frequency for lifecycle management. */\n frequency: EmailTemplateFrequency;\n /** Scope for header/footer behavior. */\n scope: EmailTemplateScope;\n /**\n * Zod schema for the event-specific payload (`eventData`).\n *\n * This is the system-event payload, NOT a flattened input DTO.\n * Common fields (appName, recipientEmail) come from\n * `objectContext` / `userContext`.\n */\n eventDataSchema: z.ZodType<unknown>;\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// SYSTEM TEMPLATE REGISTRY\n// ─────────────────────────────────────────────────────────────────────────────\n\n/** Registry of all system templates. */\nexport const SystemEmailTemplateRegistry: Record<SystemEmailTemplateRef, SystemEmailTemplateDefinition> = {\n [SystemEmailTemplateRef.WELCOME_EMAIL]: {\n templateRef: SystemEmailTemplateRef.WELCOME_EMAIL,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n loginUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.PASSWORD_RESET]: {\n templateRef: SystemEmailTemplateRef.PASSWORD_RESET,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n resetUrl: z.url(),\n expiresInMinutes: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.EMAIL_VERIFICATION]: {\n templateRef: SystemEmailTemplateRef.EMAIL_VERIFICATION,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n verifyUrl: z.url(),\n expiresInHours: z.number().int().positive().optional(),\n }),\n },\n\n [SystemEmailTemplateRef.EMAIL_OTP]: {\n templateRef: SystemEmailTemplateRef.EMAIL_OTP,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n otpCode: z.string().min(4).max(8),\n expiresInMinutes: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.MAGIC_LINK]: {\n templateRef: SystemEmailTemplateRef.MAGIC_LINK,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n magicLinkUrl: z.url(),\n tokenValue: z.string(),\n expiresInMinutes: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.ORGANIZATION_INVITATION]: {\n templateRef: SystemEmailTemplateRef.ORGANIZATION_INVITATION,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.ORGANIZATION,\n eventDataSchema: z.object({\n inviterName: z.string(),\n organizationName: z.string(),\n role: z.string(),\n acceptUrl: z.url(),\n expiresInDays: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.ORGANIZATION_MEMBER_REMOVED]: {\n templateRef: SystemEmailTemplateRef.ORGANIZATION_MEMBER_REMOVED,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.ORGANIZATION,\n eventDataSchema: z.object({\n organizationName: z.string(),\n removedByName: z.string().optional(),\n reason: z.string().optional(),\n }),\n },\n\n [SystemEmailTemplateRef.SUBSCRIPTION_CONFIRMATION]: {\n templateRef: SystemEmailTemplateRef.SUBSCRIPTION_CONFIRMATION,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n planName: z.string(),\n amount: z.number().positive(),\n currency: z.string().length(3),\n billingPeriod: z.enum(['monthly', 'yearly']),\n nextBillingDate: z.coerce.date(),\n dashboardUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.SUBSCRIPTION_CANCELLED]: {\n templateRef: SystemEmailTemplateRef.SUBSCRIPTION_CANCELLED,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n planName: z.string(),\n effectiveDate: z.coerce.date(),\n reactivateUrl: z.url().optional(),\n }),\n },\n\n [SystemEmailTemplateRef.PAYMENT_FAILED]: {\n templateRef: SystemEmailTemplateRef.PAYMENT_FAILED,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n amount: z.number().positive(),\n currency: z.string().length(3),\n lastFourDigits: z.string().length(4),\n retryDate: z.coerce.date(),\n updatePaymentUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.SECURITY_ALERT]: {\n templateRef: SystemEmailTemplateRef.SECURITY_ALERT,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n alertType: z.enum(['suspicious_login', 'password_changed', 'mfa_disabled', 'new_api_key', 'other']),\n description: z.string(),\n timestamp: z.coerce.date(),\n ipAddress: z.string().optional(),\n location: z.string().optional(),\n securitySettingsUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.NEW_DEVICE_LOGIN]: {\n templateRef: SystemEmailTemplateRef.NEW_DEVICE_LOGIN,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n deviceType: z.string(),\n browser: z.string(),\n operatingSystem: z.string(),\n ipAddress: z.string(),\n location: z.string().optional(),\n loginTime: z.coerce.date(),\n revokeAccessUrl: z.url(),\n }),\n },\n};\n\n// ─────────────────────────────────────────────────────────────────────────────\n// HELPER FUNCTIONS\n// ─────────────────────────────────────────────────────────────────────────────\n\n/** Get all system template refs. */\nexport function getAllSystemTemplateRefs(): SystemEmailTemplateRef[] {\n return Object.values(SystemEmailTemplateRef);\n}\n\n/** Get system template definition by ref. */\nexport function getSystemTemplateDefinition(ref: SystemEmailTemplateRef): SystemEmailTemplateDefinition {\n return SystemEmailTemplateRegistry[ref];\n}\n\n/** Check if a templateRef is a system template. */\nexport function isSystemTemplateRef(templateRef: string): templateRef is SystemEmailTemplateRef {\n return templateRef.startsWith('system.') &&\n Object.values(SystemEmailTemplateRef).includes(templateRef as SystemEmailTemplateRef);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"email-template-registry.shared.schemas.js","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template-registry.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC;AAEvC,gFAAgF;AAChF,iCAAiC;AACjC,gFAAgF;AAEhF;;;GAG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YAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE;YAC1B,eAAe,EAAE,CAAC,CAAC,GAAG,EAAE;SACzB,CAAC;KACH;CACF,CAAC;AAEF,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF,oCAAoC;AACpC,MAAM,UAAU,wBAAwB;IACtC,OAAO,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAC/C,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,2BAA2B,CAAC,GAA2B;IACrE,OAAO,2BAA2B,CAAC,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED,mDAAmD;AACnD,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,OAAO,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,WAAqC,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["/**\n * System Email Template Registry\n *\n * Runtime identity contract for system-level (non-resource-attached) email\n * templates. Carries only mechanical information: `templateRef`, routing\n * classifications (`type`, `frequency`, `scope`), and the Zod schema for the\n * event payload.\n *\n * **All human-readable / spec-oriented content (purpose prose, tone, text\n * slots, event-data field narration) lives in\n * `@wildo-ai/saas-specifications`** — specifically in\n * `SystemEmailTemplateSpecificationConfig` under\n * `src/engine/notifications/system-emails/`. The runtime registry must stay\n * free of i18n/spec prose so the companion translation/transposition\n * pipeline owns the single source of truth for authored semantics.\n */\n\nimport { z } from 'zod';\nimport {\n EmailTemplateType,\n EmailTemplateFrequency,\n EmailTemplateScope,\n} from './email-template.shared.enums';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// SYSTEM EMAIL TEMPLATE REF ENUM\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * System email template registry — non-resource related.\n * Uses dot notation for namespacing (`system.*`).\n */\nexport enum SystemEmailTemplateRef {\n // ─── Authentication ───────────────────────────────────────────\n WELCOME_EMAIL = \"system.welcome_email\",\n PASSWORD_RESET = \"system.password_reset\",\n EMAIL_VERIFICATION = \"system.email_verification\",\n EMAIL_OTP = \"system.email_otp\",\n MAGIC_LINK = \"system.magic_link\",\n\n // ─── Organization ─────────────────────────────────────────────\n ORGANIZATION_INVITATION = \"system.organization_invitation\",\n ORGANIZATION_MEMBER_REMOVED = \"system.organization_member_removed\",\n\n // ─── Subscription & Billing ───────────────────────────────────\n SUBSCRIPTION_CONFIRMATION = \"system.subscription_confirmation\",\n SUBSCRIPTION_CANCELLED = \"system.subscription_cancelled\",\n PAYMENT_FAILED = \"system.payment_failed\",\n\n // ─── Security ─────────────────────────────────────────────────\n SECURITY_ALERT = \"system.security_alert\",\n NEW_DEVICE_LOGIN = \"system.new_device_login\",\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// SYSTEM TEMPLATE DEFINITION INTERFACE\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Runtime identity for a system email template.\n *\n * System templates use the same context structure as resource-based templates:\n * - `objectContext`: contains `primaryScopeContext` (appName, organizationName, etc.)\n * - `userContext`: recipient info (email, name, preferences) — changes per recipient\n * - `eventData`: system-event-specific payload (replaces `currentObject` for\n * non-resource emails).\n *\n * ⚠️ Nothing parses a send against `eventDataSchema`. The payload travels in the untyped\n * `additionalContext` slot of the send request and each template casts it, so a misspelled or\n * missing field renders as empty text rather than being refused. Treat the schema below as the\n * DOCUMENTED shape a caller is expected to supply, not as a check that it did.\n */\nexport interface SystemEmailTemplateDefinition {\n /** Unique template reference. */\n templateRef: SystemEmailTemplateRef;\n /** Email type for provider routing. */\n type: EmailTemplateType;\n /** Frequency for lifecycle management. */\n frequency: EmailTemplateFrequency;\n /** Scope for header/footer behavior. */\n scope: EmailTemplateScope;\n /**\n * Zod schema DOCUMENTING the event-specific payload (`eventData`).\n *\n * This is the system-event payload, NOT a flattened input DTO.\n * Common fields (appName, recipientEmail) come from\n * `objectContext` / `userContext`.\n *\n * It is declarative: no send path parses against it. Keep it accurate anyway, because it is the\n * only statement of what a template needs, and a caller that disagrees with it produces a blank\n * region in the rendered email instead of an error.\n */\n eventDataSchema: z.ZodType<unknown>;\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// SYSTEM TEMPLATE REGISTRY\n// ─────────────────────────────────────────────────────────────────────────────\n\n/** Registry of all system templates. */\nexport const SystemEmailTemplateRegistry: Record<SystemEmailTemplateRef, SystemEmailTemplateDefinition> = {\n [SystemEmailTemplateRef.WELCOME_EMAIL]: {\n templateRef: SystemEmailTemplateRef.WELCOME_EMAIL,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n loginUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.PASSWORD_RESET]: {\n templateRef: SystemEmailTemplateRef.PASSWORD_RESET,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n resetUrl: z.url(),\n expiresInMinutes: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.EMAIL_VERIFICATION]: {\n templateRef: SystemEmailTemplateRef.EMAIL_VERIFICATION,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n verifyUrl: z.url(),\n expiresInHours: z.number().int().positive().optional(),\n }),\n },\n\n [SystemEmailTemplateRef.EMAIL_OTP]: {\n templateRef: SystemEmailTemplateRef.EMAIL_OTP,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n otpCode: z.string().min(4).max(8),\n expiresInMinutes: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.MAGIC_LINK]: {\n templateRef: SystemEmailTemplateRef.MAGIC_LINK,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n magicLinkUrl: z.url(),\n tokenValue: z.string(),\n expiresInMinutes: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.ORGANIZATION_INVITATION]: {\n templateRef: SystemEmailTemplateRef.ORGANIZATION_INVITATION,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.ORGANIZATION,\n eventDataSchema: z.object({\n inviterName: z.string(),\n organizationName: z.string(),\n role: z.string(),\n acceptUrl: z.url(),\n expiresInDays: z.number().int().positive(),\n }),\n },\n\n [SystemEmailTemplateRef.ORGANIZATION_MEMBER_REMOVED]: {\n templateRef: SystemEmailTemplateRef.ORGANIZATION_MEMBER_REMOVED,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.ORGANIZATION,\n eventDataSchema: z.object({\n organizationName: z.string(),\n removedByName: z.string().optional(),\n reason: z.string().optional(),\n }),\n },\n\n [SystemEmailTemplateRef.SUBSCRIPTION_CONFIRMATION]: {\n templateRef: SystemEmailTemplateRef.SUBSCRIPTION_CONFIRMATION,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n planName: z.string(),\n amount: z.number().positive(),\n currency: z.string().length(3),\n billingPeriod: z.enum(['monthly', 'yearly']),\n nextBillingDate: z.coerce.date(),\n dashboardUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.SUBSCRIPTION_CANCELLED]: {\n templateRef: SystemEmailTemplateRef.SUBSCRIPTION_CANCELLED,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n planName: z.string(),\n effectiveDate: z.coerce.date(),\n reactivateUrl: z.url().optional(),\n }),\n },\n\n [SystemEmailTemplateRef.PAYMENT_FAILED]: {\n templateRef: SystemEmailTemplateRef.PAYMENT_FAILED,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n amount: z.number().positive(),\n currency: z.string().length(3),\n lastFourDigits: z.string().length(4),\n retryDate: z.coerce.date(),\n updatePaymentUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.SECURITY_ALERT]: {\n templateRef: SystemEmailTemplateRef.SECURITY_ALERT,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n alertType: z.enum(['suspicious_login', 'password_changed', 'mfa_disabled', 'new_api_key', 'other']),\n description: z.string(),\n timestamp: z.coerce.date(),\n ipAddress: z.string().optional(),\n location: z.string().optional(),\n securitySettingsUrl: z.url(),\n }),\n },\n\n [SystemEmailTemplateRef.NEW_DEVICE_LOGIN]: {\n templateRef: SystemEmailTemplateRef.NEW_DEVICE_LOGIN,\n type: EmailTemplateType.TRANSACTIONAL,\n frequency: EmailTemplateFrequency.RECURRENT,\n scope: EmailTemplateScope.APPLICATION,\n eventDataSchema: z.object({\n deviceType: z.string(),\n browser: z.string(),\n operatingSystem: z.string(),\n ipAddress: z.string(),\n location: z.string().optional(),\n loginTime: z.coerce.date(),\n revokeAccessUrl: z.url(),\n }),\n },\n};\n\n// ─────────────────────────────────────────────────────────────────────────────\n// HELPER FUNCTIONS\n// ─────────────────────────────────────────────────────────────────────────────\n\n/** Get all system template refs. */\nexport function getAllSystemTemplateRefs(): SystemEmailTemplateRef[] {\n return Object.values(SystemEmailTemplateRef);\n}\n\n/** Get system template definition by ref. */\nexport function getSystemTemplateDefinition(ref: SystemEmailTemplateRef): SystemEmailTemplateDefinition {\n return SystemEmailTemplateRegistry[ref];\n}\n\n/** Check if a templateRef is a system template. */\nexport function isSystemTemplateRef(templateRef: string): templateRef is SystemEmailTemplateRef {\n return templateRef.startsWith('system.') &&\n Object.values(SystemEmailTemplateRef).includes(templateRef as SystemEmailTemplateRef);\n}\n"]}
|
|
@@ -54,6 +54,20 @@
|
|
|
54
54
|
*/
|
|
55
55
|
import { EngineCapability } from '../../external-providers/engine-capabilities.shared.schemas';
|
|
56
56
|
/**
|
|
57
|
+
* @wildo_source:part:start saas.models.email.template-type facet:layer:shared facet:audience:app-developer
|
|
58
|
+
*
|
|
59
|
+
* ⚠️ **A template's `type` decides WHICH VENDOR ships it.** It is not a label: each member maps to a
|
|
60
|
+
* distinct engine capability, and the sender resolves the provider configured against THAT
|
|
61
|
+
* capability. A newsletter left at the default is dispatched through the transactional vendor, on
|
|
62
|
+
* the transactional reputation and quota, and nothing reports it.
|
|
63
|
+
*
|
|
64
|
+
* Declare it on the file-based `EmailTemplateDefinition<L>.type` slot, or inside the system template
|
|
65
|
+
* registry definition.
|
|
66
|
+
*
|
|
67
|
+
* Setting `MARKETING` therefore requires a vendor declared against the marketing capability and named
|
|
68
|
+
* as its primary — otherwise the send has no provider to resolve. Nothing else in the send path
|
|
69
|
+
* changes.
|
|
70
|
+
*
|
|
57
71
|
* Dispatch class for an email template — maps 1:1 with `EngineCapability`
|
|
58
72
|
* for provider routing inside `EmailBackendService`.
|
|
59
73
|
*
|
|
@@ -69,6 +83,7 @@ export declare enum EmailTemplateType {
|
|
|
69
83
|
/** Marketing emails — newsletters, promotions, campaigns. */
|
|
70
84
|
MARKETING = "EMAIL_MARKETING"
|
|
71
85
|
}
|
|
86
|
+
/** @wildo_source:part:end saas.models.email.template-type */
|
|
72
87
|
/**
|
|
73
88
|
* Total `Record<EmailTemplateType, EngineCapability>` used by
|
|
74
89
|
* `EmailBackendService` to pick the configured provider for a given template
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template.shared.enums.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template.shared.enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAM/F
|
|
1
|
+
{"version":3,"file":"email-template.shared.enums.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template.shared.enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAM/F;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,oBAAY,iBAAiB;IAC3B,uEAAuE;IACvE,aAAa,wBAAuC;IACpD,6DAA6D;IAC7D,SAAS,oBAAmC;CAC7C;AACD,6DAA6D;AAE7D;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,EAAE,MAAM,CAAC,iBAAiB,EAAE,gBAAgB,CAG5F,CAAC;AAMF;;;;;;;;;GASG;AACH,oBAAY,sBAAsB;IAChC;;;;;OAKG;IACH,SAAS,cAAc;IACvB;;;;;OAKG;IACH,SAAS,cAAc;CACxB;AAMD;;;;;;;;;;GAUG;AACH,oBAAY,mBAAmB;IAC7B,wDAAwD;IACxD,KAAK,UAAU;IACf,oDAAoD;IACpD,SAAS,cAAc;IACvB,+CAA+C;IAC/C,QAAQ,aAAa;CACtB;AAMD;;;;;;;;;;;;GAYG;AACH,oBAAY,kBAAkB;IAC5B,2DAA2D;IAC3D,WAAW,gBAAgB;IAC3B,uEAAuE;IACvE,YAAY,iBAAiB;CAC9B"}
|
|
@@ -57,6 +57,20 @@ import { EngineCapability } from '../../external-providers/engine-capabilities.s
|
|
|
57
57
|
// EMAIL TEMPLATE TYPE (provider routing)
|
|
58
58
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
59
59
|
/**
|
|
60
|
+
* @wildo_source:part:start saas.models.email.template-type facet:layer:shared facet:audience:app-developer
|
|
61
|
+
*
|
|
62
|
+
* ⚠️ **A template's `type` decides WHICH VENDOR ships it.** It is not a label: each member maps to a
|
|
63
|
+
* distinct engine capability, and the sender resolves the provider configured against THAT
|
|
64
|
+
* capability. A newsletter left at the default is dispatched through the transactional vendor, on
|
|
65
|
+
* the transactional reputation and quota, and nothing reports it.
|
|
66
|
+
*
|
|
67
|
+
* Declare it on the file-based `EmailTemplateDefinition<L>.type` slot, or inside the system template
|
|
68
|
+
* registry definition.
|
|
69
|
+
*
|
|
70
|
+
* Setting `MARKETING` therefore requires a vendor declared against the marketing capability and named
|
|
71
|
+
* as its primary — otherwise the send has no provider to resolve. Nothing else in the send path
|
|
72
|
+
* changes.
|
|
73
|
+
*
|
|
60
74
|
* Dispatch class for an email template — maps 1:1 with `EngineCapability`
|
|
61
75
|
* for provider routing inside `EmailBackendService`.
|
|
62
76
|
*
|
|
@@ -73,6 +87,7 @@ export var EmailTemplateType;
|
|
|
73
87
|
/** Marketing emails — newsletters, promotions, campaigns. */
|
|
74
88
|
EmailTemplateType["MARKETING"] = "EMAIL_MARKETING";
|
|
75
89
|
})(EmailTemplateType || (EmailTemplateType = {}));
|
|
90
|
+
/** @wildo_source:part:end saas.models.email.template-type */
|
|
76
91
|
/**
|
|
77
92
|
* Total `Record<EmailTemplateType, EngineCapability>` used by
|
|
78
93
|
* `EmailBackendService` to pick the configured provider for a given template
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-template.shared.enums.js","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template.shared.enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAE/F,gFAAgF;AAChF,yCAAyC;AACzC,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,uEAAuE;IACvE,0DAAoD,CAAA;IACpD,6DAA6D;IAC7D,kDAA4C,CAAA;AAC9C,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAgD;IAC/F,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,gBAAgB,CAAC,mBAAmB;IACvE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,gBAAgB,CAAC,eAAe;CAChE,CAAC;AAEF,gFAAgF;AAChF,sDAAsD;AACtD,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,sBAeX;AAfD,WAAY,sBAAsB;IAChC;;;;;OAKG;IACH,iDAAuB,CAAA;IACvB;;;;;OAKG;IACH,iDAAuB,CAAA;AACzB,CAAC,EAfW,sBAAsB,KAAtB,sBAAsB,QAejC;AAED,gFAAgF;AAChF,yCAAyC;AACzC,gFAAgF;AAEhF;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,wDAAwD;IACxD,sCAAe,CAAA;IACf,oDAAoD;IACpD,8CAAuB,CAAA;IACvB,+CAA+C;IAC/C,4CAAqB,CAAA;AACvB,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAED,gFAAgF;AAChF,gDAAgD;AAChD,gFAAgF;AAEhF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,2DAA2D;IAC3D,iDAA2B,CAAA;IAC3B,uEAAuE;IACvE,mDAA6B,CAAA;AAC/B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B","sourcesContent":["/**\n * Email Template Classification Enums\n *\n * Surviving classification vocabulary for the **file-based** email template\n * pipeline. These enums classify a template's runtime intent — not a database\n * row. Post-Step-4 (`email-templates-deprecate-db-backed.md`), the DB-backed\n * `EMAIL_TEMPLATES` `CoreResourceType` was removed end-to-end and the runtime\n * sender pipeline reads templates exclusively from the filesystem registry\n * (`EmailTemplateRegistryBackendService` + `scanEmailTemplateDirectory`).\n *\n * ## Why this file exists separately from `email-template.shared.schemas.ts`\n *\n * Step 6 of the deprecation plan split these enums out of the DB-backed\n * `EmailTemplateSchema` file **before** deleting that file. The split was\n * required because consumers of these enums survive the schema deletion:\n *\n * - `email-template-registry.shared.schemas.ts` declares\n * `SystemEmailTemplateDefinition` and the `SystemEmailTemplateRegistry` map\n * keyed by `EmailTemplateType` / `EmailTemplateFrequency` / `EmailTemplateScope`.\n * - `engine/saas-backend-lib/src/notifications/email/models/email-template-definition.ts`\n * types `EmailTemplateDefinition<L>.type?` as `EmailTemplateType`.\n * - The runtime sender pipeline (`EmailBackendService`) routes to a provider\n * via `EmailTemplateType_ToEngineCapability[type]`.\n * - The auth services (`auth-registration`, `auth-password-reset`,\n * `authentication-controller`) and the dispatcher\n * (`notifications-dispatcher.backend.service`) emit\n * `EmailTemplateType.TRANSACTIONAL` when enqueuing send jobs.\n * - The wonder-todos dev companion (`email-template.companion.service.ts`)\n * tags scaffolded templates as `EmailTemplateType.TRANSACTIONAL`.\n *\n * Splitting the enums into their own module keeps these consumers compiling\n * after `EmailTemplateSchema` and `EmailHeaderFooterTemplateSchema` are\n * deleted; before the split, every importer would have to migrate to a new\n * source path simultaneously, which is a much larger blast radius for the\n * same eventual outcome.\n *\n * ## What this file intentionally does NOT carry\n *\n * - `EmailTemplateGenerationSource` — only existed to classify rows in the\n * deleted `EmailTemplateSchema.generationSource` and\n * `EmailHeaderFooterTemplateSchema.generationSource` fields.\n * - `EmailTemplatePropDefinitionSchema` / `EmailTemplatePropDefinition` —\n * only existed to type the deleted `EmailTemplateSchema.propsDefinition`\n * field.\n * - `EmailTemplateSchema` / `EmailTemplate` — the DB row shape itself.\n * - `EmailTemplateType_ToPlatformCapability` — `@deprecated` alias of\n * `EmailTemplateType_ToEngineCapability` with zero callers; deleted in the\n * same pass to remove dead aliases.\n * - `deriveResourceEmailTemplateRef` — helper for the DB-backed authoring\n * surface; zero external callers; deleted in the same pass.\n *\n * If any of those symbols come back as a future requirement they should land\n * in a new module with a clear runtime owner, not be re-introduced here.\n */\n\nimport { EngineCapability } from '../../external-providers/engine-capabilities.shared.schemas';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE TYPE (provider routing)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Dispatch class for an email template — maps 1:1 with `EngineCapability`\n * for provider routing inside `EmailBackendService`.\n *\n * Templates declare their dispatch class on the file-based\n * `EmailTemplateDefinition<L>.type?` slot or inside the\n * `SystemEmailTemplateRegistry` definition; the runtime sender uses\n * {@link EmailTemplateType_ToEngineCapability} to resolve which configured\n * provider should ship the message.\n */\nexport enum EmailTemplateType {\n /** Transactional emails — password resets, receipts, notifications. */\n TRANSACTIONAL = EngineCapability.EMAIL_TRANSACTIONAL,\n /** Marketing emails — newsletters, promotions, campaigns. */\n MARKETING = EngineCapability.EMAIL_MARKETING,\n}\n\n/**\n * Total `Record<EmailTemplateType, EngineCapability>` used by\n * `EmailBackendService` to pick the configured provider for a given template\n * dispatch class. Kept in this enums module (not in the runtime sender)\n * because it is data, not behavior, and because it stays in lock-step with\n * the {@link EmailTemplateType} enum — adding a new variant requires an\n * entry here in the same edit.\n */\nexport const EmailTemplateType_ToEngineCapability: Record<EmailTemplateType, EngineCapability> = {\n [EmailTemplateType.TRANSACTIONAL]: EngineCapability.EMAIL_TRANSACTIONAL,\n [EmailTemplateType.MARKETING]: EngineCapability.EMAIL_MARKETING,\n};\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE FREQUENCY (lifecycle classification)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Lifecycle classification for an email template from the application's\n * authoring perspective. This is about how the template is used by the\n * system — not how often a user receives it.\n *\n * Surfaced on `SystemEmailTemplateDefinition.frequency`; the runtime sender\n * pipeline does not branch on this value today, but it is preserved as a\n * canonical authoring slot so the dev companion can render it (e.g. in\n * preview metadata) and so future lifecycle automation can key off it.\n */\nexport enum EmailTemplateFrequency {\n /**\n * Template used once or a few times in the application's lifetime.\n * Examples: migration announcements, CVE security alerts, T&C updates,\n * one-time campaigns. These templates may be archived after their\n * purpose is fulfilled.\n */\n EPHEMERAL = \"EPHEMERAL\",\n /**\n * Template used repeatedly throughout the application's lifetime.\n * Examples: welcome emails, password reset, order confirmations,\n * verification emails. These templates are permanent fixtures of the\n * application.\n */\n RECURRENT = \"RECURRENT\",\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE STATUS (workflow state)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Workflow state for a template artifact.\n *\n * Pre-Step-4 this enum drove a DRAFT/PUBLISHED versioning workflow on the\n * deleted `EmailTemplateSchema.status` field. Post-Step-4 it survives only\n * because the dev companion preview surface and authoring tooling may\n * still want a workflow vocabulary for in-progress edits before they land\n * in the filesystem registry. Today no live runtime branches on it; if it\n * ends up unused after Step 8 (companion-preview integration test) the\n * cleanup pass should consider deleting it outright.\n */\nexport enum EmailTemplateStatus {\n /** Template is in draft state, not used for sending. */\n DRAFT = \"DRAFT\",\n /** Template is published and active for sending. */\n PUBLISHED = \"PUBLISHED\",\n /** Template is archived and no longer used. */\n ARCHIVED = \"ARCHIVED\",\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE SCOPE (header/footer behavior)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Scope marker for a template — `APPLICATION` vs `ORGANIZATION`. Aligned\n * with `ResourcePrimaryScope` but intentionally narrower: email scope only\n * needs the application/organization split; user-self / anonymous scopes\n * have no header/footer semantics in the email pipeline.\n *\n * Surfaced on `SystemEmailTemplateDefinition.scope`. The header/footer\n * runtime never reads the deleted `EmailHeaderFooterTemplateSchema` —\n * post-Step-4 header/footer composition lives entirely inside the\n * file-based template (`template.tsx` consumes header/footer React\n * components directly), and this scope marker only informs companion\n * preview rendering and any future per-scope provider-selection logic.\n */\nexport enum EmailTemplateScope {\n /** Application-level template (uses app header/footer). */\n APPLICATION = \"APPLICATION\",\n /** Organization-level template (uses org header/footer if defined). */\n ORGANIZATION = \"ORGANIZATION\",\n}\n"]}
|
|
1
|
+
{"version":3,"file":"email-template.shared.enums.js","sourceRoot":"","sources":["../../../../../src/notifications/email/email-template.shared.enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAE/F,gFAAgF;AAChF,yCAAyC;AACzC,gFAAgF;AAEhF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,uEAAuE;IACvE,0DAAoD,CAAA;IACpD,6DAA6D;IAC7D,kDAA4C,CAAA;AAC9C,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B;AACD,6DAA6D;AAE7D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAgD;IAC/F,CAAC,iBAAiB,CAAC,aAAa,CAAC,EAAE,gBAAgB,CAAC,mBAAmB;IACvE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,gBAAgB,CAAC,eAAe;CAChE,CAAC;AAEF,gFAAgF;AAChF,sDAAsD;AACtD,gFAAgF;AAEhF;;;;;;;;;GASG;AACH,MAAM,CAAN,IAAY,sBAeX;AAfD,WAAY,sBAAsB;IAChC;;;;;OAKG;IACH,iDAAuB,CAAA;IACvB;;;;;OAKG;IACH,iDAAuB,CAAA;AACzB,CAAC,EAfW,sBAAsB,KAAtB,sBAAsB,QAejC;AAED,gFAAgF;AAChF,yCAAyC;AACzC,gFAAgF;AAEhF;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,wDAAwD;IACxD,sCAAe,CAAA;IACf,oDAAoD;IACpD,8CAAuB,CAAA;IACvB,+CAA+C;IAC/C,4CAAqB,CAAA;AACvB,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAED,gFAAgF;AAChF,gDAAgD;AAChD,gFAAgF;AAEhF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,2DAA2D;IAC3D,iDAA2B,CAAA;IAC3B,uEAAuE;IACvE,mDAA6B,CAAA;AAC/B,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B","sourcesContent":["/**\n * Email Template Classification Enums\n *\n * Surviving classification vocabulary for the **file-based** email template\n * pipeline. These enums classify a template's runtime intent — not a database\n * row. Post-Step-4 (`email-templates-deprecate-db-backed.md`), the DB-backed\n * `EMAIL_TEMPLATES` `CoreResourceType` was removed end-to-end and the runtime\n * sender pipeline reads templates exclusively from the filesystem registry\n * (`EmailTemplateRegistryBackendService` + `scanEmailTemplateDirectory`).\n *\n * ## Why this file exists separately from `email-template.shared.schemas.ts`\n *\n * Step 6 of the deprecation plan split these enums out of the DB-backed\n * `EmailTemplateSchema` file **before** deleting that file. The split was\n * required because consumers of these enums survive the schema deletion:\n *\n * - `email-template-registry.shared.schemas.ts` declares\n * `SystemEmailTemplateDefinition` and the `SystemEmailTemplateRegistry` map\n * keyed by `EmailTemplateType` / `EmailTemplateFrequency` / `EmailTemplateScope`.\n * - `engine/saas-backend-lib/src/notifications/email/models/email-template-definition.ts`\n * types `EmailTemplateDefinition<L>.type?` as `EmailTemplateType`.\n * - The runtime sender pipeline (`EmailBackendService`) routes to a provider\n * via `EmailTemplateType_ToEngineCapability[type]`.\n * - The auth services (`auth-registration`, `auth-password-reset`,\n * `authentication-controller`) and the dispatcher\n * (`notifications-dispatcher.backend.service`) emit\n * `EmailTemplateType.TRANSACTIONAL` when enqueuing send jobs.\n * - The wonder-todos dev companion (`email-template.companion.service.ts`)\n * tags scaffolded templates as `EmailTemplateType.TRANSACTIONAL`.\n *\n * Splitting the enums into their own module keeps these consumers compiling\n * after `EmailTemplateSchema` and `EmailHeaderFooterTemplateSchema` are\n * deleted; before the split, every importer would have to migrate to a new\n * source path simultaneously, which is a much larger blast radius for the\n * same eventual outcome.\n *\n * ## What this file intentionally does NOT carry\n *\n * - `EmailTemplateGenerationSource` — only existed to classify rows in the\n * deleted `EmailTemplateSchema.generationSource` and\n * `EmailHeaderFooterTemplateSchema.generationSource` fields.\n * - `EmailTemplatePropDefinitionSchema` / `EmailTemplatePropDefinition` —\n * only existed to type the deleted `EmailTemplateSchema.propsDefinition`\n * field.\n * - `EmailTemplateSchema` / `EmailTemplate` — the DB row shape itself.\n * - `EmailTemplateType_ToPlatformCapability` — `@deprecated` alias of\n * `EmailTemplateType_ToEngineCapability` with zero callers; deleted in the\n * same pass to remove dead aliases.\n * - `deriveResourceEmailTemplateRef` — helper for the DB-backed authoring\n * surface; zero external callers; deleted in the same pass.\n *\n * If any of those symbols come back as a future requirement they should land\n * in a new module with a clear runtime owner, not be re-introduced here.\n */\n\nimport { EngineCapability } from '../../external-providers/engine-capabilities.shared.schemas';\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE TYPE (provider routing)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * @wildo_source:part:start saas.models.email.template-type facet:layer:shared facet:audience:app-developer\n *\n * ⚠️ **A template's `type` decides WHICH VENDOR ships it.** It is not a label: each member maps to a\n * distinct engine capability, and the sender resolves the provider configured against THAT\n * capability. A newsletter left at the default is dispatched through the transactional vendor, on\n * the transactional reputation and quota, and nothing reports it.\n *\n * Declare it on the file-based `EmailTemplateDefinition<L>.type` slot, or inside the system template\n * registry definition.\n *\n * Setting `MARKETING` therefore requires a vendor declared against the marketing capability and named\n * as its primary — otherwise the send has no provider to resolve. Nothing else in the send path\n * changes.\n *\n * Dispatch class for an email template — maps 1:1 with `EngineCapability`\n * for provider routing inside `EmailBackendService`.\n *\n * Templates declare their dispatch class on the file-based\n * `EmailTemplateDefinition<L>.type?` slot or inside the\n * `SystemEmailTemplateRegistry` definition; the runtime sender uses\n * {@link EmailTemplateType_ToEngineCapability} to resolve which configured\n * provider should ship the message.\n */\nexport enum EmailTemplateType {\n /** Transactional emails — password resets, receipts, notifications. */\n TRANSACTIONAL = EngineCapability.EMAIL_TRANSACTIONAL,\n /** Marketing emails — newsletters, promotions, campaigns. */\n MARKETING = EngineCapability.EMAIL_MARKETING,\n}\n/** @wildo_source:part:end saas.models.email.template-type */\n\n/**\n * Total `Record<EmailTemplateType, EngineCapability>` used by\n * `EmailBackendService` to pick the configured provider for a given template\n * dispatch class. Kept in this enums module (not in the runtime sender)\n * because it is data, not behavior, and because it stays in lock-step with\n * the {@link EmailTemplateType} enum — adding a new variant requires an\n * entry here in the same edit.\n */\nexport const EmailTemplateType_ToEngineCapability: Record<EmailTemplateType, EngineCapability> = {\n [EmailTemplateType.TRANSACTIONAL]: EngineCapability.EMAIL_TRANSACTIONAL,\n [EmailTemplateType.MARKETING]: EngineCapability.EMAIL_MARKETING,\n};\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE FREQUENCY (lifecycle classification)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Lifecycle classification for an email template from the application's\n * authoring perspective. This is about how the template is used by the\n * system — not how often a user receives it.\n *\n * Surfaced on `SystemEmailTemplateDefinition.frequency`; the runtime sender\n * pipeline does not branch on this value today, but it is preserved as a\n * canonical authoring slot so the dev companion can render it (e.g. in\n * preview metadata) and so future lifecycle automation can key off it.\n */\nexport enum EmailTemplateFrequency {\n /**\n * Template used once or a few times in the application's lifetime.\n * Examples: migration announcements, CVE security alerts, T&C updates,\n * one-time campaigns. These templates may be archived after their\n * purpose is fulfilled.\n */\n EPHEMERAL = \"EPHEMERAL\",\n /**\n * Template used repeatedly throughout the application's lifetime.\n * Examples: welcome emails, password reset, order confirmations,\n * verification emails. These templates are permanent fixtures of the\n * application.\n */\n RECURRENT = \"RECURRENT\",\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE STATUS (workflow state)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Workflow state for a template artifact.\n *\n * Pre-Step-4 this enum drove a DRAFT/PUBLISHED versioning workflow on the\n * deleted `EmailTemplateSchema.status` field. Post-Step-4 it survives only\n * because the dev companion preview surface and authoring tooling may\n * still want a workflow vocabulary for in-progress edits before they land\n * in the filesystem registry. Today no live runtime branches on it; if it\n * ends up unused after Step 8 (companion-preview integration test) the\n * cleanup pass should consider deleting it outright.\n */\nexport enum EmailTemplateStatus {\n /** Template is in draft state, not used for sending. */\n DRAFT = \"DRAFT\",\n /** Template is published and active for sending. */\n PUBLISHED = \"PUBLISHED\",\n /** Template is archived and no longer used. */\n ARCHIVED = \"ARCHIVED\",\n}\n\n// ─────────────────────────────────────────────────────────────────────────────\n// EMAIL TEMPLATE SCOPE (header/footer behavior)\n// ─────────────────────────────────────────────────────────────────────────────\n\n/**\n * Scope marker for a template — `APPLICATION` vs `ORGANIZATION`. Aligned\n * with `ResourcePrimaryScope` but intentionally narrower: email scope only\n * needs the application/organization split; user-self / anonymous scopes\n * have no header/footer semantics in the email pipeline.\n *\n * Surfaced on `SystemEmailTemplateDefinition.scope`. The header/footer\n * runtime never reads the deleted `EmailHeaderFooterTemplateSchema` —\n * post-Step-4 header/footer composition lives entirely inside the\n * file-based template (`template.tsx` consumes header/footer React\n * components directly), and this scope marker only informs companion\n * preview rendering and any future per-scope provider-selection logic.\n */\nexport enum EmailTemplateScope {\n /** Application-level template (uses app header/footer). */\n APPLICATION = \"APPLICATION\",\n /** Organization-level template (uses org header/footer if defined). */\n ORGANIZATION = \"ORGANIZATION\",\n}\n"]}
|
|
@@ -50,6 +50,7 @@ export declare const WebhookConfig_TestEndpointRequestDto: z.ZodObject<{
|
|
|
50
50
|
export declare const WebhookConfig_TestEndpointResponseDto: z.ZodObject<{
|
|
51
51
|
endpointId: z.ZodString;
|
|
52
52
|
url: z.ZodString;
|
|
53
|
+
transportIsPlaintext: z.ZodBoolean;
|
|
53
54
|
outcome: z.ZodEnum<typeof WebhookEndpointProbeOutcome>;
|
|
54
55
|
responseStatus: z.ZodOptional<z.ZodNumber>;
|
|
55
56
|
responseBodyTruncated: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-config.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/m2m/webhook-config.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,qBAAqB,EAEtB,MAAM,mDAAmD,CAAC;AAQ3D,OAAO,EAAuC,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAMnH,oBAAY,wBAAwB;IAClC;;;;;;;;;;;;;;;OAeG;IACH,aAAa,iBAAiB;CAC/B;AAMD,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAMH;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"webhook-config.shared.resources-config.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/m2m/webhook-config.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,qBAAqB,EAEtB,MAAM,mDAAmD,CAAC;AAQ3D,OAAO,EAAuC,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAMnH,oBAAY,wBAAwB;IAClC;;;;;;;;;;;;;;;OAeG;IACH,aAAa,iBAAiB;CAC/B;AAMD,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAMH;;;;;;;GAOG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;iBAsChD,CAAC;AAMH,eAAO,MAAM,iCAAiC,4OAkG7C,CAAC"}
|
|
@@ -65,6 +65,25 @@ export const WebhookConfig_TestEndpointResponseDto = z.object({
|
|
|
65
65
|
endpointId: z.string(),
|
|
66
66
|
/** Destination actually contacted, echoed so the admin can confirm the stored URL. */
|
|
67
67
|
url: z.string(),
|
|
68
|
+
/**
|
|
69
|
+
* True when that destination is plaintext `http://`, so the signature JWT travelled in the clear.
|
|
70
|
+
*
|
|
71
|
+
* ## Why the exposure is reported HERE (#492)
|
|
72
|
+
*
|
|
73
|
+
* Plaintext endpoints are admitted, deliberately, and the reasoning is recorded on
|
|
74
|
+
* `WebhookEndpointSchema.url`. The cost of admitting them is that the decision becomes invisible:
|
|
75
|
+
* a documented exposure nobody encounters is the same as an undocumented one, and the JSDoc
|
|
76
|
+
* reaches only someone reading the schema.
|
|
77
|
+
*
|
|
78
|
+
* This probe is the one place an admin acts on a SINGLE endpoint and reads a per-endpoint answer,
|
|
79
|
+
* so it is where the exposure can actually be met. It rides beside `outcome` rather than replacing
|
|
80
|
+
* it, because the two say different things: `ACCEPTED` over `http://` is a working endpoint AND a
|
|
81
|
+
* credential on the wire, and collapsing that into a failure would be false.
|
|
82
|
+
*
|
|
83
|
+
* Reported for every outcome, including `NOT_SENT` — the scheme is a property of the stored
|
|
84
|
+
* destination, not of the attempt, and an admin fixing a signing fault should still be told.
|
|
85
|
+
*/
|
|
86
|
+
transportIsPlaintext: z.boolean(),
|
|
68
87
|
outcome: z.enum(WebhookEndpointProbeOutcome),
|
|
69
88
|
/** HTTP status returned by the endpoint. Absent for `UNREACHABLE` / `NOT_SENT`. */
|
|
70
89
|
responseStatus: z.number().int().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-config.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../../src/notifications/m2m/webhook-config.shared.resources-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;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AE;wBACf,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC;wBAC5D,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;qBACvE;oBACD,SAAS,EAAE,0BAA0B,CAAC,MAAM;oBAC5C,qEAAqE;oBACrE,kEAAkE;oBAClE,qBAAqB,EAAE,qBAAqB,CAAC,MAAM;oBACnD,UAAU,EAAE,oCAAoC;oBAChD,iEAAiE;oBACjE,gEAAgE;oBAChE,oEAAoE;oBACpE,kEAAkE;oBAClE,qCAAqC;oBACrC,iBAAiB,EAAE,qCAAqC;iBACzD;aACF;SACF;KACF;CACF,CACF,CAAC","sourcesContent":["/**\n * M2M Webhook Config Resource Configuration — Polymorphic dual-scope\n *\n * Produces 2 factory functions (ORG + APP) via the polymorphic factory.\n * Spread into the registry factory map:\n * ...webhookConfigPolymorphicFactories\n *\n * Operation set (mirrors SIEM Export Config singleton precedent):\n * - READ (API) : admin reads the config + derived public key\n * - CREATE (REPOSITORY_ONLY) : seeded once per scope; not externally callable\n * - UPDATE (REPOSITORY_ONLY) : admin edits via dedicated endpoint flow (not a public REST PUT)\n * - TEST_ENDPOINT (custom) : fires a synthetic delivery to verify URL reachability\n *\n * @see m2m-webhook-organization-delivery.md — Phase 2 / Step 5\n * @see security/authentications/siem/siem-export-config.shared.resources-config.schemas.ts\n */\n\nimport { z } from 'zod';\nimport {\n CoreResourceOperation,\n CoreResourceType,\n} from '../../resources/resources.shared.core.definitions';\nimport {\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n} from '../../resources/resources.shared.schemas';\nimport { createPolymorphicResourceConfigurations } from '../../resources/utils/resource-polymorphism.factory';\nimport { ResourceSystemAccessMode } from '../../resources/resources-config.shared.schemas';\nimport { CORE_ORG_ROLES, CORE_APP_ROLES } from '../../security/authorizations/roles.shared.schemas';\nimport { webhookConfigPolymorphicDeclaration, WebhookEndpointProbeOutcome } from './webhook-config.shared.schemas';\n\n// =============================================================================\n// CUSTOM OPERATIONS\n// =============================================================================\n\nexport enum WebhookConfig_Operations {\n /**\n * Synthetic delivery to verify URL reachability + signature\n * verification on the consumer side. Targets a single endpoint\n * (selected by `endpointId` in the request body); does not write to\n * `M2MWebhookDeliveryLog` (test deliveries are excluded from the user\n * event log to keep the log clean).\n *\n * The probe is `resourceOperationLike: UPDATE`, NOT `READ`. It performs no\n * database write, but it DOES have an external side effect — a live signed\n * POST leaves the platform and arrives at a customer-controlled URL. Borrowing\n * READ made this a `GET` whose OpenAPI entry had to declare `x-idempotent: false`,\n * a self-contradiction, and pushed `endpointId` into a query string. Borrowing\n * UPDATE yields a `PUT` on the same custom-op sub-path, matching the\n * `M2MWebhookDeliveryLog.retry` precedent (also a no-DB-write-of-its-own verb\n * that triggers a delivery).\n */\n TEST_ENDPOINT = 'testEndpoint',\n}\n\n// =============================================================================\n// REQUEST DTOs\n// =============================================================================\n\nexport const WebhookConfig_TestEndpointRequestDto = z.object({\n endpointId: z.string().min(1),\n});\n\n// =============================================================================\n// RESPONSE DTOs\n// =============================================================================\n\n/**\n * Diagnostic returned synchronously by `testEndpoint`.\n *\n * A transport-level failure at the customer endpoint is a successful PROBE and\n * therefore answers HTTP 200 carrying `outcome: UNREACHABLE` — it is not an API\n * error. API errors are reserved for faults in the request itself (unknown\n * `endpointId`, no config row, rate limit exceeded).\n */\nexport const WebhookConfig_TestEndpointResponseDto = z.object({\n endpointId: z.string(),\n /** Destination actually contacted, echoed so the admin can confirm the stored URL. */\n url: z.string(),\n outcome: z.enum(WebhookEndpointProbeOutcome),\n /** HTTP status returned by the endpoint. Absent for `UNREACHABLE` / `NOT_SENT`. */\n responseStatus: z.number().int().optional(),\n /** Truncated response body, to let an admin read the consumer's own error text. */\n responseBodyTruncated: z.string().optional(),\n /** Network / timeout / signing failure detail. Absent when the endpoint answered. */\n failureReason: z.string().optional(),\n durationMs: z.number().int().nonnegative(),\n /**\n * `jti` of the signed probe. Stated so an admin can correlate this attempt with\n * the entry in their own consumer's logs — the same dedup key a real delivery\n * carries.\n */\n signatureJti: z.string(),\n attemptedAt: z.date(),\n});\n\n// =============================================================================\n// POLYMORPHIC FACTORY\n// =============================================================================\n\nexport const webhookConfigPolymorphicFactories = createPolymorphicResourceConfigurations(\n webhookConfigPolymorphicDeclaration,\n {\n isSystemResource: true,\n // Server-internal webhook delivery loads the (org/app) endpoint config via\n // `readAsSystem`, independent of the triggering user's roles — the config\n // governs runtime delivery behaviour, not user-facing data. READ-only.\n systemAccessPolicy: { read: ResourceSystemAccessMode.ALLOWED },\n customOperation: WebhookConfig_Operations,\n coreOperations: [\n CoreResourceOperation.READ,\n CoreResourceOperation.CREATE,\n CoreResourceOperation.UPDATE,\n CoreResourceOperation.DELETE,\n ],\n operationsConfiguration: {\n [CoreResourceOperation.READ]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n ],\n },\n [CoreResourceOperation.CREATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n },\n ],\n },\n [CoreResourceOperation.UPDATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n },\n ],\n },\n // Internal-only (REPOSITORY_ONLY, no HTTP route): powers the composition\n // onParentDelete cascade so this one-per-scope webhook-config row is physically\n // removed when its owning org/app is deleted. Without a DELETE op the cascade\n // (deleteChildrenImmediate) throws ErrorType.CONFIGURATION on any scope with a\n // config row. Admin tier (ORG_ADMIN / APP super-admin) / HIGH.\n [CoreResourceOperation.DELETE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.HIGH,\n },\n ],\n },\n [WebhookConfig_Operations.TEST_ENDPOINT]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n // UPDATE-like, not READ-like — see the JSDoc on `TEST_ENDPOINT`. The\n // operation writes nothing, but it emits a live outbound request.\n resourceOperationLike: CoreResourceOperation.UPDATE,\n requestDto: WebhookConfig_TestEndpointRequestDto,\n // Implemented by `createWebhookConfigTestEndpointFactories()` in\n // saas-backend-lib (REPLACE_CORE_OPERATIONS): the core write is\n // replaced by the synthetic delivery, and this diagnostic — NOT the\n // config row — is what the caller receives. Keep this contract in\n // lockstep with that implementation.\n customResponseDto: WebhookConfig_TestEndpointResponseDto,\n },\n ],\n },\n },\n },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"webhook-config.shared.resources-config.schemas.js","sourceRoot":"","sources":["../../../../../src/notifications/m2m/webhook-config.shared.resources-config.schemas.ts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C,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,4BAA4B,CAAC,QAAQ;oBAClD,SAAS,EAAE,IAAI;oBACf,eAAe,EAAE;wBACf,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC;wBAC5D,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAAC,cAAc,CAAC,qBAAqB,CAAC;qBACvE;oBACD,SAAS,EAAE,0BAA0B,CAAC,MAAM;oBAC5C,qEAAqE;oBACrE,kEAAkE;oBAClE,qBAAqB,EAAE,qBAAqB,CAAC,MAAM;oBACnD,UAAU,EAAE,oCAAoC;oBAChD,iEAAiE;oBACjE,gEAAgE;oBAChE,oEAAoE;oBACpE,kEAAkE;oBAClE,qCAAqC;oBACrC,iBAAiB,EAAE,qCAAqC;iBACzD;aACF;SACF;KACF;CACF,CACF,CAAC","sourcesContent":["/**\n * M2M Webhook Config Resource Configuration — Polymorphic dual-scope\n *\n * Produces 2 factory functions (ORG + APP) via the polymorphic factory.\n * Spread into the registry factory map:\n * ...webhookConfigPolymorphicFactories\n *\n * Operation set (mirrors SIEM Export Config singleton precedent):\n * - READ (API) : admin reads the config + derived public key\n * - CREATE (REPOSITORY_ONLY) : seeded once per scope; not externally callable\n * - UPDATE (REPOSITORY_ONLY) : admin edits via dedicated endpoint flow (not a public REST PUT)\n * - TEST_ENDPOINT (custom) : fires a synthetic delivery to verify URL reachability\n *\n * @see m2m-webhook-organization-delivery.md — Phase 2 / Step 5\n * @see security/authentications/siem/siem-export-config.shared.resources-config.schemas.ts\n */\n\nimport { z } from 'zod';\nimport {\n CoreResourceOperation,\n CoreResourceType,\n} from '../../resources/resources.shared.core.definitions';\nimport {\n ResourceOperationRiskLevel,\n ResourceOperationVariantType,\n} from '../../resources/resources.shared.schemas';\nimport { createPolymorphicResourceConfigurations } from '../../resources/utils/resource-polymorphism.factory';\nimport { ResourceSystemAccessMode } from '../../resources/resources-config.shared.schemas';\nimport { CORE_ORG_ROLES, CORE_APP_ROLES } from '../../security/authorizations/roles.shared.schemas';\nimport { webhookConfigPolymorphicDeclaration, WebhookEndpointProbeOutcome } from './webhook-config.shared.schemas';\n\n// =============================================================================\n// CUSTOM OPERATIONS\n// =============================================================================\n\nexport enum WebhookConfig_Operations {\n /**\n * Synthetic delivery to verify URL reachability + signature\n * verification on the consumer side. Targets a single endpoint\n * (selected by `endpointId` in the request body); does not write to\n * `M2MWebhookDeliveryLog` (test deliveries are excluded from the user\n * event log to keep the log clean).\n *\n * The probe is `resourceOperationLike: UPDATE`, NOT `READ`. It performs no\n * database write, but it DOES have an external side effect — a live signed\n * POST leaves the platform and arrives at a customer-controlled URL. Borrowing\n * READ made this a `GET` whose OpenAPI entry had to declare `x-idempotent: false`,\n * a self-contradiction, and pushed `endpointId` into a query string. Borrowing\n * UPDATE yields a `PUT` on the same custom-op sub-path, matching the\n * `M2MWebhookDeliveryLog.retry` precedent (also a no-DB-write-of-its-own verb\n * that triggers a delivery).\n */\n TEST_ENDPOINT = 'testEndpoint',\n}\n\n// =============================================================================\n// REQUEST DTOs\n// =============================================================================\n\nexport const WebhookConfig_TestEndpointRequestDto = z.object({\n endpointId: z.string().min(1),\n});\n\n// =============================================================================\n// RESPONSE DTOs\n// =============================================================================\n\n/**\n * Diagnostic returned synchronously by `testEndpoint`.\n *\n * A transport-level failure at the customer endpoint is a successful PROBE and\n * therefore answers HTTP 200 carrying `outcome: UNREACHABLE` — it is not an API\n * error. API errors are reserved for faults in the request itself (unknown\n * `endpointId`, no config row, rate limit exceeded).\n */\nexport const WebhookConfig_TestEndpointResponseDto = z.object({\n endpointId: z.string(),\n /** Destination actually contacted, echoed so the admin can confirm the stored URL. */\n url: z.string(),\n /**\n * True when that destination is plaintext `http://`, so the signature JWT travelled in the clear.\n *\n * ## Why the exposure is reported HERE (#492)\n *\n * Plaintext endpoints are admitted, deliberately, and the reasoning is recorded on\n * `WebhookEndpointSchema.url`. The cost of admitting them is that the decision becomes invisible:\n * a documented exposure nobody encounters is the same as an undocumented one, and the JSDoc\n * reaches only someone reading the schema.\n *\n * This probe is the one place an admin acts on a SINGLE endpoint and reads a per-endpoint answer,\n * so it is where the exposure can actually be met. It rides beside `outcome` rather than replacing\n * it, because the two say different things: `ACCEPTED` over `http://` is a working endpoint AND a\n * credential on the wire, and collapsing that into a failure would be false.\n *\n * Reported for every outcome, including `NOT_SENT` — the scheme is a property of the stored\n * destination, not of the attempt, and an admin fixing a signing fault should still be told.\n */\n transportIsPlaintext: z.boolean(),\n outcome: z.enum(WebhookEndpointProbeOutcome),\n /** HTTP status returned by the endpoint. Absent for `UNREACHABLE` / `NOT_SENT`. */\n responseStatus: z.number().int().optional(),\n /** Truncated response body, to let an admin read the consumer's own error text. */\n responseBodyTruncated: z.string().optional(),\n /** Network / timeout / signing failure detail. Absent when the endpoint answered. */\n failureReason: z.string().optional(),\n durationMs: z.number().int().nonnegative(),\n /**\n * `jti` of the signed probe. Stated so an admin can correlate this attempt with\n * the entry in their own consumer's logs — the same dedup key a real delivery\n * carries.\n */\n signatureJti: z.string(),\n attemptedAt: z.date(),\n});\n\n// =============================================================================\n// POLYMORPHIC FACTORY\n// =============================================================================\n\nexport const webhookConfigPolymorphicFactories = createPolymorphicResourceConfigurations(\n webhookConfigPolymorphicDeclaration,\n {\n isSystemResource: true,\n // Server-internal webhook delivery loads the (org/app) endpoint config via\n // `readAsSystem`, independent of the triggering user's roles — the config\n // governs runtime delivery behaviour, not user-facing data. READ-only.\n systemAccessPolicy: { read: ResourceSystemAccessMode.ALLOWED },\n customOperation: WebhookConfig_Operations,\n coreOperations: [\n CoreResourceOperation.READ,\n CoreResourceOperation.CREATE,\n CoreResourceOperation.UPDATE,\n CoreResourceOperation.DELETE,\n ],\n operationsConfiguration: {\n [CoreResourceOperation.READ]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.LOW,\n },\n ],\n },\n [CoreResourceOperation.CREATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n },\n ],\n },\n [CoreResourceOperation.UPDATE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n },\n ],\n },\n // Internal-only (REPOSITORY_ONLY, no HTTP route): powers the composition\n // onParentDelete cascade so this one-per-scope webhook-config row is physically\n // removed when its owning org/app is deleted. Without a DELETE op the cascade\n // (deleteChildrenImmediate) throws ErrorType.CONFIGURATION on any scope with a\n // config row. Admin tier (ORG_ADMIN / APP super-admin) / HIGH.\n [CoreResourceOperation.DELETE]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.REPOSITORY_ONLY,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.HIGH,\n },\n ],\n },\n [WebhookConfig_Operations.TEST_ENDPOINT]: {\n variants: [\n {\n variantType: ResourceOperationVariantType.API_CALL,\n isDefault: true,\n polymorphicRole: {\n [CoreResourceType.ORGANIZATIONS]: [CORE_ORG_ROLES.ORG_ADMIN],\n [CoreResourceType.APPLICATION]: [CORE_APP_ROLES.APP_ADMIN_SUPER_ADMIN],\n },\n riskLevel: ResourceOperationRiskLevel.MEDIUM,\n // UPDATE-like, not READ-like — see the JSDoc on `TEST_ENDPOINT`. The\n // operation writes nothing, but it emits a live outbound request.\n resourceOperationLike: CoreResourceOperation.UPDATE,\n requestDto: WebhookConfig_TestEndpointRequestDto,\n // Implemented by `createWebhookConfigTestEndpointFactories()` in\n // saas-backend-lib (REPLACE_CORE_OPERATIONS): the core write is\n // replaced by the synthetic delivery, and this diagnostic — NOT the\n // config row — is what the caller receives. Keep this contract in\n // lockstep with that implementation.\n customResponseDto: WebhookConfig_TestEndpointResponseDto,\n },\n ],\n },\n },\n },\n);\n"]}
|
|
@@ -91,6 +91,36 @@ export declare const WebhookEndpointSchema: z.ZodObject<{
|
|
|
91
91
|
updatedAt: z.ZodDefault<z.ZodDate>;
|
|
92
92
|
}, z.core.$strip>;
|
|
93
93
|
export type WebhookEndpoint = z.infer<typeof WebhookEndpointSchema>;
|
|
94
|
+
/**
|
|
95
|
+
* Whether a destination is reached over PLAINTEXT HTTP, so the signature JWT travels in the clear.
|
|
96
|
+
*
|
|
97
|
+
* ## One definition, because two would eventually disagree (#492)
|
|
98
|
+
*
|
|
99
|
+
* Plaintext is ADMITTED here — a deliberate commercial accommodation recorded on
|
|
100
|
+
* {@link WebhookEndpointSchema.url} — which is exactly why the condition needs a single named home
|
|
101
|
+
* rather than an inline `startsWith('http://')` at each surface that wants to say something about
|
|
102
|
+
* it. A refusal can live in one place because it stops the request; a TOLERATED condition is
|
|
103
|
+
* observed by several, and those several must agree.
|
|
104
|
+
*
|
|
105
|
+
* Read by the write path (which warns and audits) and by the endpoint probe (which reports it to
|
|
106
|
+
* the admin who pressed "test"). Both are listed here so the next reader can tell whether adding a
|
|
107
|
+
* third is joining a mechanism or starting a second one.
|
|
108
|
+
*
|
|
109
|
+
* Scheme comparison, not a `startsWith`: `WHATWG` lowercases the scheme during parsing, so
|
|
110
|
+
* `HTTP://example.test` and `http://example.test` are the same destination and a prefix test would
|
|
111
|
+
* disagree with the URL the delivery actually opens. An unparseable value answers `false` — it is
|
|
112
|
+
* not a plaintext destination, it is not a destination at all, and `z.url()` refuses it upstream.
|
|
113
|
+
*/
|
|
114
|
+
export declare function webhookEndpointTransportIsPlaintext(url: string): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The host of a webhook destination, for an audit row or a log line — never the full URL.
|
|
117
|
+
*
|
|
118
|
+
* Mirrors `AuditableEvent_Webhook_EndpointTestDispatchedEventDataSchema.destinationHost` and the
|
|
119
|
+
* reasoning recorded there: paths and query strings on customer endpoints routinely embed
|
|
120
|
+
* per-tenant tokens, and these rows are replicated to the organisation's SIEM and to the immutable
|
|
121
|
+
* store. The host answers "which of my endpoints" without carrying a credential into a log.
|
|
122
|
+
*/
|
|
123
|
+
export declare function webhookEndpointDestinationHost(url: string): string;
|
|
94
124
|
export declare const WebhookConfigBaseSchema: z.ZodObject<{
|
|
95
125
|
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>;
|
|
96
126
|
enabled: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-config.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/m2m/webhook-config.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,qDAAqD,CAAC;AAM7D;;;;;;;;;;;;GAYG;AACH,oBAAY,2BAA2B;IACrC;;;;;OAKG;IACH,QAAQ,aAAa;IACrB,iFAAiF;IACjF,QAAQ,aAAa;IACrB,sFAAsF;IACtF,WAAW,gBAAgB;IAC3B;;;;;OAKG;IACH,QAAQ,aAAa;CACtB;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,EAAE,4BAA4B,EAWpE,CAAC;AAMF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;;;
|
|
1
|
+
{"version":3,"file":"webhook-config.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/notifications/m2m/webhook-config.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,qDAAqD,CAAC;AAM7D;;;;;;;;;;;;GAYG;AACH,oBAAY,2BAA2B;IACrC;;;;;OAKG;IACH,QAAQ,aAAa;IACrB,iFAAiF;IACjF,QAAQ,aAAa;IACrB,sFAAsF;IACtF,WAAW,gBAAgB;IAC3B;;;;;OAKG;IACH,QAAQ,aAAa;CACtB;AAMD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,0BAA0B,EAAE,4BAA4B,EAWpE,CAAC;AAMF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;;;iBA+BhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mCAAmC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAMxE;AAED;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMlE;AAMD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAqBlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;kBAM9C,CAAC"}
|