@gpt-platform/client 0.10.5 → 0.11.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/_internal/client/client.gen.d.ts +3 -0
- package/dist/_internal/client/client.gen.d.ts.map +1 -0
- package/dist/_internal/client/index.d.ts +9 -0
- package/dist/_internal/client/index.d.ts.map +1 -0
- package/dist/_internal/client/types.gen.d.ts +118 -0
- package/dist/_internal/client/types.gen.d.ts.map +1 -0
- package/dist/_internal/client/utils.gen.d.ts +34 -0
- package/dist/_internal/client/utils.gen.d.ts.map +1 -0
- package/dist/_internal/client.gen.d.ts +13 -0
- package/dist/_internal/client.gen.d.ts.map +1 -0
- package/dist/_internal/core/auth.gen.d.ts +19 -0
- package/dist/_internal/core/auth.gen.d.ts.map +1 -0
- package/dist/_internal/core/bodySerializer.gen.d.ts +26 -0
- package/dist/_internal/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/_internal/core/params.gen.d.ts +44 -0
- package/dist/_internal/core/params.gen.d.ts.map +1 -0
- package/dist/_internal/core/pathSerializer.gen.d.ts +34 -0
- package/dist/_internal/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/_internal/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/_internal/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/_internal/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/_internal/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/_internal/core/types.gen.d.ts +79 -0
- package/dist/_internal/core/types.gen.d.ts.map +1 -0
- package/dist/_internal/core/utils.gen.d.ts +20 -0
- package/dist/_internal/core/utils.gen.d.ts.map +1 -0
- package/dist/_internal/index.d.ts +3 -0
- package/dist/_internal/index.d.ts.map +1 -0
- package/dist/_internal/sdk.gen.d.ts +7053 -0
- package/dist/_internal/sdk.gen.d.ts.map +1 -0
- package/dist/_internal/types.gen.d.ts +146633 -0
- package/dist/_internal/types.gen.d.ts.map +1 -0
- package/dist/base-client.d.ts +199 -0
- package/dist/base-client.d.ts.map +1 -0
- package/dist/errors/index.d.ts +128 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/events.d.ts +69 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/execution-events.d.ts +95 -0
- package/dist/execution-events.d.ts.map +1 -0
- package/dist/gpt-client.d.ts +2175 -0
- package/dist/gpt-client.d.ts.map +1 -0
- package/dist/index.d.ts +51 -30734
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +311 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +311 -4
- package/dist/index.mjs.map +1 -1
- package/dist/json-api.d.ts +26 -0
- package/dist/json-api.d.ts.map +1 -0
- package/dist/logging.d.ts +22 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/namespace-types.d.ts +79 -0
- package/dist/namespace-types.d.ts.map +1 -0
- package/dist/namespaces/access-grants.d.ts +71 -0
- package/dist/namespaces/access-grants.d.ts.map +1 -0
- package/dist/namespaces/agents.d.ts +1406 -0
- package/dist/namespaces/agents.d.ts.map +1 -0
- package/dist/namespaces/ai.d.ts +407 -0
- package/dist/namespaces/ai.d.ts.map +1 -0
- package/dist/namespaces/audit.d.ts +83 -0
- package/dist/namespaces/audit.d.ts.map +1 -0
- package/dist/namespaces/billing.d.ts +854 -0
- package/dist/namespaces/billing.d.ts.map +1 -0
- package/dist/namespaces/campaigns.d.ts +973 -0
- package/dist/namespaces/campaigns.d.ts.map +1 -0
- package/dist/namespaces/catalog.d.ts +964 -0
- package/dist/namespaces/catalog.d.ts.map +1 -0
- package/dist/namespaces/channels.d.ts +162 -0
- package/dist/namespaces/channels.d.ts.map +1 -0
- package/dist/namespaces/clinical.d.ts +2443 -0
- package/dist/namespaces/clinical.d.ts.map +1 -0
- package/dist/namespaces/communication.d.ts +439 -0
- package/dist/namespaces/communication.d.ts.map +1 -0
- package/dist/namespaces/compliance.d.ts +2310 -0
- package/dist/namespaces/compliance.d.ts.map +1 -0
- package/dist/namespaces/connectors.d.ts +1368 -0
- package/dist/namespaces/connectors.d.ts.map +1 -0
- package/dist/namespaces/content.d.ts +188 -0
- package/dist/namespaces/content.d.ts.map +1 -0
- package/dist/namespaces/crawler.d.ts +408 -0
- package/dist/namespaces/crawler.d.ts.map +1 -0
- package/dist/namespaces/crm-clusters.d.ts +31 -0
- package/dist/namespaces/crm-clusters.d.ts.map +1 -0
- package/dist/namespaces/crm.d.ts +1539 -0
- package/dist/namespaces/crm.d.ts.map +1 -0
- package/dist/namespaces/documents.d.ts +136 -0
- package/dist/namespaces/documents.d.ts.map +1 -0
- package/dist/namespaces/email.d.ts +550 -0
- package/dist/namespaces/email.d.ts.map +1 -0
- package/dist/namespaces/extraction.d.ts +1249 -0
- package/dist/namespaces/extraction.d.ts.map +1 -0
- package/dist/namespaces/identity.d.ts +411 -0
- package/dist/namespaces/identity.d.ts.map +1 -0
- package/dist/namespaces/imports.d.ts +177 -0
- package/dist/namespaces/imports.d.ts.map +1 -0
- package/dist/namespaces/index.d.ts +119 -0
- package/dist/namespaces/index.d.ts.map +1 -0
- package/dist/namespaces/memory.d.ts +105 -0
- package/dist/namespaces/memory.d.ts.map +1 -0
- package/dist/namespaces/models.d.ts +75 -0
- package/dist/namespaces/models.d.ts.map +1 -0
- package/dist/namespaces/permissions.d.ts +75 -0
- package/dist/namespaces/permissions.d.ts.map +1 -0
- package/dist/namespaces/pipeline-executions.d.ts +130 -0
- package/dist/namespaces/pipeline-executions.d.ts.map +1 -0
- package/dist/namespaces/pipelines.d.ts +120 -0
- package/dist/namespaces/pipelines.d.ts.map +1 -0
- package/dist/namespaces/platform.d.ts +1430 -0
- package/dist/namespaces/platform.d.ts.map +1 -0
- package/dist/namespaces/portal.d.ts +198 -0
- package/dist/namespaces/portal.d.ts.map +1 -0
- package/dist/namespaces/projects.d.ts +553 -0
- package/dist/namespaces/projects.d.ts.map +1 -0
- package/dist/namespaces/roles.d.ts +65 -0
- package/dist/namespaces/roles.d.ts.map +1 -0
- package/dist/namespaces/scheduling.d.ts +944 -0
- package/dist/namespaces/scheduling.d.ts.map +1 -0
- package/dist/namespaces/search.d.ts +224 -0
- package/dist/namespaces/search.d.ts.map +1 -0
- package/dist/namespaces/session-notes.d.ts +67 -0
- package/dist/namespaces/session-notes.d.ts.map +1 -0
- package/dist/namespaces/social.d.ts +330 -0
- package/dist/namespaces/social.d.ts.map +1 -0
- package/dist/namespaces/storage.d.ts +378 -0
- package/dist/namespaces/storage.d.ts.map +1 -0
- package/dist/namespaces/support.d.ts +427 -0
- package/dist/namespaces/support.d.ts.map +1 -0
- package/dist/namespaces/threads.d.ts +596 -0
- package/dist/namespaces/threads.d.ts.map +1 -0
- package/dist/namespaces/training.d.ts +358 -0
- package/dist/namespaces/training.d.ts.map +1 -0
- package/dist/namespaces/voice.d.ts +752 -0
- package/dist/namespaces/voice.d.ts.map +1 -0
- package/dist/namespaces/watcher.d.ts +425 -0
- package/dist/namespaces/watcher.d.ts.map +1 -0
- package/dist/namespaces/webhooks-ns.d.ts +3 -0
- package/dist/namespaces/webhooks-ns.d.ts.map +1 -0
- package/dist/pagination.d.ts +57 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/request-builder.d.ts +95 -0
- package/dist/request-builder.d.ts.map +1 -0
- package/dist/security.d.ts +32 -0
- package/dist/security.d.ts.map +1 -0
- package/dist/streaming.d.ts +135 -0
- package/dist/streaming.d.ts.map +1 -0
- package/dist/utils/retry.d.ts +63 -0
- package/dist/utils/retry.d.ts.map +1 -0
- package/dist/version.d.ts +5 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/webhook-signature.d.ts +109 -0
- package/dist/webhook-signature.d.ts.map +1 -0
- package/llms.txt +7 -1
- package/package.json +286 -36
- package/dist/index.d.mts +0 -30734
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
import type { EmailOutboundEmail, EmailMarketingSenderProfile, EmailTrackingEvent, EmailUnsubscriber, EmailRecipient, EmailInclusion, EmailInboundAddress, EmailInboundEmail } from "../_internal/types.gen";
|
|
2
|
+
/** Daily send quota record for a workspace. */
|
|
3
|
+
export interface EmailSendLimit {
|
|
4
|
+
id: string;
|
|
5
|
+
date: string;
|
|
6
|
+
workspace_id: string;
|
|
7
|
+
limit_with_unsubscribe: number;
|
|
8
|
+
limit_without_unsubscribe: number;
|
|
9
|
+
sent_with_unsubscribe: number;
|
|
10
|
+
sent_without_unsubscribe: number;
|
|
11
|
+
remaining_with_unsubscribe?: number;
|
|
12
|
+
remaining_without_unsubscribe?: number;
|
|
13
|
+
inserted_at: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
}
|
|
16
|
+
/** Attributes accepted when creating an outbound email draft. */
|
|
17
|
+
export type CreateOutboundEmailAttributes = {
|
|
18
|
+
workspace_id: string;
|
|
19
|
+
subject: string;
|
|
20
|
+
body_html?: string;
|
|
21
|
+
body_text?: string;
|
|
22
|
+
sender_profile_id?: string;
|
|
23
|
+
contact_ref_id?: string;
|
|
24
|
+
context_ref_id?: string;
|
|
25
|
+
context_ref_type?: "custom" | "deal" | "session" | "ticket";
|
|
26
|
+
include_unsubscribe_link?: boolean;
|
|
27
|
+
attachments?: Array<Record<string, unknown>>;
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
/** Attributes accepted when updating an outbound email (PATCH semantics). */
|
|
31
|
+
export type UpdateOutboundEmailAttributes = {
|
|
32
|
+
subject?: string;
|
|
33
|
+
body_html?: string;
|
|
34
|
+
body_text?: string;
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
};
|
|
37
|
+
/** Attributes accepted when creating a sender profile. */
|
|
38
|
+
export type CreateEmailSenderProfileAttributes = {
|
|
39
|
+
workspace_id: string;
|
|
40
|
+
email: string;
|
|
41
|
+
name: string;
|
|
42
|
+
address?: string;
|
|
43
|
+
company?: string;
|
|
44
|
+
is_default?: boolean;
|
|
45
|
+
phone?: string;
|
|
46
|
+
signature?: string;
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
};
|
|
49
|
+
/** Attributes accepted when updating a sender profile (PATCH semantics). */
|
|
50
|
+
export type UpdateEmailSenderProfileAttributes = {
|
|
51
|
+
name?: string;
|
|
52
|
+
address?: string;
|
|
53
|
+
company?: string;
|
|
54
|
+
dkim_selector?: string;
|
|
55
|
+
is_default?: boolean;
|
|
56
|
+
phone?: string;
|
|
57
|
+
signature?: string;
|
|
58
|
+
[key: string]: unknown;
|
|
59
|
+
};
|
|
60
|
+
/** Attributes accepted when updating an inbound address (PATCH semantics). */
|
|
61
|
+
export type UpdateInboundAddressAttributes = {
|
|
62
|
+
label?: string;
|
|
63
|
+
handler_config?: Record<string, unknown>;
|
|
64
|
+
[key: string]: unknown;
|
|
65
|
+
};
|
|
66
|
+
/** @public Parameters for AI email composition. */
|
|
67
|
+
export interface ComposeWithAiAttributes {
|
|
68
|
+
/** Email addresses of primary recipients. */
|
|
69
|
+
to: string[];
|
|
70
|
+
/** AI drafting instructions (e.g., "Write a warm follow-up after our nutrition session"). */
|
|
71
|
+
prompt: string;
|
|
72
|
+
/** Workspace context for multi-tenancy routing. */
|
|
73
|
+
workspace_id: string;
|
|
74
|
+
/** Structured context data passed to the AI (session notes, goals, health metrics, etc.). */
|
|
75
|
+
context?: Record<string, unknown>;
|
|
76
|
+
/** Sender profile ID — uses workspace default if omitted. */
|
|
77
|
+
sender_profile_id?: string;
|
|
78
|
+
/** Optional CRM contact reference. */
|
|
79
|
+
contact_ref_id?: string;
|
|
80
|
+
/** Attach a context object (deal, session, ticket) to the email for history tracking. */
|
|
81
|
+
context_ref_type?: "session" | "deal" | "ticket" | "custom";
|
|
82
|
+
context_ref_id?: string;
|
|
83
|
+
/** Include a CAN-SPAM unsubscribe link in the email footer. */
|
|
84
|
+
include_unsubscribe_link?: boolean;
|
|
85
|
+
}
|
|
86
|
+
/** @public Result of a stateless MJML compilation. */
|
|
87
|
+
export interface MjmlCompileResult {
|
|
88
|
+
/** Compiled HTML output. Empty string if errors present. */
|
|
89
|
+
html: string;
|
|
90
|
+
/** Variable names extracted from {{variable}} patterns. Sorted alphabetically. */
|
|
91
|
+
variables: string[];
|
|
92
|
+
/** MJML parser errors. */
|
|
93
|
+
errors: string[];
|
|
94
|
+
}
|
|
95
|
+
/** @public A single entry in a template's variable schema. */
|
|
96
|
+
export interface TemplateVariableSchema {
|
|
97
|
+
/** Variable name (matches {{variable}} syntax in MJML). */
|
|
98
|
+
name: string;
|
|
99
|
+
/** Whether a value must be supplied before sending. */
|
|
100
|
+
required: boolean;
|
|
101
|
+
/** Default value shown in builder UI when no override is provided. */
|
|
102
|
+
default: string;
|
|
103
|
+
}
|
|
104
|
+
/** @public Immutable snapshot of a template at a specific publish point. */
|
|
105
|
+
export interface TemplateVersion {
|
|
106
|
+
id: string;
|
|
107
|
+
template_id: string;
|
|
108
|
+
version_number: number;
|
|
109
|
+
body_mjml: string | null;
|
|
110
|
+
body_html: string | null;
|
|
111
|
+
variable_schema: TemplateVariableSchema[];
|
|
112
|
+
published_by_id: string | null;
|
|
113
|
+
published_at: string;
|
|
114
|
+
}
|
|
115
|
+
import type { RequestOptions } from "../base-client";
|
|
116
|
+
import { RequestBuilder } from "../request-builder";
|
|
117
|
+
/**
|
|
118
|
+
* Email namespace for direct, AI-first individual email composition and delivery.
|
|
119
|
+
*
|
|
120
|
+
* Use this namespace to compose and send emails to individuals or small groups
|
|
121
|
+
* without the overhead of a full campaign. Supports AI-assisted drafting,
|
|
122
|
+
* rich inclusions (goals, metrics, charts), and delivery via connected
|
|
123
|
+
* Gmail/Outlook accounts.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```typescript
|
|
127
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
128
|
+
*
|
|
129
|
+
* // AI-draft a post-session follow-up for a patient
|
|
130
|
+
* const email = await client.email.outboundEmails.composeWithAi({
|
|
131
|
+
* workspace_id: 'ws_abc123',
|
|
132
|
+
* to: ['patient@example.com'],
|
|
133
|
+
* prompt: 'Write a warm follow-up after a nutrition session',
|
|
134
|
+
* context: {
|
|
135
|
+
* session_notes: 'Discussed protein goals and meal timing...',
|
|
136
|
+
* goals: [{ text: 'Hit 120g protein daily', status: 'active' }],
|
|
137
|
+
* },
|
|
138
|
+
* sender_profile_id: 'sp_abc123',
|
|
139
|
+
* });
|
|
140
|
+
*
|
|
141
|
+
* // Review the draft, then send
|
|
142
|
+
* await client.email.outboundEmails.send(email.id);
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
export declare function createEmailNamespace(rb: RequestBuilder): {
|
|
146
|
+
/**
|
|
147
|
+
* Outbound Emails — individual email composition and delivery.
|
|
148
|
+
*/
|
|
149
|
+
outboundEmails: {
|
|
150
|
+
/** Get a single outbound email by ID. */
|
|
151
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailOutboundEmail>;
|
|
152
|
+
/**
|
|
153
|
+
* Create a new outbound email draft.
|
|
154
|
+
*
|
|
155
|
+
* Creates a draft in `draft` status for review before sending. Populate
|
|
156
|
+
* all required fields (recipients, subject, body) then call `send()` to
|
|
157
|
+
* trigger immediate delivery or `schedule()` for future delivery.
|
|
158
|
+
*
|
|
159
|
+
* @param attributes - Key/value map of email attributes. Common fields:
|
|
160
|
+
* `workspace_id`, `subject`, `body_html`, `body_text`, `sender_profile_id`.
|
|
161
|
+
* @param options - Optional request-level overrides.
|
|
162
|
+
* @returns A promise that resolves to the newly created {@link EmailOutboundEmail} draft.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```typescript
|
|
166
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
167
|
+
*
|
|
168
|
+
* const draft = await client.email.outboundEmails.create({
|
|
169
|
+
* workspace_id: 'ws_abc123',
|
|
170
|
+
* subject: 'Your weekly update',
|
|
171
|
+
* body_html: '<p>Hello!</p>',
|
|
172
|
+
* sender_profile_id: 'sp_noreply',
|
|
173
|
+
* });
|
|
174
|
+
* await client.email.outboundEmails.send(draft.id);
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
create: (attributes: CreateOutboundEmailAttributes, options?: RequestOptions) => Promise<EmailOutboundEmail>;
|
|
178
|
+
/**
|
|
179
|
+
* AI-draft an email from a prompt and structured context map.
|
|
180
|
+
*
|
|
181
|
+
* The platform LLM generates a personalised subject and body from your
|
|
182
|
+
* prompt and any context data you provide (session notes, goals, health
|
|
183
|
+
* metrics, etc.). The email is saved as a draft for your review before
|
|
184
|
+
* you call `send()`.
|
|
185
|
+
*
|
|
186
|
+
* @param attributes - See {@link ComposeWithAiAttributes} for all fields.
|
|
187
|
+
* Required: `to`, `prompt`, `workspace_id`.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```typescript
|
|
191
|
+
* const draft = await client.email.outboundEmails.composeWithAi({
|
|
192
|
+
* to: ['alice@example.com'],
|
|
193
|
+
* prompt: 'Write a warm post-session follow-up for a nutrition client',
|
|
194
|
+
* workspace_id: 'ws_abc123',
|
|
195
|
+
* context: { session_notes: 'Discussed protein goals...', protein_target: 120 },
|
|
196
|
+
* sender_profile_id: 'sp_xyz',
|
|
197
|
+
* include_unsubscribe_link: true,
|
|
198
|
+
* });
|
|
199
|
+
* await client.email.outboundEmails.send(draft.id);
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
composeWithAi: (attributes: ComposeWithAiAttributes, options?: RequestOptions) => Promise<EmailOutboundEmail>;
|
|
203
|
+
/**
|
|
204
|
+
* Update a draft outbound email's attributes.
|
|
205
|
+
*
|
|
206
|
+
* Only the fields present in `attributes` are changed (PATCH semantics).
|
|
207
|
+
* An email can only be updated while in `draft` or `scheduled` status.
|
|
208
|
+
*
|
|
209
|
+
* @param id - The unique identifier of the outbound email to update.
|
|
210
|
+
* @param attributes - Key/value map of attributes to change (e.g.
|
|
211
|
+
* `subject`, `body_html`, `body_text`, `sender_profile_id`).
|
|
212
|
+
* @param options - Optional request-level overrides.
|
|
213
|
+
* @returns A promise that resolves to the updated {@link EmailOutboundEmail}.
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* ```typescript
|
|
217
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
218
|
+
*
|
|
219
|
+
* const updated = await client.email.outboundEmails.update('oe_abc123', {
|
|
220
|
+
* subject: 'Updated subject line',
|
|
221
|
+
* });
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
update: (id: string, attributes: UpdateOutboundEmailAttributes, options?: RequestOptions) => Promise<EmailOutboundEmail>;
|
|
225
|
+
/**
|
|
226
|
+
* Delete a draft outbound email.
|
|
227
|
+
*
|
|
228
|
+
* Only emails in `draft` status can be deleted. Emails in `sent` or
|
|
229
|
+
* `failed` status are immutable — archive them via your application logic.
|
|
230
|
+
*
|
|
231
|
+
* @param id - The unique identifier of the outbound email to delete.
|
|
232
|
+
* @param options - Optional request-level overrides.
|
|
233
|
+
* @returns A promise that resolves to `true` on successful deletion.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```typescript
|
|
237
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
238
|
+
*
|
|
239
|
+
* await client.email.outboundEmails.delete('oe_abc123');
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
243
|
+
/**
|
|
244
|
+
* Send a draft email immediately via the workspace's connected Gmail or Outlook.
|
|
245
|
+
*
|
|
246
|
+
* Delivery is asynchronous — returns the email in `ready` status.
|
|
247
|
+
* Poll for `sent` status or subscribe to the `OutboundEmailSent` WebSocket event.
|
|
248
|
+
*
|
|
249
|
+
* @param id - ID of the OutboundEmail to send
|
|
250
|
+
*/
|
|
251
|
+
send: (id: string, options?: RequestOptions) => Promise<EmailOutboundEmail>;
|
|
252
|
+
/**
|
|
253
|
+
* Schedule a draft for future delivery.
|
|
254
|
+
*
|
|
255
|
+
* @param id - ID of the OutboundEmail
|
|
256
|
+
* @param attributes.scheduled_for - ISO 8601 datetime string
|
|
257
|
+
*/
|
|
258
|
+
schedule: (id: string, attributes: {
|
|
259
|
+
scheduled_for: string;
|
|
260
|
+
}, options?: RequestOptions) => Promise<EmailOutboundEmail>;
|
|
261
|
+
/** Cancel a previously scheduled email (returns it to draft status). */
|
|
262
|
+
cancelSchedule: (id: string, options?: RequestOptions) => Promise<EmailOutboundEmail>;
|
|
263
|
+
/** List all outbound emails in a workspace. */
|
|
264
|
+
listByWorkspace: (workspaceId: string, options?: {
|
|
265
|
+
page?: number;
|
|
266
|
+
pageSize?: number;
|
|
267
|
+
} & RequestOptions) => Promise<EmailOutboundEmail[]>;
|
|
268
|
+
/** Get all emails sent to a specific contact within a workspace. */
|
|
269
|
+
listByContact: (workspaceId: string, contactRefId: string, options?: {
|
|
270
|
+
page?: number;
|
|
271
|
+
pageSize?: number;
|
|
272
|
+
} & RequestOptions) => Promise<EmailOutboundEmail[]>;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Sender Profiles — verified from-address identities for outgoing email.
|
|
276
|
+
*/
|
|
277
|
+
senderProfiles: {
|
|
278
|
+
/** Get a sender profile by ID. */
|
|
279
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailMarketingSenderProfile>;
|
|
280
|
+
/**
|
|
281
|
+
* Create a new sender profile (from-address identity).
|
|
282
|
+
*
|
|
283
|
+
* A sender profile defines the `From` name and email address used when
|
|
284
|
+
* sending emails. Before a profile can be used, its domain must be
|
|
285
|
+
* verified via DNS records (SPF, DKIM, DMARC). Call `validateDns()` to
|
|
286
|
+
* trigger verification after publishing DNS records.
|
|
287
|
+
*
|
|
288
|
+
* @param attributes - Key/value map of profile attributes. Required:
|
|
289
|
+
* `workspace_id`, `email`, `name`. Optional: `address`, `company`, `phone`, `signature`.
|
|
290
|
+
* @param options - Optional request-level overrides.
|
|
291
|
+
* @returns A promise that resolves to the newly created {@link EmailMarketingSenderProfile}.
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* ```typescript
|
|
295
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
296
|
+
*
|
|
297
|
+
* const profile = await client.email.senderProfiles.create({
|
|
298
|
+
* workspace_id: 'ws_abc123',
|
|
299
|
+
* email: 'hello@acme.com',
|
|
300
|
+
* name: 'Acme Team',
|
|
301
|
+
* });
|
|
302
|
+
* // Publish DNS records, then verify:
|
|
303
|
+
* await client.email.senderProfiles.validateDns(profile.id);
|
|
304
|
+
* ```
|
|
305
|
+
*/
|
|
306
|
+
create: (attributes: CreateEmailSenderProfileAttributes, options?: RequestOptions) => Promise<EmailMarketingSenderProfile>;
|
|
307
|
+
/**
|
|
308
|
+
* Update a sender profile's attributes.
|
|
309
|
+
*
|
|
310
|
+
* Only the fields present in `attributes` are changed (PATCH semantics).
|
|
311
|
+
* After updating domain-related fields, re-verify DNS
|
|
312
|
+
* with `validateDns()` to confirm deliverability is not impacted.
|
|
313
|
+
*
|
|
314
|
+
* @param id - The unique identifier of the sender profile to update.
|
|
315
|
+
* @param attributes - Key/value map of attributes to change (e.g.
|
|
316
|
+
* `name`, `company`, `signature`).
|
|
317
|
+
* @param options - Optional request-level overrides.
|
|
318
|
+
* @returns A promise that resolves to the updated {@link EmailMarketingSenderProfile}.
|
|
319
|
+
*
|
|
320
|
+
* @example
|
|
321
|
+
* ```typescript
|
|
322
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
323
|
+
*
|
|
324
|
+
* const profile = await client.email.senderProfiles.update('sp_abc123', {
|
|
325
|
+
* name: 'Acme Support',
|
|
326
|
+
* });
|
|
327
|
+
* ```
|
|
328
|
+
*/
|
|
329
|
+
update: (id: string, attributes: UpdateEmailSenderProfileAttributes, options?: RequestOptions) => Promise<EmailMarketingSenderProfile>;
|
|
330
|
+
/**
|
|
331
|
+
* Delete a sender profile.
|
|
332
|
+
*
|
|
333
|
+
* Deleting a sender profile that is in use by active campaigns or drafts
|
|
334
|
+
* will require those campaigns to select a new profile before sending.
|
|
335
|
+
*
|
|
336
|
+
* @param id - The unique identifier of the sender profile to delete.
|
|
337
|
+
* @param options - Optional request-level overrides.
|
|
338
|
+
* @returns A promise that resolves to `true` on successful deletion.
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```typescript
|
|
342
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
343
|
+
*
|
|
344
|
+
* await client.email.senderProfiles.delete('sp_abc123');
|
|
345
|
+
* ```
|
|
346
|
+
*/
|
|
347
|
+
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
348
|
+
/** Trigger DNS validation for a sender profile (verifies SPF/DKIM). */
|
|
349
|
+
validateDns: (id: string, options?: RequestOptions) => Promise<EmailMarketingSenderProfile>;
|
|
350
|
+
/**
|
|
351
|
+
* Set a sender profile as the workspace default.
|
|
352
|
+
*
|
|
353
|
+
* The default sender profile is used automatically when no
|
|
354
|
+
* `sender_profile_id` is specified on an outbound email or campaign.
|
|
355
|
+
* Only one profile can be the default per workspace at a time —
|
|
356
|
+
* calling this replaces any previous default.
|
|
357
|
+
*
|
|
358
|
+
* @param id - The unique identifier of the sender profile to set as default.
|
|
359
|
+
* @param options - Optional request-level overrides.
|
|
360
|
+
* @returns A promise that resolves to the updated {@link EmailMarketingSenderProfile}
|
|
361
|
+
* with `is_default` set to `true`.
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* ```typescript
|
|
365
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
366
|
+
*
|
|
367
|
+
* await client.email.senderProfiles.setDefault('sp_abc123');
|
|
368
|
+
* console.log('Default sender profile updated');
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
setDefault: (id: string, options?: RequestOptions) => Promise<EmailMarketingSenderProfile>;
|
|
372
|
+
/** List all sender profiles for a workspace. */
|
|
373
|
+
listByWorkspace: (workspaceId: string, options?: {
|
|
374
|
+
page?: number;
|
|
375
|
+
pageSize?: number;
|
|
376
|
+
} & RequestOptions) => Promise<EmailMarketingSenderProfile[]>;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* Recipients — to/cc/bcc recipients on an outbound email.
|
|
380
|
+
*/
|
|
381
|
+
recipients: {
|
|
382
|
+
/** Get a recipient by ID. */
|
|
383
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailRecipient>;
|
|
384
|
+
/** Add a recipient to an outbound email. */
|
|
385
|
+
create: (attributes: {
|
|
386
|
+
outbound_email_id: string;
|
|
387
|
+
email: string;
|
|
388
|
+
name?: string;
|
|
389
|
+
recipient_type?: "to" | "cc" | "bcc";
|
|
390
|
+
}, options?: RequestOptions) => Promise<EmailRecipient>;
|
|
391
|
+
/** Remove a recipient from an outbound email. */
|
|
392
|
+
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
393
|
+
/** List all recipients for an outbound email. */
|
|
394
|
+
listByEmail: (outboundEmailId: string, options?: RequestOptions) => Promise<EmailRecipient[]>;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Inclusions — structured data attachments (goals, charts, metrics) embedded in email bodies.
|
|
398
|
+
*/
|
|
399
|
+
inclusions: {
|
|
400
|
+
/** Get an inclusion by ID. */
|
|
401
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailInclusion>;
|
|
402
|
+
/** Attach a structured data inclusion to a draft email. */
|
|
403
|
+
create: (attributes: {
|
|
404
|
+
outbound_email_id: string;
|
|
405
|
+
inclusion_type: "goal" | "metric" | "chart" | "resource" | "supplement" | "custom";
|
|
406
|
+
ref_id?: string;
|
|
407
|
+
title?: string;
|
|
408
|
+
data?: Record<string, unknown>;
|
|
409
|
+
position?: number;
|
|
410
|
+
}, options?: RequestOptions) => Promise<EmailInclusion>;
|
|
411
|
+
/** Update an inclusion's display data or position. */
|
|
412
|
+
update: (id: string, attributes: {
|
|
413
|
+
title?: string;
|
|
414
|
+
rendered_html?: string;
|
|
415
|
+
data?: Record<string, unknown>;
|
|
416
|
+
position?: number;
|
|
417
|
+
}, options?: RequestOptions) => Promise<EmailInclusion>;
|
|
418
|
+
/** Remove an inclusion from a draft email. */
|
|
419
|
+
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
420
|
+
/** List all inclusions attached to an outbound email. */
|
|
421
|
+
listByEmail: (outboundEmailId: string, options?: RequestOptions) => Promise<EmailInclusion[]>;
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* Tracking Events — open/click/bounce event history. Read-only.
|
|
425
|
+
*/
|
|
426
|
+
trackingEvents: {
|
|
427
|
+
/** Get a tracking event by ID. */
|
|
428
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailTrackingEvent>;
|
|
429
|
+
/** List all tracking events for a workspace. */
|
|
430
|
+
listByWorkspace: (workspaceId: string, options?: {
|
|
431
|
+
page?: number;
|
|
432
|
+
pageSize?: number;
|
|
433
|
+
} & RequestOptions) => Promise<EmailTrackingEvent[]>;
|
|
434
|
+
};
|
|
435
|
+
/**
|
|
436
|
+
* Unsubscribers — CAN-SPAM global unsubscribe registry.
|
|
437
|
+
*/
|
|
438
|
+
unsubscribers: {
|
|
439
|
+
/** Get an unsubscribe record by ID. */
|
|
440
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailUnsubscriber>;
|
|
441
|
+
/** List all unsubscribers for a workspace. */
|
|
442
|
+
listByWorkspace: (workspaceId: string, options?: {
|
|
443
|
+
page?: number;
|
|
444
|
+
pageSize?: number;
|
|
445
|
+
} & RequestOptions) => Promise<EmailUnsubscriber[]>;
|
|
446
|
+
};
|
|
447
|
+
/**
|
|
448
|
+
* Send Limits — daily send quota records for outbound email.
|
|
449
|
+
*
|
|
450
|
+
* Each workspace has a send limit record per calendar day that tracks
|
|
451
|
+
* how many emails (with and without unsubscribe links) have been sent.
|
|
452
|
+
* Use these records to display usage dashboards or enforce ISV-side
|
|
453
|
+
* throttling before hitting platform hard limits.
|
|
454
|
+
*/
|
|
455
|
+
sendLimits: {
|
|
456
|
+
/**
|
|
457
|
+
* Get the send limit record for today in a workspace.
|
|
458
|
+
*
|
|
459
|
+
* @param workspaceId - The ID of the workspace to query.
|
|
460
|
+
* @param options - Optional request-level overrides.
|
|
461
|
+
* @returns A promise that resolves to today's {@link EmailSendLimit} record.
|
|
462
|
+
*
|
|
463
|
+
* @example
|
|
464
|
+
* ```typescript
|
|
465
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
466
|
+
*
|
|
467
|
+
* const limit = await client.email.sendLimits.get('ws_abc123');
|
|
468
|
+
* console.log(limit.attributes.sent_with_unsubscribe, limit.attributes.limit_with_unsubscribe);
|
|
469
|
+
* ```
|
|
470
|
+
*/
|
|
471
|
+
get: (workspaceId: string, options?: RequestOptions) => Promise<EmailSendLimit>;
|
|
472
|
+
/**
|
|
473
|
+
* List send limit records for a workspace (historical).
|
|
474
|
+
*
|
|
475
|
+
* Returns one record per day that emails were sent. Records are ordered
|
|
476
|
+
* by date descending. Use for displaying usage history or charting
|
|
477
|
+
* daily send volume over time.
|
|
478
|
+
*
|
|
479
|
+
* @param workspaceId - The ID of the workspace to query.
|
|
480
|
+
* @param options - Optional pagination controls (`page`, `pageSize`) and
|
|
481
|
+
* request-level overrides.
|
|
482
|
+
* @returns A promise that resolves to an array of {@link EmailSendLimit} records.
|
|
483
|
+
*
|
|
484
|
+
* @example
|
|
485
|
+
* ```typescript
|
|
486
|
+
* const client = new GptClient({ apiKey: 'sk_app_...' });
|
|
487
|
+
*
|
|
488
|
+
* const history = await client.email.sendLimits.listByWorkspace('ws_abc123', { pageSize: 30 });
|
|
489
|
+
* console.log(`Last 30 days of send history: ${history.length} records`);
|
|
490
|
+
* ```
|
|
491
|
+
*/
|
|
492
|
+
listByWorkspace: (workspaceId: string, options?: {
|
|
493
|
+
page?: number;
|
|
494
|
+
pageSize?: number;
|
|
495
|
+
} & RequestOptions) => Promise<EmailSendLimit[]>;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Inbound Addresses — workspace-scoped email addresses that receive inbound mail.
|
|
499
|
+
*
|
|
500
|
+
* Any sender can email `{token}@inbound.gpt.app`. Configure a routing target
|
|
501
|
+
* (`:extraction`, `:agent`, `:invoices`, `:crm`) to process received emails automatically.
|
|
502
|
+
*/
|
|
503
|
+
inbound: {
|
|
504
|
+
addresses: {
|
|
505
|
+
/** Get an inbound address by ID. */
|
|
506
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailInboundAddress>;
|
|
507
|
+
/** Create a new inbound address. */
|
|
508
|
+
create: (attributes: {
|
|
509
|
+
workspace_id: string;
|
|
510
|
+
name: string;
|
|
511
|
+
routing_target: "extraction" | "agent" | "invoices" | "crm";
|
|
512
|
+
handler_config?: Record<string, unknown>;
|
|
513
|
+
max_attachment_size_mb?: number;
|
|
514
|
+
allowed_mime_types?: string[] | null;
|
|
515
|
+
daily_receive_limit?: number;
|
|
516
|
+
}, options?: RequestOptions) => Promise<EmailInboundAddress>;
|
|
517
|
+
/** Update an inbound address. */
|
|
518
|
+
update: (id: string, attributes: UpdateInboundAddressAttributes, options?: RequestOptions) => Promise<EmailInboundAddress>;
|
|
519
|
+
/** Delete an inbound address. */
|
|
520
|
+
delete: (id: string, options?: RequestOptions) => Promise<true>;
|
|
521
|
+
/** Rotate the inbound address token (invalidates old token). */
|
|
522
|
+
rotateToken: (id: string, options?: RequestOptions) => Promise<EmailInboundAddress>;
|
|
523
|
+
/** Disable an inbound address (stops accepting email). */
|
|
524
|
+
disable: (id: string, options?: RequestOptions) => Promise<EmailInboundAddress>;
|
|
525
|
+
/** Re-enable a disabled inbound address. */
|
|
526
|
+
enable: (id: string, options?: RequestOptions) => Promise<EmailInboundAddress>;
|
|
527
|
+
/** List all inbound addresses in a workspace. */
|
|
528
|
+
listByWorkspace: (workspaceId: string, options?: {
|
|
529
|
+
page?: number;
|
|
530
|
+
pageSize?: number;
|
|
531
|
+
} & RequestOptions) => Promise<EmailInboundAddress[]>;
|
|
532
|
+
};
|
|
533
|
+
/** Received — read-only log of received inbound emails. */
|
|
534
|
+
received: {
|
|
535
|
+
/** Get a received inbound email by ID. */
|
|
536
|
+
get: (id: string, options?: RequestOptions) => Promise<EmailInboundEmail>;
|
|
537
|
+
/** List received emails by inbound address. */
|
|
538
|
+
listByAddress: (addressId: string, options?: {
|
|
539
|
+
page?: number;
|
|
540
|
+
pageSize?: number;
|
|
541
|
+
} & RequestOptions) => Promise<EmailInboundEmail[]>;
|
|
542
|
+
/** List all received emails in a workspace. */
|
|
543
|
+
listByWorkspace: (workspaceId: string, options?: {
|
|
544
|
+
page?: number;
|
|
545
|
+
pageSize?: number;
|
|
546
|
+
} & RequestOptions) => Promise<EmailInboundEmail[]>;
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
//# sourceMappingURL=email.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/namespaces/email.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,wBAAwB,CAAC;AAEhC,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,yBAAyB,EAAE,MAAM,CAAC;IAClC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,wBAAwB,EAAE,MAAM,CAAC;IACjC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,iEAAiE;AACjE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,C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