samva 0.19.0 → 0.21.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 (51) hide show
  1. package/dist/client/sdk.gen.d.ts +72 -16
  2. package/dist/client/sdk.gen.js +216 -36
  3. package/dist/client/types.gen.d.ts +411 -65
  4. package/dist/effect/api-keys.d.ts +7 -0
  5. package/dist/effect/campaigns.d.ts +66 -3
  6. package/dist/effect/contacts.d.ts +24 -4
  7. package/dist/effect/email.d.ts +22 -6
  8. package/dist/effect/errors.d.ts +1 -1
  9. package/dist/effect/errors.js +2 -2
  10. package/dist/effect/generated/api-keys.d.ts +15 -0
  11. package/dist/effect/generated/api-keys.js +2 -0
  12. package/dist/effect/generated/campaigns.d.ts +136 -4
  13. package/dist/effect/generated/campaigns.js +22 -1
  14. package/dist/effect/generated/contacts.d.ts +131 -1
  15. package/dist/effect/generated/contacts.js +17 -2
  16. package/dist/effect/generated/email.d.ts +162 -1
  17. package/dist/effect/generated/email.js +31 -11
  18. package/dist/effect/generated/journeys.d.ts +31 -61
  19. package/dist/effect/generated/journeys.js +9 -5
  20. package/dist/effect/generated/mailboxes.d.ts +274 -78
  21. package/dist/effect/generated/mailboxes.js +28 -20
  22. package/dist/effect/generated/messages.d.ts +4 -1
  23. package/dist/effect/generated/messages.js +2 -1
  24. package/dist/effect/generated/namespaces.d.ts +432 -2
  25. package/dist/effect/generated/namespaces.js +91 -4
  26. package/dist/effect/generated/shared.d.ts +38 -29
  27. package/dist/effect/generated/shared.js +28 -23
  28. package/dist/effect/generated/templates.d.ts +80 -1
  29. package/dist/effect/generated/templates.js +18 -6
  30. package/dist/effect/generated/webhooks.d.ts +120 -0
  31. package/dist/effect/generated/webhooks.js +27 -3
  32. package/dist/effect/generated-metadata.d.ts +20 -4
  33. package/dist/effect/generated-metadata.js +4 -4
  34. package/dist/effect/index.js +2 -2
  35. package/dist/effect/journeys.d.ts +12 -4
  36. package/dist/effect/mailboxes.d.ts +11 -11
  37. package/dist/effect/messages.d.ts +3 -0
  38. package/dist/effect/namespaces.d.ts +29 -0
  39. package/dist/effect/namespaces.js +7 -1
  40. package/dist/effect/templates.d.ts +28 -1
  41. package/dist/effect/webhooks.d.ts +7 -0
  42. package/dist/effect/webhooks.js +3 -1
  43. package/dist/index.js +2 -2
  44. package/dist/package.js +1 -1
  45. package/dist/promises/errors.gen.d.ts +2 -12
  46. package/dist/promises/errors.gen.js +1 -26
  47. package/dist/promises/index.js +2 -2
  48. package/dist/promises/types.gen.d.ts +1 -1
  49. package/dist/service-map.d.ts +20 -0
  50. package/dist/service-map.js +20 -0
  51. package/package.json +5 -3
