samva 0.27.0 → 0.28.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 (105) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +12 -7
  3. package/dist/client/sdk.gen.d.ts +322 -143
  4. package/dist/client/sdk.gen.js +604 -95
  5. package/dist/client/types.gen.d.ts +1342 -479
  6. package/dist/effect/agents.d.ts +6 -8
  7. package/dist/effect/analytics.d.ts +1 -1
  8. package/dist/effect/api-keys.d.ts +6 -6
  9. package/dist/effect/attachments.d.ts +1 -1
  10. package/dist/effect/brands.d.ts +2 -0
  11. package/dist/effect/campaigns.d.ts +275 -25
  12. package/dist/effect/campaigns.js +7 -1
  13. package/dist/effect/contact-groups.d.ts +9 -9
  14. package/dist/effect/contacts.d.ts +74 -81
  15. package/dist/effect/contacts.js +7 -3
  16. package/dist/effect/conversations.d.ts +14 -6
  17. package/dist/effect/email.d.ts +34 -34
  18. package/dist/effect/errors.d.ts +1 -1
  19. package/dist/effect/errors.js +2 -2
  20. package/dist/effect/extension-installations.d.ts +3 -3
  21. package/dist/effect/extensions.d.ts +6 -6
  22. package/dist/effect/generated/agents.d.ts +6 -28
  23. package/dist/effect/generated/agents.js +2 -3
  24. package/dist/effect/generated/analytics.d.ts +3 -3
  25. package/dist/effect/generated/analytics.js +1 -1
  26. package/dist/effect/generated/api-keys.d.ts +6 -6
  27. package/dist/effect/generated/api-keys.js +2 -2
  28. package/dist/effect/generated/attachments.d.ts +3 -3
  29. package/dist/effect/generated/attachments.js +1 -1
  30. package/dist/effect/generated/brands.d.ts +16 -0
  31. package/dist/effect/generated/campaigns.d.ts +1181 -302
  32. package/dist/effect/generated/campaigns.js +169 -36
  33. package/dist/effect/generated/contact-events.d.ts +3 -3
  34. package/dist/effect/generated/contact-events.js +1 -1
  35. package/dist/effect/generated/contact-groups.d.ts +9 -9
  36. package/dist/effect/generated/contact-groups.js +7 -7
  37. package/dist/effect/generated/contacts.d.ts +2063 -290
  38. package/dist/effect/generated/contacts.js +343 -75
  39. package/dist/effect/generated/conversations.d.ts +14 -6
  40. package/dist/effect/generated/conversations.js +6 -6
  41. package/dist/effect/generated/email.d.ts +40 -40
  42. package/dist/effect/generated/email.js +15 -15
  43. package/dist/effect/generated/extension-installations.d.ts +3 -3
  44. package/dist/effect/generated/extension-installations.js +1 -1
  45. package/dist/effect/generated/extensions.d.ts +6 -6
  46. package/dist/effect/generated/extensions.js +2 -2
  47. package/dist/effect/generated/index.d.ts +5 -3
  48. package/dist/effect/generated/journeys.d.ts +9 -9
  49. package/dist/effect/generated/journeys.js +3 -3
  50. package/dist/effect/generated/mailboxes.d.ts +172 -124
  51. package/dist/effect/generated/mailboxes.js +22 -14
  52. package/dist/effect/generated/messages.d.ts +53 -29
  53. package/dist/effect/generated/messages.js +9 -5
  54. package/dist/effect/generated/namespaces.d.ts +3 -3
  55. package/dist/effect/generated/namespaces.js +1 -1
  56. package/dist/effect/generated/operations.d.ts +3 -3
  57. package/dist/effect/generated/operations.js +1 -1
  58. package/dist/effect/generated/organizations.d.ts +0 -9
  59. package/dist/effect/generated/organizations.js +1 -4
  60. package/dist/effect/generated/scheduled-messages.d.ts +69 -20
  61. package/dist/effect/generated/scheduled-messages.js +22 -3
  62. package/dist/effect/generated/shared.d.ts +396 -107
  63. package/dist/effect/generated/shared.js +170 -89
  64. package/dist/effect/generated/subscriptions.d.ts +4 -7
  65. package/dist/effect/generated/subscriptions.js +3 -4
  66. package/dist/effect/generated/templates.d.ts +71 -407
  67. package/dist/effect/generated/templates.js +23 -23
  68. package/dist/effect/generated/topic-forms.d.ts +656 -0
  69. package/dist/effect/generated/topic-forms.js +145 -0
  70. package/dist/effect/generated/{unsubscribe-groups.d.ts → topics.d.ts} +640 -435
  71. package/dist/effect/generated/topics.js +267 -0
  72. package/dist/effect/generated/webhooks.d.ts +6 -6
  73. package/dist/effect/generated/webhooks.js +2 -2
  74. package/dist/effect/generated-metadata.d.ts +78 -24
  75. package/dist/effect/generated-metadata.js +61 -27
  76. package/dist/effect/index.d.ts +2 -1
  77. package/dist/effect/index.js +4 -3
  78. package/dist/effect/internal/operation.js +3 -3
  79. package/dist/effect/internal/send.d.ts +4 -4
  80. package/dist/effect/journeys.d.ts +7 -7
  81. package/dist/effect/mailboxes.d.ts +137 -121
  82. package/dist/effect/messages.d.ts +19 -11
  83. package/dist/effect/namespaces.d.ts +3 -3
  84. package/dist/effect/operations.d.ts +3 -3
  85. package/dist/effect/scheduled-messages.d.ts +6 -6
  86. package/dist/effect/subscriptions.d.ts +1 -2
  87. package/dist/effect/templates.d.ts +13 -13
  88. package/dist/effect/topic-forms.d.ts +30 -0
  89. package/dist/effect/topic-forms.js +21 -0
  90. package/dist/effect/topics.d.ts +94 -0
  91. package/dist/effect/topics.js +29 -0
  92. package/dist/effect/webhooks.d.ts +6 -6
  93. package/dist/index.js +2 -2
  94. package/dist/package.js +1 -1
  95. package/dist/promises/errors.gen.d.ts +65 -8
  96. package/dist/promises/errors.gen.js +139 -7
  97. package/dist/promises/index.d.ts +5 -3
  98. package/dist/promises/index.js +7 -5
  99. package/dist/promises/types.gen.d.ts +1 -1
  100. package/dist/service-map.d.ts +74 -25
  101. package/dist/service-map.js +43 -12
  102. package/package.json +12 -8
  103. package/dist/effect/generated/unsubscribe-groups.js +0 -284
  104. package/dist/effect/unsubscribe-groups.d.ts +0 -74
  105. package/dist/effect/unsubscribe-groups.js +0 -29
