samva 0.36.0 → 0.38.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 +1 -2
- package/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +16 -31
- package/dist/client/sdk.gen.js +8 -4
- package/dist/client/types.gen.d.ts +83 -83
- package/dist/effect/agents.d.ts +3 -0
- package/dist/effect/campaigns.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -12
- package/dist/effect/generated/agents.d.ts +54 -31
- package/dist/effect/generated/agents.js +17 -14
- package/dist/effect/generated/campaigns.d.ts +29 -29
- package/dist/effect/generated/campaigns.js +6 -3
- package/dist/effect/generated/contacts.d.ts +266 -168
- package/dist/effect/generated/contacts.js +86 -61
- package/dist/effect/generated/email.js +6 -6
- package/dist/effect/generated/mailboxes.js +1 -1
- package/dist/effect/generated/messages.js +1 -1
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/scheduled-messages.d.ts +51 -2
- package/dist/effect/generated/scheduled-messages.js +25 -6
- package/dist/effect/generated/shared.d.ts +25 -11
- package/dist/effect/generated/shared.js +24 -17
- package/dist/effect/generated/subscriptions.js +3 -3
- package/dist/effect/generated/templates.d.ts +10 -2
- package/dist/effect/generated/templates.js +8 -4
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/package.json +2 -2
|
@@ -2042,7 +2042,7 @@ export type UpdateTemplatePayload = {
|
|
|
2042
2042
|
entryPath?: string | null | undefined;
|
|
2043
2043
|
description?: string | null | undefined;
|
|
2044
2044
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
2045
|
-
fromDefault?:
|
|
2045
|
+
fromDefault?: TemplateFromDefaultInput | null | undefined;
|
|
2046
2046
|
replyToDefault?: Array<string> | null | undefined;
|
|
2047
2047
|
/**
|
|
2048
2048
|
* Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default.
|
|
@@ -2054,6 +2054,10 @@ export type UpdateTemplatePayload = {
|
|
|
2054
2054
|
shared?: boolean | null | undefined;
|
|
2055
2055
|
};
|
|
2056
2056
|
};
|
|
2057
|
+
export type TemplateFromDefaultInput = {
|
|
2058
|
+
email: string;
|
|
2059
|
+
name?: string | null | undefined;
|
|
2060
|
+
};
|
|
2057
2061
|
export type AddTemplateEntryPayload = {
|
|
2058
2062
|
entryPath: string;
|
|
2059
2063
|
name: string;
|
|
@@ -2498,9 +2502,6 @@ export type SubscribeResult = {
|
|
|
2498
2502
|
expiresAt: string;
|
|
2499
2503
|
};
|
|
2500
2504
|
export type SubscribePayload = {
|
|
2501
|
-
/**
|
|
2502
|
-
* The recipient email address; confirmation proves consent for this address.
|
|
2503
|
-
*/
|
|
2504
2505
|
email: string;
|
|
2505
2506
|
topicId: TopicId;
|
|
2506
2507
|
/**
|
|
@@ -2553,6 +2554,7 @@ export type PublishAgentResponse = {
|
|
|
2553
2554
|
export type Agent = {
|
|
2554
2555
|
id: AgentId;
|
|
2555
2556
|
name: string;
|
|
2557
|
+
setupJob: AgentSetupJob | null;
|
|
2556
2558
|
namespaceId: NamespaceId | null;
|
|
2557
2559
|
revision: string;
|
|
2558
2560
|
draft: AgentDefinition;
|
|
@@ -2570,6 +2572,7 @@ export type AgentSpend = {
|
|
|
2570
2572
|
spentDollars: number;
|
|
2571
2573
|
capReachedAt: string | null;
|
|
2572
2574
|
};
|
|
2575
|
+
export type AgentSetupJob = "support" | "store" | "booking";
|
|
2573
2576
|
export type PublishAgentPayload = {
|
|
2574
2577
|
revision: string;
|
|
2575
2578
|
};
|
|
@@ -2630,6 +2633,10 @@ export type MonthlySpendCapDollars = number;
|
|
|
2630
2633
|
export type AgentName = string;
|
|
2631
2634
|
export type CreateAgentPayload = {
|
|
2632
2635
|
name: AgentName;
|
|
2636
|
+
/**
|
|
2637
|
+
* What the agent mostly does: support answers customer questions, store helps shoppers, and booking handles appointments. Omit when no job is stated. Returned as setupJob on the agent; it does not change the supplied definition.
|
|
2638
|
+
*/
|
|
2639
|
+
setupJob?: AgentSetupJob | null | undefined;
|
|
2633
2640
|
/**
|
|
2634
2641
|
* The namespace the agent belongs to; it cannot move later. Omit for an organization-level agent. A namespace-scoped key always creates in its own namespace.
|
|
2635
2642
|
*/
|
|
@@ -2675,6 +2682,7 @@ export type AgentPage = {
|
|
|
2675
2682
|
export type AgentListItem = {
|
|
2676
2683
|
id: AgentId;
|
|
2677
2684
|
name: string;
|
|
2685
|
+
setupJob: AgentSetupJob | null;
|
|
2678
2686
|
namespaceId: NamespaceId | null;
|
|
2679
2687
|
publishedVersion: number | null;
|
|
2680
2688
|
publishedAt: string | null;
|
|
@@ -3108,6 +3116,7 @@ export type Contact = {
|
|
|
3108
3116
|
preset: "beehiiv" | "substack" | "kit" | "mailchimp";
|
|
3109
3117
|
importedAt: string;
|
|
3110
3118
|
summary?: {
|
|
3119
|
+
permissionAssumed?: boolean | null | undefined;
|
|
3111
3120
|
signupAt: {
|
|
3112
3121
|
value: string;
|
|
3113
3122
|
kind: "time" | "text";
|
|
@@ -3118,13 +3127,14 @@ export type Contact = {
|
|
|
3118
3127
|
evidence: Array<{
|
|
3119
3128
|
file: string;
|
|
3120
3129
|
row: number;
|
|
3121
|
-
declared
|
|
3130
|
+
declared?: {
|
|
3122
3131
|
kind: "status_column";
|
|
3123
3132
|
} | {
|
|
3124
3133
|
kind: "export_scope";
|
|
3125
3134
|
scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
|
|
3126
|
-
};
|
|
3127
|
-
suppressionFree
|
|
3135
|
+
} | null | undefined;
|
|
3136
|
+
suppressionFree?: boolean | null | undefined;
|
|
3137
|
+
permissionBasis?: "assumed" | "exported" | null | undefined;
|
|
3128
3138
|
sourceStatus: string | null;
|
|
3129
3139
|
signupAt: string | null;
|
|
3130
3140
|
source: string | null;
|
|
@@ -3136,6 +3146,7 @@ export type Contact = {
|
|
|
3136
3146
|
preset: "beehiiv" | "substack" | "kit" | "mailchimp";
|
|
3137
3147
|
importedAt: string;
|
|
3138
3148
|
summary?: {
|
|
3149
|
+
permissionAssumed?: boolean | null | undefined;
|
|
3139
3150
|
signupAt: {
|
|
3140
3151
|
value: string;
|
|
3141
3152
|
kind: "time" | "text";
|
|
@@ -3146,19 +3157,21 @@ export type Contact = {
|
|
|
3146
3157
|
evidence: Array<{
|
|
3147
3158
|
file: string;
|
|
3148
3159
|
row: number;
|
|
3149
|
-
declared
|
|
3160
|
+
declared?: {
|
|
3150
3161
|
kind: "status_column";
|
|
3151
3162
|
} | {
|
|
3152
3163
|
kind: "export_scope";
|
|
3153
3164
|
scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
|
|
3154
|
-
};
|
|
3155
|
-
suppressionFree
|
|
3165
|
+
} | null | undefined;
|
|
3166
|
+
suppressionFree?: boolean | null | undefined;
|
|
3167
|
+
permissionBasis?: "assumed" | "exported" | null | undefined;
|
|
3156
3168
|
sourceStatus: string | null;
|
|
3157
3169
|
signupAt: string | null;
|
|
3158
3170
|
source: string | null;
|
|
3159
3171
|
}>;
|
|
3160
3172
|
};
|
|
3161
3173
|
} | null;
|
|
3174
|
+
addedAt: string | null;
|
|
3162
3175
|
createdAt: string;
|
|
3163
3176
|
updatedAt: string;
|
|
3164
3177
|
};
|
|
@@ -3995,7 +4008,7 @@ export type CampaignRecipientPage = {
|
|
|
3995
4008
|
status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
|
|
3996
4009
|
messageId: string | null;
|
|
3997
4010
|
failureReason: string | null;
|
|
3998
|
-
skippedReason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field" | null;
|
|
4011
|
+
skippedReason: "unsubscribed" | "not_added" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field" | null;
|
|
3999
4012
|
createdAt: string;
|
|
4000
4013
|
updatedAt: string;
|
|
4001
4014
|
}>;
|
|
@@ -4037,7 +4050,7 @@ export type CampaignRun = {
|
|
|
4037
4050
|
updatedAt: string;
|
|
4038
4051
|
};
|
|
4039
4052
|
export type CampaignRunSkippedReason = {
|
|
4040
|
-
reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
4053
|
+
reason: "unsubscribed" | "not_added" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
4041
4054
|
count: number;
|
|
4042
4055
|
};
|
|
4043
4056
|
export type CampaignPolicy = {
|
|
@@ -4142,7 +4155,7 @@ export type CampaignEmailContent = {
|
|
|
4142
4155
|
subject?: string | null | undefined;
|
|
4143
4156
|
html?: string | null | undefined;
|
|
4144
4157
|
text?: string | null | undefined;
|
|
4145
|
-
attachments?:
|
|
4158
|
+
attachments?: StoredEmailAttachments | undefined;
|
|
4146
4159
|
publicationId?: TemplatePublicationId | undefined;
|
|
4147
4160
|
inputContractId?: TemplateInputContractId | undefined;
|
|
4148
4161
|
templateId?: TemplateId | null | undefined;
|
|
@@ -4151,7 +4164,7 @@ export type CampaignEmailContent = {
|
|
|
4151
4164
|
locale?: RenderLocale | undefined;
|
|
4152
4165
|
timeZone?: RenderTimeZone | undefined;
|
|
4153
4166
|
inReplyToMessageId?: MessageId | null | undefined;
|
|
4154
|
-
replyTo?:
|
|
4167
|
+
replyTo?: StoredReplyToAddresses | undefined;
|
|
4155
4168
|
/**
|
|
4156
4169
|
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
4157
4170
|
*/
|
|
@@ -4189,10 +4202,10 @@ export type EmailTrackingOverrideV1 = {
|
|
|
4189
4202
|
*/
|
|
4190
4203
|
clicks?: boolean | undefined;
|
|
4191
4204
|
};
|
|
4192
|
-
export type
|
|
4205
|
+
export type StoredReplyToAddresses = Array<string> | null;
|
|
4193
4206
|
export type TemplateData = JsonObject | null;
|
|
4194
4207
|
export type TemplateDataWritable = JsonObjectWritable | null;
|
|
4195
|
-
export type
|
|
4208
|
+
export type StoredEmailAttachments = Array<EmailAttachment> | null;
|
|
4196
4209
|
export type CampaignRunReport = {
|
|
4197
4210
|
campaignId: CampaignId;
|
|
4198
4211
|
runId: CampaignRunId;
|
|
@@ -4210,7 +4223,7 @@ export type CampaignRunReport = {
|
|
|
4210
4223
|
skippedReasons: Array<CampaignRunReportSkippedReason>;
|
|
4211
4224
|
};
|
|
4212
4225
|
export type CampaignRunReportSkippedReason = {
|
|
4213
|
-
reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
4226
|
+
reason: "unsubscribed" | "not_added" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
|
|
4214
4227
|
count: number;
|
|
4215
4228
|
};
|
|
4216
4229
|
export type CampaignRunReportTopicUnsubscribes = {
|
|
@@ -4312,6 +4325,8 @@ export type CampaignEmailInput = {
|
|
|
4312
4325
|
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
4313
4326
|
preheader?: string | null | undefined;
|
|
4314
4327
|
};
|
|
4328
|
+
export type ReplyToAddresses = Array<string> | null;
|
|
4329
|
+
export type EmailAttachments = Array<EmailAttachment> | null;
|
|
4315
4330
|
export type CampaignPage = {
|
|
4316
4331
|
items: Array<CampaignListItem>;
|
|
4317
4332
|
nextCursor: string | null;
|
|
@@ -4591,13 +4606,13 @@ export type StoredEmailSendMessage = {
|
|
|
4591
4606
|
email: string;
|
|
4592
4607
|
name?: string | null | undefined;
|
|
4593
4608
|
} | null | undefined;
|
|
4594
|
-
email:
|
|
4609
|
+
email: StoredEmailContent;
|
|
4595
4610
|
};
|
|
4596
|
-
export type
|
|
4611
|
+
export type StoredEmailContent = {
|
|
4597
4612
|
subject?: string | null | undefined;
|
|
4598
4613
|
html?: string | null | undefined;
|
|
4599
4614
|
text?: string | null | undefined;
|
|
4600
|
-
attachments?:
|
|
4615
|
+
attachments?: StoredEmailAttachments | undefined;
|
|
4601
4616
|
publicationId?: TemplatePublicationId | undefined;
|
|
4602
4617
|
inputContractId?: TemplateInputContractId | undefined;
|
|
4603
4618
|
templateId?: TemplateId | null | undefined;
|
|
@@ -4606,7 +4621,7 @@ export type EmailContent = {
|
|
|
4606
4621
|
locale?: RenderLocale | undefined;
|
|
4607
4622
|
timeZone?: RenderTimeZone | undefined;
|
|
4608
4623
|
inReplyToMessageId?: MessageId | null | undefined;
|
|
4609
|
-
replyTo?:
|
|
4624
|
+
replyTo?: StoredReplyToAddresses | undefined;
|
|
4610
4625
|
/**
|
|
4611
4626
|
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
4612
4627
|
*/
|
|
@@ -4615,28 +4630,6 @@ export type EmailContent = {
|
|
|
4615
4630
|
footer?: EmailFooterOverride | undefined;
|
|
4616
4631
|
headers?: EmailCustomHeaders | null | undefined;
|
|
4617
4632
|
};
|
|
4618
|
-
export type EmailContentWritable = {
|
|
4619
|
-
subject?: string | null | undefined;
|
|
4620
|
-
html?: string | null | undefined;
|
|
4621
|
-
text?: string | null | undefined;
|
|
4622
|
-
attachments?: EmailAttachments | undefined;
|
|
4623
|
-
publicationId?: TemplatePublicationId | undefined;
|
|
4624
|
-
inputContractId?: TemplateInputContractId | undefined;
|
|
4625
|
-
templateId?: TemplateId | null | undefined;
|
|
4626
|
-
templateSlug?: string | null | undefined;
|
|
4627
|
-
templateData?: TemplateDataWritable | undefined;
|
|
4628
|
-
locale?: RenderLocale | undefined;
|
|
4629
|
-
timeZone?: RenderTimeZone | undefined;
|
|
4630
|
-
inReplyToMessageId?: MessageId | null | undefined;
|
|
4631
|
-
replyTo?: ReplyToAddresses | undefined;
|
|
4632
|
-
/**
|
|
4633
|
-
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
4634
|
-
*/
|
|
4635
|
-
topicId?: TopicId | null | undefined;
|
|
4636
|
-
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
4637
|
-
footer?: EmailFooterOverride | undefined;
|
|
4638
|
-
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
4639
|
-
};
|
|
4640
4633
|
export type SavedEmailRecipient = {
|
|
4641
4634
|
contactId: ContactId;
|
|
4642
4635
|
} | {
|
|
@@ -4651,7 +4644,7 @@ export type ScheduledMessagePage = {
|
|
|
4651
4644
|
};
|
|
4652
4645
|
export type DispatchSendMessagePayload = EmailDispatchSendMessagePayload | SmsDispatchSendMessagePayload | WhatsAppDispatchSendMessagePayload;
|
|
4653
4646
|
/**
|
|
4654
|
-
*
|
|
4647
|
+
* Send WhatsApp messages from your connected business account.
|
|
4655
4648
|
*/
|
|
4656
4649
|
export type WhatsAppDispatchSendMessagePayload = {
|
|
4657
4650
|
conversationId?: ConversationId | null | undefined;
|
|
@@ -4772,7 +4765,29 @@ export type EmailSendMessagePayload = {
|
|
|
4772
4765
|
cc?: EmailCcRecipients | undefined;
|
|
4773
4766
|
bcc?: EmailBccRecipients | undefined;
|
|
4774
4767
|
from?: EmailSender | undefined;
|
|
4775
|
-
email:
|
|
4768
|
+
email: EmailContent;
|
|
4769
|
+
};
|
|
4770
|
+
export type EmailContent = {
|
|
4771
|
+
subject?: string | null | undefined;
|
|
4772
|
+
html?: string | null | undefined;
|
|
4773
|
+
text?: string | null | undefined;
|
|
4774
|
+
attachments?: EmailAttachments | undefined;
|
|
4775
|
+
publicationId?: TemplatePublicationId | undefined;
|
|
4776
|
+
inputContractId?: TemplateInputContractId | undefined;
|
|
4777
|
+
templateId?: TemplateId | null | undefined;
|
|
4778
|
+
templateSlug?: string | null | undefined;
|
|
4779
|
+
templateData?: TemplateDataWritable | undefined;
|
|
4780
|
+
locale?: RenderLocale | undefined;
|
|
4781
|
+
timeZone?: RenderTimeZone | undefined;
|
|
4782
|
+
inReplyToMessageId?: MessageId | null | undefined;
|
|
4783
|
+
replyTo?: ReplyToAddresses | undefined;
|
|
4784
|
+
/**
|
|
4785
|
+
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
4786
|
+
*/
|
|
4787
|
+
topicId?: TopicId | null | undefined;
|
|
4788
|
+
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
4789
|
+
footer?: EmailFooterOverride | undefined;
|
|
4790
|
+
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
4776
4791
|
};
|
|
4777
4792
|
export type MessageReceipt = {
|
|
4778
4793
|
id: MessageId;
|
|
@@ -4784,7 +4799,7 @@ export type MessageReceipt = {
|
|
|
4784
4799
|
};
|
|
4785
4800
|
export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
|
|
4786
4801
|
/**
|
|
4787
|
-
*
|
|
4802
|
+
* Send WhatsApp messages from your connected business account.
|
|
4788
4803
|
*/
|
|
4789
4804
|
export type WhatsAppSendMessagePayload = {
|
|
4790
4805
|
conversationId?: ConversationId | null | undefined;
|
|
@@ -5627,7 +5642,7 @@ export type MessagesValidateEmailData = {
|
|
|
5627
5642
|
cc?: EmailCcRecipients | undefined;
|
|
5628
5643
|
bcc?: EmailBccRecipients | undefined;
|
|
5629
5644
|
from?: EmailSender | undefined;
|
|
5630
|
-
email:
|
|
5645
|
+
email: EmailContent;
|
|
5631
5646
|
};
|
|
5632
5647
|
path?: never;
|
|
5633
5648
|
query?: never;
|
|
@@ -12015,30 +12030,22 @@ export type ContactsPlanImportData = {
|
|
|
12015
12030
|
{
|
|
12016
12031
|
name: string;
|
|
12017
12032
|
csv: string;
|
|
12018
|
-
evidence
|
|
12033
|
+
evidence?: {
|
|
12019
12034
|
kind: "status_column";
|
|
12020
12035
|
} | {
|
|
12021
12036
|
kind: "export_scope";
|
|
12022
12037
|
scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
|
|
12023
|
-
};
|
|
12024
|
-
/**
|
|
12025
|
-
* The operator declares this beehiiv export was filtered to Suppression does not exist.
|
|
12026
|
-
*/
|
|
12027
|
-
suppressionFree?: boolean | null | undefined;
|
|
12038
|
+
} | null | undefined;
|
|
12028
12039
|
},
|
|
12029
12040
|
...Array<{
|
|
12030
12041
|
name: string;
|
|
12031
12042
|
csv: string;
|
|
12032
|
-
evidence
|
|
12043
|
+
evidence?: {
|
|
12033
12044
|
kind: "status_column";
|
|
12034
12045
|
} | {
|
|
12035
12046
|
kind: "export_scope";
|
|
12036
12047
|
scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
|
|
12037
|
-
};
|
|
12038
|
-
/**
|
|
12039
|
-
* The operator declares this beehiiv export was filtered to Suppression does not exist.
|
|
12040
|
-
*/
|
|
12041
|
-
suppressionFree?: boolean | null | undefined;
|
|
12048
|
+
} | null | undefined;
|
|
12042
12049
|
}>
|
|
12043
12050
|
];
|
|
12044
12051
|
};
|
|
@@ -12120,30 +12127,22 @@ export type ContactsStartImportData = {
|
|
|
12120
12127
|
{
|
|
12121
12128
|
name: string;
|
|
12122
12129
|
csv: string;
|
|
12123
|
-
evidence
|
|
12130
|
+
evidence?: {
|
|
12124
12131
|
kind: "status_column";
|
|
12125
12132
|
} | {
|
|
12126
12133
|
kind: "export_scope";
|
|
12127
12134
|
scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
|
|
12128
|
-
};
|
|
12129
|
-
/**
|
|
12130
|
-
* The operator declares this beehiiv export was filtered to Suppression does not exist.
|
|
12131
|
-
*/
|
|
12132
|
-
suppressionFree?: boolean | null | undefined;
|
|
12135
|
+
} | null | undefined;
|
|
12133
12136
|
},
|
|
12134
12137
|
...Array<{
|
|
12135
12138
|
name: string;
|
|
12136
12139
|
csv: string;
|
|
12137
|
-
evidence
|
|
12140
|
+
evidence?: {
|
|
12138
12141
|
kind: "status_column";
|
|
12139
12142
|
} | {
|
|
12140
12143
|
kind: "export_scope";
|
|
12141
12144
|
scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
|
|
12142
|
-
};
|
|
12143
|
-
/**
|
|
12144
|
-
* The operator declares this beehiiv export was filtered to Suppression does not exist.
|
|
12145
|
-
*/
|
|
12146
|
-
suppressionFree?: boolean | null | undefined;
|
|
12145
|
+
} | null | undefined;
|
|
12147
12146
|
}>
|
|
12148
12147
|
];
|
|
12149
12148
|
};
|
|
@@ -13588,6 +13587,10 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
|
|
|
13588
13587
|
export type AgentsCreateData = {
|
|
13589
13588
|
body: {
|
|
13590
13589
|
name: AgentName;
|
|
13590
|
+
/**
|
|
13591
|
+
* What the agent mostly does: support answers customer questions, store helps shoppers, and booking handles appointments. Omit when no job is stated. Returned as setupJob on the agent; it does not change the supplied definition.
|
|
13592
|
+
*/
|
|
13593
|
+
setupJob?: AgentSetupJob | null | undefined;
|
|
13591
13594
|
/**
|
|
13592
13595
|
* The namespace the agent belongs to; it cannot move later. Omit for an organization-level agent. A namespace-scoped key always creates in its own namespace.
|
|
13593
13596
|
*/
|
|
@@ -14084,9 +14087,6 @@ export type AgentsGetVersionResponses = {
|
|
|
14084
14087
|
export type AgentsGetVersionResponse = AgentsGetVersionResponses[keyof AgentsGetVersionResponses];
|
|
14085
14088
|
export type SubscriptionsSubscribeData = {
|
|
14086
14089
|
body: {
|
|
14087
|
-
/**
|
|
14088
|
-
* The recipient email address; confirmation proves consent for this address.
|
|
14089
|
-
*/
|
|
14090
14090
|
email: string;
|
|
14091
14091
|
topicId: TopicId;
|
|
14092
14092
|
/**
|
|
@@ -18392,7 +18392,7 @@ export type TemplatesUpdateData = {
|
|
|
18392
18392
|
entryPath?: string | null | undefined;
|
|
18393
18393
|
description?: string | null | undefined;
|
|
18394
18394
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
18395
|
-
fromDefault?:
|
|
18395
|
+
fromDefault?: TemplateFromDefaultInput | null | undefined;
|
|
18396
18396
|
replyToDefault?: Array<string> | null | undefined;
|
|
18397
18397
|
/**
|
|
18398
18398
|
* Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default.
|
|
@@ -24538,7 +24538,7 @@ export type MailboxesSendMessageErrors = {
|
|
|
24538
24538
|
*/
|
|
24539
24539
|
409: MailboxSendConflictError | ConflictError;
|
|
24540
24540
|
/**
|
|
24541
|
-
* ValidationError
|
|
24541
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
24542
24542
|
*/
|
|
24543
24543
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
24544
24544
|
/**
|
|
@@ -24809,7 +24809,7 @@ export type MailboxesReplyErrors = {
|
|
|
24809
24809
|
*/
|
|
24810
24810
|
409: MailboxSendConflictError | ConflictError;
|
|
24811
24811
|
/**
|
|
24812
|
-
* ValidationError
|
|
24812
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
24813
24813
|
*/
|
|
24814
24814
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
24815
24815
|
/**
|
|
@@ -24886,7 +24886,7 @@ export type MailboxesReplyAllErrors = {
|
|
|
24886
24886
|
*/
|
|
24887
24887
|
409: MailboxSendConflictError | ConflictError;
|
|
24888
24888
|
/**
|
|
24889
|
-
* ValidationError
|
|
24889
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
24890
24890
|
*/
|
|
24891
24891
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
24892
24892
|
/**
|
|
@@ -24970,7 +24970,7 @@ export type MailboxesForwardErrors = {
|
|
|
24970
24970
|
*/
|
|
24971
24971
|
409: MailboxSendConflictError | ConflictError;
|
|
24972
24972
|
/**
|
|
24973
|
-
* ValidationError
|
|
24973
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
24974
24974
|
*/
|
|
24975
24975
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
24976
24976
|
/**
|
|
@@ -25454,7 +25454,7 @@ export type MailboxesSendDraftErrors = {
|
|
|
25454
25454
|
*/
|
|
25455
25455
|
409: MailboxSendConflictError | ConflictError;
|
|
25456
25456
|
/**
|
|
25457
|
-
* ValidationError
|
|
25457
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
25458
25458
|
*/
|
|
25459
25459
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
25460
25460
|
/**
|
|
@@ -25625,7 +25625,7 @@ export type MailboxesCancelActionErrors = {
|
|
|
25625
25625
|
*/
|
|
25626
25626
|
409: MailboxSendConflictError | ConflictError;
|
|
25627
25627
|
/**
|
|
25628
|
-
* ValidationError
|
|
25628
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
25629
25629
|
*/
|
|
25630
25630
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
25631
25631
|
/**
|
|
@@ -25696,7 +25696,7 @@ export type MailboxesRetryActionErrors = {
|
|
|
25696
25696
|
*/
|
|
25697
25697
|
409: MailboxSendConflictError | ConflictError;
|
|
25698
25698
|
/**
|
|
25699
|
-
* ValidationError
|
|
25699
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
25700
25700
|
*/
|
|
25701
25701
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
25702
25702
|
/**
|
|
@@ -25774,7 +25774,7 @@ export type MailboxesApproveActionErrors = {
|
|
|
25774
25774
|
*/
|
|
25775
25775
|
409: MailboxSendConflictError | ConflictError;
|
|
25776
25776
|
/**
|
|
25777
|
-
* ValidationError
|
|
25777
|
+
* WhatsAppServiceWindowClosedError | ValidationError
|
|
25778
25778
|
*/
|
|
25779
25779
|
422: WhatsAppServiceWindowClosedError | ValidationError;
|
|
25780
25780
|
/**
|
package/dist/effect/agents.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const list: ((input?: {
|
|
|
11
11
|
readonly items: readonly {
|
|
12
12
|
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
13
13
|
readonly name: string;
|
|
14
|
+
readonly setupJob: "booking" | "store" | "support" | null;
|
|
14
15
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
15
16
|
readonly publishedVersion: number | null;
|
|
16
17
|
readonly publishedAt: string | null;
|
|
@@ -29,6 +30,7 @@ export declare const list: ((input?: {
|
|
|
29
30
|
} | undefined) => import("effect/Stream").Stream<{
|
|
30
31
|
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
31
32
|
readonly name: string;
|
|
33
|
+
readonly setupJob: "booking" | "store" | "support" | null;
|
|
32
34
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
33
35
|
readonly publishedVersion: number | null;
|
|
34
36
|
readonly publishedAt: string | null;
|
|
@@ -42,6 +44,7 @@ export declare const list: ((input?: {
|
|
|
42
44
|
export declare const listModels: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListModels">;
|
|
43
45
|
export declare const create: (input: {
|
|
44
46
|
readonly name: string;
|
|
47
|
+
readonly setupJob?: "booking" | "store" | "support" | null | undefined;
|
|
45
48
|
readonly namespaceId?: string | null | undefined;
|
|
46
49
|
readonly definition?: {
|
|
47
50
|
readonly instructions: string;
|
|
@@ -1350,7 +1350,7 @@ export declare const listRuns: ((input: {
|
|
|
1350
1350
|
readonly skippedCount: number;
|
|
1351
1351
|
readonly pendingCount: number;
|
|
1352
1352
|
readonly skippedReasons: readonly {
|
|
1353
|
-
readonly reason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1353
|
+
readonly reason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "not_added" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1354
1354
|
readonly count: number;
|
|
1355
1355
|
}[];
|
|
1356
1356
|
readonly estimatedCompletionAt: string | null;
|
|
@@ -1482,7 +1482,7 @@ export declare const listRuns: ((input: {
|
|
|
1482
1482
|
readonly skippedCount: number;
|
|
1483
1483
|
readonly pendingCount: number;
|
|
1484
1484
|
readonly skippedReasons: readonly {
|
|
1485
|
-
readonly reason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1485
|
+
readonly reason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "not_added" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1486
1486
|
readonly count: number;
|
|
1487
1487
|
}[];
|
|
1488
1488
|
readonly estimatedCompletionAt: string | null;
|
|
@@ -1544,7 +1544,7 @@ export declare const listRecipients: ((input: {
|
|
|
1544
1544
|
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1545
1545
|
readonly messageId: string | null;
|
|
1546
1546
|
readonly failureReason: string | null;
|
|
1547
|
-
readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1547
|
+
readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "not_added" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1548
1548
|
readonly createdAt: string;
|
|
1549
1549
|
readonly updatedAt: string;
|
|
1550
1550
|
}[];
|
|
@@ -1563,7 +1563,7 @@ export declare const listRecipients: ((input: {
|
|
|
1563
1563
|
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1564
1564
|
readonly messageId: string | null;
|
|
1565
1565
|
readonly failureReason: string | null;
|
|
1566
|
-
readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1566
|
+
readonly skippedReason: "blocked" | "consent_required" | "inactive" | "missing_merge_field" | "no_identity" | "not_added" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1567
1567
|
readonly createdAt: string;
|
|
1568
1568
|
readonly updatedAt: string;
|
|
1569
1569
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
@@ -328,23 +328,21 @@ export declare const planImport: (input: {
|
|
|
328
328
|
readonly files: readonly ({
|
|
329
329
|
readonly name: string;
|
|
330
330
|
readonly csv: string;
|
|
331
|
-
readonly evidence
|
|
331
|
+
readonly evidence?: {
|
|
332
332
|
readonly kind: "status_column";
|
|
333
333
|
} | {
|
|
334
334
|
readonly kind: "export_scope";
|
|
335
335
|
readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
|
|
336
|
-
};
|
|
337
|
-
readonly suppressionFree?: boolean | null | undefined;
|
|
336
|
+
} | null | undefined;
|
|
338
337
|
} | {
|
|
339
338
|
readonly name: string;
|
|
340
339
|
readonly csv: string;
|
|
341
|
-
readonly evidence
|
|
340
|
+
readonly evidence?: {
|
|
342
341
|
readonly kind: "status_column";
|
|
343
342
|
} | {
|
|
344
343
|
readonly kind: "export_scope";
|
|
345
344
|
readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
|
|
346
|
-
};
|
|
347
|
-
readonly suppressionFree?: boolean | null | undefined;
|
|
345
|
+
} | null | undefined;
|
|
348
346
|
})[];
|
|
349
347
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"contactsPlanImport">;
|
|
350
348
|
export declare const startImport: (input: {
|
|
@@ -356,23 +354,21 @@ export declare const startImport: (input: {
|
|
|
356
354
|
readonly files: readonly ({
|
|
357
355
|
readonly name: string;
|
|
358
356
|
readonly csv: string;
|
|
359
|
-
readonly evidence
|
|
357
|
+
readonly evidence?: {
|
|
360
358
|
readonly kind: "status_column";
|
|
361
359
|
} | {
|
|
362
360
|
readonly kind: "export_scope";
|
|
363
361
|
readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
|
|
364
|
-
};
|
|
365
|
-
readonly suppressionFree?: boolean | null | undefined;
|
|
362
|
+
} | null | undefined;
|
|
366
363
|
} | {
|
|
367
364
|
readonly name: string;
|
|
368
365
|
readonly csv: string;
|
|
369
|
-
readonly evidence
|
|
366
|
+
readonly evidence?: {
|
|
370
367
|
readonly kind: "status_column";
|
|
371
368
|
} | {
|
|
372
369
|
readonly kind: "export_scope";
|
|
373
370
|
readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
|
|
374
|
-
};
|
|
375
|
-
readonly suppressionFree?: boolean | null | undefined;
|
|
371
|
+
} | null | undefined;
|
|
376
372
|
})[];
|
|
377
373
|
};
|
|
378
374
|
readonly planHash: string;
|