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,41 +1,19 @@
|
|
|
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<"ScheduledMessageId">;
|
|
8
|
-
readonly status: "
|
|
8
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
9
9
|
readonly scheduledFor: string;
|
|
10
10
|
readonly timezone: string;
|
|
11
11
|
readonly send: {
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
readonly attachments?: readonly {
|
|
18
|
-
readonly filename: string;
|
|
19
|
-
readonly contentType: string;
|
|
20
|
-
readonly size: number;
|
|
21
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
22
|
-
readonly content?: string | null;
|
|
23
|
-
}[] | null;
|
|
24
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
25
|
-
readonly templateSlug?: string | null;
|
|
26
|
-
readonly templateData?: {
|
|
27
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
28
|
-
} | null;
|
|
29
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
30
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
31
|
-
readonly tracking?: {
|
|
32
|
-
readonly opens?: boolean;
|
|
33
|
-
readonly clicks?: boolean;
|
|
34
|
-
};
|
|
35
|
-
readonly footer?: {
|
|
36
|
-
readonly enabled?: boolean | null;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
12
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
13
|
+
readonly metadata?: {
|
|
14
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
15
|
+
} | null;
|
|
16
|
+
readonly channel: "email";
|
|
39
17
|
readonly to: readonly ({
|
|
40
18
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
41
19
|
} | {
|
|
@@ -43,7 +21,6 @@ export declare const list: ((input?: {
|
|
|
43
21
|
readonly name?: string | null;
|
|
44
22
|
readonly displayName?: string | null;
|
|
45
23
|
})[];
|
|
46
|
-
readonly channel: "email";
|
|
47
24
|
readonly cc?: readonly ({
|
|
48
25
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
49
26
|
} | {
|
|
@@ -58,14 +35,39 @@ export declare const list: ((input?: {
|
|
|
58
35
|
readonly name?: string | null;
|
|
59
36
|
readonly displayName?: string | null;
|
|
60
37
|
})[] | null;
|
|
61
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
62
|
-
readonly metadata?: {
|
|
63
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
64
|
-
} | null;
|
|
65
38
|
readonly from?: {
|
|
66
39
|
readonly email: string;
|
|
67
40
|
readonly name?: string | null;
|
|
68
41
|
} | null;
|
|
42
|
+
readonly email: {
|
|
43
|
+
readonly subject?: string | null;
|
|
44
|
+
readonly html?: string | null;
|
|
45
|
+
readonly text?: string | null;
|
|
46
|
+
readonly attachments?: readonly {
|
|
47
|
+
readonly filename: string;
|
|
48
|
+
readonly content?: string | null;
|
|
49
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
50
|
+
readonly contentType: string;
|
|
51
|
+
readonly size: number;
|
|
52
|
+
}[] | null;
|
|
53
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
54
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
55
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
56
|
+
readonly templateSlug?: string | null;
|
|
57
|
+
readonly templateData?: {
|
|
58
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
59
|
+
} | null;
|
|
60
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
61
|
+
readonly replyTo?: readonly string[] | null;
|
|
62
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
63
|
+
readonly tracking?: {
|
|
64
|
+
readonly opens?: boolean;
|
|
65
|
+
readonly clicks?: boolean;
|
|
66
|
+
};
|
|
67
|
+
readonly footer?: {
|
|
68
|
+
readonly enabled?: boolean | null;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
69
71
|
};
|
|
70
72
|
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
71
73
|
readonly idempotencyKey: string | null;
|
|
@@ -84,45 +86,23 @@ export declare const list: ((input?: {
|
|
|
84
86
|
readonly total: number;
|
|
85
87
|
readonly totalPages: number;
|
|
86
88
|
};
|
|
87
|
-
}, import("./generated").
|
|
89
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
|
|
88
90
|
readonly pages: (input?: {
|
|
89
|
-
readonly limit?: string | null | undefined;
|
|
90
|
-
readonly page?: string | null | undefined;
|
|
91
91
|
readonly status?: string | null | undefined;
|
|
92
|
+
readonly page?: string | null | undefined;
|
|
93
|
+
readonly limit?: string | null | undefined;
|
|
92
94
|
} | undefined) => import("effect/Stream").Stream<{
|
|
93
95
|
readonly items: readonly {
|
|
94
96
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
95
|
-
readonly status: "
|
|
97
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
96
98
|
readonly scheduledFor: string;
|
|
97
99
|
readonly timezone: string;
|
|
98
100
|
readonly send: {
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
readonly
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
readonly attachments?: readonly {
|
|
105
|
-
readonly filename: string;
|
|
106
|
-
readonly contentType: string;
|
|
107
|
-
readonly size: number;
|
|
108
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
109
|
-
readonly content?: string | null;
|
|
110
|
-
}[] | null;
|
|
111
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
112
|
-
readonly templateSlug?: string | null;
|
|
113
|
-
readonly templateData?: {
|
|
114
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
115
|
-
} | null;
|
|
116
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
117
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
118
|
-
readonly tracking?: {
|
|
119
|
-
readonly opens?: boolean;
|
|
120
|
-
readonly clicks?: boolean;
|
|
121
|
-
};
|
|
122
|
-
readonly footer?: {
|
|
123
|
-
readonly enabled?: boolean | null;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
101
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
102
|
+
readonly metadata?: {
|
|
103
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
104
|
+
} | null;
|
|
105
|
+
readonly channel: "email";
|
|
126
106
|
readonly to: readonly ({
|
|
127
107
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
128
108
|
} | {
|
|
@@ -130,7 +110,6 @@ export declare const list: ((input?: {
|
|
|
130
110
|
readonly name?: string | null;
|
|
131
111
|
readonly displayName?: string | null;
|
|
132
112
|
})[];
|
|
133
|
-
readonly channel: "email";
|
|
134
113
|
readonly cc?: readonly ({
|
|
135
114
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
136
115
|
} | {
|
|
@@ -145,14 +124,39 @@ export declare const list: ((input?: {
|
|
|
145
124
|
readonly name?: string | null;
|
|
146
125
|
readonly displayName?: string | null;
|
|
147
126
|
})[] | null;
|
|
148
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
149
|
-
readonly metadata?: {
|
|
150
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
151
|
-
} | null;
|
|
152
127
|
readonly from?: {
|
|
153
128
|
readonly email: string;
|
|
154
129
|
readonly name?: string | null;
|
|
155
130
|
} | null;
|
|
131
|
+
readonly email: {
|
|
132
|
+
readonly subject?: string | null;
|
|
133
|
+
readonly html?: string | null;
|
|
134
|
+
readonly text?: string | null;
|
|
135
|
+
readonly attachments?: readonly {
|
|
136
|
+
readonly filename: string;
|
|
137
|
+
readonly content?: string | null;
|
|
138
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
139
|
+
readonly contentType: string;
|
|
140
|
+
readonly size: number;
|
|
141
|
+
}[] | null;
|
|
142
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
143
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
144
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
145
|
+
readonly templateSlug?: string | null;
|
|
146
|
+
readonly templateData?: {
|
|
147
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
148
|
+
} | null;
|
|
149
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
150
|
+
readonly replyTo?: readonly string[] | null;
|
|
151
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
152
|
+
readonly tracking?: {
|
|
153
|
+
readonly opens?: boolean;
|
|
154
|
+
readonly clicks?: boolean;
|
|
155
|
+
};
|
|
156
|
+
readonly footer?: {
|
|
157
|
+
readonly enabled?: boolean | null;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
156
160
|
};
|
|
157
161
|
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
158
162
|
readonly idempotencyKey: string | null;
|
|
@@ -171,44 +175,22 @@ export declare const list: ((input?: {
|
|
|
171
175
|
readonly total: number;
|
|
172
176
|
readonly totalPages: number;
|
|
173
177
|
};
|
|
174
|
-
}, import("./generated").
|
|
178
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
175
179
|
readonly items: (input?: {
|
|
176
|
-
readonly limit?: string | null | undefined;
|
|
177
|
-
readonly page?: string | null | undefined;
|
|
178
180
|
readonly status?: string | null | undefined;
|
|
181
|
+
readonly page?: string | null | undefined;
|
|
182
|
+
readonly limit?: string | null | undefined;
|
|
179
183
|
} | undefined) => import("effect/Stream").Stream<{
|
|
180
184
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
181
|
-
readonly status: "
|
|
185
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
182
186
|
readonly scheduledFor: string;
|
|
183
187
|
readonly timezone: string;
|
|
184
188
|
readonly send: {
|
|
185
|
-
readonly
|
|
186
|
-
|
|
187
|
-
readonly
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
readonly attachments?: readonly {
|
|
191
|
-
readonly filename: string;
|
|
192
|
-
readonly contentType: string;
|
|
193
|
-
readonly size: number;
|
|
194
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
195
|
-
readonly content?: string | null;
|
|
196
|
-
}[] | null;
|
|
197
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
198
|
-
readonly templateSlug?: string | null;
|
|
199
|
-
readonly templateData?: {
|
|
200
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
201
|
-
} | null;
|
|
202
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
203
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
204
|
-
readonly tracking?: {
|
|
205
|
-
readonly opens?: boolean;
|
|
206
|
-
readonly clicks?: boolean;
|
|
207
|
-
};
|
|
208
|
-
readonly footer?: {
|
|
209
|
-
readonly enabled?: boolean | null;
|
|
210
|
-
};
|
|
211
|
-
};
|
|
189
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
190
|
+
readonly metadata?: {
|
|
191
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
192
|
+
} | null;
|
|
193
|
+
readonly channel: "email";
|
|
212
194
|
readonly to: readonly ({
|
|
213
195
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
214
196
|
} | {
|
|
@@ -216,7 +198,6 @@ export declare const list: ((input?: {
|
|
|
216
198
|
readonly name?: string | null;
|
|
217
199
|
readonly displayName?: string | null;
|
|
218
200
|
})[];
|
|
219
|
-
readonly channel: "email";
|
|
220
201
|
readonly cc?: readonly ({
|
|
221
202
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
222
203
|
} | {
|
|
@@ -231,14 +212,39 @@ export declare const list: ((input?: {
|
|
|
231
212
|
readonly name?: string | null;
|
|
232
213
|
readonly displayName?: string | null;
|
|
233
214
|
})[] | null;
|
|
234
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
235
|
-
readonly metadata?: {
|
|
236
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
237
|
-
} | null;
|
|
238
215
|
readonly from?: {
|
|
239
216
|
readonly email: string;
|
|
240
217
|
readonly name?: string | null;
|
|
241
218
|
} | null;
|
|
219
|
+
readonly email: {
|
|
220
|
+
readonly subject?: string | null;
|
|
221
|
+
readonly html?: string | null;
|
|
222
|
+
readonly text?: string | null;
|
|
223
|
+
readonly attachments?: readonly {
|
|
224
|
+
readonly filename: string;
|
|
225
|
+
readonly content?: string | null;
|
|
226
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
227
|
+
readonly contentType: string;
|
|
228
|
+
readonly size: number;
|
|
229
|
+
}[] | null;
|
|
230
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
231
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
232
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
233
|
+
readonly templateSlug?: string | null;
|
|
234
|
+
readonly templateData?: {
|
|
235
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
236
|
+
} | null;
|
|
237
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
238
|
+
readonly replyTo?: readonly string[] | null;
|
|
239
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
240
|
+
readonly tracking?: {
|
|
241
|
+
readonly opens?: boolean;
|
|
242
|
+
readonly clicks?: boolean;
|
|
243
|
+
};
|
|
244
|
+
readonly footer?: {
|
|
245
|
+
readonly enabled?: boolean | null;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
242
248
|
};
|
|
243
249
|
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
244
250
|
readonly idempotencyKey: string | null;
|
|
@@ -250,52 +256,108 @@ export declare const list: ((input?: {
|
|
|
250
256
|
readonly memberRole: string;
|
|
251
257
|
readonly createdAt: string;
|
|
252
258
|
readonly updatedAt: string;
|
|
253
|
-
}, import("./generated").
|
|
259
|
+
}, import("./generated").ForbiddenError | import("effect/unstable/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
|
|
254
260
|
};
|
|
255
261
|
export declare const create: (input: {
|
|
256
262
|
readonly send: {
|
|
263
|
+
readonly conversationId?: string | null | undefined;
|
|
264
|
+
readonly metadata?: {
|
|
265
|
+
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 | {
|
|
266
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
267
|
+
} | null)[] | {
|
|
268
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
269
|
+
} | null)[] | {
|
|
270
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
271
|
+
} | null)[] | {
|
|
272
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
273
|
+
} | null)[] | {
|
|
274
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
275
|
+
} | null)[] | {
|
|
276
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
277
|
+
} | null)[] | {
|
|
278
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
279
|
+
} | null)[] | {
|
|
280
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
281
|
+
} | null)[] | {
|
|
282
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
283
|
+
} | null)[] | {
|
|
284
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
285
|
+
} | null)[] | {
|
|
286
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
287
|
+
} | null)[] | {
|
|
288
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
289
|
+
} | null | undefined;
|
|
290
|
+
} | null | undefined;
|
|
291
|
+
readonly channel: string;
|
|
292
|
+
readonly to: readonly ({
|
|
293
|
+
readonly contactId: string;
|
|
294
|
+
} | {
|
|
295
|
+
readonly email: string;
|
|
296
|
+
readonly name?: string | null | undefined;
|
|
297
|
+
readonly displayName?: string | null | undefined;
|
|
298
|
+
})[];
|
|
299
|
+
readonly cc?: readonly ({
|
|
300
|
+
readonly contactId: string;
|
|
301
|
+
} | {
|
|
302
|
+
readonly email: string;
|
|
303
|
+
readonly name?: string | null | undefined;
|
|
304
|
+
readonly displayName?: string | null | undefined;
|
|
305
|
+
})[] | null | undefined;
|
|
306
|
+
readonly bcc?: readonly ({
|
|
307
|
+
readonly contactId: string;
|
|
308
|
+
} | {
|
|
309
|
+
readonly email: string;
|
|
310
|
+
readonly name?: string | null | undefined;
|
|
311
|
+
readonly displayName?: string | null | undefined;
|
|
312
|
+
})[] | null | undefined;
|
|
313
|
+
readonly from?: {
|
|
314
|
+
readonly email: string;
|
|
315
|
+
readonly name?: string | null | undefined;
|
|
316
|
+
} | null | undefined;
|
|
257
317
|
readonly email: {
|
|
258
|
-
readonly text?: string | null | undefined;
|
|
259
|
-
readonly replyTo?: readonly string[] | null | undefined;
|
|
260
318
|
readonly subject?: string | null | undefined;
|
|
261
319
|
readonly html?: string | null | undefined;
|
|
320
|
+
readonly text?: string | null | undefined;
|
|
262
321
|
readonly attachments?: readonly {
|
|
263
322
|
readonly filename: string;
|
|
323
|
+
readonly content?: string | null | undefined;
|
|
324
|
+
readonly mediaId?: string | null | undefined;
|
|
264
325
|
readonly contentType: string;
|
|
265
326
|
readonly size: number;
|
|
266
|
-
readonly mediaId?: string | null | undefined;
|
|
267
|
-
readonly content?: string | null | undefined;
|
|
268
327
|
}[] | null | undefined;
|
|
328
|
+
readonly publicationId?: string | undefined;
|
|
329
|
+
readonly inputContractId?: string | undefined;
|
|
269
330
|
readonly templateId?: string | null | undefined;
|
|
270
331
|
readonly templateSlug?: string | null | undefined;
|
|
271
332
|
readonly templateData?: {
|
|
272
|
-
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 |
|
|
273
|
-
readonly [x: string]: string | number | boolean |
|
|
333
|
+
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 | {
|
|
334
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
274
335
|
} | null)[] | {
|
|
275
|
-
readonly [x: string]: string | number | boolean |
|
|
336
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
276
337
|
} | null)[] | {
|
|
277
|
-
readonly [x: string]: string | number | boolean |
|
|
338
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
278
339
|
} | null)[] | {
|
|
279
|
-
readonly [x: string]: string | number | boolean |
|
|
340
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
280
341
|
} | null)[] | {
|
|
281
|
-
readonly [x: string]: string | number | boolean |
|
|
342
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
282
343
|
} | null)[] | {
|
|
283
|
-
readonly [x: string]: string | number | boolean |
|
|
344
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
284
345
|
} | null)[] | {
|
|
285
|
-
readonly [x: string]: string | number | boolean |
|
|
346
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
286
347
|
} | null)[] | {
|
|
287
|
-
readonly [x: string]: string | number | boolean |
|
|
348
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
288
349
|
} | null)[] | {
|
|
289
|
-
readonly [x: string]: string | number | boolean |
|
|
350
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
290
351
|
} | null)[] | {
|
|
291
|
-
readonly [x: string]: string | number | boolean |
|
|
352
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
292
353
|
} | null)[] | {
|
|
293
|
-
readonly [x: string]: string | number | boolean |
|
|
354
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
294
355
|
} | null)[] | {
|
|
295
|
-
readonly [x: string]: string | number | boolean |
|
|
356
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
296
357
|
} | null | undefined;
|
|
297
358
|
} | null | undefined;
|
|
298
359
|
readonly inReplyToMessageId?: string | null | undefined;
|
|
360
|
+
readonly replyTo?: readonly string[] | null | undefined;
|
|
299
361
|
readonly unsubscribeGroupId?: string | null | undefined;
|
|
300
362
|
readonly tracking?: {
|
|
301
363
|
readonly opens?: boolean | undefined;
|
|
@@ -305,98 +367,22 @@ export declare const create: (input: {
|
|
|
305
367
|
readonly enabled?: boolean | null | undefined;
|
|
306
368
|
} | undefined;
|
|
307
369
|
};
|
|
308
|
-
readonly to: readonly ({
|
|
309
|
-
readonly contactId: string;
|
|
310
|
-
} | {
|
|
311
|
-
readonly email: string;
|
|
312
|
-
readonly name?: string | null | undefined;
|
|
313
|
-
readonly displayName?: string | null | undefined;
|
|
314
|
-
})[];
|
|
315
|
-
readonly channel: string;
|
|
316
|
-
readonly cc?: readonly ({
|
|
317
|
-
readonly contactId: string;
|
|
318
|
-
} | {
|
|
319
|
-
readonly email: string;
|
|
320
|
-
readonly name?: string | null | undefined;
|
|
321
|
-
readonly displayName?: string | null | undefined;
|
|
322
|
-
})[] | null | undefined;
|
|
323
|
-
readonly bcc?: readonly ({
|
|
324
|
-
readonly contactId: string;
|
|
325
|
-
} | {
|
|
326
|
-
readonly email: string;
|
|
327
|
-
readonly name?: string | null | undefined;
|
|
328
|
-
readonly displayName?: string | null | undefined;
|
|
329
|
-
})[] | null | undefined;
|
|
330
|
-
readonly conversationId?: string | null | undefined;
|
|
331
|
-
readonly metadata?: {
|
|
332
|
-
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 | {
|
|
333
|
-
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
334
|
-
} | null)[] | {
|
|
335
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
336
|
-
} | null)[] | {
|
|
337
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
338
|
-
} | null)[] | {
|
|
339
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
340
|
-
} | null)[] | {
|
|
341
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
342
|
-
} | null)[] | {
|
|
343
|
-
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 | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
344
|
-
} | null)[] | {
|
|
345
|
-
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 | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
346
|
-
} | null)[] | {
|
|
347
|
-
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 | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
348
|
-
} | null)[] | {
|
|
349
|
-
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 | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
350
|
-
} | null)[] | {
|
|
351
|
-
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 | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
352
|
-
} | null)[] | {
|
|
353
|
-
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 | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
354
|
-
} | null)[] | {
|
|
355
|
-
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 | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
|
|
356
|
-
} | null | undefined;
|
|
357
|
-
} | null | undefined;
|
|
358
|
-
readonly from?: {
|
|
359
|
-
readonly email: string;
|
|
360
|
-
readonly name?: string | null | undefined;
|
|
361
|
-
} | null | undefined;
|
|
362
370
|
};
|
|
363
371
|
readonly scheduledFor: Date;
|
|
364
|
-
readonly idempotencyKey?: string | null | undefined;
|
|
365
372
|
readonly timezone?: string | null | undefined;
|
|
373
|
+
readonly idempotencyKey?: string | null | undefined;
|
|
366
374
|
readonly referenceId?: string | null | undefined;
|
|
367
375
|
}) => import("effect/Effect").Effect<{
|
|
368
376
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
369
|
-
readonly status: "
|
|
377
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
370
378
|
readonly scheduledFor: string;
|
|
371
379
|
readonly timezone: string;
|
|
372
380
|
readonly send: {
|
|
373
|
-
readonly
|
|
374
|
-
|
|
375
|
-
readonly
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
readonly attachments?: readonly {
|
|
379
|
-
readonly filename: string;
|
|
380
|
-
readonly contentType: string;
|
|
381
|
-
readonly size: number;
|
|
382
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
383
|
-
readonly content?: string | null;
|
|
384
|
-
}[] | null;
|
|
385
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
386
|
-
readonly templateSlug?: string | null;
|
|
387
|
-
readonly templateData?: {
|
|
388
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
389
|
-
} | null;
|
|
390
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
391
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
392
|
-
readonly tracking?: {
|
|
393
|
-
readonly opens?: boolean;
|
|
394
|
-
readonly clicks?: boolean;
|
|
395
|
-
};
|
|
396
|
-
readonly footer?: {
|
|
397
|
-
readonly enabled?: boolean | null;
|
|
398
|
-
};
|
|
399
|
-
};
|
|
381
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
382
|
+
readonly metadata?: {
|
|
383
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
384
|
+
} | null;
|
|
385
|
+
readonly channel: "email";
|
|
400
386
|
readonly to: readonly ({
|
|
401
387
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
402
388
|
} | {
|
|
@@ -404,7 +390,6 @@ export declare const create: (input: {
|
|
|
404
390
|
readonly name?: string | null;
|
|
405
391
|
readonly displayName?: string | null;
|
|
406
392
|
})[];
|
|
407
|
-
readonly channel: "email";
|
|
408
393
|
readonly cc?: readonly ({
|
|
409
394
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
410
395
|
} | {
|
|
@@ -419,52 +404,30 @@ export declare const create: (input: {
|
|
|
419
404
|
readonly name?: string | null;
|
|
420
405
|
readonly displayName?: string | null;
|
|
421
406
|
})[] | null;
|
|
422
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
423
|
-
readonly metadata?: {
|
|
424
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
425
|
-
} | null;
|
|
426
407
|
readonly from?: {
|
|
427
408
|
readonly email: string;
|
|
428
409
|
readonly name?: string | null;
|
|
429
410
|
} | null;
|
|
430
|
-
};
|
|
431
|
-
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
432
|
-
readonly idempotencyKey: string | null;
|
|
433
|
-
readonly referenceId: string | null;
|
|
434
|
-
readonly failureReason: string | null;
|
|
435
|
-
readonly attempts: number;
|
|
436
|
-
readonly createdBy: string | null;
|
|
437
|
-
readonly actorEmail: string;
|
|
438
|
-
readonly memberRole: string;
|
|
439
|
-
readonly createdAt: string;
|
|
440
|
-
readonly updatedAt: string;
|
|
441
|
-
}, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("./generated").FlagDisabledError | import("./generated").ConflictError | import("./generated").ExternalServiceError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
|
|
442
|
-
export declare const get: (input: {
|
|
443
|
-
readonly id: string;
|
|
444
|
-
}) => import("effect/Effect").Effect<{
|
|
445
|
-
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
446
|
-
readonly status: "pending" | "failed" | "dispatching" | "dispatched" | "cancelled";
|
|
447
|
-
readonly scheduledFor: string;
|
|
448
|
-
readonly timezone: string;
|
|
449
|
-
readonly send: {
|
|
450
411
|
readonly email: {
|
|
451
|
-
readonly text?: string | null;
|
|
452
|
-
readonly replyTo?: readonly string[] | null;
|
|
453
412
|
readonly subject?: string | null;
|
|
454
413
|
readonly html?: string | null;
|
|
414
|
+
readonly text?: string | null;
|
|
455
415
|
readonly attachments?: readonly {
|
|
456
416
|
readonly filename: string;
|
|
417
|
+
readonly content?: string | null;
|
|
418
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
457
419
|
readonly contentType: string;
|
|
458
420
|
readonly size: number;
|
|
459
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
460
|
-
readonly content?: string | null;
|
|
461
421
|
}[] | null;
|
|
422
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
423
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
462
424
|
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
463
425
|
readonly templateSlug?: string | null;
|
|
464
426
|
readonly templateData?: {
|
|
465
427
|
readonly [x: string]: import("./generated").JsonValue;
|
|
466
428
|
} | null;
|
|
467
429
|
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
430
|
+
readonly replyTo?: readonly string[] | null;
|
|
468
431
|
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
469
432
|
readonly tracking?: {
|
|
470
433
|
readonly opens?: boolean;
|
|
@@ -474,6 +437,31 @@ export declare const get: (input: {
|
|
|
474
437
|
readonly enabled?: boolean | null;
|
|
475
438
|
};
|
|
476
439
|
};
|
|
440
|
+
};
|
|
441
|
+
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
442
|
+
readonly idempotencyKey: string | null;
|
|
443
|
+
readonly referenceId: string | null;
|
|
444
|
+
readonly failureReason: string | null;
|
|
445
|
+
readonly attempts: number;
|
|
446
|
+
readonly createdBy: string | null;
|
|
447
|
+
readonly actorEmail: string;
|
|
448
|
+
readonly memberRole: string;
|
|
449
|
+
readonly createdAt: string;
|
|
450
|
+
readonly updatedAt: string;
|
|
451
|
+
}, import("./generated").ConflictError | import("./generated").ExternalServiceError | 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>;
|
|
452
|
+
export declare const get: (input: {
|
|
453
|
+
readonly id: string;
|
|
454
|
+
}) => import("effect/Effect").Effect<{
|
|
455
|
+
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
456
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
457
|
+
readonly scheduledFor: string;
|
|
458
|
+
readonly timezone: string;
|
|
459
|
+
readonly send: {
|
|
460
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
461
|
+
readonly metadata?: {
|
|
462
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
463
|
+
} | null;
|
|
464
|
+
readonly channel: "email";
|
|
477
465
|
readonly to: readonly ({
|
|
478
466
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
479
467
|
} | {
|
|
@@ -481,7 +469,6 @@ export declare const get: (input: {
|
|
|
481
469
|
readonly name?: string | null;
|
|
482
470
|
readonly displayName?: string | null;
|
|
483
471
|
})[];
|
|
484
|
-
readonly channel: "email";
|
|
485
472
|
readonly cc?: readonly ({
|
|
486
473
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
487
474
|
} | {
|
|
@@ -496,14 +483,39 @@ export declare const get: (input: {
|
|
|
496
483
|
readonly name?: string | null;
|
|
497
484
|
readonly displayName?: string | null;
|
|
498
485
|
})[] | null;
|
|
499
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
500
|
-
readonly metadata?: {
|
|
501
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
502
|
-
} | null;
|
|
503
486
|
readonly from?: {
|
|
504
487
|
readonly email: string;
|
|
505
488
|
readonly name?: string | null;
|
|
506
489
|
} | null;
|
|
490
|
+
readonly email: {
|
|
491
|
+
readonly subject?: string | null;
|
|
492
|
+
readonly html?: string | null;
|
|
493
|
+
readonly text?: string | null;
|
|
494
|
+
readonly attachments?: readonly {
|
|
495
|
+
readonly filename: string;
|
|
496
|
+
readonly content?: string | null;
|
|
497
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
498
|
+
readonly contentType: string;
|
|
499
|
+
readonly size: number;
|
|
500
|
+
}[] | null;
|
|
501
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
502
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
503
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
504
|
+
readonly templateSlug?: string | null;
|
|
505
|
+
readonly templateData?: {
|
|
506
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
507
|
+
} | null;
|
|
508
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
509
|
+
readonly replyTo?: readonly string[] | null;
|
|
510
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
511
|
+
readonly tracking?: {
|
|
512
|
+
readonly opens?: boolean;
|
|
513
|
+
readonly clicks?: boolean;
|
|
514
|
+
};
|
|
515
|
+
readonly footer?: {
|
|
516
|
+
readonly enabled?: boolean | null;
|
|
517
|
+
};
|
|
518
|
+
};
|
|
507
519
|
};
|
|
508
520
|
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
509
521
|
readonly idempotencyKey: string | null;
|
|
@@ -515,44 +527,22 @@ export declare const get: (input: {
|
|
|
515
527
|
readonly memberRole: string;
|
|
516
528
|
readonly createdAt: string;
|
|
517
529
|
readonly updatedAt: string;
|
|
518
|
-
}, import("./generated").
|
|
530
|
+
}, 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>;
|
|
519
531
|
export declare const cancel: (input: {
|
|
520
532
|
readonly id: string;
|
|
521
533
|
}) => import("effect/Effect").Effect<{
|
|
522
534
|
readonly success: boolean;
|
|
523
535
|
readonly item: {
|
|
524
536
|
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
525
|
-
readonly status: "
|
|
537
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
526
538
|
readonly scheduledFor: string;
|
|
527
539
|
readonly timezone: string;
|
|
528
540
|
readonly send: {
|
|
529
|
-
readonly
|
|
530
|
-
|
|
531
|
-
readonly
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
readonly attachments?: readonly {
|
|
535
|
-
readonly filename: string;
|
|
536
|
-
readonly contentType: string;
|
|
537
|
-
readonly size: number;
|
|
538
|
-
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
539
|
-
readonly content?: string | null;
|
|
540
|
-
}[] | null;
|
|
541
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
542
|
-
readonly templateSlug?: string | null;
|
|
543
|
-
readonly templateData?: {
|
|
544
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
545
|
-
} | null;
|
|
546
|
-
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
547
|
-
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
548
|
-
readonly tracking?: {
|
|
549
|
-
readonly opens?: boolean;
|
|
550
|
-
readonly clicks?: boolean;
|
|
551
|
-
};
|
|
552
|
-
readonly footer?: {
|
|
553
|
-
readonly enabled?: boolean | null;
|
|
554
|
-
};
|
|
555
|
-
};
|
|
541
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
542
|
+
readonly metadata?: {
|
|
543
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
544
|
+
} | null;
|
|
545
|
+
readonly channel: "email";
|
|
556
546
|
readonly to: readonly ({
|
|
557
547
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
558
548
|
} | {
|
|
@@ -560,7 +550,6 @@ export declare const cancel: (input: {
|
|
|
560
550
|
readonly name?: string | null;
|
|
561
551
|
readonly displayName?: string | null;
|
|
562
552
|
})[];
|
|
563
|
-
readonly channel: "email";
|
|
564
553
|
readonly cc?: readonly ({
|
|
565
554
|
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
566
555
|
} | {
|
|
@@ -575,14 +564,39 @@ export declare const cancel: (input: {
|
|
|
575
564
|
readonly name?: string | null;
|
|
576
565
|
readonly displayName?: string | null;
|
|
577
566
|
})[] | null;
|
|
578
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
579
|
-
readonly metadata?: {
|
|
580
|
-
readonly [x: string]: import("./generated").JsonValue;
|
|
581
|
-
} | null;
|
|
582
567
|
readonly from?: {
|
|
583
568
|
readonly email: string;
|
|
584
569
|
readonly name?: string | null;
|
|
585
570
|
} | null;
|
|
571
|
+
readonly email: {
|
|
572
|
+
readonly subject?: string | null;
|
|
573
|
+
readonly html?: string | null;
|
|
574
|
+
readonly text?: string | null;
|
|
575
|
+
readonly attachments?: readonly {
|
|
576
|
+
readonly filename: string;
|
|
577
|
+
readonly content?: string | null;
|
|
578
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
579
|
+
readonly contentType: string;
|
|
580
|
+
readonly size: number;
|
|
581
|
+
}[] | null;
|
|
582
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
583
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
584
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
585
|
+
readonly templateSlug?: string | null;
|
|
586
|
+
readonly templateData?: {
|
|
587
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
588
|
+
} | null;
|
|
589
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
590
|
+
readonly replyTo?: readonly string[] | null;
|
|
591
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
592
|
+
readonly tracking?: {
|
|
593
|
+
readonly opens?: boolean;
|
|
594
|
+
readonly clicks?: boolean;
|
|
595
|
+
};
|
|
596
|
+
readonly footer?: {
|
|
597
|
+
readonly enabled?: boolean | null;
|
|
598
|
+
};
|
|
599
|
+
};
|
|
586
600
|
};
|
|
587
601
|
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
588
602
|
readonly idempotencyKey: string | null;
|
|
@@ -595,4 +609,88 @@ export declare const cancel: (input: {
|
|
|
595
609
|
readonly createdAt: string;
|
|
596
610
|
readonly updatedAt: string;
|
|
597
611
|
};
|
|
598
|
-
}, import("./generated").
|
|
612
|
+
}, 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>;
|
|
613
|
+
export declare const resume: (input: {
|
|
614
|
+
readonly id: string;
|
|
615
|
+
readonly choice: string;
|
|
616
|
+
} | {
|
|
617
|
+
readonly id: string;
|
|
618
|
+
readonly choice: string;
|
|
619
|
+
readonly scheduledFor: Date;
|
|
620
|
+
}) => import("effect/Effect").Effect<{
|
|
621
|
+
readonly id: string & import("effect/Brand").Brand<"ScheduledMessageId">;
|
|
622
|
+
readonly status: "cancelled" | "dispatched" | "dispatching" | "failed" | "paused" | "pending";
|
|
623
|
+
readonly scheduledFor: string;
|
|
624
|
+
readonly timezone: string;
|
|
625
|
+
readonly send: {
|
|
626
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
627
|
+
readonly metadata?: {
|
|
628
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
629
|
+
} | null;
|
|
630
|
+
readonly channel: "email";
|
|
631
|
+
readonly to: readonly ({
|
|
632
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
633
|
+
} | {
|
|
634
|
+
readonly email: string;
|
|
635
|
+
readonly name?: string | null;
|
|
636
|
+
readonly displayName?: string | null;
|
|
637
|
+
})[];
|
|
638
|
+
readonly cc?: readonly ({
|
|
639
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
640
|
+
} | {
|
|
641
|
+
readonly email: string;
|
|
642
|
+
readonly name?: string | null;
|
|
643
|
+
readonly displayName?: string | null;
|
|
644
|
+
})[] | null;
|
|
645
|
+
readonly bcc?: readonly ({
|
|
646
|
+
readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
|
|
647
|
+
} | {
|
|
648
|
+
readonly email: string;
|
|
649
|
+
readonly name?: string | null;
|
|
650
|
+
readonly displayName?: string | null;
|
|
651
|
+
})[] | null;
|
|
652
|
+
readonly from?: {
|
|
653
|
+
readonly email: string;
|
|
654
|
+
readonly name?: string | null;
|
|
655
|
+
} | null;
|
|
656
|
+
readonly email: {
|
|
657
|
+
readonly subject?: string | null;
|
|
658
|
+
readonly html?: string | null;
|
|
659
|
+
readonly text?: string | null;
|
|
660
|
+
readonly attachments?: readonly {
|
|
661
|
+
readonly filename: string;
|
|
662
|
+
readonly content?: string | null;
|
|
663
|
+
readonly mediaId?: (string & import("effect/Brand").Brand<"MediaId">) | null;
|
|
664
|
+
readonly contentType: string;
|
|
665
|
+
readonly size: number;
|
|
666
|
+
}[] | null;
|
|
667
|
+
readonly publicationId?: string & import("effect/Brand").Brand<"TemplatePublicationId">;
|
|
668
|
+
readonly inputContractId?: string & import("effect/Brand").Brand<"TemplateInputContractId">;
|
|
669
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
670
|
+
readonly templateSlug?: string | null;
|
|
671
|
+
readonly templateData?: {
|
|
672
|
+
readonly [x: string]: import("./generated").JsonValue;
|
|
673
|
+
} | null;
|
|
674
|
+
readonly inReplyToMessageId?: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
675
|
+
readonly replyTo?: readonly string[] | null;
|
|
676
|
+
readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
|
|
677
|
+
readonly tracking?: {
|
|
678
|
+
readonly opens?: boolean;
|
|
679
|
+
readonly clicks?: boolean;
|
|
680
|
+
};
|
|
681
|
+
readonly footer?: {
|
|
682
|
+
readonly enabled?: boolean | null;
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
687
|
+
readonly idempotencyKey: string | null;
|
|
688
|
+
readonly referenceId: string | null;
|
|
689
|
+
readonly failureReason: string | null;
|
|
690
|
+
readonly attempts: number;
|
|
691
|
+
readonly createdBy: string | null;
|
|
692
|
+
readonly actorEmail: string;
|
|
693
|
+
readonly memberRole: string;
|
|
694
|
+
readonly createdAt: string;
|
|
695
|
+
readonly updatedAt: string;
|
|
696
|
+
}, 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("./generated").ValidationError, import("./client").Service>;
|