outbound-sdk 0.10.0 → 0.12.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/cards/index.js +201 -92
- package/dist/cards/sender-tool-cards.d.ts +6 -0
- package/dist/chunks/{chunk-MEEJIIIA.js → chunk-2ADIGC2N.js} +77 -8
- package/dist/chunks/{chunk-NAYVG7SI.js → chunk-3DDYXUDG.js} +1 -1
- package/dist/chunks/{chunk-UAHYPASH.js → chunk-3LRIWQEJ.js} +2 -1
- package/dist/chunks/{chunk-UZLFZZ2U.js → chunk-AWNH4I5D.js} +11 -2
- package/dist/chunks/{chunk-A7DLJUA6.js → chunk-B72F56HF.js} +3 -1
- package/dist/chunks/{chunk-KMQHXFIZ.js → chunk-CTRYCW4G.js} +648 -182
- package/dist/chunks/{chunk-OVTYA3IB.js → chunk-HDTOGEVN.js} +532 -182
- package/dist/chunks/{chunk-POBAY3TI.js → chunk-HXCZMMSD.js} +21 -0
- package/dist/chunks/chunk-I7GBBHD2.js +80 -0
- package/dist/chunks/{chunk-FTK4JS65.js → chunk-KNWJIJVO.js} +73 -4
- package/dist/chunks/{chunk-UOJG4VYF.js → chunk-LD5OAELW.js} +1 -1
- package/dist/chunks/{chunk-YFJ3OQZS.js → chunk-OPLXELPS.js} +5 -1
- package/dist/chunks/{chunk-KQCIF5IT.js → chunk-UIINRLHQ.js} +23 -9
- package/dist/chunks/{chunk-OMCDMELK.js → chunk-UWNQEQIX.js} +1 -1
- package/dist/chunks/{chunk-MPE6VLLY.js → chunk-UZ4YWUZ7.js} +1 -1
- package/dist/chunks/{tools-AVJ3XJ5A.js → tools-EKLZKXZU.js} +5 -4
- package/dist/cli/bin.js +11 -10
- package/dist/cli/config.d.ts +2 -0
- package/dist/cli/index.js +10 -9
- package/dist/combine/index.js +36 -2
- package/dist/emailbison/index.js +4 -4
- package/dist/fixtures/index.js +4 -4
- package/dist/heyreach/index.js +14 -6
- package/dist/identity/index.js +46 -11
- package/dist/identity/keys.d.ts +1 -1
- package/dist/index.js +8 -6
- package/dist/insights/define.d.ts +1 -1
- package/dist/insights/index.js +5 -4
- package/dist/insights/inputs.generated.d.ts +68 -5
- package/dist/insights/ops/channel-mix.d.ts +8 -1
- package/dist/insights/ops/period-comparison.d.ts +13 -2
- package/dist/insights/ops/shared.d.ts +11 -1
- package/dist/insights/ops/tag-rollup.d.ts +8 -1
- package/dist/insights/people/dropped-replies-check.d.ts +14 -2
- package/dist/insights/people/find.d.ts +5 -4
- package/dist/insights/people/hot-leads.d.ts +10 -1
- package/dist/insights/people/index.d.ts +26 -2
- package/dist/insights/people/person-summary.d.ts +15 -3
- package/dist/insights/people/thread-context.d.ts +79 -0
- package/dist/insights/people/thread-contexts.d.ts +59 -0
- package/dist/insights/people/thread-read.d.ts +22 -0
- package/dist/insights/registry.d.ts +25 -3
- package/dist/insights/senders/domain-health.d.ts +1 -1
- package/dist/insights/senders/index.d.ts +1 -1
- package/dist/insights/senders/read.d.ts +9 -0
- package/dist/instantly/adapter.d.ts +3 -2
- package/dist/instantly/capabilities.d.ts +5 -0
- package/dist/instantly/index.js +148 -45
- package/dist/instantly/senders.d.ts +3 -0
- package/dist/internal/adapter.d.ts +7 -0
- package/dist/internal/capabilities.d.ts +8 -0
- package/dist/internal/entities.d.ts +20 -0
- package/dist/internal/fields.d.ts +8 -0
- package/dist/internal/outbound/api.d.ts +12 -0
- package/dist/internal/outbound/operations-account.d.ts +4 -1
- package/dist/internal/outbound/outbound.d.ts +2 -1
- package/dist/internal/outbound/specs-account.d.ts +2 -1
- package/dist/internal/person.d.ts +32 -0
- package/dist/internal/records.d.ts +2 -2
- package/dist/internal/url.d.ts +2 -1
- package/dist/loader/index.js +1 -1
- package/dist/memory/data.d.ts +2 -1
- package/dist/memory/index.js +6 -4
- package/dist/redact/index.d.ts +1 -1
- package/dist/redact/index.js +48 -26
- package/dist/redact/plugin.d.ts +12 -4
- package/dist/redact/tokens.d.ts +21 -0
- package/dist/smartlead/index.js +18 -7
- package/dist/tools/account-tools.d.ts +0 -5
- package/dist/tools/ai-sdk.js +5 -3
- package/dist/tools/campaign-tools.d.ts +0 -4
- package/dist/tools/claude-agent.js +5 -3
- package/dist/tools/deliverability-check.d.ts +9 -0
- package/dist/tools/index.js +6 -4
- package/dist/tools/people-tools.d.ts +4 -1
- package/dist/tools/person-input.d.ts +17 -0
- package/dist/tools/sender-health.d.ts +8 -0
- package/dist/tools/sender-impact.d.ts +38 -0
- package/dist/tools/shared.d.ts +5 -0
- package/dist/webhooks/index.js +6 -6
- package/package.json +1 -1
- /package/dist/chunks/{chunk-5XLR6XVV.js → chunk-TOZKA7JR.js} +0 -0
package/dist/tools/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiTools
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-UWNQEQIX.js";
|
|
4
4
|
import {
|
|
5
5
|
TOOL_NAMES,
|
|
6
6
|
createTools
|
|
7
|
-
} from "../chunks/chunk-
|
|
7
|
+
} from "../chunks/chunk-HDTOGEVN.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-KNWJIJVO.js";
|
|
13
13
|
import "../chunks/chunk-4PA526S7.js";
|
|
14
|
+
import "../chunks/chunk-I7GBBHD2.js";
|
|
14
15
|
import "../chunks/chunk-HZCTYL22.js";
|
|
15
16
|
import "../chunks/chunk-HPNGSG5E.js";
|
|
16
17
|
import "../chunks/chunk-PTZO4QXR.js";
|
|
17
|
-
import "../chunks/chunk-
|
|
18
|
+
import "../chunks/chunk-HXCZMMSD.js";
|
|
18
19
|
import "../chunks/chunk-CPACP4YD.js";
|
|
19
20
|
import "../chunks/chunk-QGRZDTX4.js";
|
|
21
|
+
import "../chunks/chunk-OPLXELPS.js";
|
|
20
22
|
import "../chunks/chunk-HXB2IOJJ.js";
|
|
21
23
|
import "../chunks/chunk-XYHM4KHC.js";
|
|
22
24
|
import "../chunks/chunk-45TXPJW7.js";
|
|
@@ -12,8 +12,11 @@ declare const compareInput: z.ZodObject<{
|
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export declare const compareClients: ToolDefinition<z.infer<typeof compareInput>>;
|
|
14
14
|
declare const personInput: z.ZodObject<{
|
|
15
|
+
email: z.ZodOptional<z.ZodString>;
|
|
16
|
+
lead_ref: z.ZodOptional<z.ZodString>;
|
|
17
|
+
linkedin_url: z.ZodOptional<z.ZodString>;
|
|
18
|
+
person: z.ZodOptional<z.ZodString>;
|
|
15
19
|
include_bodies: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
-
person: z.ZodString;
|
|
17
20
|
}, z.core.$strip>;
|
|
18
21
|
export declare const crossChannelLead: ToolDefinition<z.infer<typeof personInput>>;
|
|
19
22
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const personFields: {
|
|
3
|
+
email: z.ZodOptional<z.ZodString>;
|
|
4
|
+
lead_ref: z.ZodOptional<z.ZodString>;
|
|
5
|
+
linkedin_url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
person: z.ZodOptional<z.ZodString>;
|
|
7
|
+
};
|
|
8
|
+
export interface PersonFields {
|
|
9
|
+
readonly email?: string | undefined;
|
|
10
|
+
readonly lead_ref?: string | undefined;
|
|
11
|
+
readonly linkedin_url?: string | undefined;
|
|
12
|
+
readonly person?: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
/** For `superRefine`: exactly one person field, holding its own kind. */
|
|
15
|
+
export declare const checkPerson: (values: PersonFields, context: z.RefinementCtx) => void;
|
|
16
|
+
/** The one person field given. Call it on values `checkPerson` passed. */
|
|
17
|
+
export declare const personOf: (values: PersonFields) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { ToolDefinition } from "./shared.ts";
|
|
3
|
+
declare const healthInput: z.ZodObject<{
|
|
4
|
+
impact: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const senderHealth: ToolDefinition<z.infer<typeof healthInput>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { SenderHealth } from "../internal/entities-account.ts";
|
|
2
|
+
import type { Sender } from "../internal/entities.ts";
|
|
3
|
+
import type { JsonObject } from "../internal/json.ts";
|
|
4
|
+
import type { OutboundApi } from "../internal/outbound/api.ts";
|
|
5
|
+
/** The days of sends read for each failing sender, today included. */
|
|
6
|
+
export declare const IMPACT_DAYS = 14;
|
|
7
|
+
/**
|
|
8
|
+
* Failing senders past this many get no impact, with a note, where each
|
|
9
|
+
* sender's days cost a read of their own.
|
|
10
|
+
*/
|
|
11
|
+
export declare const IMPACT_AT_MOST = 10;
|
|
12
|
+
/**
|
|
13
|
+
* The same where one call reads many senders' days: each sender then costs
|
|
14
|
+
* only the listing of its campaigns.
|
|
15
|
+
*/
|
|
16
|
+
export declare const IMPACT_BATCHED_AT_MOST = 200;
|
|
17
|
+
/** The vendor reports the sender disconnected or failing, or that it cannot sign in. */
|
|
18
|
+
export declare const isFailing: (sender: Sender, health?: SenderHealth | null) => boolean;
|
|
19
|
+
/** A request cap the caller set stopped the read: retrying stops there again. */
|
|
20
|
+
export declare const isCapStop: (cause: unknown) => boolean;
|
|
21
|
+
export interface Impact {
|
|
22
|
+
readonly impact: JsonObject;
|
|
23
|
+
readonly requests: number;
|
|
24
|
+
}
|
|
25
|
+
export interface Impacts {
|
|
26
|
+
/** By sender ref. */
|
|
27
|
+
readonly bySender: ReadonlyMap<string, JsonObject>;
|
|
28
|
+
readonly requests: number;
|
|
29
|
+
readonly notes: readonly string[];
|
|
30
|
+
/** Failing senders left without impact. */
|
|
31
|
+
readonly skipped: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The impact of the first failing senders, in the order given:
|
|
35
|
+
* `IMPACT_BATCHED_AT_MOST` where the adapter reads many senders' days in one
|
|
36
|
+
* call, `IMPACT_AT_MOST` where each sender's days cost a read of their own.
|
|
37
|
+
*/
|
|
38
|
+
export declare const readImpacts: (outbound: OutboundApi, failing: readonly Sender[], now?: number) => Promise<Impacts>;
|
package/dist/tools/shared.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export interface ToolSuccess {
|
|
|
18
18
|
* otherwise guesses the range it asks for.
|
|
19
19
|
*/
|
|
20
20
|
readonly today?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* When the answer was computed, ISO 8601 UTC: the time the numbers are
|
|
23
|
+
* as of. Set on every result a tool from `createTools` returns.
|
|
24
|
+
*/
|
|
25
|
+
readonly computedAt?: string | undefined;
|
|
21
26
|
/**
|
|
22
27
|
* `false` when the answer covers part of what was asked, for example
|
|
23
28
|
* when `limit` cut a list or a cap stopped a read; `notes` says why.
|
package/dist/webhooks/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
instantlyEvents
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-UZ4YWUZ7.js";
|
|
4
4
|
import {
|
|
5
5
|
smartleadEvents
|
|
6
|
-
} from "../chunks/chunk-
|
|
6
|
+
} from "../chunks/chunk-3LRIWQEJ.js";
|
|
7
7
|
import {
|
|
8
8
|
heyreachEvents
|
|
9
9
|
} from "../chunks/chunk-UWD65SK7.js";
|
|
10
10
|
import {
|
|
11
11
|
emailbisonEvents
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-AWNH4I5D.js";
|
|
13
13
|
import "../chunks/chunk-SYUMA3CP.js";
|
|
14
|
-
import "../chunks/chunk-
|
|
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-HXCZMMSD.js";
|
|
18
18
|
import {
|
|
19
19
|
SCHEMA_VERSION
|
|
20
20
|
} from "../chunks/chunk-QGRZDTX4.js";
|
|
21
|
+
import "../chunks/chunk-OPLXELPS.js";
|
|
21
22
|
import "../chunks/chunk-HXB2IOJJ.js";
|
|
22
|
-
import "../chunks/chunk-YFJ3OQZS.js";
|
|
23
23
|
import {
|
|
24
24
|
stableId
|
|
25
25
|
} from "../chunks/chunk-KVAG5GM2.js";
|
package/package.json
CHANGED
|
File without changes
|