samva 0.46.1 → 0.48.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/AGENTS.md +13 -7
- package/README.md +106 -8
- package/dist/agent/index.d.ts +57 -0
- package/dist/agent/index.js +53 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +95 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +150 -0
- package/dist/client/sdk.gen.d.ts +50 -165
- package/dist/client/sdk.gen.js +1339 -1614
- package/dist/client/types.gen.d.ts +461 -989
- package/dist/effect/agents.d.ts +340 -8
- package/dist/effect/agents.js +4 -2
- package/dist/effect/api-keys.d.ts +2 -0
- package/dist/effect/campaigns.d.ts +160 -160
- package/dist/effect/contacts.d.ts +8 -0
- package/dist/effect/contacts.js +5 -1
- package/dist/effect/descriptors/agents.d.ts +12 -2
- package/dist/effect/descriptors/agents.js +12 -2
- package/dist/effect/descriptors/contacts.d.ts +20 -0
- package/dist/effect/descriptors/contacts.js +20 -0
- package/dist/effect/generated/accounts.d.ts +10 -0
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/contacts.d.ts +859 -1
- package/dist/effect/generated/contacts.js +62 -3
- package/dist/effect/generated/index.d.ts +1 -5
- package/dist/effect/generated/journeys.d.ts +351 -111
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- package/dist/effect/generated/shared.d.ts +459 -139
- package/dist/effect/generated/shared.js +84 -39
- package/dist/effect/generated/template-registrations.d.ts +19 -4
- package/dist/effect/generated/template-registrations.js +8 -7
- package/dist/effect/generated/templates.d.ts +76 -11
- package/dist/effect/generated/templates.js +25 -12
- package/dist/effect/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +0 -2
- package/dist/effect/index.js +1 -3
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/operation.js +4 -1
- package/dist/effect/journeys.d.ts +26 -2
- package/dist/effect/mailboxes.d.ts +41 -41
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/templates.d.ts +9 -0
- package/dist/effect/topics.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -5
- package/dist/promises/client.js +3 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +18 -75
- package/package.json +10 -22
- package/dist/effect/descriptors/extension-installations.d.ts +0 -90
- package/dist/effect/descriptors/extension-installations.js +0 -90
- package/dist/effect/descriptors/extensions.d.ts +0 -50
- package/dist/effect/descriptors/extensions.js +0 -50
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -29
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -21
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
package/dist/effect/index.d.ts
CHANGED
|
@@ -32,8 +32,6 @@ export * as Contacts from "./contacts.js";
|
|
|
32
32
|
export * as Conversations from "./conversations.js";
|
|
33
33
|
export * as CustomFields from "./custom-fields.js";
|
|
34
34
|
export * as Email from "./email.js";
|
|
35
|
-
export * as ExtensionInstallations from "./extension-installations.js";
|
|
36
|
-
export * as Extensions from "./extensions.js";
|
|
37
35
|
export * as Events from "./events.js";
|
|
38
36
|
export * as Feedback from "./feedback.js";
|
|
39
37
|
export * as Journeys from "./journeys.js";
|
package/dist/effect/index.js
CHANGED
|
@@ -18,8 +18,6 @@ import { contacts_exports } from "./contacts.js";
|
|
|
18
18
|
import { conversations_exports } from "./conversations.js";
|
|
19
19
|
import { custom_fields_exports } from "./custom-fields.js";
|
|
20
20
|
import { email_exports } from "./email.js";
|
|
21
|
-
import { extension_installations_exports } from "./extension-installations.js";
|
|
22
|
-
import { extensions_exports } from "./extensions.js";
|
|
23
21
|
import { events_exports } from "./events.js";
|
|
24
22
|
import { feedback_exports } from "./feedback.js";
|
|
25
23
|
import { journeys_exports } from "./journeys.js";
|
|
@@ -45,4 +43,4 @@ import { whatsapp_flows_exports } from "./whatsapp-flows.js";
|
|
|
45
43
|
import { whatsapp_setup_links_exports } from "./whatsapp-setup-links.js";
|
|
46
44
|
import { template_registrations_exports } from "./template-registrations.js";
|
|
47
45
|
import { template_share_links_exports } from "./template-share-links.js";
|
|
48
|
-
export { accounts_exports as Accounts, agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, approval_requests_exports as ApprovalRequests, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, CredentialsError, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events,
|
|
46
|
+
export { accounts_exports as Accounts, agents_exports as Agents, analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, approval_requests_exports as ApprovalRequests, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, CredentialsError, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, integrations_catalog_exports as IntegrationCatalog, integrations_exports as Integrations, InternalError, journeys_exports as Journeys, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, MalformedRequestError, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, newsletter_domains_exports as NewsletterDomains, newsletter_issues_exports as NewsletterIssues, newsletters_exports as Newsletters, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, policies_exports as Policies, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, ServiceUnavailableError, subscriptions_exports as Subscriptions, TemplateInUseError, template_registrations_exports as TemplateRegistrations, template_share_links_exports as TemplateShareLinks, TemplateSourceError, templates_exports as Templates, topic_forms_exports as TopicForms, topics_exports as Topics, UnauthorizedError, ValidationError, webhooks_exports as Webhooks, whatsapp_exports as WhatsApp, WhatsAppChannelError, whatsapp_flows_exports as WhatsAppFlows, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError, whatsapp_setup_links_exports as WhatsAppSetupLinks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CLIENT_ATTRIBUTION_HEADER, clientAttribution } from "../../client-attribution.js";
|
|
2
2
|
import { MediaUploadError, uploadContentType } from "../../inline-attachments.js";
|
|
3
3
|
import { ApiKeySecurityMiddleware } from "../generated/shared.js";
|
|
4
|
-
import { HttpApi, HttpApiClient, HttpApiMiddleware } from "effect/http-api";
|
|
5
4
|
import { Context, Effect, Layer, Redacted } from "effect";
|
|
5
|
+
import { HttpApi, HttpApiClient, HttpApiMiddleware } from "effect/http-api";
|
|
6
6
|
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
7
7
|
import * as HttpClient from "effect/http/HttpClient";
|
|
8
8
|
import * as HttpClientRequest from "effect/http/HttpClientRequest";
|
|
@@ -22,7 +22,10 @@ const adapt = (descriptor, operationName, rawCall, input, idempotencyKey) => {
|
|
|
22
22
|
const call = (request = {}) => {
|
|
23
23
|
const operation = rawCall({
|
|
24
24
|
...request,
|
|
25
|
-
|
|
25
|
+
headers: {
|
|
26
|
+
...request["headers"],
|
|
27
|
+
...idempotencyKey === void 0 ? {} : { "idempotency-key": idempotencyKey }
|
|
28
|
+
}
|
|
26
29
|
});
|
|
27
30
|
return isRetrySafe(descriptor, input) ? withRetry(operation) : operation;
|
|
28
31
|
};
|
|
@@ -54,6 +54,7 @@ export declare const create: (input: {
|
|
|
54
54
|
readonly type: "send_email";
|
|
55
55
|
readonly config: {
|
|
56
56
|
readonly template: string;
|
|
57
|
+
readonly publicationId?: string | undefined;
|
|
57
58
|
readonly senderId?: string | undefined;
|
|
58
59
|
readonly templateData?: {
|
|
59
60
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
@@ -125,6 +126,13 @@ export declare const create: (input: {
|
|
|
125
126
|
} | undefined;
|
|
126
127
|
} | undefined;
|
|
127
128
|
readonly businessAccountId?: string | undefined;
|
|
129
|
+
readonly pinnedRegistration?: {
|
|
130
|
+
readonly registrationId: string;
|
|
131
|
+
readonly templateChannelVariantId: string;
|
|
132
|
+
} | undefined;
|
|
133
|
+
readonly eventBindings?: {
|
|
134
|
+
readonly [x: string]: string | undefined;
|
|
135
|
+
} | undefined;
|
|
128
136
|
};
|
|
129
137
|
readonly next: readonly {
|
|
130
138
|
readonly nodeId: string;
|
|
@@ -252,6 +260,10 @@ export declare const create: (input: {
|
|
|
252
260
|
readonly eventName: string;
|
|
253
261
|
} | undefined;
|
|
254
262
|
readonly reentry?: boolean | undefined;
|
|
263
|
+
readonly enrollment?: {
|
|
264
|
+
readonly type: "shopify_order";
|
|
265
|
+
readonly shop: string;
|
|
266
|
+
} | undefined;
|
|
255
267
|
};
|
|
256
268
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"journeysCreate">;
|
|
257
269
|
export declare const get: (input: {
|
|
@@ -286,6 +298,7 @@ export declare const replaceDraft: (input: {
|
|
|
286
298
|
readonly type: "send_email";
|
|
287
299
|
readonly config: {
|
|
288
300
|
readonly template: string;
|
|
301
|
+
readonly publicationId?: string | undefined;
|
|
289
302
|
readonly senderId?: string | undefined;
|
|
290
303
|
readonly templateData?: {
|
|
291
304
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
@@ -357,6 +370,13 @@ export declare const replaceDraft: (input: {
|
|
|
357
370
|
} | undefined;
|
|
358
371
|
} | undefined;
|
|
359
372
|
readonly businessAccountId?: string | undefined;
|
|
373
|
+
readonly pinnedRegistration?: {
|
|
374
|
+
readonly registrationId: string;
|
|
375
|
+
readonly templateChannelVariantId: string;
|
|
376
|
+
} | undefined;
|
|
377
|
+
readonly eventBindings?: {
|
|
378
|
+
readonly [x: string]: string | undefined;
|
|
379
|
+
} | undefined;
|
|
360
380
|
};
|
|
361
381
|
readonly next: readonly {
|
|
362
382
|
readonly nodeId: string;
|
|
@@ -484,6 +504,10 @@ export declare const replaceDraft: (input: {
|
|
|
484
504
|
readonly eventName: string;
|
|
485
505
|
} | undefined;
|
|
486
506
|
readonly reentry?: boolean | undefined;
|
|
507
|
+
readonly enrollment?: {
|
|
508
|
+
readonly type: "shopify_order";
|
|
509
|
+
readonly shop: string;
|
|
510
|
+
} | undefined;
|
|
487
511
|
};
|
|
488
512
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"journeysReplaceDraft">;
|
|
489
513
|
export declare const publish: (input: {
|
|
@@ -527,7 +551,7 @@ export declare const listRuns: ((input: {
|
|
|
527
551
|
readonly version: number;
|
|
528
552
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
529
553
|
readonly status: "active" | "exited" | "failed" | "paused";
|
|
530
|
-
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
554
|
+
readonly exitReason: "archived" | "completed" | "goal" | "merged" | null;
|
|
531
555
|
readonly failureReason: string | null;
|
|
532
556
|
readonly currentNodeId: string | null;
|
|
533
557
|
readonly holdReason: string | null;
|
|
@@ -556,7 +580,7 @@ export declare const listRuns: ((input: {
|
|
|
556
580
|
readonly version: number;
|
|
557
581
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
558
582
|
readonly status: "active" | "exited" | "failed" | "paused";
|
|
559
|
-
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
583
|
+
readonly exitReason: "archived" | "completed" | "goal" | "merged" | null;
|
|
560
584
|
readonly failureReason: string | null;
|
|
561
585
|
readonly currentNodeId: string | null;
|
|
562
586
|
readonly holdReason: string | null;
|
|
@@ -1240,6 +1240,23 @@ export declare const deleteNote: (input: {
|
|
|
1240
1240
|
readonly noteId: string;
|
|
1241
1241
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesDeleteNote">;
|
|
1242
1242
|
export declare const sendMessage: (input: {
|
|
1243
|
+
readonly channel?: "email" | null | undefined;
|
|
1244
|
+
readonly to: readonly string[];
|
|
1245
|
+
readonly cc?: readonly string[] | null | undefined;
|
|
1246
|
+
readonly bcc?: readonly string[] | null | undefined;
|
|
1247
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
1248
|
+
readonly subject: string;
|
|
1249
|
+
readonly text?: string | null | undefined;
|
|
1250
|
+
readonly html?: string | null | undefined;
|
|
1251
|
+
readonly attachments?: readonly {
|
|
1252
|
+
readonly filename: string;
|
|
1253
|
+
readonly content?: string | null | undefined;
|
|
1254
|
+
readonly mediaId?: string | null | undefined;
|
|
1255
|
+
readonly contentType: string;
|
|
1256
|
+
readonly size: number;
|
|
1257
|
+
}[] | null | undefined;
|
|
1258
|
+
readonly id: string;
|
|
1259
|
+
} | {
|
|
1243
1260
|
readonly channel: "sms" | "whatsapp";
|
|
1244
1261
|
readonly to: string;
|
|
1245
1262
|
readonly text?: string | null | undefined;
|
|
@@ -1272,23 +1289,6 @@ export declare const sendMessage: (input: {
|
|
|
1272
1289
|
} | null | undefined;
|
|
1273
1290
|
} | null | undefined;
|
|
1274
1291
|
readonly id: string;
|
|
1275
|
-
} | {
|
|
1276
|
-
readonly channel?: "email" | null | undefined;
|
|
1277
|
-
readonly to: readonly string[];
|
|
1278
|
-
readonly cc?: readonly string[] | null | undefined;
|
|
1279
|
-
readonly bcc?: readonly string[] | null | undefined;
|
|
1280
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
1281
|
-
readonly subject: string;
|
|
1282
|
-
readonly text?: string | null | undefined;
|
|
1283
|
-
readonly html?: string | null | undefined;
|
|
1284
|
-
readonly attachments?: readonly {
|
|
1285
|
-
readonly filename: string;
|
|
1286
|
-
readonly content?: string | null | undefined;
|
|
1287
|
-
readonly mediaId?: string | null | undefined;
|
|
1288
|
-
readonly contentType: string;
|
|
1289
|
-
readonly size: number;
|
|
1290
|
-
}[] | null | undefined;
|
|
1291
|
-
readonly id: string;
|
|
1292
1292
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesSendMessage">;
|
|
1293
1293
|
export declare const getMessage: (input: {
|
|
1294
1294
|
readonly id: string;
|
|
@@ -1309,6 +1309,21 @@ export declare const copyMessageAttachment: (input: {
|
|
|
1309
1309
|
readonly attachmentId: string;
|
|
1310
1310
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCopyMessageAttachment">;
|
|
1311
1311
|
export declare const reply: (input: {
|
|
1312
|
+
readonly channel?: "email" | null | undefined;
|
|
1313
|
+
readonly cc?: readonly string[] | null | undefined;
|
|
1314
|
+
readonly bcc?: readonly string[] | null | undefined;
|
|
1315
|
+
readonly text?: string | null | undefined;
|
|
1316
|
+
readonly html?: string | null | undefined;
|
|
1317
|
+
readonly attachments?: readonly {
|
|
1318
|
+
readonly filename: string;
|
|
1319
|
+
readonly content?: string | null | undefined;
|
|
1320
|
+
readonly mediaId?: string | null | undefined;
|
|
1321
|
+
readonly contentType: string;
|
|
1322
|
+
readonly size: number;
|
|
1323
|
+
}[] | null | undefined;
|
|
1324
|
+
readonly id: string;
|
|
1325
|
+
readonly messageId: string;
|
|
1326
|
+
} | {
|
|
1312
1327
|
readonly channel: "sms" | "whatsapp";
|
|
1313
1328
|
readonly text?: string | null | undefined;
|
|
1314
1329
|
readonly templateId?: string | null | undefined;
|
|
@@ -1341,7 +1356,8 @@ export declare const reply: (input: {
|
|
|
1341
1356
|
} | null | undefined;
|
|
1342
1357
|
readonly id: string;
|
|
1343
1358
|
readonly messageId: string;
|
|
1344
|
-
}
|
|
1359
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesReply">;
|
|
1360
|
+
export declare const replyAll: (input: {
|
|
1345
1361
|
readonly channel?: "email" | null | undefined;
|
|
1346
1362
|
readonly cc?: readonly string[] | null | undefined;
|
|
1347
1363
|
readonly bcc?: readonly string[] | null | undefined;
|
|
@@ -1356,8 +1372,7 @@ export declare const reply: (input: {
|
|
|
1356
1372
|
}[] | null | undefined;
|
|
1357
1373
|
readonly id: string;
|
|
1358
1374
|
readonly messageId: string;
|
|
1359
|
-
}
|
|
1360
|
-
export declare const replyAll: (input: {
|
|
1375
|
+
} | {
|
|
1361
1376
|
readonly channel: "sms" | "whatsapp";
|
|
1362
1377
|
readonly text?: string | null | undefined;
|
|
1363
1378
|
readonly templateId?: string | null | undefined;
|
|
@@ -1390,21 +1405,6 @@ export declare const replyAll: (input: {
|
|
|
1390
1405
|
} | null | undefined;
|
|
1391
1406
|
readonly id: string;
|
|
1392
1407
|
readonly messageId: string;
|
|
1393
|
-
} | {
|
|
1394
|
-
readonly channel?: "email" | null | undefined;
|
|
1395
|
-
readonly cc?: readonly string[] | null | undefined;
|
|
1396
|
-
readonly bcc?: readonly string[] | null | undefined;
|
|
1397
|
-
readonly text?: string | null | undefined;
|
|
1398
|
-
readonly html?: string | null | undefined;
|
|
1399
|
-
readonly attachments?: readonly {
|
|
1400
|
-
readonly filename: string;
|
|
1401
|
-
readonly content?: string | null | undefined;
|
|
1402
|
-
readonly mediaId?: string | null | undefined;
|
|
1403
|
-
readonly contentType: string;
|
|
1404
|
-
readonly size: number;
|
|
1405
|
-
}[] | null | undefined;
|
|
1406
|
-
readonly id: string;
|
|
1407
|
-
readonly messageId: string;
|
|
1408
1408
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesReplyAll">;
|
|
1409
1409
|
export declare const forward: (input: {
|
|
1410
1410
|
readonly id: string;
|
|
@@ -1625,12 +1625,6 @@ export declare const listDrafts: ((input: {
|
|
|
1625
1625
|
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
1626
1626
|
};
|
|
1627
1627
|
export declare const createDraft: (input: {
|
|
1628
|
-
readonly channel: "sms" | "whatsapp";
|
|
1629
|
-
readonly to?: string | null | undefined;
|
|
1630
|
-
readonly text?: string | null | undefined;
|
|
1631
|
-
readonly inReplyToMessageId?: string | null | undefined;
|
|
1632
|
-
readonly id: string;
|
|
1633
|
-
} | {
|
|
1634
1628
|
readonly channel?: "email" | null | undefined;
|
|
1635
1629
|
readonly endpointId?: string | null | undefined;
|
|
1636
1630
|
readonly to?: readonly string[] | null | undefined;
|
|
@@ -1649,6 +1643,12 @@ export declare const createDraft: (input: {
|
|
|
1649
1643
|
}[] | null | undefined;
|
|
1650
1644
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
1651
1645
|
readonly id: string;
|
|
1646
|
+
} | {
|
|
1647
|
+
readonly channel: "sms" | "whatsapp";
|
|
1648
|
+
readonly to?: string | null | undefined;
|
|
1649
|
+
readonly text?: string | null | undefined;
|
|
1650
|
+
readonly inReplyToMessageId?: string | null | undefined;
|
|
1651
|
+
readonly id: string;
|
|
1652
1652
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"mailboxesCreateDraft">;
|
|
1653
1653
|
export declare const getDraft: (input: {
|
|
1654
1654
|
readonly id: string;
|