@@ -1,5 +1,5 @@
1
1
  export declare const list: ((input?: {
2
- readonly limit?: string | null | undefined;
2
+ readonly limit?: number | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly namespaceId?: string | null | undefined;
5
5
  readonly search?: string | null | undefined;
@@ -11,7 +11,7 @@ export declare const list: ((input?: {
11
11
  readonly before?: string | null | undefined;
12
12
  } | undefined) => import("./internal/operation").OperationResult<"contactsList">) & {
13
13
  readonly pages: (input?: {
14
- readonly limit?: string | null | undefined;
14
+ readonly limit?: number | null | undefined;
15
15
  readonly cursor?: string | null | undefined;
16
16
  readonly namespaceId?: string | null | undefined;
17
17
  readonly search?: string | null | undefined;
@@ -45,7 +45,7 @@ export declare const list: ((input?: {
45
45
  readonly nextCursor: string | null;
46
46
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
47
47
  readonly items: (input?: {
48
- readonly limit?: string | null | undefined;
48
+ readonly limit?: number | null | undefined;
49
49
  readonly cursor?: string | null | undefined;
50
50
  readonly namespaceId?: string | null | undefined;
51
51
  readonly search?: string | null | undefined;
@@ -317,77 +317,70 @@ export declare const removeTags: (input: {
317
317
  export declare const getEngagement: (input: {
318
318
  readonly id: string;
319
319
  }) => import("./internal/operation").OperationResult<"contactsGetEngagement">;
320
- export declare const bulkImport: (input: {
320
+ export declare const planImport: (input: {
321
+ readonly preset: "beehiiv" | "kit" | "mailchimp" | "substack";
322
+ readonly topicId: string;
321
323
  readonly namespaceId?: string | null | undefined;
322
- readonly contacts: readonly {
324
+ readonly files: readonly ({
323
325
  readonly name: string;
324
- readonly displayName?: string | null | undefined;
325
- readonly avatar?: string | null | undefined;
326
- readonly identities?: readonly {
327
- readonly type: "email" | "phone";
328
- readonly identifier: string;
329
- readonly verified?: boolean | null | undefined;
330
- }[] | null | undefined;
331
- readonly profile?: {
332
- readonly firstName?: string | null | undefined;
333
- readonly lastName?: string | null | undefined;
334
- readonly company?: string | null | undefined;
335
- readonly jobTitle?: string | null | undefined;
336
- readonly location?: {
337
- readonly country: string;
338
- readonly state: string;
339
- readonly city: string;
340
- readonly timezone: string;
341
- } | null | undefined;
342
- readonly customFields?: {
343
- readonly [x: string]: string | number | boolean | null | undefined;
344
- } | null | undefined;
345
- readonly source?: "api" | "form" | "import" | "manual" | null | undefined;
346
- } | null | undefined;
347
- readonly preferences?: {
348
- readonly preferredChannels?: readonly "email"[] | null | undefined;
349
- readonly language?: string | null | undefined;
350
- readonly timezone?: string | null | undefined;
351
- readonly notifications?: {
352
- readonly email?: boolean | null | undefined;
353
- readonly quiet_hours?: {
354
- readonly start: string;
355
- readonly end: string;
356
- } | null | undefined;
357
- } | null | undefined;
358
- } | null | undefined;
359
- readonly tags?: readonly string[] | null | undefined;
360
- readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
361
- readonly statusReason?: string | null | undefined;
362
- readonly externalId?: string | null | undefined;
363
- readonly metadata?: {
364
- 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 | {
365
- readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
366
- } | null)[] | {
367
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
368
- } | null)[] | {
369
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
370
- } | null)[] | {
371
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
372
- } | null)[] | {
373
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
374
- } | null)[] | {
375
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
376
- } | null)[] | {
377
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
378
- } | null)[] | {
379
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
380
- } | null)[] | {
381
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
382
- } | null)[] | {
383
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
384
- } | null)[] | {
385
- readonly [x: string]: string | number | boolean | any | any | null | undefined;
386
- } | null | undefined;
387
- } | null | undefined;
388
- }[];
389
- readonly onConflict?: "skip" | "update" | null | undefined;
390
- }) => import("./internal/operation").OperationResult<"contactsBulkImport">;
326
+ readonly csv: string;
327
+ readonly evidence: {
328
+ readonly kind: "status_column";
329
+ } | {
330
+ readonly kind: "export_scope";
331
+ readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
332
+ };
333
+ readonly suppressionFree?: boolean | null | undefined;
334
+ } | {
335
+ readonly name: string;
336
+ readonly csv: string;
337
+ readonly evidence: {
338
+ readonly kind: "status_column";
339
+ } | {
340
+ readonly kind: "export_scope";
341
+ readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
342
+ };
343
+ readonly suppressionFree?: boolean | null | undefined;
344
+ })[];
345
+ }) => import("./internal/operation").OperationResult<"contactsPlanImport">;
346
+ export declare const startImport: (input: {
347
+ readonly mode: "new";
348
+ readonly input: {
349
+ readonly preset: "beehiiv" | "kit" | "mailchimp" | "substack";
350
+ readonly topicId: string;
351
+ readonly namespaceId?: string | null | undefined;
352
+ readonly files: readonly ({
353
+ readonly name: string;
354
+ readonly csv: string;
355
+ readonly evidence: {
356
+ readonly kind: "status_column";
357
+ } | {
358
+ readonly kind: "export_scope";
359
+ readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
360
+ };
361
+ readonly suppressionFree?: boolean | null | undefined;
362
+ } | {
363
+ readonly name: string;
364
+ readonly csv: string;
365
+ readonly evidence: {
366
+ readonly kind: "status_column";
367
+ } | {
368
+ readonly kind: "export_scope";
369
+ readonly scope: "cleaned/bounced" | "subscribed" | "suppressed" | "unsubscribed";
370
+ };
371
+ readonly suppressionFree?: boolean | null | undefined;
372
+ })[];
373
+ };
374
+ readonly planHash: string;
375
+ readonly idempotencyKey: string;
376
+ } | {
377
+ readonly mode: "resume";
378
+ readonly jobId: string;
379
+ readonly expectedGeneration: number;
380
+ }) => import("./internal/operation").OperationResult<"contactsStartImport">;
381
+ export declare const getImportJob: (input: {
382
+ readonly id: string;
383
+ }) => import("./internal/operation").OperationResult<"contactsGetImportJob">;
391
384
  export declare const bulkDelete: (input: {
392
385
  readonly ids: readonly string[];
393
386
  }) => import("./internal/operation").OperationResult<"contactsBulkDelete">;
@@ -412,13 +405,13 @@ declare const exportContacts: (input?: {
412
405
  export { exportContacts as export };
413
406
  export declare const getActivityTimeline: ((input: {
414
407
  readonly id: string;
415
- readonly limit?: string | null | undefined;
408
+ readonly limit?: number | null | undefined;
416
409
  readonly cursor?: string | null | undefined;
417
410
  readonly channel?: "email" | null | undefined;
418
411
  }) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
419
412
  readonly pages: (input: {
420
413
  readonly id: string;
421
- readonly limit?: string | null | undefined;
414
+ readonly limit?: number | null | undefined;
422
415
  readonly cursor?: string | null | undefined;
423
416
  readonly channel?: "email" | null | undefined;
424
417
  }) => import("effect/Stream").Stream<{
@@ -436,7 +429,7 @@ export declare const getActivityTimeline: ((input: {
436
429
  }, 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>;
437
430
  readonly items: (input: {
438
431
  readonly id: string;
439
- readonly limit?: string | null | undefined;
432
+ readonly limit?: number | null | undefined;
440
433
  readonly cursor?: string | null | undefined;
441
434
  readonly channel?: "email" | null | undefined;
442
435
  }) => import("effect/Stream").Stream<{
@@ -452,12 +445,12 @@ export declare const getActivityTimeline: ((input: {
452
445
  };
453
446
  export declare const getGroupMemberships: ((input: {
454
447
  readonly id: string;
455
- readonly limit?: string | null | undefined;
448
+ readonly limit?: number | null | undefined;
456
449
  readonly cursor?: string | null | undefined;
457
450
  }) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
458
451
  readonly pages: (input: {
459
452
  readonly id: string;
460
- readonly limit?: string | null | undefined;
453
+ readonly limit?: number | null | undefined;
461
454
  readonly cursor?: string | null | undefined;
462
455
  }) => import("effect/Stream").Stream<{
463
456
  readonly items: readonly {
@@ -472,7 +465,7 @@ export declare const getGroupMemberships: ((input: {
472
465
  }, 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>;
473
466
  readonly items: (input: {
474
467
  readonly id: string;
475
- readonly limit?: string | null | undefined;
468
+ readonly limit?: number | null | undefined;
476
469
  readonly cursor?: string | null | undefined;
477
470
  }) => import("effect/Stream").Stream<{
478
471
  readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
@@ -485,12 +478,12 @@ export declare const getGroupMemberships: ((input: {
485
478
  };
486
479
  export declare const listEvents: ((input: {
487
480
  readonly id: string;
488
- readonly limit?: string | null | undefined;
481
+ readonly limit?: number | null | undefined;
489
482
  readonly cursor?: string | null | undefined;
490
483
  }) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
491
484
  readonly pages: (input: {
492
485
  readonly id: string;
493
- readonly limit?: string | null | undefined;
486
+ readonly limit?: number | null | undefined;
494
487
  readonly cursor?: string | null | undefined;
495
488
  }) => import("effect/Stream").Stream<{
496
489
  readonly items: readonly {
@@ -508,7 +501,7 @@ export declare const listEvents: ((input: {
508
501
  }, 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>;
509
502
  readonly items: (input: {
510
503
  readonly id: string;
511
- readonly limit?: string | null | undefined;
504
+ readonly limit?: number | null | undefined;
512
505
  readonly cursor?: string | null | undefined;
513
506
  }) => import("effect/Stream").Stream<{
514
507
  readonly id: string;
@@ -7,7 +7,6 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
7
7
  addIdentity: () => addIdentity,
8
8
  addTags: () => addTags,
9
9
  bulkDelete: () => bulkDelete,
10
- bulkImport: () => bulkImport,
11
10
  bulkUpdateStatus: () => bulkUpdateStatus,
12
11
  bulkUpdateTags: () => bulkUpdateTags,
13
12
  create: () => create,
@@ -18,12 +17,15 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
18
17
  getActivityTimeline: () => getActivityTimeline,
19
18
  getEngagement: () => getEngagement,
20
19
  getGroupMemberships: () => getGroupMemberships,
20
+ getImportJob: () => getImportJob,
21
21
  list: () => list,
22
22
  listEvents: () => listEvents,
23
+ planImport: () => planImport,
23
24
  remove: () => remove,
24
25
  removeIdentity: () => removeIdentity,
25
26
  removeTags: () => removeTags,
26
27
  setConsent: () => setConsent,
28
+ startImport: () => startImport,
27
29
  update: () => update
28
30
  });
29
31
  const make = /* @__PURE__ */ forGroup(ContactsGroup);
@@ -40,7 +42,9 @@ const setConsent = /* @__PURE__ */ make("contactsSetConsent");
40
42
  const addTags = /* @__PURE__ */ make("contactsAddTags");
41
43
  const removeTags = /* @__PURE__ */ make("contactsRemoveTags");
42
44
  const getEngagement = /* @__PURE__ */ make("contactsGetEngagement");
43
- const bulkImport = /* @__PURE__ */ make("contactsBulkImport");
45
+ const planImport = /* @__PURE__ */ make("contactsPlanImport");
46
+ const startImport = /* @__PURE__ */ make("contactsStartImport");
47
+ const getImportJob = /* @__PURE__ */ make("contactsGetImportJob");
44
48
  const bulkDelete = /* @__PURE__ */ make("contactsBulkDelete");
45
49
  const bulkUpdateTags = /* @__PURE__ */ make("contactsBulkUpdateTags");
46
50
  const bulkUpdateStatus = /* @__PURE__ */ make("contactsBulkUpdateStatus");
@@ -49,6 +53,6 @@ const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
49
53
  const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
50
54
  const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
51
55
  //#endregion
52
- export { addIdentity, addTags, bulkDelete, bulkImport, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, list, listEvents, remove, removeIdentity, removeTags, setConsent, update };
56
+ export { addIdentity, addTags, bulkDelete, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, getImportJob, list, listEvents, planImport, remove, removeIdentity, removeTags, setConsent, startImport, update };
53
57
 
54
58
  //# sourceMappingURL=contacts.js.map
@@ -1,5 +1,5 @@
1
1
  export declare const list: ((input?: {
2
- readonly limit?: string | null | undefined;
2
+ readonly limit?: number | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
5
5
  readonly channel?: "email" | null | undefined;
@@ -8,7 +8,7 @@ export declare const list: ((input?: {
8
8
  readonly before?: string | null | undefined;
9
9
  } | undefined) => import("./internal/operation").OperationResult<"conversationsList">) & {
10
10
  readonly pages: (input?: {
11
- readonly limit?: string | null | undefined;
11
+ readonly limit?: number | null | undefined;
12
12
  readonly cursor?: string | null | undefined;
13
13
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
14
14
  readonly channel?: "email" | null | undefined;
@@ -34,7 +34,7 @@ export declare const list: ((input?: {
34
34
  readonly nextCursor: string | null;
35
35
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
36
36
  readonly items: (input?: {
37
- readonly limit?: string | null | undefined;
37
+ readonly limit?: number | null | undefined;
38
38
  readonly cursor?: string | null | undefined;
39
39
  readonly status?: "active" | "archived" | "escalated" | "resolved" | "waiting" | null | undefined;
40
40
  readonly channel?: "email" | null | undefined;
@@ -196,20 +196,24 @@ export declare const getById: (input: {
196
196
  }) => import("./internal/operation").OperationResult<"conversationsGetById">;
197
197
  export declare const listMessages: ((input: {
198
198
  readonly id: string;
199
- readonly limit?: string | null | undefined;
199
+ readonly limit?: number | null | undefined;
200
200
  readonly cursor?: string | null | undefined;
201
201
  readonly after?: string | null | undefined;
202
202
  readonly before?: string | null | undefined;
203
203
  }) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
204
204
  readonly pages: (input: {
205
205
  readonly id: string;
206
- readonly limit?: string | null | undefined;
206
+ readonly limit?: number | null | undefined;
207
207
  readonly cursor?: string | null | undefined;
208
208
  readonly after?: string | null | undefined;
209
209
  readonly before?: string | null | undefined;
210
210
  }) => import("effect/Stream").Stream<{
211
211
  readonly items: readonly {
212
212
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
213
+ readonly campaign?: {
214
+ readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
215
+ readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
216
+ } | null;
213
217
  readonly channel: "email";
214
218
  readonly direction: "inbound" | "outbound";
215
219
  readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
@@ -223,12 +227,16 @@ export declare const listMessages: ((input: {
223
227
  }, 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>;
224
228
  readonly items: (input: {
225
229
  readonly id: string;
226
- readonly limit?: string | null | undefined;
230
+ readonly limit?: number | null | undefined;
227
231
  readonly cursor?: string | null | undefined;
228
232
  readonly after?: string | null | undefined;
229
233
  readonly before?: string | null | undefined;
230
234
  }) => import("effect/Stream").Stream<{
231
235
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
236
+ readonly campaign?: {
237
+ readonly campaignId: string & import("effect/Brand").Brand<"CampaignId">;
238
+ readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
239
+ } | null;
232
240
  readonly channel: "email";
233
241
  readonly direction: "inbound" | "outbound";
234
242
  readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
@@ -9,8 +9,8 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
9
9
  readonly reviewExpectedAt: string | null;
10
10
  readonly skippedRecipients: readonly {
11
11
  readonly address: string;
12
- readonly reason: "bounce" | "complaint" | "group-unsubscribe" | "manual" | "unsubscribe";
13
- readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
12
+ readonly reason: "bounce" | "complaint" | "manual" | "topic-unsubscribe" | "unsubscribe";
13
+ readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
14
14
  }[];
15
15
  readonly createdAt: string;
16
16
  }, 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>;
@@ -27,15 +27,15 @@ export declare const updateRecipientTrackingPreference: (input: {
27
27
  readonly optedOut: boolean;
28
28
  }) => import("./internal/operation").OperationResult<"emailUpdateRecipientTrackingPreference">;
29
29
  export declare const listDomains: ((input?: {
30
- readonly limit?: string | null | undefined;
30
+ readonly limit?: number | null | undefined;
31
31
  readonly cursor?: string | null | undefined;
32
- readonly sendable?: "true" | null | undefined;
32
+ readonly sendable?: true | null | undefined;
33
33
  readonly namespaceId?: string | null | undefined;
34
34
  } | undefined) => import("./internal/operation").OperationResult<"emailListDomains">) & {
35
35
  readonly pages: (input?: {
36
- readonly limit?: string | null | undefined;
36
+ readonly limit?: number | null | undefined;
37
37
  readonly cursor?: string | null | undefined;
38
- readonly sendable?: "true" | null | undefined;
38
+ readonly sendable?: true | null | undefined;
39
39
  readonly namespaceId?: string | null | undefined;
40
40
  } | undefined) => import("effect/Stream").Stream<{
41
41
  readonly items: readonly {
@@ -59,9 +59,9 @@ export declare const listDomains: ((input?: {
59
59
  readonly nextCursor: string | null;
60
60
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
61
61
  readonly items: (input?: {
62
- readonly limit?: string | null | undefined;
62
+ readonly limit?: number | null | undefined;
63
63
  readonly cursor?: string | null | undefined;
64
- readonly sendable?: "true" | null | undefined;
64
+ readonly sendable?: true | null | undefined;
65
65
  readonly namespaceId?: string | null | undefined;
66
66
  } | undefined) => import("effect/Stream").Stream<{
67
67
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -115,7 +115,7 @@ export declare const updateDomainConfig: (input: {
115
115
  readonly openTracking?: boolean | null | undefined;
116
116
  readonly clickTracking?: boolean | null | undefined;
117
117
  readonly replyTo?: readonly string[] | null | undefined;
118
- readonly unsubscribeGroupId?: string | null | undefined;
118
+ readonly topicId?: string | null | undefined;
119
119
  readonly footerEnabled?: boolean | null | undefined;
120
120
  readonly brandSlug?: string | null | undefined;
121
121
  }) => import("./internal/operation").OperationResult<"emailUpdateDomainConfig">;
@@ -215,19 +215,19 @@ export declare const respondToOnboardingInformationRequest: (input: {
215
215
  readonly evidenceMediaIds: readonly string[];
216
216
  }) => import("./internal/operation").OperationResult<"emailRespondToOnboardingInformationRequest">;
217
217
  export declare const listSenders: ((input?: {
218
- readonly limit?: string | null | undefined;
218
+ readonly limit?: number | null | undefined;
219
219
  readonly cursor?: string | null | undefined;
220
220
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
221
- readonly isActive?: string | null | undefined;
222
- readonly isDefault?: string | null | undefined;
221
+ readonly isActive?: boolean | null | undefined;
222
+ readonly isDefault?: boolean | null | undefined;
223
223
  readonly namespaceId?: string | null | undefined;
224
224
  } | undefined) => import("./internal/operation").OperationResult<"emailListSenders">) & {
225
225
  readonly pages: (input?: {
226
- readonly limit?: string | null | undefined;
226
+ readonly limit?: number | null | undefined;
227
227
  readonly cursor?: string | null | undefined;
228
228
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
229
- readonly isActive?: string | null | undefined;
230
- readonly isDefault?: string | null | undefined;
229
+ readonly isActive?: boolean | null | undefined;
230
+ readonly isDefault?: boolean | null | undefined;
231
231
  readonly namespaceId?: string | null | undefined;
232
232
  } | undefined) => import("effect/Stream").Stream<{
233
233
  readonly items: readonly {
@@ -258,11 +258,11 @@ export declare const listSenders: ((input?: {
258
258
  readonly nextCursor: string | null;
259
259
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
260
260
  readonly items: (input?: {
261
- readonly limit?: string | null | undefined;
261
+ readonly limit?: number | null | undefined;
262
262
  readonly cursor?: string | null | undefined;
263
263
  readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
264
- readonly isActive?: string | null | undefined;
265
- readonly isDefault?: string | null | undefined;
264
+ readonly isActive?: boolean | null | undefined;
265
+ readonly isDefault?: boolean | null | undefined;
266
266
  readonly namespaceId?: string | null | undefined;
267
267
  } | undefined) => import("effect/Stream").Stream<{
268
268
  readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
@@ -337,14 +337,14 @@ export declare const listSuppressions: ((input?: {
337
337
  readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | null | undefined;
338
338
  readonly status?: "active" | "expired" | null | undefined;
339
339
  readonly search?: string | null | undefined;
340
- readonly limit?: string | null | undefined;
340
+ readonly limit?: number | null | undefined;
341
341
  readonly cursor?: string | null | undefined;
342
342
  } | undefined) => import("./internal/operation").OperationResult<"emailListSuppressions">) & {
343
343
  readonly pages: (input?: {
344
344
  readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | null | undefined;
345
345
  readonly status?: "active" | "expired" | null | undefined;
346
346
  readonly search?: string | null | undefined;
347
- readonly limit?: string | null | undefined;
347
+ readonly limit?: number | null | undefined;
348
348
  readonly cursor?: string | null | undefined;
349
349
  } | undefined) => import("effect/Stream").Stream<{
350
350
  readonly items: readonly {
@@ -365,7 +365,7 @@ export declare const listSuppressions: ((input?: {
365
365
  readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | null | undefined;
366
366
  readonly status?: "active" | "expired" | null | undefined;
367
367
  readonly search?: string | null | undefined;
368
- readonly limit?: string | null | undefined;
368
+ readonly limit?: number | null | undefined;
369
369
  readonly cursor?: string | null | undefined;
370
370
  } | undefined) => import("effect/Stream").Stream<{
371
371
  readonly id: string & import("effect/Brand").Brand<"SuppressionId">;
@@ -386,14 +386,14 @@ export declare const removeSuppression: (input: {
386
386
  }) => import("./internal/operation").OperationResult<"emailRemoveSuppression">;
387
387
  export declare const listBlocks: ((input?: {
388
388
  readonly blockType?: "domain" | "email" | null | undefined;
389
- readonly isActive?: string | null | undefined;
390
- readonly limit?: string | null | undefined;
389
+ readonly isActive?: boolean | null | undefined;
390
+ readonly limit?: number | null | undefined;
391
391
  readonly cursor?: string | null | undefined;
392
392
  } | undefined) => import("./internal/operation").OperationResult<"emailListBlocks">) & {
393
393
  readonly pages: (input?: {
394
394
  readonly blockType?: "domain" | "email" | null | undefined;
395
- readonly isActive?: string | null | undefined;
396
- readonly limit?: string | null | undefined;
395
+ readonly isActive?: boolean | null | undefined;
396
+ readonly limit?: number | null | undefined;
397
397
  readonly cursor?: string | null | undefined;
398
398
  } | undefined) => import("effect/Stream").Stream<{
399
399
  readonly items: readonly {
@@ -412,8 +412,8 @@ export declare const listBlocks: ((input?: {
412
412
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
413
413
  readonly items: (input?: {
414
414
  readonly blockType?: "domain" | "email" | null | undefined;
415
- readonly isActive?: string | null | undefined;
416
- readonly limit?: string | null | undefined;
415
+ readonly isActive?: boolean | null | undefined;
416
+ readonly limit?: number | null | undefined;
417
417
  readonly cursor?: string | null | undefined;
418
418
  } | undefined) => import("effect/Stream").Stream<{
419
419
  readonly id: string & import("effect/Brand").Brand<"BlockedEmailId">;
@@ -450,7 +450,7 @@ export declare const getBlockLogs: ((input?: {
450
450
  readonly fromAddress?: string | null | undefined;
451
451
  readonly after?: string | null | undefined;
452
452
  readonly before?: string | null | undefined;
453
- readonly limit?: string | null | undefined;
453
+ readonly limit?: number | null | undefined;
454
454
  readonly cursor?: string | null | undefined;
455
455
  } | undefined) => import("./internal/operation").OperationResult<"emailGetBlockLogs">) & {
456
456
  readonly pages: (input?: {
@@ -458,7 +458,7 @@ export declare const getBlockLogs: ((input?: {
458
458
  readonly fromAddress?: string | null | undefined;
459
459
  readonly after?: string | null | undefined;
460
460
  readonly before?: string | null | undefined;
461
- readonly limit?: string | null | undefined;
461
+ readonly limit?: number | null | undefined;
462
462
  readonly cursor?: string | null | undefined;
463
463
  } | undefined) => import("effect/Stream").Stream<{
464
464
  readonly items: readonly {
@@ -481,7 +481,7 @@ export declare const getBlockLogs: ((input?: {
481
481
  readonly fromAddress?: string | null | undefined;
482
482
  readonly after?: string | null | undefined;
483
483
  readonly before?: string | null | undefined;
484
- readonly limit?: string | null | undefined;
484
+ readonly limit?: number | null | undefined;
485
485
  readonly cursor?: string | null | undefined;
486
486
  } | undefined) => import("effect/Stream").Stream<{
487
487
  readonly id: string & import("effect/Brand").Brand<"BlockedEmailLogId">;
@@ -502,7 +502,7 @@ export declare const checkBlocked: (input: {
502
502
  }) => import("./internal/operation").OperationResult<"emailCheckBlocked">;
503
503
  export declare const listForwardingRules: (input?: {
504
504
  readonly domainId?: string | null | undefined;
505
- readonly isActive?: string | null | undefined;
505
+ readonly isActive?: boolean | null | undefined;
506
506
  } | undefined) => import("./internal/operation").OperationResult<"emailListForwardingRules">;
507
507
  export declare const createForwardingRule: (input: {
508
508
  readonly name: string;
@@ -599,7 +599,7 @@ export declare const getForwardingLog: ((input?: {
599
599
  readonly status?: "failed" | "forwarded" | "pending" | null | undefined;
600
600
  readonly after?: string | null | undefined;
601
601
  readonly before?: string | null | undefined;
602
- readonly limit?: string | null | undefined;
602
+ readonly limit?: number | null | undefined;
603
603
  readonly cursor?: string | null | undefined;
604
604
  } | undefined) => import("./internal/operation").OperationResult<"emailGetForwardingLog">) & {
605
605
  readonly pages: (input?: {
@@ -607,7 +607,7 @@ export declare const getForwardingLog: ((input?: {
607
607
  readonly status?: "failed" | "forwarded" | "pending" | null | undefined;
608
608
  readonly after?: string | null | undefined;
609
609
  readonly before?: string | null | undefined;
610
- readonly limit?: string | null | undefined;
610
+ readonly limit?: number | null | undefined;
611
611
  readonly cursor?: string | null | undefined;
612
612
  } | undefined) => import("effect/Stream").Stream<{
613
613
  readonly items: readonly {
@@ -630,7 +630,7 @@ export declare const getForwardingLog: ((input?: {
630
630
  readonly status?: "failed" | "forwarded" | "pending" | null | undefined;
631
631
  readonly after?: string | null | undefined;
632
632
  readonly before?: string | null | undefined;
633
- readonly limit?: string | null | undefined;
633
+ readonly limit?: number | null | undefined;
634
634
  readonly cursor?: string | null | undefined;
635
635
  } | undefined) => import("effect/Stream").Stream<{
636
636
  readonly id: string;
@@ -1,2 +1,2 @@
1
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, DeliveryUnavailableError, } from "./generated/shared";
1
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError, TemplateSourceError, DeliveryUnavailableError, } from "./generated/shared";
2
2
  export { MediaUploadError } from "../inline-attachments";
@@ -1,3 +1,3 @@
1
1
  import { MediaUploadError } from "../inline-attachments.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
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError };
2
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TemplateSourceError, UnauthorizedError, ValidationError } from "./generated/shared.js";
3
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, TemplateSourceError, UnauthorizedError, ValidationError };
@@ -1,11 +1,11 @@
1
1
  export declare const list: ((input?: {
2
- readonly limit?: string | null | undefined;
2
+ readonly limit?: number | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly after?: string | null | undefined;
5
5
  readonly before?: string | null | undefined;
6
6
  } | undefined) => import("./internal/operation").OperationResult<"extensionInstallationsList">) & {
7
7
  readonly pages: (input?: {
8
- readonly limit?: string | null | undefined;
8
+ readonly limit?: number | null | undefined;
9
9
  readonly cursor?: string | null | undefined;
10
10
  readonly after?: string | null | undefined;
11
11
  readonly before?: string | null | undefined;
@@ -26,7 +26,7 @@ export declare const list: ((input?: {
26
26
  readonly nextCursor: string | null;
27
27
  }, 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>;
28
28
  readonly items: (input?: {
29
- readonly limit?: string | null | undefined;
29
+ readonly limit?: number | null | undefined;
30
30
  readonly cursor?: string | null | undefined;
31
31
  readonly after?: string | null | undefined;
32
32
  readonly before?: string | null | undefined;