@marlinjai/mail-contract 0.20.0 → 0.22.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/index.d.mts CHANGED
@@ -216,6 +216,14 @@ declare const RETRYABLE_ERRORS: readonly ErrorCode[];
216
216
  * configuration state, not an outage, so retrying does not help.
217
217
  */
218
218
  declare const BILLING_NOT_CONFIGURED_REASON = "billing_not_configured";
219
+ /**
220
+ * `details.reason` of a `service_unavailable` from `domains.search` and
221
+ * `domainOrders.create` while buying domains is not set up on the instance
222
+ * (no registrar token, no Stripe): lasting, like BILLING_NOT_CONFIGURED_REASON.
223
+ */
224
+ declare const DOMAIN_BUYING_NOT_CONFIGURED_REASON = "domain_buying_not_configured";
225
+ /** `details.reason` of the `conflict` when a name's price changed since it was shown; `details.price_cents` is the new one. */
226
+ declare const DOMAIN_PRICE_CHANGED_REASON = "price_changed";
219
227
  /** Whether a refusal may be retried unchanged: a RETRYABLE_ERRORS code, unless its reason is a lasting configuration state. */
220
228
  declare function isRetryableError(code: ErrorCode, details?: Record<string, unknown>): boolean;
221
229
 
@@ -505,7 +513,7 @@ declare const WorkspaceCreate: z.ZodObject<{
505
513
  * processing agreement for its company, of this version (required since
506
514
  * 0.19.0): the workspace processes recipients' data from its first contact.
507
515
  */
508
- accept_terms: z.ZodLiteral<"2026-10-23">;
516
+ accept_terms: z.ZodLiteral<"2026-10-28">;
509
517
  }, "strip", z.ZodTypeAny, {
510
518
  name: string;
511
519
  slug: string;
@@ -514,7 +522,7 @@ declare const WorkspaceCreate: z.ZodObject<{
514
522
  name?: string | null | undefined;
515
523
  };
516
524
  company_id: string;
517
- accept_terms: "2026-10-23";
525
+ accept_terms: "2026-10-28";
518
526
  settings?: {
519
527
  asset_policy?: "any" | "service_only" | undefined;
520
528
  default_locale?: string | undefined;
@@ -532,7 +540,7 @@ declare const WorkspaceCreate: z.ZodObject<{
532
540
  name?: string | null | undefined;
533
541
  };
534
542
  company_id: string;
535
- accept_terms: "2026-10-23";
543
+ accept_terms: "2026-10-28";
536
544
  settings?: {
537
545
  asset_policy?: "any" | "service_only" | undefined;
538
546
  default_locale?: string | undefined;
@@ -1030,8 +1038,8 @@ declare const ApiKeyCreated: z.ZodObject<{
1030
1038
  };
1031
1039
  }>;
1032
1040
  type ApiKeyCreated = z.infer<typeof ApiKeyCreated>;
1033
- declare const AUDIT_ACTIONS: readonly ["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"];
1034
- declare const AuditAction: z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>;
1041
+ declare const AUDIT_ACTIONS: readonly ["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "domain_order.created", "domain_order.paid", "domain_order.registered", "domain_order.ready", "domain_order.needs_attention", "domain_order.kind_changed", "domain_order.refunded", "domain_order.cancelled", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"];
1042
+ declare const AuditAction: z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "domain_order.created", "domain_order.paid", "domain_order.registered", "domain_order.ready", "domain_order.needs_attention", "domain_order.kind_changed", "domain_order.refunded", "domain_order.cancelled", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>;
1035
1043
  type AuditAction = z.infer<typeof AuditAction>;
1036
1044
  /**
1037
1045
  * The applications, besides the dashboard, that may act for a signed-in person:
@@ -1044,9 +1052,12 @@ type AuditAction = z.infer<typeof AuditAction>;
1044
1052
  * - `booking`: Lumitra Booking, which connects a host's booking pages to one
1045
1053
  * of the person's workspaces (it lists them, reads the providers, creates a
1046
1054
  * `send` key for itself and revokes that key again).
1055
+ * - `sites`: Lumitra Sites (the website builder with its shop), which connects
1056
+ * a shop to one of its company's workspaces the same way, so a paid order's
1057
+ * buyer gets the order confirmation with the receipt link.
1047
1058
  */
1048
- declare const TRUSTED_APPS: readonly ["booking"];
1049
- declare const TrustedApp: z.ZodEnum<["booking"]>;
1059
+ declare const TRUSTED_APPS: readonly ["booking", "sites"];
1060
+ declare const TrustedApp: z.ZodEnum<["booking", "sites"]>;
1050
1061
  type TrustedApp = z.infer<typeof TrustedApp>;
1051
1062
  declare const AuditActor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1052
1063
  type: z.ZodLiteral<"member">;
@@ -1057,17 +1068,17 @@ declare const AuditActor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1057
1068
  * the service set it from the service token the call carried, so it is
1058
1069
  * verified, unlike a key's `on_behalf_of`. Absent for the dashboard.
1059
1070
  */
1060
- app: z.ZodOptional<z.ZodEnum<["booking"]>>;
1071
+ app: z.ZodOptional<z.ZodEnum<["booking", "sites"]>>;
1061
1072
  }, "strip", z.ZodTypeAny, {
1062
1073
  type: "member";
1063
1074
  subject: string;
1064
1075
  member_id: string;
1065
- app?: "booking" | undefined;
1076
+ app?: "booking" | "sites" | undefined;
1066
1077
  }, {
1067
1078
  type: "member";
1068
1079
  subject: string;
1069
1080
  member_id: string;
1070
- app?: "booking" | undefined;
1081
+ app?: "booking" | "sites" | undefined;
1071
1082
  }>, z.ZodObject<{
1072
1083
  type: z.ZodLiteral<"api_key">;
1073
1084
  api_key_id: z.ZodString;
@@ -1098,7 +1109,7 @@ declare const AuditActor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1098
1109
  type AuditActor = z.infer<typeof AuditActor>;
1099
1110
  declare const AuditEntry: z.ZodObject<{
1100
1111
  id: z.ZodString;
1101
- action: z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>;
1112
+ action: z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "domain_order.created", "domain_order.paid", "domain_order.registered", "domain_order.ready", "domain_order.needs_attention", "domain_order.kind_changed", "domain_order.refunded", "domain_order.cancelled", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>;
1102
1113
  actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1103
1114
  type: z.ZodLiteral<"member">;
1104
1115
  member_id: z.ZodString;
@@ -1108,17 +1119,17 @@ declare const AuditEntry: z.ZodObject<{
1108
1119
  * the service set it from the service token the call carried, so it is
1109
1120
  * verified, unlike a key's `on_behalf_of`. Absent for the dashboard.
1110
1121
  */
1111
- app: z.ZodOptional<z.ZodEnum<["booking"]>>;
1122
+ app: z.ZodOptional<z.ZodEnum<["booking", "sites"]>>;
1112
1123
  }, "strip", z.ZodTypeAny, {
1113
1124
  type: "member";
1114
1125
  subject: string;
1115
1126
  member_id: string;
1116
- app?: "booking" | undefined;
1127
+ app?: "booking" | "sites" | undefined;
1117
1128
  }, {
1118
1129
  type: "member";
1119
1130
  subject: string;
1120
1131
  member_id: string;
1121
- app?: "booking" | undefined;
1132
+ app?: "booking" | "sites" | undefined;
1122
1133
  }>, z.ZodObject<{
1123
1134
  type: z.ZodLiteral<"api_key">;
1124
1135
  api_key_id: z.ZodString;
@@ -1154,12 +1165,12 @@ declare const AuditEntry: z.ZodObject<{
1154
1165
  id: string;
1155
1166
  details: Record<string, unknown>;
1156
1167
  created_at: string;
1157
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
1168
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
1158
1169
  actor: {
1159
1170
  type: "member";
1160
1171
  subject: string;
1161
1172
  member_id: string;
1162
- app?: "booking" | undefined;
1173
+ app?: "booking" | "sites" | undefined;
1163
1174
  } | {
1164
1175
  type: "api_key";
1165
1176
  api_key_id: string;
@@ -1174,12 +1185,12 @@ declare const AuditEntry: z.ZodObject<{
1174
1185
  id: string;
1175
1186
  details: Record<string, unknown>;
1176
1187
  created_at: string;
1177
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
1188
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
1178
1189
  actor: {
1179
1190
  type: "member";
1180
1191
  subject: string;
1181
1192
  member_id: string;
1182
- app?: "booking" | undefined;
1193
+ app?: "booking" | "sites" | undefined;
1183
1194
  } | {
1184
1195
  type: "api_key";
1185
1196
  api_key_id: string;
@@ -1196,17 +1207,17 @@ declare const AuditQuery: z.ZodObject<{
1196
1207
  cursor: z.ZodOptional<z.ZodString>;
1197
1208
  limit: z.ZodOptional<z.ZodNumber>;
1198
1209
  } & {
1199
- action: z.ZodOptional<z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>>;
1210
+ action: z.ZodOptional<z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "domain_order.created", "domain_order.paid", "domain_order.registered", "domain_order.ready", "domain_order.needs_attention", "domain_order.kind_changed", "domain_order.refunded", "domain_order.cancelled", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>>;
1200
1211
  target_id: z.ZodOptional<z.ZodString>;
1201
1212
  }, "strip", z.ZodTypeAny, {
1202
1213
  cursor?: string | undefined;
1203
1214
  limit?: number | undefined;
1204
- action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
1215
+ action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
1205
1216
  target_id?: string | undefined;
1206
1217
  }, {
1207
1218
  cursor?: string | undefined;
1208
1219
  limit?: number | undefined;
1209
- action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
1220
+ action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
1210
1221
  target_id?: string | undefined;
1211
1222
  }>;
1212
1223
  type AuditQuery = z.infer<typeof AuditQuery>;
@@ -10447,6 +10458,480 @@ declare const SendingDomainUpdate: z.ZodEffects<z.ZodObject<{
10447
10458
  }>;
10448
10459
  type SendingDomainUpdate = z.infer<typeof SendingDomainUpdate>;
10449
10460
 
10461
+ /** A search: a word (`bakery berlin`) or a whole name (`bakery-berlin.com`). */
10462
+ declare const DomainSearchQuery: z.ZodObject<{
10463
+ q: z.ZodString;
10464
+ }, "strip", z.ZodTypeAny, {
10465
+ q: string;
10466
+ }, {
10467
+ q: string;
10468
+ }>;
10469
+ type DomainSearchQuery = z.infer<typeof DomainSearchQuery>;
10470
+ /**
10471
+ * Why a name cannot be bought here:
10472
+ * - `taken`: somebody holds it.
10473
+ * - `extension_not_supported`: the registrar cannot register this ending
10474
+ * through its API (`.de` among them, for now).
10475
+ * - `premium`: the registry prices it as premium; not sold here.
10476
+ * - `not_registrable`: anything else the registry refuses.
10477
+ */
10478
+ declare const DOMAIN_UNAVAILABLE_REASONS: readonly ["taken", "extension_not_supported", "premium", "not_registrable"];
10479
+ declare const DomainUnavailableReason: z.ZodEnum<["taken", "extension_not_supported", "premium", "not_registrable"]>;
10480
+ type DomainUnavailableReason = z.infer<typeof DomainUnavailableReason>;
10481
+ /**
10482
+ * One name as the registry answered just now (never from a cache). Prices are
10483
+ * final, in euro cents per year: the first year and each renewal can differ.
10484
+ */
10485
+ declare const DomainOffer: z.ZodObject<{
10486
+ domain: z.ZodString;
10487
+ available: z.ZodBoolean;
10488
+ reason: z.ZodNullable<z.ZodEnum<["taken", "extension_not_supported", "premium", "not_registrable"]>>;
10489
+ price_cents: z.ZodNullable<z.ZodNumber>;
10490
+ renewal_price_cents: z.ZodNullable<z.ZodNumber>;
10491
+ currency: z.ZodLiteral<"EUR">;
10492
+ }, "strip", z.ZodTypeAny, {
10493
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
10494
+ currency: "EUR";
10495
+ domain: string;
10496
+ available: boolean;
10497
+ price_cents: number | null;
10498
+ renewal_price_cents: number | null;
10499
+ }, {
10500
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
10501
+ currency: "EUR";
10502
+ domain: string;
10503
+ available: boolean;
10504
+ price_cents: number | null;
10505
+ renewal_price_cents: number | null;
10506
+ }>;
10507
+ type DomainOffer = z.infer<typeof DomainOffer>;
10508
+ /**
10509
+ * Why this workspace cannot buy right now, null when it can:
10510
+ * - `not_configured`: buying is not set up on this instance.
10511
+ * - `paid_plan_required`: buying needs an active paid plan (not Free, not a
10512
+ * subscription whose payment failed, not a design partner outside billing).
10513
+ * - `no_company`: the workspace belongs to no company, and a domain belongs to one.
10514
+ */
10515
+ declare const DOMAIN_BUYING_BLOCKS: readonly ["not_configured", "paid_plan_required", "no_company"];
10516
+ declare const DomainBuyingBlock: z.ZodEnum<["not_configured", "paid_plan_required", "no_company"]>;
10517
+ type DomainBuyingBlock = z.infer<typeof DomainBuyingBlock>;
10518
+ declare const DomainSearchResult: z.ZodObject<{
10519
+ data: z.ZodArray<z.ZodObject<{
10520
+ domain: z.ZodString;
10521
+ available: z.ZodBoolean;
10522
+ reason: z.ZodNullable<z.ZodEnum<["taken", "extension_not_supported", "premium", "not_registrable"]>>;
10523
+ price_cents: z.ZodNullable<z.ZodNumber>;
10524
+ renewal_price_cents: z.ZodNullable<z.ZodNumber>;
10525
+ currency: z.ZodLiteral<"EUR">;
10526
+ }, "strip", z.ZodTypeAny, {
10527
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
10528
+ currency: "EUR";
10529
+ domain: string;
10530
+ available: boolean;
10531
+ price_cents: number | null;
10532
+ renewal_price_cents: number | null;
10533
+ }, {
10534
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
10535
+ currency: "EUR";
10536
+ domain: string;
10537
+ available: boolean;
10538
+ price_cents: number | null;
10539
+ renewal_price_cents: number | null;
10540
+ }>, "many">;
10541
+ blocked: z.ZodNullable<z.ZodEnum<["not_configured", "paid_plan_required", "no_company"]>>;
10542
+ }, "strip", z.ZodTypeAny, {
10543
+ data: {
10544
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
10545
+ currency: "EUR";
10546
+ domain: string;
10547
+ available: boolean;
10548
+ price_cents: number | null;
10549
+ renewal_price_cents: number | null;
10550
+ }[];
10551
+ blocked: "not_configured" | "paid_plan_required" | "no_company" | null;
10552
+ }, {
10553
+ data: {
10554
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
10555
+ currency: "EUR";
10556
+ domain: string;
10557
+ available: boolean;
10558
+ price_cents: number | null;
10559
+ renewal_price_cents: number | null;
10560
+ }[];
10561
+ blocked: "not_configured" | "paid_plan_required" | "no_company" | null;
10562
+ }>;
10563
+ type DomainSearchResult = z.infer<typeof DomainSearchResult>;
10564
+ /**
10565
+ * The legal holder of the domain: the customer (a person or their company).
10566
+ * `phone` is taken however people write it (+49 30 1234 5678, 030 1234 5678
10567
+ * with the holder's country, 0049 ...) and kept as registries take it,
10568
+ * +<country code>.<number> (+49.3012345678); `state` is the region (Berlin,
10569
+ * BE); `country_code` two letters (DE).
10570
+ */
10571
+ declare const DomainRegistrant: z.ZodEffects<z.ZodEffects<z.ZodObject<{
10572
+ name: z.ZodString;
10573
+ organization: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10574
+ email: z.ZodString;
10575
+ phone: z.ZodString;
10576
+ street: z.ZodString;
10577
+ city: z.ZodString;
10578
+ state: z.ZodString;
10579
+ postal_code: z.ZodString;
10580
+ country_code: z.ZodString;
10581
+ }, "strip", z.ZodTypeAny, {
10582
+ email: string;
10583
+ name: string;
10584
+ phone: string;
10585
+ street: string;
10586
+ city: string;
10587
+ state: string;
10588
+ postal_code: string;
10589
+ country_code: string;
10590
+ organization?: string | null | undefined;
10591
+ }, {
10592
+ email: string;
10593
+ name: string;
10594
+ phone: string;
10595
+ street: string;
10596
+ city: string;
10597
+ state: string;
10598
+ postal_code: string;
10599
+ country_code: string;
10600
+ organization?: string | null | undefined;
10601
+ }>, {
10602
+ email: string;
10603
+ name: string;
10604
+ phone: string;
10605
+ street: string;
10606
+ city: string;
10607
+ state: string;
10608
+ postal_code: string;
10609
+ country_code: string;
10610
+ organization?: string | null | undefined;
10611
+ }, {
10612
+ email: string;
10613
+ name: string;
10614
+ phone: string;
10615
+ street: string;
10616
+ city: string;
10617
+ state: string;
10618
+ postal_code: string;
10619
+ country_code: string;
10620
+ organization?: string | null | undefined;
10621
+ }>, {
10622
+ phone: string;
10623
+ email: string;
10624
+ name: string;
10625
+ street: string;
10626
+ city: string;
10627
+ state: string;
10628
+ postal_code: string;
10629
+ country_code: string;
10630
+ organization?: string | null | undefined;
10631
+ }, {
10632
+ email: string;
10633
+ name: string;
10634
+ phone: string;
10635
+ street: string;
10636
+ city: string;
10637
+ state: string;
10638
+ postal_code: string;
10639
+ country_code: string;
10640
+ organization?: string | null | undefined;
10641
+ }>;
10642
+ type DomainRegistrant = z.infer<typeof DomainRegistrant>;
10643
+ /** The most domains one workspace may start buying in 24 hours. */
10644
+ declare const MAX_DOMAIN_ORDERS_PER_DAY = 2;
10645
+ /**
10646
+ * What a bought domain is for:
10647
+ * - `sending`: it becomes a sending domain of the workspace, with its records
10648
+ * written (needs the sender, and one of the plan's own sending domains).
10649
+ * - `domain_only`: registered with its zone in Lumitra's account, for a
10650
+ * website, an app or anything but mail; no sender, and no sending-domain
10651
+ * slot is used.
10652
+ */
10653
+ declare const DOMAIN_ORDER_KINDS: readonly ["sending", "domain_only"];
10654
+ declare const DomainOrderKind: z.ZodEnum<["sending", "domain_only"]>;
10655
+ type DomainOrderKind = z.infer<typeof DomainOrderKind>;
10656
+ /**
10657
+ * Buying a name. `price_cents` is the first year's price the customer was
10658
+ * shown: when the registry's price has changed since, nothing is charged and
10659
+ * the order is refused with the new price (`price_changed`), to be shown
10660
+ * again. `kind` is what the domain is for (`sending` when left out). For
10661
+ * `sending`, `from_name` and `from_local_part` are the sender mail goes out
10662
+ * as once the domain is set up (`hello` for hello@<domain>); a `domain_only`
10663
+ * order has none.
10664
+ */
10665
+ declare const DomainOrderCreate: z.ZodEffects<z.ZodObject<{
10666
+ domain: z.ZodString;
10667
+ price_cents: z.ZodNumber;
10668
+ registrant: z.ZodEffects<z.ZodEffects<z.ZodObject<{
10669
+ name: z.ZodString;
10670
+ organization: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10671
+ email: z.ZodString;
10672
+ phone: z.ZodString;
10673
+ street: z.ZodString;
10674
+ city: z.ZodString;
10675
+ state: z.ZodString;
10676
+ postal_code: z.ZodString;
10677
+ country_code: z.ZodString;
10678
+ }, "strip", z.ZodTypeAny, {
10679
+ email: string;
10680
+ name: string;
10681
+ phone: string;
10682
+ street: string;
10683
+ city: string;
10684
+ state: string;
10685
+ postal_code: string;
10686
+ country_code: string;
10687
+ organization?: string | null | undefined;
10688
+ }, {
10689
+ email: string;
10690
+ name: string;
10691
+ phone: string;
10692
+ street: string;
10693
+ city: string;
10694
+ state: string;
10695
+ postal_code: string;
10696
+ country_code: string;
10697
+ organization?: string | null | undefined;
10698
+ }>, {
10699
+ email: string;
10700
+ name: string;
10701
+ phone: string;
10702
+ street: string;
10703
+ city: string;
10704
+ state: string;
10705
+ postal_code: string;
10706
+ country_code: string;
10707
+ organization?: string | null | undefined;
10708
+ }, {
10709
+ email: string;
10710
+ name: string;
10711
+ phone: string;
10712
+ street: string;
10713
+ city: string;
10714
+ state: string;
10715
+ postal_code: string;
10716
+ country_code: string;
10717
+ organization?: string | null | undefined;
10718
+ }>, {
10719
+ phone: string;
10720
+ email: string;
10721
+ name: string;
10722
+ street: string;
10723
+ city: string;
10724
+ state: string;
10725
+ postal_code: string;
10726
+ country_code: string;
10727
+ organization?: string | null | undefined;
10728
+ }, {
10729
+ email: string;
10730
+ name: string;
10731
+ phone: string;
10732
+ street: string;
10733
+ city: string;
10734
+ state: string;
10735
+ postal_code: string;
10736
+ country_code: string;
10737
+ organization?: string | null | undefined;
10738
+ }>;
10739
+ kind: z.ZodDefault<z.ZodEnum<["sending", "domain_only"]>>;
10740
+ from_name: z.ZodOptional<z.ZodString>;
10741
+ from_local_part: z.ZodOptional<z.ZodString>;
10742
+ /**
10743
+ * Where Stripe returns to after paying, and after leaving the payment. The
10744
+ * service adds `domain_order=<order id>` to both, so the page coming back
10745
+ * knows which order to show (and read: `domainOrders.get` confirms a
10746
+ * payment at once, before Stripe's webhook arrives).
10747
+ */
10748
+ success_url: z.ZodString;
10749
+ cancel_url: z.ZodString;
10750
+ /** The buyer accepted the terms of service (which cover bought domains) of this version. */
10751
+ accept_terms: z.ZodLiteral<"2026-10-28">;
10752
+ }, "strip", z.ZodTypeAny, {
10753
+ kind: "sending" | "domain_only";
10754
+ accept_terms: "2026-10-28";
10755
+ domain: string;
10756
+ price_cents: number;
10757
+ registrant: {
10758
+ phone: string;
10759
+ email: string;
10760
+ name: string;
10761
+ street: string;
10762
+ city: string;
10763
+ state: string;
10764
+ postal_code: string;
10765
+ country_code: string;
10766
+ organization?: string | null | undefined;
10767
+ };
10768
+ success_url: string;
10769
+ cancel_url: string;
10770
+ from_name?: string | undefined;
10771
+ from_local_part?: string | undefined;
10772
+ }, {
10773
+ accept_terms: "2026-10-28";
10774
+ domain: string;
10775
+ price_cents: number;
10776
+ registrant: {
10777
+ email: string;
10778
+ name: string;
10779
+ phone: string;
10780
+ street: string;
10781
+ city: string;
10782
+ state: string;
10783
+ postal_code: string;
10784
+ country_code: string;
10785
+ organization?: string | null | undefined;
10786
+ };
10787
+ success_url: string;
10788
+ cancel_url: string;
10789
+ kind?: "sending" | "domain_only" | undefined;
10790
+ from_name?: string | undefined;
10791
+ from_local_part?: string | undefined;
10792
+ }>, {
10793
+ kind: "sending" | "domain_only";
10794
+ accept_terms: "2026-10-28";
10795
+ domain: string;
10796
+ price_cents: number;
10797
+ registrant: {
10798
+ phone: string;
10799
+ email: string;
10800
+ name: string;
10801
+ street: string;
10802
+ city: string;
10803
+ state: string;
10804
+ postal_code: string;
10805
+ country_code: string;
10806
+ organization?: string | null | undefined;
10807
+ };
10808
+ success_url: string;
10809
+ cancel_url: string;
10810
+ from_name?: string | undefined;
10811
+ from_local_part?: string | undefined;
10812
+ }, {
10813
+ accept_terms: "2026-10-28";
10814
+ domain: string;
10815
+ price_cents: number;
10816
+ registrant: {
10817
+ email: string;
10818
+ name: string;
10819
+ phone: string;
10820
+ street: string;
10821
+ city: string;
10822
+ state: string;
10823
+ postal_code: string;
10824
+ country_code: string;
10825
+ organization?: string | null | undefined;
10826
+ };
10827
+ success_url: string;
10828
+ cancel_url: string;
10829
+ kind?: "sending" | "domain_only" | undefined;
10830
+ from_name?: string | undefined;
10831
+ from_local_part?: string | undefined;
10832
+ }>;
10833
+ type DomainOrderCreate = z.infer<typeof DomainOrderCreate>;
10834
+ /**
10835
+ * Where an order stands:
10836
+ * - `awaiting_payment`: the checkout is open (`checkout_url`).
10837
+ * - `paid`: paid; registering starts within a minute.
10838
+ * - `registering`: the registry is registering it.
10839
+ * - `setting_up`: registered; the zone (and for `sending`, the sending domain
10840
+ * and its records) are being set up.
10841
+ * - `ready`: done. A `sending` order's domain is a sending domain of the
10842
+ * workspace (`sending_domain_id`), whose verification continues there; a
10843
+ * `domain_only` order's domain is registered with its zone, nothing more.
10844
+ * - `needs_attention`: registered or paid, and something needs Lumitra's
10845
+ * support (they are told and act; nothing is lost).
10846
+ * - `refunded`: the registry refused after payment; the payment was refunded.
10847
+ * - `cancelled`: not paid (the checkout was left, expired, or replaced by
10848
+ * another order).
10849
+ */
10850
+ declare const DOMAIN_ORDER_STATES: readonly ["awaiting_payment", "paid", "registering", "setting_up", "ready", "needs_attention", "refunded", "cancelled"];
10851
+ declare const DomainOrderState: z.ZodEnum<["awaiting_payment", "paid", "registering", "setting_up", "ready", "needs_attention", "refunded", "cancelled"]>;
10852
+ type DomainOrderState = z.infer<typeof DomainOrderState>;
10853
+ declare const DomainOrder: z.ZodObject<{
10854
+ id: z.ZodString;
10855
+ domain: z.ZodString;
10856
+ state: z.ZodEnum<["awaiting_payment", "paid", "registering", "setting_up", "ready", "needs_attention", "refunded", "cancelled"]>;
10857
+ price_cents: z.ZodNumber;
10858
+ renewal_price_cents: z.ZodNumber;
10859
+ currency: z.ZodLiteral<"EUR">;
10860
+ /** Stripe's payment page while `awaiting_payment`; null otherwise. */
10861
+ checkout_url: z.ZodNullable<z.ZodString>;
10862
+ registrant_name: z.ZodString;
10863
+ kind: z.ZodEnum<["sending", "domain_only"]>;
10864
+ /** The sender, for a `sending` order; null for `domain_only`. */
10865
+ from_name: z.ZodNullable<z.ZodString>;
10866
+ from_email: z.ZodNullable<z.ZodString>;
10867
+ /** The sending domain once `ready`. */
10868
+ sending_domain_id: z.ZodNullable<z.ZodString>;
10869
+ /** When the paid year ends, once registered. */
10870
+ expires_at: z.ZodNullable<z.ZodString>;
10871
+ /** What went wrong, for `needs_attention` and `refunded`; null otherwise. */
10872
+ last_error: z.ZodNullable<z.ZodString>;
10873
+ paid_at: z.ZodNullable<z.ZodString>;
10874
+ registered_at: z.ZodNullable<z.ZodString>;
10875
+ created_at: z.ZodString;
10876
+ updated_at: z.ZodString;
10877
+ }, "strip", z.ZodTypeAny, {
10878
+ id: string;
10879
+ kind: "sending" | "domain_only";
10880
+ created_at: string;
10881
+ updated_at: string;
10882
+ last_error: string | null;
10883
+ expires_at: string | null;
10884
+ currency: "EUR";
10885
+ from_name: string | null;
10886
+ from_email: string | null;
10887
+ domain: string;
10888
+ price_cents: number;
10889
+ renewal_price_cents: number;
10890
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
10891
+ checkout_url: string | null;
10892
+ registrant_name: string;
10893
+ sending_domain_id: string | null;
10894
+ paid_at: string | null;
10895
+ registered_at: string | null;
10896
+ }, {
10897
+ id: string;
10898
+ kind: "sending" | "domain_only";
10899
+ created_at: string;
10900
+ updated_at: string;
10901
+ last_error: string | null;
10902
+ expires_at: string | null;
10903
+ currency: "EUR";
10904
+ from_name: string | null;
10905
+ from_email: string | null;
10906
+ domain: string;
10907
+ price_cents: number;
10908
+ renewal_price_cents: number;
10909
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
10910
+ checkout_url: string | null;
10911
+ registrant_name: string;
10912
+ sending_domain_id: string | null;
10913
+ paid_at: string | null;
10914
+ registered_at: string | null;
10915
+ }>;
10916
+ type DomainOrder = z.infer<typeof DomainOrder>;
10917
+
10918
+ /**
10919
+ * Phone numbers as people write them, turned into the form domain registries
10920
+ * take: `+<country code>.<number>` (+49.3012345678). Marlin, 2026-11-02, on
10921
+ * the buy form asking for the dot: "super weird". So the form takes any usual
10922
+ * way of writing a number and this does the converting, in the one schema the
10923
+ * dashboard and the service both parse with.
10924
+ */
10925
+ /** The registry form: +<country code>.<number>. */
10926
+ declare const REGISTRY_PHONE: RegExp;
10927
+ /**
10928
+ * The registry form of `raw`, or `raw` unchanged when it cannot be read as a
10929
+ * phone number (the schema's check then names what is wrong). `country` is the
10930
+ * holder's two-letter country, used for a number written without a country
10931
+ * code.
10932
+ */
10933
+ declare function normalizePhone(raw: string, country?: string | null): string;
10934
+
10450
10935
  declare const Topic: z.ZodObject<{
10451
10936
  id: z.ZodString;
10452
10937
  slug: z.ZodString;
@@ -29305,11 +29790,11 @@ declare const Usage: z.ZodObject<{
29305
29790
  type Usage = z.infer<typeof Usage>;
29306
29791
  /** An owner or admin accepts the current terms of service and processing agreement for the workspace. */
29307
29792
  declare const TermsAcceptance: z.ZodObject<{
29308
- accept_terms: z.ZodLiteral<"2026-10-23">;
29793
+ accept_terms: z.ZodLiteral<"2026-10-28">;
29309
29794
  }, "strip", z.ZodTypeAny, {
29310
- accept_terms: "2026-10-23";
29795
+ accept_terms: "2026-10-28";
29311
29796
  }, {
29312
- accept_terms: "2026-10-23";
29797
+ accept_terms: "2026-10-28";
29313
29798
  }>;
29314
29799
  type TermsAcceptance = z.infer<typeof TermsAcceptance>;
29315
29800
  declare const CheckoutRequest: z.ZodObject<{
@@ -29317,17 +29802,17 @@ declare const CheckoutRequest: z.ZodObject<{
29317
29802
  success_url: z.ZodString;
29318
29803
  cancel_url: z.ZodString;
29319
29804
  /** The buyer accepted the terms of service and the processing agreement of this version. */
29320
- accept_terms: z.ZodLiteral<"2026-10-23">;
29805
+ accept_terms: z.ZodLiteral<"2026-10-28">;
29321
29806
  }, "strip", z.ZodTypeAny, {
29322
- accept_terms: "2026-10-23";
29323
- plan: "starter" | "growth";
29807
+ accept_terms: "2026-10-28";
29324
29808
  success_url: string;
29325
29809
  cancel_url: string;
29326
- }, {
29327
- accept_terms: "2026-10-23";
29328
29810
  plan: "starter" | "growth";
29811
+ }, {
29812
+ accept_terms: "2026-10-28";
29329
29813
  success_url: string;
29330
29814
  cancel_url: string;
29815
+ plan: "starter" | "growth";
29331
29816
  }>;
29332
29817
  type CheckoutRequest = z.infer<typeof CheckoutRequest>;
29333
29818
  declare const CheckoutSession: z.ZodObject<{
@@ -29384,9 +29869,9 @@ declare function parseUsageWarningHeader(value: string | null | undefined): Usag
29384
29869
  * refused, so a change of the texts moves this and the next person accepts the
29385
29870
  * new one.
29386
29871
  */
29387
- declare const LEGAL_TERMS_VERSION = "2026-10-23";
29872
+ declare const LEGAL_TERMS_VERSION = "2026-10-28";
29388
29873
  /** `accept_terms`: the person accepted the terms of service and the processing agreement of the current version. */
29389
- declare const AcceptTerms: z.ZodLiteral<"2026-10-23">;
29874
+ declare const AcceptTerms: z.ZodLiteral<"2026-10-28">;
29390
29875
 
29391
29876
  type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
29392
29877
  /**
@@ -29481,7 +29966,7 @@ declare const foundationRoutes: {
29481
29966
  name?: string | null | undefined;
29482
29967
  }>;
29483
29968
  company_id: z.ZodString;
29484
- accept_terms: z.ZodLiteral<"2026-10-23">;
29969
+ accept_terms: z.ZodLiteral<"2026-10-28">;
29485
29970
  }, "strip", z.ZodTypeAny, {
29486
29971
  name: string;
29487
29972
  slug: string;
@@ -29490,7 +29975,7 @@ declare const foundationRoutes: {
29490
29975
  name?: string | null | undefined;
29491
29976
  };
29492
29977
  company_id: string;
29493
- accept_terms: "2026-10-23";
29978
+ accept_terms: "2026-10-28";
29494
29979
  settings?: {
29495
29980
  asset_policy?: "any" | "service_only" | undefined;
29496
29981
  default_locale?: string | undefined;
@@ -29508,7 +29993,7 @@ declare const foundationRoutes: {
29508
29993
  name?: string | null | undefined;
29509
29994
  };
29510
29995
  company_id: string;
29511
- accept_terms: "2026-10-23";
29996
+ accept_terms: "2026-10-28";
29512
29997
  settings?: {
29513
29998
  asset_policy?: "any" | "service_only" | undefined;
29514
29999
  default_locale?: string | undefined;
@@ -30486,38 +30971,38 @@ declare const foundationRoutes: {
30486
30971
  cursor: z.ZodOptional<z.ZodString>;
30487
30972
  limit: z.ZodOptional<z.ZodNumber>;
30488
30973
  } & {
30489
- action: z.ZodOptional<z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>>;
30974
+ action: z.ZodOptional<z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "domain_order.created", "domain_order.paid", "domain_order.registered", "domain_order.ready", "domain_order.needs_attention", "domain_order.kind_changed", "domain_order.refunded", "domain_order.cancelled", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>>;
30490
30975
  target_id: z.ZodOptional<z.ZodString>;
30491
30976
  }, "strip", z.ZodTypeAny, {
30492
30977
  cursor?: string | undefined;
30493
30978
  limit?: number | undefined;
30494
- action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
30979
+ action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
30495
30980
  target_id?: string | undefined;
30496
30981
  }, {
30497
30982
  cursor?: string | undefined;
30498
30983
  limit?: number | undefined;
30499
- action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
30984
+ action?: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded" | undefined;
30500
30985
  target_id?: string | undefined;
30501
30986
  }>;
30502
30987
  readonly response: z.ZodObject<{
30503
30988
  data: z.ZodArray<z.ZodObject<{
30504
30989
  id: z.ZodString;
30505
- action: z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>;
30990
+ action: z.ZodEnum<["workspace.created", "workspace.updated", "workspace.company_changed", "member.added", "member.role_changed", "member.removed", "member.invited", "invite.revoked", "api_key.created", "api_key.revoked", "provider.created", "provider.updated", "provider.deleted", "provider.events_registered", "provider.events_secret_set", "provider.bounces_halted", "provider.anomaly_cleared", "sending_domain.created", "sending_domain.updated", "sending_domain.checked", "sending_domain.records_written", "sending_domain.deleted", "topic.created", "topic.updated", "topic.deleted", "template.created", "template.updated", "template.deleted", "template.inputs_declared", "saved_section.created", "saved_section.updated", "saved_section.deleted", "asset.uploaded", "asset.imported", "contact.erased", "suppression.created", "suppression.deleted", "mailing.created", "mailing.sent", "mailing.paused", "mailing.resumed", "mailing.cancelled", "mailing.deleted", "mailing.retried", "webhook.created", "webhook.updated", "webhook.deleted", "webhook.secret_rotated", "webhook.redelivered", "contact.unsubscribed", "tag.created", "tag.deleted", "tag.assigned", "tag.unassigned", "contact_property.created", "contact_property.deleted", "segment.created", "segment.updated", "segment.deleted", "signup_form.created", "signup_form.updated", "signup_form.deleted", "contact.subscribed", "import.created", "import.mapped", "import.committed", "import.cancelled", "import.finished", "mailing.scheduled", "mailing.unscheduled", "mailing.schedule_failed", "mailing.ab_test_updated", "mailing.ab_winner_selected", "tracking.updated", "billing.checkout_started", "billing.subscription_changed", "billing.exemption_changed", "billing.extra_sending_domains_changed", "billing.terms_accepted", "domain_order.created", "domain_order.paid", "domain_order.registered", "domain_order.ready", "domain_order.needs_attention", "domain_order.kind_changed", "domain_order.refunded", "domain_order.cancelled", "automation.created", "automation.updated", "automation.published", "automation.paused", "automation.resumed", "automation.archived", "automation.deleted", "automation.duplicated", "automation.enrolled", "automation.run_ended", "event.recorded"]>;
30506
30991
  actor: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
30507
30992
  type: z.ZodLiteral<"member">;
30508
30993
  member_id: z.ZodString;
30509
30994
  subject: z.ZodString;
30510
- app: z.ZodOptional<z.ZodEnum<["booking"]>>;
30995
+ app: z.ZodOptional<z.ZodEnum<["booking", "sites"]>>;
30511
30996
  }, "strip", z.ZodTypeAny, {
30512
30997
  type: "member";
30513
30998
  subject: string;
30514
30999
  member_id: string;
30515
- app?: "booking" | undefined;
31000
+ app?: "booking" | "sites" | undefined;
30516
31001
  }, {
30517
31002
  type: "member";
30518
31003
  subject: string;
30519
31004
  member_id: string;
30520
- app?: "booking" | undefined;
31005
+ app?: "booking" | "sites" | undefined;
30521
31006
  }>, z.ZodObject<{
30522
31007
  type: z.ZodLiteral<"api_key">;
30523
31008
  api_key_id: z.ZodString;
@@ -30548,12 +31033,12 @@ declare const foundationRoutes: {
30548
31033
  id: string;
30549
31034
  details: Record<string, unknown>;
30550
31035
  created_at: string;
30551
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
31036
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
30552
31037
  actor: {
30553
31038
  type: "member";
30554
31039
  subject: string;
30555
31040
  member_id: string;
30556
- app?: "booking" | undefined;
31041
+ app?: "booking" | "sites" | undefined;
30557
31042
  } | {
30558
31043
  type: "api_key";
30559
31044
  api_key_id: string;
@@ -30568,12 +31053,12 @@ declare const foundationRoutes: {
30568
31053
  id: string;
30569
31054
  details: Record<string, unknown>;
30570
31055
  created_at: string;
30571
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
31056
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
30572
31057
  actor: {
30573
31058
  type: "member";
30574
31059
  subject: string;
30575
31060
  member_id: string;
30576
- app?: "booking" | undefined;
31061
+ app?: "booking" | "sites" | undefined;
30577
31062
  } | {
30578
31063
  type: "api_key";
30579
31064
  api_key_id: string;
@@ -30591,12 +31076,12 @@ declare const foundationRoutes: {
30591
31076
  id: string;
30592
31077
  details: Record<string, unknown>;
30593
31078
  created_at: string;
30594
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
31079
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
30595
31080
  actor: {
30596
31081
  type: "member";
30597
31082
  subject: string;
30598
31083
  member_id: string;
30599
- app?: "booking" | undefined;
31084
+ app?: "booking" | "sites" | undefined;
30600
31085
  } | {
30601
31086
  type: "api_key";
30602
31087
  api_key_id: string;
@@ -30614,12 +31099,12 @@ declare const foundationRoutes: {
30614
31099
  id: string;
30615
31100
  details: Record<string, unknown>;
30616
31101
  created_at: string;
30617
- action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
31102
+ action: "workspace.created" | "workspace.updated" | "workspace.company_changed" | "member.added" | "member.role_changed" | "member.removed" | "member.invited" | "invite.revoked" | "api_key.created" | "api_key.revoked" | "provider.created" | "provider.updated" | "provider.deleted" | "provider.events_registered" | "provider.events_secret_set" | "provider.bounces_halted" | "provider.anomaly_cleared" | "sending_domain.created" | "sending_domain.updated" | "sending_domain.checked" | "sending_domain.records_written" | "sending_domain.deleted" | "topic.created" | "topic.updated" | "topic.deleted" | "template.created" | "template.updated" | "template.deleted" | "template.inputs_declared" | "saved_section.created" | "saved_section.updated" | "saved_section.deleted" | "asset.uploaded" | "asset.imported" | "contact.erased" | "suppression.created" | "suppression.deleted" | "mailing.created" | "mailing.sent" | "mailing.paused" | "mailing.resumed" | "mailing.cancelled" | "mailing.deleted" | "mailing.retried" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.secret_rotated" | "webhook.redelivered" | "contact.unsubscribed" | "tag.created" | "tag.deleted" | "tag.assigned" | "tag.unassigned" | "contact_property.created" | "contact_property.deleted" | "segment.created" | "segment.updated" | "segment.deleted" | "signup_form.created" | "signup_form.updated" | "signup_form.deleted" | "contact.subscribed" | "import.created" | "import.mapped" | "import.committed" | "import.cancelled" | "import.finished" | "mailing.scheduled" | "mailing.unscheduled" | "mailing.schedule_failed" | "mailing.ab_test_updated" | "mailing.ab_winner_selected" | "tracking.updated" | "billing.checkout_started" | "billing.subscription_changed" | "billing.exemption_changed" | "billing.extra_sending_domains_changed" | "billing.terms_accepted" | "domain_order.created" | "domain_order.paid" | "domain_order.registered" | "domain_order.ready" | "domain_order.needs_attention" | "domain_order.kind_changed" | "domain_order.refunded" | "domain_order.cancelled" | "automation.created" | "automation.updated" | "automation.published" | "automation.paused" | "automation.resumed" | "automation.archived" | "automation.deleted" | "automation.duplicated" | "automation.enrolled" | "automation.run_ended" | "event.recorded";
30618
31103
  actor: {
30619
31104
  type: "member";
30620
31105
  subject: string;
30621
31106
  member_id: string;
30622
- app?: "booking" | undefined;
31107
+ app?: "booking" | "sites" | undefined;
30623
31108
  } | {
30624
31109
  type: "api_key";
30625
31110
  api_key_id: string;
@@ -50597,17 +51082,17 @@ declare const billingRoutes: {
50597
51082
  plan: z.ZodEnum<["starter", "growth"]>;
50598
51083
  success_url: z.ZodString;
50599
51084
  cancel_url: z.ZodString;
50600
- accept_terms: z.ZodLiteral<"2026-10-23">;
51085
+ accept_terms: z.ZodLiteral<"2026-10-28">;
50601
51086
  }, "strip", z.ZodTypeAny, {
50602
- accept_terms: "2026-10-23";
50603
- plan: "starter" | "growth";
51087
+ accept_terms: "2026-10-28";
50604
51088
  success_url: string;
50605
51089
  cancel_url: string;
50606
- }, {
50607
- accept_terms: "2026-10-23";
50608
51090
  plan: "starter" | "growth";
51091
+ }, {
51092
+ accept_terms: "2026-10-28";
50609
51093
  success_url: string;
50610
51094
  cancel_url: string;
51095
+ plan: "starter" | "growth";
50611
51096
  }>;
50612
51097
  readonly response: z.ZodObject<{
50613
51098
  url: z.ZodString;
@@ -50687,11 +51172,11 @@ declare const billingRoutes: {
50687
51172
  readonly method: "POST";
50688
51173
  readonly path: "/v1/billing/terms";
50689
51174
  readonly body: z.ZodObject<{
50690
- accept_terms: z.ZodLiteral<"2026-10-23">;
51175
+ accept_terms: z.ZodLiteral<"2026-10-28">;
50691
51176
  }, "strip", z.ZodTypeAny, {
50692
- accept_terms: "2026-10-23";
51177
+ accept_terms: "2026-10-28";
50693
51178
  }, {
50694
- accept_terms: "2026-10-23";
51179
+ accept_terms: "2026-10-28";
50695
51180
  }>;
50696
51181
  readonly response: z.ZodObject<{
50697
51182
  accepted_version: z.ZodNullable<z.ZodString>;
@@ -50708,6 +51193,487 @@ declare const billingRoutes: {
50708
51193
  readonly phase: "S5";
50709
51194
  };
50710
51195
  };
51196
+ declare const domainBuyingRoutes: {
51197
+ readonly 'domains.search': {
51198
+ readonly method: "GET";
51199
+ readonly path: "/v1/domains/search";
51200
+ readonly query: z.ZodObject<{
51201
+ q: z.ZodString;
51202
+ }, "strip", z.ZodTypeAny, {
51203
+ q: string;
51204
+ }, {
51205
+ q: string;
51206
+ }>;
51207
+ readonly response: z.ZodObject<{
51208
+ data: z.ZodArray<z.ZodObject<{
51209
+ domain: z.ZodString;
51210
+ available: z.ZodBoolean;
51211
+ reason: z.ZodNullable<z.ZodEnum<["taken", "extension_not_supported", "premium", "not_registrable"]>>;
51212
+ price_cents: z.ZodNullable<z.ZodNumber>;
51213
+ renewal_price_cents: z.ZodNullable<z.ZodNumber>;
51214
+ currency: z.ZodLiteral<"EUR">;
51215
+ }, "strip", z.ZodTypeAny, {
51216
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
51217
+ currency: "EUR";
51218
+ domain: string;
51219
+ available: boolean;
51220
+ price_cents: number | null;
51221
+ renewal_price_cents: number | null;
51222
+ }, {
51223
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
51224
+ currency: "EUR";
51225
+ domain: string;
51226
+ available: boolean;
51227
+ price_cents: number | null;
51228
+ renewal_price_cents: number | null;
51229
+ }>, "many">;
51230
+ blocked: z.ZodNullable<z.ZodEnum<["not_configured", "paid_plan_required", "no_company"]>>;
51231
+ }, "strip", z.ZodTypeAny, {
51232
+ data: {
51233
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
51234
+ currency: "EUR";
51235
+ domain: string;
51236
+ available: boolean;
51237
+ price_cents: number | null;
51238
+ renewal_price_cents: number | null;
51239
+ }[];
51240
+ blocked: "not_configured" | "paid_plan_required" | "no_company" | null;
51241
+ }, {
51242
+ data: {
51243
+ reason: "taken" | "extension_not_supported" | "premium" | "not_registrable" | null;
51244
+ currency: "EUR";
51245
+ domain: string;
51246
+ available: boolean;
51247
+ price_cents: number | null;
51248
+ renewal_price_cents: number | null;
51249
+ }[];
51250
+ blocked: "not_configured" | "paid_plan_required" | "no_company" | null;
51251
+ }>;
51252
+ readonly status: 200;
51253
+ readonly access: "admin";
51254
+ readonly phase: "S5";
51255
+ };
51256
+ readonly 'domainOrders.create': {
51257
+ readonly method: "POST";
51258
+ readonly path: "/v1/domain-orders";
51259
+ readonly body: z.ZodEffects<z.ZodObject<{
51260
+ domain: z.ZodString;
51261
+ price_cents: z.ZodNumber;
51262
+ registrant: z.ZodEffects<z.ZodEffects<z.ZodObject<{
51263
+ name: z.ZodString;
51264
+ organization: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51265
+ email: z.ZodString;
51266
+ phone: z.ZodString;
51267
+ street: z.ZodString;
51268
+ city: z.ZodString;
51269
+ state: z.ZodString;
51270
+ postal_code: z.ZodString;
51271
+ country_code: z.ZodString;
51272
+ }, "strip", z.ZodTypeAny, {
51273
+ email: string;
51274
+ name: string;
51275
+ phone: string;
51276
+ street: string;
51277
+ city: string;
51278
+ state: string;
51279
+ postal_code: string;
51280
+ country_code: string;
51281
+ organization?: string | null | undefined;
51282
+ }, {
51283
+ email: string;
51284
+ name: string;
51285
+ phone: string;
51286
+ street: string;
51287
+ city: string;
51288
+ state: string;
51289
+ postal_code: string;
51290
+ country_code: string;
51291
+ organization?: string | null | undefined;
51292
+ }>, {
51293
+ email: string;
51294
+ name: string;
51295
+ phone: string;
51296
+ street: string;
51297
+ city: string;
51298
+ state: string;
51299
+ postal_code: string;
51300
+ country_code: string;
51301
+ organization?: string | null | undefined;
51302
+ }, {
51303
+ email: string;
51304
+ name: string;
51305
+ phone: string;
51306
+ street: string;
51307
+ city: string;
51308
+ state: string;
51309
+ postal_code: string;
51310
+ country_code: string;
51311
+ organization?: string | null | undefined;
51312
+ }>, {
51313
+ phone: string;
51314
+ email: string;
51315
+ name: string;
51316
+ street: string;
51317
+ city: string;
51318
+ state: string;
51319
+ postal_code: string;
51320
+ country_code: string;
51321
+ organization?: string | null | undefined;
51322
+ }, {
51323
+ email: string;
51324
+ name: string;
51325
+ phone: string;
51326
+ street: string;
51327
+ city: string;
51328
+ state: string;
51329
+ postal_code: string;
51330
+ country_code: string;
51331
+ organization?: string | null | undefined;
51332
+ }>;
51333
+ kind: z.ZodDefault<z.ZodEnum<["sending", "domain_only"]>>;
51334
+ from_name: z.ZodOptional<z.ZodString>;
51335
+ from_local_part: z.ZodOptional<z.ZodString>;
51336
+ success_url: z.ZodString;
51337
+ cancel_url: z.ZodString;
51338
+ accept_terms: z.ZodLiteral<"2026-10-28">;
51339
+ }, "strip", z.ZodTypeAny, {
51340
+ kind: "sending" | "domain_only";
51341
+ accept_terms: "2026-10-28";
51342
+ domain: string;
51343
+ price_cents: number;
51344
+ registrant: {
51345
+ phone: string;
51346
+ email: string;
51347
+ name: string;
51348
+ street: string;
51349
+ city: string;
51350
+ state: string;
51351
+ postal_code: string;
51352
+ country_code: string;
51353
+ organization?: string | null | undefined;
51354
+ };
51355
+ success_url: string;
51356
+ cancel_url: string;
51357
+ from_name?: string | undefined;
51358
+ from_local_part?: string | undefined;
51359
+ }, {
51360
+ accept_terms: "2026-10-28";
51361
+ domain: string;
51362
+ price_cents: number;
51363
+ registrant: {
51364
+ email: string;
51365
+ name: string;
51366
+ phone: string;
51367
+ street: string;
51368
+ city: string;
51369
+ state: string;
51370
+ postal_code: string;
51371
+ country_code: string;
51372
+ organization?: string | null | undefined;
51373
+ };
51374
+ success_url: string;
51375
+ cancel_url: string;
51376
+ kind?: "sending" | "domain_only" | undefined;
51377
+ from_name?: string | undefined;
51378
+ from_local_part?: string | undefined;
51379
+ }>, {
51380
+ kind: "sending" | "domain_only";
51381
+ accept_terms: "2026-10-28";
51382
+ domain: string;
51383
+ price_cents: number;
51384
+ registrant: {
51385
+ phone: string;
51386
+ email: string;
51387
+ name: string;
51388
+ street: string;
51389
+ city: string;
51390
+ state: string;
51391
+ postal_code: string;
51392
+ country_code: string;
51393
+ organization?: string | null | undefined;
51394
+ };
51395
+ success_url: string;
51396
+ cancel_url: string;
51397
+ from_name?: string | undefined;
51398
+ from_local_part?: string | undefined;
51399
+ }, {
51400
+ accept_terms: "2026-10-28";
51401
+ domain: string;
51402
+ price_cents: number;
51403
+ registrant: {
51404
+ email: string;
51405
+ name: string;
51406
+ phone: string;
51407
+ street: string;
51408
+ city: string;
51409
+ state: string;
51410
+ postal_code: string;
51411
+ country_code: string;
51412
+ organization?: string | null | undefined;
51413
+ };
51414
+ success_url: string;
51415
+ cancel_url: string;
51416
+ kind?: "sending" | "domain_only" | undefined;
51417
+ from_name?: string | undefined;
51418
+ from_local_part?: string | undefined;
51419
+ }>;
51420
+ readonly response: z.ZodObject<{
51421
+ id: z.ZodString;
51422
+ domain: z.ZodString;
51423
+ state: z.ZodEnum<["awaiting_payment", "paid", "registering", "setting_up", "ready", "needs_attention", "refunded", "cancelled"]>;
51424
+ price_cents: z.ZodNumber;
51425
+ renewal_price_cents: z.ZodNumber;
51426
+ currency: z.ZodLiteral<"EUR">;
51427
+ checkout_url: z.ZodNullable<z.ZodString>;
51428
+ registrant_name: z.ZodString;
51429
+ kind: z.ZodEnum<["sending", "domain_only"]>;
51430
+ from_name: z.ZodNullable<z.ZodString>;
51431
+ from_email: z.ZodNullable<z.ZodString>;
51432
+ sending_domain_id: z.ZodNullable<z.ZodString>;
51433
+ expires_at: z.ZodNullable<z.ZodString>;
51434
+ last_error: z.ZodNullable<z.ZodString>;
51435
+ paid_at: z.ZodNullable<z.ZodString>;
51436
+ registered_at: z.ZodNullable<z.ZodString>;
51437
+ created_at: z.ZodString;
51438
+ updated_at: z.ZodString;
51439
+ }, "strip", z.ZodTypeAny, {
51440
+ id: string;
51441
+ kind: "sending" | "domain_only";
51442
+ created_at: string;
51443
+ updated_at: string;
51444
+ last_error: string | null;
51445
+ expires_at: string | null;
51446
+ currency: "EUR";
51447
+ from_name: string | null;
51448
+ from_email: string | null;
51449
+ domain: string;
51450
+ price_cents: number;
51451
+ renewal_price_cents: number;
51452
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51453
+ checkout_url: string | null;
51454
+ registrant_name: string;
51455
+ sending_domain_id: string | null;
51456
+ paid_at: string | null;
51457
+ registered_at: string | null;
51458
+ }, {
51459
+ id: string;
51460
+ kind: "sending" | "domain_only";
51461
+ created_at: string;
51462
+ updated_at: string;
51463
+ last_error: string | null;
51464
+ expires_at: string | null;
51465
+ currency: "EUR";
51466
+ from_name: string | null;
51467
+ from_email: string | null;
51468
+ domain: string;
51469
+ price_cents: number;
51470
+ renewal_price_cents: number;
51471
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51472
+ checkout_url: string | null;
51473
+ registrant_name: string;
51474
+ sending_domain_id: string | null;
51475
+ paid_at: string | null;
51476
+ registered_at: string | null;
51477
+ }>;
51478
+ readonly status: 201;
51479
+ readonly access: "admin";
51480
+ readonly phase: "S5";
51481
+ };
51482
+ readonly 'domainOrders.list': {
51483
+ readonly method: "GET";
51484
+ readonly path: "/v1/domain-orders";
51485
+ readonly query: z.ZodObject<{
51486
+ cursor: z.ZodOptional<z.ZodString>;
51487
+ limit: z.ZodOptional<z.ZodNumber>;
51488
+ }, "strip", z.ZodTypeAny, {
51489
+ cursor?: string | undefined;
51490
+ limit?: number | undefined;
51491
+ }, {
51492
+ cursor?: string | undefined;
51493
+ limit?: number | undefined;
51494
+ }>;
51495
+ readonly response: z.ZodObject<{
51496
+ data: z.ZodArray<z.ZodObject<{
51497
+ id: z.ZodString;
51498
+ domain: z.ZodString;
51499
+ state: z.ZodEnum<["awaiting_payment", "paid", "registering", "setting_up", "ready", "needs_attention", "refunded", "cancelled"]>;
51500
+ price_cents: z.ZodNumber;
51501
+ renewal_price_cents: z.ZodNumber;
51502
+ currency: z.ZodLiteral<"EUR">;
51503
+ checkout_url: z.ZodNullable<z.ZodString>;
51504
+ registrant_name: z.ZodString;
51505
+ kind: z.ZodEnum<["sending", "domain_only"]>;
51506
+ from_name: z.ZodNullable<z.ZodString>;
51507
+ from_email: z.ZodNullable<z.ZodString>;
51508
+ sending_domain_id: z.ZodNullable<z.ZodString>;
51509
+ expires_at: z.ZodNullable<z.ZodString>;
51510
+ last_error: z.ZodNullable<z.ZodString>;
51511
+ paid_at: z.ZodNullable<z.ZodString>;
51512
+ registered_at: z.ZodNullable<z.ZodString>;
51513
+ created_at: z.ZodString;
51514
+ updated_at: z.ZodString;
51515
+ }, "strip", z.ZodTypeAny, {
51516
+ id: string;
51517
+ kind: "sending" | "domain_only";
51518
+ created_at: string;
51519
+ updated_at: string;
51520
+ last_error: string | null;
51521
+ expires_at: string | null;
51522
+ currency: "EUR";
51523
+ from_name: string | null;
51524
+ from_email: string | null;
51525
+ domain: string;
51526
+ price_cents: number;
51527
+ renewal_price_cents: number;
51528
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51529
+ checkout_url: string | null;
51530
+ registrant_name: string;
51531
+ sending_domain_id: string | null;
51532
+ paid_at: string | null;
51533
+ registered_at: string | null;
51534
+ }, {
51535
+ id: string;
51536
+ kind: "sending" | "domain_only";
51537
+ created_at: string;
51538
+ updated_at: string;
51539
+ last_error: string | null;
51540
+ expires_at: string | null;
51541
+ currency: "EUR";
51542
+ from_name: string | null;
51543
+ from_email: string | null;
51544
+ domain: string;
51545
+ price_cents: number;
51546
+ renewal_price_cents: number;
51547
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51548
+ checkout_url: string | null;
51549
+ registrant_name: string;
51550
+ sending_domain_id: string | null;
51551
+ paid_at: string | null;
51552
+ registered_at: string | null;
51553
+ }>, "many">;
51554
+ next_cursor: z.ZodNullable<z.ZodString>;
51555
+ }, "strip", z.ZodTypeAny, {
51556
+ data: {
51557
+ id: string;
51558
+ kind: "sending" | "domain_only";
51559
+ created_at: string;
51560
+ updated_at: string;
51561
+ last_error: string | null;
51562
+ expires_at: string | null;
51563
+ currency: "EUR";
51564
+ from_name: string | null;
51565
+ from_email: string | null;
51566
+ domain: string;
51567
+ price_cents: number;
51568
+ renewal_price_cents: number;
51569
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51570
+ checkout_url: string | null;
51571
+ registrant_name: string;
51572
+ sending_domain_id: string | null;
51573
+ paid_at: string | null;
51574
+ registered_at: string | null;
51575
+ }[];
51576
+ next_cursor: string | null;
51577
+ }, {
51578
+ data: {
51579
+ id: string;
51580
+ kind: "sending" | "domain_only";
51581
+ created_at: string;
51582
+ updated_at: string;
51583
+ last_error: string | null;
51584
+ expires_at: string | null;
51585
+ currency: "EUR";
51586
+ from_name: string | null;
51587
+ from_email: string | null;
51588
+ domain: string;
51589
+ price_cents: number;
51590
+ renewal_price_cents: number;
51591
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51592
+ checkout_url: string | null;
51593
+ registrant_name: string;
51594
+ sending_domain_id: string | null;
51595
+ paid_at: string | null;
51596
+ registered_at: string | null;
51597
+ }[];
51598
+ next_cursor: string | null;
51599
+ }>;
51600
+ readonly status: 200;
51601
+ readonly access: "admin";
51602
+ readonly phase: "S5";
51603
+ };
51604
+ readonly 'domainOrders.get': {
51605
+ readonly method: "GET";
51606
+ readonly path: "/v1/domain-orders/:id";
51607
+ readonly params: z.ZodObject<{
51608
+ id: z.ZodString;
51609
+ }, "strip", z.ZodTypeAny, {
51610
+ id: string;
51611
+ }, {
51612
+ id: string;
51613
+ }>;
51614
+ readonly response: z.ZodObject<{
51615
+ id: z.ZodString;
51616
+ domain: z.ZodString;
51617
+ state: z.ZodEnum<["awaiting_payment", "paid", "registering", "setting_up", "ready", "needs_attention", "refunded", "cancelled"]>;
51618
+ price_cents: z.ZodNumber;
51619
+ renewal_price_cents: z.ZodNumber;
51620
+ currency: z.ZodLiteral<"EUR">;
51621
+ checkout_url: z.ZodNullable<z.ZodString>;
51622
+ registrant_name: z.ZodString;
51623
+ kind: z.ZodEnum<["sending", "domain_only"]>;
51624
+ from_name: z.ZodNullable<z.ZodString>;
51625
+ from_email: z.ZodNullable<z.ZodString>;
51626
+ sending_domain_id: z.ZodNullable<z.ZodString>;
51627
+ expires_at: z.ZodNullable<z.ZodString>;
51628
+ last_error: z.ZodNullable<z.ZodString>;
51629
+ paid_at: z.ZodNullable<z.ZodString>;
51630
+ registered_at: z.ZodNullable<z.ZodString>;
51631
+ created_at: z.ZodString;
51632
+ updated_at: z.ZodString;
51633
+ }, "strip", z.ZodTypeAny, {
51634
+ id: string;
51635
+ kind: "sending" | "domain_only";
51636
+ created_at: string;
51637
+ updated_at: string;
51638
+ last_error: string | null;
51639
+ expires_at: string | null;
51640
+ currency: "EUR";
51641
+ from_name: string | null;
51642
+ from_email: string | null;
51643
+ domain: string;
51644
+ price_cents: number;
51645
+ renewal_price_cents: number;
51646
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51647
+ checkout_url: string | null;
51648
+ registrant_name: string;
51649
+ sending_domain_id: string | null;
51650
+ paid_at: string | null;
51651
+ registered_at: string | null;
51652
+ }, {
51653
+ id: string;
51654
+ kind: "sending" | "domain_only";
51655
+ created_at: string;
51656
+ updated_at: string;
51657
+ last_error: string | null;
51658
+ expires_at: string | null;
51659
+ currency: "EUR";
51660
+ from_name: string | null;
51661
+ from_email: string | null;
51662
+ domain: string;
51663
+ price_cents: number;
51664
+ renewal_price_cents: number;
51665
+ state: "ready" | "cancelled" | "awaiting_payment" | "paid" | "registering" | "setting_up" | "needs_attention" | "refunded";
51666
+ checkout_url: string | null;
51667
+ registrant_name: string;
51668
+ sending_domain_id: string | null;
51669
+ paid_at: string | null;
51670
+ registered_at: string | null;
51671
+ }>;
51672
+ readonly status: 200;
51673
+ readonly access: "admin";
51674
+ readonly phase: "S5";
51675
+ };
51676
+ };
50711
51677
  declare const inviteRoutes: {
50712
51678
  readonly 'invites.create': {
50713
51679
  readonly method: "POST";
@@ -69531,7 +70497,7 @@ declare const automationRoutes: {
69531
70497
  * groups by name: spelled out, the merged type grew past what the declaration
69532
70498
  * emitter will write (TS7056) once the plan limits gained a field.
69533
70499
  */
69534
- type Routes = typeof foundationRoutes & typeof templateRoutes & typeof sendingRoutes & typeof inviteRoutes & typeof platformRoutes & typeof billingRoutes & typeof automationRoutes;
70500
+ type Routes = typeof foundationRoutes & typeof templateRoutes & typeof sendingRoutes & typeof inviteRoutes & typeof platformRoutes & typeof billingRoutes & typeof domainBuyingRoutes & typeof automationRoutes;
69535
70501
  declare const routes: Routes;
69536
70502
  type OperationId = keyof Routes;
69537
70503
  /**
@@ -69559,6 +70525,7 @@ type OperationId = keyof Routes;
69559
70525
  */
69560
70526
  declare const TRUSTED_APP_OPERATIONS: {
69561
70527
  readonly booking: readonly ["workspaces.list", "workspace.update", "providers.list", "sendingDomains.list", "apiKeys.create", "apiKeys.revoke"];
70528
+ readonly sites: readonly ["workspaces.list", "workspace.update", "providers.list", "sendingDomains.list", "apiKeys.create", "apiKeys.revoke"];
69562
70529
  };
69563
70530
  /** Whether a trusted application may call an operation at all. */
69564
70531
  declare function trustedAppMayCall(app: TrustedApp, id: OperationId): boolean;
@@ -69594,4 +70561,4 @@ declare function matchRoute(method: HttpMethod, pathname: string): {
69594
70561
  params: Record<string, string>;
69595
70562
  } | null;
69596
70563
 
69597
- export { AB_TEST_STATUSES, AB_WINNER_METRICS, API_KEY_SCOPES, API_VERSION_PREFIX, ASSET_CONTENT_TYPES, ASSET_POLICIES, ASSET_UPLOAD_FIELD, AUDIT_ACTIONS, AUTHORIZATION_HEADER, AUTOMATION_DATE_TRIGGER_KINDS, AUTOMATION_END_REASONS, AUTOMATION_ENTRY_REFUSALS, AUTOMATION_FILTER_FIELD_OPERATORS, AUTOMATION_FILTER_FIELD_PATTERN, AUTOMATION_ISSUE_CODES, AUTOMATION_STATUSES, AUTOMATION_STEP_KINDS, AUTOMATION_TRIGGER_KINDS, AUTOMATION_WAIT_REASONS, AbTestConfig, AbTestState, AbVariant, AbWinnerRequest, AcceptTerms, ApiKey, ApiKeyCreate, ApiKeyCreated, ApiKeyScope, Asset, AssetContentType, AssetHost, AssetImport, AssetPolicy, AuditAction, AuditActor, AuditEntry, AuditQuery, Automation, AutomationCounts, AutomationCreate, type AutomationDateTriggerKind, AutomationDuplicateRequest, AutomationEndReason, AutomationEnrollRequest, AutomationEnrollResult, AutomationEnrollment, AutomationEntryRefusal, AutomationExitRunRequest, AutomationFilter, AutomationFilterCondition, AutomationFilterField, AutomationFlow, AutomationIssue, AutomationIssueCode, AutomationJourney, AutomationListQuery, AutomationPublishMove, AutomationPublishRequest, AutomationPublishResult, AutomationReport, AutomationRun, AutomationRunCompletedData, AutomationRunExitedData, AutomationRunFailedData, AutomationRunListQuery, AutomationRunParams, AutomationRunStartedData, AutomationRunStatus, AutomationSettings, AutomationStatus, AutomationStep, AutomationStepExecution, AutomationStepKind, AutomationStepParams, AutomationStepReport, AutomationSummary, AutomationTestEmailRequest, AutomationTrigger, AutomationTriggerKind, AutomationUpdate, AutomationValidateRequest, AutomationValidation, AutomationWaitReason, AutomationWebhookData, AutomationWithFlow, BEARER_PREFIX, BILLING_NOT_CONFIGURED_REASON, BillingAddons, BoundedAutomationFilter, BoundedSegmentFilter, COMPANY_GRANT_ROLES, COMPANY_ROLE_MAX_AGE_HOURS, CONTACT_PROPERTY_TYPES, CatalogPlan, CheckoutRequest, CheckoutSession, CompanyGrantRole, CompanyId, CompileMessage, CompileRequest, CompileResult, ConditionStep, Contact, ContactAutomationListQuery, ContactAutomationRun, ContactBouncedData, ContactErased, ContactListQuery, ContactPropertyDefinition, ContactPropertyKey, ContactPropertyParams, ContactPropertyType, ContactResubscribedData, ContactSubscribedData, ContactTaggedData, ContactUnsubscribedData, ContactUpdatedData, ContactUpsert, ContactUpsertResult, DATE_PASSED_ANSWERS, DEFAULT_INVITE_TTL_DAYS, DEFAULT_PAGE_LIMIT, DOCUMENT_SCHEMA_VERSIONS, DateOnly, DatePassedAnswer, DelayStep, DocumentSchemaVersion, type DraftInsertionProblem, EDITABLE_MAILING_STATUSES, ERROR_CODES, ERROR_STATUS, EXPORT_CONTENT_TYPES, EXPORT_FORMATS, EXPORT_WARNINGS_HEADER, EXPORT_WARNING_COUNT_HEADER, type EditableLanguage, Email, EmailStep, EmailStepLanguage, ErrorBody, type ErrorCode, ErrorCodeSchema, Event, EventCreate, EventListQuery, EventName, ExportFormat, ExtraSendingDomainsUpdate, FILTER_FIELD_OPERATORS, FILTER_OPERATORS, FilterCondition, FilterField, type FilterLeafProblem, FilterOperator, GotoStep, HEALTH_PATH, HOSTED_PAGE_LOCALES, type HttpMethod, ICLOUD_SMTP_POLICY, IDEMPOTENCY_KEY_HEADER, IDEMPOTENCY_KEY_MAX_LENGTH, IDEMPOTENCY_KEY_RETENTION_HOURS, IMPORT_FILE_FIELD, IMPORT_ROW_OUTCOMES, IMPORT_SKIP_REASONS, IMPORT_STATUSES, IMPORT_TERMINAL_STATUSES, INSERTION_PROBLEM_REASONS, INSERTION_TEXT_SLOTS, INVITE_REFUSAL_REASONS, INVITE_STATUSES, Id, IdParams, ImportColumnMapping, ImportCommitRequest, ImportFinishedData, ImportJob, ImportMappingRequest, ImportReport, ImportRow, ImportRowListQuery, ImportRowOutcome, ImportSkipReason, ImportStatus, ImportWarning, ImportedAsset, Insertion, InsertionChoice, InsertionChoiceKey, type InsertionChoiceMade, InsertionChoices, type InsertionEdit, InsertionName, type InsertionProblem, type InsertionProblemReason, InsertionText, Insertions, Invite, InviteAccept, InviteAccepted, InviteCreate, InviteCreated, InviteListQuery, type InviteRefusalReason, InviteStatus, JsonValue, LEGAL_TERMS_VERSION, LETTER_ONLY_MERGE_FIELDS, LETTER_RECIPIENT_REFUSAL, LIST_UNSUBSCRIBE_POST_VALUE, LOCALE_TAG_PATTERN, type LanguageDrafts, type LanguageTab, LocaleTag, MAILING_ACTIONS, MAILING_KINDS, MAILING_STATUSES, MAILING_TRANSITIONS, MAX_ALLOWED_ASSET_HOSTS, MAX_ASSET_BYTES, MAX_DELAY_SECONDS, MAX_DOCUMENT_BYTES, MAX_ENGAGEMENT_DAYS, MAX_EXPORT_WARNINGS_HEADER_LENGTH, MAX_EXTRA_SENDING_DOMAINS, MAX_FILTER_DEPTH, MAX_IMPORTED_REMOTE_IMAGES, MAX_IMPORT_BYTES, MAX_IMPORT_ROWS, MAX_IMPORT_URL_LENGTH, MAX_INSERTIONS, MAX_INSERTION_CHOICES, MAX_INSERTION_TEXT_LENGTH, MAX_INVITE_TTL_DAYS, MAX_IN_LIST, MAX_LETTER_RECIPIENTS, MAX_MERGE_DEFAULTS, MAX_MERGE_DEFAULT_LENGTH, MAX_MJML_DEPTH, MAX_MJML_ELEMENTS, MAX_MJML_IMPORT_BYTES, MAX_PAGE_LIMIT, MAX_PREHEADER_LENGTH, MAX_RECIPIENTS_PER_BATCH, MAX_RE_ENTRY_COOLDOWN_SECONDS, MAX_SAVED_SECTIONS, MAX_SPLIT_BRANCHES, MAX_STEPS, MAX_STEP_VISITS, MAX_SUBJECT_LENGTH, MAX_SYNC_COMPANIES, MAX_TEMPLATE_INPUTS, MAX_TEMPLATE_INPUTS_APP_LENGTH, MAX_TEMPLATE_INPUTS_SEEN, MAX_TEMPLATE_INPUT_EXAMPLE_LENGTH, MAX_TEMPLATE_INPUT_LABEL_LENGTH, MAX_TEMPLATE_INPUT_NOTE_LENGTH, MAX_TEMPLATE_INPUT_VALUES, MAX_TEMPLATE_TRANSLATIONS, MAX_TRIGGERS, MEMBER_ROLES, MEMBER_SOURCES, MERGE_FIELD_PATTERN, MESSAGE_OUTCOMES, MIN_SPLIT_BRANCHES, MJML_IMPORT_REFUSALS, Mailing, MailingAbWinnerSelectedData, MailingAction, MailingActionRequest, MailingAnalytics, MailingAudienceFromSegment, MailingCounts, MailingCreate, MailingExportQuery, MailingFinishedData, MailingKind, MailingLanguage, MailingLanguageReport, MailingLanguageStatus, MailingListQuery, MailingMerge, MailingMetadata, MailingResolveRequest, MailingResolveResult, MailingRetryFailedRequest, MailingScheduleFailedData, MailingScheduleRequest, MailingScheduledData, MailingSendRequest, MailingStartedData, MailingStatus, MailingSummary, MailingTestRequest, MailingTestResult, MailingUpdate, Member, MemberCompanySync, MemberCompanySyncResult, MemberCreate, MemberRole, MemberSource, MemberUpdate, MergeDefaultValue, MergeDefaults, MergeFieldName, type MergeFieldUse, type MergeValue, Message, MessageFailedData, MessageListQuery, MessageOutcome, MessageSentData, MessageSummary, MessageValues, type MissingInsertionText, type MjmlImportRefusal, NAME_ON_BROADCAST_REFUSAL, NotifyRecipients, NotifyStep, ON_BEHALF_OF_HEADER, ON_BEHALF_OF_MAX_LENGTH, OffsetDays, Ok, type OperationId, PLAN_FEATURES, PLAN_IDS, PREVIEW_EMPTY, PREVIEW_FILLED, PROVIDER_KINDS, type Page, PageQuery, type Personalization, type Phase, Plan, type PlanFeature, PlanFeatures, PlanId, PlanLimits, PortalRequest, PortalSession, type PreviewControl, Properties, Provider, ProviderCreate, ProviderEvents, ProviderEventsSecret, ProviderKind, ProviderPolicy, ProviderRejections, ProviderUpdate, ProviderUsage, ProviderVerifyResult, QuietHours, RECIPIENT_REJECTIONS, RECIPIENT_STATUSES, REQUEST_ID_HEADER, RESEND_EVENT_TYPES, RESERVED_MERGE_FIELDS, RESOLVE_PROBLEMS, RESOLVE_REJECTIONS, RETRYABLE_ERRORS, RETRY_AFTER_HEADER, RE_ENTRY_MODES, ReEntryMode, Recipient, RecipientBatch, RecipientBatchResult, RecipientInput, RecipientListQuery, RecipientStatus, RemoteImage, type RenamedPlacement, ResendSigningSecret, type ReservedMergeField, ResolveProblem, ResolvedRecipient, ResolvedValue, type RouteAccess, type RouteBody, type RouteDef, type RouteParams, type RouteQuery, type RouteResponse, type Routes, SENDING_DOMAIN_DNS_MODES, SENDING_DOMAIN_REGION, SENDING_DOMAIN_STATUSES, SERVICE_FILLED_MERGE_FIELDS, SIGNUP_FORM_FIELDS, SKIP_REASONS, SMTP_SECURITY, SUBJECT_HEADER, SUPPRESSION_REASONS, type SaveDemotion, SavedSection, SavedSectionBody, SavedSectionCreate, SavedSectionUpdate, Segment, SegmentCreate, SegmentFilter, SegmentPreview, SegmentPreviewRequest, SendingDomain, SendingDomainCreate, SendingDomainDnsMode, SendingDomainName, SendingDomainRecord, SendingDomainStatus, SendingDomainUpdate, SignupForm, SignupFormCreate, SignupFormEmbed, SignupFormTranslation, SignupSubmission, SkipReason, Slug, SplitBranchKey, SplitStep, StepId, type StepTarget, Subscription, Suppression, SuppressionCreate, SuppressionListQuery, SuppressionReason, TEMPLATE_INPUT_KINDS, TEMPLATE_INPUT_PROBLEM_REASONS, TEMPLATE_LANGUAGE_STATUSES, TEMPLATE_SORTS, TEMPLATE_SORT_DEFAULT_ORDER, TERMINAL_MAILING_STATUSES, TRANSACTIONAL_BLOCKING_REASONS, TRANSACTIONAL_NEEDS_LETTER_REFUSAL, TRANSACTIONAL_NEEDS_TEMPLATE_LOCALE_REFUSAL, TRANSACTIONAL_NOT_ALLOWED_REFUSAL, TRANSACTIONAL_UNSUBSCRIBE_URL_REFUSAL, TRUSTED_APPS, TRUSTED_APP_OPERATIONS, Tag, TagAssignment, TagCreate, Template, TemplateCompileRequest, TemplateCreate, TemplateCreatedData, TemplateDeleteQuery, TemplateDeletedData, TemplateDocument, TemplateExportQuery, TemplateImport, TemplateImportPreview, TemplateImportPreviewRequest, TemplateImportResult, TemplateInput, type TemplateInputKind, TemplateInputMap, TemplateInputName, type TemplateInputProblem, type TemplateInputProblemReason, TemplateInputSeen, TemplateInputSource, TemplateInputValue, TemplateInputs, TemplateInputsDeclaration, TemplateInputsDeclared, TemplateInputsSeen, TemplateLanguageStatus, TemplateListQuery, TemplatePreheader, type TemplateSort, TemplateSubject, TemplateSummary, TemplateTranslation, TemplateTranslations, TemplateUpdate, TemplateUpdatedData, TemplateVersion, TemplateVersionParams, TermsAcceptance, TermsStatus, TimeOfDay, Timestamp, TimezoneName, Topic, TopicCreate, TopicUpdate, TrackingSettings, TranslationInsertion, TranslationInsertions, TrustedApp, UNSUBSCRIBE_PATH_PREFIX, UNSUBSCRIBE_SOURCES, USAGE_METRICS, USAGE_WARNING_HEADER, USAGE_WARNING_RATIO, UnfilledLink, type UnsubscribeToken, type UnsubscribeTokenClaims, Usage, UsageMetric, UsageWarning, type UsageWarningHeaderEntry, VALUE_LAYERS, type ValidationContext, ValidationIssue, ValueLayer, type ValueSources, VariantAnalytics, type VerifyWebhookInput, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_SECONDS, WEBHOOK_SECRET_PREFIX, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_VERSION, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, WORKSPACE_HEADER, WebhookDelivery, WebhookDeliveryListQuery, WebhookDeliveryParams, WebhookDeliveryStatus, WebhookEndpoint, WebhookEndpointCreate, WebhookEndpointUpdate, WebhookEndpointWithSecret, WebhookEvent, type WebhookEventOf, WebhookEventType, WebhookStep, WebhookUrl, type WebhookVerifyFailure, type WebhookVerifyResult, Weekday, Workspace, WorkspaceCreate, WorkspaceMembership, WorkspaceMove, WorkspaceSettings, WorkspaceUpdate, acceptsIdempotencyKey, addInsertion, addInsertionChoice, addLanguageDraft, alignTranslationInsertions, alwaysWaits, automationFilterFamily, automationRoutes, billingRoutes, buildPath, buildTemplatePatch, canDeleteMailing, canTransition, canonicalLocale, choiceKeyProblem, chooseInsertion, cycles, defaultPreviewPick, defaultSettings, demoteForSave, demotedBySave, describeMissingTexts, draftDocument, draftInsertionProblems, draftsDirty, draftsFromTemplate, draftsPatch, editInsertionText, editLanguageDraft, editMainInsertionText, editMainInsertions, effectivePreviewPicks, emptyFlow, emptyLinkValues, errorBody, escapeMergeHtml, exportFilename, filterConditions, filterDepth, filterFieldFamily, filterLeafProblem, findMergeFields, formatExportWarningsHeader, formatUsageWarningHeader, foundationRoutes, insertionByProblem, insertionChoices, insertionCoverage, insertionInputs, insertionNameProblem, insertionProblems, insertionRefusalHint, insertionSlotLabel, insertionTextSlots, insertionTokens, insertionValue, inviteRoutes, isDayEntirelyPast, isPublishable, isRetryableError, keepLanguageDocument, languageInsertions, languageName, languageTabs, letterOnlyValues, linkTokens, mainInsertionText, matchLocale, matchRoute, missingInsertionTexts, missingRequiredMergeFields, normalizeChoiceKey, nowSeconds, operationsWithAccess, ownEntry, page, parseExportWarningsHeader, parseUsageWarningHeader, personalizeHtml, personalizeText, placementProblems, platformRoutes, previewControls, previewInsertions, previewPersonalization, primaryLanguage, printedFields, rawMergeValue, reachable, readyWithoutInsertions, readyWithoutSubject, rebaseDrafts, removeInsertion, removeInsertionChoice, removeLanguageDraft, renameInsertion, renameInsertionChecked, renameInsertionChoice, renameInsertionChoiceChecked, renameInsertionEverywhere, renameInsertionPlacements, renameTokenInDocument, renameTokenInText, resolveInsertions, resolveValue, restorePatch, routes, sameJson, sampleMergeValue, saveDemotions, sendingDomainRecordFullName, sendingRoutes, setInsertionBy, setInsertionFilled, setLanguageStatus, signWebhook, statusForError, stepTargets, storedTemplateLine, stronglyConnected, templateInputDrift, templateInputProblems, templateRoutes, testGroupSize, tightLoops, timingSafeEqualString, translationInsertionProblems, translationTextFromInput, triggerKey, trustedAppMayCall, unknownRefusedInsertions, unplacedInsertions, validateAutomation, valueNames, valuesRead, verifyWebhook };
70564
+ export { AB_TEST_STATUSES, AB_WINNER_METRICS, API_KEY_SCOPES, API_VERSION_PREFIX, ASSET_CONTENT_TYPES, ASSET_POLICIES, ASSET_UPLOAD_FIELD, AUDIT_ACTIONS, AUTHORIZATION_HEADER, AUTOMATION_DATE_TRIGGER_KINDS, AUTOMATION_END_REASONS, AUTOMATION_ENTRY_REFUSALS, AUTOMATION_FILTER_FIELD_OPERATORS, AUTOMATION_FILTER_FIELD_PATTERN, AUTOMATION_ISSUE_CODES, AUTOMATION_STATUSES, AUTOMATION_STEP_KINDS, AUTOMATION_TRIGGER_KINDS, AUTOMATION_WAIT_REASONS, AbTestConfig, AbTestState, AbVariant, AbWinnerRequest, AcceptTerms, ApiKey, ApiKeyCreate, ApiKeyCreated, ApiKeyScope, Asset, AssetContentType, AssetHost, AssetImport, AssetPolicy, AuditAction, AuditActor, AuditEntry, AuditQuery, Automation, AutomationCounts, AutomationCreate, type AutomationDateTriggerKind, AutomationDuplicateRequest, AutomationEndReason, AutomationEnrollRequest, AutomationEnrollResult, AutomationEnrollment, AutomationEntryRefusal, AutomationExitRunRequest, AutomationFilter, AutomationFilterCondition, AutomationFilterField, AutomationFlow, AutomationIssue, AutomationIssueCode, AutomationJourney, AutomationListQuery, AutomationPublishMove, AutomationPublishRequest, AutomationPublishResult, AutomationReport, AutomationRun, AutomationRunCompletedData, AutomationRunExitedData, AutomationRunFailedData, AutomationRunListQuery, AutomationRunParams, AutomationRunStartedData, AutomationRunStatus, AutomationSettings, AutomationStatus, AutomationStep, AutomationStepExecution, AutomationStepKind, AutomationStepParams, AutomationStepReport, AutomationSummary, AutomationTestEmailRequest, AutomationTrigger, AutomationTriggerKind, AutomationUpdate, AutomationValidateRequest, AutomationValidation, AutomationWaitReason, AutomationWebhookData, AutomationWithFlow, BEARER_PREFIX, BILLING_NOT_CONFIGURED_REASON, BillingAddons, BoundedAutomationFilter, BoundedSegmentFilter, COMPANY_GRANT_ROLES, COMPANY_ROLE_MAX_AGE_HOURS, CONTACT_PROPERTY_TYPES, CatalogPlan, CheckoutRequest, CheckoutSession, CompanyGrantRole, CompanyId, CompileMessage, CompileRequest, CompileResult, ConditionStep, Contact, ContactAutomationListQuery, ContactAutomationRun, ContactBouncedData, ContactErased, ContactListQuery, ContactPropertyDefinition, ContactPropertyKey, ContactPropertyParams, ContactPropertyType, ContactResubscribedData, ContactSubscribedData, ContactTaggedData, ContactUnsubscribedData, ContactUpdatedData, ContactUpsert, ContactUpsertResult, DATE_PASSED_ANSWERS, DEFAULT_INVITE_TTL_DAYS, DEFAULT_PAGE_LIMIT, DOCUMENT_SCHEMA_VERSIONS, DOMAIN_BUYING_BLOCKS, DOMAIN_BUYING_NOT_CONFIGURED_REASON, DOMAIN_ORDER_KINDS, DOMAIN_ORDER_STATES, DOMAIN_PRICE_CHANGED_REASON, DOMAIN_UNAVAILABLE_REASONS, DateOnly, DatePassedAnswer, DelayStep, DocumentSchemaVersion, DomainBuyingBlock, DomainOffer, DomainOrder, DomainOrderCreate, DomainOrderKind, DomainOrderState, DomainRegistrant, DomainSearchQuery, DomainSearchResult, DomainUnavailableReason, type DraftInsertionProblem, EDITABLE_MAILING_STATUSES, ERROR_CODES, ERROR_STATUS, EXPORT_CONTENT_TYPES, EXPORT_FORMATS, EXPORT_WARNINGS_HEADER, EXPORT_WARNING_COUNT_HEADER, type EditableLanguage, Email, EmailStep, EmailStepLanguage, ErrorBody, type ErrorCode, ErrorCodeSchema, Event, EventCreate, EventListQuery, EventName, ExportFormat, ExtraSendingDomainsUpdate, FILTER_FIELD_OPERATORS, FILTER_OPERATORS, FilterCondition, FilterField, type FilterLeafProblem, FilterOperator, GotoStep, HEALTH_PATH, HOSTED_PAGE_LOCALES, type HttpMethod, ICLOUD_SMTP_POLICY, IDEMPOTENCY_KEY_HEADER, IDEMPOTENCY_KEY_MAX_LENGTH, IDEMPOTENCY_KEY_RETENTION_HOURS, IMPORT_FILE_FIELD, IMPORT_ROW_OUTCOMES, IMPORT_SKIP_REASONS, IMPORT_STATUSES, IMPORT_TERMINAL_STATUSES, INSERTION_PROBLEM_REASONS, INSERTION_TEXT_SLOTS, INVITE_REFUSAL_REASONS, INVITE_STATUSES, Id, IdParams, ImportColumnMapping, ImportCommitRequest, ImportFinishedData, ImportJob, ImportMappingRequest, ImportReport, ImportRow, ImportRowListQuery, ImportRowOutcome, ImportSkipReason, ImportStatus, ImportWarning, ImportedAsset, Insertion, InsertionChoice, InsertionChoiceKey, type InsertionChoiceMade, InsertionChoices, type InsertionEdit, InsertionName, type InsertionProblem, type InsertionProblemReason, InsertionText, Insertions, Invite, InviteAccept, InviteAccepted, InviteCreate, InviteCreated, InviteListQuery, type InviteRefusalReason, InviteStatus, JsonValue, LEGAL_TERMS_VERSION, LETTER_ONLY_MERGE_FIELDS, LETTER_RECIPIENT_REFUSAL, LIST_UNSUBSCRIBE_POST_VALUE, LOCALE_TAG_PATTERN, type LanguageDrafts, type LanguageTab, LocaleTag, MAILING_ACTIONS, MAILING_KINDS, MAILING_STATUSES, MAILING_TRANSITIONS, MAX_ALLOWED_ASSET_HOSTS, MAX_ASSET_BYTES, MAX_DELAY_SECONDS, MAX_DOCUMENT_BYTES, MAX_DOMAIN_ORDERS_PER_DAY, MAX_ENGAGEMENT_DAYS, MAX_EXPORT_WARNINGS_HEADER_LENGTH, MAX_EXTRA_SENDING_DOMAINS, MAX_FILTER_DEPTH, MAX_IMPORTED_REMOTE_IMAGES, MAX_IMPORT_BYTES, MAX_IMPORT_ROWS, MAX_IMPORT_URL_LENGTH, MAX_INSERTIONS, MAX_INSERTION_CHOICES, MAX_INSERTION_TEXT_LENGTH, MAX_INVITE_TTL_DAYS, MAX_IN_LIST, MAX_LETTER_RECIPIENTS, MAX_MERGE_DEFAULTS, MAX_MERGE_DEFAULT_LENGTH, MAX_MJML_DEPTH, MAX_MJML_ELEMENTS, MAX_MJML_IMPORT_BYTES, MAX_PAGE_LIMIT, MAX_PREHEADER_LENGTH, MAX_RECIPIENTS_PER_BATCH, MAX_RE_ENTRY_COOLDOWN_SECONDS, MAX_SAVED_SECTIONS, MAX_SPLIT_BRANCHES, MAX_STEPS, MAX_STEP_VISITS, MAX_SUBJECT_LENGTH, MAX_SYNC_COMPANIES, MAX_TEMPLATE_INPUTS, MAX_TEMPLATE_INPUTS_APP_LENGTH, MAX_TEMPLATE_INPUTS_SEEN, MAX_TEMPLATE_INPUT_EXAMPLE_LENGTH, MAX_TEMPLATE_INPUT_LABEL_LENGTH, MAX_TEMPLATE_INPUT_NOTE_LENGTH, MAX_TEMPLATE_INPUT_VALUES, MAX_TEMPLATE_TRANSLATIONS, MAX_TRIGGERS, MEMBER_ROLES, MEMBER_SOURCES, MERGE_FIELD_PATTERN, MESSAGE_OUTCOMES, MIN_SPLIT_BRANCHES, MJML_IMPORT_REFUSALS, Mailing, MailingAbWinnerSelectedData, MailingAction, MailingActionRequest, MailingAnalytics, MailingAudienceFromSegment, MailingCounts, MailingCreate, MailingExportQuery, MailingFinishedData, MailingKind, MailingLanguage, MailingLanguageReport, MailingLanguageStatus, MailingListQuery, MailingMerge, MailingMetadata, MailingResolveRequest, MailingResolveResult, MailingRetryFailedRequest, MailingScheduleFailedData, MailingScheduleRequest, MailingScheduledData, MailingSendRequest, MailingStartedData, MailingStatus, MailingSummary, MailingTestRequest, MailingTestResult, MailingUpdate, Member, MemberCompanySync, MemberCompanySyncResult, MemberCreate, MemberRole, MemberSource, MemberUpdate, MergeDefaultValue, MergeDefaults, MergeFieldName, type MergeFieldUse, type MergeValue, Message, MessageFailedData, MessageListQuery, MessageOutcome, MessageSentData, MessageSummary, MessageValues, type MissingInsertionText, type MjmlImportRefusal, NAME_ON_BROADCAST_REFUSAL, NotifyRecipients, NotifyStep, ON_BEHALF_OF_HEADER, ON_BEHALF_OF_MAX_LENGTH, OffsetDays, Ok, type OperationId, PLAN_FEATURES, PLAN_IDS, PREVIEW_EMPTY, PREVIEW_FILLED, PROVIDER_KINDS, type Page, PageQuery, type Personalization, type Phase, Plan, type PlanFeature, PlanFeatures, PlanId, PlanLimits, PortalRequest, PortalSession, type PreviewControl, Properties, Provider, ProviderCreate, ProviderEvents, ProviderEventsSecret, ProviderKind, ProviderPolicy, ProviderRejections, ProviderUpdate, ProviderUsage, ProviderVerifyResult, QuietHours, RECIPIENT_REJECTIONS, RECIPIENT_STATUSES, REGISTRY_PHONE, REQUEST_ID_HEADER, RESEND_EVENT_TYPES, RESERVED_MERGE_FIELDS, RESOLVE_PROBLEMS, RESOLVE_REJECTIONS, RETRYABLE_ERRORS, RETRY_AFTER_HEADER, RE_ENTRY_MODES, ReEntryMode, Recipient, RecipientBatch, RecipientBatchResult, RecipientInput, RecipientListQuery, RecipientStatus, RemoteImage, type RenamedPlacement, ResendSigningSecret, type ReservedMergeField, ResolveProblem, ResolvedRecipient, ResolvedValue, type RouteAccess, type RouteBody, type RouteDef, type RouteParams, type RouteQuery, type RouteResponse, type Routes, SENDING_DOMAIN_DNS_MODES, SENDING_DOMAIN_REGION, SENDING_DOMAIN_STATUSES, SERVICE_FILLED_MERGE_FIELDS, SIGNUP_FORM_FIELDS, SKIP_REASONS, SMTP_SECURITY, SUBJECT_HEADER, SUPPRESSION_REASONS, type SaveDemotion, SavedSection, SavedSectionBody, SavedSectionCreate, SavedSectionUpdate, Segment, SegmentCreate, SegmentFilter, SegmentPreview, SegmentPreviewRequest, SendingDomain, SendingDomainCreate, SendingDomainDnsMode, SendingDomainName, SendingDomainRecord, SendingDomainStatus, SendingDomainUpdate, SignupForm, SignupFormCreate, SignupFormEmbed, SignupFormTranslation, SignupSubmission, SkipReason, Slug, SplitBranchKey, SplitStep, StepId, type StepTarget, Subscription, Suppression, SuppressionCreate, SuppressionListQuery, SuppressionReason, TEMPLATE_INPUT_KINDS, TEMPLATE_INPUT_PROBLEM_REASONS, TEMPLATE_LANGUAGE_STATUSES, TEMPLATE_SORTS, TEMPLATE_SORT_DEFAULT_ORDER, TERMINAL_MAILING_STATUSES, TRANSACTIONAL_BLOCKING_REASONS, TRANSACTIONAL_NEEDS_LETTER_REFUSAL, TRANSACTIONAL_NEEDS_TEMPLATE_LOCALE_REFUSAL, TRANSACTIONAL_NOT_ALLOWED_REFUSAL, TRANSACTIONAL_UNSUBSCRIBE_URL_REFUSAL, TRUSTED_APPS, TRUSTED_APP_OPERATIONS, Tag, TagAssignment, TagCreate, Template, TemplateCompileRequest, TemplateCreate, TemplateCreatedData, TemplateDeleteQuery, TemplateDeletedData, TemplateDocument, TemplateExportQuery, TemplateImport, TemplateImportPreview, TemplateImportPreviewRequest, TemplateImportResult, TemplateInput, type TemplateInputKind, TemplateInputMap, TemplateInputName, type TemplateInputProblem, type TemplateInputProblemReason, TemplateInputSeen, TemplateInputSource, TemplateInputValue, TemplateInputs, TemplateInputsDeclaration, TemplateInputsDeclared, TemplateInputsSeen, TemplateLanguageStatus, TemplateListQuery, TemplatePreheader, type TemplateSort, TemplateSubject, TemplateSummary, TemplateTranslation, TemplateTranslations, TemplateUpdate, TemplateUpdatedData, TemplateVersion, TemplateVersionParams, TermsAcceptance, TermsStatus, TimeOfDay, Timestamp, TimezoneName, Topic, TopicCreate, TopicUpdate, TrackingSettings, TranslationInsertion, TranslationInsertions, TrustedApp, UNSUBSCRIBE_PATH_PREFIX, UNSUBSCRIBE_SOURCES, USAGE_METRICS, USAGE_WARNING_HEADER, USAGE_WARNING_RATIO, UnfilledLink, type UnsubscribeToken, type UnsubscribeTokenClaims, Usage, UsageMetric, UsageWarning, type UsageWarningHeaderEntry, VALUE_LAYERS, type ValidationContext, ValidationIssue, ValueLayer, type ValueSources, VariantAnalytics, type VerifyWebhookInput, WEBHOOK_DELIVERY_STATUSES, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_SECONDS, WEBHOOK_SECRET_PREFIX, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_SIGNATURE_VERSION, WEBHOOK_TIMESTAMP_HEADER, WEBHOOK_TOLERANCE_SECONDS, WORKSPACE_HEADER, WebhookDelivery, WebhookDeliveryListQuery, WebhookDeliveryParams, WebhookDeliveryStatus, WebhookEndpoint, WebhookEndpointCreate, WebhookEndpointUpdate, WebhookEndpointWithSecret, WebhookEvent, type WebhookEventOf, WebhookEventType, WebhookStep, WebhookUrl, type WebhookVerifyFailure, type WebhookVerifyResult, Weekday, Workspace, WorkspaceCreate, WorkspaceMembership, WorkspaceMove, WorkspaceSettings, WorkspaceUpdate, acceptsIdempotencyKey, addInsertion, addInsertionChoice, addLanguageDraft, alignTranslationInsertions, alwaysWaits, automationFilterFamily, automationRoutes, billingRoutes, buildPath, buildTemplatePatch, canDeleteMailing, canTransition, canonicalLocale, choiceKeyProblem, chooseInsertion, cycles, defaultPreviewPick, defaultSettings, demoteForSave, demotedBySave, describeMissingTexts, domainBuyingRoutes, draftDocument, draftInsertionProblems, draftsDirty, draftsFromTemplate, draftsPatch, editInsertionText, editLanguageDraft, editMainInsertionText, editMainInsertions, effectivePreviewPicks, emptyFlow, emptyLinkValues, errorBody, escapeMergeHtml, exportFilename, filterConditions, filterDepth, filterFieldFamily, filterLeafProblem, findMergeFields, formatExportWarningsHeader, formatUsageWarningHeader, foundationRoutes, insertionByProblem, insertionChoices, insertionCoverage, insertionInputs, insertionNameProblem, insertionProblems, insertionRefusalHint, insertionSlotLabel, insertionTextSlots, insertionTokens, insertionValue, inviteRoutes, isDayEntirelyPast, isPublishable, isRetryableError, keepLanguageDocument, languageInsertions, languageName, languageTabs, letterOnlyValues, linkTokens, mainInsertionText, matchLocale, matchRoute, missingInsertionTexts, missingRequiredMergeFields, normalizeChoiceKey, normalizePhone, nowSeconds, operationsWithAccess, ownEntry, page, parseExportWarningsHeader, parseUsageWarningHeader, personalizeHtml, personalizeText, placementProblems, platformRoutes, previewControls, previewInsertions, previewPersonalization, primaryLanguage, printedFields, rawMergeValue, reachable, readyWithoutInsertions, readyWithoutSubject, rebaseDrafts, removeInsertion, removeInsertionChoice, removeLanguageDraft, renameInsertion, renameInsertionChecked, renameInsertionChoice, renameInsertionChoiceChecked, renameInsertionEverywhere, renameInsertionPlacements, renameTokenInDocument, renameTokenInText, resolveInsertions, resolveValue, restorePatch, routes, sameJson, sampleMergeValue, saveDemotions, sendingDomainRecordFullName, sendingRoutes, setInsertionBy, setInsertionFilled, setLanguageStatus, signWebhook, statusForError, stepTargets, storedTemplateLine, stronglyConnected, templateInputDrift, templateInputProblems, templateRoutes, testGroupSize, tightLoops, timingSafeEqualString, translationInsertionProblems, translationTextFromInput, triggerKey, trustedAppMayCall, unknownRefusedInsertions, unplacedInsertions, validateAutomation, valueNames, valuesRead, verifyWebhook };