samva 0.6.0 → 0.7.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.
Files changed (50) hide show
  1. package/README.md +2 -2
  2. package/dist/{categories-4u9Az4No.js → categories-DvsHUJtX.js} +9 -1
  3. package/dist/client/sdk.gen.d.ts +91 -18
  4. package/dist/client/types.gen.d.ts +510 -94
  5. package/dist/{client-DCM6U0-I.js → client-5O8KsY5Z.js} +490 -165
  6. package/dist/{client-attribution-DYUSAa76.js → client-attribution-27MNycCV.js} +2 -2
  7. package/dist/effect/analytics.js +1 -1
  8. package/dist/effect/api-keys.js +1 -1
  9. package/dist/effect/attachments.js +1 -1
  10. package/dist/effect/brands.d.ts +212 -0
  11. package/dist/effect/brands.js +24 -0
  12. package/dist/effect/campaigns.d.ts +1 -1
  13. package/dist/effect/campaigns.js +1 -1
  14. package/dist/effect/categories.js +1 -1
  15. package/dist/effect/client.js +1 -1
  16. package/dist/effect/contact-groups.js +1 -1
  17. package/dist/effect/contacts.js +1 -1
  18. package/dist/effect/conversations.d.ts +12 -3
  19. package/dist/effect/conversations.js +1 -1
  20. package/dist/effect/custom-fields.js +1 -1
  21. package/dist/effect/email.d.ts +17 -6
  22. package/dist/effect/email.js +2 -2
  23. package/dist/effect/generated-metadata.d.ts +8 -0
  24. package/dist/effect/generated.d.ts +2742 -1810
  25. package/dist/effect/index.d.ts +2 -2
  26. package/dist/effect/index.js +4 -4
  27. package/dist/effect/internal/operation.d.ts +10 -4
  28. package/dist/effect/media.js +1 -1
  29. package/dist/effect/messages.d.ts +22 -6
  30. package/dist/effect/messages.js +1 -1
  31. package/dist/effect/operations.js +1 -1
  32. package/dist/effect/organizations.d.ts +0 -264
  33. package/dist/effect/organizations.js +1 -1
  34. package/dist/effect/retry.js +1 -1
  35. package/dist/effect/scheduled-messages.js +1 -1
  36. package/dist/effect/templates.d.ts +230 -0
  37. package/dist/effect/templates.js +7 -3
  38. package/dist/effect/unsubscribe-groups.js +1 -1
  39. package/dist/effect/webhooks.js +2 -2
  40. package/dist/index.js +2 -2
  41. package/dist/{operation-02YX3hY9.js → operation-Cb5V9FJ7.js} +29 -5
  42. package/dist/promises/errors.gen.d.ts +22 -4
  43. package/dist/promises/index.d.ts +3 -3
  44. package/dist/promises/index.js +2 -2
  45. package/dist/promises/types.gen.d.ts +1 -1
  46. package/dist/{promises-8MaPNAam.js → promises-C2yyw-pf.js} +329 -36
  47. package/dist/service-map.d.ts +36 -6
  48. package/package.json +7 -7
  49. package/dist/effect/design.d.ts +0 -209
  50. package/dist/effect/design.js +0 -13
@@ -1,9 +1,9 @@
1
1
  //#endregion
2
2
  //#region src/client-attribution.ts
3
- const SDK_VERSION = "0.6.0";
3
+ const SDK_VERSION = "0.7.0";
4
4
  const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
5
5
  const clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
6
6
  //#endregion
7
7
  export { clientAttribution as n, CLIENT_ATTRIBUTION_HEADER as t };
8
8
 
