samva 0.24.0 → 0.26.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.
Files changed (38) hide show
  1. package/dist/client/sdk.gen.d.ts +96 -4
  2. package/dist/client/sdk.gen.js +15 -8
  3. package/dist/client/types.gen.d.ts +559 -14
  4. package/dist/effect/api-keys.d.ts +3 -0
  5. package/dist/effect/campaigns.d.ts +18 -0
  6. package/dist/effect/email.d.ts +1 -0
  7. package/dist/effect/generated/agents.d.ts +1667 -0
  8. package/dist/effect/generated/api-keys.d.ts +15 -0
  9. package/dist/effect/generated/campaigns.d.ts +34 -0
  10. package/dist/effect/generated/email.d.ts +19 -0
  11. package/dist/effect/generated/email.js +8 -3
  12. package/dist/effect/generated/index.d.ts +3 -1
  13. package/dist/effect/generated/mailboxes.d.ts +176 -98
  14. package/dist/effect/generated/mailboxes.js +35 -26
  15. package/dist/effect/generated/messages.d.ts +9 -5
  16. package/dist/effect/generated/messages.js +2 -1
  17. package/dist/effect/generated/organizations.d.ts +18 -0
  18. package/dist/effect/generated/organizations.js +7 -1
  19. package/dist/effect/generated/scheduled-messages.d.ts +16 -0
  20. package/dist/effect/generated/shared.d.ts +203 -45
  21. package/dist/effect/generated/shared.js +66 -38
  22. package/dist/effect/generated/templates.d.ts +11 -7
  23. package/dist/effect/generated/templates.js +4 -7
  24. package/dist/effect/generated/webhooks.d.ts +19 -19
  25. package/dist/effect/generated/webhooks.js +12 -0
  26. package/dist/effect/generated/whoami.d.ts +4 -0
  27. package/dist/effect/generated-metadata.d.ts +45 -0
  28. package/dist/effect/generated-metadata.js +465 -426
  29. package/dist/effect/journeys.d.ts +112 -112
  30. package/dist/effect/mailboxes.d.ts +20 -6
  31. package/dist/effect/messages.d.ts +3 -0
  32. package/dist/effect/scheduled-messages.d.ts +9 -0
  33. package/dist/effect/templates.d.ts +4 -0
  34. package/dist/effect/webhooks.d.ts +4 -4
  35. package/dist/mailbox-events.d.ts +1 -1
  36. package/dist/package.js +1 -1
  37. package/dist/promises/types.gen.d.ts +1 -1
  38. package/package.json +6 -6
