samva 0.19.0 → 0.20.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/client/sdk.gen.d.ts +56 -14
- package/dist/client/sdk.gen.js +186 -34
- package/dist/client/types.gen.d.ts +325 -65
- package/dist/effect/campaigns.d.ts +35 -3
- package/dist/effect/contacts.d.ts +24 -4
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/campaigns.d.ts +73 -4
- package/dist/effect/generated/campaigns.js +18 -1
- package/dist/effect/generated/contacts.d.ts +131 -1
- package/dist/effect/generated/contacts.js +17 -2
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/journeys.d.ts +13 -61
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/mailboxes.d.ts +274 -78
- package/dist/effect/generated/mailboxes.js +28 -20
- package/dist/effect/generated/messages.d.ts +4 -1
- package/dist/effect/generated/messages.js +2 -1
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/shared.d.ts +34 -29
- package/dist/effect/generated/shared.js +25 -22
- package/dist/effect/generated/templates.d.ts +44 -1
- package/dist/effect/generated/templates.js +9 -3
- package/dist/effect/generated-metadata.d.ts +15 -4
- package/dist/effect/generated-metadata.js +3 -4
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +4 -4
- package/dist/effect/mailboxes.d.ts +11 -11
- package/dist/effect/messages.d.ts +3 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/templates.d.ts +12 -1
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +15 -0
- package/dist/service-map.js +16 -0
- package/package.json +2 -2
|
@@ -799,6 +799,10 @@ export declare const listRuns: ((input: {
|
|
|
799
799
|
readonly dispatchedCount: number;
|
|
800
800
|
readonly failedCount: number;
|
|
801
801
|
readonly skippedCount: number;
|
|
802
|
+
readonly skippedReasons: readonly {
|
|
803
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
804
|
+
readonly count: number;
|
|
805
|
+
}[];
|
|
802
806
|
readonly estimatedCompletionAt: string | null;
|
|
803
807
|
readonly failureReason: string | null;
|
|
804
808
|
readonly holdReason: string | null;
|
|
@@ -878,6 +882,10 @@ export declare const listRuns: ((input: {
|
|
|
878
882
|
readonly dispatchedCount: number;
|
|
879
883
|
readonly failedCount: number;
|
|
880
884
|
readonly skippedCount: number;
|
|
885
|
+
readonly skippedReasons: readonly {
|
|
886
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
887
|
+
readonly count: number;
|
|
888
|
+
}[];
|
|
881
889
|
readonly estimatedCompletionAt: string | null;
|
|
882
890
|
readonly failureReason: string | null;
|
|
883
891
|
readonly holdReason: string | null;
|
|
@@ -956,6 +964,10 @@ export declare const listRuns: ((input: {
|
|
|
956
964
|
readonly dispatchedCount: number;
|
|
957
965
|
readonly failedCount: number;
|
|
958
966
|
readonly skippedCount: number;
|
|
967
|
+
readonly skippedReasons: readonly {
|
|
968
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
969
|
+
readonly count: number;
|
|
970
|
+
}[];
|
|
959
971
|
readonly estimatedCompletionAt: string | null;
|
|
960
972
|
readonly failureReason: string | null;
|
|
961
973
|
readonly holdReason: string | null;
|
|
@@ -1032,6 +1044,10 @@ export declare const scheduleRun: (input: {
|
|
|
1032
1044
|
readonly dispatchedCount: number;
|
|
1033
1045
|
readonly failedCount: number;
|
|
1034
1046
|
readonly skippedCount: number;
|
|
1047
|
+
readonly skippedReasons: readonly {
|
|
1048
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1049
|
+
readonly count: number;
|
|
1050
|
+
}[];
|
|
1035
1051
|
readonly estimatedCompletionAt: string | null;
|
|
1036
1052
|
readonly failureReason: string | null;
|
|
1037
1053
|
readonly holdReason: string | null;
|
|
@@ -1106,6 +1122,10 @@ export declare const getRun: (input: {
|
|
|
1106
1122
|
readonly dispatchedCount: number;
|
|
1107
1123
|
readonly failedCount: number;
|
|
1108
1124
|
readonly skippedCount: number;
|
|
1125
|
+
readonly skippedReasons: readonly {
|
|
1126
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1127
|
+
readonly count: number;
|
|
1128
|
+
}[];
|
|
1109
1129
|
readonly estimatedCompletionAt: string | null;
|
|
1110
1130
|
readonly failureReason: string | null;
|
|
1111
1131
|
readonly holdReason: string | null;
|
|
@@ -1182,6 +1202,10 @@ export declare const pauseRun: (input: {
|
|
|
1182
1202
|
readonly dispatchedCount: number;
|
|
1183
1203
|
readonly failedCount: number;
|
|
1184
1204
|
readonly skippedCount: number;
|
|
1205
|
+
readonly skippedReasons: readonly {
|
|
1206
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1207
|
+
readonly count: number;
|
|
1208
|
+
}[];
|
|
1185
1209
|
readonly estimatedCompletionAt: string | null;
|
|
1186
1210
|
readonly failureReason: string | null;
|
|
1187
1211
|
readonly holdReason: string | null;
|
|
@@ -1259,6 +1283,10 @@ export declare const resumeRun: (input: {
|
|
|
1259
1283
|
readonly dispatchedCount: number;
|
|
1260
1284
|
readonly failedCount: number;
|
|
1261
1285
|
readonly skippedCount: number;
|
|
1286
|
+
readonly skippedReasons: readonly {
|
|
1287
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1288
|
+
readonly count: number;
|
|
1289
|
+
}[];
|
|
1262
1290
|
readonly estimatedCompletionAt: string | null;
|
|
1263
1291
|
readonly failureReason: string | null;
|
|
1264
1292
|
readonly holdReason: string | null;
|
|
@@ -1336,6 +1364,10 @@ export declare const cancelRun: (input: {
|
|
|
1336
1364
|
readonly dispatchedCount: number;
|
|
1337
1365
|
readonly failedCount: number;
|
|
1338
1366
|
readonly skippedCount: number;
|
|
1367
|
+
readonly skippedReasons: readonly {
|
|
1368
|
+
readonly reason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed";
|
|
1369
|
+
readonly count: number;
|
|
1370
|
+
}[];
|
|
1339
1371
|
readonly estimatedCompletionAt: string | null;
|
|
1340
1372
|
readonly failureReason: string | null;
|
|
1341
1373
|
readonly holdReason: string | null;
|
|
@@ -1362,7 +1394,7 @@ export declare const listRecipients: ((input: {
|
|
|
1362
1394
|
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1363
1395
|
readonly messageId: string | null;
|
|
1364
1396
|
readonly failureReason: string | null;
|
|
1365
|
-
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1397
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1366
1398
|
readonly createdAt: string;
|
|
1367
1399
|
readonly updatedAt: string;
|
|
1368
1400
|
}[];
|
|
@@ -1382,7 +1414,7 @@ export declare const listRecipients: ((input: {
|
|
|
1382
1414
|
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1383
1415
|
readonly messageId: string | null;
|
|
1384
1416
|
readonly failureReason: string | null;
|
|
1385
|
-
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1417
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1386
1418
|
readonly createdAt: string;
|
|
1387
1419
|
readonly updatedAt: string;
|
|
1388
1420
|
}[];
|
|
@@ -1401,7 +1433,7 @@ export declare const listRecipients: ((input: {
|
|
|
1401
1433
|
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1402
1434
|
readonly messageId: string | null;
|
|
1403
1435
|
readonly failureReason: string | null;
|
|
1404
|
-
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1436
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "opted_out" | "run_cancelled" | "run_failed" | "suppressed" | "unreachable" | "unsubscribed" | null;
|
|
1405
1437
|
readonly createdAt: string;
|
|
1406
1438
|
readonly updatedAt: string;
|
|
1407
1439
|
}, 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<{
|
package/dist/effect/email.d.ts
CHANGED
|
@@ -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;
|
package/dist/effect/errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError,
|
|
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";
|
package/dist/effect/errors.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError,
|
|
3
|
-
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError,
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
3
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError };
|