samva 0.3.0 → 0.4.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/client/sdk.gen.d.ts +167 -184
- package/dist/client/types.gen.d.ts +1362 -662
- package/dist/{client-BOghX8fr.js → client-BmZK_uCt.js} +1797 -935
- package/dist/client-attribution-BslSOa_8.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 +253 -219
- package/dist/effect/campaigns.js +1 -1
- package/dist/effect/categories.d.ts +6 -6
- 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 +293 -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 +225 -213
- package/dist/effect/email.js +2 -2
- package/dist/effect/generated.d.ts +12174 -11888
- package/dist/effect/index.js +1 -1
- package/dist/effect/internal/client.d.ts +1 -1
- package/dist/effect/internal/operation.d.ts +20 -19
- package/dist/effect/media.d.ts +9 -9
- package/dist/effect/media.js +1 -1
- package/dist/effect/messages.d.ts +64 -61
- package/dist/effect/messages.js +1 -1
- 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/runtime.d.ts +0 -2
- package/dist/effect/scheduled-messages.d.ts +290 -276
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/templates.d.ts +1371 -1554
- package/dist/effect/templates.js +40 -30
- package/dist/effect/webhooks.d.ts +47 -47
- package/dist/effect/webhooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{normalize-BKFjbR9t.js → normalize-BiIJnycv.js} +2 -3
- package/dist/{operation-C2Q4cFJL.js → operation-B1knNlxk.js} +65 -38
- package/dist/promises/index.d.ts +10 -8
- package/dist/promises/index.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-oiy7mOyu.js → promises-n1opem5V.js} +293 -262
- package/dist/service-map.d.ts +70 -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: {
|
|
@@ -773,40 +793,43 @@ export declare const listRuns: ((input: {
|
|
|
773
793
|
readonly total: number;
|
|
774
794
|
readonly totalPages: number;
|
|
775
795
|
};
|
|
776
|
-
}, import("./generated").
|
|
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>) & {
|
|
777
797
|
readonly pages: (input: {
|
|
778
798
|
readonly id: string;
|
|
779
|
-
readonly limit?: string | null | undefined;
|
|
780
|
-
readonly page?: string | null | undefined;
|
|
781
799
|
readonly status?: string | null | undefined;
|
|
800
|
+
readonly page?: string | null | undefined;
|
|
801
|
+
readonly limit?: string | null | undefined;
|
|
782
802
|
}) => import("effect/Stream").Stream<{
|
|
783
803
|
readonly items: readonly {
|
|
784
804
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
785
805
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
786
|
-
readonly status: "
|
|
806
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
787
807
|
readonly scheduledFor: string;
|
|
788
808
|
readonly idempotencyKey: string | null;
|
|
789
809
|
readonly startedAt: string | null;
|
|
790
810
|
readonly completedAt: string | null;
|
|
791
811
|
readonly contentSnapshot: {
|
|
812
|
+
readonly channel: "email";
|
|
792
813
|
readonly email: {
|
|
793
|
-
readonly text?: string | null;
|
|
794
|
-
readonly replyTo?: readonly string[] | null;
|
|
795
814
|
readonly subject?: string | null;
|
|
796
815
|
readonly html?: string | null;
|
|
816
|
+
readonly text?: string | null;
|
|
797
817
|
readonly attachments?: readonly {
|
|
798
818
|
readonly filename: string;
|
|
819
|
+
readonly content?: string | null;
|
|
820
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
799
821
|
readonly contentType: string;
|
|
800
822
|
readonly size: number;
|
|
801
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
802
|
-
readonly content?: string | null;
|
|
803
823
|
}[] | null;
|
|
824
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
825
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
804
826
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
805
827
|
readonly templateSlug?: string | null;
|
|
806
828
|
readonly templateData?: {
|
|
807
829
|
readonly [x: string]: import("./generated").JsonValue;
|
|
808
830
|
} | null;
|
|
809
831
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
832
|
+
readonly replyTo?: readonly string[] | null;
|
|
810
833
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
811
834
|
readonly tracking?: {
|
|
812
835
|
readonly opens?: boolean;
|
|
@@ -816,16 +839,15 @@ export declare const listRuns: ((input: {
|
|
|
816
839
|
readonly enabled?: boolean | null;
|
|
817
840
|
};
|
|
818
841
|
};
|
|
819
|
-
readonly channel: "email";
|
|
820
842
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
821
843
|
readonly metadata?: {
|
|
822
844
|
readonly [x: string]: import("./generated").JsonValue;
|
|
823
845
|
} | null;
|
|
824
846
|
};
|
|
825
847
|
readonly audienceSnapshot: {
|
|
826
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
827
848
|
readonly includeTags?: readonly string[] | null;
|
|
828
849
|
readonly excludeTags?: readonly string[] | null;
|
|
850
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
829
851
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
830
852
|
};
|
|
831
853
|
readonly policySnapshot: {
|
|
@@ -850,39 +872,42 @@ export declare const listRuns: ((input: {
|
|
|
850
872
|
readonly total: number;
|
|
851
873
|
readonly totalPages: number;
|
|
852
874
|
};
|
|
853
|
-
}, import("./generated").
|
|
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>;
|
|
854
876
|
readonly items: (input: {
|
|
855
877
|
readonly id: string;
|
|
856
|
-
readonly limit?: string | null | undefined;
|
|
857
|
-
readonly page?: string | null | undefined;
|
|
858
878
|
readonly status?: string | null | undefined;
|
|
879
|
+
readonly page?: string | null | undefined;
|
|
880
|
+
readonly limit?: string | null | undefined;
|
|
859
881
|
}) => import("effect/Stream").Stream<{
|
|
860
882
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
861
883
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
862
|
-
readonly status: "
|
|
884
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
863
885
|
readonly scheduledFor: string;
|
|
864
886
|
readonly idempotencyKey: string | null;
|
|
865
887
|
readonly startedAt: string | null;
|
|
866
888
|
readonly completedAt: string | null;
|
|
867
889
|
readonly contentSnapshot: {
|
|
890
|
+
readonly channel: "email";
|
|
868
891
|
readonly email: {
|
|
869
|
-
readonly text?: string | null;
|
|
870
|
-
readonly replyTo?: readonly string[] | null;
|
|
871
892
|
readonly subject?: string | null;
|
|
872
893
|
readonly html?: string | null;
|
|
894
|
+
readonly text?: string | null;
|
|
873
895
|
readonly attachments?: readonly {
|
|
874
896
|
readonly filename: string;
|
|
897
|
+
readonly content?: string | null;
|
|
898
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
875
899
|
readonly contentType: string;
|
|
876
900
|
readonly size: number;
|
|
877
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
878
|
-
readonly content?: string | null;
|
|
879
901
|
}[] | null;
|
|
902
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
903
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
880
904
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
881
905
|
readonly templateSlug?: string | null;
|
|
882
906
|
readonly templateData?: {
|
|
883
907
|
readonly [x: string]: import("./generated").JsonValue;
|
|
884
908
|
} | null;
|
|
885
909
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
910
|
+
readonly replyTo?: readonly string[] | null;
|
|
886
911
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
887
912
|
readonly tracking?: {
|
|
888
913
|
readonly opens?: boolean;
|
|
@@ -892,16 +917,15 @@ export declare const listRuns: ((input: {
|
|
|
892
917
|
readonly enabled?: boolean | null;
|
|
893
918
|
};
|
|
894
919
|
};
|
|
895
|
-
readonly channel: "email";
|
|
896
920
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
897
921
|
readonly metadata?: {
|
|
898
922
|
readonly [x: string]: import("./generated").JsonValue;
|
|
899
923
|
} | null;
|
|
900
924
|
};
|
|
901
925
|
readonly audienceSnapshot: {
|
|
902
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
903
926
|
readonly includeTags?: readonly string[] | null;
|
|
904
927
|
readonly excludeTags?: readonly string[] | null;
|
|
928
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
905
929
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
906
930
|
};
|
|
907
931
|
readonly policySnapshot: {
|
|
@@ -919,39 +943,42 @@ export declare const listRuns: ((input: {
|
|
|
919
943
|
readonly memberRole: string;
|
|
920
944
|
readonly createdAt: string;
|
|
921
945
|
readonly updatedAt: string;
|
|
922
|
-
}, import("./generated").
|
|
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>;
|
|
923
947
|
};
|
|
924
948
|
export declare const scheduleRun: (input: {
|
|
925
949
|
readonly id: string;
|
|
926
|
-
readonly idempotencyKey?: string | null | undefined;
|
|
927
950
|
readonly scheduledFor?: Date | null | undefined;
|
|
951
|
+
readonly idempotencyKey?: string | null | undefined;
|
|
928
952
|
}) => import("effect/Effect").Effect<{
|
|
929
953
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
930
954
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
931
|
-
readonly status: "
|
|
955
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
932
956
|
readonly scheduledFor: string;
|
|
933
957
|
readonly idempotencyKey: string | null;
|
|
934
958
|
readonly startedAt: string | null;
|
|
935
959
|
readonly completedAt: string | null;
|
|
936
960
|
readonly contentSnapshot: {
|
|
961
|
+
readonly channel: "email";
|
|
937
962
|
readonly email: {
|
|
938
|
-
readonly text?: string | null;
|
|
939
|
-
readonly replyTo?: readonly string[] | null;
|
|
940
963
|
readonly subject?: string | null;
|
|
941
964
|
readonly html?: string | null;
|
|
965
|
+
readonly text?: string | null;
|
|
942
966
|
readonly attachments?: readonly {
|
|
943
967
|
readonly filename: string;
|
|
968
|
+
readonly content?: string | null;
|
|
969
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
944
970
|
readonly contentType: string;
|
|
945
971
|
readonly size: number;
|
|
946
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
947
|
-
readonly content?: string | null;
|
|
948
972
|
}[] | null;
|
|
973
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
974
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
949
975
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
950
976
|
readonly templateSlug?: string | null;
|
|
951
977
|
readonly templateData?: {
|
|
952
978
|
readonly [x: string]: import("./generated").JsonValue;
|
|
953
979
|
} | null;
|
|
954
980
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
981
|
+
readonly replyTo?: readonly string[] | null;
|
|
955
982
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
956
983
|
readonly tracking?: {
|
|
957
984
|
readonly opens?: boolean;
|
|
@@ -961,16 +988,15 @@ export declare const scheduleRun: (input: {
|
|
|
961
988
|
readonly enabled?: boolean | null;
|
|
962
989
|
};
|
|
963
990
|
};
|
|
964
|
-
readonly channel: "email";
|
|
965
991
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
966
992
|
readonly metadata?: {
|
|
967
993
|
readonly [x: string]: import("./generated").JsonValue;
|
|
968
994
|
} | null;
|
|
969
995
|
};
|
|
970
996
|
readonly audienceSnapshot: {
|
|
971
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
972
997
|
readonly includeTags?: readonly string[] | null;
|
|
973
998
|
readonly excludeTags?: readonly string[] | null;
|
|
999
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
974
1000
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
975
1001
|
};
|
|
976
1002
|
readonly policySnapshot: {
|
|
@@ -988,37 +1014,40 @@ export declare const scheduleRun: (input: {
|
|
|
988
1014
|
readonly memberRole: string;
|
|
989
1015
|
readonly createdAt: string;
|
|
990
1016
|
readonly updatedAt: string;
|
|
991
|
-
}, import("./generated").
|
|
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>;
|
|
992
1018
|
export declare const getRun: (input: {
|
|
993
1019
|
readonly id: string;
|
|
994
1020
|
readonly runId: string;
|
|
995
1021
|
}) => import("effect/Effect").Effect<{
|
|
996
1022
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
997
1023
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
998
|
-
readonly status: "
|
|
1024
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
999
1025
|
readonly scheduledFor: string;
|
|
1000
1026
|
readonly idempotencyKey: string | null;
|
|
1001
1027
|
readonly startedAt: string | null;
|
|
1002
1028
|
readonly completedAt: string | null;
|
|
1003
1029
|
readonly contentSnapshot: {
|
|
1030
|
+
readonly channel: "email";
|
|
1004
1031
|
readonly email: {
|
|
1005
|
-
readonly text?: string | null;
|
|
1006
|
-
readonly replyTo?: readonly string[] | null;
|
|
1007
1032
|
readonly subject?: string | null;
|
|
1008
1033
|
readonly html?: string | null;
|
|
1034
|
+
readonly text?: string | null;
|
|
1009
1035
|
readonly attachments?: readonly {
|
|
1010
1036
|
readonly filename: string;
|
|
1037
|
+
readonly content?: string | null;
|
|
1038
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1011
1039
|
readonly contentType: string;
|
|
1012
1040
|
readonly size: number;
|
|
1013
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1014
|
-
readonly content?: string | null;
|
|
1015
1041
|
}[] | null;
|
|
1042
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1043
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1016
1044
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1017
1045
|
readonly templateSlug?: string | null;
|
|
1018
1046
|
readonly templateData?: {
|
|
1019
1047
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1020
1048
|
} | null;
|
|
1021
1049
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1050
|
+
readonly replyTo?: readonly string[] | null;
|
|
1022
1051
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1023
1052
|
readonly tracking?: {
|
|
1024
1053
|
readonly opens?: boolean;
|
|
@@ -1028,16 +1057,15 @@ export declare const getRun: (input: {
|
|
|
1028
1057
|
readonly enabled?: boolean | null;
|
|
1029
1058
|
};
|
|
1030
1059
|
};
|
|
1031
|
-
readonly channel: "email";
|
|
1032
1060
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1033
1061
|
readonly metadata?: {
|
|
1034
1062
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1035
1063
|
} | null;
|
|
1036
1064
|
};
|
|
1037
1065
|
readonly audienceSnapshot: {
|
|
1038
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1039
1066
|
readonly includeTags?: readonly string[] | null;
|
|
1040
1067
|
readonly excludeTags?: readonly string[] | null;
|
|
1068
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1041
1069
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1042
1070
|
};
|
|
1043
1071
|
readonly policySnapshot: {
|
|
@@ -1055,7 +1083,7 @@ export declare const getRun: (input: {
|
|
|
1055
1083
|
readonly memberRole: string;
|
|
1056
1084
|
readonly createdAt: string;
|
|
1057
1085
|
readonly updatedAt: string;
|
|
1058
|
-
}, import("./generated").
|
|
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>;
|
|
1059
1087
|
export declare const pauseRun: (input: {
|
|
1060
1088
|
readonly id: string;
|
|
1061
1089
|
readonly runId: string;
|
|
@@ -1064,30 +1092,33 @@ export declare const pauseRun: (input: {
|
|
|
1064
1092
|
readonly item: {
|
|
1065
1093
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1066
1094
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
1067
|
-
readonly status: "
|
|
1095
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
1068
1096
|
readonly scheduledFor: string;
|
|
1069
1097
|
readonly idempotencyKey: string | null;
|
|
1070
1098
|
readonly startedAt: string | null;
|
|
1071
1099
|
readonly completedAt: string | null;
|
|
1072
1100
|
readonly contentSnapshot: {
|
|
1101
|
+
readonly channel: "email";
|
|
1073
1102
|
readonly email: {
|
|
1074
|
-
readonly text?: string | null;
|
|
1075
|
-
readonly replyTo?: readonly string[] | null;
|
|
1076
1103
|
readonly subject?: string | null;
|
|
1077
1104
|
readonly html?: string | null;
|
|
1105
|
+
readonly text?: string | null;
|
|
1078
1106
|
readonly attachments?: readonly {
|
|
1079
1107
|
readonly filename: string;
|
|
1108
|
+
readonly content?: string | null;
|
|
1109
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1080
1110
|
readonly contentType: string;
|
|
1081
1111
|
readonly size: number;
|
|
1082
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1083
|
-
readonly content?: string | null;
|
|
1084
1112
|
}[] | null;
|
|
1113
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1114
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1085
1115
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1086
1116
|
readonly templateSlug?: string | null;
|
|
1087
1117
|
readonly templateData?: {
|
|
1088
1118
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1089
1119
|
} | null;
|
|
1090
1120
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1121
|
+
readonly replyTo?: readonly string[] | null;
|
|
1091
1122
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1092
1123
|
readonly tracking?: {
|
|
1093
1124
|
readonly opens?: boolean;
|
|
@@ -1097,16 +1128,15 @@ export declare const pauseRun: (input: {
|
|
|
1097
1128
|
readonly enabled?: boolean | null;
|
|
1098
1129
|
};
|
|
1099
1130
|
};
|
|
1100
|
-
readonly channel: "email";
|
|
1101
1131
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1102
1132
|
readonly metadata?: {
|
|
1103
1133
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1104
1134
|
} | null;
|
|
1105
1135
|
};
|
|
1106
1136
|
readonly audienceSnapshot: {
|
|
1107
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1108
1137
|
readonly includeTags?: readonly string[] | null;
|
|
1109
1138
|
readonly excludeTags?: readonly string[] | null;
|
|
1139
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1110
1140
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1111
1141
|
};
|
|
1112
1142
|
readonly policySnapshot: {
|
|
@@ -1125,7 +1155,7 @@ export declare const pauseRun: (input: {
|
|
|
1125
1155
|
readonly createdAt: string;
|
|
1126
1156
|
readonly updatedAt: string;
|
|
1127
1157
|
};
|
|
1128
|
-
}, import("./generated").
|
|
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>;
|
|
1129
1159
|
export declare const resumeRun: (input: {
|
|
1130
1160
|
readonly id: string;
|
|
1131
1161
|
readonly runId: string;
|
|
@@ -1134,30 +1164,33 @@ export declare const resumeRun: (input: {
|
|
|
1134
1164
|
readonly item: {
|
|
1135
1165
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1136
1166
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
1137
|
-
readonly status: "
|
|
1167
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
1138
1168
|
readonly scheduledFor: string;
|
|
1139
1169
|
readonly idempotencyKey: string | null;
|
|
1140
1170
|
readonly startedAt: string | null;
|
|
1141
1171
|
readonly completedAt: string | null;
|
|
1142
1172
|
readonly contentSnapshot: {
|
|
1173
|
+
readonly channel: "email";
|
|
1143
1174
|
readonly email: {
|
|
1144
|
-
readonly text?: string | null;
|
|
1145
|
-
readonly replyTo?: readonly string[] | null;
|
|
1146
1175
|
readonly subject?: string | null;
|
|
1147
1176
|
readonly html?: string | null;
|
|
1177
|
+
readonly text?: string | null;
|
|
1148
1178
|
readonly attachments?: readonly {
|
|
1149
1179
|
readonly filename: string;
|
|
1180
|
+
readonly content?: string | null;
|
|
1181
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1150
1182
|
readonly contentType: string;
|
|
1151
1183
|
readonly size: number;
|
|
1152
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1153
|
-
readonly content?: string | null;
|
|
1154
1184
|
}[] | null;
|
|
1185
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1186
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1155
1187
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1156
1188
|
readonly templateSlug?: string | null;
|
|
1157
1189
|
readonly templateData?: {
|
|
1158
1190
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1159
1191
|
} | null;
|
|
1160
1192
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1193
|
+
readonly replyTo?: readonly string[] | null;
|
|
1161
1194
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1162
1195
|
readonly tracking?: {
|
|
1163
1196
|
readonly opens?: boolean;
|
|
@@ -1167,16 +1200,15 @@ export declare const resumeRun: (input: {
|
|
|
1167
1200
|
readonly enabled?: boolean | null;
|
|
1168
1201
|
};
|
|
1169
1202
|
};
|
|
1170
|
-
readonly channel: "email";
|
|
1171
1203
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1172
1204
|
readonly metadata?: {
|
|
1173
1205
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1174
1206
|
} | null;
|
|
1175
1207
|
};
|
|
1176
1208
|
readonly audienceSnapshot: {
|
|
1177
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1178
1209
|
readonly includeTags?: readonly string[] | null;
|
|
1179
1210
|
readonly excludeTags?: readonly string[] | null;
|
|
1211
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1180
1212
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1181
1213
|
};
|
|
1182
1214
|
readonly policySnapshot: {
|
|
@@ -1195,7 +1227,7 @@ export declare const resumeRun: (input: {
|
|
|
1195
1227
|
readonly createdAt: string;
|
|
1196
1228
|
readonly updatedAt: string;
|
|
1197
1229
|
};
|
|
1198
|
-
}, import("./generated").
|
|
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>;
|
|
1199
1231
|
export declare const cancelRun: (input: {
|
|
1200
1232
|
readonly id: string;
|
|
1201
1233
|
readonly runId: string;
|
|
@@ -1204,30 +1236,33 @@ export declare const cancelRun: (input: {
|
|
|
1204
1236
|
readonly item: {
|
|
1205
1237
|
readonly id: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1206
1238
|
readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
|
|
1207
|
-
readonly status: "
|
|
1239
|
+
readonly status: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled";
|
|
1208
1240
|
readonly scheduledFor: string;
|
|
1209
1241
|
readonly idempotencyKey: string | null;
|
|
1210
1242
|
readonly startedAt: string | null;
|
|
1211
1243
|
readonly completedAt: string | null;
|
|
1212
1244
|
readonly contentSnapshot: {
|
|
1245
|
+
readonly channel: "email";
|
|
1213
1246
|
readonly email: {
|
|
1214
|
-
readonly text?: string | null;
|
|
1215
|
-
readonly replyTo?: readonly string[] | null;
|
|
1216
1247
|
readonly subject?: string | null;
|
|
1217
1248
|
readonly html?: string | null;
|
|
1249
|
+
readonly text?: string | null;
|
|
1218
1250
|
readonly attachments?: readonly {
|
|
1219
1251
|
readonly filename: string;
|
|
1252
|
+
readonly content?: string | null;
|
|
1253
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1220
1254
|
readonly contentType: string;
|
|
1221
1255
|
readonly size: number;
|
|
1222
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
1223
|
-
readonly content?: string | null;
|
|
1224
1256
|
}[] | null;
|
|
1257
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
1258
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
1225
1259
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1226
1260
|
readonly templateSlug?: string | null;
|
|
1227
1261
|
readonly templateData?: {
|
|
1228
1262
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1229
1263
|
} | null;
|
|
1230
1264
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
1265
|
+
readonly replyTo?: readonly string[] | null;
|
|
1231
1266
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
1232
1267
|
readonly tracking?: {
|
|
1233
1268
|
readonly opens?: boolean;
|
|
@@ -1237,16 +1272,15 @@ export declare const cancelRun: (input: {
|
|
|
1237
1272
|
readonly enabled?: boolean | null;
|
|
1238
1273
|
};
|
|
1239
1274
|
};
|
|
1240
|
-
readonly channel: "email";
|
|
1241
1275
|
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1242
1276
|
readonly metadata?: {
|
|
1243
1277
|
readonly [x: string]: import("./generated").JsonValue;
|
|
1244
1278
|
} | null;
|
|
1245
1279
|
};
|
|
1246
1280
|
readonly audienceSnapshot: {
|
|
1247
|
-
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1248
1281
|
readonly includeTags?: readonly string[] | null;
|
|
1249
1282
|
readonly excludeTags?: readonly string[] | null;
|
|
1283
|
+
readonly contactIds?: readonly (string & import("effect/Brand").Brand<"ContactId">)[] | null;
|
|
1250
1284
|
readonly groupIds?: readonly (string & import("effect/Brand").Brand<"ContactGroupId">)[] | null;
|
|
1251
1285
|
};
|
|
1252
1286
|
readonly policySnapshot: {
|
|
@@ -1265,22 +1299,22 @@ export declare const cancelRun: (input: {
|
|
|
1265
1299
|
readonly createdAt: string;
|
|
1266
1300
|
readonly updatedAt: string;
|
|
1267
1301
|
};
|
|
1268
|
-
}, import("./generated").
|
|
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>;
|
|
1269
1303
|
export declare const listRecipients: ((input: {
|
|
1270
1304
|
readonly id: string;
|
|
1271
1305
|
readonly runId: string;
|
|
1272
|
-
readonly limit?: string | null | undefined;
|
|
1273
|
-
readonly page?: string | null | undefined;
|
|
1274
1306
|
readonly status?: string | null | undefined;
|
|
1307
|
+
readonly page?: string | null | undefined;
|
|
1308
|
+
readonly limit?: string | null | undefined;
|
|
1275
1309
|
}) => import("effect/Effect").Effect<{
|
|
1276
1310
|
readonly items: readonly {
|
|
1277
1311
|
readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
|
|
1278
1312
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1279
1313
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
1280
|
-
readonly status: "
|
|
1314
|
+
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1281
1315
|
readonly messageId: string | null;
|
|
1282
1316
|
readonly failureReason: string | null;
|
|
1283
|
-
readonly skippedReason: "blocked" | "
|
|
1317
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1284
1318
|
readonly createdAt: string;
|
|
1285
1319
|
readonly updatedAt: string;
|
|
1286
1320
|
}[];
|
|
@@ -1290,22 +1324,22 @@ export declare const listRecipients: ((input: {
|
|
|
1290
1324
|
readonly total: number;
|
|
1291
1325
|
readonly totalPages: number;
|
|
1292
1326
|
};
|
|
1293
|
-
}, import("./generated").
|
|
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>) & {
|
|
1294
1328
|
readonly pages: (input: {
|
|
1295
1329
|
readonly id: string;
|
|
1296
1330
|
readonly runId: string;
|
|
1297
|
-
readonly limit?: string | null | undefined;
|
|
1298
|
-
readonly page?: string | null | undefined;
|
|
1299
1331
|
readonly status?: string | null | undefined;
|
|
1332
|
+
readonly page?: string | null | undefined;
|
|
1333
|
+
readonly limit?: string | null | undefined;
|
|
1300
1334
|
}) => import("effect/Stream").Stream<{
|
|
1301
1335
|
readonly items: readonly {
|
|
1302
1336
|
readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
|
|
1303
1337
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1304
1338
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
1305
|
-
readonly status: "
|
|
1339
|
+
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1306
1340
|
readonly messageId: string | null;
|
|
1307
1341
|
readonly failureReason: string | null;
|
|
1308
|
-
readonly skippedReason: "blocked" | "
|
|
1342
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1309
1343
|
readonly createdAt: string;
|
|
1310
1344
|
readonly updatedAt: string;
|
|
1311
1345
|
}[];
|
|
@@ -1315,22 +1349,22 @@ export declare const listRecipients: ((input: {
|
|
|
1315
1349
|
readonly total: number;
|
|
1316
1350
|
readonly totalPages: number;
|
|
1317
1351
|
};
|
|
1318
|
-
}, import("./generated").
|
|
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>;
|
|
1319
1353
|
readonly items: (input: {
|
|
1320
1354
|
readonly id: string;
|
|
1321
1355
|
readonly runId: string;
|
|
1322
|
-
readonly limit?: string | null | undefined;
|
|
1323
|
-
readonly page?: string | null | undefined;
|
|
1324
1356
|
readonly status?: string | null | undefined;
|
|
1357
|
+
readonly page?: string | null | undefined;
|
|
1358
|
+
readonly limit?: string | null | undefined;
|
|
1325
1359
|
}) => import("effect/Stream").Stream<{
|
|
1326
1360
|
readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
|
|
1327
1361
|
readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
|
|
1328
1362
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
1329
|
-
readonly status: "
|
|
1363
|
+
readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
|
|
1330
1364
|
readonly messageId: string | null;
|
|
1331
1365
|
readonly failureReason: string | null;
|
|
1332
|
-
readonly skippedReason: "blocked" | "
|
|
1366
|
+
readonly skippedReason: "blocked" | "inactive" | "no_identity" | "run_cancelled" | "run_failed" | "suppressed" | "unsubscribed" | null;
|
|
1333
1367
|
readonly createdAt: string;
|
|
1334
1368
|
readonly updatedAt: string;
|
|
1335
|
-
}, import("./generated").
|
|
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>;
|
|
1336
1370
|
};
|