samva 0.23.1 → 0.25.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 (48) 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 -24
  4. package/dist/effect/api-keys.d.ts +3 -0
  5. package/dist/effect/categories.d.ts +3 -3
  6. package/dist/effect/email.d.ts +2 -1
  7. package/dist/effect/errors.d.ts +1 -1
  8. package/dist/effect/errors.js +2 -2
  9. package/dist/effect/generated/agents.d.ts +1667 -0
  10. package/dist/effect/generated/api-keys.d.ts +15 -0
  11. package/dist/effect/generated/campaigns.d.ts +4 -4
  12. package/dist/effect/generated/campaigns.js +2 -1
  13. package/dist/effect/generated/email.d.ts +19 -0
  14. package/dist/effect/generated/email.js +8 -3
  15. package/dist/effect/generated/index.d.ts +3 -1
  16. package/dist/effect/generated/mailboxes.d.ts +176 -98
  17. package/dist/effect/generated/mailboxes.js +35 -26
  18. package/dist/effect/generated/messages.d.ts +12 -52
  19. package/dist/effect/generated/messages.js +5 -4
  20. package/dist/effect/generated/organizations.d.ts +18 -0
  21. package/dist/effect/generated/organizations.js +7 -1
  22. package/dist/effect/generated/scheduled-messages.d.ts +4 -24
  23. package/dist/effect/generated/scheduled-messages.js +2 -2
  24. package/dist/effect/generated/shared.d.ts +201 -45
  25. package/dist/effect/generated/shared.js +62 -36
  26. package/dist/effect/generated/subscriptions.d.ts +4 -4
  27. package/dist/effect/generated/subscriptions.js +2 -1
  28. package/dist/effect/generated/templates.d.ts +11 -7
  29. package/dist/effect/generated/templates.js +4 -7
  30. package/dist/effect/generated/webhooks.d.ts +19 -19
  31. package/dist/effect/generated/webhooks.js +12 -0
  32. package/dist/effect/generated/whoami.d.ts +4 -0
  33. package/dist/effect/generated-metadata.d.ts +49 -0
  34. package/dist/effect/generated-metadata.js +469 -426
  35. package/dist/effect/index.js +2 -2
  36. package/dist/effect/journeys.d.ts +112 -112
  37. package/dist/effect/mailboxes.d.ts +20 -6
  38. package/dist/effect/messages.d.ts +1 -1
  39. package/dist/effect/templates.d.ts +4 -0
  40. package/dist/effect/webhooks.d.ts +4 -4
  41. package/dist/index.js +2 -2
  42. package/dist/mailbox-events.d.ts +1 -1
  43. package/dist/package.js +1 -1
  44. package/dist/promises/errors.gen.d.ts +12 -2
  45. package/dist/promises/errors.gen.js +31 -1
  46. package/dist/promises/index.js +2 -2
  47. package/dist/promises/types.gen.d.ts +1 -1
  48. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { MediaUploadError } from "../inline-attachments.js";
2
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
2
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
3
3
  import { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError } from "./categories.js";
4
4
  import { retry_exports } from "./retry.js";
5
5
  import { analytics_exports } from "./analytics.js";
@@ -30,4 +30,4 @@ import { templates_exports } from "./templates.js";
30
30
  import { unsubscribe_groups_exports } from "./unsubscribe-groups.js";
31
31
  import { webhooks_exports } from "./webhooks.js";
32
32
  import { whoami_exports } from "./whoami.js";