9
- //# sourceMappingURL=client-attribution-DYUSAa76.js.map
9
+ //# sourceMappingURL=client-attribution-27MNycCV.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/analytics.ts
4
4
  var analytics_exports = /* @__PURE__ */ __exportAll({
5
5
  exportData: () => exportData,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/api-keys.ts
4
4
  var api_keys_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/attachments.ts
4
4
  var attachments_exports = /* @__PURE__ */ __exportAll({
5
5
  downloadUrl: () => downloadUrl,
@@ -0,0 +1,212 @@
1
+ export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated";
2
+ export declare const list: (_?: never) => import("effect/Effect").Effect<{
3
+ readonly items: readonly {
4
+ readonly id: string & import("effect/Brand").Brand<"BrandId">;
5
+ readonly slug: string;
6
+ readonly name: string;
7
+ readonly isDefault: boolean;
8
+ readonly css: string;
9
+ readonly assets: {
10
+ readonly logoUrl?: string | null;
11
+ readonly logoDarkUrl?: string | null;
12
+ readonly iconUrl?: string | null;
13
+ };
14
+ readonly footer: {
15
+ readonly companyName?: string | null;
16
+ readonly address?: {
17
+ readonly street1: string;
18
+ readonly street2?: string | null;
19
+ readonly city: string;
20
+ readonly region: string;
21
+ readonly postalCode: string;
22
+ readonly country: string;
23
+ } | null;
24
+ readonly socialLinks?: readonly {
25
+ readonly label: string;
26
+ readonly url: string;
27
+ }[] | null;
28
+ };
29
+ readonly digest: string;
30
+ readonly createdAt: string;
31
+ readonly updatedAt: string;
32
+ }[];
33
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
34
+ export declare const create: (input: {
35
+ readonly slug: string;
36
+ readonly name: string;
37
+ readonly css?: string | null | undefined;
38
+ readonly assets?: {
39
+ readonly logoUrl?: string | null | undefined;
40
+ readonly logoDarkUrl?: string | null | undefined;
41
+ readonly iconUrl?: string | null | undefined;
42
+ } | null | undefined;
43
+ readonly footer?: {
44
+ readonly companyName?: string | null | undefined;
45
+ readonly address?: {
46
+ readonly street1: string;
47
+ readonly street2?: string | null | undefined;
48
+ readonly city: string;
49
+ readonly region: string;
50
+ readonly postalCode: string;
51
+ readonly country: string;
52
+ } | null | undefined;
53
+ readonly socialLinks?: readonly {
54
+ readonly label: string;
55
+ readonly url: string;
56
+ }[] | null | undefined;
57
+ } | null | undefined;
58
+ readonly isDefault?: boolean | null | undefined;
59
+ }) => import("effect/Effect").Effect<{
60
+ readonly id: string & import("effect/Brand").Brand<"BrandId">;
61
+ readonly slug: string;
62
+ readonly name: string;
63
+ readonly isDefault: boolean;
64
+ readonly css: string;
65
+ readonly assets: {
66
+ readonly logoUrl?: string | null;
67
+ readonly logoDarkUrl?: string | null;
68
+ readonly iconUrl?: string | null;
69
+ };
70
+ readonly footer: {
71
+ readonly companyName?: string | null;
72
+ readonly address?: {
73
+ readonly street1: string;
74
+ readonly street2?: string | null;
75
+ readonly city: string;
76
+ readonly region: string;
77
+ readonly postalCode: string;
78
+ readonly country: string;
79
+ } | null;
80
+ readonly socialLinks?: readonly {
81
+ readonly label: string;
82
+ readonly url: string;
83
+ }[] | null;
84
+ };
85
+ readonly digest: string;
86
+ readonly createdAt: string;
87
+ readonly updatedAt: string;
88
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
89
+ export declare const get: (input: {
90
+ readonly slug: string;
91
+ }) => import("effect/Effect").Effect<{
92
+ readonly id: string & import("effect/Brand").Brand<"BrandId">;
93
+ readonly slug: string;
94
+ readonly name: string;
95
+ readonly isDefault: boolean;
96
+ readonly css: string;
97
+ readonly assets: {
98
+ readonly logoUrl?: string | null;
99
+ readonly logoDarkUrl?: string | null;
100
+ readonly iconUrl?: string | null;
101
+ };
102
+ readonly footer: {
103
+ readonly companyName?: string | null;
104
+ readonly address?: {
105
+ readonly street1: string;
106
+ readonly street2?: string | null;
107
+ readonly city: string;
108
+ readonly region: string;
109
+ readonly postalCode: string;
110
+ readonly country: string;
111
+ } | null;
112
+ readonly socialLinks?: readonly {
113
+ readonly label: string;
114
+ readonly url: string;
115
+ }[] | null;
116
+ };
117
+ readonly digest: string;
118
+ readonly createdAt: string;
119
+ readonly updatedAt: string;
120
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
121
+ export declare const update: (input: {
122
+ readonly slug: string;
123
+ readonly newSlug?: string | null | undefined;
124
+ readonly name?: string | null | undefined;
125
+ readonly css?: string | null | undefined;
126
+ readonly assets?: {
127
+ readonly logoUrl?: string | null | undefined;
128
+ readonly logoDarkUrl?: string | null | undefined;
129
+ readonly iconUrl?: string | null | undefined;
130
+ } | null | undefined;
131
+ readonly footer?: {
132
+ readonly companyName?: string | null | undefined;
133
+ readonly address?: {
134
+ readonly street1: string;
135
+ readonly street2?: string | null | undefined;
136
+ readonly city: string;
137
+ readonly region: string;
138
+ readonly postalCode: string;
139
+ readonly country: string;
140
+ } | null | undefined;
141
+ readonly socialLinks?: readonly {
142
+ readonly label: string;
143
+ readonly url: string;
144
+ }[] | null | undefined;
145
+ } | null | undefined;
146
+ }) => import("effect/Effect").Effect<{
147
+ readonly id: string & import("effect/Brand").Brand<"BrandId">;
148
+ readonly slug: string;
149
+ readonly name: string;
150
+ readonly isDefault: boolean;
151
+ readonly css: string;
152
+ readonly assets: {
153
+ readonly logoUrl?: string | null;
154
+ readonly logoDarkUrl?: string | null;
155
+ readonly iconUrl?: string | null;
156
+ };
157
+ readonly footer: {
158
+ readonly companyName?: string | null;
159
+ readonly address?: {
160
+ readonly street1: string;
161
+ readonly street2?: string | null;
162
+ readonly city: string;
163
+ readonly region: string;
164
+ readonly postalCode: string;
165
+ readonly country: string;
166
+ } | null;
167
+ readonly socialLinks?: readonly {
168
+ readonly label: string;
169
+ readonly url: string;
170
+ }[] | null;
171
+ };
172
+ readonly digest: string;
173
+ readonly createdAt: string;
174
+ readonly updatedAt: string;
175
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
176
+ export declare const remove: (input: {
177
+ readonly slug: string;
178
+ }) => import("effect/Effect").Effect<{
179
+ readonly success: boolean;
180
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
181
+ export declare const setDefault: (input: {
182
+ readonly slug: string;
183
+ }) => import("effect/Effect").Effect<{
184
+ readonly id: string & import("effect/Brand").Brand<"BrandId">;
185
+ readonly slug: string;
186
+ readonly name: string;
187
+ readonly isDefault: boolean;
188
+ readonly css: string;
189
+ readonly assets: {
190
+ readonly logoUrl?: string | null;
191
+ readonly logoDarkUrl?: string | null;
192
+ readonly iconUrl?: string | null;
193
+ };
194
+ readonly footer: {
195
+ readonly companyName?: string | null;
196
+ readonly address?: {
197
+ readonly street1: string;
198
+ readonly street2?: string | null;
199
+ readonly city: string;
200
+ readonly region: string;
201
+ readonly postalCode: string;
202
+ readonly country: string;
203
+ } | null;
204
+ readonly socialLinks?: readonly {
205
+ readonly label: string;
206
+ readonly url: string;
207
+ }[] | null;
208
+ };
209
+ readonly digest: string;
210
+ readonly createdAt: string;
211
+ readonly updatedAt: string;
212
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
@@ -0,0 +1,24 @@
1
+ import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
+ import { O as UpdateBrand, u as CreateBrand } from "../client-5O8KsY5Z.js";
4
+ //#region src/effect/brands.ts
5
+ var brands_exports = /* @__PURE__ */ __exportAll({
6
+ CreatePayload: () => CreateBrand,
7
+ UpdatePayload: () => UpdateBrand,
8
+ create: () => create,
9
+ get: () => get,
10
+ list: () => list,
11
+ remove: () => remove,
12
+ setDefault: () => setDefault,
13
+ update: () => update
14
+ });
15
+ const list = make("brandsList");
16
+ const create = make("brandsCreate");
17
+ const get = make("brandsGet");
18
+ const update = make("brandsUpdate");
19
+ const remove = make("brandsRemove");
20
+ const setDefault = make("brandsSetDefault");
21
+ //#endregion
22
+ export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload, create, get, list, remove, setDefault, brands_exports as t, update };
23
+
24
+ //# sourceMappingURL=brands.js.map
@@ -1036,7 +1036,7 @@ export declare const scheduleRun: (input: {
1036
1036
  readonly memberRole: string;
1037
1037
  readonly createdAt: string;
1038
1038
  readonly updatedAt: string;
1039
- }, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1039
+ }, import("./generated").BrandAddressRequiredError | import("./generated").CampaignFooterRequiredError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1040
1040
  export declare const getRun: (input: {
1041
1041
  readonly id: string;
1042
1042
  readonly runId: string;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/campaigns.ts
4
4
  var campaigns_exports = /* @__PURE__ */ __exportAll({
5
5
  archive: () => archive,
@@ -1,2 +1,2 @@
1
- import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-4u9Az4No.js";
1
+ import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-DvsHUJtX.js";
2
2
  export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-DCM6U0-I.js";
2
+ import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-5O8KsY5Z.js";
3
3
  //#region src/effect/client.ts
4
4
  var client_exports = /* @__PURE__ */ __exportAll({
5
5
  Service: () => Service,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/contact-groups.ts
4
4
  var contact_groups_exports = /* @__PURE__ */ __exportAll({
5
5
  addMembers: () => addMembers,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/contacts.ts
4
4
  var contacts_exports = /* @__PURE__ */ __exportAll({
5
5
  bulkDelete: () => bulkDelete,
@@ -740,7 +740,8 @@ export declare const listMessages: ((input: {
740
740
  readonly scheduling: {
741
741
  readonly dueAt: string;
742
742
  readonly expiresAt: string;
743
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
743
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
744
+ readonly reviewExpectedAt: string | null;
744
745
  } | null;
745
746
  readonly id: string;
746
747
  readonly messageId: string;
@@ -809,6 +810,8 @@ export declare const listMessages: ((input: {
809
810
  readonly createdAt: string;
810
811
  readonly updatedAt: string;
811
812
  }[];
813
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
814
+ readonly reviewExpectedAt: string | null;
812
815
  }[];
813
816
  readonly pagination: {
814
817
  readonly page: number;
@@ -939,7 +942,8 @@ export declare const listMessages: ((input: {
939
942
  readonly scheduling: {
940
943
  readonly dueAt: string;
941
944
  readonly expiresAt: string;
942
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
945
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
946
+ readonly reviewExpectedAt: string | null;
943
947
  } | null;
944
948
  readonly id: string;
945
949
  readonly messageId: string;
@@ -1008,6 +1012,8 @@ export declare const listMessages: ((input: {
1008
1012
  readonly createdAt: string;
1009
1013
  readonly updatedAt: string;
1010
1014
  }[];
1015
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1016
+ readonly reviewExpectedAt: string | null;
1011
1017
  }[];
1012
1018
  readonly pagination: {
1013
1019
  readonly page: number;
@@ -1137,7 +1143,8 @@ export declare const listMessages: ((input: {
1137
1143
  readonly scheduling: {
1138
1144
  readonly dueAt: string;
1139
1145
  readonly expiresAt: string;
1140
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1146
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1147
+ readonly reviewExpectedAt: string | null;
1141
1148
  } | null;
1142
1149
  readonly id: string;
1143
1150
  readonly messageId: string;
@@ -1206,6 +1213,8 @@ export declare const listMessages: ((input: {
1206
1213
  readonly createdAt: string;
1207
1214
  readonly updatedAt: string;
1208
1215
  }[];
1216
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
1217
+ readonly reviewExpectedAt: string | null;
1209
1218
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
1210
1219
  };
1211
1220
  export declare const update: (input: {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/conversations.ts
4
4
  var conversations_exports = /* @__PURE__ */ __exportAll({
5
5
  addContacts: () => addContacts,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-02YX3hY9.js";
2
+ import { n as make } from "../operation-Cb5V9FJ7.js";
3
3
  //#region src/effect/custom-fields.ts
4
4
  var custom_fields_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,
@@ -118,7 +118,8 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
118
118
  readonly scheduling: {
119
119
  readonly dueAt: string;
120
120
  readonly expiresAt: string;
121
- readonly waitReason: "campaign-paused" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
121
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
122
+ readonly reviewExpectedAt: string | null;
122
123
  } | null;
123
124
  readonly id: string;
124
125
  readonly messageId: string;
@@ -187,6 +188,8 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
187
188
  readonly createdAt: string;
188
189
  readonly updatedAt: string;
189
190
  }[];
191
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
192
+ readonly reviewExpectedAt: string | null;
190
193
  }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").DeliveryUnavailableError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
191
194
  export declare const getTrackingDefaults: (_?: never) => import("effect/Effect").Effect<{
192
195
  readonly opens: boolean;
@@ -221,6 +224,7 @@ export declare const updateRecipientTrackingPreference: (input: {
221
224
  export declare const listDomains: ((input?: {
222
225
  readonly page?: string | null | undefined;
223
226
  readonly limit?: string | null | undefined;
227
+ readonly sendable?: string | null | undefined;
224
228
  } | undefined) => import("effect/Effect").Effect<{
225
229
  readonly items: readonly {
226
230
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -250,6 +254,7 @@ export declare const listDomains: ((input?: {
250
254
  readonly pages: (input?: {
251
255
  readonly page?: string | null | undefined;
252
256
  readonly limit?: string | null | undefined;
257
+ readonly sendable?: string | null | undefined;
253
258
  } | undefined) => import("effect/Stream").Stream<{
254
259
  readonly items: readonly {
255
260
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -279,6 +284,7 @@ export declare const listDomains: ((input?: {
279
284
  readonly items: (input?: {
280
285
  readonly page?: string | null | undefined;
281
286
  readonly limit?: string | null | undefined;
287
+ readonly sendable?: string | null | undefined;
282
288
  } | undefined) => import("effect/Stream").Stream<{
283
289
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
284
290
  readonly domain: string;
@@ -435,7 +441,7 @@ export declare const getDomainVerification: (input: {
435
441
  readonly staleAt: string | null;
436
442
  readonly nextRetryAt: string | null;
437
443
  readonly status: "blocked" | "ready" | "unknown";
438
- readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-stale" | "sending-status-unknown";
444
+ readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-unknown";
439
445
  };
440
446
  readonly dmarc: {
441
447
  readonly status: "invalid" | "missing" | "multiple" | "unknown" | "valid";
@@ -550,7 +556,7 @@ export declare const advanceDomainVerification: (input: {
550
556
  readonly staleAt: string | null;
551
557
  readonly nextRetryAt: string | null;
552
558
  readonly status: "blocked" | "ready" | "unknown";
553
- readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-stale" | "sending-status-unknown";
559
+ readonly reason: "domain-not-ready" | "domain-observation-stale" | "operator-paused" | "ready" | "sending-paused" | "sending-status-unknown";
554
560
  };
555
561
  readonly dmarc: {
556
562
  readonly status: "invalid" | "missing" | "multiple" | "unknown" | "valid";
@@ -642,6 +648,7 @@ export declare const updateDomainConfig: (input: {
642
648
  readonly replyTo?: readonly string[] | null | undefined;
643
649
  readonly unsubscribeGroupId?: string | null | undefined;
644
650
  readonly footerEnabled?: boolean | null | undefined;
651
+ readonly brandSlug?: string | null | undefined;
645
652
  }) => import("effect/Effect").Effect<{
646
653
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
647
654
  readonly openTracking: boolean | null;
@@ -649,6 +656,7 @@ export declare const updateDomainConfig: (input: {
649
656
  readonly replyTo: readonly string[] | null;
650
657
  readonly unsubscribeGroupId: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
651
658
  readonly footerEnabled: boolean | null;
659
+ readonly brandSlug: string | null;
652
660
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
653
661
  export declare const detectRegistrar: (input: {
654
662
  readonly id: string;
@@ -1250,7 +1258,8 @@ export declare const completeDomainWarming: (input: {
1250
1258
  };
1251
1259
  }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
1252
1260
  export declare const getOnboardingReview: (_?: never) => import("effect/Effect").Effect<{
1253
- readonly decision: "approved" | "exempt" | "rejected" | "undecided";
1261
+ readonly decision: "approved" | "rejected" | "undecided";
1262
+ readonly trustTier: "established" | "probation" | "screened";
1254
1263
  readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
1255
1264
  readonly generation: number;
1256
1265
  readonly canSend: boolean;
@@ -1277,7 +1286,8 @@ export declare const getOnboardingReview: (_?: never) => import("effect/Effect")
1277
1286
  export declare const reapplyOnboardingReview: (input: {
1278
1287
  readonly expectedGeneration: number;
1279
1288
  }) => import("effect/Effect").Effect<{
1280
- readonly decision: "approved" | "exempt" | "rejected" | "undecided";
1289
+ readonly decision: "approved" | "rejected" | "undecided";
1290
+ readonly trustTier: "established" | "probation" | "screened";
1281
1291
  readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
1282
1292
  readonly generation: number;
1283
1293
  readonly canSend: boolean;
@@ -1306,7 +1316,8 @@ export declare const respondToOnboardingInformationRequest: (input: {
1306
1316
  readonly responseText: string;
1307
1317
  readonly evidenceMediaIds: readonly string[];
1308
1318
  }) => import("effect/Effect").Effect<{
1309
- readonly decision: "approved" | "exempt" | "rejected" | "undecided";
1319
+ readonly decision: "approved" | "rejected" | "undecided";
1320
+ readonly trustTier: "established" | "probation" | "screened";
1310
1321
  readonly stage: "automated_review" | "collecting" | "complete" | "information_requested" | "manual_review";
1311
1322
  readonly generation: number;
1312
1323
  readonly canSend: boolean;
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make, r as sendEmail, t as addEmailSender } from "../operation-02YX3hY9.js";
3
- import { x as TrackingRecipientEmail } from "../client-DCM6U0-I.js";
2
+ import { n as make, r as sendEmail, t as addEmailSender } from "../operation-Cb5V9FJ7.js";
3
+ import { E as TrackingRecipientEmail } from "../client-5O8KsY5Z.js";
4
4
  //#region src/effect/email.ts
5
5
  var email_exports = /* @__PURE__ */ __exportAll({
6
6
  TrackingRecipientEmail: () => TrackingRecipientEmail,
@@ -7,6 +7,14 @@ export declare const SamvaErrorMetadata: {
7
7
  readonly categories: readonly ["transient"];
8
8
  readonly retryable: true;
9
9
  };
10
+ readonly BrandAddressRequiredError: {
11
+ readonly categories: readonly [];
12
+ readonly retryable: false;
13
+ };
14
+ readonly CampaignFooterRequiredError: {
15
+ readonly categories: readonly [];
16
+ readonly retryable: false;
17
+ };
10
18
  readonly ConflictError: {
11
19
  readonly categories: readonly ["conflict"];
12
20
  readonly retryable: false;