outbound-sdk 0.1.0 → 0.2.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/README.md +0 -2
- package/dist/alerts/index.js +5 -1
- package/dist/audit/index.js +2 -2
- package/dist/benchmarks/index.js +5 -3
- package/dist/budget/index.js +31 -10
- package/dist/cache/index.js +2 -2
- package/dist/cards/index.js +1 -1
- package/dist/chunks/{chunk-WAM6N4OF.js → chunk-4PSO6JEK.js} +107 -19
- package/dist/chunks/chunk-6CVZOUHB.js +152 -0
- package/dist/chunks/{chunk-OCV66TS2.js → chunk-AFU5E5QB.js} +17 -8
- package/dist/chunks/{chunk-R6AM4GJR.js → chunk-DJ2IUQEU.js} +24 -18
- package/dist/chunks/{chunk-LOXBLQ3I.js → chunk-E7JHLNLG.js} +9 -2
- package/dist/chunks/{chunk-LNCOGBMI.js → chunk-FHKSLCVW.js} +13 -3
- package/dist/chunks/chunk-FKH5N47I.js +40 -0
- package/dist/chunks/chunk-HZCTYL22.js +29 -0
- package/dist/chunks/{chunk-CMQ5ZHLZ.js → chunk-IPUYZD4O.js} +1 -1
- package/dist/chunks/{chunk-VURTOVGI.js → chunk-IVH3NMQZ.js} +1 -1
- package/dist/chunks/{chunk-ZGHQYZEH.js → chunk-LVYG7XZJ.js} +1 -1
- package/dist/chunks/chunk-NAKXLBA6.js +30 -0
- package/dist/chunks/{chunk-7BCYLIDG.js → chunk-PMSSUWD7.js} +186 -33
- package/dist/chunks/{chunk-Q465X22Y.js → chunk-PURHK3JU.js} +93 -209
- package/dist/chunks/{chunk-F7MKFVIG.js → chunk-R3Y56YVF.js} +2 -2
- package/dist/chunks/chunk-RCZ7ZZFU.js +92 -0
- package/dist/chunks/chunk-SBIZDCRY.js +106 -0
- package/dist/chunks/{chunk-IBC52BX3.js → chunk-U2D34ARZ.js} +20 -3
- package/dist/chunks/chunk-UAT3JSJZ.js +331 -0
- package/dist/chunks/{chunk-QZNNCXXD.js → chunk-VQSCHOBV.js} +20 -1
- package/dist/chunks/{chunk-B7V6EOAC.js → chunk-XNFESPZH.js} +160 -126
- package/dist/chunks/{chunk-WW746NJF.js → chunk-YOTW5ESM.js} +25 -1
- package/dist/cli/bin.js +14 -13
- package/dist/cli/commands.d.ts +3 -0
- package/dist/cli/config.d.ts +22 -0
- package/dist/cli/index.d.ts +5 -1
- package/dist/cli/index.js +20 -15
- package/dist/cli/stdio.d.ts +9 -0
- package/dist/clients/index.js +13 -3
- package/dist/combine/account.d.ts +1 -1
- package/dist/combine/index.js +90 -15
- package/dist/combine/route.d.ts +7 -0
- package/dist/exporter/index.js +2 -2
- package/dist/failover/index.js +4 -4
- package/dist/fixtures/index.js +40 -21
- package/dist/heyreach/account.d.ts +1 -1
- package/dist/heyreach/adapter.d.ts +1 -1
- package/dist/heyreach/capabilities.d.ts +2 -0
- package/dist/heyreach/client.d.ts +3 -5
- package/dist/heyreach/index.d.ts +7 -0
- package/dist/heyreach/index.js +428 -205
- package/dist/heyreach/leads.d.ts +4 -0
- package/dist/heyreach/map-account.d.ts +7 -1
- package/dist/heyreach/map-stats.d.ts +8 -5
- package/dist/heyreach/map.d.ts +3 -1
- package/dist/heyreach/webhooks.d.ts +1 -0
- package/dist/identity/index.js +22 -11
- package/dist/index.d.ts +1 -4
- package/dist/index.js +29 -17
- package/dist/insights/copy/index.d.ts +2 -2
- package/dist/insights/copy/variant-test.d.ts +2 -2
- package/dist/insights/index.js +248 -184
- package/dist/insights/ops/anomalies.d.ts +3 -3
- package/dist/insights/ops/index.d.ts +2 -2
- package/dist/insights/ops/shared.d.ts +7 -1
- package/dist/insights/registry.d.ts +4 -4
- package/dist/instantly/adapter-account.d.ts +1 -1
- package/dist/instantly/capabilities.d.ts +2 -0
- package/dist/instantly/client.d.ts +4 -9
- package/dist/instantly/index.d.ts +7 -0
- package/dist/instantly/index.js +410 -155
- package/dist/instantly/map-account.d.ts +20 -5
- package/dist/instantly/map-stats.d.ts +9 -6
- package/dist/instantly/map.d.ts +0 -2
- package/dist/instantly/native-agents-sales.d.ts +41 -41
- package/dist/instantly/native-agents.d.ts +44 -44
- package/dist/instantly/native-campaigns.d.ts +21 -21
- package/dist/instantly/native-leads.d.ts +12 -12
- package/dist/instantly/native-params.d.ts +2 -19
- package/dist/instantly/native-search.d.ts +10 -10
- package/dist/instantly/native-senders.d.ts +56 -56
- package/dist/instantly/native-supersearch.d.ts +33 -33
- package/dist/instantly/native-workspace.d.ts +45 -45
- package/dist/instantly/native.d.ts +262 -262
- package/dist/instantly/webhooks.d.ts +1 -0
- package/dist/internal/adapter.d.ts +24 -2
- package/dist/internal/capabilities.d.ts +18 -0
- package/dist/internal/client.d.ts +15 -0
- package/dist/internal/concurrency.d.ts +8 -0
- package/dist/internal/engine/request.d.ts +7 -0
- package/dist/internal/entities-account.d.ts +73 -3
- package/dist/internal/entities.d.ts +116 -12
- package/dist/internal/errors.d.ts +6 -1
- package/dist/internal/fields.d.ts +462 -0
- package/dist/internal/json.d.ts +9 -0
- package/dist/internal/lead-fields.d.ts +21 -0
- package/dist/internal/lead-status.d.ts +13 -0
- package/dist/internal/metrics.d.ts +14 -2
- package/dist/internal/native.d.ts +15 -0
- package/dist/internal/outbound/api.d.ts +29 -4
- package/dist/internal/outbound/operations-account.d.ts +12 -0
- package/dist/internal/outbound/outbound.d.ts +6 -3
- package/dist/internal/outbound/specs-account.d.ts +5 -1
- package/dist/internal/page.d.ts +14 -0
- package/dist/internal/record.d.ts +17 -0
- package/dist/internal/records.d.ts +7 -0
- package/dist/internal/sequence.d.ts +14 -0
- package/dist/internal/sha256.d.ts +2 -0
- package/dist/loader/index.d.ts +14 -2
- package/dist/loader/index.js +8 -4
- package/dist/memory/account-reads.d.ts +1 -1
- package/dist/memory/account.d.ts +15 -1
- package/dist/memory/data.d.ts +17 -2
- package/dist/memory/index.js +110 -35
- package/dist/redact/index.js +11 -6
- package/dist/redact/plugin.d.ts +1 -1
- package/dist/smartlead/account.d.ts +1 -1
- package/dist/smartlead/adapter.d.ts +1 -1
- package/dist/smartlead/capabilities.d.ts +2 -0
- package/dist/smartlead/client.d.ts +6 -11
- package/dist/smartlead/hmac.d.ts +0 -2
- package/dist/smartlead/index.d.ts +7 -0
- package/dist/smartlead/index.js +731 -572
- package/dist/smartlead/leads.d.ts +4 -1
- package/dist/smartlead/map-account.d.ts +17 -5
- package/dist/smartlead/map-stats.d.ts +9 -10
- package/dist/smartlead/map.d.ts +15 -5
- package/dist/smartlead/native-analytics.d.ts +87 -87
- package/dist/smartlead/native-campaigns.d.ts +64 -64
- package/dist/smartlead/native-inbox.d.ts +51 -51
- package/dist/smartlead/native-params.d.ts +2 -23
- package/dist/smartlead/native-services.d.ts +34 -34
- package/dist/smartlead/native.d.ts +236 -236
- package/dist/smartlead/shared.d.ts +6 -5
- package/dist/smartlead/webhooks.d.ts +1 -0
- package/dist/sync/index.js +3 -3
- package/dist/tools/ai-sdk.js +7 -5
- package/dist/tools/campaign-tools.d.ts +1 -1
- package/dist/tools/claude-agent.js +7 -5
- package/dist/tools/index.js +8 -6
- package/dist/tracing/index.js +2 -2
- package/dist/webhooks/index.js +10 -9
- package/package.json +1 -1
- package/dist/chunks/chunk-FZF6CLPX.js +0 -232
- package/dist/chunks/chunk-GPEJG34O.js +0 -53
- package/dist/chunks/chunk-HEC7XFFH.js +0 -65
- package/dist/chunks/chunk-QTB747K4.js +0 -100
- package/dist/chunks/chunk-TIJKJJDW.js +0 -6
|
@@ -4,13 +4,13 @@ export declare const CAMPAIGN_READS: {
|
|
|
4
4
|
readonly docs: "https://api.smartlead.ai/api-reference/campaign-statistics/get-by-id";
|
|
5
5
|
readonly method: "GET";
|
|
6
6
|
readonly params: {
|
|
7
|
-
readonly email_sequence_number: import("
|
|
8
|
-
readonly email_status: import("
|
|
9
|
-
readonly sent_time_end_date: import("
|
|
10
|
-
readonly sent_time_start_date: import("
|
|
11
|
-
readonly limit: import("
|
|
12
|
-
readonly offset: import("
|
|
13
|
-
readonly campaign_id: import("
|
|
7
|
+
readonly email_sequence_number: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
8
|
+
readonly email_status: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
9
|
+
readonly sent_time_end_date: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
10
|
+
readonly sent_time_start_date: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
11
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
12
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
13
|
+
readonly campaign_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
14
14
|
};
|
|
15
15
|
readonly path: "/campaigns/{campaign_id}/statistics";
|
|
16
16
|
};
|
|
@@ -19,28 +19,28 @@ export declare const CAMPAIGN_READS: {
|
|
|
19
19
|
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/search-leads";
|
|
20
20
|
readonly method: "POST";
|
|
21
21
|
readonly params: {
|
|
22
|
-
readonly campaignId: import("
|
|
23
|
-
readonly deletedEmailAddresses: import("
|
|
24
|
-
readonly emailAccountIds: import("
|
|
25
|
-
readonly emailStatuses: import("
|
|
26
|
-
readonly espDomainTypes: import("
|
|
27
|
-
readonly fieldSet: import("
|
|
28
|
-
readonly filterLeadsForManualCompletion: import("
|
|
29
|
-
readonly filterManualSeqIds: import("
|
|
30
|
-
readonly includeSenderBounce: import("
|
|
31
|
-
readonly lastSeenLeadId: import("
|
|
32
|
-
readonly lastSeenReplyTime: import("
|
|
33
|
-
readonly leadCategoryIds: import("
|
|
34
|
-
readonly leadCategoryIsNull: import("
|
|
35
|
-
readonly leadStatuses: import("
|
|
36
|
-
readonly limit: import("
|
|
37
|
-
readonly searchText: import("
|
|
38
|
-
readonly segTypes: import("
|
|
39
|
-
readonly seqScheduleType: import("
|
|
40
|
-
readonly seqVariantIds: import("
|
|
41
|
-
readonly sequenceIds: import("
|
|
42
|
-
readonly sequenceNumbers: import("
|
|
43
|
-
readonly statusFilter: import("
|
|
22
|
+
readonly campaignId: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
23
|
+
readonly deletedEmailAddresses: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
24
|
+
readonly emailAccountIds: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
25
|
+
readonly emailStatuses: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
26
|
+
readonly espDomainTypes: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
27
|
+
readonly fieldSet: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
28
|
+
readonly filterLeadsForManualCompletion: import("../internal/native.ts").PlacedParam<"body", "boolean">;
|
|
29
|
+
readonly filterManualSeqIds: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
30
|
+
readonly includeSenderBounce: import("../internal/native.ts").PlacedParam<"body", "boolean">;
|
|
31
|
+
readonly lastSeenLeadId: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
32
|
+
readonly lastSeenReplyTime: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
33
|
+
readonly leadCategoryIds: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
34
|
+
readonly leadCategoryIsNull: import("../internal/native.ts").PlacedParam<"body", "boolean">;
|
|
35
|
+
readonly leadStatuses: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
36
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
37
|
+
readonly searchText: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
38
|
+
readonly segTypes: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
39
|
+
readonly seqScheduleType: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
40
|
+
readonly seqVariantIds: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
41
|
+
readonly sequenceIds: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
42
|
+
readonly sequenceNumbers: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
43
|
+
readonly statusFilter: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
44
44
|
};
|
|
45
45
|
readonly path: "/campaigns/{campaignId}/leads/filter";
|
|
46
46
|
};
|
|
@@ -50,10 +50,10 @@ export declare const CAMPAIGN_READS: {
|
|
|
50
50
|
readonly lane: "leads-statistics";
|
|
51
51
|
readonly method: "GET";
|
|
52
52
|
readonly params: {
|
|
53
|
-
readonly event_time_gt: import("
|
|
54
|
-
readonly limit: import("
|
|
55
|
-
readonly offset: import("
|
|
56
|
-
readonly campaign_id: import("
|
|
53
|
+
readonly event_time_gt: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
54
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
55
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
56
|
+
readonly campaign_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
57
57
|
};
|
|
58
58
|
readonly path: "/campaigns/{campaign_id}/leads-statistics";
|
|
59
59
|
};
|
|
@@ -62,7 +62,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
62
62
|
readonly docs: "https://api.smartlead.ai/api-reference/leads/export";
|
|
63
63
|
readonly method: "GET";
|
|
64
64
|
readonly params: {
|
|
65
|
-
campaign_id: import("
|
|
65
|
+
campaign_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
66
66
|
};
|
|
67
67
|
readonly path: "/campaigns/{campaign_id}/leads-export";
|
|
68
68
|
};
|
|
@@ -71,13 +71,13 @@ export declare const CAMPAIGN_READS: {
|
|
|
71
71
|
readonly docs: "https://api.smartlead.ai/api-reference/campaign-statistics/mailbox-statistics";
|
|
72
72
|
readonly method: "GET";
|
|
73
73
|
readonly params: {
|
|
74
|
-
readonly client_id: import("
|
|
75
|
-
readonly end_date: import("
|
|
76
|
-
readonly start_date: import("
|
|
77
|
-
readonly time_zone: import("
|
|
78
|
-
readonly limit: import("
|
|
79
|
-
readonly offset: import("
|
|
80
|
-
readonly campaign_id: import("
|
|
74
|
+
readonly client_id: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
75
|
+
readonly end_date: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
76
|
+
readonly start_date: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
77
|
+
readonly time_zone: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
78
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
79
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
80
|
+
readonly campaign_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
81
81
|
};
|
|
82
82
|
readonly path: "/campaigns/{campaign_id}/mailbox-statistics";
|
|
83
83
|
};
|
|
@@ -86,9 +86,9 @@ export declare const CAMPAIGN_READS: {
|
|
|
86
86
|
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/get-leads-history-bulk";
|
|
87
87
|
readonly method: "POST";
|
|
88
88
|
readonly params: {
|
|
89
|
-
readonly event_time_gt: import("
|
|
90
|
-
readonly lead_ids: import("
|
|
91
|
-
readonly campaign_id: import("
|
|
89
|
+
readonly event_time_gt: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
90
|
+
readonly lead_ids: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
91
|
+
readonly campaign_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
92
92
|
};
|
|
93
93
|
readonly path: "/campaigns/{campaign_id}/message-history-for-leads/bbfbdsFGHlBr76ruhjvh6fhHL";
|
|
94
94
|
};
|
|
@@ -97,7 +97,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
97
97
|
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/get-prompt-template";
|
|
98
98
|
readonly method: "GET";
|
|
99
99
|
readonly params: {
|
|
100
|
-
campaign_id: import("
|
|
100
|
+
campaign_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
101
101
|
};
|
|
102
102
|
readonly path: "/campaigns/{campaign_id}/prompt-template";
|
|
103
103
|
};
|
|
@@ -106,9 +106,9 @@ export declare const CAMPAIGN_READS: {
|
|
|
106
106
|
readonly docs: "https://api.smartlead.ai/api-reference/campaign-statistics/top-level-by-date";
|
|
107
107
|
readonly method: "GET";
|
|
108
108
|
readonly params: {
|
|
109
|
-
readonly end_date: import("
|
|
110
|
-
readonly start_date: import("
|
|
111
|
-
readonly campaign_id: import("
|
|
109
|
+
readonly end_date: import("../internal/native.ts").NeededParam<"query", "string">;
|
|
110
|
+
readonly start_date: import("../internal/native.ts").NeededParam<"query", "string">;
|
|
111
|
+
readonly campaign_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
112
112
|
};
|
|
113
113
|
readonly path: "/campaigns/{campaign_id}/top-level-analytics-by-date";
|
|
114
114
|
};
|
|
@@ -117,9 +117,9 @@ export declare const CAMPAIGN_READS: {
|
|
|
117
117
|
readonly docs: "https://api.smartlead.ai/api-reference/campaigns/get-webhook-summary";
|
|
118
118
|
readonly method: "GET";
|
|
119
119
|
readonly params: {
|
|
120
|
-
readonly campaignId: import("
|
|
121
|
-
readonly fromTime: import("
|
|
122
|
-
readonly toTime: import("
|
|
120
|
+
readonly campaignId: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
121
|
+
readonly fromTime: import("../internal/native.ts").NeededParam<"query", "string">;
|
|
122
|
+
readonly toTime: import("../internal/native.ts").NeededParam<"query", "string">;
|
|
123
123
|
};
|
|
124
124
|
readonly path: "/campaigns/{campaignId}/webhooks/summary";
|
|
125
125
|
};
|
|
@@ -128,10 +128,10 @@ export declare const CAMPAIGN_READS: {
|
|
|
128
128
|
readonly docs: "https://api.smartlead.ai/api-reference/clients/get-by-id";
|
|
129
129
|
readonly method: "GET";
|
|
130
130
|
readonly params: {
|
|
131
|
-
readonly id: import("
|
|
132
|
-
readonly includeCodeIntegrations: import("
|
|
133
|
-
readonly includeCredits: import("
|
|
134
|
-
readonly includePermissions: import("
|
|
131
|
+
readonly id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
132
|
+
readonly includeCodeIntegrations: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
133
|
+
readonly includeCredits: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
134
|
+
readonly includePermissions: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
135
135
|
};
|
|
136
136
|
readonly path: "/client/{id}";
|
|
137
137
|
};
|
|
@@ -140,7 +140,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
140
140
|
readonly docs: "https://api.smartlead.ai/api-reference/leads/get-by-email";
|
|
141
141
|
readonly method: "GET";
|
|
142
142
|
readonly params: {
|
|
143
|
-
readonly email: import("
|
|
143
|
+
readonly email: import("../internal/native.ts").NeededParam<"query", "string">;
|
|
144
144
|
};
|
|
145
145
|
readonly path: "/leads/";
|
|
146
146
|
};
|
|
@@ -149,7 +149,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
149
149
|
readonly docs: "https://api.smartlead.ai/api-reference/leads/campaign-overview";
|
|
150
150
|
readonly method: "GET";
|
|
151
151
|
readonly params: {
|
|
152
|
-
readonly leadId: import("
|
|
152
|
+
readonly leadId: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
153
153
|
};
|
|
154
154
|
readonly path: "/leads/{leadId}/campaign-overview";
|
|
155
155
|
};
|
|
@@ -158,7 +158,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
158
158
|
readonly docs: "https://api.smartlead.ai/api-reference/lead-lists/get-by-id";
|
|
159
159
|
readonly method: "GET";
|
|
160
160
|
readonly params: {
|
|
161
|
-
readonly id: import("
|
|
161
|
+
readonly id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
162
162
|
};
|
|
163
163
|
readonly path: "/lead-list/{id}";
|
|
164
164
|
};
|
|
@@ -167,7 +167,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
167
167
|
readonly docs: "https://api.smartlead.ai/api-reference/lead-notes/get-all";
|
|
168
168
|
readonly method: "GET";
|
|
169
169
|
readonly params: {
|
|
170
|
-
readonly id: import("
|
|
170
|
+
readonly id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
171
171
|
};
|
|
172
172
|
readonly path: "/crm/leads/notes/{id}";
|
|
173
173
|
};
|
|
@@ -176,8 +176,8 @@ export declare const CAMPAIGN_READS: {
|
|
|
176
176
|
readonly docs: "https://api.smartlead.ai/api-reference/leads/sequence-details";
|
|
177
177
|
readonly method: "GET";
|
|
178
178
|
readonly params: {
|
|
179
|
-
readonly campaignId: import("
|
|
180
|
-
readonly leadMapId: import("
|
|
179
|
+
readonly campaignId: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
180
|
+
readonly leadMapId: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
181
181
|
};
|
|
182
182
|
readonly path: "/leads/{leadMapId}/sequence-details";
|
|
183
183
|
};
|
|
@@ -186,7 +186,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
186
186
|
readonly docs: "https://api.smartlead.ai/api-reference/lead-tasks/get-all";
|
|
187
187
|
readonly method: "GET";
|
|
188
188
|
readonly params: {
|
|
189
|
-
readonly id: import("
|
|
189
|
+
readonly id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
190
190
|
};
|
|
191
191
|
readonly path: "/crm/leads/tasks/{id}";
|
|
192
192
|
};
|
|
@@ -195,7 +195,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
195
195
|
readonly docs: "https://api.smartlead.ai/api-reference/email-account-tags/get-all";
|
|
196
196
|
readonly method: "POST";
|
|
197
197
|
readonly params: {
|
|
198
|
-
readonly email_ids: import("
|
|
198
|
+
readonly email_ids: import("../internal/native.ts").NeededParam<"body", "json">;
|
|
199
199
|
};
|
|
200
200
|
readonly path: "/email-accounts/tag-list";
|
|
201
201
|
};
|
|
@@ -204,7 +204,7 @@ export declare const CAMPAIGN_READS: {
|
|
|
204
204
|
readonly docs: "https://api.smartlead.ai/api-reference/webhooks/get";
|
|
205
205
|
readonly method: "GET";
|
|
206
206
|
readonly params: {
|
|
207
|
-
readonly webhook_id: import("
|
|
207
|
+
readonly webhook_id: import("../internal/native.ts").PlacedParam<"path", "string">;
|
|
208
208
|
};
|
|
209
209
|
readonly path: "/webhook/{webhook_id}";
|
|
210
210
|
};
|
|
@@ -4,11 +4,11 @@ export declare const INBOX: {
|
|
|
4
4
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-archived";
|
|
5
5
|
readonly method: "POST";
|
|
6
6
|
readonly params: {
|
|
7
|
-
readonly sortBy: import("
|
|
8
|
-
readonly filters: import("
|
|
9
|
-
readonly fetch_message_history: import("
|
|
10
|
-
readonly limit: import("
|
|
11
|
-
readonly offset: import("
|
|
7
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
8
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
9
|
+
readonly fetch_message_history: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
10
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
11
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
12
12
|
};
|
|
13
13
|
readonly path: "/master-inbox/archived";
|
|
14
14
|
};
|
|
@@ -17,11 +17,11 @@ export declare const INBOX: {
|
|
|
17
17
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-assigned";
|
|
18
18
|
readonly method: "POST";
|
|
19
19
|
readonly params: {
|
|
20
|
-
readonly sortBy: import("
|
|
21
|
-
readonly filters: import("
|
|
22
|
-
readonly fetch_message_history: import("
|
|
23
|
-
readonly limit: import("
|
|
24
|
-
readonly offset: import("
|
|
20
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
21
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
22
|
+
readonly fetch_message_history: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
23
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
24
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
25
25
|
};
|
|
26
26
|
readonly path: "/master-inbox/assigned-me";
|
|
27
27
|
};
|
|
@@ -30,11 +30,11 @@ export declare const INBOX: {
|
|
|
30
30
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-important";
|
|
31
31
|
readonly method: "POST";
|
|
32
32
|
readonly params: {
|
|
33
|
-
readonly sortBy: import("
|
|
34
|
-
readonly filters: import("
|
|
35
|
-
readonly fetch_message_history: import("
|
|
36
|
-
readonly limit: import("
|
|
37
|
-
readonly offset: import("
|
|
33
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
34
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
35
|
+
readonly fetch_message_history: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
36
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
37
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
38
38
|
};
|
|
39
39
|
readonly path: "/master-inbox/important";
|
|
40
40
|
};
|
|
@@ -43,10 +43,10 @@ export declare const INBOX: {
|
|
|
43
43
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-reminders";
|
|
44
44
|
readonly method: "POST";
|
|
45
45
|
readonly params: {
|
|
46
|
-
readonly sortBy: import("
|
|
47
|
-
readonly filters: import("
|
|
48
|
-
readonly limit: import("
|
|
49
|
-
readonly offset: import("
|
|
46
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
47
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
48
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
49
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
50
50
|
};
|
|
51
51
|
readonly path: "/master-inbox/reminders";
|
|
52
52
|
};
|
|
@@ -55,11 +55,11 @@ export declare const INBOX: {
|
|
|
55
55
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-scheduled";
|
|
56
56
|
readonly method: "POST";
|
|
57
57
|
readonly params: {
|
|
58
|
-
readonly sortBy: import("
|
|
59
|
-
readonly filters: import("
|
|
60
|
-
readonly fetch_message_history: import("
|
|
61
|
-
readonly limit: import("
|
|
62
|
-
readonly offset: import("
|
|
58
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
59
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
60
|
+
readonly fetch_message_history: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
61
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
62
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
63
63
|
};
|
|
64
64
|
readonly path: "/master-inbox/scheduled";
|
|
65
65
|
};
|
|
@@ -68,10 +68,10 @@ export declare const INBOX: {
|
|
|
68
68
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-sent";
|
|
69
69
|
readonly method: "POST";
|
|
70
70
|
readonly params: {
|
|
71
|
-
readonly sortBy: import("
|
|
72
|
-
readonly filters: import("
|
|
73
|
-
readonly limit: import("
|
|
74
|
-
readonly offset: import("
|
|
71
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
72
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
73
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
74
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
75
75
|
};
|
|
76
76
|
readonly path: "/master-inbox/sent";
|
|
77
77
|
};
|
|
@@ -80,11 +80,11 @@ export declare const INBOX: {
|
|
|
80
80
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-snoozed";
|
|
81
81
|
readonly method: "POST";
|
|
82
82
|
readonly params: {
|
|
83
|
-
readonly sortBy: import("
|
|
84
|
-
readonly filters: import("
|
|
85
|
-
readonly fetch_message_history: import("
|
|
86
|
-
readonly limit: import("
|
|
87
|
-
readonly offset: import("
|
|
83
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
84
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
85
|
+
readonly fetch_message_history: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
86
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
87
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
88
88
|
};
|
|
89
89
|
readonly path: "/master-inbox/snoozed";
|
|
90
90
|
};
|
|
@@ -93,11 +93,11 @@ export declare const INBOX: {
|
|
|
93
93
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-unread";
|
|
94
94
|
readonly method: "POST";
|
|
95
95
|
readonly params: {
|
|
96
|
-
readonly sortBy: import("
|
|
97
|
-
readonly filters: import("
|
|
98
|
-
readonly fetch_message_history: import("
|
|
99
|
-
readonly limit: import("
|
|
100
|
-
readonly offset: import("
|
|
96
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
97
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
98
|
+
readonly fetch_message_history: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
99
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
100
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
101
101
|
};
|
|
102
102
|
readonly path: "/master-inbox/unread-replies";
|
|
103
103
|
};
|
|
@@ -106,13 +106,13 @@ export declare const INBOX: {
|
|
|
106
106
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-untracked";
|
|
107
107
|
readonly method: "GET";
|
|
108
108
|
readonly params: {
|
|
109
|
-
readonly fetchAttachments: import("
|
|
110
|
-
readonly fetchBody: import("
|
|
111
|
-
readonly from_email: import("
|
|
112
|
-
readonly limit: import("
|
|
113
|
-
readonly offset: import("
|
|
114
|
-
readonly subject_line: import("
|
|
115
|
-
readonly to_email: import("
|
|
109
|
+
readonly fetchAttachments: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
110
|
+
readonly fetchBody: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
111
|
+
readonly from_email: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
112
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
113
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
114
|
+
readonly subject_line: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
115
|
+
readonly to_email: import("../internal/native.ts").PlacedParam<"query", "string">;
|
|
116
116
|
};
|
|
117
117
|
readonly path: "/master-inbox/untracked-replies";
|
|
118
118
|
};
|
|
@@ -121,11 +121,11 @@ export declare const INBOX: {
|
|
|
121
121
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/get-views";
|
|
122
122
|
readonly method: "POST";
|
|
123
123
|
readonly params: {
|
|
124
|
-
readonly sortBy: import("
|
|
125
|
-
readonly filters: import("
|
|
126
|
-
readonly fetch_message_history: import("
|
|
127
|
-
readonly limit: import("
|
|
128
|
-
readonly offset: import("
|
|
124
|
+
readonly sortBy: import("../internal/native.ts").PlacedParam<"body", "string">;
|
|
125
|
+
readonly filters: import("../internal/native.ts").PlacedParam<"body", "json">;
|
|
126
|
+
readonly fetch_message_history: import("../internal/native.ts").PlacedParam<"query", "boolean">;
|
|
127
|
+
readonly limit: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
128
|
+
readonly offset: import("../internal/native.ts").PlacedParam<"body", "number">;
|
|
129
129
|
};
|
|
130
130
|
readonly path: "/master-inbox/views";
|
|
131
131
|
};
|
|
@@ -134,7 +134,7 @@ export declare const INBOX: {
|
|
|
134
134
|
readonly docs: "https://api.smartlead.ai/api-reference/inbox/reply-status";
|
|
135
135
|
readonly method: "GET";
|
|
136
136
|
readonly params: {
|
|
137
|
-
readonly message_id: import("
|
|
137
|
+
readonly message_id: import("../internal/native.ts").NeededParam<"query", "string">;
|
|
138
138
|
};
|
|
139
139
|
readonly path: "/master-inbox/reply-status";
|
|
140
140
|
};
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import type { NativeParam } from "../internal/native.ts";
|
|
2
|
-
type ParamType = NativeParam["type"];
|
|
3
|
-
/** A parameter and where it goes. Exported so the catalog's type can be named. */
|
|
4
|
-
export interface Placed<Where extends NativeParam["in"], Type extends ParamType> {
|
|
5
|
-
readonly description: string;
|
|
6
|
-
readonly in: Where;
|
|
7
|
-
readonly type: Type;
|
|
8
|
-
}
|
|
9
|
-
export interface Needed<Where extends NativeParam["in"], Type extends ParamType> extends Placed<Where, Type> {
|
|
10
|
-
readonly required: true;
|
|
11
|
-
}
|
|
12
1
|
/** Smartlead's reference pages. */
|
|
13
2
|
export declare const DOCS = "https://api.smartlead.ai/api-reference";
|
|
14
3
|
/** The sister services, each on its own host with the same `api_key`. */
|
|
@@ -16,18 +5,8 @@ export declare const DELIVERY_URL = "https://smartdelivery.smartlead.ai/api/v1";
|
|
|
16
5
|
export declare const PROSPECT_URL = "https://prospect-api.smartlead.ai/api/v1";
|
|
17
6
|
export declare const SENDERS_URL = "https://smart-senders.smartlead.ai/api/v1";
|
|
18
7
|
export declare const SERVERS_URL = "https://smartservers.smartlead.ai/api/v1";
|
|
19
|
-
export declare const query: <const Type extends ParamType>(type: Type, description: string) => Placed<"query", Type>;
|
|
20
|
-
export declare const queryRequired: <const Type extends ParamType>(type: Type, description: string) => Needed<"query", Type>;
|
|
21
|
-
export declare const body: <const Type extends ParamType>(type: Type, description: string) => Placed<"body", Type>;
|
|
22
|
-
export declare const bodyRequired: <const Type extends ParamType>(type: Type, description: string) => Needed<"body", Type>;
|
|
23
|
-
/**
|
|
24
|
-
* A path parameter. Smartlead's ids are numbers, but the SDK's ids are
|
|
25
|
-
* strings, so an id from a normalized record can be passed as it is.
|
|
26
|
-
*/
|
|
27
|
-
export declare const path: (description: string) => Placed<"path", "string">;
|
|
28
8
|
/** `limit` and `offset` in the query, for the offset-paged lists. */
|
|
29
9
|
export declare const paged: (limit: string) => {
|
|
30
|
-
limit:
|
|
31
|
-
offset:
|
|
10
|
+
limit: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
11
|
+
offset: import("../internal/native.ts").PlacedParam<"query", "number">;
|
|
32
12
|
};
|
|
33
|
-
export {};
|