samva 0.3.0 → 0.5.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 +1 -1
- package/README.md +5 -1
- package/dist/{categories-CsUa8ojo.js → categories-B9Nw2v_F.js} +5 -1
- package/dist/client/sdk.gen.d.ts +312 -190
- package/dist/client/types.gen.d.ts +2284 -728
- package/dist/{client-BOghX8fr.js → client-B7gEkvEq.js} +2740 -1036
- package/dist/client-attribution-B2yJBXdZ.js +9 -0
- package/dist/client-attribution.d.ts +2 -0
- package/dist/effect/api-keys.d.ts +51 -51
- package/dist/effect/api-keys.js +1 -1
- package/dist/effect/campaigns.d.ts +269 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.js +1 -1
- package/dist/effect/contacts.d.ts +225 -225
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +308 -293
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/design.d.ts +76 -76
- package/dist/effect/design.js +1 -1
- package/dist/effect/email.d.ts +923 -213
- package/dist/effect/email.js +27 -3
- package/dist/effect/generated-metadata.d.ts +4 -0
- package/dist/effect/generated.d.ts +14948 -10919
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +31 -20
- package/dist/effect/media.d.ts +12 -12
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +243 -61
- package/dist/effect/messages.js +5 -3
- package/dist/effect/operations.d.ts +17 -17
- package/dist/effect/operations.js +1 -1
- package/dist/effect/organizations.d.ts +162 -162
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/retry.js +1 -1
- package/dist/effect/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +375 -277
- package/dist/effect/scheduled-messages.js +5 -3
- package/dist/effect/templates.d.ts +1383 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +81 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +2 -2
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B4FjN6wq.js} +113 -38
- package/dist/promises/errors.gen.d.ts +21 -2
- package/dist/promises/index.d.ts +11 -8
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-CP_nxUus.js} +828 -306
- package/dist/service-map.d.ts +136 -44
- package/package.json +13 -14
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
export declare const list: ((input?: {
|
|
2
|
-
readonly limit?: string | null | undefined;
|
|
3
|
-
readonly page?: string | null | undefined;
|
|
4
2
|
readonly status?: string | null | undefined;
|
|
3
|
+
readonly page?: string | null | undefined;
|
|
4
|
+
readonly limit?: string | null | undefined;
|
|
5
5
|
} | undefined) => import("effect/Effect").Effect<{
|
|
6
6
|
readonly items: readonly {
|
|
7
7
|
readonly id: string & import("effect/Brand").Brand<"CampaignId">;
|
|
8
8
|
readonly name: string;
|
|
9
9
|
readonly channel: "email";
|
|
10
10
|
readonly content: {
|
|
11
|
+
readonly channel: "email";
|
|
11
12
|
readonly email: {
|
|
12
|
-
readonly text?: string | null;
|
|
13
|
-
readonly replyTo?: readonly string[] | null;
|
|
14
13
|
readonly subject?: string | null;
|
|
15
14
|
readonly html?: string | null;
|
|
15
|
+
readonly text?: string | null;
|
|
16
16
|
readonly attachments?: readonly {
|
|
17
17
|
readonly filename: string;
|
|
18
|
+
readonly content?: string | null;
|
|
19
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
18
20
|
readonly contentType: string;
|
|
19
21
|
readonly size: number;
|
|
20
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
21
|
-
readonly content?: string | null;
|
|
22
22
|
}[] | null;
|
|
23
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
24
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
23
25
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
24
26
|
readonly templateSlug?: string | null;
|
|
25
27
|
readonly templateData?: {
|
|
26
28
|
readonly [x: string]: import("./generated").JsonValue;
|
|
27
29
|
} | null;
|
|
28
30
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
31
|
+
readonly replyTo?: readonly string[] | null;
|
|
29
32
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
30
33
|
readonly tracking?: {
|
|
31
34
|
readonly opens?: boolean;
|
|
@@ -35,16 +38,15 @@ export declare const list: ((input?: {
|
|
|
35
38
|
readonly enabled?: boolean | null;
|
|
36
39
|
};
|
|
37
40
|
};
|
|
38
|
-
readonly channel: "email";
|
|
39
41
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
40
42
|
readonly metadata?: {
|
|
41
43
|
readonly [x: string]: import("./generated").JsonValue;
|
|
42
44
|
} | null;
|
|
43
45
|
};
|
|
44
46
|
readonly audience: {
|
|
45
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
46
47
|
readonly includeTags?: readonly string[] | null;
|
|
47
48
|
readonly excludeTags?: readonly string[] | null;
|
|
49
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
48
50
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
49
51
|
};
|
|
50
52
|
readonly policy: {
|
|
@@ -52,12 +54,12 @@ export declare const list: ((input?: {
|
|
|
52
54
|
readonly pageSize?: number | null;
|
|
53
55
|
};
|
|
54
56
|
readonly definition: {
|
|
55
|
-
readonly state: "
|
|
57
|
+
readonly state: "archived" | "editable" | "frozen";
|
|
56
58
|
readonly frozenAt: string | null;
|
|
57
59
|
};
|
|
58
60
|
readonly latestRun: {
|
|
59
61
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
60
|
-
readonly status: "
|
|
62
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
61
63
|
readonly scheduledFor: string;
|
|
62
64
|
readonly completedAt: string | null;
|
|
63
65
|
readonly totalRecipients: number;
|
|
@@ -77,35 +79,38 @@ export declare const list: ((input?: {
|
|
|
77
79
|
readonly total: number;
|
|
78
80
|
readonly totalPages: number;
|
|
79
81
|
};
|
|
80
|
-
}, import("./generated").
|
|
82
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
81
83
|
readonly pages: (input?: {
|
|
82
|
-
readonly limit?: string | null | undefined;
|
|
83
|
-
readonly page?: string | null | undefined;
|
|
84
84
|
readonly status?: string | null | undefined;
|
|
85
|
+
readonly page?: string | null | undefined;
|
|
86
|
+
readonly limit?: string | null | undefined;
|
|
85
87
|
} | undefined) => import("effect/Stream").Stream<{
|
|
86
88
|
readonly items: readonly {
|
|
87
89
|
readonly id: string & import("effect/Brand").Brand<"CampaignId">;
|
|
88
90
|
readonly name: string;
|
|
89
91
|
readonly channel: "email";
|
|
90
92
|
readonly content: {
|
|
93
|
+
readonly channel: "email";
|
|
91
94
|
readonly email: {
|
|
92
|
-
readonly text?: string | null;
|
|
93
|
-
readonly replyTo?: readonly string[] | null;
|
|
94
95
|
readonly subject?: string | null;
|
|
95
96
|
readonly html?: string | null;
|
|
97
|
+
readonly text?: string | null;
|
|
96
98
|
readonly attachments?: readonly {
|
|
97
99
|
readonly filename: string;
|
|
100
|
+
readonly content?: string | null;
|
|
101
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
98
102
|
readonly contentType: string;
|
|
99
103
|
readonly size: number;
|
|
100
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
101
|
-
readonly content?: string | null;
|
|
102
104
|
}[] | null;
|
|
105
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
106
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
103
107
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
104
108
|
readonly templateSlug?: string | null;
|
|
105
109
|
readonly templateData?: {
|
|
106
110
|
readonly [x: string]: import("./generated").JsonValue;
|
|
107
111
|
} | null;
|
|
108
112
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
113
|
+
readonly replyTo?: readonly string[] | null;
|
|
109
114
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
110
115
|
readonly tracking?: {
|
|
111
116
|
readonly opens?: boolean;
|
|
@@ -115,16 +120,15 @@ export declare const list: ((input?: {
|
|
|
115
120
|
readonly enabled?: boolean | null;
|
|
116
121
|
};
|
|
117
122
|
};
|
|
118
|
-
readonly channel: "email";
|
|
119
123
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
120
124
|
readonly metadata?: {
|
|
121
125
|
readonly [x: string]: import("./generated").JsonValue;
|
|
122
126
|
} | null;
|
|
123
127
|
};
|
|
124
128
|
readonly audience: {
|
|
125
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
126
129
|
readonly includeTags?: readonly string[] | null;
|
|
127
130
|
readonly excludeTags?: readonly string[] | null;
|
|
131
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
128
132
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
129
133
|
};
|
|
130
134
|
readonly policy: {
|
|
@@ -132,12 +136,12 @@ export declare const list: ((input?: {
|
|
|
132
136
|
readonly pageSize?: number | null;
|
|
133
137
|
};
|
|
134
138
|
readonly definition: {
|
|
135
|
-
readonly state: "
|
|
139
|
+
readonly state: "archived" | "editable" | "frozen";
|
|
136
140
|
readonly frozenAt: string | null;
|
|
137
141
|
};
|
|
138
142
|
readonly latestRun: {
|
|
139
143
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
140
|
-
readonly status: "
|
|
144
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
141
145
|
readonly scheduledFor: string;
|
|
142
146
|
readonly completedAt: string | null;
|
|
143
147
|
readonly totalRecipients: number;
|
|
@@ -157,34 +161,37 @@ export declare const list: ((input?: {
|
|
|
157
161
|
readonly total: number;
|
|
158
162
|
readonly totalPages: number;
|
|
159
163
|
};
|
|
160
|
-
}, import("./generated").
|
|
164
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
161
165
|
readonly items: (input?: {
|
|
162
|
-
readonly limit?: string | null | undefined;
|
|
163
|
-
readonly page?: string | null | undefined;
|
|
164
166
|
readonly status?: string | null | undefined;
|
|
167
|
+
readonly page?: string | null | undefined;
|
|
168
|
+
readonly limit?: string | null | undefined;
|
|
165
169
|
} | undefined) => import("effect/Stream").Stream<{
|
|
166
170
|
readonly id: string & import("effect/Brand").Brand<"CampaignId">;
|
|
167
171
|
readonly name: string;
|
|
168
172
|
readonly channel: "email";
|
|
169
173
|
readonly content: {
|
|
174
|
+
readonly channel: "email";
|
|
170
175
|
readonly email: {
|
|
171
|
-
readonly text?: string | null;
|
|
172
|
-
readonly replyTo?: readonly string[] | null;
|
|
173
176
|
readonly subject?: string | null;
|
|
174
177
|
readonly html?: string | null;
|
|
178
|
+
readonly text?: string | null;
|
|
175
179
|
readonly attachments?: readonly {
|
|
176
180
|
readonly filename: string;
|
|
181
|
+
readonly content?: string | null;
|
|
182
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
177
183
|
readonly contentType: string;
|
|
178
184
|
readonly size: number;
|
|
179
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
180
|
-
readonly content?: string | null;
|
|
181
185
|
}[] | null;
|
|
186
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
187
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
182
188
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
183
189
|
readonly templateSlug?: string | null;
|
|
184
190
|
readonly templateData?: {
|
|
185
191
|
readonly [x: string]: import("./generated").JsonValue;
|
|
186
192
|
} | null;
|
|
187
193
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
194
|
+
readonly replyTo?: readonly string[] | null;
|
|
188
195
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
189
196
|
readonly tracking?: {
|
|
190
197
|
readonly opens?: boolean;
|
|
@@ -194,16 +201,15 @@ export declare const list: ((input?: {
|
|
|
194
201
|
readonly enabled?: boolean | null;
|
|
195
202
|
};
|
|
196
203
|
};
|
|
197
|
-
readonly channel: "email";
|
|
198
204
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
199
205
|
readonly metadata?: {
|
|
200
206
|
readonly [x: string]: import("./generated").JsonValue;
|
|
201
207
|
} | null;
|
|
202
208
|
};
|
|
203
209
|
readonly audience: {
|
|
204
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
205
210
|
readonly includeTags?: readonly string[] | null;
|
|
206
211
|
readonly excludeTags?: readonly string[] | null;
|
|
212
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
207
213
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
208
214
|
};
|
|
209
215
|
readonly policy: {
|
|
@@ -211,12 +217,12 @@ export declare const list: ((input?: {
|
|
|
211
217
|
readonly pageSize?: number | null;
|
|
212
218
|
};
|
|
213
219
|
readonly definition: {
|
|
214
|
-
readonly state: "
|
|
220
|
+
readonly state: "archived" | "editable" | "frozen";
|
|
215
221
|
readonly frozenAt: string | null;
|
|
216
222
|
};
|
|
217
223
|
readonly latestRun: {
|
|
218
224
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
219
|
-
readonly status: "
|
|
225
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
220
226
|
readonly scheduledFor: string;
|
|
221
227
|
readonly completedAt: string | null;
|
|
222
228
|
readonly totalRecipients: number;
|
|
@@ -229,54 +235,57 @@ export declare const list: ((input?: {
|
|
|
229
235
|
readonly memberRole: string;
|
|
230
236
|
readonly createdAt: string;
|
|
231
237
|
readonly updatedAt: string;
|
|
232
|
-
}, import("./generated").
|
|
238
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
233
239
|
};
|
|
234
240
|
export declare const create: (input: {
|
|
235
241
|
readonly name: string;
|
|
236
242
|
readonly channel: string;
|
|
237
243
|
readonly content: {
|
|
244
|
+
readonly channel: string;
|
|
238
245
|
readonly email: {
|
|
239
|
-
readonly text?: string | null | undefined;
|
|
240
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
241
246
|
readonly subject?: string | null | undefined;
|
|
242
247
|
readonly html?: string | null | undefined;
|
|
248
|
+
readonly text?: string | null | undefined;
|
|
243
249
|
readonly attachments?: readonly {
|
|
244
250
|
readonly filename: string;
|
|
251
|
+
readonly content?: string | null | undefined;
|
|
252
|
+
readonly mediaId?: string | null | undefined;
|
|
245
253
|
readonly contentType: string;
|
|
246
254
|
readonly size: number;
|
|
247
|
-
readonly mediaId?: string | null | undefined;
|
|
248
|
-
readonly content?: string | null | undefined;
|
|
249
255
|
}[] | null | undefined;
|
|
256
|
+
readonly publicationId?: string | undefined;
|
|
257
|
+
readonly inputContractId?: string | undefined;
|
|
250
258
|
readonly templateId?: string | null | undefined;
|
|
251
259
|
readonly templateSlug?: string | null | undefined;
|
|
252
260
|
readonly templateData?: {
|
|
253
261
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
254
262
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
255
263
|
} | null)[] | {
|
|
256
|
-
readonly [x: string]: string | number | boolean |
|
|
264
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
257
265
|
} | null)[] | {
|
|
258
|
-
readonly [x: string]: string | number | boolean |
|
|
266
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
259
267
|
} | null)[] | {
|
|
260
|
-
readonly [x: string]: string | number | boolean |
|
|
268
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
261
269
|
} | null)[] | {
|
|
262
|
-
readonly [x: string]: string | number | boolean |
|
|
270
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
263
271
|
} | null)[] | {
|
|
264
|
-
readonly [x: string]: string | number | boolean |
|
|
272
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
265
273
|
} | null)[] | {
|
|
266
|
-
readonly [x: string]: string | number | boolean |
|
|
274
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
267
275
|
} | null)[] | {
|
|
268
|
-
readonly [x: string]: string | number | boolean |
|
|
276
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
269
277
|
} | null)[] | {
|
|
270
|
-
readonly [x: string]: string | number | boolean |
|
|
278
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
271
279
|
} | null)[] | {
|
|
272
|
-
readonly [x: string]: string | number | boolean |
|
|
280
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
273
281
|
} | null)[] | {
|
|
274
|
-
readonly [x: string]: string | number | boolean |
|
|
282
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
275
283
|
} | null)[] | {
|
|
276
|
-
readonly [x: string]: string | number | boolean |
|
|
284
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
277
285
|
} | null | undefined;
|
|
278
286
|
} | null | undefined;
|
|
279
287
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
288
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
280
289
|
readonly unsubscribeGroupId?: string | null | undefined;
|
|
281
290
|
readonly tracking?: {
|
|
282
291
|
readonly opens?: boolean | undefined;
|
|
@@ -286,40 +295,39 @@ export declare const create: (input: {
|
|
|
286
295
|
readonly enabled?: boolean | null | undefined;
|
|
287
296
|
} | undefined;
|
|
288
297
|
};
|
|
289
|
-
readonly channel: string;
|
|
290
298
|
readonly conversationId?: string | null | undefined;
|
|
291
299
|
readonly metadata?: {
|
|
292
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean |
|
|
293
|
-
readonly [x: string]: string | number | boolean |
|
|
300
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
301
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
294
302
|
} | null)[] | {
|
|
295
|
-
readonly [x: string]: string | number | boolean |
|
|
303
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
296
304
|
} | null)[] | {
|
|
297
|
-
readonly [x: string]: string | number | boolean |
|
|
305
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
298
306
|
} | null)[] | {
|
|
299
|
-
readonly [x: string]: string | number | boolean |
|
|
307
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
300
308
|
} | null)[] | {
|
|
301
|
-
readonly [x: string]: string | number | boolean |
|
|
309
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
302
310
|
} | null)[] | {
|
|
303
|
-
readonly [x: string]: string | number | boolean |
|
|
311
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
304
312
|
} | null)[] | {
|
|
305
|
-
readonly [x: string]: string | number | boolean |
|
|
313
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
306
314
|
} | null)[] | {
|
|
307
|
-
readonly [x: string]: string | number | boolean |
|
|
315
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
308
316
|
} | null)[] | {
|
|
309
|
-
readonly [x: string]: string | number | boolean |
|
|
317
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
310
318
|
} | null)[] | {
|
|
311
|
-
readonly [x: string]: string | number | boolean |
|
|
319
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
312
320
|
} | null)[] | {
|
|
313
|
-
readonly [x: string]: string | number | boolean |
|
|
321
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
314
322
|
} | null)[] | {
|
|
315
|
-
readonly [x: string]: string | number | boolean |
|
|
323
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
316
324
|
} | null | undefined;
|
|
317
325
|
} | null | undefined;
|
|
318
326
|
};
|
|
319
327
|
readonly audience: {
|
|
320
|
-
readonly contactIds?: readonly string[] | null | undefined;
|
|
321
328
|
readonly includeTags?: readonly string[] | null | undefined;
|
|
322
329
|
readonly excludeTags?: readonly string[] | null | undefined;
|
|
330
|
+
readonly contactIds?: readonly string[] | null | undefined;
|
|
323
331
|
readonly groupIds?: readonly string[] | null | undefined;
|
|
324
332
|
};
|
|
325
333
|
readonly policy?: {
|
|
@@ -331,24 +339,27 @@ export declare const create: (input: {
|
|
|
331
339
|
readonly name: string;
|
|
332
340
|
readonly channel: "email";
|
|
333
341
|
readonly content: {
|
|
342
|
+
readonly channel: "email";
|
|
334
343
|
readonly email: {
|
|
335
|
-
readonly text?: string | null;
|
|
336
|
-
readonly replyTo?: readonly string[] | null;
|
|
337
344
|
readonly subject?: string | null;
|
|
338
345
|
readonly html?: string | null;
|
|
346
|
+
readonly text?: string | null;
|
|
339
347
|
readonly attachments?: readonly {
|
|
340
348
|
readonly filename: string;
|
|
349
|
+
readonly content?: string | null;
|
|
350
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
341
351
|
readonly contentType: string;
|
|
342
352
|
readonly size: number;
|
|
343
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
344
|
-
readonly content?: string | null;
|
|
345
353
|
}[] | null;
|
|
354
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
355
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
346
356
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
347
357
|
readonly templateSlug?: string | null;
|
|
348
358
|
readonly templateData?: {
|
|
349
359
|
readonly [x: string]: import("./generated").JsonValue;
|
|
350
360
|
} | null;
|
|
351
361
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
362
|
+
readonly replyTo?: readonly string[] | null;
|
|
352
363
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
353
364
|
readonly tracking?: {
|
|
354
365
|
readonly opens?: boolean;
|
|
@@ -358,16 +369,15 @@ export declare const create: (input: {
|
|
|
358
369
|
readonly enabled?: boolean | null;
|
|
359
370
|
};
|
|
360
371
|
};
|
|
361
|
-
readonly channel: "email";
|
|
362
372
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
363
373
|
readonly metadata?: {
|
|
364
374
|
readonly [x: string]: import("./generated").JsonValue;
|
|
365
375
|
} | null;
|
|
366
376
|
};
|
|
367
377
|
readonly audience: {
|
|
368
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
369
378
|
readonly includeTags?: readonly string[] | null;
|
|
370
379
|
readonly excludeTags?: readonly string[] | null;
|
|
380
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
371
381
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
372
382
|
};
|
|
373
383
|
readonly policy: {
|
|
@@ -375,12 +385,12 @@ export declare const create: (input: {
|
|
|
375
385
|
readonly pageSize?: number | null;
|
|
376
386
|
};
|
|
377
387
|
readonly definition: {
|
|
378
|
-
readonly state: "
|
|
388
|
+
readonly state: "archived" | "editable" | "frozen";
|
|
379
389
|
readonly frozenAt: string | null;
|
|
380
390
|
};
|
|
381
391
|
readonly latestRun: {
|
|
382
392
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
383
|
-
readonly status: "
|
|
393
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
384
394
|
readonly scheduledFor: string;
|
|
385
395
|
readonly completedAt: string | null;
|
|
386
396
|
readonly totalRecipients: number;
|
|
@@ -393,7 +403,7 @@ export declare const create: (input: {
|
|
|
393
403
|
readonly memberRole: string;
|
|
394
404
|
readonly createdAt: string;
|
|
395
405
|
readonly updatedAt: string;
|
|
396
|
-
}, import("./generated").
|
|
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>;
|
|
397
407
|
export declare const get: (input: {
|
|
398
408
|
readonly id: string;
|
|
399
409
|
}) => import("effect/Effect").Effect<{
|
|
@@ -401,24 +411,27 @@ export declare const get: (input: {
|
|
|
401
411
|
readonly name: string;
|
|
402
412
|
readonly channel: "email";
|
|
403
413
|
readonly content: {
|
|
414
|
+
readonly channel: "email";
|
|
404
415
|
readonly email: {
|
|
405
|
-
readonly text?: string | null;
|
|
406
|
-
readonly replyTo?: readonly string[] | null;
|
|
407
416
|
readonly subject?: string | null;
|
|
408
417
|
readonly html?: string | null;
|
|
418
|
+
readonly text?: string | null;
|
|
409
419
|
readonly attachments?: readonly {
|
|
410
420
|
readonly filename: string;
|
|
421
|
+
readonly content?: string | null;
|
|
422
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
411
423
|
readonly contentType: string;
|
|
412
424
|
readonly size: number;
|
|
413
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
414
|
-
readonly content?: string | null;
|
|
415
425
|
}[] | null;
|
|
426
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
427
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
416
428
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
417
429
|
readonly templateSlug?: string | null;
|
|
418
430
|
readonly templateData?: {
|
|
419
431
|
readonly [x: string]: import("./generated").JsonValue;
|
|
420
432
|
} | null;
|
|
421
433
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
434
|
+
readonly replyTo?: readonly string[] | null;
|
|
422
435
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
423
436
|
readonly tracking?: {
|
|
424
437
|
readonly opens?: boolean;
|
|
@@ -428,16 +441,15 @@ export declare const get: (input: {
|
|
|
428
441
|
readonly enabled?: boolean | null;
|
|
429
442
|
};
|
|
430
443
|
};
|
|
431
|
-
readonly channel: "email";
|
|
432
444
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
433
445
|
readonly metadata?: {
|
|
434
446
|
readonly [x: string]: import("./generated").JsonValue;
|
|
435
447
|
} | null;
|
|
436
448
|
};
|
|
437
449
|
readonly audience: {
|
|
438
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
439
450
|
readonly includeTags?: readonly string[] | null;
|
|
440
451
|
readonly excludeTags?: readonly string[] | null;
|
|
452
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
441
453
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
442
454
|
};
|
|
443
455
|
readonly policy: {
|
|
@@ -445,12 +457,12 @@ export declare const get: (input: {
|
|
|
445
457
|
readonly pageSize?: number | null;
|
|
446
458
|
};
|
|
447
459
|
readonly definition: {
|
|
448
|
-
readonly state: "
|
|
460
|
+
readonly state: "archived" | "editable" | "frozen";
|
|
449
461
|
readonly frozenAt: string | null;
|
|
450
462
|
};
|
|
451
463
|
readonly latestRun: {
|
|
452
464
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
453
|
-
readonly status: "
|
|
465
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
454
466
|
readonly scheduledFor: string;
|
|
455
467
|
readonly completedAt: string | null;
|
|
456
468
|
readonly totalRecipients: number;
|
|
@@ -463,7 +475,7 @@ export declare const get: (input: {
|
|
|
463
475
|
readonly memberRole: string;
|
|
464
476
|
readonly createdAt: string;
|
|
465
477
|
readonly updatedAt: string;
|
|
466
|
-
}, import("./generated").
|
|
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>;
|
|
467
479
|
export declare const archive: (input: {
|
|
468
480
|
readonly id: string;
|
|
469
481
|
}) => import("effect/Effect").Effect<{
|
|
@@ -471,24 +483,27 @@ export declare const archive: (input: {
|
|
|
471
483
|
readonly name: string;
|
|
472
484
|
readonly channel: "email";
|
|
473
485
|
readonly content: {
|
|
486
|
+
readonly channel: "email";
|
|
474
487
|
readonly email: {
|
|
475
|
-
readonly text?: string | null;
|
|
476
|
-
readonly replyTo?: readonly string[] | null;
|
|
477
488
|
readonly subject?: string | null;
|
|
478
489
|
readonly html?: string | null;
|
|
490
|
+
readonly text?: string | null;
|
|
479
491
|
readonly attachments?: readonly {
|
|
480
492
|
readonly filename: string;
|
|
493
|
+
readonly content?: string | null;
|
|
494
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
481
495
|
readonly contentType: string;
|
|
482
496
|
readonly size: number;
|
|
483
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
484
|
-
readonly content?: string | null;
|
|
485
497
|
}[] | null;
|
|
498
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
499
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
486
500
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
487
501
|
readonly templateSlug?: string | null;
|
|
488
502
|
readonly templateData?: {
|
|
489
503
|
readonly [x: string]: import("./generated").JsonValue;
|
|
490
504
|
} | null;
|
|
491
505
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
506
|
+
readonly replyTo?: readonly string[] | null;
|
|
492
507
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
493
508
|
readonly tracking?: {
|
|
494
509
|
readonly opens?: boolean;
|
|
@@ -498,16 +513,15 @@ export declare const archive: (input: {
|
|
|
498
513
|
readonly enabled?: boolean | null;
|
|
499
514
|
};
|
|
500
515
|
};
|
|
501
|
-
readonly channel: "email";
|
|
502
516
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
503
517
|
readonly metadata?: {
|
|
504
518
|
readonly [x: string]: import("./generated").JsonValue;
|
|
505
519
|
} | null;
|
|
506
520
|
};
|
|
507
521
|
readonly audience: {
|
|
508
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
509
522
|
readonly includeTags?: readonly string[] | null;
|
|
510
523
|
readonly excludeTags?: readonly string[] | null;
|
|
524
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
511
525
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
512
526
|
};
|
|
513
527
|
readonly policy: {
|
|
@@ -515,12 +529,12 @@ export declare const archive: (input: {
|
|
|
515
529
|
readonly pageSize?: number | null;
|
|
516
530
|
};
|
|
517
531
|
readonly definition: {
|
|
518
|
-
readonly state: "
|
|
532
|
+
readonly state: "archived" | "editable" | "frozen";
|
|
519
533
|
readonly frozenAt: string | null;
|
|
520
534
|
};
|
|
521
535
|
readonly latestRun: {
|
|
522
536
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
523
|
-
readonly status: "
|
|
537
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
524
538
|
readonly scheduledFor: string;
|
|
525
539
|
readonly completedAt: string | null;
|
|
526
540
|
readonly totalRecipients: number;
|
|
@@ -533,57 +547,56 @@ export declare const archive: (input: {
|
|
|
533
547
|
readonly memberRole: string;
|
|
534
548
|
readonly createdAt: string;
|
|
535
549
|
readonly updatedAt: string;
|
|
536
|
-
}, import("./generated").
|
|
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>;
|
|
537
551
|
export declare const update: (input: {
|
|
538
552
|
readonly id: string;
|
|
539
|
-
readonly policy?: {
|
|
540
|
-
readonly unsubscribeGroupId?: string | null | undefined;
|
|
541
|
-
readonly pageSize?: number | null | undefined;
|
|
542
|
-
} | null | undefined;
|
|
543
553
|
readonly name?: string | null | undefined;
|
|
544
554
|
readonly content?: {
|
|
555
|
+
readonly channel: string;
|
|
545
556
|
readonly email: {
|
|
546
|
-
readonly text?: string | null | undefined;
|
|
547
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
548
557
|
readonly subject?: string | null | undefined;
|
|
549
558
|
readonly html?: string | null | undefined;
|
|
559
|
+
readonly text?: string | null | undefined;
|
|
550
560
|
readonly attachments?: readonly {
|
|
551
561
|
readonly filename: string;
|
|
562
|
+
readonly content?: string | null | undefined;
|
|
563
|
+
readonly mediaId?: string | null | undefined;
|
|
552
564
|
readonly contentType: string;
|
|
553
565
|
readonly size: number;
|
|
554
|
-
readonly mediaId?: string | null | undefined;
|
|
555
|
-
readonly content?: string | null | undefined;
|
|
556
566
|
}[] | null | undefined;
|
|
567
|
+
readonly publicationId?: string | undefined;
|
|
568
|
+
readonly inputContractId?: string | undefined;
|
|
557
569
|
readonly templateId?: string | null | undefined;
|
|
558
570
|
readonly templateSlug?: string | null | undefined;
|
|
559
571
|
readonly templateData?: {
|
|
560
572
|
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
561
573
|
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
562
574
|
} | null)[] | {
|
|
563
|
-
readonly [x: string]: string | number | boolean |
|
|
575
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
564
576
|
} | null)[] | {
|
|
565
|
-
readonly [x: string]: string | number | boolean |
|
|
577
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
566
578
|
} | null)[] | {
|
|
567
|
-
readonly [x: string]: string | number | boolean |
|
|
579
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
568
580
|
} | null)[] | {
|
|
569
|
-
readonly [x: string]: string | number | boolean |
|
|
581
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
570
582
|
} | null)[] | {
|
|
571
|
-
readonly [x: string]: string | number | boolean |
|
|
583
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
572
584
|
} | null)[] | {
|
|
573
|
-
readonly [x: string]: string | number | boolean |
|
|
585
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
574
586
|
} | null)[] | {
|
|
575
|
-
readonly [x: string]: string | number | boolean |
|
|
587
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
576
588
|
} | null)[] | {
|
|
577
|
-
readonly [x: string]: string | number | boolean |
|
|
589
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
578
590
|
} | null)[] | {
|
|
579
|
-
readonly [x: string]: string | number | boolean |
|
|
591
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
580
592
|
} | null)[] | {
|
|
581
|
-
readonly [x: string]: string | number | boolean |
|
|
593
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
582
594
|
} | null)[] | {
|
|
583
|
-
readonly [x: string]: string | number | boolean |
|
|
595
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
584
596
|
} | null | undefined;
|
|
585
597
|
} | null | undefined;
|
|
586
598
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
599
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
587
600
|
readonly unsubscribeGroupId?: string | null | undefined;
|
|
588
601
|
readonly tracking?: {
|
|
589
602
|
readonly opens?: boolean | undefined;
|
|
@@ -593,65 +606,71 @@ export declare const update: (input: {
|
|
|
593
606
|
readonly enabled?: boolean | null | undefined;
|
|
594
607
|
} | undefined;
|
|
595
608
|
};
|
|
596
|
-
readonly channel: string;
|
|
597
609
|
readonly conversationId?: string | null | undefined;
|
|
598
610
|
readonly metadata?: {
|
|
599
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean |
|
|
600
|
-
readonly [x: string]: string | number | boolean |
|
|
611
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
|
|
612
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
601
613
|
} | null)[] | {
|
|
602
|
-
readonly [x: string]: string | number | boolean |
|
|
614
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
603
615
|
} | null)[] | {
|
|
604
|
-
readonly [x: string]: string | number | boolean |
|
|
616
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
605
617
|
} | null)[] | {
|
|
606
|
-
readonly [x: string]: string | number | boolean |
|
|
618
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
607
619
|
} | null)[] | {
|
|
608
|
-
readonly [x: string]: string | number | boolean |
|
|
620
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
609
621
|
} | null)[] | {
|
|
610
|
-
readonly [x: string]: string | number | boolean |
|
|
622
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
611
623
|
} | null)[] | {
|
|
612
|
-
readonly [x: string]: string | number | boolean |
|
|
624
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
613
625
|
} | null)[] | {
|
|
614
|
-
readonly [x: string]: string | number | boolean |
|
|
626
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
615
627
|
} | null)[] | {
|
|
616
|
-
readonly [x: string]: string | number | boolean |
|
|
628
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
617
629
|
} | null)[] | {
|
|
618
|
-
readonly [x: string]: string | number | boolean |
|
|
630
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
619
631
|
} | null)[] | {
|
|
620
|
-
readonly [x: string]: string | number | boolean |
|
|
632
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
621
633
|
} | null)[] | {
|
|
622
|
-
readonly [x: string]: string | number | boolean |
|
|
634
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
623
635
|
} | null | undefined;
|
|
624
636
|
} | null | undefined;
|
|
625
637
|
} | null | undefined;
|
|
626
638
|
readonly audience?: {
|
|
627
|
-
readonly contactIds?: readonly string[] | null | undefined;
|
|
628
639
|
readonly includeTags?: readonly string[] | null | undefined;
|
|
629
640
|
readonly excludeTags?: readonly string[] | null | undefined;
|
|
641
|
+
readonly contactIds?: readonly string[] | null | undefined;
|
|
630
642
|
readonly groupIds?: readonly string[] | null | undefined;
|
|
631
643
|
} | null | undefined;
|
|
644
|
+
readonly policy?: {
|
|
645
|
+
readonly unsubscribeGroupId?: string | null | undefined;
|
|
646
|
+
readonly pageSize?: number | null | undefined;
|
|
647
|
+
} | null | undefined;
|
|
632
648
|
}) => import("effect/Effect").Effect<{
|
|
633
649
|
readonly id: string & import("effect/Brand").Brand<"CampaignId">;
|
|
634
650
|
readonly name: string;
|
|
635
651
|
readonly channel: "email";
|
|
636
652
|
readonly content: {
|
|
653
|
+
readonly channel: "email";
|
|
637
654
|
readonly email: {
|
|
638
|
-
readonly text?: string | null;
|
|
639
|
-
readonly replyTo?: readonly string[] | null;
|
|
640
655
|
readonly subject?: string | null;
|
|
641
656
|
readonly html?: string | null;
|
|
657
|
+
readonly text?: string | null;
|
|
642
658
|
readonly attachments?: readonly {
|
|
643
659
|
readonly filename: string;
|
|
660
|
+
readonly content?: string | null;
|
|
661
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
644
662
|
readonly contentType: string;
|
|
645
663
|
readonly size: number;
|
|
646
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
647
|
-
readonly content?: string | null;
|
|
648
664
|
}[] | null;
|
|
665
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
666
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
649
667
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
650
668
|
readonly templateSlug?: string | null;
|
|
651
669
|
readonly templateData?: {
|
|
652
670
|
readonly [x: string]: import("./generated").JsonValue;
|
|
653
671
|
} | null;
|
|
654
672
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
673
|
+
readonly replyTo?: readonly string[] | null;
|
|
655
674
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
656
675
|
readonly tracking?: {
|
|
657
676
|
readonly opens?: boolean;
|
|
@@ -661,16 +680,15 @@ export declare const update: (input: {
|
|
|
661
680
|
readonly enabled?: boolean | null;
|
|
662
681
|
};
|
|
663
682
|
};
|
|
664
|
-
readonly channel: "email";
|
|
665
683
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
666
684
|
readonly metadata?: {
|
|
667
685
|
readonly [x: string]: import("./generated").JsonValue;
|
|
668
686
|
} | null;
|
|
669
687
|
};
|
|
670
688
|
readonly audience: {
|
|
671
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
672
689
|
readonly includeTags?: readonly string[] | null;
|
|
673
690
|
readonly excludeTags?: readonly string[] | null;
|
|
691
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
674
692
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
675
693
|
};
|
|
676
694
|
readonly policy: {
|
|
@@ -678,12 +696,12 @@ export declare const update: (input: {
|
|
|
678
696
|
readonly pageSize?: number | null;
|
|
679
697
|
};
|
|
680
698
|
readonly definition: {
|
|
681
|
-
readonly state: "
|
|
699
|
+
readonly state: "archived" | "editable" | "frozen";
|
|
682
700
|
readonly frozenAt: string | null;
|
|
683
701
|
};
|
|
684
702
|
readonly latestRun: {
|
|
685
703
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
686
|
-
readonly status: "
|
|
704
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
687
705
|
readonly scheduledFor: string;
|
|
688
706
|
readonly completedAt: string | null;
|
|
689
707
|
readonly totalRecipients: number;
|
|
@@ -696,40 +714,43 @@ export declare const update: (input: {
|
|
|
696
714
|
readonly memberRole: string;
|
|
697
715
|
readonly createdAt: string;
|
|
698
716
|
readonly updatedAt: string;
|
|
699
|
-
}, import("./generated").
|
|
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>;
|
|
700
718
|
export declare const listRuns: ((input: {
|
|
701
719
|
readonly id: string;
|
|
702
|
-
readonly limit?: string | null | undefined;
|
|
703
|
-
readonly page?: string | null | undefined;
|
|
704
720
|
readonly status?: string | null | undefined;
|
|
721
|
+
readonly page?: string | null | undefined;
|
|
722
|
+
readonly limit?: string | null | undefined;
|
|
705
723
|
}) => import("effect/Effect").Effect<{
|
|
706
724
|
readonly items: readonly {
|
|
707
725
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
708
726
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
709
|
-
readonly status: "
|
|
727
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
710
728
|
readonly scheduledFor: string;
|
|
711
729
|
readonly idempotencyKey: string | null;
|
|
712
730
|
readonly startedAt: string | null;
|
|
713
731
|
readonly completedAt: string | null;
|
|
714
732
|
readonly contentSnapshot: {
|
|
733
|
+
readonly channel: "email";
|
|
715
734
|
readonly email: {
|
|
716
|
-
readonly text?: string | null;
|
|
717
|
-
readonly replyTo?: readonly string[] | null;
|
|
718
735
|
readonly subject?: string | null;
|
|
719
736
|
readonly html?: string | null;
|
|
737
|
+
readonly text?: string | null;
|
|
720
738
|
readonly attachments?: readonly {
|
|
721
739
|
readonly filename: string;
|
|
740
|
+
readonly content?: string | null;
|
|
741
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
722
742
|
readonly contentType: string;
|
|
723
743
|
readonly size: number;
|
|
724
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
725
|
-
readonly content?: string | null;
|
|
726
744
|
}[] | null;
|
|
745
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
746
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
727
747
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
728
748
|
readonly templateSlug?: string | null;
|
|
729
749
|
readonly templateData?: {
|
|
730
750
|
readonly [x: string]: import("./generated").JsonValue;
|
|
731
751
|
} | null;
|
|
732
752
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
753
|
+
readonly replyTo?: readonly string[] | null;
|
|
733
754
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
734
755
|
readonly tracking?: {
|
|
735
756
|
readonly opens?: boolean;
|
|
@@ -739,16 +760,15 @@ export declare const listRuns: ((input: {
|
|
|
739
760
|
readonly enabled?: boolean | null;
|
|
740
761
|
};
|
|
741
762
|
};
|
|
742
|
-
readonly channel: "email";
|
|
743
763
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
744
764
|
readonly metadata?: {
|
|
745
765
|
readonly [x: string]: import("./generated").JsonValue;
|
|
746
766
|
} | null;
|
|
747
767
|
};
|
|
748
768
|
readonly audienceSnapshot: {
|
|
749
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
750
769
|
readonly includeTags?: readonly string[] | null;
|
|
751
770
|
readonly excludeTags?: readonly string[] | null;
|
|
771
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
752
772
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
753
773
|
};
|
|
754
774
|
readonly policySnapshot: {
|
|
@@ -760,6 +780,8 @@ export declare const listRuns: ((input: {
|
|
|
760
780
|
readonly failedCount: number;
|
|
761
781
|
readonly skippedCount: number;
|
|
762
782
|
readonly failureReason: string | null;
|
|
783
|
+
readonly holdReason: string | null;
|
|
784
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
763
785
|
readonly lastContactId: string | null;
|
|
764
786
|
readonly createdBy: string | null;
|
|
765
787
|
readonly actorEmail: string;
|
|
@@ -773,40 +795,43 @@ export declare const listRuns: ((input: {
|
|
|
773
795
|
readonly total: number;
|
|
774
796
|
readonly totalPages: number;
|
|
775
797
|
};
|
|
776
|
-
}, import("./generated").
|
|
798
|
+
}, 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>) & {
|
|
777
799
|
readonly pages: (input: {
|
|
778
800
|
readonly id: string;
|
|
779
|
-
readonly limit?: string | null | undefined;
|
|
780
|
-
readonly page?: string | null | undefined;
|
|
781
801
|
readonly status?: string | null | undefined;
|
|
802
|
+
readonly page?: string | null | undefined;
|
|
803
|
+
readonly limit?: string | null | undefined;
|
|
782
804
|
}) => import("effect/Stream").Stream<{
|
|
783
805
|
readonly items: readonly {
|
|
784
806
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
785
807
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
786
|
-
readonly status: "
|
|
808
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
787
809
|
readonly scheduledFor: string;
|
|
788
810
|
readonly idempotencyKey: string | null;
|
|
789
811
|
readonly startedAt: string | null;
|
|
790
812
|
readonly completedAt: string | null;
|
|
791
813
|
readonly contentSnapshot: {
|
|
814
|
+
readonly channel: "email";
|
|
792
815
|
readonly email: {
|
|
793
|
-
readonly text?: string | null;
|
|
794
|
-
readonly replyTo?: readonly string[] | null;
|
|
795
816
|
readonly subject?: string | null;
|
|
796
817
|
readonly html?: string | null;
|
|
818
|
+
readonly text?: string | null;
|
|
797
819
|
readonly attachments?: readonly {
|
|
798
820
|
readonly filename: string;
|
|
821
|
+
readonly content?: string | null;
|
|
822
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
799
823
|
readonly contentType: string;
|
|
800
824
|
readonly size: number;
|
|
801
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
802
|
-
readonly content?: string | null;
|
|
803
825
|
}[] | null;
|
|
826
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
827
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
804
828
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
805
829
|
readonly templateSlug?: string | null;
|
|
806
830
|
readonly templateData?: {
|
|
807
831
|
readonly [x: string]: import("./generated").JsonValue;
|
|
808
832
|
} | null;
|
|
809
833
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
834
|
+
readonly replyTo?: readonly string[] | null;
|
|
810
835
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
811
836
|
readonly tracking?: {
|
|
812
837
|
readonly opens?: boolean;
|
|
@@ -816,16 +841,15 @@ export declare const listRuns: ((input: {
|
|
|
816
841
|
readonly enabled?: boolean | null;
|
|
817
842
|
};
|
|
818
843
|
};
|
|
819
|
-
readonly channel: "email";
|
|
820
844
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
821
845
|
readonly metadata?: {
|
|
822
846
|
readonly [x: string]: import("./generated").JsonValue;
|
|
823
847
|
} | null;
|
|
824
848
|
};
|
|
825
849
|
readonly audienceSnapshot: {
|
|
826
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
827
850
|
readonly includeTags?: readonly string[] | null;
|
|
828
851
|
readonly excludeTags?: readonly string[] | null;
|
|
852
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
829
853
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
830
854
|
};
|
|
831
855
|
readonly policySnapshot: {
|
|
@@ -837,6 +861,8 @@ export declare const listRuns: ((input: {
|
|
|
837
861
|
readonly failedCount: number;
|
|
838
862
|
readonly skippedCount: number;
|
|
839
863
|
readonly failureReason: string | null;
|
|
864
|
+
readonly holdReason: string | null;
|
|
865
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
840
866
|
readonly lastContactId: string | null;
|
|
841
867
|
readonly createdBy: string | null;
|
|
842
868
|
readonly actorEmail: string;
|
|
@@ -850,39 +876,42 @@ export declare const listRuns: ((input: {
|
|
|
850
876
|
readonly total: number;
|
|
851
877
|
readonly totalPages: number;
|
|
852
878
|
};
|
|
853
|
-
}, import("./generated").
|
|
879
|
+
}, 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>;
|
|
854
880
|
readonly items: (input: {
|
|
855
881
|
readonly id: string;
|
|
856
|
-
readonly limit?: string | null | undefined;
|
|
857
|
-
readonly page?: string | null | undefined;
|
|
858
882
|
readonly status?: string | null | undefined;
|
|
883
|
+
readonly page?: string | null | undefined;
|
|
884
|
+
readonly limit?: string | null | undefined;
|
|
859
885
|
}) => import("effect/Stream").Stream<{
|
|
860
886
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
861
887
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
862
|
-
readonly status: "
|
|
888
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
863
889
|
readonly scheduledFor: string;
|
|
864
890
|
readonly idempotencyKey: string | null;
|
|
865
891
|
readonly startedAt: string | null;
|
|
866
892
|
readonly completedAt: string | null;
|
|
867
893
|
readonly contentSnapshot: {
|
|
894
|
+
readonly channel: "email";
|
|
868
895
|
readonly email: {
|
|
869
|
-
readonly text?: string | null;
|
|
870
|
-
readonly replyTo?: readonly string[] | null;
|
|
871
896
|
readonly subject?: string | null;
|
|
872
897
|
readonly html?: string | null;
|
|
898
|
+
readonly text?: string | null;
|
|
873
899
|
readonly attachments?: readonly {
|
|
874
900
|
readonly filename: string;
|
|
901
|
+
readonly content?: string | null;
|
|
902
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
875
903
|
readonly contentType: string;
|
|
876
904
|
readonly size: number;
|
|
877
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
878
|
-
readonly content?: string | null;
|
|
879
905
|
}[] | null;
|
|
906
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
907
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
880
908
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
881
909
|
readonly templateSlug?: string | null;
|
|
882
910
|
readonly templateData?: {
|
|
883
911
|
readonly [x: string]: import("./generated").JsonValue;
|
|
884
912
|
} | null;
|
|
885
913
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
914
|
+
readonly replyTo?: readonly string[] | null;
|
|
886
915
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
887
916
|
readonly tracking?: {
|
|
888
917
|
readonly opens?: boolean;
|
|
@@ -892,16 +921,15 @@ export declare const listRuns: ((input: {
|
|
|
892
921
|
readonly enabled?: boolean | null;
|
|
893
922
|
};
|
|
894
923
|
};
|
|
895
|
-
readonly channel: "email";
|
|
896
924
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
897
925
|
readonly metadata?: {
|
|
898
926
|
readonly [x: string]: import("./generated").JsonValue;
|
|
899
927
|
} | null;
|
|
900
928
|
};
|
|
901
929
|
readonly audienceSnapshot: {
|
|
902
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
903
930
|
readonly includeTags?: readonly string[] | null;
|
|
904
931
|
readonly excludeTags?: readonly string[] | null;
|
|
932
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
905
933
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
906
934
|
};
|
|
907
935
|
readonly policySnapshot: {
|
|
@@ -913,45 +941,50 @@ export declare const listRuns: ((input: {
|
|
|
913
941
|
readonly failedCount: number;
|
|
914
942
|
readonly skippedCount: number;
|
|
915
943
|
readonly failureReason: string | null;
|
|
944
|
+
readonly holdReason: string | null;
|
|
945
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
916
946
|
readonly lastContactId: string | null;
|
|
917
947
|
readonly createdBy: string | null;
|
|
918
948
|
readonly actorEmail: string;
|
|
919
949
|
readonly memberRole: string;
|
|
920
950
|
readonly createdAt: string;
|
|
921
951
|
readonly updatedAt: string;
|
|
922
|
-
}, import("./generated").
|
|
952
|
+
}, 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>;
|
|
923
953
|
};
|
|
924
954
|
export declare const scheduleRun: (input: {
|
|
925
955
|
readonly id: string;
|
|
926
|
-
readonly idempotencyKey?: string | null | undefined;
|
|
927
956
|
readonly scheduledFor?: Date | null | undefined;
|
|
957
|
+
readonly idempotencyKey?: string | null | undefined;
|
|
928
958
|
}) => import("effect/Effect").Effect<{
|
|
929
959
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
930
960
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
931
|
-
readonly status: "
|
|
961
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
932
962
|
readonly scheduledFor: string;
|
|
933
963
|
readonly idempotencyKey: string | null;
|
|
934
964
|
readonly startedAt: string | null;
|
|
935
965
|
readonly completedAt: string | null;
|
|
936
966
|
readonly contentSnapshot: {
|
|
967
|
+
readonly channel: "email";
|
|
937
968
|
readonly email: {
|
|
938
|
-
readonly text?: string | null;
|
|
939
|
-
readonly replyTo?: readonly string[] | null;
|
|
940
969
|
readonly subject?: string | null;
|
|
941
970
|
readonly html?: string | null;
|
|
971
|
+
readonly text?: string | null;
|
|
942
972
|
readonly attachments?: readonly {
|
|
943
973
|
readonly filename: string;
|
|
974
|
+
readonly content?: string | null;
|
|
975
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
944
976
|
readonly contentType: string;
|
|
945
977
|
readonly size: number;
|
|
946
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
947
|
-
readonly content?: string | null;
|
|
948
978
|
}[] | null;
|
|
979
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
980
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
949
981
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
950
982
|
readonly templateSlug?: string | null;
|
|
951
983
|
readonly templateData?: {
|
|
952
984
|
readonly [x: string]: import("./generated").JsonValue;
|
|
953
985
|
} | null;
|
|
954
986
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
987
|
+
readonly replyTo?: readonly string[] | null;
|
|
955
988
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
956
989
|
readonly tracking?: {
|
|
957
990
|
readonly opens?: boolean;
|
|
@@ -961,16 +994,15 @@ export declare const scheduleRun: (input: {
|
|
|
961
994
|
readonly enabled?: boolean | null;
|
|
962
995
|
};
|
|
963
996
|
};
|
|
964
|
-
readonly channel: "email";
|
|
965
997
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
966
998
|
readonly metadata?: {
|
|
967
999
|
readonly [x: string]: import("./generated").JsonValue;
|
|
968
1000
|
} | null;
|
|
969
1001
|
};
|
|
970
1002
|
readonly audienceSnapshot: {
|
|
971
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
972
1003
|
readonly includeTags?: readonly string[] | null;
|
|
973
1004
|
readonly excludeTags?: readonly string[] | null;
|
|
1005
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
974
1006
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
975
1007
|
};
|
|
976
1008
|
readonly policySnapshot: {
|
|
@@ -982,43 +1014,48 @@ export declare const scheduleRun: (input: {
|
|
|
982
1014
|
readonly failedCount: number;
|
|
983
1015
|
readonly skippedCount: number;
|
|
984
1016
|
readonly failureReason: string | null;
|
|
1017
|
+
readonly holdReason: string | null;
|
|
1018
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
985
1019
|
readonly lastContactId: string | null;
|
|
986
1020
|
readonly createdBy: string | null;
|
|
987
1021
|
readonly actorEmail: string;
|
|
988
1022
|
readonly memberRole: string;
|
|
989
1023
|
readonly createdAt: string;
|
|
990
1024
|
readonly updatedAt: string;
|
|
991
|
-
}, import("./generated").
|
|
1025
|
+
}, 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>;
|
|
992
1026
|
export declare const getRun: (input: {
|
|
993
1027
|
readonly id: string;
|
|
994
1028
|
readonly runId: string;
|
|
995
1029
|
}) => import("effect/Effect").Effect<{
|
|
996
1030
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
997
1031
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
998
|
-
readonly status: "
|
|
1032
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
999
1033
|
readonly scheduledFor: string;
|
|
1000
1034
|
readonly idempotencyKey: string | null;
|
|
1001
1035
|
readonly startedAt: string | null;
|
|
1002
1036
|
readonly completedAt: string | null;
|
|
1003
1037
|
readonly contentSnapshot: {
|
|
1038
|
+
readonly channel: "email";
|
|
1004
1039
|
readonly email: {
|
|
1005
|
-
readonly text?: string | null;
|
|
1006
|
-
readonly replyTo?: readonly string[] | null;
|
|
1007
1040
|
readonly subject?: string | null;
|
|
1008
1041
|
readonly html?: string | null;
|
|
1042
|
+
readonly text?: string | null;
|
|
1009
1043
|
readonly attachments?: readonly {
|
|
1010
1044
|
readonly filename: string;
|
|
1045
|
+
readonly content?: string | null;
|
|
1046
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1011
1047
|
readonly contentType: string;
|
|
1012
1048
|
readonly size: number;
|
|
1013
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1014
|
-
readonly content?: string | null;
|
|
1015
1049
|
}[] | null;
|
|
1050
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1051
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1016
1052
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1017
1053
|
readonly templateSlug?: string | null;
|
|
1018
1054
|
readonly templateData?: {
|
|
1019
1055
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1020
1056
|
} | null;
|
|
1021
1057
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1058
|
+
readonly replyTo?: readonly string[] | null;
|
|
1022
1059
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1023
1060
|
readonly tracking?: {
|
|
1024
1061
|
readonly opens?: boolean;
|
|
@@ -1028,16 +1065,15 @@ export declare const getRun: (input: {
|
|
|
1028
1065
|
readonly enabled?: boolean | null;
|
|
1029
1066
|
};
|
|
1030
1067
|
};
|
|
1031
|
-
readonly channel: "email";
|
|
1032
1068
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1033
1069
|
readonly metadata?: {
|
|
1034
1070
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1035
1071
|
} | null;
|
|
1036
1072
|
};
|
|
1037
1073
|
readonly audienceSnapshot: {
|
|
1038
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1039
1074
|
readonly includeTags?: readonly string[] | null;
|
|
1040
1075
|
readonly excludeTags?: readonly string[] | null;
|
|
1076
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1041
1077
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1042
1078
|
};
|
|
1043
1079
|
readonly policySnapshot: {
|
|
@@ -1049,13 +1085,15 @@ export declare const getRun: (input: {
|
|
|
1049
1085
|
readonly failedCount: number;
|
|
1050
1086
|
readonly skippedCount: number;
|
|
1051
1087
|
readonly failureReason: string | null;
|
|
1088
|
+
readonly holdReason: string | null;
|
|
1089
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1052
1090
|
readonly lastContactId: string | null;
|
|
1053
1091
|
readonly createdBy: string | null;
|
|
1054
1092
|
readonly actorEmail: string;
|
|
1055
1093
|
readonly memberRole: string;
|
|
1056
1094
|
readonly createdAt: string;
|
|
1057
1095
|
readonly updatedAt: string;
|
|
1058
|
-
}, import("./generated").
|
|
1096
|
+
}, 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>;
|
|
1059
1097
|
export declare const pauseRun: (input: {
|
|
1060
1098
|
readonly id: string;
|
|
1061
1099
|
readonly runId: string;
|
|
@@ -1064,30 +1102,33 @@ export declare const pauseRun: (input: {
|
|
|
1064
1102
|
readonly item: {
|
|
1065
1103
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1066
1104
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
1067
|
-
readonly status: "
|
|
1105
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
1068
1106
|
readonly scheduledFor: string;
|
|
1069
1107
|
readonly idempotencyKey: string | null;
|
|
1070
1108
|
readonly startedAt: string | null;
|
|
1071
1109
|
readonly completedAt: string | null;
|
|
1072
1110
|
readonly contentSnapshot: {
|
|
1111
|
+
readonly channel: "email";
|
|
1073
1112
|
readonly email: {
|
|
1074
|
-
readonly text?: string | null;
|
|
1075
|
-
readonly replyTo?: readonly string[] | null;
|
|
1076
1113
|
readonly subject?: string | null;
|
|
1077
1114
|
readonly html?: string | null;
|
|
1115
|
+
readonly text?: string | null;
|
|
1078
1116
|
readonly attachments?: readonly {
|
|
1079
1117
|
readonly filename: string;
|
|
1118
|
+
readonly content?: string | null;
|
|
1119
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1080
1120
|
readonly contentType: string;
|
|
1081
1121
|
readonly size: number;
|
|
1082
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1083
|
-
readonly content?: string | null;
|
|
1084
1122
|
}[] | null;
|
|
1123
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1124
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1085
1125
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1086
1126
|
readonly templateSlug?: string | null;
|
|
1087
1127
|
readonly templateData?: {
|
|
1088
1128
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1089
1129
|
} | null;
|
|
1090
1130
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1131
|
+
readonly replyTo?: readonly string[] | null;
|
|
1091
1132
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1092
1133
|
readonly tracking?: {
|
|
1093
1134
|
readonly opens?: boolean;
|
|
@@ -1097,16 +1138,15 @@ export declare const pauseRun: (input: {
|
|
|
1097
1138
|
readonly enabled?: boolean | null;
|
|
1098
1139
|
};
|
|
1099
1140
|
};
|
|
1100
|
-
readonly channel: "email";
|
|
1101
1141
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1102
1142
|
readonly metadata?: {
|
|
1103
1143
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1104
1144
|
} | null;
|
|
1105
1145
|
};
|
|
1106
1146
|
readonly audienceSnapshot: {
|
|
1107
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1108
1147
|
readonly includeTags?: readonly string[] | null;
|
|
1109
1148
|
readonly excludeTags?: readonly string[] | null;
|
|
1149
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1110
1150
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1111
1151
|
};
|
|
1112
1152
|
readonly policySnapshot: {
|
|
@@ -1118,6 +1158,8 @@ export declare const pauseRun: (input: {
|
|
|
1118
1158
|
readonly failedCount: number;
|
|
1119
1159
|
readonly skippedCount: number;
|
|
1120
1160
|
readonly failureReason: string | null;
|
|
1161
|
+
readonly holdReason: string | null;
|
|
1162
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1121
1163
|
readonly lastContactId: string | null;
|
|
1122
1164
|
readonly createdBy: string | null;
|
|
1123
1165
|
readonly actorEmail: string;
|
|
@@ -1125,7 +1167,7 @@ export declare const pauseRun: (input: {
|
|
|
1125
1167
|
readonly createdAt: string;
|
|
1126
1168
|
readonly updatedAt: string;
|
|
1127
1169
|
};
|
|
1128
|
-
}, import("./generated").
|
|
1170
|
+
}, 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>;
|
|
1129
1171
|
export declare const resumeRun: (input: {
|
|
1130
1172
|
readonly id: string;
|
|
1131
1173
|
readonly runId: string;
|
|
@@ -1134,30 +1176,33 @@ export declare const resumeRun: (input: {
|
|
|
1134
1176
|
readonly item: {
|
|
1135
1177
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1136
1178
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
1137
|
-
readonly status: "
|
|
1179
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
1138
1180
|
readonly scheduledFor: string;
|
|
1139
1181
|
readonly idempotencyKey: string | null;
|
|
1140
1182
|
readonly startedAt: string | null;
|
|
1141
1183
|
readonly completedAt: string | null;
|
|
1142
1184
|
readonly contentSnapshot: {
|
|
1185
|
+
readonly channel: "email";
|
|
1143
1186
|
readonly email: {
|
|
1144
|
-
readonly text?: string | null;
|
|
1145
|
-
readonly replyTo?: readonly string[] | null;
|
|
1146
1187
|
readonly subject?: string | null;
|
|
1147
1188
|
readonly html?: string | null;
|
|
1189
|
+
readonly text?: string | null;
|
|
1148
1190
|
readonly attachments?: readonly {
|
|
1149
1191
|
readonly filename: string;
|
|
1192
|
+
readonly content?: string | null;
|
|
1193
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1150
1194
|
readonly contentType: string;
|
|
1151
1195
|
readonly size: number;
|
|
1152
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1153
|
-
readonly content?: string | null;
|
|
1154
1196
|
}[] | null;
|
|
1197
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1198
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1155
1199
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1156
1200
|
readonly templateSlug?: string | null;
|
|
1157
1201
|
readonly templateData?: {
|
|
1158
1202
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1159
1203
|
} | null;
|
|
1160
1204
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1205
|
+
readonly replyTo?: readonly string[] | null;
|
|
1161
1206
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1162
1207
|
readonly tracking?: {
|
|
1163
1208
|
readonly opens?: boolean;
|
|
@@ -1167,16 +1212,15 @@ export declare const resumeRun: (input: {
|
|
|
1167
1212
|
readonly enabled?: boolean | null;
|
|
1168
1213
|
};
|
|
1169
1214
|
};
|
|
1170
|
-
readonly channel: "email";
|
|
1171
1215
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1172
1216
|
readonly metadata?: {
|
|
1173
1217
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1174
1218
|
} | null;
|
|
1175
1219
|
};
|
|
1176
1220
|
readonly audienceSnapshot: {
|
|
1177
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1178
1221
|
readonly includeTags?: readonly string[] | null;
|
|
1179
1222
|
readonly excludeTags?: readonly string[] | null;
|
|
1223
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1180
1224
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1181
1225
|
};
|
|
1182
1226
|
readonly policySnapshot: {
|
|
@@ -1188,6 +1232,8 @@ export declare const resumeRun: (input: {
|
|
|
1188
1232
|
readonly failedCount: number;
|
|
1189
1233
|
readonly skippedCount: number;
|
|
1190
1234
|
readonly failureReason: string | null;
|
|
1235
|
+
readonly holdReason: string | null;
|
|
1236
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1191
1237
|
readonly lastContactId: string | null;
|
|
1192
1238
|
readonly createdBy: string | null;
|
|
1193
1239
|
readonly actorEmail: string;
|
|
@@ -1195,7 +1241,7 @@ export declare const resumeRun: (input: {
|
|
|
1195
1241
|
readonly createdAt: string;
|
|
1196
1242
|
readonly updatedAt: string;
|
|
1197
1243
|
};
|
|
1198
|
-
}, import("./generated").
|
|
1244
|
+
}, 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>;
|
|
1199
1245
|
export declare const cancelRun: (input: {
|
|
1200
1246
|
readonly id: string;
|
|
1201
1247
|
readonly runId: string;
|
|
@@ -1204,30 +1250,33 @@ export declare const cancelRun: (input: {
|
|
|
1204
1250
|
readonly item: {
|
|
1205
1251
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1206
1252
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
1207
|
-
readonly status: "
|
|
1253
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
1208
1254
|
readonly scheduledFor: string;
|
|
1209
1255
|
readonly idempotencyKey: string | null;
|
|
1210
1256
|
readonly startedAt: string | null;
|
|
1211
1257
|
readonly completedAt: string | null;
|
|
1212
1258
|
readonly contentSnapshot: {
|
|
1259
|
+
readonly channel: "email";
|
|
1213
1260
|
readonly email: {
|
|
1214
|
-
readonly text?: string | null;
|
|
1215
|
-
readonly replyTo?: readonly string[] | null;
|
|
1216
1261
|
readonly subject?: string | null;
|
|
1217
1262
|
readonly html?: string | null;
|
|
1263
|
+
readonly text?: string | null;
|
|
1218
1264
|
readonly attachments?: readonly {
|
|
1219
1265
|
readonly filename: string;
|
|
1266
|
+
readonly content?: string | null;
|
|
1267
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1220
1268
|
readonly contentType: string;
|
|
1221
1269
|
readonly size: number;
|
|
1222
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1223
|
-
readonly content?: string | null;
|
|
1224
1270
|
}[] | null;
|
|
1271
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1272
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1225
1273
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1226
1274
|
readonly templateSlug?: string | null;
|
|
1227
1275
|
readonly templateData?: {
|
|
1228
1276
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1229
1277
|
} | null;
|
|
1230
1278
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1279
|
+
readonly replyTo?: readonly string[] | null;
|
|
1231
1280
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1232
1281
|
readonly tracking?: {
|
|
1233
1282
|
readonly opens?: boolean;
|
|
@@ -1237,16 +1286,15 @@ export declare const cancelRun: (input: {
|
|
|
1237
1286
|
readonly enabled?: boolean | null;
|
|
1238
1287
|
};
|
|
1239
1288
|
};
|
|
1240
|
-
readonly channel: "email";
|
|
1241
1289
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1242
1290
|
readonly metadata?: {
|
|
1243
1291
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1244
1292
|
} | null;
|
|
1245
1293
|
};
|
|
1246
1294
|
readonly audienceSnapshot: {
|
|
1247
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1248
1295
|
readonly includeTags?: readonly string[] | null;
|
|
1249
1296
|
readonly excludeTags?: readonly string[] | null;
|
|
1297
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1250
1298
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1251
1299
|
};
|
|
1252
1300
|
readonly policySnapshot: {
|
|
@@ -1258,6 +1306,8 @@ export declare const cancelRun: (input: {
|
|
|
1258
1306
|
readonly failedCount: number;
|
|
1259
1307
|
readonly skippedCount: number;
|
|
1260
1308
|
readonly failureReason: string | null;
|
|
1309
|
+
readonly holdReason: string | null;
|
|
1310
|
+
readonly holdDomainId: (string & import("effect/Brand").Brand<"EmailDomainId">) | null;
|
|
1261
1311
|
readonly lastContactId: string | null;
|
|
1262
1312
|
readonly createdBy: string | null;
|
|
1263
1313
|
readonly actorEmail: string;
|
|
@@ -1265,22 +1315,22 @@ export declare const cancelRun: (input: {
|
|
|
1265
1315
|
readonly createdAt: string;
|
|
1266
1316
|
readonly updatedAt: string;
|
|
1267
1317
|
};
|
|
1268
|
-
}, import("./generated").
|
|
1318
|
+
}, 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>;
|
|
1269
1319
|
export declare const listRecipients: ((input: {
|
|
1270
1320
|
readonly id: string;
|
|
1271
1321
|
readonly runId: string;
|
|
1272
|
-
readonly limit?: string | null | undefined;
|
|
1273
|
-
readonly page?: string | null | undefined;
|
|
1274
1322
|
readonly status?: string | null | undefined;
|
|
1323
|
+
readonly page?: string | null | undefined;
|
|
1324
|
+
readonly limit?: string | null | undefined;
|
|
1275
1325
|
}) => import("effect/Effect").Effect<{
|
|
1276
1326
|
readonly items: readonly {
|
|
1277
1327
|
readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
|
|
1278
1328
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1279
1329
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
1280
|
-
readonly status: "
|
|
1330
|
+
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1281
1331
|
readonly messageId: string | null;
|
|
1282
1332
|
readonly failureReason: string | null;
|
|
1283
|
-
readonly skippedReason: "blocked" | "
|
|
1333
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1284
1334
|
readonly createdAt: string;
|
|
1285
1335
|
readonly updatedAt: string;
|
|
1286
1336
|
}[];
|
|
@@ -1290,22 +1340,22 @@ export declare const listRecipients: ((input: {
|
|
|
1290
1340
|
readonly total: number;
|
|
1291
1341
|
readonly totalPages: number;
|
|
1292
1342
|
};
|
|
1293
|
-
}, import("./generated").
|
|
1343
|
+
}, 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>) & {
|
|
1294
1344
|
readonly pages: (input: {
|
|
1295
1345
|
readonly id: string;
|
|
1296
1346
|
readonly runId: string;
|
|
1297
|
-
readonly limit?: string | null | undefined;
|
|
1298
|
-
readonly page?: string | null | undefined;
|
|
1299
1347
|
readonly status?: string | null | undefined;
|
|
1348
|
+
readonly page?: string | null | undefined;
|
|
1349
|
+
readonly limit?: string | null | undefined;
|
|
1300
1350
|
}) => import("effect/Stream").Stream<{
|
|
1301
1351
|
readonly items: readonly {
|
|
1302
1352
|
readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
|
|
1303
1353
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1304
1354
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
1305
|
-
readonly status: "
|
|
1355
|
+
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1306
1356
|
readonly messageId: string | null;
|
|
1307
1357
|
readonly failureReason: string | null;
|
|
1308
|
-
readonly skippedReason: "blocked" | "
|
|
1358
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1309
1359
|
readonly createdAt: string;
|
|
1310
1360
|
readonly updatedAt: string;
|
|
1311
1361
|
}[];
|
|
@@ -1315,22 +1365,22 @@ export declare const listRecipients: ((input: {
|
|
|
1315
1365
|
readonly total: number;
|
|
1316
1366
|
readonly totalPages: number;
|
|
1317
1367
|
};
|
|
1318
|
-
}, import("./generated").
|
|
1368
|
+
}, 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>;
|
|
1319
1369
|
readonly items: (input: {
|
|
1320
1370
|
readonly id: string;
|
|
1321
1371
|
readonly runId: string;
|
|
1322
|
-
readonly limit?: string | null | undefined;
|
|
1323
|
-
readonly page?: string | null | undefined;
|
|
1324
1372
|
readonly status?: string | null | undefined;
|
|
1373
|
+
readonly page?: string | null | undefined;
|
|
1374
|
+
readonly limit?: string | null | undefined;
|
|
1325
1375
|
}) => import("effect/Stream").Stream<{
|
|
1326
1376
|
readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
|
|
1327
1377
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1328
1378
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
1329
|
-
readonly status: "
|
|
1379
|
+
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1330
1380
|
readonly messageId: string | null;
|
|
1331
1381
|
readonly failureReason: string | null;
|
|
1332
|
-
readonly skippedReason: "blocked" | "
|
|
1382
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1333
1383
|
readonly createdAt: string;
|
|
1334
1384
|
readonly updatedAt: string;
|
|
1335
|
-
}, import("./generated").
|
|
1385
|
+
}, 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
1386
|
};
|