@@ -37,9 +37,6 @@ export declare const create: (input: {
37
37
  readonly name: string;
38
38
  readonly definition: {
39
39
  readonly trigger: {
40
- readonly type: "event";
41
- readonly eventName: string;
42
- } | {
43
40
  readonly type: "contact.created";
44
41
  } | {
45
42
  readonly type: "contact.tag_added";
@@ -47,10 +44,19 @@ export declare const create: (input: {
47
44
  } | {
48
45
  readonly type: "contact.joined_group";
49
46
  readonly groupId: string;
47
+ } | {
48
+ readonly type: "event";
49
+ readonly eventName: string;
50
50
  };
51
51
  readonly rootNodeId: string;
52
52
  readonly nodes: {
53
53
  readonly [x: string]: {
54
+ readonly type: "exit";
55
+ readonly config: {
56
+ readonly [x: string]: undefined;
57
+ };
58
+ readonly next: readonly never[];
59
+ } | {
54
60
  readonly type: "send_email";
55
61
  readonly config: {
56
62
  readonly template: string;
@@ -94,6 +100,49 @@ export declare const create: (input: {
94
100
  readonly next: readonly {
95
101
  readonly nodeId: string;
96
102
  }[];
103
+ } | {
104
+ readonly type: "update_tags";
105
+ readonly config: {
106
+ readonly add: readonly string[];
107
+ readonly remove: readonly string[];
108
+ };
109
+ readonly next: readonly {
110
+ readonly nodeId: string;
111
+ }[];
112
+ } | {
113
+ readonly type: "webhook";
114
+ readonly config: {
115
+ readonly data?: {
116
+ 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 | {
117
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
118
+ } | null)[] | {
119
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
120
+ } | null)[] | {
121
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
122
+ } | null)[] | {
123
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
124
+ } | null)[] | {
125
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
126
+ } | null)[] | {
127
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
128
+ } | null)[] | {
129
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
130
+ } | null)[] | {
131
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
132
+ } | null)[] | {
133
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
134
+ } | null)[] | {
135
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
136
+ } | null)[] | {
137
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
138
+ } | null)[] | {
139
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
140
+ } | null | undefined;
141
+ } | undefined;
142
+ };
143
+ readonly next: readonly {
144
+ readonly nodeId: string;
145
+ }[];
97
146
  } | {
98
147
  readonly type: "wait_for_event";
99
148
  readonly config: {
@@ -117,6 +166,10 @@ export declare const create: (input: {
117
166
  readonly type: "tag";
118
167
  readonly tag: string;
119
168
  readonly present: boolean;
169
+ } | {
170
+ readonly type: "event";
171
+ readonly eventName: string;
172
+ readonly occurred: boolean;
120
173
  } | {
121
174
  readonly type: "property";
122
175
  readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
@@ -147,62 +200,9 @@ export declare const create: (input: {
147
200
  } | {
148
201
  readonly operator: "exists" | "not_exists";
149
202
  };
150
- } | {
151
- readonly type: "event";
152
- readonly eventName: string;
153
- readonly occurred: boolean;
154
203
  })[];
155
204
  } | undefined;
156
205
  }[];
157
- } | {
158
- readonly type: "update_tags";
159
- readonly config: {
160
- readonly add: readonly string[];
161
- readonly remove: readonly string[];
162
- };
163
- readonly next: readonly {
164
- readonly nodeId: string;
165
- }[];
166
- } | {
167
- readonly type: "webhook";
168
- readonly config: {
169
- readonly data?: {
170
- 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 | {
171
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
172
- } | null)[] | {
173
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
174
- } | null)[] | {
175
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
176
- } | null)[] | {
177
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
178
- } | null)[] | {
179
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
180
- } | null)[] | {
181
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
182
- } | null)[] | {
183
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
184
- } | null)[] | {
185
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
186
- } | null)[] | {
187
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
188
- } | null)[] | {
189
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
190
- } | null)[] | {
191
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
192
- } | null)[] | {
193
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
194
- } | null | undefined;
195
- } | undefined;
196
- };
197
- readonly next: readonly {
198
- readonly nodeId: string;
199
- }[];
200
- } | {
201
- readonly type: "exit";
202
- readonly config: {
203
- readonly [x: string]: undefined;
204
- };
205
- readonly next: readonly never[];
206
206
  } | undefined;
207
207
  };
208
208
  readonly goal?: {
@@ -226,9 +226,6 @@ export declare const replaceDraft: (input: {
226
226
  readonly revision: string;
227
227
  readonly definition: {
228
228
  readonly trigger: {
229
- readonly type: "event";
230
- readonly eventName: string;
231
- } | {
232
229
  readonly type: "contact.created";
233
230
  } | {
234
231
  readonly type: "contact.tag_added";
@@ -236,10 +233,19 @@ export declare const replaceDraft: (input: {
236
233
  } | {
237
234
  readonly type: "contact.joined_group";
238
235
  readonly groupId: string;
236
+ } | {
237
+ readonly type: "event";
238
+ readonly eventName: string;
239
239
  };
240
240
  readonly rootNodeId: string;
241
241
  readonly nodes: {
242
242
  readonly [x: string]: {
243
+ readonly type: "exit";
244
+ readonly config: {
245
+ readonly [x: string]: undefined;
246
+ };
247
+ readonly next: readonly never[];
248
+ } | {
243
249
  readonly type: "send_email";
244
250
  readonly config: {
245
251
  readonly template: string;
@@ -283,6 +289,49 @@ export declare const replaceDraft: (input: {
283
289
  readonly next: readonly {
284
290
  readonly nodeId: string;
285
291
  }[];
292
+ } | {
293
+ readonly type: "update_tags";
294
+ readonly config: {
295
+ readonly add: readonly string[];
296
+ readonly remove: readonly string[];
297
+ };
298
+ readonly next: readonly {
299
+ readonly nodeId: string;
300
+ }[];
301
+ } | {
302
+ readonly type: "webhook";
303
+ readonly config: {
304
+ readonly data?: {
305
+ 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 | {
306
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
307
+ } | null)[] | {
308
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
309
+ } | null)[] | {
310
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
311
+ } | null)[] | {
312
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
313
+ } | null)[] | {
314
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
315
+ } | null)[] | {
316
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
317
+ } | null)[] | {
318
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
319
+ } | null)[] | {
320
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
321
+ } | null)[] | {
322
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
323
+ } | null)[] | {
324
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
325
+ } | null)[] | {
326
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
327
+ } | null)[] | {
328
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
329
+ } | null | undefined;
330
+ } | undefined;
331
+ };
332
+ readonly next: readonly {
333
+ readonly nodeId: string;
334
+ }[];
286
335
  } | {
287
336
  readonly type: "wait_for_event";
288
337
  readonly config: {
@@ -306,6 +355,10 @@ export declare const replaceDraft: (input: {
306
355
  readonly type: "tag";
307
356
  readonly tag: string;
308
357
  readonly present: boolean;
358
+ } | {
359
+ readonly type: "event";
360
+ readonly eventName: string;
361
+ readonly occurred: boolean;
309
362
  } | {
310
363
  readonly type: "property";
311
364
  readonly field: "displayName" | "externalId" | "name" | "profile.company" | "profile.firstName" | "profile.jobTitle" | "profile.lastName" | "profile.location.city" | "profile.location.country" | "profile.location.state" | "profile.location.timezone" | "profile.source" | "status";
@@ -336,62 +389,9 @@ export declare const replaceDraft: (input: {
336
389
  } | {
337
390
  readonly operator: "exists" | "not_exists";
338
391
  };
339
- } | {
340
- readonly type: "event";
341
- readonly eventName: string;
342
- readonly occurred: boolean;
343
392
  })[];
344
393
  } | undefined;
345
394
  }[];
346
- } | {
347
- readonly type: "update_tags";
348
- readonly config: {
349
- readonly add: readonly string[];
350
- readonly remove: readonly string[];
351
- };
352
- readonly next: readonly {
353
- readonly nodeId: string;
354
- }[];
355
- } | {
356
- readonly type: "webhook";
357
- readonly config: {
358
- readonly data?: {
359
- 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 | {
360
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
361
- } | null)[] | {
362
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
363
- } | null)[] | {
364
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
365
- } | null)[] | {
366
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
367
- } | null)[] | {
368
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
369
- } | null)[] | {
370
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
371
- } | null)[] | {
372
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
373
- } | null)[] | {
374
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
375
- } | null)[] | {
376
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
377
- } | null)[] | {
378
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
379
- } | null)[] | {
380
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
381
- } | null)[] | {
382
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
383
- } | null | undefined;
384
- } | undefined;
385
- };
386
- readonly next: readonly {
387
- readonly nodeId: string;
388
- }[];
389
- } | {
390
- readonly type: "exit";
391
- readonly config: {
392
- readonly [x: string]: undefined;
393
- };
394
- readonly next: readonly never[];
395
395
  } | undefined;
