|
| 1 | +import { ACS_EMAIL_CAPABILITIES } from "../adapters/azure/acs-email-capabilities.js"; |
| 2 | +import { PORTABLE_RUNTIME_CAPABILITIES } from "../adapters/portable-runtime-capabilities.js"; |
| 3 | +import { |
| 4 | + validateDeploymentCapabilityDocument, |
| 5 | + type DeploymentCapabilityDocument, |
| 6 | +} from "../core/runtime-capabilities.js"; |
| 7 | +import { HAYASEND_VERSION } from "../version.js"; |
| 8 | + |
| 9 | +const issueUrl = "https://github.com/haya-inc/hayasend/issues/152"; |
| 10 | + |
| 11 | +export const AZURE_CONTAINER_APPS_ACS_DEPLOYMENT_CAPABILITIES = |
| 12 | + validateDeploymentCapabilityDocument( |
| 13 | + { |
| 14 | + schema_version: "1.0.0", |
| 15 | + deployment: "azure-container-apps-acs", |
| 16 | + adapter_version: HAYASEND_VERSION, |
| 17 | + checked_at: "2026-07-29", |
| 18 | + runtime: { |
| 19 | + profile: PORTABLE_RUNTIME_CAPABILITIES.runtime, |
| 20 | + adapter_version: PORTABLE_RUNTIME_CAPABILITIES.adapter_version, |
| 21 | + capability_document: |
| 22 | + "conformance/runtimes/portable-postgres.v1.json", |
| 23 | + }, |
| 24 | + transport: { |
| 25 | + provider: ACS_EMAIL_CAPABILITIES.provider, |
| 26 | + adapter_version: ACS_EMAIL_CAPABILITIES.adapter_version, |
| 27 | + capability_document: |
| 28 | + "conformance/providers/azure-communication-services.v1.json", |
| 29 | + }, |
| 30 | + maturity: { |
| 31 | + runtime: PORTABLE_RUNTIME_CAPABILITIES.service_maturity, |
| 32 | + transport: ACS_EMAIL_CAPABILITIES.service_maturity, |
| 33 | + combination: "experimental", |
| 34 | + }, |
| 35 | + production_ready: false, |
| 36 | + effective_limits: { |
| 37 | + ...ACS_EMAIL_CAPABILITIES.limits, |
| 38 | + max_serialized_request_bytes: Math.min( |
| 39 | + PORTABLE_RUNTIME_CAPABILITIES.limits.max_payload_bytes, |
| 40 | + ACS_EMAIL_CAPABILITIES.limits.max_serialized_request_bytes, |
| 41 | + ), |
| 42 | + max_mime_message_bytes: Math.min( |
| 43 | + PORTABLE_RUNTIME_CAPABILITIES.limits.max_payload_bytes, |
| 44 | + ACS_EMAIL_CAPABILITIES.limits.max_mime_message_bytes, |
| 45 | + ), |
| 46 | + max_schedule_delay_seconds: Math.min( |
| 47 | + PORTABLE_RUNTIME_CAPABILITIES.limits.max_schedule_delay_seconds, |
| 48 | + ACS_EMAIL_CAPABILITIES.limits.max_schedule_delay_seconds, |
| 49 | + ), |
| 50 | + }, |
| 51 | + evidence: { |
| 52 | + conformance: { |
| 53 | + status: "pending", |
| 54 | + url: issueUrl, |
| 55 | + notes: |
| 56 | + "The shared PostgreSQL and ACS adapter contracts pass locally; exact hosted recipient convergence remains pending.", |
| 57 | + }, |
| 58 | + lifecycle: { |
| 59 | + status: "pending", |
| 60 | + url: issueUrl, |
| 61 | + notes: |
| 62 | + "An isolated Azure deploy, migration, failure drill, upgrade, and rollback has not yet passed.", |
| 63 | + }, |
| 64 | + terminal_delivery: { |
| 65 | + status: "pending", |
| 66 | + url: issueUrl, |
| 67 | + notes: |
| 68 | + "ACS acceptance and exact-recipient Event Grid terminal delivery have not yet converged on an isolated hosted deployment.", |
| 69 | + }, |
| 70 | + controlled_receipt: { |
| 71 | + status: "pending", |
| 72 | + url: issueUrl, |
| 73 | + notes: |
| 74 | + "A uniquely identified ACS message has not yet been confirmed in a controlled mailbox for this exact deployment.", |
| 75 | + }, |
| 76 | + cleanup: { |
| 77 | + status: "pending", |
| 78 | + url: issueUrl, |
| 79 | + notes: |
| 80 | + "The isolated Azure resource graph has not yet passed zero-residue cleanup and billing verification.", |
| 81 | + }, |
| 82 | + }, |
| 83 | + privacy: { |
| 84 | + customer_owned_data_plane: true, |
| 85 | + management_plane_content_exported_by_default: false, |
| 86 | + addresses_exported_by_default: false, |
| 87 | + raw_provider_errors_retained: false, |
| 88 | + }, |
| 89 | + limitations: [ |
| 90 | + "Production readiness remains false while issue #152 is incomplete.", |
| 91 | + "A customer-owned custom ACS Email domain, approved quota, and authenticated Event Grid ingress are required.", |
| 92 | + "Provider acceptance is not terminal delivery, and ACS does not provide provider-enforced send idempotency.", |
| 93 | + "Multi-recipient engagement events are retained without guessing a recipient because ACS can omit the recipient.", |
| 94 | + ], |
| 95 | + }, |
| 96 | + PORTABLE_RUNTIME_CAPABILITIES, |
| 97 | + ACS_EMAIL_CAPABILITIES, |
| 98 | + ) satisfies DeploymentCapabilityDocument; |
0 commit comments