outbound-sdk 0.12.0 → 0.13.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 +1 -1
- package/dist/budget/index.js +1 -1
- package/dist/cards/index.js +16 -8
- package/dist/chunks/{chunk-AWNH4I5D.js → chunk-6BSFR5SF.js} +3 -0
- package/dist/chunks/{chunk-KNWJIJVO.js → chunk-BTIJ24UY.js} +17 -6
- package/dist/chunks/{chunk-HDTOGEVN.js → chunk-EAG5NIPM.js} +85 -27
- package/dist/chunks/{chunk-B72F56HF.js → chunk-FT6HMMMP.js} +1 -1
- package/dist/chunks/{chunk-CTRYCW4G.js → chunk-LJNU4LAR.js} +1471 -857
- package/dist/chunks/{chunk-HXCZMMSD.js → chunk-NLYGMVXS.js} +9 -0
- package/dist/chunks/{chunk-3DDYXUDG.js → chunk-OE45PREW.js} +1 -1
- package/dist/chunks/{chunk-2ADIGC2N.js → chunk-OP2GL7ZT.js} +2 -2
- package/dist/chunks/{chunk-UIINRLHQ.js → chunk-PDYE6CWS.js} +130 -62
- package/dist/chunks/{chunk-UWNQEQIX.js → chunk-PUIHJFK4.js} +1 -1
- package/dist/chunks/{tools-EKLZKXZU.js → tools-VCCH3JNL.js} +11 -5
- package/dist/cli/bin.js +9 -9
- package/dist/cli/config.d.ts +0 -2
- package/dist/cli/index.js +8 -8
- package/dist/cli/offered.d.ts +31 -2
- package/dist/cli/serve.d.ts +4 -2
- package/dist/combine/index.js +26 -4
- package/dist/emailbison/index.js +2 -2
- package/dist/fixtures/index.js +1 -1
- package/dist/heyreach/index.js +4 -1
- package/dist/index.js +3 -3
- package/dist/insights/capped.d.ts +14 -1
- package/dist/insights/define.d.ts +7 -5
- package/dist/insights/index.d.ts +1 -1
- package/dist/insights/index.js +10 -60
- package/dist/insights/inputs.generated.d.ts +26 -14
- package/dist/insights/ops/campaign-ranking.d.ts +8 -1
- package/dist/insights/ops/client-report.d.ts +28 -18
- package/dist/insights/ops/client-runway.d.ts +43 -0
- package/dist/insights/ops/index.d.ts +6 -1
- package/dist/insights/ops/period-comparison.d.ts +23 -1
- package/dist/insights/ops/pipeline-forecast.d.ts +14 -9
- package/dist/insights/ops/shared.d.ts +38 -1
- package/dist/insights/people/coverage.d.ts +26 -0
- package/dist/insights/people/dropped-replies-check.d.ts +5 -1
- package/dist/insights/people/dropped-replies.d.ts +6 -2
- package/dist/insights/people/index.d.ts +2 -2
- package/dist/insights/people/lead-collisions.d.ts +18 -1
- package/dist/insights/people/suppression-check.d.ts +18 -1
- package/dist/insights/people/thread-contexts.d.ts +2 -2
- package/dist/insights/people/thread-read.d.ts +11 -0
- package/dist/insights/registry.d.ts +6 -2
- package/dist/insights/tools.d.ts +35 -2
- package/dist/instantly/index.js +108 -22
- package/dist/instantly/lead-ids.d.ts +11 -0
- package/dist/instantly/map-lead.d.ts +19 -2
- package/dist/internal/entities.d.ts +4 -1
- package/dist/internal/fields.d.ts +2 -0
- package/dist/internal/reply-people.d.ts +25 -7
- package/dist/internal/runway.d.ts +38 -5
- package/dist/loader/index.js +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/redact/index.d.ts +1 -1
- package/dist/redact/index.js +59 -28
- package/dist/redact/plugin.d.ts +13 -11
- package/dist/redact/tokens.d.ts +18 -1
- package/dist/smartlead/index.js +4 -1
- package/dist/tools/ai-sdk.js +3 -3
- package/dist/tools/claude-agent.js +3 -3
- package/dist/tools/index.js +4 -4
- package/dist/tools/registry.d.ts +8 -1
- package/dist/webhooks/index.js +2 -2
- package/package.json +1 -1
- /package/dist/chunks/{chunk-TOZKA7JR.js → chunk-HNYJO6B4.js} +0 -0
|
@@ -34,9 +34,42 @@ export declare const splitActive: (leads: readonly Lead[]) => ActiveSplit;
|
|
|
34
34
|
/** The leads runway divides: those not yet started, or every active lead when the split is unknown. */
|
|
35
35
|
export declare const leadsToStart: (split: ActiveSplit) => number;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
37
|
+
* Where a campaign's leads stand:
|
|
38
|
+
*
|
|
39
|
+
* - `draining`: leads are left to start and new ones started in the window,
|
|
40
|
+
* so `daysLeft` is how long they last at that pace.
|
|
41
|
+
* - `stalled`: leads are left to start, but none was started in the window,
|
|
42
|
+
* or the vendor reports no count of leads started, so there is no pace.
|
|
43
|
+
* - `out_of_leads`: every lead was counted and none is left to start.
|
|
44
|
+
* - `unknown`: the leads left to start were not all counted (a cap stopped
|
|
45
|
+
* the read, or a lead's status is unknown) and none was found.
|
|
41
46
|
*/
|
|
42
|
-
export
|
|
47
|
+
export type RunwayState = "draining" | "out_of_leads" | "stalled" | "unknown";
|
|
48
|
+
export interface Runway {
|
|
49
|
+
readonly state: RunwayState;
|
|
50
|
+
/** Leads not yet started: active ones with no step sent and no contact, or every active lead when the split is unknown. */
|
|
51
|
+
readonly remaining: number;
|
|
52
|
+
/** Active leads partway through the sequence. `null` when the vendor does not say which have started. */
|
|
53
|
+
readonly inSequence: number | null;
|
|
54
|
+
/** New leads started per day. `null` when the vendor reports no daily count of leads started. */
|
|
55
|
+
readonly pace: number | null;
|
|
56
|
+
/**
|
|
57
|
+
* `remaining` divided by `pace`. `null` when the pace is `null` or 0,
|
|
58
|
+
* since no time can be divided out of it, and when `state` is `unknown`.
|
|
59
|
+
* A minimum when the read was not complete.
|
|
60
|
+
*/
|
|
61
|
+
readonly daysLeft: number | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The runway of a campaign from its leads split by start, the count of leads
|
|
65
|
+
* of unknown status, whether every lead was read, and the recent pace. The one
|
|
66
|
+
* runway calculation: pipeline_forecast, client_report, campaign_diagnosis and
|
|
67
|
+
* lead_runway all call it.
|
|
68
|
+
*/
|
|
69
|
+
export declare const runwayOf: (split: ActiveSplit, byStatus: Readonly<Pick<Record<LeadStatus, number>, "unknown">>, complete: boolean, pace: number | null) => Runway;
|
|
70
|
+
/** What lead_runway and client_report read a campaign's leads with, so both count the same leads. */
|
|
71
|
+
export declare const RUNWAY_MAX_LEADS = 5000;
|
|
72
|
+
/** The lead status a runway read asks for: only the active leads where the tool can list them alone. */
|
|
73
|
+
export declare const runwayStatus: (capabilities: {
|
|
74
|
+
readonly "leads.byStatus"?: boolean | undefined;
|
|
75
|
+
}) => "active" | undefined;
|
package/dist/loader/index.js
CHANGED
package/dist/memory/index.js
CHANGED
package/dist/redact/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ALL_FIELDS, KNOWN_TOKENS, MASK, MIN_KEY_LENGTH, redact, } from "./plugin.ts";
|
|
1
|
+
export { ALL_FIELDS, KNOWN_TOKENS, MASK, MIN_KEY_LENGTH, REDACT_KEY_ENV, redact, } from "./plugin.ts";
|
|
2
2
|
export type { RedactExtension, RedactField, RedactOptions } from "./plugin.ts";
|
package/dist/redact/index.js
CHANGED
|
@@ -9,6 +9,9 @@ import {
|
|
|
9
9
|
hmacSha256Hex,
|
|
10
10
|
stableId
|
|
11
11
|
} from "../chunks/chunk-KVAG5GM2.js";
|
|
12
|
+
import {
|
|
13
|
+
readEnv
|
|
14
|
+
} from "../chunks/chunk-NFWWA7MI.js";
|
|
12
15
|
import {
|
|
13
16
|
OutboundError
|
|
14
17
|
} from "../chunks/chunk-XYHM4KHC.js";
|
|
@@ -20,27 +23,32 @@ import {
|
|
|
20
23
|
|
|
21
24
|
// src/redact/tokens.ts
|
|
22
25
|
var MIN_KEY_LENGTH = 32;
|
|
26
|
+
var REDACT_KEY_ENV = "OUTBOUND_REDACT_KEY";
|
|
23
27
|
var keyedToken = (secret) => {
|
|
24
28
|
const key = secret === void 0 ? crypto.getRandomValues(new Uint8Array(32)) : new TextEncoder().encode(secret);
|
|
25
29
|
return (value) => `redacted:${hmacSha256Hex(key, value).slice(0, 16)}`;
|
|
26
30
|
};
|
|
27
|
-
var checkedKey = (key
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (strategy !== "mask") {
|
|
32
|
-
throw new OutboundError(
|
|
33
|
-
"Invalid",
|
|
34
|
-
'redact takes a key only with strategy "mask": "hash" writes the same token without one'
|
|
35
|
-
);
|
|
31
|
+
var checkedKey = (key) => {
|
|
32
|
+
const given = key ?? readEnv(REDACT_KEY_ENV);
|
|
33
|
+
if (given === void 0 || given.length >= MIN_KEY_LENGTH) {
|
|
34
|
+
return given;
|
|
36
35
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
const source = key === void 0 ? ` in ${REDACT_KEY_ENV}` : "";
|
|
37
|
+
throw new OutboundError(
|
|
38
|
+
"Invalid",
|
|
39
|
+
`The redact key${source} must be at least ${MIN_KEY_LENGTH} characters. It is a secret: make one with \`openssl rand -hex 32\``
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
var KEYLESS_NOTES = {
|
|
43
|
+
hash: `redact's hash strategy has no key, so anyone can compute a token from a guessed email address or profile. Unkeyed hash is deprecated: set ${REDACT_KEY_ENV} or pass redact({ key }) to key it.`,
|
|
44
|
+
mask: `redact has no key, so its tokens for addresses and profiles hold only within this instance or process and do not join across runs. Set ${REDACT_KEY_ENV} or pass redact({ key }) to keep them.`
|
|
45
|
+
};
|
|
46
|
+
var warnedUnkeyedHash = false;
|
|
47
|
+
var warnUnkeyedHash = () => {
|
|
48
|
+
if (!warnedUnkeyedHash) {
|
|
49
|
+
warnedUnkeyedHash = true;
|
|
50
|
+
console.warn(`outbound-sdk: ${KEYLESS_NOTES.hash}`);
|
|
42
51
|
}
|
|
43
|
-
return key;
|
|
44
52
|
};
|
|
45
53
|
var KNOWN_TOKENS = 1e4;
|
|
46
54
|
var TOKEN = /redacted:[0-9a-f]{16}/gu;
|
|
@@ -69,6 +77,17 @@ var knownTokens = () => {
|
|
|
69
77
|
unmask: (text) => text.replaceAll(TOKEN, (token) => values.get(token)?.value ?? token)
|
|
70
78
|
};
|
|
71
79
|
};
|
|
80
|
+
var UNKNOWN_TOKEN_REMEDY = "Redact keeps what each token stands for in memory, only in the process that wrote it, so it is not sent to the vendor. Run the tool that returned it again in this session. The redact key (redact's key option, or OUTBOUND_REDACT_KEY in the environment) keeps tokens the same across runs, so a token you kept matches its records again once they are read in the new session.";
|
|
81
|
+
var refuseUnknownTokens = (operation, provider) => {
|
|
82
|
+
const [token] = JSON.stringify(operation).match(TOKEN) ?? [];
|
|
83
|
+
if (token !== void 0) {
|
|
84
|
+
throw new OutboundError(
|
|
85
|
+
"NotFound",
|
|
86
|
+
`"${token}" is a redacted token from another session or process. ${UNKNOWN_TOKEN_REMEDY}`,
|
|
87
|
+
{ provider }
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
72
91
|
|
|
73
92
|
// src/redact/plugin.ts
|
|
74
93
|
var ALL_FIELDS = [
|
|
@@ -82,15 +101,18 @@ var ALL_FIELDS = [
|
|
|
82
101
|
"subject"
|
|
83
102
|
];
|
|
84
103
|
var MASK = "[redacted]";
|
|
85
|
-
var replacer = (strategy
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
104
|
+
var replacer = (strategy, secret) => {
|
|
105
|
+
const hashed = secret === void 0 ? (value) => `redacted:${stableId(value).slice(0, 16)}` : keyedToken(secret);
|
|
106
|
+
return (value) => {
|
|
107
|
+
if (value === null) {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
return strategy === "mask" ? MASK : hashed(value);
|
|
111
|
+
};
|
|
90
112
|
};
|
|
91
113
|
var maskIdentifier = (masks, field, value) => masks.has(field) ? masks.identifier(field, value) : value;
|
|
92
114
|
var masksFor = (fields, strategy, secret) => {
|
|
93
|
-
const replace = replacer(strategy);
|
|
115
|
+
const replace = replacer(strategy, secret);
|
|
94
116
|
const has = (field) => fields.has(field);
|
|
95
117
|
const known = knownTokens();
|
|
96
118
|
if (strategy === "hash") {
|
|
@@ -171,13 +193,17 @@ var redactFields = (masks, record) => {
|
|
|
171
193
|
return record;
|
|
172
194
|
}
|
|
173
195
|
if ("direction" in record) {
|
|
174
|
-
|
|
196
|
+
const message = {
|
|
175
197
|
...record,
|
|
176
198
|
bodyHtml: maskIf(masks, "body", record.bodyHtml),
|
|
177
199
|
bodyText: maskIf(masks, "body", record.bodyText),
|
|
178
200
|
raw: null,
|
|
179
201
|
subject: maskIf(masks, "subject", record.subject)
|
|
180
202
|
};
|
|
203
|
+
if (record.leadEmail !== void 0) {
|
|
204
|
+
message.leadEmail = maskIdentifier(masks, "email", record.leadEmail);
|
|
205
|
+
}
|
|
206
|
+
return message;
|
|
181
207
|
}
|
|
182
208
|
if ("custom" in record) {
|
|
183
209
|
return {
|
|
@@ -276,7 +302,12 @@ var unmasked = (known, operation) => {
|
|
|
276
302
|
var redact = (options = {}) => {
|
|
277
303
|
const fields = new Set(options.fields ?? ALL_FIELDS);
|
|
278
304
|
const strategy = options.strategy ?? "mask";
|
|
279
|
-
const
|
|
305
|
+
const key = checkedKey(options.key);
|
|
306
|
+
const masks = masksFor(fields, strategy, key);
|
|
307
|
+
const note = key === void 0 ? KEYLESS_NOTES[strategy] : void 0;
|
|
308
|
+
if (strategy === "hash" && key === void 0) {
|
|
309
|
+
warnUnkeyedHash();
|
|
310
|
+
}
|
|
280
311
|
return {
|
|
281
312
|
// Asking for bodies while they are being removed is a contradiction, so
|
|
282
313
|
// the capability is turned off and the request is refused up front.
|
|
@@ -302,18 +333,17 @@ var redact = (options = {}) => {
|
|
|
302
333
|
}
|
|
303
334
|
}),
|
|
304
335
|
name: "redact",
|
|
305
|
-
wrap: async (operation, next) => {
|
|
336
|
+
wrap: async (operation, next, info) => {
|
|
306
337
|
const sent = unmasked(masks.known, operation);
|
|
338
|
+
refuseUnknownTokens(sent, info.provider);
|
|
307
339
|
let output;
|
|
308
340
|
try {
|
|
309
341
|
output = await next(sent);
|
|
310
342
|
} catch (error) {
|
|
311
343
|
throw sent !== operation && OutboundError.is(error) ? remasked(masks.known, error) : error;
|
|
312
344
|
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
items: output.items.map((record) => redactRecord(masks, record))
|
|
316
|
-
};
|
|
345
|
+
const items = output.items.map((record) => redactRecord(masks, record));
|
|
346
|
+
return note === void 0 || JSON.stringify(items).match(TOKEN) === null ? { ...output, items } : { ...output, items, notes: [...output.notes ?? [], note] };
|
|
317
347
|
}
|
|
318
348
|
};
|
|
319
349
|
};
|
|
@@ -322,5 +352,6 @@ export {
|
|
|
322
352
|
KNOWN_TOKENS,
|
|
323
353
|
MASK,
|
|
324
354
|
MIN_KEY_LENGTH,
|
|
355
|
+
REDACT_KEY_ENV,
|
|
325
356
|
redact
|
|
326
357
|
};
|
package/dist/redact/plugin.d.ts
CHANGED
|
@@ -2,26 +2,28 @@ import type { Lead } from "../internal/entities.ts";
|
|
|
2
2
|
import type { ListAll } from "../internal/outbound/api.ts";
|
|
3
3
|
import type { OutboundPlugin } from "../internal/outbound/plugins.ts";
|
|
4
4
|
import type { Identifier } from "./tokens.ts";
|
|
5
|
-
export { KNOWN_TOKENS, MIN_KEY_LENGTH } from "./tokens.ts";
|
|
5
|
+
export { KNOWN_TOKENS, MIN_KEY_LENGTH, REDACT_KEY_ENV } from "./tokens.ts";
|
|
6
6
|
export type RedactField = "body" | "company" | "custom" | "email" | "linkedin" | "name" | "phone" | "subject";
|
|
7
7
|
export interface RedactOptions {
|
|
8
8
|
/** What to mask. Defaults to everything. */
|
|
9
9
|
readonly fields?: readonly RedactField[] | undefined;
|
|
10
10
|
/**
|
|
11
11
|
* `mask` replaces a value with `[redacted]`, and an address or a profile
|
|
12
|
-
* with a
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* with a keyed token, so people can still be counted and joined. `hash`
|
|
13
|
+
* replaces every value with a token under the key. `hash` with no key is
|
|
14
|
+
* deprecated: its tokens can be computed from a guessed address, so it
|
|
15
|
+
* warns once on stderr and adds a note to every answer.
|
|
15
16
|
*/
|
|
16
17
|
readonly strategy?: "hash" | "mask" | undefined;
|
|
17
18
|
/**
|
|
18
19
|
* A secret, at least `MIN_KEY_LENGTH` (32) characters, that keys the
|
|
19
|
-
* tokens
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
20
|
+
* tokens. Defaults to `OUTBOUND_REDACT_KEY`, as in the CLI and
|
|
21
|
+
* `outbound mcp`. With it the same person gets the same token in every
|
|
22
|
+
* instance and process given the same key, under `mask` and `hash` alike,
|
|
23
|
+
* so redacted data can be joined across runs. Without it `mask` makes a
|
|
24
|
+
* random key for each plugin, and `hash` is unkeyed. Anyone holding the
|
|
25
|
+
* key can test a guessed address against a token, and a new key gives
|
|
26
|
+
* every person a new token.
|
|
25
27
|
*/
|
|
26
28
|
readonly key?: string | undefined;
|
|
27
29
|
}
|
|
@@ -34,7 +36,7 @@ export interface RedactExtension {
|
|
|
34
36
|
readonly strategy: "hash" | "mask";
|
|
35
37
|
/**
|
|
36
38
|
* What this redact writes in place of `value` in a masked field: the
|
|
37
|
-
*
|
|
39
|
+
* token under `hash`, so a caller can find a known address among
|
|
38
40
|
* hashed records without the records holding it; `[redacted]` under
|
|
39
41
|
* `mask`, whose tokens for addresses and profiles are keyed and never
|
|
40
42
|
* given out.
|
package/dist/redact/tokens.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import type { Operation } from "../internal/outbound/operations.ts";
|
|
1
2
|
/** The shortest `key` `redact` accepts. */
|
|
2
3
|
export declare const MIN_KEY_LENGTH = 32;
|
|
4
|
+
/** The environment variable `redact` reads its key from when none is given. */
|
|
5
|
+
export declare const REDACT_KEY_ENV = "OUTBOUND_REDACT_KEY";
|
|
3
6
|
export declare const keyedToken: (secret: string | undefined) => ((value: string) => string);
|
|
4
|
-
export declare const checkedKey: (key: string | undefined
|
|
7
|
+
export declare const checkedKey: (key: string | undefined) => string | undefined;
|
|
8
|
+
/** On every answer that holds a token from a redact with no key, by strategy. */
|
|
9
|
+
export declare const KEYLESS_NOTES: {
|
|
10
|
+
readonly hash: "redact's hash strategy has no key, so anyone can compute a token from a guessed email address or profile. Unkeyed hash is deprecated: set OUTBOUND_REDACT_KEY or pass redact({ key }) to key it.";
|
|
11
|
+
readonly mask: "redact has no key, so its tokens for addresses and profiles hold only within this instance or process and do not join across runs. Set OUTBOUND_REDACT_KEY or pass redact({ key }) to keep them.";
|
|
12
|
+
};
|
|
13
|
+
/** Warns once per process that a hash with no key can be recomputed. */
|
|
14
|
+
export declare const warnUnkeyedHash: () => void;
|
|
5
15
|
export type Identifier = "email" | "linkedin";
|
|
6
16
|
/** The most tokens one redact remembers the value of; the oldest go first. */
|
|
7
17
|
export declare const KNOWN_TOKENS = 10000;
|
|
@@ -19,3 +29,10 @@ export interface Known {
|
|
|
19
29
|
readonly remask: (text: string) => string;
|
|
20
30
|
}
|
|
21
31
|
export declare const knownTokens: () => Known;
|
|
32
|
+
/** What to do about a token no process can put back but the one that wrote it. */
|
|
33
|
+
export declare const UNKNOWN_TOKEN_REMEDY = "Redact keeps what each token stands for in memory, only in the process that wrote it, so it is not sent to the vendor. Run the tool that returned it again in this session. The redact key (redact's key option, or OUTBOUND_REDACT_KEY in the environment) keeps tokens the same across runs, so a token you kept matches its records again once they are read in the new session.";
|
|
34
|
+
/**
|
|
35
|
+
* Refuses a call that still names a token once every known one is put back:
|
|
36
|
+
* a token from another session or process would reach the vendor as it is.
|
|
37
|
+
*/
|
|
38
|
+
export declare const refuseUnknownTokens: (operation: Operation, provider: string) => void;
|
package/dist/smartlead/index.js
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
refTo,
|
|
51
51
|
refsTo
|
|
52
52
|
} from "../chunks/chunk-U5AK6OJM.js";
|
|
53
|
-
import "../chunks/chunk-
|
|
53
|
+
import "../chunks/chunk-NLYGMVXS.js";
|
|
54
54
|
import {
|
|
55
55
|
emptyCounts,
|
|
56
56
|
metricRow
|
|
@@ -194,6 +194,8 @@ var fields = {
|
|
|
194
194
|
// inbox conversation is documented.
|
|
195
195
|
message: {
|
|
196
196
|
isAuto: false,
|
|
197
|
+
// Read only by the Instantly adapter, whose emails name their lead by address.
|
|
198
|
+
leadEmail: false,
|
|
197
199
|
isAutoSource: false,
|
|
198
200
|
url: false,
|
|
199
201
|
variantKey: false
|
|
@@ -216,6 +218,7 @@ var fields = {
|
|
|
216
218
|
// SmartDelivery's list gives a test's schedule and nothing else about it.
|
|
217
219
|
placementTest: { campaignRef: false, createdAt: false, nextRunAt: false },
|
|
218
220
|
reply: {
|
|
221
|
+
leadEmail: false,
|
|
219
222
|
// The lead's category, not a label on the message.
|
|
220
223
|
category: "derived",
|
|
221
224
|
categorySource: "derived",
|
package/dist/tools/ai-sdk.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTools
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-EAG5NIPM.js";
|
|
4
|
+
import "../chunks/chunk-BTIJ24UY.js";
|
|
5
5
|
import "../chunks/chunk-4PA526S7.js";
|
|
6
6
|
import "../chunks/chunk-I7GBBHD2.js";
|
|
7
7
|
import "../chunks/chunk-HZCTYL22.js";
|
|
8
8
|
import "../chunks/chunk-HPNGSG5E.js";
|
|
9
9
|
import "../chunks/chunk-PTZO4QXR.js";
|
|
10
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-NLYGMVXS.js";
|
|
11
11
|
import "../chunks/chunk-CPACP4YD.js";
|
|
12
12
|
import "../chunks/chunk-QGRZDTX4.js";
|
|
13
13
|
import "../chunks/chunk-OPLXELPS.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createTools
|
|
3
|
-
} from "../chunks/chunk-
|
|
4
|
-
import "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-EAG5NIPM.js";
|
|
4
|
+
import "../chunks/chunk-BTIJ24UY.js";
|
|
5
5
|
import "../chunks/chunk-4PA526S7.js";
|
|
6
6
|
import "../chunks/chunk-I7GBBHD2.js";
|
|
7
7
|
import "../chunks/chunk-HZCTYL22.js";
|
|
8
8
|
import "../chunks/chunk-HPNGSG5E.js";
|
|
9
9
|
import "../chunks/chunk-PTZO4QXR.js";
|
|
10
|
-
import "../chunks/chunk-
|
|
10
|
+
import "../chunks/chunk-NLYGMVXS.js";
|
|
11
11
|
import "../chunks/chunk-CPACP4YD.js";
|
|
12
12
|
import "../chunks/chunk-QGRZDTX4.js";
|
|
13
13
|
import "../chunks/chunk-OPLXELPS.js";
|
package/dist/tools/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiTools
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-PUIHJFK4.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_NAMES,
|
|
6
6
|
createTools
|
|
7
|
-
} from "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-EAG5NIPM.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_BODY_CHARS,
|
|
10
10
|
DEFAULT_TOOL_REQUESTS,
|
|
11
11
|
UNTRUSTED_NOTE
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-BTIJ24UY.js";
|
|
13
13
|
import "../chunks/chunk-4PA526S7.js";
|
|
14
14
|
import "../chunks/chunk-I7GBBHD2.js";
|
|
15
15
|
import "../chunks/chunk-HZCTYL22.js";
|
|
16
16
|
import "../chunks/chunk-HPNGSG5E.js";
|
|
17
17
|
import "../chunks/chunk-PTZO4QXR.js";
|
|
18
|
-
import "../chunks/chunk-
|
|
18
|
+
import "../chunks/chunk-NLYGMVXS.js";
|
|
19
19
|
import "../chunks/chunk-CPACP4YD.js";
|
|
20
20
|
import "../chunks/chunk-QGRZDTX4.js";
|
|
21
21
|
import "../chunks/chunk-OPLXELPS.js";
|
package/dist/tools/registry.d.ts
CHANGED
|
@@ -47,6 +47,13 @@ export interface ToolsOptions {
|
|
|
47
47
|
* instance and `budget()` still apply under it.
|
|
48
48
|
*/
|
|
49
49
|
readonly maxRequestsPerToolCall?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* On a combined instance, each of its tools as its own instance
|
|
52
|
+
* (`membersOf` in `outbound-sdk/insights`). With them a tool that takes a
|
|
53
|
+
* campaign is offered when one of them supports it, and answers for that
|
|
54
|
+
* tool's campaigns.
|
|
55
|
+
*/
|
|
56
|
+
readonly members?: readonly OutboundApi[] | undefined;
|
|
50
57
|
}
|
|
51
58
|
/** What `next` says when the hint a tool wrote names a tool that is not on offer. */
|
|
52
59
|
export declare const NEXT_FALLBACK = "Pick another of the listed tools to go further.";
|
|
@@ -55,7 +62,7 @@ export declare const NEXT_FALLBACK = "Pick another of the listed tools to go fur
|
|
|
55
62
|
* the words of an `Unsupported` error. `undefined` for a name that is not a
|
|
56
63
|
* built-in tool, or one the instance offers.
|
|
57
64
|
*/
|
|
58
|
-
export declare const leftOutReason: (outbound: OutboundApi, name: string) => string | undefined;
|
|
65
|
+
export declare const leftOutReason: (outbound: OutboundApi, name: string, members?: readonly OutboundApi[]) => string | undefined;
|
|
59
66
|
/**
|
|
60
67
|
* The tool set for one instance. A tool that needs a plugin the instance does
|
|
61
68
|
* not have, or a capability the adapter lacks or a plugin turned off, is left
|
package/dist/webhooks/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
} from "../chunks/chunk-UWD65SK7.js";
|
|
10
10
|
import {
|
|
11
11
|
emailbisonEvents
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-6BSFR5SF.js";
|
|
13
13
|
import "../chunks/chunk-SYUMA3CP.js";
|
|
14
14
|
import "../chunks/chunk-LD5OAELW.js";
|
|
15
15
|
import "../chunks/chunk-FALWG5U3.js";
|
|
16
16
|
import "../chunks/chunk-U5AK6OJM.js";
|
|
17
|
-
import "../chunks/chunk-
|
|
17
|
+
import "../chunks/chunk-NLYGMVXS.js";
|
|
18
18
|
import {
|
|
19
19
|
SCHEMA_VERSION
|
|
20
20
|
} from "../chunks/chunk-QGRZDTX4.js";
|
package/package.json
CHANGED
|
File without changes
|