396
396
  };
397
397
  readonly goal?: {
@@ -844,7 +844,7 @@ export declare const listActions: ((input: {
844
844
  readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
845
845
  readonly id: string;
846
846
  readonly displayName?: string | null;
847
- readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
847
+ readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
848
848
  };
849
849
  readonly resolvedAt: string;
850
850
  readonly reason: string | null;
@@ -968,15 +968,22 @@ export declare const listActions: ((input: {
968
968
  readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
969
969
  readonly id: string;
970
970
  readonly displayName?: string | null;
971
- readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
971
+ readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
972
972
  };
973
973
  readonly resolvedAt: string;
974
974
  readonly reason: string | null;
975
975
  } | null;
976
976
  readonly createdAt: string;
977
977
  readonly updatedAt: string;
978
- readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
978
+ readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
979
979
  readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
980
+ readonly tool: {
981
+ readonly name: string;
982
+ readonly argumentsHash: string;
983
+ readonly arguments: {
984
+ readonly [x: string]: import("./generated").JsonValue;
985
+ };
986
+ } | null;
980
987
  })[];
981
988
  readonly nextCursor: string | null;
982
989
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
@@ -1011,7 +1018,7 @@ export declare const listActions: ((input: {
1011
1018
  readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
1012
1019
  readonly id: string;
1013
1020
  readonly displayName?: string | null;
1014
- readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
1021
+ readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
1015
1022
  };
1016
1023
  readonly resolvedAt: string;
1017
1024
  readonly reason: string | null;
@@ -1135,15 +1142,22 @@ export declare const listActions: ((input: {
1135
1142
  readonly kind: "apiKey" | "extension" | "externalAgent" | "samvaAgent" | "system" | "user";
1136
1143
  readonly id: string;
1137
1144
  readonly displayName?: string | null;
1138
- readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "system";
1145
+ readonly source: "extension" | "externalAgent" | "externalApi" | "humanUi" | "samvaManagedAgent" | "system";
1139
1146
  };
1140
1147
  readonly resolvedAt: string;
1141
1148
  readonly reason: string | null;
1142
1149
  } | null;
1143
1150
  readonly createdAt: string;
1144
1151
  readonly updatedAt: string;
1145
- readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
1152
+ readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "toolCall" | "updateDraft";
1146
1153
  readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
1154
+ readonly tool: {
1155
+ readonly name: string;
1156
+ readonly argumentsHash: string;
1157
+ readonly arguments: {
1158
+ readonly [x: string]: import("./generated").JsonValue;
1159
+ };
1160
+ } | null;
1147
1161
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1148
1162
  };
1149
1163
  export declare const getAction: (input: {
@@ -184,6 +184,9 @@ export declare const validateEmail: (input: {
184
184
  readonly footer?: {
185
185
  readonly enabled?: boolean | null | undefined;
186
186
  } | undefined;
187
+ readonly headers?: {
188
+ readonly [x: string]: string | undefined;
189
+ } | null | undefined;
187
190
  };
188
191
  }) => import("./internal/operation").OperationResult<"messagesValidateEmail">;
189
192
  export declare const get: (input: {
@@ -74,6 +74,9 @@ export declare const list: ((input?: {
74
74
  readonly footer?: {
75
75
  readonly enabled?: boolean | null;
76
76
  };
77
+ readonly headers?: {
78
+ readonly [x: string]: string;
79
+ } | null;
77
80
  };
78
81
  };
79
82
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
@@ -159,6 +162,9 @@ export declare const list: ((input?: {
159
162
  readonly footer?: {
160
163
  readonly enabled?: boolean | null;
161
164
  };
165
+ readonly headers?: {
166
+ readonly [x: string]: string;
167
+ } | null;
162
168
  };
163
169
  };
164
170
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
@@ -283,6 +289,9 @@ export declare const create: (input: {
283
289
  readonly footer?: {
284
290
  readonly enabled?: boolean | null | undefined;
285
291
  } | undefined;
292
+ readonly headers?: {
293
+ readonly [x: string]: string | undefined;
294
+ } | null | undefined;
286
295
  };
287
296
  };
288
297
  readonly scheduledFor: Date;
@@ -203,6 +203,10 @@ export declare const update: (input: {
203
203
  readonly name?: string | null | undefined;
204
204
  } | null | undefined;
205
205
  readonly replyToDefault?: readonly string[] | null | undefined;
206
+ readonly trackingDefault?: {
207
+ readonly opens?: boolean | null | undefined;
208
+ readonly clicks?: boolean | null | undefined;
209
+ } | null | undefined;
206
210
  readonly isActive?: boolean | null | undefined;
207
211
  readonly shared?: boolean | null | undefined;
208
212
  };
@@ -15,7 +15,7 @@ export declare const list: ((input?: {
15
15
  readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
16
16
  readonly name: string;
17
17
  readonly url: string;
18
- readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
18
+ readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
19
19
  readonly channels: readonly "email"[] | null;
20
20
  readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
21
21
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
@@ -44,7 +44,7 @@ export declare const list: ((input?: {
44
44
  readonly id: string & import("effect/Brand").Brand<"WebhookEndpointId">;
45
45
  readonly name: string;
46
46
  readonly url: string;
47
- readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
47
+ readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
48
48
  readonly channels: readonly "email"[] | null;
49
49
  readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
50
50
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
@@ -66,7 +66,7 @@ export declare const list: ((input?: {
66
66
  export declare const create: (input: {
67
67
  readonly name: string;
68
68
  readonly url: string;
69
- readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
69
+ readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
70
70
  readonly channels?: readonly "email"[] | null | undefined;
71
71
  readonly mailboxIds?: readonly string[] | null | undefined;
72
72
  readonly namespaceId?: string | null | undefined;
@@ -88,7 +88,7 @@ export declare const update: (input: {
88
88
  readonly id: string;
89
89
  readonly name?: string | null | undefined;
90
90
  readonly url?: string | null | undefined;
91
- readonly eventTypes?: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[] | null | undefined;
91
+ readonly eventTypes?: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[] | null | undefined;
92
92
  readonly channels?: readonly "email"[] | null | undefined;
93
93
  readonly mailboxIds?: readonly string[] | null | undefined;
94
94
  readonly namespaceId?: string | null | undefined;
@@ -30,7 +30,7 @@ export declare const MailboxEventStreamCloseCode: {
30
30
  readonly accessUnavailable: 4503;
31
31
  };
32
32
  /** The event types the stream carries: the `mailbox.*` webhook events. */
33
- export type MailboxEventType = "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded";
33
+ export type MailboxEventType = "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed";
34
34
  /** One event, as a webhook delivery of it would carry it, plus its stream position. */
35
35
  export interface MailboxEvent {
36
36
  /** The stream position of this event. Persist it after handling to resume from here. */
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.24.0";
2
+ var version = "0.26.0";
3
3
  //#endregion
4
4
  export { version };
5
5