samva 0.37.0 → 0.39.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.
@@ -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?: TemplateFromDefault | null | undefined;
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;
@@ -2300,6 +2304,10 @@ export type TopicFormCreatePayload = {
2300
2304
  };
2301
2305
  export type TopicSetSubscriptionsResult = {
2302
2306
  updated: number;
2307
+ /**
2308
+ * Email contacts left unsubscribed because they explicitly unsubscribed from this topic. Only the recipient can resubscribe them, through the preference page or double opt-in.
2309
+ */
2310
+ kept: number;
2303
2311
  };
2304
2312
  export type TopicSetSubscriptionsPayload = {
2305
2313
  contacts: Array<TopicContactRef>;
@@ -2498,9 +2506,6 @@ export type SubscribeResult = {
2498
2506
  expiresAt: string;
2499
2507
  };
2500
2508
  export type SubscribePayload = {
2501
- /**
2502
- * The recipient email address; confirmation proves consent for this address.
2503
- */
2504
2509
  email: string;
2505
2510
  topicId: TopicId;
2506
2511
  /**
@@ -2553,6 +2558,7 @@ export type PublishAgentResponse = {
2553
2558
  export type Agent = {
2554
2559
  id: AgentId;
2555
2560
  name: string;
2561
+ setupJob: AgentSetupJob | null;
2556
2562
  namespaceId: NamespaceId | null;
2557
2563
  revision: string;
2558
2564
  draft: AgentDefinition;
@@ -2570,6 +2576,7 @@ export type AgentSpend = {
2570
2576
  spentDollars: number;
2571
2577
  capReachedAt: string | null;
2572
2578
  };
2579
+ export type AgentSetupJob = "support" | "store" | "booking";
2573
2580
  export type PublishAgentPayload = {
2574
2581
  revision: string;
2575
2582
  };
@@ -2630,6 +2637,10 @@ export type MonthlySpendCapDollars = number;
2630
2637
  export type AgentName = string;
2631
2638
  export type CreateAgentPayload = {
2632
2639
  name: AgentName;
2640
+ /**
2641
+ * 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.
2642
+ */
2643
+ setupJob?: AgentSetupJob | null | undefined;
2633
2644
  /**
2634
2645
  * 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
2646
  */
@@ -2675,6 +2686,7 @@ export type AgentPage = {
2675
2686
  export type AgentListItem = {
2676
2687
  id: AgentId;
2677
2688
  name: string;
2689
+ setupJob: AgentSetupJob | null;
2678
2690
  namespaceId: NamespaceId | null;
2679
2691
  publishedVersion: number | null;
2680
2692
  publishedAt: string | null;
@@ -3108,6 +3120,7 @@ export type Contact = {
3108
3120
  preset: "beehiiv" | "substack" | "kit" | "mailchimp";
3109
3121
  importedAt: string;
3110
3122
  summary?: {
3123
+ permissionAssumed?: boolean | null | undefined;
3111
3124
  signupAt: {
3112
3125
  value: string;
3113
3126
  kind: "time" | "text";
@@ -3118,13 +3131,14 @@ export type Contact = {
3118
3131
  evidence: Array<{
3119
3132
  file: string;
3120
3133
  row: number;
3121
- declared: {
3134
+ declared?: {
3122
3135
  kind: "status_column";
3123
3136
  } | {
3124
3137
  kind: "export_scope";
3125
3138
  scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
3126
- };
3127
- suppressionFree: boolean;
3139
+ } | null | undefined;
3140
+ suppressionFree?: boolean | null | undefined;
3141
+ permissionBasis?: "assumed" | "exported" | null | undefined;
3128
3142
  sourceStatus: string | null;
3129
3143
  signupAt: string | null;
3130
3144
  source: string | null;
@@ -3136,6 +3150,7 @@ export type Contact = {
3136
3150
  preset: "beehiiv" | "substack" | "kit" | "mailchimp";
3137
3151
  importedAt: string;
3138
3152
  summary?: {
3153
+ permissionAssumed?: boolean | null | undefined;
3139
3154
  signupAt: {
3140
3155
  value: string;
3141
3156
  kind: "time" | "text";
@@ -3146,19 +3161,21 @@ export type Contact = {
3146
3161
  evidence: Array<{
3147
3162
  file: string;
3148
3163
  row: number;
3149
- declared: {
3164
+ declared?: {
3150
3165
  kind: "status_column";
3151
3166
  } | {
3152
3167
  kind: "export_scope";
3153
3168
  scope: "subscribed" | "unsubscribed" | "suppressed" | "cleaned/bounced";
3154
- };
3155
- suppressionFree: boolean;
3169
+ } | null | undefined;
3170
+ suppressionFree?: boolean | null | undefined;
3171
+ permissionBasis?: "assumed" | "exported" | null | undefined;
3156
3172
  sourceStatus: string | null;
3157
3173
  signupAt: string | null;
3158
3174
  source: string | null;
3159
3175
  }>;
3160
3176
  };
3161
3177
  } | null;
3178
+ addedAt: string | null;
3162
3179
  createdAt: string;
3163
3180
  updatedAt: string;
3164
3181
  };
@@ -3995,7 +4012,7 @@ export type CampaignRecipientPage = {
3995
4012
  status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
3996
4013
  messageId: string | null;
3997
4014
  failureReason: string | null;
3998
- skippedReason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field" | null;
4015
+ skippedReason: "unsubscribed" | "not_added" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field" | null;
3999
4016
  createdAt: string;
4000
4017
  updatedAt: string;
4001
4018
  }>;
@@ -4037,7 +4054,7 @@ export type CampaignRun = {
4037
4054
  updatedAt: string;
4038
4055
  };
4039
4056
  export type CampaignRunSkippedReason = {
4040
- reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
4057
+ reason: "unsubscribed" | "not_added" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
4041
4058
  count: number;
4042
4059
  };
4043
4060
  export type CampaignPolicy = {
@@ -4142,7 +4159,7 @@ export type CampaignEmailContent = {
4142
4159
  subject?: string | null | undefined;
4143
4160
  html?: string | null | undefined;
4144
4161
  text?: string | null | undefined;
4145
- attachments?: EmailAttachments | undefined;
4162
+ attachments?: StoredEmailAttachments | undefined;
4146
4163
  publicationId?: TemplatePublicationId | undefined;
4147
4164
  inputContractId?: TemplateInputContractId | undefined;
4148
4165
  templateId?: TemplateId | null | undefined;
@@ -4151,7 +4168,7 @@ export type CampaignEmailContent = {
4151
4168
  locale?: RenderLocale | undefined;
4152
4169
  timeZone?: RenderTimeZone | undefined;
4153
4170
  inReplyToMessageId?: MessageId | null | undefined;
4154
- replyTo?: ReplyToAddresses | undefined;
4171
+ replyTo?: StoredReplyToAddresses | undefined;
4155
4172
  /**
4156
4173
  * The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
4157
4174
  */
@@ -4189,10 +4206,10 @@ export type EmailTrackingOverrideV1 = {
4189
4206
  */
4190
4207
  clicks?: boolean | undefined;
4191
4208
  };
4192
- export type ReplyToAddresses = Array<string> | null;
4209
+ export type StoredReplyToAddresses = Array<string> | null;
4193
4210
  export type TemplateData = JsonObject | null;
4194
4211
  export type TemplateDataWritable = JsonObjectWritable | null;
4195
- export type EmailAttachments = Array<EmailAttachment> | null;
4212
+ export type StoredEmailAttachments = Array<EmailAttachment> | null;
4196
4213
  export type CampaignRunReport = {
4197
4214
  campaignId: CampaignId;
4198
4215
  runId: CampaignRunId;
@@ -4210,7 +4227,7 @@ export type CampaignRunReport = {
4210
4227
  skippedReasons: Array<CampaignRunReportSkippedReason>;
4211
4228
  };
4212
4229
  export type CampaignRunReportSkippedReason = {
4213
- reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
4230
+ reason: "unsubscribed" | "not_added" | "blocked" | "suppressed" | "opted_out" | "consent_required" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | "missing_merge_field";
4214
4231
  count: number;
4215
4232
  };
4216
4233
  export type CampaignRunReportTopicUnsubscribes = {
@@ -4312,6 +4329,8 @@ export type CampaignEmailInput = {
4312
4329
  headers?: EmailCustomHeadersWritable | null | undefined;
4313
4330
  preheader?: string | null | undefined;
4314
4331
  };
4332
+ export type ReplyToAddresses = Array<string> | null;
4333
+ export type EmailAttachments = Array<EmailAttachment> | null;
4315
4334
  export type CampaignPage = {
4316
4335
  items: Array<CampaignListItem>;
4317
4336
  nextCursor: string | null;
@@ -4591,13 +4610,13 @@ export type StoredEmailSendMessage = {
4591
4610
  email: string;
4592
4611
  name?: string | null | undefined;
4593
4612
  } | null | undefined;
4594
- email: EmailContent;
4613
+ email: StoredEmailContent;
4595
4614
  };
4596
- export type EmailContent = {
4615
+ export type StoredEmailContent = {
4597
4616
  subject?: string | null | undefined;
4598
4617
  html?: string | null | undefined;
4599
4618
  text?: string | null | undefined;
4600
- attachments?: EmailAttachments | undefined;
4619
+ attachments?: StoredEmailAttachments | undefined;
4601
4620
  publicationId?: TemplatePublicationId | undefined;
4602
4621
  inputContractId?: TemplateInputContractId | undefined;
4603
4622
  templateId?: TemplateId | null | undefined;
@@ -4606,7 +4625,7 @@ export type EmailContent = {
4606
4625
  locale?: RenderLocale | undefined;
4607
4626
  timeZone?: RenderTimeZone | undefined;
4608
4627
  inReplyToMessageId?: MessageId | null | undefined;
4609
- replyTo?: ReplyToAddresses | undefined;
4628
+ replyTo?: StoredReplyToAddresses | undefined;
4610
4629
  /**
4611
4630
  * The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
4612
4631
  */
@@ -4615,28 +4634,6 @@ export type EmailContent = {
4615
4634
  footer?: EmailFooterOverride | undefined;
4616
4635
  headers?: EmailCustomHeaders | null | undefined;
4617
4636
  };
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
4637
  export type SavedEmailRecipient = {
4641
4638
  contactId: ContactId;
4642
4639
  } | {
@@ -4651,7 +4648,7 @@ export type ScheduledMessagePage = {
4651
4648
  };
4652
4649
  export type DispatchSendMessagePayload = EmailDispatchSendMessagePayload | SmsDispatchSendMessagePayload | WhatsAppDispatchSendMessagePayload;
4653
4650
  /**
4654
- * The payload is accepted by the contract today and the endpoint answers 403 until the channel launches for your organization.
4651
+ * Send WhatsApp messages from your connected business account.
4655
4652
  */
4656
4653
  export type WhatsAppDispatchSendMessagePayload = {
4657
4654
  conversationId?: ConversationId | null | undefined;
@@ -4772,7 +4769,29 @@ export type EmailSendMessagePayload = {
4772
4769
  cc?: EmailCcRecipients | undefined;
4773
4770
  bcc?: EmailBccRecipients | undefined;
4774
4771
  from?: EmailSender | undefined;
4775
- email: EmailContentWritable;
4772
+ email: EmailContent;
4773
+ };
4774
+ export type EmailContent = {
4775
+ subject?: string | null | undefined;
4776
+ html?: string | null | undefined;
4777
+ text?: string | null | undefined;
4778
+ attachments?: EmailAttachments | undefined;
4779
+ publicationId?: TemplatePublicationId | undefined;
4780
+ inputContractId?: TemplateInputContractId | undefined;
4781
+ templateId?: TemplateId | null | undefined;
4782
+ templateSlug?: string | null | undefined;
4783
+ templateData?: TemplateDataWritable | undefined;
4784
+ locale?: RenderLocale | undefined;
4785
+ timeZone?: RenderTimeZone | undefined;
4786
+ inReplyToMessageId?: MessageId | null | undefined;
4787
+ replyTo?: ReplyToAddresses | undefined;
4788
+ /**
4789
+ * The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
4790
+ */
4791
+ topicId?: TopicId | null | undefined;
4792
+ tracking?: EmailTrackingOverrideV1 | undefined;
4793
+ footer?: EmailFooterOverride | undefined;
4794
+ headers?: EmailCustomHeadersWritable | null | undefined;
4776
4795
  };
4777
4796
  export type MessageReceipt = {
4778
4797
  id: MessageId;
@@ -4784,7 +4803,7 @@ export type MessageReceipt = {
4784
4803
  };
4785
4804
  export type SendMessagePayload = EmailSendMessagePayload | SmsSendMessagePayload | WhatsAppSendMessagePayload;
4786
4805
  /**
4787
- * The payload is accepted by the contract today and the endpoint answers 403 until the channel launches for your organization.
4806
+ * Send WhatsApp messages from your connected business account.
4788
4807
  */
4789
4808
  export type WhatsAppSendMessagePayload = {
4790
4809
  conversationId?: ConversationId | null | undefined;
@@ -5627,7 +5646,7 @@ export type MessagesValidateEmailData = {
5627
5646
  cc?: EmailCcRecipients | undefined;
5628
5647
  bcc?: EmailBccRecipients | undefined;
5629
5648
  from?: EmailSender | undefined;
5630
- email: EmailContentWritable;
5649
+ email: EmailContent;
5631
5650
  };
5632
5651
  path?: never;
5633
5652
  query?: never;
@@ -12015,30 +12034,22 @@ export type ContactsPlanImportData = {
12015
12034
  {
12016
12035
  name: string;
12017
12036
  csv: string;
12018
- evidence: {
12037
+ evidence?: {
12019
12038
  kind: "status_column";
12020
12039
  } | {
12021
12040
  kind: "export_scope";
12022
12041
  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;
12042
+ } | null | undefined;
12028
12043
  },
12029
12044
  ...Array<{
12030
12045
  name: string;
12031
12046
  csv: string;
12032
- evidence: {
12047
+ evidence?: {
12033
12048
  kind: "status_column";
12034
12049
  } | {
12035
12050
  kind: "export_scope";
12036
12051
  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;
12052
+ } | null | undefined;
12042
12053
  }>
12043
12054
  ];
12044
12055
  };
@@ -12120,30 +12131,22 @@ export type ContactsStartImportData = {
12120
12131
  {
12121
12132
  name: string;
12122
12133
  csv: string;
12123
- evidence: {
12134
+ evidence?: {
12124
12135
  kind: "status_column";
12125
12136
  } | {
12126
12137
  kind: "export_scope";
12127
12138
  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;
12139
+ } | null | undefined;
12133
12140
  },
12134
12141
  ...Array<{
12135
12142
  name: string;
12136
12143
  csv: string;
12137
- evidence: {
12144
+ evidence?: {
12138
12145
  kind: "status_column";
12139
12146
  } | {
12140
12147
  kind: "export_scope";
12141
12148
  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;
12149
+ } | null | undefined;
12147
12150
  }>
12148
12151
  ];
12149
12152
  };
@@ -13588,6 +13591,10 @@ export type AgentsListResponse = AgentsListResponses[keyof AgentsListResponses];
13588
13591
  export type AgentsCreateData = {
13589
13592
  body: {
13590
13593
  name: AgentName;
13594
+ /**
13595
+ * 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.
13596
+ */
13597
+ setupJob?: AgentSetupJob | null | undefined;
13591
13598
  /**
13592
13599
  * 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
13600
  */
@@ -14084,9 +14091,6 @@ export type AgentsGetVersionResponses = {
14084
14091
  export type AgentsGetVersionResponse = AgentsGetVersionResponses[keyof AgentsGetVersionResponses];
14085
14092
  export type SubscriptionsSubscribeData = {
14086
14093
  body: {
14087
- /**
14088
- * The recipient email address; confirmation proves consent for this address.
14089
- */
14090
14094
  email: string;
14091
14095
  topicId: TopicId;
14092
14096
  /**
@@ -18392,7 +18396,7 @@ export type TemplatesUpdateData = {
18392
18396
  entryPath?: string | null | undefined;
18393
18397
  description?: string | null | undefined;
18394
18398
  category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
18395
- fromDefault?: TemplateFromDefault | null | undefined;
18399
+ fromDefault?: TemplateFromDefaultInput | null | undefined;
18396
18400
  replyToDefault?: Array<string> | null | undefined;
18397
18401
  /**
18398
18402
  * 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 +24542,7 @@ export type MailboxesSendMessageErrors = {
24538
24542
  */
24539
24543
  409: MailboxSendConflictError | ConflictError;
24540
24544
  /**
24541
- * ValidationError
24545
+ * WhatsAppServiceWindowClosedError | ValidationError
24542
24546
  */
24543
24547
  422: WhatsAppServiceWindowClosedError | ValidationError;
24544
24548
  /**
@@ -24809,7 +24813,7 @@ export type MailboxesReplyErrors = {
24809
24813
  */
24810
24814
  409: MailboxSendConflictError | ConflictError;
24811
24815
  /**
24812
- * ValidationError
24816
+ * WhatsAppServiceWindowClosedError | ValidationError
24813
24817
  */
24814
24818
  422: WhatsAppServiceWindowClosedError | ValidationError;
24815
24819
  /**
@@ -24886,7 +24890,7 @@ export type MailboxesReplyAllErrors = {
24886
24890
  */
24887
24891
  409: MailboxSendConflictError | ConflictError;
24888
24892
  /**
24889
- * ValidationError
24893
+ * WhatsAppServiceWindowClosedError | ValidationError
24890
24894
  */
24891
24895
  422: WhatsAppServiceWindowClosedError | ValidationError;
24892
24896
  /**
@@ -24970,7 +24974,7 @@ export type MailboxesForwardErrors = {
24970
24974
  */
24971
24975
  409: MailboxSendConflictError | ConflictError;
24972
24976
  /**
24973
- * ValidationError
24977
+ * WhatsAppServiceWindowClosedError | ValidationError
24974
24978
  */
24975
24979
  422: WhatsAppServiceWindowClosedError | ValidationError;
24976
24980
  /**
@@ -25454,7 +25458,7 @@ export type MailboxesSendDraftErrors = {
25454
25458
  */
25455
25459
  409: MailboxSendConflictError | ConflictError;
25456
25460
  /**
25457
- * ValidationError
25461
+ * WhatsAppServiceWindowClosedError | ValidationError
25458
25462
  */
25459
25463
  422: WhatsAppServiceWindowClosedError | ValidationError;
25460
25464
  /**
@@ -25625,7 +25629,7 @@ export type MailboxesCancelActionErrors = {
25625
25629
  */
25626
25630
  409: MailboxSendConflictError | ConflictError;
25627
25631
  /**
25628
- * ValidationError
25632
+ * WhatsAppServiceWindowClosedError | ValidationError
25629
25633
  */
25630
25634
  422: WhatsAppServiceWindowClosedError | ValidationError;
25631
25635
  /**
@@ -25696,7 +25700,7 @@ export type MailboxesRetryActionErrors = {
25696
25700
  */
25697
25701
  409: MailboxSendConflictError | ConflictError;
25698
25702
  /**
25699
- * ValidationError
25703
+ * WhatsAppServiceWindowClosedError | ValidationError
25700
25704
  */
25701
25705
  422: WhatsAppServiceWindowClosedError | ValidationError;
25702
25706
  /**
@@ -25774,7 +25778,7 @@ export type MailboxesApproveActionErrors = {
25774
25778
  */
25775
25779
  409: MailboxSendConflictError | ConflictError;
25776
25780
  /**
25777
- * ValidationError
25781
+ * WhatsAppServiceWindowClosedError | ValidationError
25778
25782
  */
25779
25783
  422: WhatsAppServiceWindowClosedError | ValidationError;
25780
25784
  /**
@@ -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;