33
- export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, subscriptions_exports as Subscriptions, templates_exports as Templates, UnauthorizedError, unsubscribe_groups_exports as UnsubscribeGroups, ValidationError, webhooks_exports as Webhooks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
33
+ export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, subscriptions_exports as Subscriptions, templates_exports as Templates, UnauthorizedError, unsubscribe_groups_exports as UnsubscribeGroups, ValidationError, webhooks_exports as Webhooks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
@@ -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: {
@@ -74,7 +74,7 @@ export declare const send: (input: MessageSendInput, options?: SendOptions | und
74
74
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
75
75
  }[];
76
76
  readonly createdAt: string;
77
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").DeliveryUnavailableError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("..").MediaUploadError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
77
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").DeliveryUnavailableError | import("./errors").ExternalServiceError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").FromAddressRequiredError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("..").MediaUploadError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
78
78
  export declare const validateEmail: (input: {
79
79
  readonly conversationId?: string | null | undefined;
80
80
  readonly metadata?: {
@@ -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;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { MediaUploadError } from "./inline-attachments.js";
2
2
  import { MailboxEventStream, MailboxEventStreamError } from "./mailbox-events.js";
3
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./promises/errors.gen.js";
3
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./promises/errors.gen.js";
4
4
  import { createClient } from "./promises/index.js";
5
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
5
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
@@ -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.23.1";
2
+ var version = "0.25.0";
3
3
  //#endregion
4
4
  export { version };
5
5
 
@@ -1,4 +1,4 @@
1
- export type SamvaApiErrorTag = "AnalyticsQueryError" | "BillingProviderError" | "BrandAddressRequiredError" | "CampaignFooterRequiredError" | "ConflictError" | "DeliveryUnavailableError" | "EmailChannelError" | "ExternalServiceError" | "FlagDisabledError" | "ForbiddenError" | "GatewayTimeoutError" | "InternalError" | "MailboxSendConflictError" | "MailboxSendRefusedError" | "OnboardingReviewRequiredError" | "PaymentRequiredError" | "RateLimitedError" | "ResourceNotFoundError" | "SenderNotReadyError" | "UnauthorizedError" | "ValidationError";
1
+ export type SamvaApiErrorTag = "AnalyticsQueryError" | "BillingProviderError" | "BrandAddressRequiredError" | "CampaignFooterRequiredError" | "ConflictError" | "DeliveryUnavailableError" | "EmailChannelError" | "ExternalServiceError" | "FlagDisabledError" | "ForbiddenError" | "FromAddressRequiredError" | "GatewayTimeoutError" | "InternalError" | "MailboxSendConflictError" | "MailboxSendRefusedError" | "OnboardingReviewRequiredError" | "PaymentRequiredError" | "RateLimitedError" | "ResourceNotFoundError" | "SenderNotReadyError" | "UnauthorizedError" | "ValidationError";
2
2
  export interface SamvaApiErrorContext {
3
3
  readonly request?: Request | undefined;
4
4
  readonly response?: Response | undefined;
@@ -114,6 +114,16 @@ export declare class ForbiddenError extends SamvaApiError<"ForbiddenError"> {
114
114
  readonly _tag: "ForbiddenError";
115
115
  constructor(payload: Omit<ForbiddenErrorPayload, "_tag">, context?: SamvaApiErrorContext);
116
116
  }
117
+ type FromAddressRequiredErrorPayload = {
118
+ readonly _tag: "FromAddressRequiredError";
119
+ readonly message: string;
120
+ readonly verifiedDomains: Array<string>;
121
+ };
122
+ export declare class FromAddressRequiredError extends SamvaApiError<"FromAddressRequiredError"> {
123
+ readonly _tag: "FromAddressRequiredError";
124
+ readonly "verifiedDomains": Array<string>;
125
+ constructor(payload: Omit<FromAddressRequiredErrorPayload, "_tag">, context?: SamvaApiErrorContext);
126
+ }
117
127
  type GatewayTimeoutErrorPayload = {
118
128
  readonly _tag: "GatewayTimeoutError";
119
129
  readonly message: string;
@@ -240,7 +250,7 @@ export declare class ValidationError extends SamvaApiError<"ValidationError"> {
240
250
  readonly "fields"?: Record<string, Array<string>> | null;
241
251
  constructor(payload: Omit<ValidationErrorPayload, "_tag">, context?: SamvaApiErrorContext);
242
252
  }
243
- export type AnySamvaApiError = AnalyticsQueryError | BillingProviderError | BrandAddressRequiredError | CampaignFooterRequiredError | ConflictError | DeliveryUnavailableError | EmailChannelError | ExternalServiceError | FlagDisabledError | ForbiddenError | GatewayTimeoutError | InternalError | MailboxSendConflictError | MailboxSendRefusedError | OnboardingReviewRequiredError | PaymentRequiredError | RateLimitedError | ResourceNotFoundError | SenderNotReadyError | UnauthorizedError | ValidationError;
253
+ export type AnySamvaApiError = AnalyticsQueryError | BillingProviderError | BrandAddressRequiredError | CampaignFooterRequiredError | ConflictError | DeliveryUnavailableError | EmailChannelError | ExternalServiceError | FlagDisabledError | ForbiddenError | FromAddressRequiredError | GatewayTimeoutError | InternalError | MailboxSendConflictError | MailboxSendRefusedError | OnboardingReviewRequiredError | PaymentRequiredError | RateLimitedError | ResourceNotFoundError | SenderNotReadyError | UnauthorizedError | ValidationError;
244
254
  /** Convert a decoded error payload into its generated JavaScript error class. */
245
255
  export declare function fromApiError(error: unknown, context?: SamvaApiErrorContext): AnySamvaApiError | SamvaTransportError;
246
256
  export {};
@@ -103,6 +103,13 @@ var ForbiddenError = class extends SamvaApiError {
103
103
  Object.assign(this, payload);
104
104
  }
105
105
  };
106
+ var FromAddressRequiredError = class extends SamvaApiError {
107
+ _tag = "FromAddressRequiredError";
108
+ constructor(payload, context = {}) {
109
+ super(messageOf("FromAddressRequiredError", payload), context);
110
+ Object.assign(this, payload);
111
+ }
112
+ };
106
113
  var GatewayTimeoutError = class extends SamvaApiError {
107
114
  _tag = "GatewayTimeoutError";
108
115
  constructor(payload, context = {}) {
@@ -191,6 +198,7 @@ const constructors = {
191
198
  ExternalServiceError,
192
199
  FlagDisabledError,
193
200
  ForbiddenError,
201
+ FromAddressRequiredError,
194
202
  GatewayTimeoutError,
195
203
  InternalError,
196
204
  MailboxSendConflictError,
@@ -370,6 +378,28 @@ const payloadSchemas = {
370
378
  "x-category": ["auth"],
371
379
  "x-retryable": false
372
380
  },
381
+ FromAddressRequiredError: {
382
+ type: "object",
383
+ properties: {
384
+ _tag: {
385
+ type: "string",
386
+ enum: ["FromAddressRequiredError"]
387
+ },
388
+ message: { type: "string" },
389
+ verifiedDomains: {
390
+ type: "array",
391
+ items: { type: "string" }
392
+ }
393
+ },
394
+ required: [
395
+ "_tag",
396
+ "message",
397
+ "verifiedDomains"
398
+ ],
399
+ additionalProperties: false,
400
+ "x-category": ["validation"],
401
+ "x-retryable": false
402
+ },
373
403
  GatewayTimeoutError: {
374
404
  type: "object",
375
405
  properties: {
@@ -1310,6 +1340,6 @@ function fromApiError(error, context = {}) {
1310
1340
  return new SamvaTransportError(error, context);
1311
1341
  }
1312
1342
  //#endregion
1313
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError };
1343
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError };
1314
1344
 
1315
1345
  //# sourceMappingURL=errors.gen.js.map
@@ -5,7 +5,7 @@ import { Analytics, ApiKeys, Attachments, Brands, Campaigns, ContactEvents, Cont
5
5
  import { MediaUploadError, mediaCreateBody, planInlineUploads, withUploadedAttachments } from "../inline-attachments.js";
6
6
  import { MailboxEventStream, MailboxEventStreamError } from "../mailbox-events.js";
7
7
  import { buildEmailSendPayload, buildMessagesSendPayload, replyToEmailsPayload } from "../normalize.js";
8
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./errors.gen.js";
8
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./errors.gen.js";
9
9
  //#region src/promises/index.ts
10
10
  /**
11
11
  * Samva SDK - TypeScript client for the Samva API.
@@ -284,6 +284,6 @@ function createClient(config) {
284
284
  };
285
285
  }
286
286
  //#endregion
287
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
287
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
288
288
 
289
289
  //# sourceMappingURL=index.js.map