outbound-sdk 0.7.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alerts/index.js +3 -3
- package/dist/audit/index.js +1 -1
- package/dist/benchmarks/index.js +3 -3
- package/dist/budget/index.d.ts +7 -0
- package/dist/budget/index.js +3 -3
- package/dist/cache/index.js +2 -2
- package/dist/cards/index.js +17 -5
- package/dist/chunks/{chunk-6NSCPTOY.js → chunk-4BH5LRCS.js} +691 -441
- package/dist/chunks/{chunk-MW4C6LTN.js → chunk-5XLR6XVV.js} +2 -2
- package/dist/chunks/{chunk-HIAK2GCI.js → chunk-A7DLJUA6.js} +6 -1
- package/dist/chunks/{chunk-M2VXGLLZ.js → chunk-CPACP4YD.js} +1 -1
- package/dist/chunks/{chunk-4AVYRVN5.js → chunk-FTK4JS65.js} +31 -10
- package/dist/chunks/{chunk-YW6FFVSZ.js → chunk-HXB2IOJJ.js} +1 -1
- package/dist/chunks/{chunk-FHKSLCVW.js → chunk-KVAG5GM2.js} +19 -0
- package/dist/chunks/{chunk-65YAGEWZ.js → chunk-MEEJIIIA.js} +178 -39
- package/dist/chunks/{chunk-7I3EPR23.js → chunk-MPE6VLLY.js} +3 -3
- package/dist/chunks/{chunk-UFQ4WMLU.js → chunk-NFWWA7MI.js} +1 -1
- package/dist/chunks/{chunk-GL7BABF2.js → chunk-OMCDMELK.js} +1 -1
- package/dist/chunks/{chunk-JRL3QRBS.js → chunk-OVTYA3IB.js} +88 -28
- package/dist/chunks/{chunk-T5MJMW3R.js → chunk-QTWJ5FO7.js} +1 -1
- package/dist/chunks/chunk-REDFBY74.js +7285 -0
- package/dist/chunks/{chunk-OK3GAZMT.js → chunk-SYUMA3CP.js} +12 -0
- package/dist/chunks/{chunk-LVZGIKNF.js → chunk-U5AK6OJM.js} +1 -1
- package/dist/chunks/{chunk-KTYTE2BU.js → chunk-UAHYPASH.js} +20 -11
- package/dist/chunks/{chunk-BNDHEDHD.js → chunk-UOJG4VYF.js} +3 -3
- package/dist/chunks/{chunk-LD6F46UT.js → chunk-UWD65SK7.js} +2 -2
- package/dist/chunks/{chunk-I7DXXGNZ.js → chunk-UZLFZZ2U.js} +5 -5
- package/dist/chunks/{chunk-DNPNTD5W.js → chunk-VVDBCQLK.js} +1 -1
- package/dist/chunks/{chunk-IVH3NMQZ.js → chunk-WROJO6XB.js} +1 -1
- package/dist/chunks/{chunk-QFC4ZHD3.js → chunk-XYHM4KHC.js} +1 -1
- package/dist/chunks/{chunk-NAWZ73QS.js → chunk-YFJ3OQZS.js} +8 -1
- package/dist/chunks/tools-ATY622UC.js +23 -0
- package/dist/cli/args.d.ts +48 -0
- package/dist/cli/bin.js +14 -14
- package/dist/cli/commands.d.ts +0 -7
- package/dist/cli/config.d.ts +31 -2
- package/dist/cli/envelope.d.ts +2 -0
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/index.js +19 -15
- package/dist/cli/listing.d.ts +5 -2
- package/dist/cli/mcp.d.ts +9 -0
- package/dist/cli/offered.d.ts +10 -0
- package/dist/cli/options.d.ts +6 -0
- package/dist/cli/progress.d.ts +27 -0
- package/dist/cli/serve.d.ts +17 -0
- package/dist/clients/index.js +3 -3
- package/dist/combine/index.js +154 -35
- package/dist/combine/newest.d.ts +18 -0
- package/dist/combine/route.d.ts +19 -5
- package/dist/emailbison/index.js +22 -14
- package/dist/emailbison/map-sequence.d.ts +2 -1
- package/dist/exporter/index.js +1 -1
- package/dist/failover/index.js +3 -3
- package/dist/fixtures/index.js +4 -4
- package/dist/heyreach/capabilities.d.ts +4 -0
- package/dist/heyreach/conversations.d.ts +23 -0
- package/dist/heyreach/inbox.d.ts +0 -1
- package/dist/heyreach/index.js +251 -92
- package/dist/identity/index.js +2 -2
- package/dist/index.js +7 -7
- package/dist/insights/capped.d.ts +6 -6
- package/dist/insights/copy/index.d.ts +2 -0
- package/dist/insights/copy/reply-timing.d.ts +4 -0
- package/dist/insights/cost.d.ts +11 -1
- package/dist/insights/define.d.ts +25 -16
- package/dist/insights/inbox.d.ts +12 -0
- package/dist/insights/index.js +42 -6578
- package/dist/insights/inputs.generated.d.ts +62 -26
- package/dist/insights/ops/anomalies.d.ts +9 -0
- package/dist/insights/ops/index.d.ts +2 -0
- package/dist/insights/ops/period-comparison.d.ts +7 -8
- package/dist/insights/ops/pipeline-forecast.d.ts +16 -0
- package/dist/insights/ops/shared.d.ts +6 -1
- package/dist/insights/people/auto-replies.d.ts +11 -7
- package/dist/insights/people/dropped-replies.d.ts +13 -4
- package/dist/insights/people/hot-leads-read.d.ts +31 -0
- package/dist/insights/people/hot-leads.d.ts +15 -3
- package/dist/insights/people/index.d.ts +10 -2
- package/dist/insights/people/read.d.ts +1 -1
- package/dist/insights/registry.d.ts +14 -2
- package/dist/insights/run-cap.d.ts +10 -0
- package/dist/insights/senders/read.d.ts +0 -3
- package/dist/insights/tools.d.ts +12 -0
- package/dist/insights/tracked-reads.d.ts +53 -0
- package/dist/instantly/capabilities.d.ts +13 -1
- package/dist/instantly/index.js +128 -46
- package/dist/instantly/map-account.d.ts +2 -1
- package/dist/instantly/map-lead.d.ts +1 -0
- package/dist/instantly/map.d.ts +4 -3
- package/dist/internal/adapter.d.ts +19 -0
- package/dist/internal/capabilities.d.ts +15 -0
- package/dist/internal/engine/budget.d.ts +9 -1
- package/dist/internal/engine/engine.d.ts +2 -1
- package/dist/internal/engine/request.d.ts +2 -0
- package/dist/internal/errors.d.ts +5 -0
- package/dist/internal/hooks.d.ts +11 -0
- package/dist/internal/notes.d.ts +16 -0
- package/dist/internal/outbound/api.d.ts +16 -0
- package/dist/internal/outbound/core.d.ts +4 -1
- package/dist/internal/outbound/operation-shared.d.ts +2 -0
- package/dist/internal/sha256.d.ts +2 -0
- package/dist/internal/url.d.ts +1 -0
- package/dist/loader/index.js +3 -3
- package/dist/memory/index.js +11 -16
- package/dist/redact/index.d.ts +1 -1
- package/dist/redact/index.js +107 -19
- package/dist/redact/plugin.d.ts +26 -3
- package/dist/smartlead/index.js +22 -13
- package/dist/smartlead/map.d.ts +3 -2
- package/dist/sync/index.js +2 -2
- package/dist/tools/ai-sdk.js +5 -5
- package/dist/tools/by-name.d.ts +9 -1
- package/dist/tools/campaign-tools.d.ts +3 -1
- package/dist/tools/claude-agent.js +5 -5
- package/dist/tools/index.js +6 -6
- package/dist/tools/registry.d.ts +6 -0
- package/dist/tools/shared.d.ts +5 -1
- package/dist/tracing/index.js +1 -1
- package/dist/webhooks/index.js +11 -11
- package/package.json +1 -1
package/dist/alerts/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
} from "../chunks/chunk-POBAY3TI.js";
|
|
10
10
|
import {
|
|
11
11
|
computeRates
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-CPACP4YD.js";
|
|
13
13
|
import "../chunks/chunk-QGRZDTX4.js";
|
|
14
|
-
import "../chunks/chunk-
|
|
14
|
+
import "../chunks/chunk-HXB2IOJJ.js";
|
|
15
15
|
import {
|
|
16
16
|
OutboundError
|
|
17
|
-
} from "../chunks/chunk-
|
|
17
|
+
} from "../chunks/chunk-XYHM4KHC.js";
|
|
18
18
|
import "../chunks/chunk-45TXPJW7.js";
|
|
19
19
|
|
|
20
20
|
// src/alerts/plugin.ts
|
package/dist/audit/index.js
CHANGED
package/dist/benchmarks/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeRates
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-CPACP4YD.js";
|
|
4
4
|
import "../chunks/chunk-QGRZDTX4.js";
|
|
5
|
-
import "../chunks/chunk-
|
|
5
|
+
import "../chunks/chunk-HXB2IOJJ.js";
|
|
6
6
|
import {
|
|
7
7
|
OutboundError
|
|
8
|
-
} from "../chunks/chunk-
|
|
8
|
+
} from "../chunks/chunk-XYHM4KHC.js";
|
|
9
9
|
import "../chunks/chunk-45TXPJW7.js";
|
|
10
10
|
|
|
11
11
|
// src/benchmarks/index.ts
|
package/dist/budget/index.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export interface BudgetOptions {
|
|
|
8
8
|
* `maxRequestsPerCall` on `createOutbound` does.
|
|
9
9
|
*/
|
|
10
10
|
readonly per?: "call" | "run" | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* What the message of a stopped run tells the reader to raise, for a
|
|
13
|
+
* surface that sets the budget its own way: the CLI names its
|
|
14
|
+
* `--max-requests` flag. Without it the message names `budget()` and
|
|
15
|
+
* `requestBudget.reset()`.
|
|
16
|
+
*/
|
|
17
|
+
readonly setting?: string | undefined;
|
|
11
18
|
}
|
|
12
19
|
export interface BudgetExtension {
|
|
13
20
|
readonly requestBudget: {
|
package/dist/budget/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../chunks/chunk-PTZO4QXR.js";
|
|
4
4
|
import {
|
|
5
5
|
OutboundError
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-XYHM4KHC.js";
|
|
7
7
|
import "../chunks/chunk-45TXPJW7.js";
|
|
8
8
|
|
|
9
9
|
// src/budget/index.ts
|
|
@@ -20,7 +20,7 @@ var budget = (options) => {
|
|
|
20
20
|
const live = /* @__PURE__ */ new WeakMap();
|
|
21
21
|
const spent = (provider) => new OutboundError(
|
|
22
22
|
"RateLimited",
|
|
23
|
-
`The run used its budget of ${plural(options.maxRequests, "request")} to ${provider}. Call requestBudget.reset() to start a new run, or raise budget()'s maxRequests
|
|
23
|
+
`The run used its budget of ${plural(options.maxRequests, "request")} to ${provider}. ${options.setting === void 0 ? "Call requestBudget.reset() to start a new run, or raise budget()'s maxRequests." : `Raise ${options.setting}.`}`,
|
|
24
24
|
{ limit: "run", provider }
|
|
25
25
|
);
|
|
26
26
|
return {
|
|
@@ -42,7 +42,7 @@ var budget = (options) => {
|
|
|
42
42
|
}
|
|
43
43
|
if (!perRun && (state.maxRequests === void 0 || options.maxRequests < state.maxRequests)) {
|
|
44
44
|
state.maxRequests = options.maxRequests;
|
|
45
|
-
state.maxRequestsSetBy = "budget()'s maxRequests";
|
|
45
|
+
state.maxRequestsSetBy = options.setting ?? "budget()'s maxRequests";
|
|
46
46
|
}
|
|
47
47
|
if (!live.has(state)) {
|
|
48
48
|
live.set(state, 0);
|
package/dist/cache/index.js
CHANGED
package/dist/cards/index.js
CHANGED
|
@@ -888,24 +888,36 @@ var suppressionCheck = (data) => {
|
|
|
888
888
|
title: "Suppression check"
|
|
889
889
|
};
|
|
890
890
|
};
|
|
891
|
+
var notChecked = (totals) => {
|
|
892
|
+
const unchecked = num(totals, "unchecked") ?? 0;
|
|
893
|
+
if (unchecked > 0) {
|
|
894
|
+
return `\u{1F7E1} Could not check ${plural(unchecked, "conversation")}, so a reply there may be waiting.`;
|
|
895
|
+
}
|
|
896
|
+
return bool(totals, "moreRepliesExist") === true ? "\u{1F7E1} Could not check every reply: the read stopped with more left." : null;
|
|
897
|
+
};
|
|
891
898
|
var droppedReplies = (data) => {
|
|
892
899
|
const totals = child(data, "totals");
|
|
893
900
|
const dropped = rows(data, "dropped");
|
|
894
901
|
const [longest] = dropped;
|
|
902
|
+
const unchecked = num(totals, "unchecked") ?? 0;
|
|
895
903
|
return {
|
|
896
|
-
bullets:
|
|
897
|
-
|
|
898
|
-
|
|
904
|
+
bullets: [
|
|
905
|
+
...bool(totals, "moreRepliesExist") === true ? [
|
|
906
|
+
`\u{1F7E1} Stopped at ${plural(num(totals, "repliesRead") ?? 0, "reply", "replies")} read; more exist and were not checked.`
|
|
907
|
+
] : [],
|
|
908
|
+
...longest !== void 0 && unchecked > 0 ? [`\u{1F7E1} Could not check ${plural(unchecked, "conversation")}.`] : []
|
|
909
|
+
],
|
|
899
910
|
finding: verdict(
|
|
900
911
|
num(totals, "repliesRead"),
|
|
901
|
-
longest === void 0 ?
|
|
912
|
+
longest === void 0 ? notChecked(totals) : `\u{1F534} ${plural(dropped.length, "reply", "replies")} waiting. The longest has waited ${waiting(num(longest, "hoursWaiting"))}.`,
|
|
902
913
|
"Every reply read has an answer."
|
|
903
914
|
),
|
|
904
915
|
stats: [
|
|
905
916
|
["Unanswered", int(num(totals, "dropped"))],
|
|
906
917
|
["Answered", int(num(totals, "answered"))],
|
|
907
918
|
["Conversations", int(num(totals, "conversations"))],
|
|
908
|
-
["Too recent to count", int(num(totals, "tooRecent"))]
|
|
919
|
+
["Too recent to count", int(num(totals, "tooRecent"))],
|
|
920
|
+
["Could not check", int(unchecked)]
|
|
909
921
|
],
|
|
910
922
|
table: {
|
|
911
923
|
align: [LEFT, LEFT, LEFT, RIGHT],
|