samva 0.4.0 → 0.6.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/AGENTS.md +3 -2
- package/README.md +12 -2
- package/dist/{categories-CsUa8ojo.js → categories-4u9Az4No.js} +28 -8
- package/dist/client/sdk.gen.d.ts +545 -74
- package/dist/client/types.gen.d.ts +3907 -747
- package/dist/{client-BmZK_uCt.js → client-DCM6U0-I.js} +3061 -808
- package/dist/{client-attribution-BslSOa_8.js → client-attribution-DYUSAa76.js} +2 -2
- package/dist/effect/analytics.d.ts +66 -0
- package/dist/effect/analytics.js +21 -0
- package/dist/effect/api-keys.d.ts +198 -34
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/attachments.d.ts +53 -0
- package/dist/effect/attachments.js +17 -0
- package/dist/effect/campaigns.d.ts +52 -18
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contact-groups.d.ts +375 -0
- package/dist/effect/contact-groups.js +29 -0
- package/dist/effect/contacts.d.ts +35 -19
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +191 -44
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/custom-fields.d.ts +111 -0
- package/dist/effect/custom-fields.js +17 -0
- package/dist/effect/design.d.ts +2 -2
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +931 -97
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +16 -4
- package/dist/effect/generated.d.ts +19596 -10819
- package/dist/effect/index.d.ts +6 -1
- package/dist/effect/index.js +8 -3
- package/dist/effect/internal/operation.d.ts +124 -26
- package/dist/effect/media.d.ts +8 -8
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +473 -64
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +6 -6
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +7 -110
- package/dist/effect/organizations.js +2 -4
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +96 -12
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +35 -295
- package/dist/effect/templates.js +3 -5
- package/dist/effect/unsubscribe-groups.d.ts +161 -0
- package/dist/effect/unsubscribe-groups.js +25 -0
- package/dist/effect/webhooks.d.ts +52 -18
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BiIJnycv.js → normalize-B79uJIeb.js} +13 -14
- package/dist/normalize.d.ts +3 -7
- package/dist/{operation-B1knNlxk.js → operation-02YX3hY9.js} +144 -8
- package/dist/promises/errors.gen.d.ts +47 -39
- package/dist/promises/index.d.ts +19 -4
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-n1opem5V.js → promises-8MaPNAam.js} +1679 -267
- package/dist/service-map.d.ts +221 -8
- package/package.json +29 -9
|
@@ -66,12 +66,14 @@ export declare const list: ((input?: {
|
|
|
66
66
|
readonly dispatchedCount: number;
|
|
67
67
|
readonly failedCount: number;
|
|
68
68
|
readonly skippedCount: number;
|
|
69
|
+
readonly estimatedCompletionAt: string | null;
|
|
69
70
|
} | null;
|
|
70
71
|
readonly createdBy: string | null;
|
|
71
72
|
readonly actorEmail: string;
|
|
72
73
|
readonly memberRole: string;
|
|
73
74
|
readonly createdAt: string;
|
|
74
75
|
readonly updatedAt: string;
|
|
76
|
+
readonly series: readonly number[];
|
|
75
77
|
}[];
|
|
76
78
|
readonly pagination: {
|
|
77
79
|
readonly page: number;
|
|
@@ -79,7 +81,7 @@ export declare const list: ((input?: {
|
|
|
79
81
|
readonly total: number;
|
|
80
82
|
readonly totalPages: number;
|
|
81
83
|
};
|
|
82
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
84
|
+
}, 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>) & {
|
|
83
85
|
readonly pages: (input?: {
|
|
84
86
|
readonly status?: string | null | undefined;
|
|
85
87
|
readonly page?: string | null | undefined;
|
|
@@ -148,12 +150,14 @@ export declare const list: ((input?: {
|
|
|
148
150
|
readonly dispatchedCount: number;
|
|
149
151
|
readonly failedCount: number;
|
|
150
152
|
readonly skippedCount: number;
|
|
153
|
+
readonly estimatedCompletionAt: string | null;
|
|
151
154
|
} | null;
|
|
152
155
|
readonly createdBy: string | null;
|
|
153
156
|
readonly actorEmail: string;
|
|
154
157
|
readonly memberRole: string;
|
|
155
158
|
readonly createdAt: string;
|
|
156
159
|
readonly updatedAt: string;
|
|
160
|
+
readonly series: readonly number[];
|
|
157
161
|
}[];
|
|
158
162
|
readonly pagination: {
|
|
159
163
|
readonly page: number;
|
|
@@ -161,7 +165,7 @@ export declare const list: ((input?: {
|
|
|
161
165
|
readonly total: number;
|
|
162
166
|
readonly totalPages: number;
|
|
163
167
|
};
|
|
164
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
168
|
+
}, 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>;
|
|
165
169
|
readonly items: (input?: {
|
|
166
170
|
readonly status?: string | null | undefined;
|
|
167
171
|
readonly page?: string | null | undefined;
|
|
@@ -229,13 +233,15 @@ export declare const list: ((input?: {
|
|
|
229
233
|
readonly dispatchedCount: number;
|
|
230
234
|
readonly failedCount: number;
|
|
231
235
|
readonly skippedCount: number;
|
|
236
|
+
readonly estimatedCompletionAt: string | null;
|
|
232
237
|
} | null;
|
|
233
238
|
readonly createdBy: string | null;
|
|
234
239
|
readonly actorEmail: string;
|
|
235
240
|
readonly memberRole: string;
|
|
236
241
|
readonly createdAt: string;
|
|
237
242
|
readonly updatedAt: string;
|
|
238
|
-
|
|
243
|
+
readonly series: readonly number[];
|
|
244
|
+
}, 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>;
|
|
239
245
|
};
|
|
240
246
|
export declare const create: (input: {
|
|
241
247
|
readonly name: string;
|
|
@@ -397,13 +403,14 @@ export declare const create: (input: {
|
|
|
397
403
|
readonly dispatchedCount: number;
|
|
398
404
|
readonly failedCount: number;
|
|
399
405
|
readonly skippedCount: number;
|
|
406
|
+
readonly estimatedCompletionAt: string | null;
|
|
400
407
|
} | null;
|
|
401
408
|
readonly createdBy: string | null;
|
|
402
409
|
readonly actorEmail: string;
|
|
403
410
|
readonly memberRole: string;
|
|
404
411
|
readonly createdAt: string;
|
|
405
412
|
readonly updatedAt: string;
|
|
406
|
-
}, import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
|
|
413
|
+
}, import("./generated").FlagDisabledError | 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>;
|
|
407
414
|
export declare const get: (input: {
|
|
408
415
|
readonly id: string;
|
|
409
416
|
}) => import("effect/Effect").Effect<{
|
|
@@ -469,13 +476,14 @@ export declare const get: (input: {
|
|
|
469
476
|
readonly dispatchedCount: number;
|
|
470
477
|
readonly failedCount: number;
|
|
471
478
|
readonly skippedCount: number;
|
|
479
|
+
readonly estimatedCompletionAt: string | null;
|
|
472
480
|
} | null;
|
|
473
481
|
readonly createdBy: string | null;
|
|
474
482
|
readonly actorEmail: string;
|
|
475
483
|
readonly memberRole: string;
|
|
476
484
|
readonly createdAt: string;
|
|
477
485
|
readonly updatedAt: string;
|
|
478
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
486
|
+
}, 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>;
|
|
479
487
|
export declare const archive: (input: {
|
|
480
488
|
readonly id: string;
|
|
481
489
|
}) => import("effect/Effect").Effect<{
|
|
@@ -541,13 +549,14 @@ export declare const archive: (input: {
|
|
|
541
549
|
readonly dispatchedCount: number;
|
|
542
550
|
readonly failedCount: number;
|
|
543
551
|
readonly skippedCount: number;
|
|
552
|
+
readonly estimatedCompletionAt: string | null;
|
|
544
553
|
} | null;
|
|
545
554
|
readonly createdBy: string | null;
|
|
546
555
|
readonly actorEmail: string;
|
|
547
556
|
readonly memberRole: string;
|
|
548
557
|
readonly createdAt: string;
|
|
549
558
|
readonly updatedAt: string;
|
|
550
|
-
}, import("./generated").ConflictError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
559
|
+
}, 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>;
|
|
551
560
|
export declare const update: (input: {
|
|
552
561
|
readonly id: string;
|
|
553
562
|
readonly name?: string | null | undefined;
|
|
@@ -708,13 +717,14 @@ export declare const update: (input: {
|
|
|
708
717
|
readonly dispatchedCount: number;
|
|
709
718
|
readonly failedCount: number;
|
|
710
719
|
readonly skippedCount: number;
|
|
720
|
+
readonly estimatedCompletionAt: string | null;
|
|
711
721
|
} | null;
|
|
712
722
|
readonly createdBy: string | null;
|
|
713
723
|
readonly actorEmail: string;
|
|
714
724
|
readonly memberRole: string;
|
|
715
725
|
readonly createdAt: string;
|
|
716
726
|
readonly updatedAt: string;
|
|
717
|
-
}, import("./generated").ConflictError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | 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>;
|
|
727
|
+
}, import("./generated").ConflictError | 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>;
|
|
718
728
|
export declare const listRuns: ((input: {
|
|
719
729
|
readonly id: string;
|
|
720
730
|
readonly status?: string | null | undefined;
|
|
@@ -779,7 +789,10 @@ export declare const listRuns: ((input: {
|
|
|
779
789
|
readonly dispatchedCount: number;
|
|
780
790
|
readonly failedCount: number;
|
|
781
791
|
readonly skippedCount: number;
|
|
792
|
+
readonly estimatedCompletionAt: string | null;
|
|
782
793
|
readonly failureReason: string | null;
|
|
794
|
+
readonly holdReason: string | null;
|
|
795
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
783
796
|
readonly lastContactId: string | null;
|
|
784
797
|
readonly createdBy: string | null;
|
|
785
798
|
readonly actorEmail: string;
|
|
@@ -793,7 +806,7 @@ export declare const listRuns: ((input: {
|
|
|
793
806
|
readonly total: number;
|
|
794
807
|
readonly totalPages: number;
|
|
795
808
|
};
|
|
796
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
809
|
+
}, 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>) & {
|
|
797
810
|
readonly pages: (input: {
|
|
798
811
|
readonly id: string;
|
|
799
812
|
readonly status?: string | null | undefined;
|
|
@@ -858,7 +871,10 @@ export declare const listRuns: ((input: {
|
|
|
858
871
|
readonly dispatchedCount: number;
|
|
859
872
|
readonly failedCount: number;
|
|
860
873
|
readonly skippedCount: number;
|
|
874
|
+
readonly estimatedCompletionAt: string | null;
|
|
861
875
|
readonly failureReason: string | null;
|
|
876
|
+
readonly holdReason: string | null;
|
|
877
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
862
878
|
readonly lastContactId: string | null;
|
|
863
879
|
readonly createdBy: string | null;
|
|
864
880
|
readonly actorEmail: string;
|
|
@@ -872,7 +888,7 @@ export declare const listRuns: ((input: {
|
|
|
872
888
|
readonly total: number;
|
|
873
889
|
readonly totalPages: number;
|
|
874
890
|
};
|
|
875
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
891
|
+
}, 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>;
|
|
876
892
|
readonly items: (input: {
|
|
877
893
|
readonly id: string;
|
|
878
894
|
readonly status?: string | null | undefined;
|
|
@@ -936,14 +952,17 @@ export declare const listRuns: ((input: {
|
|
|
936
952
|
readonly dispatchedCount: number;
|
|
937
953
|
readonly failedCount: number;
|
|
938
954
|
readonly skippedCount: number;
|
|
955
|
+
readonly estimatedCompletionAt: string | null;
|
|
939
956
|
readonly failureReason: string | null;
|
|
957
|
+
readonly holdReason: string | null;
|
|
958
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
940
959
|
readonly lastContactId: string | null;
|
|
941
960
|
readonly createdBy: string | null;
|
|
942
961
|
readonly actorEmail: string;
|
|
943
962
|
readonly memberRole: string;
|
|
944
963
|
readonly createdAt: string;
|
|
945
964
|
readonly updatedAt: string;
|
|
946
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
965
|
+
}, 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>;
|
|
947
966
|
};
|
|
948
967
|
export declare const scheduleRun: (input: {
|
|
949
968
|
readonly id: string;
|
|
@@ -1007,14 +1026,17 @@ export declare const scheduleRun: (input: {
|
|
|
1007
1026
|
readonly dispatchedCount: number;
|
|
1008
1027
|
readonly failedCount: number;
|
|
1009
1028
|
readonly skippedCount: number;
|
|
1029
|
+
readonly estimatedCompletionAt: string | null;
|
|
1010
1030
|
readonly failureReason: string | null;
|
|
1031
|
+
readonly holdReason: string | null;
|
|
1032
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1011
1033
|
readonly lastContactId: string | null;
|
|
1012
1034
|
readonly createdBy: string | null;
|
|
1013
1035
|
readonly actorEmail: string;
|
|
1014
1036
|
readonly memberRole: string;
|
|
1015
1037
|
readonly createdAt: string;
|
|
1016
1038
|
readonly updatedAt: string;
|
|
1017
|
-
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | 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").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>;
|
|
1018
1040
|
export declare const getRun: (input: {
|
|
1019
1041
|
readonly id: string;
|
|
1020
1042
|
readonly runId: string;
|
|
@@ -1076,14 +1098,17 @@ export declare const getRun: (input: {
|
|
|
1076
1098
|
readonly dispatchedCount: number;
|
|
1077
1099
|
readonly failedCount: number;
|
|
1078
1100
|
readonly skippedCount: number;
|
|
1101
|
+
readonly estimatedCompletionAt: string | null;
|
|
1079
1102
|
readonly failureReason: string | null;
|
|
1103
|
+
readonly holdReason: string | null;
|
|
1104
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1080
1105
|
readonly lastContactId: string | null;
|
|
1081
1106
|
readonly createdBy: string | null;
|
|
1082
1107
|
readonly actorEmail: string;
|
|
1083
1108
|
readonly memberRole: string;
|
|
1084
1109
|
readonly createdAt: string;
|
|
1085
1110
|
readonly updatedAt: string;
|
|
1086
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1111
|
+
}, 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>;
|
|
1087
1112
|
export declare const pauseRun: (input: {
|
|
1088
1113
|
readonly id: string;
|
|
1089
1114
|
readonly runId: string;
|
|
@@ -1147,7 +1172,10 @@ export declare const pauseRun: (input: {
|
|
|
1147
1172
|
readonly dispatchedCount: number;
|
|
1148
1173
|
readonly failedCount: number;
|
|
1149
1174
|
readonly skippedCount: number;
|
|
1175
|
+
readonly estimatedCompletionAt: string | null;
|
|
1150
1176
|
readonly failureReason: string | null;
|
|
1177
|
+
readonly holdReason: string | null;
|
|
1178
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1151
1179
|
readonly lastContactId: string | null;
|
|
1152
1180
|
readonly createdBy: string | null;
|
|
1153
1181
|
readonly actorEmail: string;
|
|
@@ -1155,7 +1183,7 @@ export declare const pauseRun: (input: {
|
|
|
1155
1183
|
readonly createdAt: string;
|
|
1156
1184
|
readonly updatedAt: string;
|
|
1157
1185
|
};
|
|
1158
|
-
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1186
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | 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>;
|
|
1159
1187
|
export declare const resumeRun: (input: {
|
|
1160
1188
|
readonly id: string;
|
|
1161
1189
|
readonly runId: string;
|
|
@@ -1219,7 +1247,10 @@ export declare const resumeRun: (input: {
|
|
|
1219
1247
|
readonly dispatchedCount: number;
|
|
1220
1248
|
readonly failedCount: number;
|
|
1221
1249
|
readonly skippedCount: number;
|
|
1250
|
+
readonly estimatedCompletionAt: string | null;
|
|
1222
1251
|
readonly failureReason: string | null;
|
|
1252
|
+
readonly holdReason: string | null;
|
|
1253
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1223
1254
|
readonly lastContactId: string | null;
|
|
1224
1255
|
readonly createdBy: string | null;
|
|
1225
1256
|
readonly actorEmail: string;
|
|
@@ -1227,7 +1258,7 @@ export declare const resumeRun: (input: {
|
|
|
1227
1258
|
readonly createdAt: string;
|
|
1228
1259
|
readonly updatedAt: string;
|
|
1229
1260
|
};
|
|
1230
|
-
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1261
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | 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>;
|
|
1231
1262
|
export declare const cancelRun: (input: {
|
|
1232
1263
|
readonly id: string;
|
|
1233
1264
|
readonly runId: string;
|
|
@@ -1291,7 +1322,10 @@ export declare const cancelRun: (input: {
|
|
|
1291
1322
|
readonly dispatchedCount: number;
|
|
1292
1323
|
readonly failedCount: number;
|
|
1293
1324
|
readonly skippedCount: number;
|
|
1325
|
+
readonly estimatedCompletionAt: string | null;
|
|
1294
1326
|
readonly failureReason: string | null;
|
|
1327
|
+
readonly holdReason: string | null;
|
|
1328
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1295
1329
|
readonly lastContactId: string | null;
|
|
1296
1330
|
readonly createdBy: string | null;
|
|
1297
1331
|
readonly actorEmail: string;
|
|
@@ -1299,7 +1333,7 @@ export declare const cancelRun: (input: {
|
|
|
1299
1333
|
readonly createdAt: string;
|
|
1300
1334
|
readonly updatedAt: string;
|
|
1301
1335
|
};
|
|
1302
|
-
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1336
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | 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>;
|
|
1303
1337
|
export declare const listRecipients: ((input: {
|
|
1304
1338
|
readonly id: string;
|
|
1305
1339
|
readonly runId: string;
|
|
@@ -1324,7 +1358,7 @@ export declare const listRecipients: ((input: {
|
|
|
1324
1358
|
readonly total: number;
|
|
1325
1359
|
readonly totalPages: number;
|
|
1326
1360
|
};
|
|
1327
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
1361
|
+
}, 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>) & {
|
|
1328
1362
|
readonly pages: (input: {
|
|
1329
1363
|
readonly id: string;
|
|
1330
1364
|
readonly runId: string;
|
|
@@ -1349,7 +1383,7 @@ export declare const listRecipients: ((input: {
|
|
|
1349
1383
|
readonly total: number;
|
|
1350
1384
|
readonly totalPages: number;
|
|
1351
1385
|
};
|
|
1352
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1386
|
+
}, 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>;
|
|
1353
1387
|
readonly items: (input: {
|
|
1354
1388
|
readonly id: string;
|
|
1355
1389
|
readonly runId: string;
|
|
@@ -1366,5 +1400,5 @@ export declare const listRecipients: ((input: {
|
|
|
1366
1400
|
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1367
1401
|
readonly createdAt: string;
|
|
1368
1402
|
readonly updatedAt: string;
|
|
1369
|
-
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
1403
|
+
}, 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>;
|
|
1370
1404
|
};
|
package/dist/effect/campaigns.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
-
import { n as make } from "../operation-
|
|
2
|
+
import { n as make } from "../operation-02YX3hY9.js";
|
|
3
3
|
//#region src/effect/campaigns.ts
|
|
4
4
|
var campaigns_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
archive: () => archive,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
import { Effect } from "effect";
|
|
21
|
-
import type { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, ForbiddenError, InternalError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError,
|
|
21
|
+
import type { BillingProviderError, ConflictError, EmailChannelError, ExternalServiceError, ForbiddenError, GatewayTimeoutError, InternalError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, UnauthorizedError, ValidationError, DeliveryUnavailableError } from "./index";
|
|
22
22
|
export type ErrorCategory = "auth" | "validation" | "notFound" | "conflict" | "throttling" | "billing" | "transient";
|
|
23
23
|
export declare const categoriesOf: (error: unknown) => ReadonlyArray<ErrorCategory>;
|
|
24
24
|
export declare const hasCategory: (error: unknown, category: ErrorCategory) => boolean;
|
|
@@ -29,7 +29,7 @@ type CategoryError = {
|
|
|
29
29
|
readonly conflict: ConflictError;
|
|
30
30
|
readonly throttling: RateLimitedError;
|
|
31
31
|
readonly billing: PaymentRequiredError;
|
|
32
|
-
readonly transient: InternalError | ExternalServiceError | BillingProviderError |
|
|
32
|
+
readonly transient: InternalError | GatewayTimeoutError | ExternalServiceError | BillingProviderError | DeliveryUnavailableError;
|
|
33
33
|
};
|
|
34
34
|
type EmailChannelCategory = "auth" | "validation" | "throttling" | "transient";
|
|
35
35
|
type CategoryHandlerError<Category extends ErrorCategory> = CategoryError[Category] | (Category extends EmailChannelCategory ? EmailChannelError : never);
|
|
@@ -39,7 +39,7 @@ export declare const isNotFoundError: (error: unknown) => error is ResourceNotFo
|
|
|
39
39
|
export declare const isConflictError: (error: unknown) => error is ConflictError;
|
|
40
40
|
export declare const isThrottlingError: (error: unknown) => error is CategoryHandlerError<"throttling">;
|
|
41
41
|
export declare const isBillingError: (error: unknown) => error is PaymentRequiredError;
|
|
42
|
-
/** True for transient failures, including raw request-transport errors
|
|
42
|
+
/** True for transient failures, including raw request-transport errors. */
|
|
43
43
|
export declare const isTransient: (error: unknown) => boolean;
|
|
44
44
|
/** True when an error is declared safe to retry (throttling / transient / transport). */
|
|
45
45
|
export declare const isRetryable: (error: unknown) => boolean;
|
|
@@ -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-
|
|
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";
|
|
2
2
|
export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
package/dist/effect/client.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-DCM6U0-I.js";
|
|
3
3
|
//#region src/effect/client.ts
|
|
4
4
|
var client_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
Service: () => Service,
|