@oxygen-agent/cli 1.1014.1997 → 1.1014.2100
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/README.md +1 -1
- package/dist/cli-output.js +12 -0
- package/dist/column-decision-options.js +1 -1
- package/dist/command-families/tables/bundle-format.d.ts +1 -1
- package/dist/command-families/tables/bundle-format.js +1 -1
- package/dist/command-families/tables/import-columns.js +1 -1
- package/dist/command-families/tables/import-upload.d.ts +1 -1
- package/dist/command-families/tables/import-values.js +1 -1
- package/dist/command-families/tables/imports.d.ts +1 -1
- package/dist/command-families/tables/imports.js +1 -1
- package/dist/command-families/tables/options.d.ts +1 -0
- package/dist/command-families/tables/register-automation.js +3 -1
- package/dist/command-families/tables/register-relations.js +1 -1
- package/dist/command-families/tables/row-selection.js +1 -1
- package/dist/command-support.d.ts +7 -0
- package/dist/command-support.js +25 -0
- package/dist/commands/billing.js +2 -2
- package/dist/commands/columns.js +1 -1
- package/dist/commands/enrich-column.js +1 -1
- package/dist/commands/mailboxes.js +1 -1
- package/dist/commands/observability.js +4 -4
- package/dist/commands/table-runs.js +11 -1
- package/dist/commands/tags.js +2 -2
- package/dist/commands/workflows.js +31 -10
- package/dist/deliverability-evidence-commands.js +1 -1
- package/dist/http-client.d.ts +1 -1
- package/dist/http-client.js +1 -1
- package/dist/streamed-file-import.d.ts +1 -1
- package/dist/streamed-file-import.js +1 -1
- package/node_modules/@oxygen/formula/dist/cross-row-function.d.ts +13 -0
- package/node_modules/@oxygen/formula/dist/cross-row-function.js +1 -0
- package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.d.ts +2 -0
- package/node_modules/@oxygen/formula/dist/{refactor-internals → cross-row-functions}/novelty-score.js +1 -0
- package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.d.ts +3 -0
- package/node_modules/@oxygen/formula/dist/cross-row-functions.generated.js +3 -0
- package/node_modules/@oxygen/formula/dist/evaluate.d.ts +12 -1
- package/node_modules/@oxygen/formula/dist/evaluate.js +28 -3
- package/node_modules/@oxygen/recipe-sdk/dist/index.d.ts +2 -0
- package/node_modules/@oxygen/shared/dist/agent-sessions.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/agent-sessions.js +1 -1
- package/node_modules/@oxygen/shared/dist/capability-discovery.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/capability-discovery.js +2 -2
- package/node_modules/@oxygen/shared/dist/cell-format.js +2 -2
- package/node_modules/@oxygen/shared/dist/collab.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/geo.js +1 -1
- package/node_modules/@oxygen/shared/dist/contracts/guided-activation.js +1 -1
- package/node_modules/@oxygen/shared/dist/copilot-access.js +1 -1
- package/node_modules/@oxygen/shared/dist/dnc-identities.js +1 -1
- package/node_modules/@oxygen/shared/dist/error-redaction.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/error-redaction.js +2 -2
- package/node_modules/@oxygen/shared/dist/esp-contract.d.ts +133 -0
- package/node_modules/@oxygen/shared/dist/esp-contract.js +121 -0
- package/node_modules/@oxygen/shared/dist/freemail-domains.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/freemail-domains.js +1 -1
- package/node_modules/@oxygen/shared/dist/{geo.js → geo/geo.js} +2 -2
- package/node_modules/@oxygen/shared/dist/index.d.ts +17 -16
- package/node_modules/@oxygen/shared/dist/index.js +18 -16
- package/node_modules/@oxygen/shared/dist/knowledge-bootstrap.js +1 -1
- package/node_modules/@oxygen/shared/dist/langfuse.d.ts +5 -1
- package/node_modules/@oxygen/shared/dist/langfuse.js +25 -3
- package/node_modules/@oxygen/shared/dist/linkedin-connection-identity.js +1 -1
- package/node_modules/@oxygen/shared/dist/{email-deliverability-policy.d.ts → mailboxes/email-deliverability-policy.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{emailguard-placement-probe.js → mailboxes/emailguard-placement-probe.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.js → mailboxes/sending-domain-rollout.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{mailbox-standby-rollout.d.ts → mailboxes/standby-rollout.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{mailbox-standby-rollout.js → mailboxes/standby-rollout.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{warmup-metrics.js → mailboxes/warmup-metrics.js} +1 -1
- package/node_modules/@oxygen/shared/dist/mcp-event-contract.js +1 -1
- package/node_modules/@oxygen/shared/dist/object-storage.js +1 -1
- package/node_modules/@oxygen/shared/dist/{guided-activation.d.ts → onboarding/guided-activation.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{guided-activation.js → onboarding/guided-activation.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{guided-onboarding-company-context.d.ts → onboarding/guided-onboarding-company-context.d.ts} +6 -6
- package/node_modules/@oxygen/shared/dist/{guided-onboarding-company-context.js → onboarding/guided-onboarding-company-context.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{signup-lead-payload.js → onboarding/signup-lead-payload.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{signup-lead-webhook.js → onboarding/signup-lead-webhook.js} +2 -2
- package/node_modules/@oxygen/shared/dist/onboarding-leads.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/plan-band.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/plan-band.js +1 -1
- package/node_modules/@oxygen/shared/dist/plan-limits.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/plan-limits.js +3 -3
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.d.ts → posts/metrics-core.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.d.ts → posts/metrics-linkedin.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-linkedin.js → posts/metrics-linkedin.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.d.ts → posts/metrics-series.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-series.js → posts/metrics-series.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.d.ts → posts/metrics-x.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.js → posts/metrics-x.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{social-post-metrics.d.ts → posts/metrics.d.ts} +3 -3
- package/node_modules/@oxygen/shared/dist/{social-post-metrics.js → posts/metrics.js} +3 -3
- package/node_modules/@oxygen/shared/dist/recipient-provider.d.ts +2 -10
- package/node_modules/@oxygen/shared/dist/recipient-provider.js +1 -9
- package/node_modules/@oxygen/shared/dist/redis-endpoint-map.d.ts +10 -0
- package/node_modules/@oxygen/shared/dist/redis-endpoint-map.js +63 -0
- package/node_modules/@oxygen/shared/dist/repricing.js +1 -1
- package/node_modules/@oxygen/shared/dist/sending-limits.js +1 -1
- package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.d.ts +2 -118
- package/node_modules/@oxygen/shared/dist/sequence-internals/esp-policy.js +2 -107
- package/node_modules/@oxygen/shared/dist/sequences.d.ts +0 -1
- package/node_modules/@oxygen/shared/dist/sequences.js +0 -2
- package/node_modules/@oxygen/shared/dist/{native-chat-discovery.d.ts → support/native-chat-discovery.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{native-chat-discovery.js → support/native-chat-discovery.js} +1 -1
- package/node_modules/@oxygen/shared/dist/suppression-entries.js +1 -1
- package/node_modules/@oxygen/shared/dist/table-field-types.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/table-field-types.js +2 -2
- package/node_modules/@oxygen/shared/dist/table-run-summary.js +1 -1
- package/node_modules/@oxygen/shared/dist/{table-capacity.d.ts → tables/capacity.d.ts} +2 -2
- package/node_modules/@oxygen/shared/dist/{table-capacity.js → tables/capacity.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{column-decision.js → tables/column-decision.js} +1 -1
- package/node_modules/@oxygen/shared/dist/{column-output-fields.js → tables/column-output-fields.js} +4 -4
- package/node_modules/@oxygen/shared/dist/{enrichment-intents.d.ts → tables/enrichment-intents.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{file-import.js → tables/file-import.js} +2 -2
- package/node_modules/@oxygen/shared/dist/{tags.d.ts → tags/tags.d.ts} +1 -1
- package/node_modules/@oxygen/shared/dist/{tags.js → tags/tags.js} +1 -1
- package/node_modules/@oxygen/shared/dist/teammates.js +1 -1
- package/node_modules/@oxygen/shared/dist/{ugc-amplification-identity.js → ugc/amplification-identity.js} +1 -1
- package/node_modules/@oxygen/shared/dist/version.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
- package/node_modules/@oxygen/shared/dist/version.js +1 -1
- package/node_modules/@oxygen/shared/dist/workspace-event-catalog.js +1 -1
- package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.d.ts +6 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-bulk.js +9 -2
- package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.d.ts +44 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-schedule.js +90 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-view.d.ts +24 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement-view.js +5 -4
- package/node_modules/@oxygen/shared/dist/workspace-placement.d.ts +4 -0
- package/node_modules/@oxygen/shared/dist/workspace-placement.js +8 -2
- package/node_modules/@oxygen/shared/package.json +0 -60
- package/node_modules/@oxygen/workflows/dist/cron.d.ts +42 -0
- package/node_modules/@oxygen/workflows/dist/cron.js +271 -0
- package/node_modules/@oxygen/workflows/dist/event-dispatch.d.ts +2 -1
- package/node_modules/@oxygen/workflows/dist/graph/condition.d.ts +3 -0
- package/node_modules/@oxygen/workflows/dist/graph/condition.js +19 -0
- package/node_modules/@oxygen/workflows/dist/graph/expression.d.ts +1 -2
- package/node_modules/@oxygen/workflows/dist/graph/expression.js +2 -19
- package/node_modules/@oxygen/workflows/dist/graph/types.d.ts +4 -3
- package/node_modules/@oxygen/workflows/dist/index.d.ts +8 -985
- package/node_modules/@oxygen/workflows/dist/index.js +8 -1221
- package/node_modules/@oxygen/workflows/dist/manifest-builders.d.ts +73 -0
- package/node_modules/@oxygen/workflows/dist/manifest-builders.js +102 -0
- package/node_modules/@oxygen/workflows/dist/manifest-guards.d.ts +16 -0
- package/node_modules/@oxygen/workflows/dist/manifest-guards.js +34 -0
- package/node_modules/@oxygen/workflows/dist/manifest-hash.d.ts +47 -0
- package/node_modules/@oxygen/workflows/dist/manifest-hash.js +102 -0
- package/node_modules/@oxygen/workflows/dist/manifest-lint.d.ts +17 -0
- package/node_modules/@oxygen/workflows/dist/manifest-lint.js +474 -0
- package/node_modules/@oxygen/workflows/dist/manifest-types.d.ts +256 -0
- package/node_modules/@oxygen/workflows/dist/manifest-types.js +9 -0
- package/node_modules/@oxygen/workflows/dist/pure-function.d.ts +17 -0
- package/node_modules/@oxygen/workflows/dist/pure-function.js +130 -0
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.d.ts +1 -17
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-comparison.js +1 -93
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.d.ts +16 -0
- package/node_modules/@oxygen/workflows/dist/refactor-internals/condition-pattern.js +92 -0
- package/node_modules/@oxygen/workflows/dist/workflow-schemas.d.ts +545 -0
- package/node_modules/@oxygen/workflows/dist/workflow-schemas.js +135 -0
- package/node_modules/@oxygen/workflows/package.json +4 -0
- package/package.json +1 -1
- /package/node_modules/@oxygen/shared/dist/{geo.d.ts → geo/geo.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-blacklist.d.ts → mailboxes/deliverability-blacklist.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-blacklist.js → mailboxes/deliverability-blacklist.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-checks.d.ts → mailboxes/deliverability-checks.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-checks.js → mailboxes/deliverability-checks.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-evidence.d.ts → mailboxes/deliverability-evidence.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-evidence.js → mailboxes/deliverability-evidence.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-loop.d.ts → mailboxes/deliverability-loop.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-loop.js → mailboxes/deliverability-loop.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-surface.d.ts → mailboxes/deliverability-surface.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{deliverability-surface.js → mailboxes/deliverability-surface.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{domain-authentication.d.ts → mailboxes/domain-authentication.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{domain-authentication.js → mailboxes/domain-authentication.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-deliverability-policy.js → mailboxes/email-deliverability-policy.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-status.d.ts → mailboxes/email-health-status.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-status.js → mailboxes/email-health-status.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-summary.d.ts → mailboxes/email-health-summary.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{email-health-summary.js → mailboxes/email-health-summary.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{emailguard-placement-probe.d.ts → mailboxes/emailguard-placement-probe.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{microsoft-consent-url.d.ts → mailboxes/microsoft-consent-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{microsoft-consent-url.js → mailboxes/microsoft-consent-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-copy.d.ts → mailboxes/placement-copy.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-copy.js → mailboxes/placement-copy.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-history.d.ts → mailboxes/placement-history.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-history.js → mailboxes/placement-history.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-report.d.ts → mailboxes/placement-report.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{placement-report.js → mailboxes/placement-report.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{received-authentication.d.ts → mailboxes/received-authentication.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{received-authentication.js → mailboxes/received-authentication.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{sending-domain-rollout.d.ts → mailboxes/sending-domain-rollout.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ses-identity-policy.d.ts → mailboxes/ses-identity-policy.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ses-identity-policy.js → mailboxes/ses-identity-policy.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{mailbox-standby.d.ts → mailboxes/standby.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{mailbox-standby.js → mailboxes/standby.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{warmup-metrics.d.ts → mailboxes/warmup-metrics.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{attempt-provenance.d.ts → observability/attempt-provenance.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{attempt-provenance.js → observability/attempt-provenance.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-first-leads.d.ts → onboarding/first-leads.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-first-leads.js → onboarding/first-leads.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-events.d.ts → onboarding/future-signup-events.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-events.js → onboarding/future-signup-events.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-lifecycle-projection.d.ts → onboarding/future-signup-lifecycle-projection.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{future-signup-lifecycle-projection.js → onboarding/future-signup-lifecycle-projection.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{guided-activation.fixture.d.ts → onboarding/guided-activation.fixture.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{guided-activation.fixture.js → onboarding/guided-activation.fixture.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-plays.d.ts → onboarding/plays.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-plays.js → onboarding/plays.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-research.d.ts → onboarding/research.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{onboarding-research.js → onboarding/research.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-deliveries.d.ts → onboarding/signup-lead-deliveries.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-deliveries.js → onboarding/signup-lead-deliveries.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-payload.d.ts → onboarding/signup-lead-payload.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{signup-lead-webhook.d.ts → onboarding/signup-lead-webhook.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.d.ts → posts/linkedin-mentions.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-mentions.js → posts/linkedin-mentions.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.d.ts → posts/linkedin-post-keywords.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-keywords.js → posts/linkedin-post-keywords.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.d.ts → posts/linkedin-post-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-post-url.js → posts/linkedin-post-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{social-post-metrics-core.js → posts/metrics-core.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{native-chat.d.ts → support/native-chat.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{native-chat.js → support/native-chat.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plain-support-events.d.ts → support/plain-support-events.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{plain-support-events.js → support/plain-support-events.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-decision.d.ts → tables/column-decision.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-output-fields.d.ts → tables/column-output-fields.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-types.d.ts → tables/column-types.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{column-types.js → tables/column-types.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{company-enrichment-fields.d.ts → tables/company-enrichment-fields.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{company-enrichment-fields.js → tables/company-enrichment-fields.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{enrichment-intents.js → tables/enrichment-intents.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{file-import.d.ts → tables/file-import.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{import-limits.d.ts → tables/import-limits.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{import-limits.js → tables/import-limits.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{table-limits.d.ts → tables/limits.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{table-limits.js → tables/limits.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-url.d.ts → tables/linkedin-url.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{linkedin-url.js → tables/linkedin-url.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{select-options.d.ts → tables/select-options.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{select-options.js → tables/select-options.js} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ugc-amplification-identity.d.ts → ugc/amplification-identity.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ugc.d.ts → ugc/ugc.d.ts} +0 -0
- /package/node_modules/@oxygen/shared/dist/{ugc.js → ugc/ugc.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SequenceSendWindow } from "
|
|
1
|
+
import type { SequenceSendWindow } from "../sequences.js";
|
|
2
2
|
/** Deliverability defaults are independent of pricing and confer no send/spend authority. */
|
|
3
3
|
export declare const EMAIL_DELIVERABILITY_POLICY_VERSION = "2026-09-27-v1";
|
|
4
4
|
export declare const EMAIL_DELIVERABILITY_DEFAULTS: Readonly<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
-
import { CliHttpError } from "
|
|
2
|
+
import { CliHttpError } from "../cli-http-error.js";
|
|
3
3
|
const MAX_SEED_RECIPIENTS = 50;
|
|
4
4
|
const DEFAULT_SUBJECT = "Oxygen inbox-placement test";
|
|
5
5
|
const DEFAULT_BODY = "This message is an inbox-placement test sent from Oxygen.";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CliHttpError } from "
|
|
1
|
+
import { CliHttpError } from "../cli-http-error.js";
|
|
2
2
|
export const SENDING_DOMAIN_ROLLOUT_CODE = "sending_domain_rollout_unavailable";
|
|
3
3
|
export const SENDING_DOMAIN_ROLLOUT_MESSAGE = "Sending-domain setup and delivery are not available yet.";
|
|
4
4
|
/** The operator switch that admits the sending-domain lane in one environment. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { mailboxStandbyWritesReady, assertMailboxStandbyWritesReady } from "
|
|
1
|
+
export { mailboxStandbyWritesReady, assertMailboxStandbyWritesReady } from "../write-rollout.js";
|
|
2
2
|
export declare function assertMailboxStandbyMetadataWriteReady(metadata: Record<string, unknown> | null | undefined): void;
|
|
3
3
|
export declare function assertSequenceStandbyWriteReady(settings: {
|
|
4
4
|
auto_replace_mailboxes?: boolean;
|
package/node_modules/@oxygen/shared/dist/{mailbox-standby-rollout.js → mailboxes/standby-rollout.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assertMailboxStandbyMetadataWritesReady, assertMailboxStandbyWritesReady } from "
|
|
2
|
-
export { mailboxStandbyWritesReady, assertMailboxStandbyWritesReady } from "
|
|
1
|
+
import { assertMailboxStandbyMetadataWritesReady, assertMailboxStandbyWritesReady } from "../write-rollout.js";
|
|
2
|
+
export { mailboxStandbyWritesReady, assertMailboxStandbyWritesReady } from "../write-rollout.js";
|
|
3
3
|
export function assertMailboxStandbyMetadataWriteReady(metadata) {
|
|
4
4
|
assertMailboxStandbyMetadataWritesReady(metadata);
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRecord } from "
|
|
1
|
+
import { isRecord } from "../type-guards.js";
|
|
2
2
|
const SPAM_PLACEMENT_KEYS = ["landed_spam", "spam", "saved_from_spam", "savedFromSpam", "spam_saved", "rescued_from_spam"];
|
|
3
3
|
const RESCUE_KEYS = SPAM_PLACEMENT_KEYS.slice(2);
|
|
4
4
|
/** SendKit reports placement and independent send totals, not rescues or a failure count.
|
|
@@ -3,7 +3,7 @@ import { arr, enumOf, int, nullable, num, obj, str, unwrapNullable, validateCont
|
|
|
3
3
|
import { CRM_ACTIVITY_CREATED_EVENT } from "./crm-activity-events.js";
|
|
4
4
|
import { CRM_EMAIL_REPLY_CLASSIFIED_EVENT, CRM_WORKFLOW_EVENT_SOURCE, } from "./crm-reply-events.js";
|
|
5
5
|
import { NOTETAKER_MEETING_COMPLETED_EVENT, NOTETAKER_WORKFLOW_EVENT_SOURCE } from "./notetaker-events.js";
|
|
6
|
-
import { slugifyOption } from "./select-options.js";
|
|
6
|
+
import { slugifyOption } from "./tables/select-options.js";
|
|
7
7
|
import { SEQUENCE_ENROLLMENT_TERMINAL_EVENT, SEQUENCE_TERMINAL_EVENT_SOURCE, SEQUENCE_TERMINAL_STATUSES, } from "./sequence-terminal-events.js";
|
|
8
8
|
import { resolveAppBaseUrl } from "./signed-token.js";
|
|
9
9
|
import { isRecord, readCoercedString, readTrimmedString } from "./type-guards.js";
|
|
@@ -3,7 +3,7 @@ import { randomUUID } from "node:crypto";
|
|
|
3
3
|
import { DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, PutObjectCommand, S3Client, } from "@aws-sdk/client-s3";
|
|
4
4
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
5
5
|
import { OxygenError } from "./cli-result.js";
|
|
6
|
-
import { IMPORT_OBJECT_SINGLE_PUT_MAX_BYTES } from "./import-limits.js";
|
|
6
|
+
import { IMPORT_OBJECT_SINGLE_PUT_MAX_BYTES } from "./tables/import-limits.js";
|
|
7
7
|
// S3-compatible object storage for large CSV/file imports. The CLI uploads the
|
|
8
8
|
// raw file straight to the bucket via a presigned PUT URL (bypassing Vercel's
|
|
9
9
|
// ~4.5MB request-body limit), then the Fly worker downloads it and COPY-loads
|
|
@@ -11,7 +11,7 @@ export type GuidedOnboardingResearch = {
|
|
|
11
11
|
results_turn_id?: string;
|
|
12
12
|
results_pending?: boolean;
|
|
13
13
|
/** The lead list OXYGEN sources beside the research (onboarding-leads.ts). */
|
|
14
|
-
leads?: import("
|
|
14
|
+
leads?: import("../onboarding-leads.js").OnboardingLeadsProgress;
|
|
15
15
|
};
|
|
16
16
|
export type GuidedActivationPurpose = typeof GUIDED_ACTIVATION_PURPOSES[number];
|
|
17
17
|
export type GuidedActivationRoutine = {
|
package/node_modules/@oxygen/shared/dist/{guided-activation.js → onboarding/guided-activation.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OxygenError } from "
|
|
2
|
-
import { isProductionData } from "
|
|
1
|
+
import { OxygenError } from "../cli-result.js";
|
|
2
|
+
import { isProductionData } from "../deploy-env.js";
|
|
3
3
|
export const GUIDED_ACTIVATION_PURPOSES = ["lead_scan", "morning_briefing"];
|
|
4
4
|
export const GUIDED_ACTIVATION_POINTERS = ["knowledge", "first_leads_table", "sequence", "sender", "oxygent", "direct_chat", "scan_routine", "briefing_routine"];
|
|
5
5
|
export const GUIDED_ACTIVATION_REVISIONS = ["configuration", "sequence", "audience", "recipients", "sender", "copy", "knowledge", "schedule", "authority"];
|
|
@@ -14,15 +14,15 @@ export type GuidedOnboardingCompanyContext = {
|
|
|
14
14
|
context_links: string[];
|
|
15
15
|
file_ids: string[];
|
|
16
16
|
};
|
|
17
|
-
export declare const GUIDED_ONBOARDING_COMPANY_CONTEXT_CONTRACT: import("
|
|
17
|
+
export declare const GUIDED_ONBOARDING_COMPANY_CONTEXT_CONTRACT: import("../contracts/schema.js").ContractObject<{
|
|
18
18
|
readonly website: {
|
|
19
|
-
oneOf: [import("
|
|
19
|
+
oneOf: [import("../contracts/schema.js").StringProperty, import("../contracts/schema.js").NullProperty];
|
|
20
20
|
description?: string;
|
|
21
21
|
};
|
|
22
|
-
readonly name: import("
|
|
23
|
-
readonly description: import("
|
|
24
|
-
readonly context_links: import("
|
|
25
|
-
readonly file_ids: import("
|
|
22
|
+
readonly name: import("../contracts/schema.js").StringProperty;
|
|
23
|
+
readonly description: import("../contracts/schema.js").StringProperty;
|
|
24
|
+
readonly context_links: import("../contracts/schema.js").ArrayProperty<import("../contracts/schema.js").StringProperty>;
|
|
25
|
+
readonly file_ids: import("../contracts/schema.js").ArrayProperty<import("../contracts/schema.js").StringProperty>;
|
|
26
26
|
}, "context_links" | "description" | "file_ids" | "name" | "website">;
|
|
27
27
|
/** Input-only rule; existing evidence links retain their independent navigation policy. */
|
|
28
28
|
export declare function normalizeGuidedOnboardingContextLink(value: string): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OxygenError } from "
|
|
2
|
-
import { arr, nullable, obj, str, validateContract } from "
|
|
1
|
+
import { OxygenError } from "../cli-result.js";
|
|
2
|
+
import { arr, nullable, obj, str, validateContract } from "../contracts/schema.js";
|
|
3
3
|
/** One native-supported input budget for web/CLI/MCP and D research preparation. */
|
|
4
4
|
export const GUIDED_ONBOARDING_COMPANY_CONTEXT_LIMITS = {
|
|
5
5
|
descriptionChars: 6000, contextLinks: 5, fileIds: 5, nameChars: 160, urlChars: 2000,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isPersonalEmailDomain } from "
|
|
2
|
-
import { readCoercedString as normalizeString } from "
|
|
1
|
+
import { isPersonalEmailDomain } from "../freemail-domains.js";
|
|
2
|
+
import { readCoercedString as normalizeString } from "../type-guards.js";
|
|
3
3
|
/**
|
|
4
4
|
* Classifies an email address into a (likely) company work-email domain.
|
|
5
5
|
* Consumer/generic mailboxes return `{ domain: null, isGenericMailbox: true }`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHmac } from "node:crypto";
|
|
2
2
|
// Shared transport contract for the signup-lead webhook. Both the request-time
|
|
3
|
-
// direct emitter (apps/web/src/lib/signup-lead-webhook.ts) and the durable
|
|
4
|
-
// worker retry queue (apps/worker/src/signup-lead-delivery-queue.ts) build the
|
|
3
|
+
// direct emitter (apps/web/src/lib/onboarding/signup-lead-webhook.ts) and the durable
|
|
4
|
+
// worker retry queue (apps/worker/src/onboarding/signup-lead-delivery-queue.ts) build the
|
|
5
5
|
// same HMAC signature, Oxygen table/workflow secret headers, timeout, and
|
|
6
6
|
// target classification. This module is the single source of truth so the two
|
|
7
7
|
// paths cannot drift when the webhook auth/header contract changes (OXY-679).
|
|
@@ -56,6 +56,10 @@ export type OnboardingLeadsIcp = {
|
|
|
56
56
|
segments?: unknown;
|
|
57
57
|
company_size?: unknown;
|
|
58
58
|
geographies?: unknown;
|
|
59
|
+
/** The buyers' seniorities ("C-Level", "VP"), when the website draft named them. */
|
|
60
|
+
seniorities?: unknown;
|
|
61
|
+
/** The companies' industries, apart from the segments' names, when the website draft named them. */
|
|
62
|
+
industries?: unknown;
|
|
59
63
|
};
|
|
60
64
|
/**
|
|
61
65
|
* The people search request in words, for the people search planner: who
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type LimitsTier } from "./plan-limits.js";
|
|
2
2
|
import { type RepricingOptions } from "./repricing.js";
|
|
3
|
-
import { type WorkspaceTableCapacityStatus } from "./
|
|
3
|
+
import { type WorkspaceTableCapacityStatus } from "./tables/capacity.js";
|
|
4
4
|
/**
|
|
5
5
|
* The seven plan bands of the 2026-09 repricing (spec § 4, slice S06): free
|
|
6
6
|
* plus one band per Oxygen plan size. They sit BESIDE the five-rung
|
|
@@ -2,7 +2,7 @@ import { planVolumeBonusCredits, planVolumeBonusPercent, resolveBasePricingPlan
|
|
|
2
2
|
import { planLimitsForTier, limitsTierForPlanTier, resolveCronMinIntervalMinutes, resolvePlanAgentCreditLimits, } from "./plan-limits.js";
|
|
3
3
|
import { COPILOT_ATTENDED_INFERENCE_CREDIT_CEILING, DEFAULT_AUTO_RUN_BATCH_CREDIT_CEILING, DEFAULT_BYOK_COLUMN_RUN_MAX_ROWS, DEFAULT_BYOK_PROVIDER_DAILY_CALL_CAP, DEFAULT_TRIGGER_RUN_CREDIT_CEILING, copilotApprovalFreeAllowanceForBand, resolveOrgDailySpendGuard, resolveSpendSafetyPlanTier, } from "./spend-safety.js";
|
|
4
4
|
import { isRepricingInForce, tenthOfMonthlyCreditsRoundedHalfUp, } from "./repricing.js";
|
|
5
|
-
import { describeWorkspaceTableCapacityStatus, resolveWorkspaceTableCapacity, } from "./
|
|
5
|
+
import { describeWorkspaceTableCapacityStatus, resolveWorkspaceTableCapacity, } from "./tables/capacity.js";
|
|
6
6
|
export const PLAN_BAND_ORDER = [
|
|
7
7
|
"free",
|
|
8
8
|
"49",
|
|
@@ -104,7 +104,7 @@ export type PlanLimits = {
|
|
|
104
104
|
* capacity and the workspace-wide envelope.
|
|
105
105
|
*/
|
|
106
106
|
export declare const TABLE_IMPORT_ROW_LIMIT: number;
|
|
107
|
-
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./import-limits.js";
|
|
107
|
+
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./tables/import-limits.js";
|
|
108
108
|
/**
|
|
109
109
|
* OXYGEN's own JSON-body ceiling for every `/api/cli/*` route (enforced by
|
|
110
110
|
* `assertCliJsonBodyWithinLimit` on the content-length header). Shared so the CLI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveBasePricingPlan } from "./billing.js";
|
|
2
2
|
import { OxygenError } from "./cli-result.js";
|
|
3
|
-
import { WORKSPACE_TABLE_CAPACITY } from "./
|
|
3
|
+
import { WORKSPACE_TABLE_CAPACITY } from "./tables/capacity.js";
|
|
4
4
|
import { findRepricedValue, repricedValue } from "./repricing.js";
|
|
5
5
|
import { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "./connection-approval.js";
|
|
6
6
|
export { CONNECTION_CEILING_ABOVE_DEFAULT_APPROVAL_KIND } from "./connection-approval.js";
|
|
@@ -25,8 +25,8 @@ const MIB = 1024 * 1024;
|
|
|
25
25
|
export const TABLE_IMPORT_ROW_LIMIT = WORKSPACE_TABLE_CAPACITY.tableRowLimit;
|
|
26
26
|
// The platform request-body ceiling belongs to the same question as the import
|
|
27
27
|
// ceilings below ("how big can an import be"), but it must stay importable from a
|
|
28
|
-
// browser bundle, so it is defined in ./import-limits and re-exported here.
|
|
29
|
-
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./import-limits.js";
|
|
28
|
+
// browser bundle, so it is defined in ./tables/import-limits and re-exported here.
|
|
29
|
+
export { VERCEL_REQUEST_BODY_LIMIT_BYTES } from "./tables/import-limits.js";
|
|
30
30
|
/**
|
|
31
31
|
* OXYGEN's own JSON-body ceiling for every `/api/cli/*` route (enforced by
|
|
32
32
|
* `assertCliJsonBodyWithinLimit` on the content-length header). Shared so the CLI
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pickMetricCount, presentMetrics, readMetricCount, } from "./
|
|
2
|
-
import { isRecord } from "
|
|
1
|
+
import { pickMetricCount, presentMetrics, readMetricCount, } from "./metrics-core.js";
|
|
2
|
+
import { isRecord } from "../type-guards.js";
|
|
3
3
|
/**
|
|
4
4
|
* Bump when the parse of a stored LinkedIn payload changes meaning, so stored raw
|
|
5
5
|
* payloads can be re-derived.
|
package/node_modules/@oxygen/shared/dist/{social-post-metrics-x.d.ts → posts/metrics-x.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ParsedSocialPostMetrics } from "./
|
|
1
|
+
import { type ParsedSocialPostMetrics } from "./metrics-core.js";
|
|
2
2
|
export declare const X_COMPOSIO_POST_METRICS_PARSER_VERSION = 1;
|
|
3
3
|
/**
|
|
4
4
|
* Every field the X parse reads, and nothing else: the post's and its media's
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pickMetricCount, presentMetrics, } from "./
|
|
2
|
-
import { isRecord } from "
|
|
1
|
+
import { pickMetricCount, presentMetrics, } from "./metrics-core.js";
|
|
2
|
+
import { isRecord } from "../type-guards.js";
|
|
3
3
|
export const X_COMPOSIO_POST_METRICS_PARSER_VERSION = 1;
|
|
4
4
|
function xPostEnvelope(payload) {
|
|
5
5
|
const firstData = isRecord(payload.data) ? payload.data : payload;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type SocialPostMetric } from "
|
|
2
|
-
import type { ParsedSocialPostMetrics } from "./
|
|
3
|
-
export type { ParsedSocialPostMetrics } from "./
|
|
1
|
+
import { type SocialPostMetric } from "../social-capabilities.js";
|
|
2
|
+
import type { ParsedSocialPostMetrics } from "./metrics-core.js";
|
|
3
|
+
export type { ParsedSocialPostMetrics } from "./metrics-core.js";
|
|
4
4
|
/** Null when no parser is registered for the pair. */
|
|
5
5
|
export declare function parseSocialPostMetrics(input: {
|
|
6
6
|
channel: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getSocialCapabilityProfile, SOCIAL_POST_METRICS, } from "
|
|
2
|
-
import { LINKEDIN_UNIPILE_POST_METRICS_PARSER_VERSION, linkedInUnipileMetricEvidence, parseLinkedInUnipilePostMetrics, } from "./
|
|
3
|
-
import { parseXComposioPostMetrics, X_COMPOSIO_POST_METRICS_PARSER_VERSION, xComposioMetricEvidence, } from "./
|
|
1
|
+
import { getSocialCapabilityProfile, SOCIAL_POST_METRICS, } from "../social-capabilities.js";
|
|
2
|
+
import { LINKEDIN_UNIPILE_POST_METRICS_PARSER_VERSION, linkedInUnipileMetricEvidence, parseLinkedInUnipilePostMetrics, } from "./metrics-linkedin.js";
|
|
3
|
+
import { parseXComposioPostMetrics, X_COMPOSIO_POST_METRICS_PARSER_VERSION, xComposioMetricEvidence, } from "./metrics-x.js";
|
|
4
4
|
const POST_METRICS_PARSERS = {
|
|
5
5
|
"linkedin:unipile": {
|
|
6
6
|
version: LINKEDIN_UNIPILE_POST_METRICS_PARSER_VERSION,
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* a send. One vocabulary over the ESP-family tables in `sequence-internals/esp-policy.ts`, so MX
|
|
4
|
-
* suffixes and consumer domains are never listed twice. Google and Microsoft are mailbox hosts; the
|
|
5
|
-
* four named gateways front most enterprise mailboxes and filter differently from the host behind
|
|
6
|
-
* them. Every other resolved family (Zoho, Yahoo, other gateways, self-hosted) is `other`;
|
|
7
|
-
* an unresolved or failed lookup is `unknown`, never `other`.
|
|
8
|
-
*/
|
|
9
|
-
export declare const RECIPIENT_PROVIDERS: readonly ["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco", "other", "unknown"];
|
|
10
|
-
export type RecipientProvider = (typeof RECIPIENT_PROVIDERS)[number];
|
|
1
|
+
import type { RecipientProvider } from "./esp-contract.js";
|
|
2
|
+
export { RECIPIENT_PROVIDERS, type RecipientProvider } from "./esp-contract.js";
|
|
11
3
|
/** A stored ESP family (recipient_esp_cache.family) as a provider; null means not resolved. */
|
|
12
4
|
export declare function recipientProviderFromFamily(family: string | null | undefined): RecipientProvider;
|
|
13
5
|
/** MX exchange hosts as a provider. An answer naming no known vendor is `other`; no hosts is `unknown`. */
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { consumerRecipientDomainFamilies, familyFromMxHosts, inferRecipientEspFamily, } from "./sequence-internals/esp-policy.js";
|
|
2
|
-
|
|
3
|
-
* The recipient side of a deliverability breakdown: which mail infrastructure accepted (or refused)
|
|
4
|
-
* a send. One vocabulary over the ESP-family tables in `sequence-internals/esp-policy.ts`, so MX
|
|
5
|
-
* suffixes and consumer domains are never listed twice. Google and Microsoft are mailbox hosts; the
|
|
6
|
-
* four named gateways front most enterprise mailboxes and filter differently from the host behind
|
|
7
|
-
* them. Every other resolved family (Zoho, Yahoo, other gateways, self-hosted) is `other`;
|
|
8
|
-
* an unresolved or failed lookup is `unknown`, never `other`.
|
|
9
|
-
*/
|
|
10
|
-
export const RECIPIENT_PROVIDERS = ["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco", "other", "unknown"];
|
|
2
|
+
export { RECIPIENT_PROVIDERS } from "./esp-contract.js";
|
|
11
3
|
const NAMED_PROVIDERS = new Set(["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco"]);
|
|
12
4
|
/** A stored ESP family (recipient_esp_cache.family) as a provider; null means not resolved. */
|
|
13
5
|
export function recipientProviderFromFamily(family) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const REDIS_ENDPOINT_MAP_ENV = "OXYGEN_REDIS_ENDPOINT_MAP";
|
|
2
|
+
export type RedisEndpoint = {
|
|
3
|
+
host: string;
|
|
4
|
+
port: number;
|
|
5
|
+
};
|
|
6
|
+
export declare function readRedisEndpointMap(env?: NodeJS.ProcessEnv): ReadonlyMap<string, RedisEndpoint>;
|
|
7
|
+
/** The URL with a mapped alias replaced by its endpoint; an IP literal is returned unchanged. */
|
|
8
|
+
export declare function applyRedisEndpointMap(url: URL, env?: NodeJS.ProcessEnv): URL;
|
|
9
|
+
/** String form for clients that take a Redis URL; unparseable input is left to the caller's own validation. */
|
|
10
|
+
export declare function mapRedisUrl(raw: string, env?: NodeJS.ProcessEnv): string;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Remote-site Redis addressing for BullMQ roles.
|
|
3
|
+
*
|
|
4
|
+
* Queue and quota Redis URLs name Swarm overlay aliases (`oxygen-worker-redis`,
|
|
5
|
+
* `oxygen-worker-redis-prod`) that resolve only on the queue site's own Swarm.
|
|
6
|
+
* A role running on the other box reaches the same Redis over the vRack, so
|
|
7
|
+
* `OXYGEN_REDIS_ENDPOINT_MAP` (a non-secret selector rendered by
|
|
8
|
+
* ops/selfhost/worker-queue/placement.py) maps each alias to `host:port`:
|
|
9
|
+
*
|
|
10
|
+
* oxygen-worker-redis=172.16.77.11:16379,oxygen-worker-redis-prod=172.16.77.11:16380
|
|
11
|
+
*
|
|
12
|
+
* Credentials stay in the unchanged secret URL. An unset map changes nothing.
|
|
13
|
+
* A malformed map, or a set map that does not name the URL's overlay host,
|
|
14
|
+
* throws, so a remote role never dials a name its own Swarm cannot resolve
|
|
15
|
+
* (or, worse, one it resolves to a different Redis).
|
|
16
|
+
*/
|
|
17
|
+
const ALIAS = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
18
|
+
const IPV4 = /^\d{1,3}(?:\.\d{1,3}){3}$/;
|
|
19
|
+
const HOST = /^(?:\d{1,3}(?:\.\d{1,3}){3}|[a-z0-9](?:[a-z0-9.-]{0,251}[a-z0-9])?)$/;
|
|
20
|
+
export const REDIS_ENDPOINT_MAP_ENV = "OXYGEN_REDIS_ENDPOINT_MAP";
|
|
21
|
+
export function readRedisEndpointMap(env = process.env) {
|
|
22
|
+
const raw = env[REDIS_ENDPOINT_MAP_ENV]?.trim();
|
|
23
|
+
const map = new Map();
|
|
24
|
+
if (!raw)
|
|
25
|
+
return map;
|
|
26
|
+
for (const entry of raw.split(",")) {
|
|
27
|
+
const [, alias = "", host = "", rawPort = ""] = /^([^=]+)=([^:]+):(\d{1,5})$/.exec(entry.trim()) ?? [];
|
|
28
|
+
const port = Number(rawPort);
|
|
29
|
+
if (!ALIAS.test(alias) || !HOST.test(host) || !Number.isInteger(port) || port < 1 || port > 65_535 || map.has(alias)) {
|
|
30
|
+
throw new Error(`Invalid ${REDIS_ENDPOINT_MAP_ENV}`);
|
|
31
|
+
}
|
|
32
|
+
map.set(alias, { host, port });
|
|
33
|
+
}
|
|
34
|
+
return map;
|
|
35
|
+
}
|
|
36
|
+
/** The URL with a mapped alias replaced by its endpoint; an IP literal is returned unchanged. */
|
|
37
|
+
export function applyRedisEndpointMap(url, env = process.env) {
|
|
38
|
+
const map = readRedisEndpointMap(env);
|
|
39
|
+
if (map.size === 0)
|
|
40
|
+
return url;
|
|
41
|
+
const endpoint = map.get(url.hostname);
|
|
42
|
+
if (!endpoint) {
|
|
43
|
+
if (IPV4.test(url.hostname))
|
|
44
|
+
return url;
|
|
45
|
+
throw new Error(`${REDIS_ENDPOINT_MAP_ENV} does not map the Redis host this role dials`);
|
|
46
|
+
}
|
|
47
|
+
const mapped = new URL(url.href);
|
|
48
|
+
mapped.hostname = endpoint.host;
|
|
49
|
+
mapped.port = String(endpoint.port);
|
|
50
|
+
return mapped;
|
|
51
|
+
}
|
|
52
|
+
/** String form for clients that take a Redis URL; unparseable input is left to the caller's own validation. */
|
|
53
|
+
export function mapRedisUrl(raw, env = process.env) {
|
|
54
|
+
let url;
|
|
55
|
+
try {
|
|
56
|
+
url = new URL(raw);
|
|
57
|
+
}
|
|
58
|
+
catch {
|
|
59
|
+
return raw;
|
|
60
|
+
}
|
|
61
|
+
const mapped = applyRedisEndpointMap(url, env);
|
|
62
|
+
return mapped === url ? raw : mapped.href;
|
|
63
|
+
}
|
|
@@ -125,7 +125,7 @@ const GIB = 1024 ** 3;
|
|
|
125
125
|
// after the capacity test at 5M and 10M rows), so only
|
|
126
126
|
// free, $49 and $99 appear here. The database warning is PROPOSED P-48: two
|
|
127
127
|
// thirds of the hard limit, rounded down to a whole byte.
|
|
128
|
-
// `packages/shared/src/
|
|
128
|
+
// `packages/shared/src/tables/capacity.ts` resolves these; a test pins each
|
|
129
129
|
// `after` to the ratified ladder there, so the two cannot drift.
|
|
130
130
|
const STORAGE_CUTS = [
|
|
131
131
|
{ band: "free", tableRows: 100_000, workspaceRows: 1_000_000, databaseBytes: 2 * GIB },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mailboxInfrastructureDailyCap } from "./email-infrastructure-policy.js";
|
|
2
|
-
import { EMAIL_DELIVERABILITY_DEFAULTS } from "./email-deliverability-policy.js";
|
|
2
|
+
import { EMAIL_DELIVERABILITY_DEFAULTS } from "./mailboxes/email-deliverability-policy.js";
|
|
3
3
|
/**
|
|
4
4
|
* The daily cap a new mailbox gets when nobody names one. New mailboxes were
|
|
5
5
|
* created at 18 a day before the repricing, so this is an increase and is live.
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* Deliverability lore: a send lands better when the SENDING mailbox and the
|
|
4
|
-
* RECIPIENT sit on the same provider (Google→Google, Microsoft→Microsoft), so at
|
|
5
|
-
* mailbox-pick the dispatcher can bias rotation toward a same-ESP mailbox.
|
|
6
|
-
* - "off" — no ESP bias; rotation is pure LRU / domain-spread.
|
|
7
|
-
* - "prefer" — (DEFAULT) pick a same-ESP mailbox when one is available, else
|
|
8
|
-
* fall back to any sendable mailbox (never blocks a send). On by default
|
|
9
|
-
* because it only ever improves deliverability and cannot starve sends.
|
|
10
|
-
* - "strict" — require a same-ESP mailbox; when none is available the action is
|
|
11
|
-
* DEFERRED with a visible skipped_reason rather than sent cross-provider.
|
|
12
|
-
* Power-user setting, reachable via CLI/MCP; the web "Provider Matching"
|
|
13
|
-
* checkbox toggles off↔prefer only.
|
|
14
|
-
*/
|
|
15
|
-
export declare const ESP_MATCHING_MODES: readonly ["off", "prefer", "strict"];
|
|
16
|
-
export type EspMatchingMode = (typeof ESP_MATCHING_MODES)[number];
|
|
17
|
-
export declare const DEFAULT_ESP_MATCHING_MODE: EspMatchingMode;
|
|
1
|
+
import { type EspMatchingMode, type RecipientEsp, type EspRouteBucket, type EspRouteWeights, type ResolvedEspPolicy, type RecipientEspFamily } from "../esp-contract.js";
|
|
2
|
+
export { ESP_MATCHING_MODES, type EspMatchingMode, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, type RecipientEsp, ESP_ROUTE_BUCKETS, type EspRouteBucket, type EspRouteWeights, type EspSenderExclusion, type EspRoutingPolicy, type EspMatchingSetting, type ResolvedEspPolicy, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, type RecipientEspFamily, } from "../esp-contract.js";
|
|
18
3
|
export declare function isEspMatchingMode(value: unknown): value is EspMatchingMode;
|
|
19
4
|
/**
|
|
20
5
|
* Validate settings.esp_matching before persistence. Absent/null is valid and
|
|
@@ -27,91 +12,6 @@ export declare function isEspMatchingMode(value: unknown): value is EspMatchingM
|
|
|
27
12
|
* settings validator alongside the budget/prioritization checks.
|
|
28
13
|
*/
|
|
29
14
|
export declare function validateEspMatchingSetting(value: unknown): void;
|
|
30
|
-
/**
|
|
31
|
-
* The MATCHABLE email-provider a recipient routes through — the narrow set ESP
|
|
32
|
-
* matching can act on. Kept intentionally aligned with EMAIL_MAILBOX_PROVIDERS in
|
|
33
|
-
* tenant-db so a mailbox's `provider` and a resolved recipient ESP compare
|
|
34
|
-
* directly: we can only bias rotation toward a provider we can actually SEND
|
|
35
|
-
* from, and the pool is Google/Microsoft only.
|
|
36
|
-
*
|
|
37
|
-
* This is deliberately NARROWER than RECIPIENT_ESP_FAMILIES (what we DISPLAY).
|
|
38
|
-
* A domain behind Proofpoint has family "proofpoint" but may still be matchable
|
|
39
|
-
* as "microsoft" — see resolveEspFamily.
|
|
40
|
-
*/
|
|
41
|
-
export declare const RECIPIENT_ESPS: readonly ["google", "microsoft"];
|
|
42
|
-
export type RecipientEsp = (typeof RECIPIENT_ESPS)[number];
|
|
43
|
-
/**
|
|
44
|
-
* WEIGHTED SENDER ROUTING — the object form of settings.esp_matching.
|
|
45
|
-
*
|
|
46
|
-
* The three scalar modes above answer one question ("bias toward the recipient's
|
|
47
|
-
* own provider, yes or no"), and they bake in the assumption that same-provider
|
|
48
|
-
* is always better. That assumption fails whenever one provider's senders are in
|
|
49
|
-
* bad standing: a workspace whose Google-hosted domains are refused by Gmail
|
|
50
|
-
* wants its Google-hosted RECIPIENTS served from Microsoft senders, which no
|
|
51
|
-
* scalar mode can express. "off" does not express it either, because free
|
|
52
|
-
* rotation still hands Google recipients a Google sender in proportion to the
|
|
53
|
-
* pool.
|
|
54
|
-
*
|
|
55
|
-
* So the object form states the routing directly, as SEND SHARES per recipient
|
|
56
|
-
* provider:
|
|
57
|
-
*
|
|
58
|
-
* { mode: "prefer",
|
|
59
|
-
* routes: { google: { microsoft: 100 }, microsoft: { microsoft: 100 } },
|
|
60
|
-
* exclude: [{ domain: "burned.example", from_recipients: ["google"] }] }
|
|
61
|
-
*
|
|
62
|
-
* `routes` is keyed by the RECIPIENT's resolved provider; the inner map is the
|
|
63
|
-
* SENDER provider. Weights are relative shares, so { google: 3, microsoft: 1 }
|
|
64
|
-
* and { google: 75, microsoft: 25 } are the same policy and nothing has to sum
|
|
65
|
-
* to 100. An omitted weight is zero. A bucket whose entry is explicitly present
|
|
66
|
-
* but carries no positive weight means "no opinion, rotate freely for this
|
|
67
|
-
* recipient class"; a bucket the operator never mentioned keeps the historical
|
|
68
|
-
* same-provider default, so editing Google routing cannot silently change how
|
|
69
|
-
* Microsoft recipients are served.
|
|
70
|
-
*
|
|
71
|
-
* `exclude` is a hard never, not a preference: a sender domain listed here is
|
|
72
|
-
* removed from the candidate pool for the named recipient buckets (all buckets
|
|
73
|
-
* when `from_recipients` is absent) in EVERY mode, including "off", and it
|
|
74
|
-
* survives the prefer-fallback. A deliverability guard that a matching toggle
|
|
75
|
-
* could disarm would not be a guard.
|
|
76
|
-
*
|
|
77
|
-
* The scalar modes remain valid values and are read as policies, so there is one
|
|
78
|
-
* routing code path rather than two: "prefer" becomes { mode: "prefer" } with no
|
|
79
|
-
* routes, which resolves to the same-provider default and behaves exactly as it
|
|
80
|
-
* did before.
|
|
81
|
-
*/
|
|
82
|
-
export declare const ESP_ROUTE_BUCKETS: readonly ["google", "microsoft", "unknown"];
|
|
83
|
-
/** The RECIPIENT side of a route: a matchable provider, or "unknown" when resolution failed. */
|
|
84
|
-
export type EspRouteBucket = (typeof ESP_ROUTE_BUCKETS)[number];
|
|
85
|
-
/** The SENDER side of a route: relative send shares per mailbox provider. */
|
|
86
|
-
export type EspRouteWeights = Partial<Record<RecipientEsp, number>>;
|
|
87
|
-
export type EspSenderExclusion = {
|
|
88
|
-
domain: string;
|
|
89
|
-
from_recipients?: EspRouteBucket[];
|
|
90
|
-
};
|
|
91
|
-
export type EspRoutingPolicy = {
|
|
92
|
-
mode?: EspMatchingMode;
|
|
93
|
-
routes?: Partial<Record<EspRouteBucket, EspRouteWeights>>;
|
|
94
|
-
exclude?: EspSenderExclusion[];
|
|
95
|
-
};
|
|
96
|
-
/** settings.esp_matching accepts either the legacy scalar or the routing policy. */
|
|
97
|
-
export type EspMatchingSetting = EspMatchingMode | EspRoutingPolicy;
|
|
98
|
-
/**
|
|
99
|
-
* A policy with every field present, which is what the dispatcher and the launch
|
|
100
|
-
* preview consume. Produced only by espPolicyFromSetting so both surfaces answer
|
|
101
|
-
* identically from the same stored value.
|
|
102
|
-
*/
|
|
103
|
-
export type ResolvedEspPolicy = {
|
|
104
|
-
mode: EspMatchingMode;
|
|
105
|
-
routes: Partial<Record<EspRouteBucket, EspRouteWeights>>;
|
|
106
|
-
exclude: Array<{
|
|
107
|
-
domain: string;
|
|
108
|
-
buckets: readonly EspRouteBucket[];
|
|
109
|
-
}>;
|
|
110
|
-
};
|
|
111
|
-
/** Cap on settings.esp_matching.exclude — a routing policy, not a suppression list. */
|
|
112
|
-
export declare const MAX_ESP_SENDER_EXCLUSIONS = 50;
|
|
113
|
-
/** Upper bound on a single route weight; relative shares never need more. */
|
|
114
|
-
export declare const MAX_ESP_ROUTE_WEIGHT = 1000000;
|
|
115
15
|
export declare function isEspRouteBucket(value: unknown): value is EspRouteBucket;
|
|
116
16
|
/**
|
|
117
17
|
* A sending domain as the mailbox table stores it: lowercase, no leading "@".
|
|
@@ -161,22 +61,6 @@ export declare function espRouteCandidates(input: {
|
|
|
161
61
|
* prefer-fallback — see the exclude contract above.
|
|
162
62
|
*/
|
|
163
63
|
export declare function espExcludedSenderDomains(policy: ResolvedEspPolicy, bucket: EspRouteBucket): string[];
|
|
164
|
-
/**
|
|
165
|
-
* The DISPLAY taxonomy: the mail-infrastructure family a recipient domain sits
|
|
166
|
-
* on. Wider than RecipientEsp because "everything that isn't Google or Microsoft"
|
|
167
|
-
* is not one thing — a list that is 23% Proofpoint is a very different
|
|
168
|
-
* deliverability problem from one that is 23% self-hosted, and collapsing both to
|
|
169
|
-
* null (today's behavior) hides that. Split into three groups:
|
|
170
|
-
*
|
|
171
|
-
* - MAILBOX providers (google, microsoft) — imply a matchable ESP.
|
|
172
|
-
* - GATEWAY vendors (proofpoint, mimecast, ...) — security filters that sit IN
|
|
173
|
-
* FRONT of a mailbox provider. Their MX tells you the filter, NOT where the
|
|
174
|
-
* mailbox lives; the SPF fallback is what sees behind them.
|
|
175
|
-
* - OTHER mailbox hosts (zoho, yahoo, fastmail, ...) and self_hosted — real
|
|
176
|
-
* destinations we simply cannot send as, so never matchable.
|
|
177
|
-
*/
|
|
178
|
-
export declare const RECIPIENT_ESP_FAMILIES: readonly ["google", "microsoft", "proofpoint", "mimecast", "barracuda", "cisco", "zscaler", "trendmicro", "sophos", "zoho", "yahoo", "apple", "proton", "fastmail", "gmx", "amazon", "self_hosted"];
|
|
179
|
-
export type RecipientEspFamily = (typeof RECIPIENT_ESP_FAMILIES)[number];
|
|
180
64
|
export declare function isRecipientEspFamily(value: unknown): value is RecipientEspFamily;
|
|
181
65
|
export declare function isEspGatewayFamily(family: RecipientEspFamily | null | undefined): boolean;
|
|
182
66
|
/**
|