@@ -10,6 +10,7 @@ export declare const list: ((input?: {
10
10
  readonly name: string;
11
11
  readonly key?: string | null;
12
12
  readonly start: string | null;
13
+ readonly end: string | null;
13
14
  readonly description?: string | null;
14
15
  readonly createdAt: string;
15
16
  readonly expiresAt: string | null;
@@ -59,6 +60,7 @@ export declare const list: ((input?: {
59
60
  readonly name: string;
60
61
  readonly key?: string | null;
61
62
  readonly start: string | null;
63
+ readonly end: string | null;
62
64
  readonly description?: string | null;
63
65
  readonly createdAt: string;
64
66
  readonly expiresAt: string | null;
@@ -107,6 +109,7 @@ export declare const list: ((input?: {
107
109
  readonly name: string;
108
110
  readonly key?: string | null;
109
111
  readonly start: string | null;
112
+ readonly end: string | null;
110
113
  readonly description?: string | null;
111
114
  readonly createdAt: string;
112
115
  readonly expiresAt: string | null;
@@ -178,6 +181,7 @@ export declare const create: (input: {
178
181
  readonly name: string;
179
182
  readonly key: import("effect/Redacted").Redacted<string>;
180
183
  readonly start: string | null;
184
+ readonly end: string | null;
181
185
  readonly description?: string | null;
182
186
  readonly createdAt: string;
183
187
  readonly expiresAt: string | null;
@@ -221,6 +225,7 @@ export declare const get: (input: {
221
225
  readonly name: string;
222
226
  readonly key?: string | null;
223
227
  readonly start: string | null;
228
+ readonly end: string | null;
224
229
  readonly description?: string | null;
225
230
  readonly createdAt: string;
226
231
  readonly expiresAt: string | null;
@@ -274,6 +279,7 @@ export declare const update: (input: {
274
279
  readonly name: string;
275
280
  readonly key?: string | null;
276
281
  readonly start: string | null;
282
+ readonly end: string | null;
277
283
  readonly description?: string | null;
278
284
  readonly createdAt: string;
279
285
  readonly expiresAt: string | null;
@@ -317,6 +323,7 @@ export declare const rotate: (input: {
317
323
  readonly name: string;
318
324
  readonly key: import("effect/Redacted").Redacted<string>;
319
325
  readonly start: string | null;
326
+ readonly end: string | null;
320
327
  readonly description?: string | null;
321
328
  readonly createdAt: string;
322
329
  readonly expiresAt: string | null;
@@ -68,6 +68,7 @@ export declare const list: ((input?: {
68
68
  readonly dispatchedCount: number;
69
69
  readonly failedCount: number;
70
70
  readonly skippedCount: number;
71
+ readonly pendingCount: number;
71
72
  readonly estimatedCompletionAt: string | null;
72
73
  } | null;
73
74
  readonly createdBy: string | null;
@@ -149,6 +150,7 @@ export declare const list: ((input?: {
149
150
  readonly dispatchedCount: number;
150
151
  readonly failedCount: number;
151
152
  readonly skippedCount: number;
153
+ readonly pendingCount: number;
152
154
  readonly estimatedCompletionAt: string | null;
153
155
  } | null;
154
156
  readonly createdBy: string | null;
@@ -229,6 +231,7 @@ export declare const list: ((input?: {
229
231
  readonly dispatchedCount: number;
230
232
  readonly failedCount: number;
231
233
  readonly skippedCount: number;
234
+ readonly pendingCount: number;
232
235
  readonly estimatedCompletionAt: string | null;
233
236
  } | null;
234
237
  readonly createdBy: string | null;
@@ -403,6 +406,7 @@ export declare const create: (input: {
403
406
  readonly dispatchedCount: number;
404
407
  readonly failedCount: number;
405
408
  readonly skippedCount: number;
409
+ readonly pendingCount: number;
406
410
  readonly estimatedCompletionAt: string | null;
407
411
  } | null;
408
412
  readonly createdBy: string | null;
@@ -478,6 +482,7 @@ export declare const get: (input: {
478
482
  readonly dispatchedCount: number;
479
483
  readonly failedCount: number;
480
484
  readonly skippedCount: number;
485
+ readonly pendingCount: number;
481
486
  readonly estimatedCompletionAt: string | null;
482
487
  } | null;
483
488
  readonly createdBy: string | null;
@@ -553,6 +558,7 @@ export declare const archive: (input: {
553
558
  readonly dispatchedCount: number;
554
559
  readonly failedCount: number;
555
560
  readonly skippedCount: number;
561
+ readonly pendingCount: number;
556
562
  readonly estimatedCompletionAt: string | null;
557
563
  } | null;
558
564
  readonly createdBy: string | null;
@@ -725,6 +731,7 @@ export declare const update: (input: {
725
731
  readonly dispatchedCount: number;
726
732
  readonly failedCount: number;
727
733
  readonly skippedCount: number;
734
+ readonly pendingCount: number;
728
735
  readonly estimatedCompletionAt: string | null;
729
736
  } | null;
730
737
  readonly createdBy: string | null;
@@ -799,10 +806,17 @@ export declare const listRuns: ((input: {
799
806
  readonly dispatchedCount: number;
800
807
  readonly failedCount: number;
801
808
  readonly skippedCount: number;
809
+ readonly pendingCount: number;
810
+ readonly skippedReasons: readonly {
811
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
812
+ readonly count: number;
813
+ }[];
802
814
  readonly estimatedCompletionAt: string | null;
803
815
  readonly failureReason: string | null;
804
816
  readonly holdReason: string | null;
805
817
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
818
+ readonly holdUntil: string | null;
819
+ readonly capacityWarning: string | null;
806
820
  readonly lastContactId: string | null;
807
821
  readonly createdBy: string | null;
808
822
  readonly actorEmail: string;
@@ -878,10 +892,17 @@ export declare const listRuns: ((input: {
878
892
  readonly dispatchedCount: number;
879
893
  readonly failedCount: number;
880
894
  readonly skippedCount: number;
895
+ readonly pendingCount: number;
896
+ readonly skippedReasons: readonly {
897
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
898
+ readonly count: number;
899
+ }[];
881
900
  readonly estimatedCompletionAt: string | null;
882
901
  readonly failureReason: string | null;
883
902
  readonly holdReason: string | null;
884
903
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
904
+ readonly holdUntil: string | null;
905
+ readonly capacityWarning: string | null;
885
906
  readonly lastContactId: string | null;
886
907
  readonly createdBy: string | null;
887
908
  readonly actorEmail: string;
@@ -956,10 +977,17 @@ export declare const listRuns: ((input: {
956
977
  readonly dispatchedCount: number;
957
978
  readonly failedCount: number;
958
979
  readonly skippedCount: number;
980
+ readonly pendingCount: number;
981
+ readonly skippedReasons: readonly {
982
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
983
+ readonly count: number;
984
+ }[];
959
985
  readonly estimatedCompletionAt: string | null;
960
986
  readonly failureReason: string | null;
961
987
  readonly holdReason: string | null;
962
988
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
989
+ readonly holdUntil: string | null;
990
+ readonly capacityWarning: string | null;
963
991
  readonly lastContactId: string | null;
964
992
  readonly createdBy: string | null;
965
993
  readonly actorEmail: string;
@@ -1032,10 +1060,17 @@ export declare const scheduleRun: (input: {
1032
1060
  readonly dispatchedCount: number;
1033
1061
  readonly failedCount: number;
1034
1062
  readonly skippedCount: number;
1063
+ readonly pendingCount: number;
1064
+ readonly skippedReasons: readonly {
1065
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1066
+ readonly count: number;
1067
+ }[];
1035
1068
  readonly estimatedCompletionAt: string | null;
1036
1069
  readonly failureReason: string | null;
1037
1070
  readonly holdReason: string | null;
1038
1071
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1072
+ readonly holdUntil: string | null;
1073
+ readonly capacityWarning: string | null;
1039
1074
  readonly lastContactId: string | null;
1040
1075
  readonly createdBy: string | null;
1041
1076
  readonly actorEmail: string;
@@ -1106,10 +1141,17 @@ export declare const getRun: (input: {
1106
1141
  readonly dispatchedCount: number;
1107
1142
  readonly failedCount: number;
1108
1143
  readonly skippedCount: number;
1144
+ readonly pendingCount: number;
1145
+ readonly skippedReasons: readonly {
1146
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1147
+ readonly count: number;
1148
+ }[];
1109
1149
  readonly estimatedCompletionAt: string | null;
1110
1150
  readonly failureReason: string | null;
1111
1151
  readonly holdReason: string | null;
1112
1152
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1153
+ readonly holdUntil: string | null;
1154
+ readonly capacityWarning: string | null;
1113
1155
  readonly lastContactId: string | null;
1114
1156
  readonly createdBy: string | null;
1115
1157
  readonly actorEmail: string;
@@ -1182,10 +1224,17 @@ export declare const pauseRun: (input: {
1182
1224
  readonly dispatchedCount: number;
1183
1225
  readonly failedCount: number;
1184
1226
  readonly skippedCount: number;
1227
+ readonly pendingCount: number;
1228
+ readonly skippedReasons: readonly {
1229
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1230
+ readonly count: number;
1231
+ }[];
1185
1232
  readonly estimatedCompletionAt: string | null;
1186
1233
  readonly failureReason: string | null;
1187
1234
  readonly holdReason: string | null;
1188
1235
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1236
+ readonly holdUntil: string | null;
1237
+ readonly capacityWarning: string | null;
1189
1238
  readonly lastContactId: string | null;
1190
1239
  readonly createdBy: string | null;
1191
1240
  readonly actorEmail: string;
@@ -1259,10 +1308,17 @@ export declare const resumeRun: (input: {
1259
1308
  readonly dispatchedCount: number;
1260
1309
  readonly failedCount: number;
1261
1310
  readonly skippedCount: number;
1311
+ readonly pendingCount: number;
1312
+ readonly skippedReasons: readonly {
1313
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1314
+ readonly count: number;
1315
+ }[];
1262
1316
  readonly estimatedCompletionAt: string | null;
1263
1317
  readonly failureReason: string | null;
1264
1318
  readonly holdReason: string | null;
1265
1319
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1320
+ readonly holdUntil: string | null;
1321
+ readonly capacityWarning: string | null;
1266
1322
  readonly lastContactId: string | null;
1267
1323
  readonly createdBy: string | null;
1268
1324
  readonly actorEmail: string;
@@ -1336,10 +1392,17 @@ export declare const cancelRun: (input: {
1336
1392
  readonly dispatchedCount: number;
1337
1393
  readonly failedCount: number;
1338
1394
  readonly skippedCount: number;
1395
+ readonly pendingCount: number;
1396
+ readonly skippedReasons: readonly {
1397
+ readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
1398
+ readonly count: number;
1399
+ }[];
1339
1400
  readonly estimatedCompletionAt: string | null;
1340
1401
  readonly failureReason: string | null;
1341
1402
  readonly holdReason: string | null;
1342
1403
  readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1404
+ readonly holdUntil: string | null;
1405
+ readonly capacityWarning: string | null;
1343
1406
  readonly lastContactId: string | null;
1344
1407
  readonly createdBy: string | null;
1345
1408
  readonly actorEmail: string;
@@ -1362,7 +1425,7 @@ export declare const listRecipients: ((input: {
1362
1425
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1363
1426
  readonly messageId: string | null;
1364
1427
  readonly failureReason: string | null;
1365
- readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
1428
+ readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1366
1429
  readonly createdAt: string;
1367
1430
  readonly updatedAt: string;
1368
1431
  }[];
@@ -1382,7 +1445,7 @@ export declare const listRecipients: ((input: {
1382
1445
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1383
1446
  readonly messageId: string | null;
1384
1447
  readonly failureReason: string | null;
1385
- readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
1448
+ readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1386
1449
  readonly createdAt: string;
1387
1450
  readonly updatedAt: string;
1388
1451
  }[];
@@ -1401,7 +1464,7 @@ export declare const listRecipients: ((input: {
1401
1464
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1402
1465
  readonly messageId: string | null;
1403
1466
  readonly failureReason: string | null;
1404
- readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
1467
+ readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
1405
1468
  readonly createdAt: string;
1406
1469
  readonly updatedAt: string;
1407
1470
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
@@ -1,6 +1,7 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: string | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
+ readonly namespaceId?: string | null | undefined;
4
5
  readonly search?: string | null | undefined;
5
6
  readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
6
7
  readonly fields?: string | null | undefined;
@@ -11,6 +12,7 @@ export declare const list: ((input?: {
11
12
  } | undefined) => import("effect/Effect").Effect<{
12
13
  readonly items: readonly {
13
14
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
15
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
14
16
  readonly name: string;
15
17
  readonly displayName: string | null;
16
18
  readonly status: "active" | "archived" | "blocked" | "paused";
@@ -33,6 +35,7 @@ export declare const list: ((input?: {
33
35
  readonly pages: (input?: {
34
36
  readonly limit?: string | null | undefined;
35
37
  readonly cursor?: string | null | undefined;
38
+ readonly namespaceId?: string | null | undefined;
36
39
  readonly search?: string | null | undefined;
37
40
  readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
38
41
  readonly fields?: string | null | undefined;
@@ -43,6 +46,7 @@ export declare const list: ((input?: {
43
46
  } | undefined) => import("effect/Stream").Stream<{
44
47
  readonly items: readonly {
45
48
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
49
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
46
50
  readonly name: string;
47
51
  readonly displayName: string | null;
48
52
  readonly status: "active" | "archived" | "blocked" | "paused";
@@ -65,6 +69,7 @@ export declare const list: ((input?: {
65
69
  readonly items: (input?: {
66
70
  readonly limit?: string | null | undefined;
67
71
  readonly cursor?: string | null | undefined;
72
+ readonly namespaceId?: string | null | undefined;
68
73
  readonly search?: string | null | undefined;
69
74
  readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
70
75
  readonly fields?: string | null | undefined;
@@ -74,6 +79,7 @@ export declare const list: ((input?: {
74
79
  readonly before?: string | null | undefined;
75
80
  } | undefined) => import("effect/Stream").Stream<{
76
81
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
82
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
77
83
  readonly name: string;
78
84
  readonly displayName: string | null;
79
85
  readonly status: "active" | "archived" | "blocked" | "paused";
@@ -93,6 +99,7 @@ export declare const list: ((input?: {
93
99
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
94
100
  };
95
101
  export declare const create: (input: {
102
+ readonly namespaceId?: string | null | undefined;
96
103
  readonly name: string;
97
104
  readonly displayName?: string | null | undefined;
98
105
  readonly avatar?: string | null | undefined;
@@ -162,6 +169,7 @@ export declare const create: (input: {
162
169
  } | null | undefined;
163
170
  }) => import("effect/Effect").Effect<{
164
171
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
172
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
165
173
  readonly name: string;
166
174
  readonly displayName: string | null;
167
175
  readonly avatar: string | null;
@@ -220,13 +228,15 @@ export declare const create: (input: {
220
228
  } | null;
221
229
  readonly createdAt: string;
222
230
  readonly updatedAt: string;
223
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
231
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
224
232
  export declare const find: (input?: {
233
+ readonly namespaceId?: string | null | undefined;
225
234
  readonly email?: string | null | undefined;
226
235
  readonly phone?: string | null | undefined;
227
236
  readonly externalId?: string | null | undefined;
228
237
  } | undefined) => import("effect/Effect").Effect<{
229
238
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
239
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
230
240
  readonly name: string;
231
241
  readonly displayName: string | null;
232
242
  readonly avatar: string | null;
@@ -285,8 +295,9 @@ export declare const find: (input?: {
285
295
  } | null;
286
296
  readonly createdAt: string;
287
297
  readonly updatedAt: string;
288
- } | null, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
298
+ } | null, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
289
299
  export declare const findOrCreate: (input: {
300
+ readonly namespaceId?: string | null | undefined;
290
301
  readonly lookup: {
291
302
  readonly type: "email";
292
303
  readonly value: string;
@@ -327,6 +338,7 @@ export declare const findOrCreate: (input: {
327
338
  }) => import("effect/Effect").Effect<{
328
339
  readonly contact: {
329
340
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
341
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
330
342
  readonly name: string;
331
343
  readonly displayName: string | null;
332
344
  readonly avatar: string | null;
@@ -387,11 +399,12 @@ export declare const findOrCreate: (input: {
387
399
  readonly updatedAt: string;
388
400
  };
389
401
  readonly created: boolean;
390
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
402
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
391
403
  export declare const get: (input: {
392
404
  readonly id: string;
393
405
  }) => import("effect/Effect").Effect<{
394
406
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
407
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
395
408
  readonly name: string;
396
409
  readonly displayName: string | null;
397
410
  readonly avatar: string | null;
@@ -520,6 +533,7 @@ export declare const update: (input: {
520
533
  } | null | undefined;
521
534
  }) => import("effect/Effect").Effect<{
522
535
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
536
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
523
537
  readonly name: string;
524
538
  readonly displayName: string | null;
525
539
  readonly avatar: string | null;
@@ -586,6 +600,7 @@ export declare const addIdentity: (input: {
586
600
  readonly verified?: boolean | null | undefined;
587
601
  }) => import("effect/Effect").Effect<{
588
602
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
603
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
589
604
  readonly name: string;
590
605
  readonly displayName: string | null;
591
606
  readonly avatar: string | null;
@@ -650,6 +665,7 @@ export declare const removeIdentity: (input: {
650
665
  readonly identityId: string;
651
666
  }) => import("effect/Effect").Effect<{
652
667
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
668
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
653
669
  readonly name: string;
654
670
  readonly displayName: string | null;
655
671
  readonly avatar: string | null;
@@ -745,6 +761,7 @@ export declare const setConsent: (input: {
745
761
  } | null | undefined;
746
762
  }) => import("effect/Effect").Effect<{
747
763
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
764
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
748
765
  readonly name: string;
749
766
  readonly displayName: string | null;
750
767
  readonly avatar: string | null;
@@ -809,6 +826,7 @@ export declare const addTags: (input: {
809
826
  readonly tags: readonly string[];
810
827
  }) => import("effect/Effect").Effect<{
811
828
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
829
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
812
830
  readonly name: string;
813
831
  readonly displayName: string | null;
814
832
  readonly avatar: string | null;
@@ -873,6 +891,7 @@ export declare const removeTags: (input: {
873
891
  readonly tags: readonly string[];
874
892
  }) => import("effect/Effect").Effect<{
875
893
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
894
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
876
895
  readonly name: string;
877
896
  readonly displayName: string | null;
878
897
  readonly avatar: string | null;
@@ -945,6 +964,7 @@ export declare const getEngagement: (input: {
945
964
  };
946
965
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
947
966
  export declare const bulkImport: (input: {
967
+ readonly namespaceId?: string | null | undefined;
948
968
  readonly contacts: readonly {
949
969
  readonly name: string;
950
970
  readonly displayName?: string | null | undefined;
@@ -1025,7 +1045,7 @@ export declare const bulkImport: (input: {
1025
1045
  readonly contactId?: (string & import("effect/Brand").Brand<"ContactId">) | null;
1026
1046
  readonly error?: string | null;
1027
1047
  }[];
1028
- }, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1048
+ }, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1029
1049
  export declare const bulkDelete: (input: {
1030
1050
  readonly ids: readonly string[];
1031
1051
  }) => import("effect/Effect").Effect<{
@@ -48,6 +48,7 @@ export declare const listDomains: ((input?: {
48
48
  readonly limit?: string | null | undefined;
49
49
  readonly cursor?: string | null | undefined;
50
50
  readonly sendable?: "true" | null | undefined;
51
+ readonly namespaceId?: string | null | undefined;
51
52
  } | undefined) => import("effect/Effect").Effect<{
52
53
  readonly items: readonly {
53
54
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -55,6 +56,7 @@ export declare const listDomains: ((input?: {
55
56
  readonly phase: "degraded" | "dns-setup" | "failed" | "provisioning" | "ready" | "verifying";
56
57
  readonly dkimSelector?: string | null;
57
58
  readonly dkimPublicKey?: string | null;
59
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
58
60
  readonly isDefault: boolean;
59
61
  readonly deliverability: {
60
62
  readonly bounceRate: number;
@@ -72,6 +74,7 @@ export declare const listDomains: ((input?: {
72
74
  readonly limit?: string | null | undefined;
73
75
  readonly cursor?: string | null | undefined;
74
76
  readonly sendable?: "true" | null | undefined;
77
+ readonly namespaceId?: string | null | undefined;
75
78
  } | undefined) => import("effect/Stream").Stream<{
76
79
  readonly items: readonly {
77
80
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -79,6 +82,7 @@ export declare const listDomains: ((input?: {
79
82
  readonly phase: "degraded" | "dns-setup" | "failed" | "provisioning" | "ready" | "verifying";
80
83
  readonly dkimSelector?: string | null;
81
84
  readonly dkimPublicKey?: string | null;
85
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
82
86
  readonly isDefault: boolean;
83
87
  readonly deliverability: {
84
88
  readonly bounceRate: number;
@@ -96,12 +100,14 @@ export declare const listDomains: ((input?: {
96
100
  readonly limit?: string | null | undefined;
97
101
  readonly cursor?: string | null | undefined;
98
102
  readonly sendable?: "true" | null | undefined;
103
+ readonly namespaceId?: string | null | undefined;
99
104
  } | undefined) => import("effect/Stream").Stream<{
100
105
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
101
106
  readonly domain: string;
102
107
  readonly phase: "degraded" | "dns-setup" | "failed" | "provisioning" | "ready" | "verifying";
103
108
  readonly dkimSelector?: string | null;
104
109
  readonly dkimPublicKey?: string | null;
110
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
105
111
  readonly isDefault: boolean;
106
112
  readonly deliverability: {
107
113
  readonly bounceRate: number;
@@ -120,6 +126,7 @@ export declare const addDomain: (input: {
120
126
  readonly connectionId: string;
121
127
  readonly zone: string;
122
128
  } | null | undefined;
129
+ readonly namespaceId?: string | null | undefined;
123
130
  }) => import("effect/Effect").Effect<{
124
131
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
125
132
  readonly domain: string;
@@ -135,6 +142,7 @@ export declare const addDomain: (input: {
135
142
  readonly priority?: number | null;
136
143
  }[];
137
144
  readonly verifiedAt: string | null;
145
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
138
146
  readonly isDefault: boolean;
139
147
  readonly deliverability: {
140
148
  readonly bounceRate: number;
@@ -144,7 +152,7 @@ export declare const addDomain: (input: {
144
152
  };
145
153
  readonly createdAt: string;
146
154
  readonly updatedAt: string;
147
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
155
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
148
156
  export declare const rotateDomainDkim: (input: {
149
157
  readonly id: string;
150
158
  } & {
@@ -414,6 +422,7 @@ export declare const getDomainById: (input: {
414
422
  readonly priority?: number | null;
415
423
  }[];
416
424
  readonly verifiedAt: string | null;
425
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
417
426
  readonly isDefault: boolean;
418
427
  readonly deliverability: {
419
428
  readonly bounceRate: number;
@@ -461,7 +470,7 @@ export declare const detectRegistrar: (input: {
461
470
  readonly name: string;
462
471
  readonly nameservers: readonly string[];
463
472
  readonly docsUrl: string;
464
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
473
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
465
474
  export declare const getDomainConnect: (input: {
466
475
  readonly id: string;
467
476
  readonly mode: "send-and-receive" | "send-only";
@@ -564,7 +573,7 @@ export declare const enableCustomTracking: (input: {
564
573
  readonly verificationErrors: readonly string[];
565
574
  readonly teardownScheduledAt: string | null;
566
575
  } | null;
567
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
576
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
568
577
  export declare const getCustomTracking: (input: {
569
578
  readonly id: string;
570
579
  }) => import("effect/Effect").Effect<{
@@ -599,7 +608,7 @@ export declare const getCustomTracking: (input: {
599
608
  readonly verificationErrors: readonly string[];
600
609
  readonly teardownScheduledAt: string | null;
601
610
  } | null;
602
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
611
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
603
612
  export declare const recheckCustomTracking: (input: {
604
613
  readonly id: string;
605
614
  }) => import("effect/Effect").Effect<{
@@ -656,13 +665,13 @@ export declare const completeCustomTrackingDomainConnect: (input: {
656
665
  readonly errorDescription?: string | null | undefined;
657
666
  }) => import("effect/Effect").Effect<{
658
667
  readonly status: "applied" | "cancelled" | "failed" | "invalid" | "stale";
659
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
668
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
660
669
  export declare const disableCustomTracking: (input: {
661
670
  readonly id: string;
662
671
  }) => import("effect/Effect").Effect<{
663
672
  readonly success: boolean;
664
673
  readonly message: string;
665
- }, import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
674
+ }, import("./errors").ConflictError | import("./errors").EmailChannelError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
666
675
  export declare const getDomainWarming: (input: {
667
676
  readonly id: string;
668
677
  }) => import("effect/Effect").Effect<{
@@ -1226,6 +1235,7 @@ export declare const listSenders: ((input?: {
1226
1235
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1227
1236
  readonly isActive?: string | null | undefined;
1228
1237
  readonly isDefault?: string | null | undefined;
1238
+ readonly namespaceId?: string | null | undefined;
1229
1239
  } | undefined) => import("effect/Effect").Effect<{
1230
1240
  readonly items: readonly {
1231
1241
  readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
@@ -1233,6 +1243,7 @@ export declare const listSenders: ((input?: {
1233
1243
  readonly email: string;
1234
1244
  readonly name: string | null;
1235
1245
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1246
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1236
1247
  readonly verificationStatus: "failed" | "pending" | "verified";
1237
1248
  readonly verifiedAt: string | null;
1238
1249
  readonly verificationToken: string | null;
@@ -1259,6 +1270,7 @@ export declare const listSenders: ((input?: {
1259
1270
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1260
1271
  readonly isActive?: string | null | undefined;
1261
1272
  readonly isDefault?: string | null | undefined;
1273
+ readonly namespaceId?: string | null | undefined;
1262
1274
  } | undefined) => import("effect/Stream").Stream<{
1263
1275
  readonly items: readonly {
1264
1276
  readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
@@ -1266,6 +1278,7 @@ export declare const listSenders: ((input?: {
1266
1278
  readonly email: string;
1267
1279
  readonly name: string | null;
1268
1280
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1281
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1269
1282
  readonly verificationStatus: "failed" | "pending" | "verified";
1270
1283
  readonly verifiedAt: string | null;
1271
1284
  readonly verificationToken: string | null;
@@ -1292,12 +1305,14 @@ export declare const listSenders: ((input?: {
1292
1305
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1293
1306
  readonly isActive?: string | null | undefined;
1294
1307
  readonly isDefault?: string | null | undefined;
1308
+ readonly namespaceId?: string | null | undefined;
1295
1309
  } | undefined) => import("effect/Stream").Stream<{
1296
1310
  readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
1297
1311
  readonly organizationId: string;
1298
1312
  readonly email: string;
1299
1313
  readonly name: string | null;
1300
1314
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1315
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1301
1316
  readonly verificationStatus: "failed" | "pending" | "verified";
1302
1317
  readonly verifiedAt: string | null;
1303
1318
  readonly verificationToken: string | null;
@@ -1325,6 +1340,7 @@ export declare const getSender: (input: {
1325
1340
  readonly email: string;
1326
1341
  readonly name: string | null;
1327
1342
  readonly domainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
1343
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
1328
1344
  readonly verificationStatus: "failed" | "pending" | "verified";
1329
1345
  readonly verifiedAt: string | null;
1330
1346
  readonly verificationToken: string | null;
@@ -1,2 +1,2 @@
1
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated/shared";
1
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated/shared";
2
2
  export { MediaUploadError } from "../inline-attachments";