@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,23 +1,7 @@
|
|
|
1
1
|
import { OxygenError } from "../cli-result.js";
|
|
2
2
|
import { hashVariantKey } from "../sequence-template.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Deliverability lore: a send lands better when the SENDING mailbox and the
|
|
6
|
-
* RECIPIENT sit on the same provider (Google→Google, Microsoft→Microsoft), so at
|
|
7
|
-
* mailbox-pick the dispatcher can bias rotation toward a same-ESP mailbox.
|
|
8
|
-
* - "off" — no ESP bias; rotation is pure LRU / domain-spread.
|
|
9
|
-
* - "prefer" — (DEFAULT) pick a same-ESP mailbox when one is available, else
|
|
10
|
-
* fall back to any sendable mailbox (never blocks a send). On by default
|
|
11
|
-
* because it only ever improves deliverability and cannot starve sends.
|
|
12
|
-
* - "strict" — require a same-ESP mailbox; when none is available the action is
|
|
13
|
-
* DEFERRED with a visible skipped_reason rather than sent cross-provider.
|
|
14
|
-
* Power-user setting, reachable via CLI/MCP; the web "Provider Matching"
|
|
15
|
-
* checkbox toggles off↔prefer only.
|
|
16
|
-
*/
|
|
17
|
-
export const ESP_MATCHING_MODES = ["off", "prefer", "strict"];
|
|
18
|
-
// Provider Matching is ON by default (prefer): a same-provider send lands better,
|
|
19
|
-
// and prefer never blocks — an absent setting biases mailbox pick without risk.
|
|
20
|
-
export const DEFAULT_ESP_MATCHING_MODE = "prefer";
|
|
3
|
+
import { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, } from "../esp-contract.js";
|
|
4
|
+
export { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, RECIPIENT_ESP_FAMILIES, } from "../esp-contract.js";
|
|
21
5
|
export function isEspMatchingMode(value) {
|
|
22
6
|
return typeof value === "string" && ESP_MATCHING_MODES.includes(value);
|
|
23
7
|
}
|
|
@@ -118,62 +102,6 @@ function validateEspRoutingPolicy(record) {
|
|
|
118
102
|
});
|
|
119
103
|
}
|
|
120
104
|
}
|
|
121
|
-
/**
|
|
122
|
-
* The MATCHABLE email-provider a recipient routes through — the narrow set ESP
|
|
123
|
-
* matching can act on. Kept intentionally aligned with EMAIL_MAILBOX_PROVIDERS in
|
|
124
|
-
* tenant-db so a mailbox's `provider` and a resolved recipient ESP compare
|
|
125
|
-
* directly: we can only bias rotation toward a provider we can actually SEND
|
|
126
|
-
* from, and the pool is Google/Microsoft only.
|
|
127
|
-
*
|
|
128
|
-
* This is deliberately NARROWER than RECIPIENT_ESP_FAMILIES (what we DISPLAY).
|
|
129
|
-
* A domain behind Proofpoint has family "proofpoint" but may still be matchable
|
|
130
|
-
* as "microsoft" — see resolveEspFamily.
|
|
131
|
-
*/
|
|
132
|
-
export const RECIPIENT_ESPS = ["google", "microsoft"];
|
|
133
|
-
/**
|
|
134
|
-
* WEIGHTED SENDER ROUTING — the object form of settings.esp_matching.
|
|
135
|
-
*
|
|
136
|
-
* The three scalar modes above answer one question ("bias toward the recipient's
|
|
137
|
-
* own provider, yes or no"), and they bake in the assumption that same-provider
|
|
138
|
-
* is always better. That assumption fails whenever one provider's senders are in
|
|
139
|
-
* bad standing: a workspace whose Google-hosted domains are refused by Gmail
|
|
140
|
-
* wants its Google-hosted RECIPIENTS served from Microsoft senders, which no
|
|
141
|
-
* scalar mode can express. "off" does not express it either, because free
|
|
142
|
-
* rotation still hands Google recipients a Google sender in proportion to the
|
|
143
|
-
* pool.
|
|
144
|
-
*
|
|
145
|
-
* So the object form states the routing directly, as SEND SHARES per recipient
|
|
146
|
-
* provider:
|
|
147
|
-
*
|
|
148
|
-
* { mode: "prefer",
|
|
149
|
-
* routes: { google: { microsoft: 100 }, microsoft: { microsoft: 100 } },
|
|
150
|
-
* exclude: [{ domain: "burned.example", from_recipients: ["google"] }] }
|
|
151
|
-
*
|
|
152
|
-
* `routes` is keyed by the RECIPIENT's resolved provider; the inner map is the
|
|
153
|
-
* SENDER provider. Weights are relative shares, so { google: 3, microsoft: 1 }
|
|
154
|
-
* and { google: 75, microsoft: 25 } are the same policy and nothing has to sum
|
|
155
|
-
* to 100. An omitted weight is zero. A bucket whose entry is explicitly present
|
|
156
|
-
* but carries no positive weight means "no opinion, rotate freely for this
|
|
157
|
-
* recipient class"; a bucket the operator never mentioned keeps the historical
|
|
158
|
-
* same-provider default, so editing Google routing cannot silently change how
|
|
159
|
-
* Microsoft recipients are served.
|
|
160
|
-
*
|
|
161
|
-
* `exclude` is a hard never, not a preference: a sender domain listed here is
|
|
162
|
-
* removed from the candidate pool for the named recipient buckets (all buckets
|
|
163
|
-
* when `from_recipients` is absent) in EVERY mode, including "off", and it
|
|
164
|
-
* survives the prefer-fallback. A deliverability guard that a matching toggle
|
|
165
|
-
* could disarm would not be a guard.
|
|
166
|
-
*
|
|
167
|
-
* The scalar modes remain valid values and are read as policies, so there is one
|
|
168
|
-
* routing code path rather than two: "prefer" becomes { mode: "prefer" } with no
|
|
169
|
-
* routes, which resolves to the same-provider default and behaves exactly as it
|
|
170
|
-
* did before.
|
|
171
|
-
*/
|
|
172
|
-
export const ESP_ROUTE_BUCKETS = ["google", "microsoft", "unknown"];
|
|
173
|
-
/** Cap on settings.esp_matching.exclude — a routing policy, not a suppression list. */
|
|
174
|
-
export const MAX_ESP_SENDER_EXCLUSIONS = 50;
|
|
175
|
-
/** Upper bound on a single route weight; relative shares never need more. */
|
|
176
|
-
export const MAX_ESP_ROUTE_WEIGHT = 1_000_000;
|
|
177
105
|
export function isEspRouteBucket(value) {
|
|
178
106
|
return typeof value === "string" && ESP_ROUTE_BUCKETS.includes(value);
|
|
179
107
|
}
|
|
@@ -323,39 +251,6 @@ export function espExcludedSenderDomains(policy, bucket) {
|
|
|
323
251
|
}
|
|
324
252
|
return [...domains];
|
|
325
253
|
}
|
|
326
|
-
/**
|
|
327
|
-
* The DISPLAY taxonomy: the mail-infrastructure family a recipient domain sits
|
|
328
|
-
* on. Wider than RecipientEsp because "everything that isn't Google or Microsoft"
|
|
329
|
-
* is not one thing — a list that is 23% Proofpoint is a very different
|
|
330
|
-
* deliverability problem from one that is 23% self-hosted, and collapsing both to
|
|
331
|
-
* null (today's behavior) hides that. Split into three groups:
|
|
332
|
-
*
|
|
333
|
-
* - MAILBOX providers (google, microsoft) — imply a matchable ESP.
|
|
334
|
-
* - GATEWAY vendors (proofpoint, mimecast, ...) — security filters that sit IN
|
|
335
|
-
* FRONT of a mailbox provider. Their MX tells you the filter, NOT where the
|
|
336
|
-
* mailbox lives; the SPF fallback is what sees behind them.
|
|
337
|
-
* - OTHER mailbox hosts (zoho, yahoo, fastmail, ...) and self_hosted — real
|
|
338
|
-
* destinations we simply cannot send as, so never matchable.
|
|
339
|
-
*/
|
|
340
|
-
export const RECIPIENT_ESP_FAMILIES = [
|
|
341
|
-
"google",
|
|
342
|
-
"microsoft",
|
|
343
|
-
"proofpoint",
|
|
344
|
-
"mimecast",
|
|
345
|
-
"barracuda",
|
|
346
|
-
"cisco",
|
|
347
|
-
"zscaler",
|
|
348
|
-
"trendmicro",
|
|
349
|
-
"sophos",
|
|
350
|
-
"zoho",
|
|
351
|
-
"yahoo",
|
|
352
|
-
"apple",
|
|
353
|
-
"proton",
|
|
354
|
-
"fastmail",
|
|
355
|
-
"gmx",
|
|
356
|
-
"amazon",
|
|
357
|
-
"self_hosted",
|
|
358
|
-
];
|
|
359
254
|
export function isRecipientEspFamily(value) {
|
|
360
255
|
return typeof value === "string" && RECIPIENT_ESP_FAMILIES.includes(value);
|
|
361
256
|
}
|
|
@@ -91,7 +91,6 @@ export declare const SEQUENCE_EMAIL_COLUMN_KEYS: readonly ["email", "email_addre
|
|
|
91
91
|
export declare function recipientEmailFromRow(rowValues: Record<string, unknown> | null | undefined, emailColumnKey?: string | null): string | null;
|
|
92
92
|
/** The `{{key}}` columns one template reads (the copy-provenance stamp keys its entries by them). */
|
|
93
93
|
export { templateColumnKeys };
|
|
94
|
-
export { ESP_MATCHING_MODES, type EspMatchingMode, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, 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, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, type RecipientEspFamily, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
|
|
95
94
|
/**
|
|
96
95
|
* row_values keys an enrollment's phone number may live under, in
|
|
97
96
|
* send-precedence order, for WhatsApp sends. The enroll path resolves the FIRST
|
|
@@ -158,8 +158,6 @@ export function recipientEmailFromRow(rowValues, emailColumnKey) {
|
|
|
158
158
|
}
|
|
159
159
|
/** The `{{key}}` columns one template reads (the copy-provenance stamp keys its entries by them). */
|
|
160
160
|
export { templateColumnKeys };
|
|
161
|
-
// Existing Sequence imports retain the same ESP contract and function identities.
|
|
162
|
-
export { ESP_MATCHING_MODES, DEFAULT_ESP_MATCHING_MODE, isEspMatchingMode, validateEspMatchingSetting, RECIPIENT_ESPS, ESP_ROUTE_BUCKETS, MAX_ESP_SENDER_EXCLUSIONS, MAX_ESP_ROUTE_WEIGHT, isEspRouteBucket, normalizeEspSenderDomain, espPolicyFromSetting, espRouteWeightsFor, espRouteCandidates, espExcludedSenderDomains, RECIPIENT_ESP_FAMILIES, isRecipientEspFamily, isEspGatewayFamily, matchableEspFromFamily, familyFromMxHosts, espFromSpfRecords, inferRecipientEspFamily, inferRecipientEsp, espFromMxHosts, } from "./sequence-internals/esp-policy.js";
|
|
163
161
|
/**
|
|
164
162
|
* row_values keys an enrollment's phone number may live under, in
|
|
165
163
|
* send-precedence order, for WhatsApp sends. The enroll path resolves the FIRST
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CapabilityRouteMatch } from "
|
|
1
|
+
import type { CapabilityRouteMatch } from "../capability-discovery.js";
|
|
2
2
|
export declare function nativeChatEnabled(env?: NodeJS.ProcessEnv): boolean;
|
|
3
3
|
export declare function isNativeChatTool(name: string): boolean;
|
|
4
4
|
/** The compiled support card includes the dev surface; hosted discovery projects it away when closed. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { looksLikeUrlIdentifier, normalizeLinkedinProfileUrl } from "./linkedin-url.js";
|
|
1
|
+
import { looksLikeUrlIdentifier, normalizeLinkedinProfileUrl } from "./tables/linkedin-url.js";
|
|
2
2
|
/**
|
|
3
3
|
* A LinkedIn member id as Unipile surfaces it (e.g. "ACoAADXaTD4B…"): the "AC"
|
|
4
4
|
* prefix plus base64url payload. Anchored and length-bounded so a short word that
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SelectOption } from "./select-options.js";
|
|
1
|
+
import { type SelectOption } from "./tables/select-options.js";
|
|
2
2
|
export declare const TABLE_FIELD_TYPES: readonly ["text", "number", "checkbox", "date", "json", "markdown", "image", "select", "multi_select", "status"];
|
|
3
3
|
export type TableFieldType = (typeof TABLE_FIELD_TYPES)[number];
|
|
4
4
|
export type TableFieldDataType = "text" | "numeric" | "boolean" | "timestamptz" | "jsonb";
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
// thing a person or an agent actually asks for.
|
|
15
15
|
//
|
|
16
16
|
// CLIENT-SAFE LEAF: the web picker imports it; keep runtime imports to
|
|
17
|
-
// ./select-options.
|
|
18
|
-
import { normalizeSelectOptions } from "./select-options.js";
|
|
17
|
+
// ./tables/select-options.
|
|
18
|
+
import { normalizeSelectOptions } from "./tables/select-options.js";
|
|
19
19
|
export const TABLE_FIELD_TYPES = [
|
|
20
20
|
"text",
|
|
21
21
|
"number",
|
|
@@ -7,7 +7,7 @@ const SUMMARY_FIELDS = new Set([
|
|
|
7
7
|
"deferred_count", "retrying_count", "credit_limit_skipped", "throughput", "bottlenecks",
|
|
8
8
|
"provider_errors", "provider_health", "provider_timeout_breaker", "classification_review",
|
|
9
9
|
"worker_health", "queue_backend", "execution_backend", "max_concurrency_requested",
|
|
10
|
-
"max_concurrency_effective", "enrichment_rollup", "idempotent_replay",
|
|
10
|
+
"max_concurrency_effective", "enrichment_rollup", "idempotent_replay", "item_history", "resume",
|
|
11
11
|
]);
|
|
12
12
|
/** Project the already-authorized, customer-safe native run; no provider or retry effects. */
|
|
13
13
|
export function tableRunSummary(run) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PlanBand } from "
|
|
2
|
-
import { type RepricingOptions } from "
|
|
1
|
+
import type { PlanBand } from "../plan-band.js";
|
|
2
|
+
import { type RepricingOptions } from "../repricing.js";
|
|
3
3
|
/** Row capacity warnings start at 80% of the limit currently enforced. */
|
|
4
4
|
export declare const TABLE_ROW_CAPACITY_WARNING_RATIO = 0.8;
|
|
5
5
|
export type TableRowCapacityFlags = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { findRepricedValue, readRepricingSwitch, repricedValue, } from "
|
|
1
|
+
import { findRepricedValue, readRepricingSwitch, repricedValue, } from "../repricing.js";
|
|
2
2
|
const GIB = 1024 ** 3;
|
|
3
3
|
/** Row capacity warnings start at 80% of the limit currently enforced. */
|
|
4
4
|
export const TABLE_ROW_CAPACITY_WARNING_RATIO = 0.8;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* Pure and client-safe: the tenant-db normalizer, the runner, the web editor,
|
|
22
22
|
* the CLI and the MCP server all read the same shape from here.
|
|
23
23
|
*/
|
|
24
|
-
import { isRecord } from "
|
|
24
|
+
import { isRecord } from "../type-guards.js";
|
|
25
25
|
export const COLUMN_DECISION_ENGINE = "system_one";
|
|
26
26
|
export const COLUMN_DECISION_MODES = ["labels", "yes_no", "score"];
|
|
27
27
|
export const COLUMN_DECISION_GROUNDINGS = ["workspace", "none"];
|
package/node_modules/@oxygen/shared/dist/{column-output-fields.js → tables/column-output-fields.js}
RENAMED
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
* may contain a dot or a space. Such a field carries `referenceable: false` and
|
|
27
27
|
* is display-only.
|
|
28
28
|
*/
|
|
29
|
-
import { buildResearchCellSchema, isResearchEnvelopeSchema, researchEvidenceRequired, deriveResearchOutputContract, usesServerManagedResearchSchema, } from "
|
|
30
|
-
import { isTemplateSafePath, parseJsonPath, readJsonPath } from "
|
|
31
|
-
import { isRecord } from "
|
|
32
|
-
import { readString } from "
|
|
29
|
+
import { buildResearchCellSchema, isResearchEnvelopeSchema, researchEvidenceRequired, deriveResearchOutputContract, usesServerManagedResearchSchema, } from "../research-output-contract.js";
|
|
30
|
+
import { isTemplateSafePath, parseJsonPath, readJsonPath } from "../json-path.js";
|
|
31
|
+
import { isRecord } from "../type-guards.js";
|
|
32
|
+
import { readString } from "../value-readers.js";
|
|
33
33
|
const MAX_FIELDS = 40;
|
|
34
34
|
const MAX_SCHEMA_DEPTH = 5;
|
|
35
35
|
const EMPTY_CONTRACT = {
|
package/node_modules/@oxygen/shared/dist/{enrichment-intents.d.ts → tables/enrichment-intents.d.ts}
RENAMED
|
@@ -15,7 +15,7 @@ export type EnrichmentIntentOutputField = {
|
|
|
15
15
|
/**
|
|
16
16
|
* The column the row's printed CLI/MCP add path creates and a run writes
|
|
17
17
|
* (the web picker names a column after the label typed in its editor).
|
|
18
|
-
* apps/web/src/lib/enrichment-catalogue-add-paths.test.ts builds each add
|
|
18
|
+
* apps/web/src/lib/tables/enrichment-catalogue-add-paths.test.ts builds each add
|
|
19
19
|
* path and fails on a key it does not write.
|
|
20
20
|
*/
|
|
21
21
|
key: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { extname } from "node:path";
|
|
2
2
|
import readXlsxFile from "read-excel-file/node";
|
|
3
3
|
import { inferImportColumnDataType, parseDateValueToIso, } from "./column-types.js";
|
|
4
|
-
import { OxygenError } from "
|
|
5
|
-
import { makeUniqueIdentifier, toSnakeIdentifier } from "
|
|
4
|
+
import { OxygenError } from "../cli-result.js";
|
|
5
|
+
import { makeUniqueIdentifier, toSnakeIdentifier } from "../identifiers.js";
|
|
6
6
|
import { MAX_BUFFERED_IMPORT_PARSE_BYTES, bufferedImportTooLargeMessage, isBufferedOnlyImportFormat, } from "./import-limits.js";
|
|
7
7
|
export { IMPORT_OBJECT_SINGLE_PUT_MAX_BYTES, MAX_BUFFERED_IMPORT_PARSE_BYTES, MAX_URL_IMPORT_BYTES, bufferedImportTooLargeMessage, isBufferedOnlyImportFormat, } from "./import-limits.js";
|
|
8
8
|
export function inferRowsFileFormat(path) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TagColor } from "
|
|
1
|
+
import type { TagColor } from "../tables/select-options.js";
|
|
2
2
|
/** Primitive kinds that participate in the workspace tag union today. */
|
|
3
3
|
export declare const TAG_KINDS: readonly ["knowledge_page", "publishing_post", "sequence", "table", "workflow", "recipe", "conversation", "mailbox", "sender", "record", "domain", "project", "sender_profile", "voice_number", "signal_type", "dashboard", "agent", "ad_search_collection"];
|
|
4
4
|
export type TagKind = (typeof TAG_KINDS)[number];
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// `ox_context.workspace_tags`) OR CARRIED (some store's tags array holds it).
|
|
11
11
|
// The registry is an ANNOTATION table — description, color override, pinned —
|
|
12
12
|
// and never records which items carry a tag. Drift is legal in both directions.
|
|
13
|
-
import { casePreservingTagWritesReady } from "
|
|
13
|
+
import { casePreservingTagWritesReady } from "../write-rollout.js";
|
|
14
14
|
/** Primitive kinds that participate in the workspace tag union today. */
|
|
15
15
|
export const TAG_KINDS = [
|
|
16
16
|
"knowledge_page",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { agentsEnabled, agentsEnabledIn } from "./agents-enabled.js";
|
|
2
|
-
import { guidedActivationEnabled } from "./guided-activation.js";
|
|
2
|
+
import { guidedActivationEnabled } from "./onboarding/guided-activation.js";
|
|
3
3
|
import { isStaffEmail } from "./staff.js";
|
|
4
4
|
export function teammatesAudience(env = process.env) {
|
|
5
5
|
if (env.OXYGEN_DEPLOY_ENV !== "selfhost-dev" && env.OXYGEN_DEPLOY_ENV !== "selfhost-prod")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { linkedinPostIdFromUrl, looksLikeUrlIdentifier } from "
|
|
1
|
+
import { linkedinPostIdFromUrl, looksLikeUrlIdentifier } from "../tables/linkedin-url.js";
|
|
2
2
|
/** Provider aliases for the same public post must share one deduplication key. */
|
|
3
3
|
export function normalizeLinkedInAmplificationTargetId(value) {
|
|
4
4
|
const raw = value.trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OXYGEN_BUILD_VERSION = "1.1014.
|
|
1
|
+
export declare const OXYGEN_BUILD_VERSION = "1.1014.2100";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// GENERATED by scripts/ci/version-stamp.mjs from VERSION + git history. Do not edit; do not commit.
|
|
2
|
-
export const OXYGEN_BUILD_VERSION = "1.1014.
|
|
2
|
+
export const OXYGEN_BUILD_VERSION = "1.1014.2100";
|
|
@@ -49,7 +49,7 @@ export const OXYGEN_VERSION = OXYGEN_BUILD_VERSION;
|
|
|
49
49
|
// Since 2026-09-28 the release-preparation step advances this literal to the
|
|
50
50
|
// highest CLI version published on npm for at least 30 days. It never lowers
|
|
51
51
|
// the floor. The source change lands on dev before the next production release.
|
|
52
|
-
export const OXYGEN_MINIMUM_CLI_VERSION = "1.
|
|
52
|
+
export const OXYGEN_MINIMUM_CLI_VERSION = "1.1010.721";
|
|
53
53
|
// The internal GEO export first gains required pagination in this dev version.
|
|
54
54
|
// Earlier pilot clients would save a partial file without its continuation.
|
|
55
55
|
export const GEO_EXPORT_MINIMUM_CLI_VERSION = "1.1013.0";
|
|
@@ -3,7 +3,7 @@ import { CRM_SIGNAL_WORKFLOW_EVENT_DEFINITIONS, CRM_WORKFLOW_EVENT_SOURCE, } fro
|
|
|
3
3
|
import { SEQUENCE_CONTACT_ACTIVITY_EVENT, SEQUENCE_CRM_EVENT_DEFINITIONS, SEQUENCE_WORKFLOW_EVENT_SOURCE, } from "./sequence-crm-events.js";
|
|
4
4
|
import { SEQUENCE_ENROLLMENT_TERMINAL_EVENT, SEQUENCE_TERMINAL_EVENT_SOURCE, SEQUENCE_TERMINAL_STATUSES, } from "./sequence-terminal-events.js";
|
|
5
5
|
import { NOTETAKER_MEETING_COMPLETED_EVENT, NOTETAKER_MEETING_COMPLETED_PAYLOAD_FIELDS, NOTETAKER_WORKFLOW_EVENT_SOURCE, } from "./notetaker-events.js";
|
|
6
|
-
import { BLACKLIST_LISTING_CHANGED_EVENT, BLACKLIST_LISTING_CHANGED_PAYLOAD_FIELDS, DELIVERABILITY_WORKFLOW_EVENT_SOURCE, } from "./deliverability-blacklist.js";
|
|
6
|
+
import { BLACKLIST_LISTING_CHANGED_EVENT, BLACKLIST_LISTING_CHANGED_PAYLOAD_FIELDS, DELIVERABILITY_WORKFLOW_EVENT_SOURCE, } from "./mailboxes/deliverability-blacklist.js";
|
|
7
7
|
import { networkMiningEnabled } from "./network-mining.js";
|
|
8
8
|
import { NETWORK_MINING_SIGNAL_EVENT_DEFINITIONS } from "./network-mining-signals.js";
|
|
9
9
|
import { RESEARCH_FINDING_EVENT_DEFINITION } from "./research-findings.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { placementProviderDirections, placementScheduleSummary, type WorkspacePlacementSchedule } from "./workspace-placement-schedule.js";
|
|
1
2
|
import { type WorkspacePlacementMailbox, type WorkspacePlacementPlan, type WorkspacePlacementVariant } from "./workspace-placement.js";
|
|
2
3
|
import { type WorkspacePlacementView } from "./workspace-placement-view.js";
|
|
3
4
|
export declare const MAX_BULK_PLACEMENT_MESSAGES = 20000;
|
|
@@ -11,6 +12,9 @@ export type BulkPlacementCoverage = Record<"google" | "microsoft", {
|
|
|
11
12
|
planned: number;
|
|
12
13
|
}>;
|
|
13
14
|
export type WorkspacePlacementBulkPlan = {
|
|
15
|
+
provider_directions?: ReturnType<typeof placementProviderDirections>;
|
|
16
|
+
schedule_summary?: ReturnType<typeof placementScheduleSummary>;
|
|
17
|
+
scheduling?: WorkspacePlacementSchedule;
|
|
14
18
|
request_id: string;
|
|
15
19
|
organization_id: string;
|
|
16
20
|
plan_hash: string;
|
|
@@ -40,6 +44,7 @@ export type WorkspacePlacementBulkPreview = Omit<WorkspacePlacementBulkPlan, "or
|
|
|
40
44
|
receiver_provider: "google" | "microsoft";
|
|
41
45
|
variant: string;
|
|
42
46
|
subject: string;
|
|
47
|
+
scheduled_at?: string;
|
|
43
48
|
body_text_characters: number;
|
|
44
49
|
body_html_characters: number;
|
|
45
50
|
}>;
|
|
@@ -60,6 +65,7 @@ export declare function bulkPlacementId(value: string): string;
|
|
|
60
65
|
export declare function readBulkPlacementProviders(value: unknown): Array<"google" | "microsoft">;
|
|
61
66
|
/** Own-account rotation, never a sender × receiver Cartesian product. */
|
|
62
67
|
export declare function buildWorkspacePlacementBulkPlan(input: {
|
|
68
|
+
schedule?: boolean;
|
|
63
69
|
requestId: string;
|
|
64
70
|
organizationId: string;
|
|
65
71
|
renderedAt: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WORKSPACE_PLACEMENT_SCHEDULE, planPlacementSlots, placementProviderDirections, placementScheduleSummary } from "./workspace-placement-schedule.js";
|
|
1
2
|
import { createHash } from "node:crypto";
|
|
2
3
|
import { CliHttpError } from "./cli-http-error.js";
|
|
3
4
|
import { readWorkspacePlacementVariants, workspacePlacementId } from "./workspace-placement.js";
|
|
@@ -51,12 +52,18 @@ export function buildWorkspacePlacementBulkPlan(input) {
|
|
|
51
52
|
probes.push({ id, sender, receiver, variant });
|
|
52
53
|
coverage[provider].planned++;
|
|
53
54
|
}
|
|
55
|
+
if (input.schedule) {
|
|
56
|
+
const slots = new Map(planPlacementSlots(probes, new Date(input.renderedAt)).map(s => [s.id, s]));
|
|
57
|
+
for (const p of probes)
|
|
58
|
+
p.scheduled_at = slots.get(p.id).scheduled_at;
|
|
59
|
+
}
|
|
60
|
+
const scheduling = input.schedule ? { scheduling: WORKSPACE_PLACEMENT_SCHEDULE } : {};
|
|
54
61
|
const children = [];
|
|
55
62
|
for (let offset = 0; offset < probes.length; offset += 50) {
|
|
56
|
-
const child = { request_id: bulkPlacementId(`${organizationId}:${requestId}:child:${offset / 50}`), organization_id: organizationId, provider: "internal", billing_mode: "internal", credits: 0, allow_paused_probe: input.allowPausedProbe, receiver_scope: "workspace", rendered_at: input.renderedAt, rendering: input.rendering, probes: probes.slice(offset, offset + 50), excluded_self_sends: 0, message_count: Math.min(50, probes.length - offset) };
|
|
63
|
+
const child = { ...scheduling, request_id: bulkPlacementId(`${organizationId}:${requestId}:child:${offset / 50}`), organization_id: organizationId, provider: "internal", billing_mode: "internal", credits: 0, allow_paused_probe: input.allowPausedProbe, receiver_scope: "workspace", rendered_at: input.renderedAt, rendering: input.rendering, probes: probes.slice(offset, offset + 50), excluded_self_sends: 0, message_count: Math.min(50, probes.length - offset) };
|
|
57
64
|
children.push({ ...child, plan_hash: createHash("sha256").update(JSON.stringify(child)).digest("hex") });
|
|
58
65
|
}
|
|
59
|
-
const plan = { request_id: requestId, organization_id: organizationId, rendered_at: input.renderedAt, message_count: count, child_count: children.length, sender_count: senders.length, receiver_providers: providers, skipped_senders: [...(input.skippedSenders ?? [])].sort((a, b) => a.id.localeCompare(b.id)), coverage, children };
|
|
66
|
+
const plan = { ...scheduling, ...(input.schedule ? { provider_directions: placementProviderDirections(probes), schedule_summary: placementScheduleSummary(probes.map(p => ({ scheduled_at: p.scheduled_at }))) } : {}), request_id: requestId, organization_id: organizationId, rendered_at: input.renderedAt, message_count: count, child_count: children.length, sender_count: senders.length, receiver_providers: providers, skipped_senders: [...(input.skippedSenders ?? [])].sort((a, b) => a.id.localeCompare(b.id)), coverage, children };
|
|
60
67
|
return { ...plan, plan_hash: createHash("sha256").update(JSON.stringify(plan)).digest("hex") };
|
|
61
68
|
}
|
|
62
69
|
export function bulkPlacementSkippedPage(plan, cursor) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** Native workspace diagnostics have their own allowance; campaign caps are unchanged. */
|
|
2
|
+
export declare const WORKSPACE_PLACEMENT_SCHEDULE: {
|
|
3
|
+
readonly version: 1;
|
|
4
|
+
readonly daily_send_limit: 3;
|
|
5
|
+
readonly window_minutes: 30;
|
|
6
|
+
};
|
|
7
|
+
export type WorkspacePlacementSchedule = typeof WORKSPACE_PLACEMENT_SCHEDULE;
|
|
8
|
+
export type PlacementSlot = {
|
|
9
|
+
id: string;
|
|
10
|
+
mailbox_id: string;
|
|
11
|
+
scheduled_at: string;
|
|
12
|
+
spacing_ms: number;
|
|
13
|
+
};
|
|
14
|
+
export declare function placementUtcDay(at: number): number;
|
|
15
|
+
/** Deterministic estimate, also used under mailbox locks to reserve the actual schedule. */
|
|
16
|
+
export declare function planPlacementSlots(probes: Array<{
|
|
17
|
+
id: string;
|
|
18
|
+
sender: {
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
}>, start: Date, occupied?: Array<{
|
|
22
|
+
mailbox_id: string;
|
|
23
|
+
at: string;
|
|
24
|
+
}>): PlacementSlot[];
|
|
25
|
+
export declare function placementScheduleSummary(slots: Array<{
|
|
26
|
+
scheduled_at: string;
|
|
27
|
+
}>): {
|
|
28
|
+
first_send_at: string | null;
|
|
29
|
+
estimated_last_send_at: string | null;
|
|
30
|
+
daily_batches: number;
|
|
31
|
+
};
|
|
32
|
+
export declare function placementProviderDirections(probes: Array<{
|
|
33
|
+
sender: {
|
|
34
|
+
provider: string;
|
|
35
|
+
};
|
|
36
|
+
receiver: {
|
|
37
|
+
provider: string;
|
|
38
|
+
};
|
|
39
|
+
}>): {
|
|
40
|
+
google_to_google: number;
|
|
41
|
+
google_to_microsoft: number;
|
|
42
|
+
microsoft_to_google: number;
|
|
43
|
+
microsoft_to_microsoft: number;
|
|
44
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/** Native workspace diagnostics have their own allowance; campaign caps are unchanged. */
|
|
2
|
+
export const WORKSPACE_PLACEMENT_SCHEDULE = {
|
|
3
|
+
version: 1,
|
|
4
|
+
daily_send_limit: 3,
|
|
5
|
+
window_minutes: 30,
|
|
6
|
+
};
|
|
7
|
+
const DAY = 86_400_000;
|
|
8
|
+
const WINDOW = WORKSPACE_PLACEMENT_SCHEDULE.window_minutes * 60_000;
|
|
9
|
+
export function placementUtcDay(at) {
|
|
10
|
+
return Math.floor(at / DAY) * DAY;
|
|
11
|
+
}
|
|
12
|
+
/** Deterministic estimate, also used under mailbox locks to reserve the actual schedule. */
|
|
13
|
+
export function planPlacementSlots(probes, start, occupied = []) {
|
|
14
|
+
const groups = new Map();
|
|
15
|
+
for (const p of probes)
|
|
16
|
+
groups.set(p.sender.id, [...(groups.get(p.sender.id) ?? []), p.id]);
|
|
17
|
+
const result = [];
|
|
18
|
+
for (const [mailboxId, ids] of groups) {
|
|
19
|
+
const prior = occupied
|
|
20
|
+
.filter((s) => s.mailbox_id === mailboxId)
|
|
21
|
+
.map((s) => Date.parse(s.at));
|
|
22
|
+
let cursor = start.getTime();
|
|
23
|
+
while (ids.length) {
|
|
24
|
+
const day = placementUtcDay(cursor);
|
|
25
|
+
const used = prior.filter((at) => placementUtcDay(at) === day);
|
|
26
|
+
const count = Math.min(3 - used.length, ids.length);
|
|
27
|
+
if (count <= 0) {
|
|
28
|
+
cursor = day + DAY;
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
const first = Math.max(cursor, ...used.map((at) => at + WINDOW / 2));
|
|
32
|
+
const end = first + (count > 1 ? WINDOW : 0);
|
|
33
|
+
if (end >= day + DAY) {
|
|
34
|
+
cursor = day + DAY;
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
for (let i = 0; i < count; i++) {
|
|
38
|
+
const at = first + (count > 1 ? (i * WINDOW) / (count - 1) : 0);
|
|
39
|
+
result.push({
|
|
40
|
+
id: ids.shift(),
|
|
41
|
+
mailbox_id: mailboxId,
|
|
42
|
+
scheduled_at: new Date(at).toISOString(),
|
|
43
|
+
spacing_ms: count > 1 ? WINDOW / (count - 1) : WINDOW / 2,
|
|
44
|
+
});
|
|
45
|
+
prior.push(at);
|
|
46
|
+
}
|
|
47
|
+
cursor = day + DAY;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// A final day may contain one probe per mailbox. Stagger those distinct
|
|
51
|
+
// senders too: a multi-mailbox batch still spans the thirty-minute window.
|
|
52
|
+
const days = new Map();
|
|
53
|
+
for (const slot of result) {
|
|
54
|
+
const day = slot.scheduled_at.slice(0, 10);
|
|
55
|
+
days.set(day, [...(days.get(day) ?? []), slot]);
|
|
56
|
+
}
|
|
57
|
+
for (const slots of days.values()) {
|
|
58
|
+
if (slots.length < 2 ||
|
|
59
|
+
new Set(slots.map((s) => s.mailbox_id)).size !== slots.length)
|
|
60
|
+
continue;
|
|
61
|
+
const first = Math.max(...slots.map((s) => Date.parse(s.scheduled_at)));
|
|
62
|
+
if (first + WINDOW >= placementUtcDay(first) + DAY)
|
|
63
|
+
continue;
|
|
64
|
+
for (const [index, slot] of slots.entries())
|
|
65
|
+
slot.scheduled_at = new Date(first + (index * WINDOW) / (slots.length - 1)).toISOString();
|
|
66
|
+
}
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
export function placementScheduleSummary(slots) {
|
|
70
|
+
const times = slots.map((s) => s.scheduled_at).sort();
|
|
71
|
+
return {
|
|
72
|
+
first_send_at: times[0] ?? null,
|
|
73
|
+
estimated_last_send_at: times.at(-1) ?? null,
|
|
74
|
+
daily_batches: new Set(times.map((at) => at.slice(0, 10))).size,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export function placementProviderDirections(probes) {
|
|
78
|
+
const counts = {
|
|
79
|
+
google_to_google: 0,
|
|
80
|
+
google_to_microsoft: 0,
|
|
81
|
+
microsoft_to_google: 0,
|
|
82
|
+
microsoft_to_microsoft: 0,
|
|
83
|
+
};
|
|
84
|
+
for (const p of probes) {
|
|
85
|
+
const key = `${p.sender.provider}_to_${p.receiver.provider}`;
|
|
86
|
+
if (key in counts)
|
|
87
|
+
counts[key]++;
|
|
88
|
+
}
|
|
89
|
+
return counts;
|
|
90
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { placementScheduleSummary, placementProviderDirections, type WorkspacePlacementSchedule } from "./workspace-placement-schedule.js";
|
|
1
2
|
import { type WorkspacePlacementPlan, type WorkspacePlacementObservation } from "./workspace-placement.js";
|
|
2
3
|
export type WorkspacePlacementView = {
|
|
4
|
+
provider_directions?: ReturnType<typeof placementProviderDirections>;
|
|
5
|
+
scheduling?: WorkspacePlacementSchedule;
|
|
6
|
+
schedule_summary?: ReturnType<typeof placementScheduleSummary>;
|
|
3
7
|
id: string;
|
|
4
8
|
provider: "internal";
|
|
5
9
|
billing_mode: "internal";
|
|
@@ -30,6 +34,8 @@ export type WorkspacePlacementView = {
|
|
|
30
34
|
probes: Array<{
|
|
31
35
|
id: string;
|
|
32
36
|
sender: string;
|
|
37
|
+
sender_provider?: string;
|
|
38
|
+
scheduled_at?: string;
|
|
33
39
|
receiver: string;
|
|
34
40
|
receiver_provider: string;
|
|
35
41
|
variant: string;
|
|
@@ -44,6 +50,7 @@ export type WorkspacePlacementView = {
|
|
|
44
50
|
status: string;
|
|
45
51
|
sent_at: string | null;
|
|
46
52
|
provider_message_id: string | null;
|
|
53
|
+
ready_at?: string;
|
|
47
54
|
};
|
|
48
55
|
observation?: WorkspacePlacementObservation;
|
|
49
56
|
}>;
|
|
@@ -66,6 +73,7 @@ export declare function workspacePlacementView(input: {
|
|
|
66
73
|
status: string;
|
|
67
74
|
sent_at: string | null;
|
|
68
75
|
provider_message_id: string | null;
|
|
76
|
+
ready_at?: string;
|
|
69
77
|
}>;
|
|
70
78
|
created_at: Date | string;
|
|
71
79
|
}, webUrl: string): WorkspacePlacementView;
|
|
@@ -86,6 +94,8 @@ export type WorkspacePlacementCopyPage = {
|
|
|
86
94
|
next_offset: number | null;
|
|
87
95
|
};
|
|
88
96
|
export declare function workspacePlacementProbeMeta(probe: WorkspacePlacementPlan["probes"][number]): {
|
|
97
|
+
scheduled_at?: string;
|
|
98
|
+
sender_provider: "google" | "microsoft";
|
|
89
99
|
id: string;
|
|
90
100
|
sender: string;
|
|
91
101
|
sender_name: string | null;
|
|
@@ -125,6 +135,7 @@ export declare function workspacePlacementPreviewPage(plan: WorkspacePlacementPl
|
|
|
125
135
|
allow_paused_probe: boolean;
|
|
126
136
|
receiver_scope?: "workspace" | "network" | "staff";
|
|
127
137
|
staff?: import("./workspace-placement.js").StaffPlacementGrant;
|
|
138
|
+
scheduling?: WorkspacePlacementSchedule;
|
|
128
139
|
rendered_at?: string;
|
|
129
140
|
rendering?: {
|
|
130
141
|
tracking_opens: boolean;
|
|
@@ -135,6 +146,8 @@ export declare function workspacePlacementPreviewPage(plan: WorkspacePlacementPl
|
|
|
135
146
|
message_count: number;
|
|
136
147
|
plan_hash: string;
|
|
137
148
|
probes: {
|
|
149
|
+
scheduled_at?: string;
|
|
150
|
+
sender_provider: "google" | "microsoft";
|
|
138
151
|
id: string;
|
|
139
152
|
sender: string;
|
|
140
153
|
sender_name: string | null;
|
|
@@ -148,4 +161,15 @@ export declare function workspacePlacementPreviewPage(plan: WorkspacePlacementPl
|
|
|
148
161
|
probe_count: number;
|
|
149
162
|
has_more: boolean;
|
|
150
163
|
next_cursor: string | null;
|
|
164
|
+
provider_directions?: {
|
|
165
|
+
google_to_google: number;
|
|
166
|
+
google_to_microsoft: number;
|
|
167
|
+
microsoft_to_google: number;
|
|
168
|
+
microsoft_to_microsoft: number;
|
|
169
|
+
};
|
|
170
|
+
schedule_summary?: {
|
|
171
|
+
first_send_at: string | null;
|
|
172
|
+
estimated_last_send_at: string | null;
|
|
173
|
+
daily_batches: number;
|
|
174
|
+
};
|
|
151
175
|
};
|