outbound-sdk 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +121 -2
- package/dist/alerts/index.d.ts +2 -0
- package/dist/alerts/index.js +136 -0
- package/dist/alerts/plugin.d.ts +58 -0
- package/dist/audit/index.d.ts +33 -0
- package/dist/audit/index.js +60 -0
- package/dist/benchmarks/index.d.ts +29 -0
- package/dist/benchmarks/index.js +70 -0
- package/dist/budget/index.d.ts +21 -0
- package/dist/budget/index.js +50 -0
- package/dist/cache/index.d.ts +31 -0
- package/dist/cache/index.js +11 -0
- package/dist/cards/content.d.ts +43 -0
- package/dist/cards/copy-cards.d.ts +2 -0
- package/dist/cards/format.d.ts +39 -0
- package/dist/cards/index.d.ts +9 -0
- package/dist/cards/index.js +2070 -0
- package/dist/cards/notify-cards.d.ts +14 -0
- package/dist/cards/ops-cards.d.ts +2 -0
- package/dist/cards/parts.d.ts +22 -0
- package/dist/cards/people-cards.d.ts +2 -0
- package/dist/cards/render.d.ts +28 -0
- package/dist/cards/sender-cards.d.ts +2 -0
- package/dist/cards/slack-rich.d.ts +19 -0
- package/dist/cards/slack-text.d.ts +10 -0
- package/dist/cards/slack.d.ts +21 -0
- package/dist/cards/spec.d.ts +86 -0
- package/dist/cards/tool-cards.d.ts +4 -0
- package/dist/chunks/chunk-4O2HRTTI.js +75 -0
- package/dist/chunks/chunk-7BCYLIDG.js +483 -0
- package/dist/chunks/chunk-B7V6EOAC.js +2273 -0
- package/dist/chunks/chunk-CMQ5ZHLZ.js +25 -0
- package/dist/chunks/chunk-F7MKFVIG.js +43 -0
- package/dist/chunks/chunk-FZF6CLPX.js +232 -0
- package/dist/chunks/chunk-GPEJG34O.js +53 -0
- package/dist/chunks/chunk-HEC7XFFH.js +65 -0
- package/dist/chunks/chunk-IBC52BX3.js +24 -0
- package/dist/chunks/chunk-LNCOGBMI.js +144 -0
- package/dist/chunks/chunk-LOXBLQ3I.js +180 -0
- package/dist/chunks/chunk-NAWZ73QS.js +22 -0
- package/dist/chunks/chunk-OCV66TS2.js +705 -0
- package/dist/chunks/chunk-Q465X22Y.js +548 -0
- package/dist/chunks/chunk-QTB747K4.js +100 -0
- package/dist/chunks/chunk-QZNNCXXD.js +92 -0
- package/dist/chunks/chunk-R6AM4GJR.js +105 -0
- package/dist/chunks/chunk-TIJKJJDW.js +6 -0
- package/dist/chunks/chunk-VURTOVGI.js +61 -0
- package/dist/chunks/chunk-WAM6N4OF.js +269 -0
- package/dist/chunks/chunk-WW746NJF.js +94 -0
- package/dist/chunks/chunk-XC6CZP73.js +80 -0
- package/dist/chunks/chunk-ZGHQYZEH.js +45 -0
- package/dist/cli/bin.d.ts +2 -0
- package/dist/cli/bin.js +34 -0
- package/dist/cli/commands.d.ts +16 -0
- package/dist/cli/index.d.ts +13 -0
- package/dist/cli/index.js +25 -0
- package/dist/cli/mcp.d.ts +14 -0
- package/dist/clients/index.d.ts +2 -0
- package/dist/clients/index.js +107 -0
- package/dist/clients/plugin.d.ts +42 -0
- package/dist/combine/account.d.ts +4 -0
- package/dist/combine/adapter.d.ts +9 -0
- package/dist/combine/index.d.ts +2 -0
- package/dist/combine/index.js +345 -0
- package/dist/combine/route.d.ts +17 -0
- package/dist/exporter/index.d.ts +29 -0
- package/dist/exporter/index.js +77 -0
- package/dist/failover/index.d.ts +11 -0
- package/dist/failover/index.js +45 -0
- package/dist/fixtures/index.d.ts +27 -0
- package/dist/fixtures/index.js +241 -0
- package/dist/fixtures/scrub.d.ts +5 -0
- package/dist/heyreach/account.d.ts +11 -0
- package/dist/heyreach/adapter.d.ts +5 -0
- package/dist/heyreach/capabilities.d.ts +68 -0
- package/dist/heyreach/client.d.ts +20 -0
- package/dist/heyreach/inbox.d.ts +7 -0
- package/dist/heyreach/index.d.ts +18 -0
- package/dist/heyreach/index.js +1708 -0
- package/dist/heyreach/lookup.d.ts +15 -0
- package/dist/heyreach/map-account.d.ts +25 -0
- package/dist/heyreach/map-sequence.d.ts +5 -0
- package/dist/heyreach/map-stats.d.ts +10 -0
- package/dist/heyreach/map.d.ts +35 -0
- package/dist/heyreach/native-organization.d.ts +128 -0
- package/dist/heyreach/native-voice.d.ts +106 -0
- package/dist/heyreach/native.d.ts +496 -0
- package/dist/heyreach/paging.d.ts +7 -0
- package/dist/heyreach/webhooks.d.ts +2 -0
- package/dist/identity/index.d.ts +3 -0
- package/dist/identity/index.js +148 -0
- package/dist/identity/keys.d.ts +9 -0
- package/dist/identity/plugin.d.ts +34 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +119 -0
- package/dist/insights/copy/copy-audit.d.ts +55 -0
- package/dist/insights/copy/copy-checks.d.ts +44 -0
- package/dist/insights/copy/copy-reuse.d.ts +59 -0
- package/dist/insights/copy/index.d.ts +67 -0
- package/dist/insights/copy/reply-timing.d.ts +63 -0
- package/dist/insights/copy/shared.d.ts +53 -0
- package/dist/insights/copy/step-funnel.d.ts +66 -0
- package/dist/insights/copy/variant-test.d.ts +64 -0
- package/dist/insights/define.d.ts +98 -0
- package/dist/insights/index.d.ts +10 -0
- package/dist/insights/index.js +4873 -0
- package/dist/insights/ops/anomalies.d.ts +80 -0
- package/dist/insights/ops/campaign-diagnosis.d.ts +39 -0
- package/dist/insights/ops/campaign-ranking.d.ts +56 -0
- package/dist/insights/ops/channel-mix.d.ts +44 -0
- package/dist/insights/ops/client-report.d.ts +76 -0
- package/dist/insights/ops/diagnosis-checks.d.ts +48 -0
- package/dist/insights/ops/index.d.ts +135 -0
- package/dist/insights/ops/period-comparison.d.ts +86 -0
- package/dist/insights/ops/pipeline-forecast.d.ts +44 -0
- package/dist/insights/ops/shared.d.ts +149 -0
- package/dist/insights/ops/tag-rollup.d.ts +32 -0
- package/dist/insights/people/account-summary.d.ts +68 -0
- package/dist/insights/people/dropped-replies.d.ts +51 -0
- package/dist/insights/people/find.d.ts +18 -0
- package/dist/insights/people/hot-leads.d.ts +67 -0
- package/dist/insights/people/index.d.ts +88 -0
- package/dist/insights/people/lead-collisions.d.ts +43 -0
- package/dist/insights/people/person-summary.d.ts +46 -0
- package/dist/insights/people/personalization-gaps.d.ts +60 -0
- package/dist/insights/people/read.d.ts +40 -0
- package/dist/insights/people/suppression-check.d.ts +53 -0
- package/dist/insights/plugin.d.ts +40 -0
- package/dist/insights/registry.d.ts +335 -0
- package/dist/insights/senders/bounce-watch.d.ts +70 -0
- package/dist/insights/senders/domain-health.d.ts +69 -0
- package/dist/insights/senders/index.d.ts +74 -0
- package/dist/insights/senders/read.d.ts +37 -0
- package/dist/insights/senders/sender-capacity.d.ts +67 -0
- package/dist/insights/senders/sender-load.d.ts +52 -0
- package/dist/insights/senders/settings-audit.d.ts +48 -0
- package/dist/insights/senders/warmup-readiness.d.ts +39 -0
- package/dist/insights/stats.d.ts +45 -0
- package/dist/insights/tools.d.ts +16 -0
- package/dist/insights/types.d.ts +4 -0
- package/dist/instantly/adapter-account.d.ts +5 -0
- package/dist/instantly/adapter-mail.d.ts +3 -0
- package/dist/instantly/adapter.d.ts +7 -0
- package/dist/instantly/capabilities.d.ts +83 -0
- package/dist/instantly/client.d.ts +29 -0
- package/dist/instantly/index.d.ts +20 -0
- package/dist/instantly/index.js +2372 -0
- package/dist/instantly/map-account.d.ts +23 -0
- package/dist/instantly/map-lead.d.ts +18 -0
- package/dist/instantly/map-stats.d.ts +22 -0
- package/dist/instantly/map.d.ts +24 -0
- package/dist/instantly/native-agents-sales.d.ts +161 -0
- package/dist/instantly/native-agents.d.ts +156 -0
- package/dist/instantly/native-campaigns.d.ts +101 -0
- package/dist/instantly/native-leads.d.ts +93 -0
- package/dist/instantly/native-params.d.ts +24 -0
- package/dist/instantly/native-search.d.ts +82 -0
- package/dist/instantly/native-senders.d.ts +182 -0
- package/dist/instantly/native-supersearch.d.ts +149 -0
- package/dist/instantly/native-workspace.d.ts +170 -0
- package/dist/instantly/native.d.ts +1081 -0
- package/dist/instantly/pages.d.ts +29 -0
- package/dist/instantly/stats.d.ts +5 -0
- package/dist/instantly/webhooks.d.ts +2 -0
- package/dist/internal/adapter.d.ts +189 -0
- package/dist/internal/capabilities.d.ts +86 -0
- package/dist/internal/cursor.d.ts +10 -0
- package/dist/internal/engine/budget.d.ts +44 -0
- package/dist/internal/engine/engine.d.ts +45 -0
- package/dist/internal/engine/rate-store.d.ts +25 -0
- package/dist/internal/engine/request.d.ts +27 -0
- package/dist/internal/engine/retry.d.ts +21 -0
- package/dist/internal/engine/runtime.d.ts +13 -0
- package/dist/internal/entities-account.d.ts +135 -0
- package/dist/internal/entities.d.ts +389 -0
- package/dist/internal/env.d.ts +4 -0
- package/dist/internal/errors.d.ts +57 -0
- package/dist/internal/hooks.d.ts +55 -0
- package/dist/internal/json.d.ts +40 -0
- package/dist/internal/limits.d.ts +34 -0
- package/dist/internal/metrics.d.ts +52 -0
- package/dist/internal/native.d.ts +66 -0
- package/dist/internal/outbound/api.d.ts +267 -0
- package/dist/internal/outbound/collections.d.ts +31 -0
- package/dist/internal/outbound/core.d.ts +36 -0
- package/dist/internal/outbound/create.d.ts +16 -0
- package/dist/internal/outbound/handles.d.ts +7 -0
- package/dist/internal/outbound/native.d.ts +4 -0
- package/dist/internal/outbound/operation-shared.d.ts +28 -0
- package/dist/internal/outbound/operations-account.d.ts +29 -0
- package/dist/internal/outbound/operations.d.ts +42 -0
- package/dist/internal/outbound/outbound.d.ts +64 -0
- package/dist/internal/outbound/plugins.d.ts +40 -0
- package/dist/internal/outbound/raw.d.ts +9 -0
- package/dist/internal/outbound/specs-account.d.ts +16 -0
- package/dist/internal/outbound/specs.d.ts +14 -0
- package/dist/internal/outbound/stats.d.ts +7 -0
- package/dist/internal/outbound/validate.d.ts +5 -0
- package/dist/internal/outbound/walker.d.ts +22 -0
- package/dist/internal/record.d.ts +19 -0
- package/dist/internal/redact.d.ts +18 -0
- package/dist/internal/ref.d.ts +16 -0
- package/dist/internal/sha256.d.ts +4 -0
- package/dist/internal/text.d.ts +11 -0
- package/dist/internal/url.d.ts +9 -0
- package/dist/loader/index.d.ts +12 -0
- package/dist/loader/index.js +12 -0
- package/dist/memory/account-reads.d.ts +5 -0
- package/dist/memory/account.d.ts +67 -0
- package/dist/memory/adapter.d.ts +16 -0
- package/dist/memory/data.d.ts +122 -0
- package/dist/memory/demo.d.ts +7 -0
- package/dist/memory/index.d.ts +5 -0
- package/dist/memory/index.js +792 -0
- package/dist/memory/stats.d.ts +6 -0
- package/dist/memory/store.d.ts +18 -0
- package/dist/providers/index.d.ts +22 -0
- package/dist/providers/index.js +10 -0
- package/dist/reconcile/index.d.ts +2 -0
- package/dist/reconcile/index.js +72 -0
- package/dist/reconcile/plugin.d.ts +55 -0
- package/dist/redact/index.d.ts +2 -0
- package/dist/redact/index.js +192 -0
- package/dist/redact/plugin.d.ts +22 -0
- package/dist/redis/index.d.ts +41 -0
- package/dist/redis/index.js +114 -0
- package/dist/smartlead/account.d.ts +5 -0
- package/dist/smartlead/adapter.d.ts +5 -0
- package/dist/smartlead/capabilities.d.ts +85 -0
- package/dist/smartlead/client.d.ts +23 -0
- package/dist/smartlead/hmac.d.ts +9 -0
- package/dist/smartlead/index.d.ts +17 -0
- package/dist/smartlead/index.js +2170 -0
- package/dist/smartlead/leads.d.ts +6 -0
- package/dist/smartlead/lookup.d.ts +8 -0
- package/dist/smartlead/mail.d.ts +5 -0
- package/dist/smartlead/map-account.d.ts +22 -0
- package/dist/smartlead/map-messages.d.ts +31 -0
- package/dist/smartlead/map-stats.d.ts +37 -0
- package/dist/smartlead/map.d.ts +52 -0
- package/dist/smartlead/native-analytics.d.ts +242 -0
- package/dist/smartlead/native-campaigns.d.ts +211 -0
- package/dist/smartlead/native-inbox.d.ts +141 -0
- package/dist/smartlead/native-params.d.ts +33 -0
- package/dist/smartlead/native-services.d.ts +204 -0
- package/dist/smartlead/native.d.ts +785 -0
- package/dist/smartlead/shared.d.ts +28 -0
- package/dist/smartlead/stats.d.ts +5 -0
- package/dist/smartlead/webhooks.d.ts +2 -0
- package/dist/sync/index.d.ts +2 -0
- package/dist/sync/index.js +158 -0
- package/dist/sync/plugin.d.ts +58 -0
- package/dist/tools/account-tools.d.ts +21 -0
- package/dist/tools/ai-sdk.d.ts +8 -0
- package/dist/tools/ai-sdk.js +26 -0
- package/dist/tools/campaign-tools.d.ts +59 -0
- package/dist/tools/claude-agent.d.ts +18 -0
- package/dist/tools/claude-agent.js +40 -0
- package/dist/tools/index.d.ts +28 -0
- package/dist/tools/index.js +20 -0
- package/dist/tools/people-tools.d.ts +19 -0
- package/dist/tools/registry.d.ts +34 -0
- package/dist/tools/shared.d.ts +75 -0
- package/dist/tracing/index.d.ts +25 -0
- package/dist/tracing/index.js +69 -0
- package/dist/webhooks/index.d.ts +3 -0
- package/dist/webhooks/index.js +226 -0
- package/dist/webhooks/parse.d.ts +41 -0
- package/dist/webhooks/secret.d.ts +4 -0
- package/package.json +181 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AdapterContext, LeadQuery, Page } from "../internal/adapter.ts";
|
|
2
|
+
import type { Lead } from "../internal/entities.ts";
|
|
3
|
+
import type { SmartleadClient } from "./client.ts";
|
|
4
|
+
export declare const listLeads: (client: SmartleadClient, ctx: AdapterContext, query: LeadQuery) => Promise<Page<Lead>>;
|
|
5
|
+
/** `GET /leads/{id}`, then the lead's tags from `GET /crm/leads/tags`. */
|
|
6
|
+
export declare const getLead: (client: SmartleadClient, ctx: AdapterContext, id: string) => Promise<Lead>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AdapterContext, LeadQuery, Page } from "../internal/adapter.ts";
|
|
2
|
+
import type { Lead } from "../internal/entities.ts";
|
|
3
|
+
import type { SmartleadClient } from "./client.ts";
|
|
4
|
+
/**
|
|
5
|
+
* The records of one address, one per campaign the lead is in: one request,
|
|
6
|
+
* and a second for the category names when a campaign gives a category.
|
|
7
|
+
*/
|
|
8
|
+
export declare const leadsByEmail: (client: SmartleadClient, ctx: AdapterContext, query: LeadQuery) => Promise<Page<Lead>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { AdapterContext, MessageQuery, Page, ReplyQuery } from "../internal/adapter.ts";
|
|
2
|
+
import type { Message, Reply } from "../internal/entities.ts";
|
|
3
|
+
import type { SmartleadClient } from "./client.ts";
|
|
4
|
+
export declare const listMessages: (client: SmartleadClient, ctx: AdapterContext, query: MessageQuery) => Promise<Page<Message>>;
|
|
5
|
+
export declare const listReplies: (client: SmartleadClient, ctx: AdapterContext, query: ReplyQuery) => Promise<Page<Reply>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BlockEntry, CampaignSettings, LeadList, SenderHealth, Tag, WebhookSubscription } from "../internal/entities-account.ts";
|
|
2
|
+
import type { Json, JsonObject } from "../internal/json.ts";
|
|
3
|
+
import type { Identity } from "../internal/record.ts";
|
|
4
|
+
/** `GET /campaigns/{id}` -> how the campaign is set up to send. */
|
|
5
|
+
export declare const toSettings: (identity: Identity, campaignId: string, raw: JsonObject) => CampaignSettings;
|
|
6
|
+
/**
|
|
7
|
+
* `GET /email-accounts/{id}/` and `GET /email-accounts/{id}/warmup-stats`
|
|
8
|
+
* (the last seven days) -> a mailbox's health. Smartlead's API reports no DNS
|
|
9
|
+
* records and no block list check. `raw` has no SMTP or IMAP password.
|
|
10
|
+
*/
|
|
11
|
+
export declare const toHealth: (identity: Identity, account: JsonObject, stats: Json | undefined) => SenderHealth;
|
|
12
|
+
/** One item of `GET /lead-list/`. */
|
|
13
|
+
export declare const toList: (identity: Identity, raw: JsonObject) => LeadList;
|
|
14
|
+
/** One item of `GET /leads/get-domain-block-list`: an address or a domain. */
|
|
15
|
+
export declare const toBlockEntry: (identity: Identity, raw: JsonObject) => BlockEntry;
|
|
16
|
+
/** One item of `GET /email-accounts/tags`. Smartlead tags have no description. */
|
|
17
|
+
export declare const toTag: (identity: Identity, raw: JsonObject) => Tag;
|
|
18
|
+
/**
|
|
19
|
+
* One item of `GET /campaigns/{id}/webhooks`. `campaignId` is the campaign
|
|
20
|
+
* that was asked, used when the item does not name its own.
|
|
21
|
+
*/
|
|
22
|
+
export declare const toWebhook: (identity: Identity, campaignId: string, raw: JsonObject) => WebhookSubscription;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Message, Reply, ReplyCategory } from "../internal/entities.ts";
|
|
2
|
+
import type { Json, JsonObject } from "../internal/json.ts";
|
|
3
|
+
import type { Identity } from "../internal/record.ts";
|
|
4
|
+
/** Category id -> our category, for the ids that mean one. */
|
|
5
|
+
export type CategoryMap = ReadonlyMap<string, ReplyCategory>;
|
|
6
|
+
/**
|
|
7
|
+
* `GET /leads/fetch-categories` -> the meaning of each category id. Ids are
|
|
8
|
+
* never hardcoded: an account can rename and add categories.
|
|
9
|
+
*/
|
|
10
|
+
export declare const toCategoryMap: (body: Json | undefined) => CategoryMap;
|
|
11
|
+
/** The map as it travels in a cursor, and back. */
|
|
12
|
+
export declare const categoriesToJson: (categories: CategoryMap) => JsonObject;
|
|
13
|
+
export declare const categoriesFromJson: (value: Json | undefined) => CategoryMap;
|
|
14
|
+
/** The category ids that mean `category`. */
|
|
15
|
+
export declare const categoryIds: (categories: CategoryMap, category: ReplyCategory) => number[];
|
|
16
|
+
/** One lead row of `GET /campaigns/all-leads-activities` -> its messages. */
|
|
17
|
+
export declare const toActivityMessages: (identity: Identity, row: JsonObject, includeBody: boolean) => Message[];
|
|
18
|
+
/** One item of a lead's message history: `type` is SENT or REPLY. */
|
|
19
|
+
export declare const toHistoryMessage: (identity: Identity, place: {
|
|
20
|
+
readonly campaignId: string;
|
|
21
|
+
readonly leadId: string;
|
|
22
|
+
}, item: JsonObject, includeBody: boolean) => Message;
|
|
23
|
+
/** `GET /master-inbox/{id}` -> every message of the thread, in order. */
|
|
24
|
+
export declare const toThreadMessages: (identity: Identity, thread: JsonObject, includeBody: boolean) => Message[];
|
|
25
|
+
/**
|
|
26
|
+
* One thread of `POST /master-inbox/inbox-replies` -> its replies: every
|
|
27
|
+
* inbound message of `message_history` when the thread carries one, otherwise
|
|
28
|
+
* the latest reply. The category is the lead's, so every reply of the thread
|
|
29
|
+
* gets the same one.
|
|
30
|
+
*/
|
|
31
|
+
export declare const toInboxReplies: (identity: Identity, item: JsonObject, categories: CategoryMap, includeBody: boolean) => Reply[];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { MetricRow, MetricScope } from "../internal/entities.ts";
|
|
2
|
+
import type { JsonObject } from "../internal/json.ts";
|
|
3
|
+
import type { Identity } from "../internal/record.ts";
|
|
4
|
+
export interface RowScope extends Identity {
|
|
5
|
+
readonly scope: MetricScope;
|
|
6
|
+
readonly scopeId: string;
|
|
7
|
+
}
|
|
8
|
+
/** The timezone every dated request asks for. */
|
|
9
|
+
export declare const TIMEZONE = "UTC";
|
|
10
|
+
/**
|
|
11
|
+
* `GET /campaigns/{id}/analytics`: lifetime totals. `interested` is the
|
|
12
|
+
* number of leads in a category with a positive sentiment.
|
|
13
|
+
*/
|
|
14
|
+
export declare const lifetimeRow: (scope: RowScope, raw: JsonObject) => MetricRow;
|
|
15
|
+
/**
|
|
16
|
+
* `GET /campaigns/{id}/analytics-by-date`: totals for a window. The window
|
|
17
|
+
* separates out-of-office replies, so `replied` leaves them out when it can.
|
|
18
|
+
*/
|
|
19
|
+
export declare const windowRow: (scope: RowScope, raw: JsonObject) => MetricRow;
|
|
20
|
+
/** `GET /analytics/overall-stats-v2`: `data.overall_stats`. */
|
|
21
|
+
export declare const overallRow: (scope: RowScope, raw: JsonObject) => MetricRow;
|
|
22
|
+
/**
|
|
23
|
+
* `GET /analytics/day-wise-overall-stats`: one row per day. Its `bounced` is
|
|
24
|
+
* documented as always 0, so it is not read.
|
|
25
|
+
*/
|
|
26
|
+
export declare const dayRow: (scope: RowScope, raw: JsonObject) => MetricRow;
|
|
27
|
+
/**
|
|
28
|
+
* One mailbox's row of `GET /analytics/mailbox/name-wise-health-metrics`, or
|
|
29
|
+
* `undefined` when the response has none for it: every count is then `null`.
|
|
30
|
+
* `opened` is not said to be unique, so it is the total.
|
|
31
|
+
*/
|
|
32
|
+
export declare const mailboxRow: (scope: RowScope, raw: JsonObject | undefined) => MetricRow;
|
|
33
|
+
/**
|
|
34
|
+
* One step of `GET /campaigns/{id}/sequence-analytics`: a row per variant,
|
|
35
|
+
* or the step total when the step has no variants.
|
|
36
|
+
*/
|
|
37
|
+
export declare const stepRows: (scope: RowScope, step: JsonObject) => MetricRow[];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Campaign, CampaignStatus, Lead, Sender, Sequence, Workspace } from "../internal/entities.ts";
|
|
2
|
+
import type { Json, JsonObject } from "../internal/json.ts";
|
|
3
|
+
import type { Identity } from "../internal/record.ts";
|
|
4
|
+
/**
|
|
5
|
+
* Several endpoints are documented both bare and wrapped in
|
|
6
|
+
* `{ ok | success, data }`. Returns the payload either way.
|
|
7
|
+
*/
|
|
8
|
+
export declare const unwrap: (body: Json | undefined) => Json | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* A copy without any key that holds a credential. Email accounts come back
|
|
11
|
+
* with their SMTP and IMAP passwords, and webhooks with their shared secret.
|
|
12
|
+
*/
|
|
13
|
+
export declare const withoutSecrets: (value: Json) => Json;
|
|
14
|
+
export declare const campaignStatus: (value: Json | undefined) => CampaignStatus;
|
|
15
|
+
export declare const toCampaign: (identity: Identity, raw: JsonObject) => Campaign;
|
|
16
|
+
/** `GET /campaigns/{id}/sequences`: an array of steps, bare or wrapped. */
|
|
17
|
+
export declare const toSequence: (identity: Identity, campaignId: string, body: Json) => Sequence;
|
|
18
|
+
/**
|
|
19
|
+
* A subsequence is a child campaign: `campaign` is its row in the campaign
|
|
20
|
+
* list and `body` is its own `GET /campaigns/{id}/sequences`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const toSubsequence: (identity: Identity, parentId: string, campaign: JsonObject, body: Json) => Sequence;
|
|
23
|
+
export declare const reputation: (value: Json | undefined) => number | null;
|
|
24
|
+
/** A mailbox. `raw` is the payload without its SMTP and IMAP passwords. */
|
|
25
|
+
export declare const toSender: (identity: Identity, raw: JsonObject) => Sender;
|
|
26
|
+
/**
|
|
27
|
+
* A row of `GET /campaigns/{id}/leads`: the lead inside one campaign. The
|
|
28
|
+
* status and the creation time belong to that campaign membership.
|
|
29
|
+
*/
|
|
30
|
+
export declare const toCampaignLead: (identity: Identity, campaignId: string, row: JsonObject, categories: Readonly<Record<string, string>>) => Lead;
|
|
31
|
+
interface FoundPlace {
|
|
32
|
+
readonly campaignId: string;
|
|
33
|
+
/** The campaign's item: of `lead_campaign_data`, or of the lead's campaigns. */
|
|
34
|
+
readonly entry: JsonObject;
|
|
35
|
+
readonly categories: Readonly<Record<string, string>>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* `GET /leads/?email=`: the lead inside one of its campaigns. `raw` has the
|
|
39
|
+
* shape of a campaign's lead row: the campaign's item with the lead under
|
|
40
|
+
* `lead`. Neither read gives the lead's status in the campaign, so the status
|
|
41
|
+
* is unknown unless the lead is unsubscribed, and the creation time is the
|
|
42
|
+
* lead's own.
|
|
43
|
+
*/
|
|
44
|
+
export declare const toFoundLead: (identity: Identity, found: JsonObject, place: FoundPlace) => Lead;
|
|
45
|
+
/**
|
|
46
|
+
* `GET /leads/{id}`: the lead on its own, with no campaign. `tags` are the
|
|
47
|
+
* names from `GET /crm/leads/tags?leadId=`.
|
|
48
|
+
*/
|
|
49
|
+
export declare const toLead: (identity: Identity, raw: JsonObject, tags: readonly string[]) => Lead;
|
|
50
|
+
/** A Smartlead client (sub-account). */
|
|
51
|
+
export declare const toWorkspace: (identity: Identity, raw: JsonObject) => Workspace;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
export declare const ANALYTICS: {
|
|
2
|
+
readonly analyticsCampaignFollowUpReplyRate: {
|
|
3
|
+
readonly description: "The reply rate of follow-up steps (second email onwards).";
|
|
4
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/followup-reply-rate";
|
|
5
|
+
readonly method: "GET";
|
|
6
|
+
readonly params: {
|
|
7
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
8
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
9
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
10
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
11
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
12
|
+
};
|
|
13
|
+
readonly path: "/analytics/campaign/follow-up-reply-rate";
|
|
14
|
+
};
|
|
15
|
+
readonly analyticsCampaignLeadToReplyTime: {
|
|
16
|
+
readonly description: "The average time from a lead's first email to its reply.";
|
|
17
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/lead-to-reply-time";
|
|
18
|
+
readonly method: "GET";
|
|
19
|
+
readonly params: {
|
|
20
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
21
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
22
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
23
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
24
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
25
|
+
};
|
|
26
|
+
readonly path: "/analytics/campaign/lead-to-reply-time";
|
|
27
|
+
};
|
|
28
|
+
readonly analyticsCampaignLeadsForFirstReply: {
|
|
29
|
+
readonly description: "How many leads are contacted, on average, per first reply.";
|
|
30
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/leads-for-first-reply";
|
|
31
|
+
readonly method: "GET";
|
|
32
|
+
readonly params: {
|
|
33
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
34
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
35
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
36
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
37
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
38
|
+
};
|
|
39
|
+
readonly path: "/analytics/campaign/leads-take-for-first-reply";
|
|
40
|
+
};
|
|
41
|
+
readonly analyticsCampaignList: {
|
|
42
|
+
readonly description: "The id and name of every campaign, for analytics filters.";
|
|
43
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/campaign-list";
|
|
44
|
+
readonly method: "GET";
|
|
45
|
+
readonly params: {
|
|
46
|
+
client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
47
|
+
};
|
|
48
|
+
readonly path: "/analytics/campaign/list";
|
|
49
|
+
};
|
|
50
|
+
readonly analyticsCampaignPerformance: {
|
|
51
|
+
readonly description: "One row per campaign in a date window: counts, rates and lead totals.";
|
|
52
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/campaign-performance";
|
|
53
|
+
readonly method: "GET";
|
|
54
|
+
readonly params: {
|
|
55
|
+
readonly full_data: import("./native-params.ts").Placed<"query", "string">;
|
|
56
|
+
readonly limit: import("./native-params.ts").Placed<"query", "string">;
|
|
57
|
+
readonly offset: import("./native-params.ts").Placed<"query", "string">;
|
|
58
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
59
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
60
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
61
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
62
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
63
|
+
};
|
|
64
|
+
readonly path: "/analytics/campaign/overall-stats";
|
|
65
|
+
};
|
|
66
|
+
readonly analyticsCampaignResponseStats: {
|
|
67
|
+
readonly description: "Replies per campaign in a date window, split by reply sentiment.";
|
|
68
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/campaign-response-stats";
|
|
69
|
+
readonly method: "GET";
|
|
70
|
+
readonly params: {
|
|
71
|
+
readonly full_data: import("./native-params.ts").Placed<"query", "string">;
|
|
72
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
73
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
74
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
75
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
76
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
77
|
+
};
|
|
78
|
+
readonly path: "/analytics/campaign/response-stats";
|
|
79
|
+
};
|
|
80
|
+
readonly analyticsCampaignStatusStats: {
|
|
81
|
+
readonly description: "How many campaigns are in each status.";
|
|
82
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/campaign-status-stats";
|
|
83
|
+
readonly method: "GET";
|
|
84
|
+
readonly params: {
|
|
85
|
+
client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
86
|
+
};
|
|
87
|
+
readonly path: "/analytics/campaign/status-stats";
|
|
88
|
+
};
|
|
89
|
+
readonly analyticsClientList: {
|
|
90
|
+
readonly description: "The id and name of every client, for analytics filters.";
|
|
91
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/client-list";
|
|
92
|
+
readonly method: "GET";
|
|
93
|
+
readonly params: {
|
|
94
|
+
client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
95
|
+
};
|
|
96
|
+
readonly path: "/analytics/client/list";
|
|
97
|
+
};
|
|
98
|
+
readonly analyticsClientMonthlyCount: {
|
|
99
|
+
readonly description: "How many clients the account had, month by month.";
|
|
100
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/month-wise-client-count";
|
|
101
|
+
readonly method: "GET";
|
|
102
|
+
readonly params: {
|
|
103
|
+
client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
104
|
+
};
|
|
105
|
+
readonly path: "/analytics/client/month-wise-count";
|
|
106
|
+
};
|
|
107
|
+
readonly analyticsClientPerformance: {
|
|
108
|
+
readonly description: "One row per client in a date window, with that client's campaign totals.";
|
|
109
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/client-performance";
|
|
110
|
+
readonly method: "GET";
|
|
111
|
+
readonly params: {
|
|
112
|
+
readonly filter: import("./native-params.ts").Placed<"query", "string">;
|
|
113
|
+
readonly full_data: import("./native-params.ts").Placed<"query", "string">;
|
|
114
|
+
readonly limit: import("./native-params.ts").Placed<"query", "string">;
|
|
115
|
+
readonly offset: import("./native-params.ts").Placed<"query", "string">;
|
|
116
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
117
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
118
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
119
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
120
|
+
};
|
|
121
|
+
readonly path: "/analytics/client/overall-stats";
|
|
122
|
+
};
|
|
123
|
+
readonly analyticsDailyBySentTime: {
|
|
124
|
+
readonly description: "Daily sent, opened, replied and bounced counts, each counted on the day its email was sent. The only daily read that reports bounces.";
|
|
125
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/day-wise-sent-time";
|
|
126
|
+
readonly method: "GET";
|
|
127
|
+
readonly params: {
|
|
128
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
129
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
130
|
+
readonly timezone: import("./native-params.ts").Needed<"query", "string">;
|
|
131
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
132
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
133
|
+
};
|
|
134
|
+
readonly path: "/analytics/day-wise-overall-stats-by-sent-time";
|
|
135
|
+
};
|
|
136
|
+
readonly analyticsDailyPositiveReplies: {
|
|
137
|
+
readonly description: "Positive replies per day, counted on the day of the reply.";
|
|
138
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/day-wise-positive-reply";
|
|
139
|
+
readonly method: "GET";
|
|
140
|
+
readonly params: {
|
|
141
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
142
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
143
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
144
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
145
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
146
|
+
};
|
|
147
|
+
readonly path: "/analytics/day-wise-positive-reply-stats";
|
|
148
|
+
};
|
|
149
|
+
readonly analyticsDailyPositiveRepliesBySentTime: {
|
|
150
|
+
readonly description: "Positive replies per day, counted on the day the replied-to email was sent.";
|
|
151
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/day-wise-positive-sent-time";
|
|
152
|
+
readonly method: "GET";
|
|
153
|
+
readonly params: {
|
|
154
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
155
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
156
|
+
readonly timezone: import("./native-params.ts").Needed<"query", "string">;
|
|
157
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
158
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
159
|
+
};
|
|
160
|
+
readonly path: "/analytics/day-wise-positive-reply-stats-by-sent-time";
|
|
161
|
+
};
|
|
162
|
+
readonly analyticsLeadCategoryResponses: {
|
|
163
|
+
readonly description: "Replies in a date window by lead category, with each one's share.";
|
|
164
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/lead-category-response";
|
|
165
|
+
readonly method: "GET";
|
|
166
|
+
readonly params: {
|
|
167
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
168
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
169
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
170
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
171
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
172
|
+
};
|
|
173
|
+
readonly path: "/analytics/lead/category-wise-response";
|
|
174
|
+
};
|
|
175
|
+
readonly analyticsLeadStats: {
|
|
176
|
+
readonly description: "Leads reached in a date window: the total, new leads and follow-ups.";
|
|
177
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/lead-stats";
|
|
178
|
+
readonly method: "GET";
|
|
179
|
+
readonly params: {
|
|
180
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
181
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
182
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
183
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
184
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
185
|
+
};
|
|
186
|
+
readonly path: "/analytics/lead/overall-stats";
|
|
187
|
+
};
|
|
188
|
+
readonly analyticsMailboxDomainHealth: {
|
|
189
|
+
readonly description: "Sent, opened, replied and bounced counts per sending domain in a date window.";
|
|
190
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/domain-wise-health";
|
|
191
|
+
readonly lane: "domain-wise-health";
|
|
192
|
+
readonly method: "GET";
|
|
193
|
+
readonly params: {
|
|
194
|
+
readonly full_data: import("./native-params.ts").Placed<"query", "string">;
|
|
195
|
+
readonly limit: import("./native-params.ts").Placed<"query", "string">;
|
|
196
|
+
readonly offset: import("./native-params.ts").Placed<"query", "string">;
|
|
197
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
198
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
199
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
200
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
201
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
202
|
+
};
|
|
203
|
+
readonly path: "/analytics/mailbox/domain-wise-health-metrics";
|
|
204
|
+
};
|
|
205
|
+
readonly analyticsMailboxOverall: {
|
|
206
|
+
readonly description: "How many mailboxes are connected, in use, disconnected, or enabled without warmup.";
|
|
207
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/mailbox-health";
|
|
208
|
+
readonly method: "GET";
|
|
209
|
+
readonly params: {
|
|
210
|
+
client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
211
|
+
};
|
|
212
|
+
readonly path: "/analytics/mailbox/overall-stats";
|
|
213
|
+
};
|
|
214
|
+
readonly analyticsMailboxProviderPerformance: {
|
|
215
|
+
readonly description: "Counts and rates in a date window per mailbox provider (Gmail, Outlook, SMTP).";
|
|
216
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/provider-performance";
|
|
217
|
+
readonly method: "GET";
|
|
218
|
+
readonly params: {
|
|
219
|
+
readonly full_data: import("./native-params.ts").Placed<"query", "string">;
|
|
220
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
221
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
222
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
223
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
224
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
225
|
+
};
|
|
226
|
+
readonly path: "/analytics/mailbox/provider-wise-overall-performance";
|
|
227
|
+
};
|
|
228
|
+
readonly analyticsTeamBoard: {
|
|
229
|
+
readonly description: "Results in a date window per team member.";
|
|
230
|
+
readonly docs: "https://api.smartlead.ai/api-reference/analytics/team-board-stats";
|
|
231
|
+
readonly method: "GET";
|
|
232
|
+
readonly params: {
|
|
233
|
+
readonly full_data: import("./native-params.ts").Placed<"query", "string">;
|
|
234
|
+
readonly campaign_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
235
|
+
readonly client_ids: import("./native-params.ts").Placed<"query", "string">;
|
|
236
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
237
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
238
|
+
readonly timezone: import("./native-params.ts").Placed<"query", "string">;
|
|
239
|
+
};
|
|
240
|
+
readonly path: "/analytics/team-board/overall-stats";
|
|
241
|
+
};
|
|
242
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export declare const CAMPAIGN_READS: {
|
|
2
|
+
readonly campaignEmailStatistics: {
|
|
3
|
+
readonly description: "One row per email a campaign sent: the lead, the step, and when it was sent, opened, clicked, replied to or bounced.";
|
|
4
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaign-statistics/get-by-id";
|
|
5
|
+
readonly method: "GET";
|
|
6
|
+
readonly params: {
|
|
7
|
+
readonly email_sequence_number: import("./native-params.ts").Placed<"query", "number">;
|
|
8
|
+
readonly email_status: import("./native-params.ts").Placed<"query", "string">;
|
|
9
|
+
readonly sent_time_end_date: import("./native-params.ts").Placed<"query", "string">;
|
|
10
|
+
readonly sent_time_start_date: import("./native-params.ts").Placed<"query", "string">;
|
|
11
|
+
readonly limit: import("./native-params.ts").Placed<"query", "number">;
|
|
12
|
+
readonly offset: import("./native-params.ts").Placed<"query", "number">;
|
|
13
|
+
readonly campaign_id: import("./native-params.ts").Placed<"path", "string">;
|
|
14
|
+
};
|
|
15
|
+
readonly path: "/campaigns/{campaign_id}/statistics";
|
|
16
|
+
};
|
|
17
|
+
readonly campaignLeadSearch: {
|
|
18
|
+
readonly description: "A campaign's leads filtered by text, status, category, mailbox or step. Refuses client-level keys.";
|
|
19
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/search-leads";
|
|
20
|
+
readonly method: "POST";
|
|
21
|
+
readonly params: {
|
|
22
|
+
readonly campaignId: import("./native-params.ts").Placed<"path", "string">;
|
|
23
|
+
readonly deletedEmailAddresses: import("./native-params.ts").Placed<"body", "json">;
|
|
24
|
+
readonly emailAccountIds: import("./native-params.ts").Placed<"body", "json">;
|
|
25
|
+
readonly emailStatuses: import("./native-params.ts").Placed<"body", "json">;
|
|
26
|
+
readonly espDomainTypes: import("./native-params.ts").Placed<"body", "json">;
|
|
27
|
+
readonly fieldSet: import("./native-params.ts").Placed<"body", "string">;
|
|
28
|
+
readonly filterLeadsForManualCompletion: import("./native-params.ts").Placed<"body", "boolean">;
|
|
29
|
+
readonly filterManualSeqIds: import("./native-params.ts").Placed<"body", "json">;
|
|
30
|
+
readonly includeSenderBounce: import("./native-params.ts").Placed<"body", "boolean">;
|
|
31
|
+
readonly lastSeenLeadId: import("./native-params.ts").Placed<"body", "number">;
|
|
32
|
+
readonly lastSeenReplyTime: import("./native-params.ts").Placed<"body", "string">;
|
|
33
|
+
readonly leadCategoryIds: import("./native-params.ts").Placed<"body", "json">;
|
|
34
|
+
readonly leadCategoryIsNull: import("./native-params.ts").Placed<"body", "boolean">;
|
|
35
|
+
readonly leadStatuses: import("./native-params.ts").Placed<"body", "json">;
|
|
36
|
+
readonly limit: import("./native-params.ts").Placed<"body", "number">;
|
|
37
|
+
readonly searchText: import("./native-params.ts").Placed<"body", "string">;
|
|
38
|
+
readonly segTypes: import("./native-params.ts").Placed<"body", "json">;
|
|
39
|
+
readonly seqScheduleType: import("./native-params.ts").Placed<"body", "string">;
|
|
40
|
+
readonly seqVariantIds: import("./native-params.ts").Placed<"body", "json">;
|
|
41
|
+
readonly sequenceIds: import("./native-params.ts").Placed<"body", "json">;
|
|
42
|
+
readonly sequenceNumbers: import("./native-params.ts").Placed<"body", "json">;
|
|
43
|
+
readonly statusFilter: import("./native-params.ts").Placed<"body", "string">;
|
|
44
|
+
};
|
|
45
|
+
readonly path: "/campaigns/{campaignId}/leads/filter";
|
|
46
|
+
};
|
|
47
|
+
readonly campaignLeadStatistics: {
|
|
48
|
+
readonly description: "Per-lead statistics of a campaign. The response is documented nowhere.";
|
|
49
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaign-statistics/lead-statistics";
|
|
50
|
+
readonly lane: "leads-statistics";
|
|
51
|
+
readonly method: "GET";
|
|
52
|
+
readonly params: {
|
|
53
|
+
readonly event_time_gt: import("./native-params.ts").Placed<"query", "string">;
|
|
54
|
+
readonly limit: import("./native-params.ts").Placed<"query", "number">;
|
|
55
|
+
readonly offset: import("./native-params.ts").Placed<"query", "number">;
|
|
56
|
+
readonly campaign_id: import("./native-params.ts").Placed<"path", "string">;
|
|
57
|
+
};
|
|
58
|
+
readonly path: "/campaigns/{campaign_id}/leads-statistics";
|
|
59
|
+
};
|
|
60
|
+
readonly campaignLeadsExport: {
|
|
61
|
+
readonly description: "Every lead of a campaign as CSV text, with open, click and reply counts per lead.";
|
|
62
|
+
readonly docs: "https://api.smartlead.ai/api-reference/leads/export";
|
|
63
|
+
readonly method: "GET";
|
|
64
|
+
readonly params: {
|
|
65
|
+
campaign_id: import("./native-params.ts").Placed<"path", "string">;
|
|
66
|
+
};
|
|
67
|
+
readonly path: "/campaigns/{campaign_id}/leads-export";
|
|
68
|
+
};
|
|
69
|
+
readonly campaignMailboxStatistics: {
|
|
70
|
+
readonly description: "A campaign's results per mailbox. The response is documented nowhere.";
|
|
71
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaign-statistics/mailbox-statistics";
|
|
72
|
+
readonly method: "GET";
|
|
73
|
+
readonly params: {
|
|
74
|
+
readonly client_id: import("./native-params.ts").Placed<"query", "number">;
|
|
75
|
+
readonly end_date: import("./native-params.ts").Placed<"query", "string">;
|
|
76
|
+
readonly start_date: import("./native-params.ts").Placed<"query", "string">;
|
|
77
|
+
readonly time_zone: import("./native-params.ts").Placed<"query", "string">;
|
|
78
|
+
readonly limit: import("./native-params.ts").Placed<"query", "number">;
|
|
79
|
+
readonly offset: import("./native-params.ts").Placed<"query", "number">;
|
|
80
|
+
readonly campaign_id: import("./native-params.ts").Placed<"path", "string">;
|
|
81
|
+
};
|
|
82
|
+
readonly path: "/campaigns/{campaign_id}/mailbox-statistics";
|
|
83
|
+
};
|
|
84
|
+
readonly campaignMessageHistoryBulk: {
|
|
85
|
+
readonly description: "The message history of many of a campaign's leads at once.";
|
|
86
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/get-leads-history-bulk";
|
|
87
|
+
readonly method: "POST";
|
|
88
|
+
readonly params: {
|
|
89
|
+
readonly event_time_gt: import("./native-params.ts").Placed<"query", "string">;
|
|
90
|
+
readonly lead_ids: import("./native-params.ts").Placed<"body", "json">;
|
|
91
|
+
readonly campaign_id: import("./native-params.ts").Placed<"path", "string">;
|
|
92
|
+
};
|
|
93
|
+
readonly path: "/campaigns/{campaign_id}/message-history-for-leads/bbfbdsFGHlBr76ruhjvh6fhHL";
|
|
94
|
+
};
|
|
95
|
+
readonly campaignPromptTemplate: {
|
|
96
|
+
readonly description: "The AI prompt that categorises a campaign's replies, and the categories it may assign.";
|
|
97
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/get-prompt-template";
|
|
98
|
+
readonly method: "GET";
|
|
99
|
+
readonly params: {
|
|
100
|
+
campaign_id: import("./native-params.ts").Placed<"path", "string">;
|
|
101
|
+
};
|
|
102
|
+
readonly path: "/campaigns/{campaign_id}/prompt-template";
|
|
103
|
+
};
|
|
104
|
+
readonly campaignTopLevelAnalyticsByDate: {
|
|
105
|
+
readonly description: "A campaign's top-level totals and rates in a date window, as the vendor computes them.";
|
|
106
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaign-statistics/top-level-by-date";
|
|
107
|
+
readonly method: "GET";
|
|
108
|
+
readonly params: {
|
|
109
|
+
readonly end_date: import("./native-params.ts").Needed<"query", "string">;
|
|
110
|
+
readonly start_date: import("./native-params.ts").Needed<"query", "string">;
|
|
111
|
+
readonly campaign_id: import("./native-params.ts").Placed<"path", "string">;
|
|
112
|
+
};
|
|
113
|
+
readonly path: "/campaigns/{campaign_id}/top-level-analytics-by-date";
|
|
114
|
+
};
|
|
115
|
+
readonly campaignWebhookSummary: {
|
|
116
|
+
readonly description: "How many webhook calls a campaign made in a time window, and how many failed.";
|
|
117
|
+
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/get-webhook-summary";
|
|
118
|
+
readonly method: "GET";
|
|
119
|
+
readonly params: {
|
|
120
|
+
readonly campaignId: import("./native-params.ts").Placed<"path", "string">;
|
|
121
|
+
readonly fromTime: import("./native-params.ts").Needed<"query", "string">;
|
|
122
|
+
readonly toTime: import("./native-params.ts").Needed<"query", "string">;
|
|
123
|
+
};
|
|
124
|
+
readonly path: "/campaigns/{campaignId}/webhooks/summary";
|
|
125
|
+
};
|
|
126
|
+
readonly client: {
|
|
127
|
+
readonly description: "One client, with its permissions, credits and code snippets on request. Refuses client-level keys.";
|
|
128
|
+
readonly docs: "https://api.smartlead.ai/api-reference/clients/get-by-id";
|
|
129
|
+
readonly method: "GET";
|
|
130
|
+
readonly params: {
|
|
131
|
+
readonly id: import("./native-params.ts").Placed<"path", "string">;
|
|
132
|
+
readonly includeCodeIntegrations: import("./native-params.ts").Placed<"query", "boolean">;
|
|
133
|
+
readonly includeCredits: import("./native-params.ts").Placed<"query", "boolean">;
|
|
134
|
+
readonly includePermissions: import("./native-params.ts").Placed<"query", "boolean">;
|
|
135
|
+
};
|
|
136
|
+
readonly path: "/client/{id}";
|
|
137
|
+
};
|
|
138
|
+
readonly leadByEmail: {
|
|
139
|
+
readonly description: "The lead with an email address and every campaign it is in. An unknown address returns an empty object.";
|
|
140
|
+
readonly docs: "https://api.smartlead.ai/api-reference/leads/get-by-email";
|
|
141
|
+
readonly method: "GET";
|
|
142
|
+
readonly params: {
|
|
143
|
+
readonly email: import("./native-params.ts").Needed<"query", "string">;
|
|
144
|
+
};
|
|
145
|
+
readonly path: "/leads/";
|
|
146
|
+
};
|
|
147
|
+
readonly leadCampaignOverview: {
|
|
148
|
+
readonly description: "A lead's status, category, revenue and current step in each of its campaigns. Refuses client-level keys.";
|
|
149
|
+
readonly docs: "https://api.smartlead.ai/api-reference/leads/campaign-overview";
|
|
150
|
+
readonly method: "GET";
|
|
151
|
+
readonly params: {
|
|
152
|
+
readonly leadId: import("./native-params.ts").Placed<"path", "string">;
|
|
153
|
+
};
|
|
154
|
+
readonly path: "/leads/{leadId}/campaign-overview";
|
|
155
|
+
};
|
|
156
|
+
readonly leadList: {
|
|
157
|
+
readonly description: "One lead list: its name, lead count and dates.";
|
|
158
|
+
readonly docs: "https://api.smartlead.ai/api-reference/lead-lists/get-by-id";
|
|
159
|
+
readonly method: "GET";
|
|
160
|
+
readonly params: {
|
|
161
|
+
readonly id: import("./native-params.ts").Placed<"path", "string">;
|
|
162
|
+
};
|
|
163
|
+
readonly path: "/lead-list/{id}";
|
|
164
|
+
};
|
|
165
|
+
readonly leadNotes: {
|
|
166
|
+
readonly description: "The notes written on a lead.";
|
|
167
|
+
readonly docs: "https://api.smartlead.ai/api-reference/lead-notes/get-all";
|
|
168
|
+
readonly method: "GET";
|
|
169
|
+
readonly params: {
|
|
170
|
+
readonly id: import("./native-params.ts").Placed<"path", "string">;
|
|
171
|
+
};
|
|
172
|
+
readonly path: "/crm/leads/notes/{id}";
|
|
173
|
+
};
|
|
174
|
+
readonly leadSequenceDetails: {
|
|
175
|
+
readonly description: "The send status of every step for a lead in a campaign. Refuses client-level keys.";
|
|
176
|
+
readonly docs: "https://api.smartlead.ai/api-reference/leads/sequence-details";
|
|
177
|
+
readonly method: "GET";
|
|
178
|
+
readonly params: {
|
|
179
|
+
readonly campaignId: import("./native-params.ts").Placed<"query", "number">;
|
|
180
|
+
readonly leadMapId: import("./native-params.ts").Placed<"path", "string">;
|
|
181
|
+
};
|
|
182
|
+
readonly path: "/leads/{leadMapId}/sequence-details";
|
|
183
|
+
};
|
|
184
|
+
readonly leadTasks: {
|
|
185
|
+
readonly description: "The tasks created for a lead.";
|
|
186
|
+
readonly docs: "https://api.smartlead.ai/api-reference/lead-tasks/get-all";
|
|
187
|
+
readonly method: "GET";
|
|
188
|
+
readonly params: {
|
|
189
|
+
readonly id: import("./native-params.ts").Placed<"path", "string">;
|
|
190
|
+
};
|
|
191
|
+
readonly path: "/crm/leads/tasks/{id}";
|
|
192
|
+
};
|
|
193
|
+
readonly senderTagsByEmail: {
|
|
194
|
+
readonly description: "The tags of the mailboxes with the given addresses.";
|
|
195
|
+
readonly docs: "https://api.smartlead.ai/api-reference/email-account-tags/get-all";
|
|
196
|
+
readonly method: "POST";
|
|
197
|
+
readonly params: {
|
|
198
|
+
readonly email_ids: import("./native-params.ts").Needed<"body", "json">;
|
|
199
|
+
};
|
|
200
|
+
readonly path: "/email-accounts/tag-list";
|
|
201
|
+
};
|
|
202
|
+
readonly webhook: {
|
|
203
|
+
readonly description: "One webhook: its URL, events, categories and campaign.";
|
|
204
|
+
readonly docs: "https://api.smartlead.ai/api-reference/webhooks/get";
|
|
205
|
+
readonly method: "GET";
|
|
206
|
+
readonly params: {
|
|
207
|
+
readonly webhook_id: import("./native-params.ts").Placed<"path", "string">;
|
|
208
|
+
};
|
|
209
|
+
readonly path: "/webhook/{webhook_id}";
|
|
210
|
+
};
|
|
211
|
+
};
|