samva 0.18.0 → 0.20.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 (70) hide show
  1. package/README.md +2 -0
  2. package/dist/client/sdk.gen.d.ts +94 -36
  3. package/dist/client/sdk.gen.js +269 -55
  4. package/dist/client/types.gen.d.ts +497 -106
  5. package/dist/effect/campaigns.d.ts +35 -3
  6. package/dist/effect/contact-groups.d.ts +39 -3
  7. package/dist/effect/contacts.d.ts +240 -17
  8. package/dist/effect/contacts.js +3 -1
  9. package/dist/effect/conversations.d.ts +11 -11
  10. package/dist/effect/email.d.ts +22 -6
  11. package/dist/effect/errors.d.ts +1 -1
  12. package/dist/effect/errors.js +2 -2
  13. package/dist/effect/extension-installations.d.ts +12 -12
  14. package/dist/effect/extensions.d.ts +3 -3
  15. package/dist/effect/generated/campaigns.d.ts +73 -4
  16. package/dist/effect/generated/campaigns.js +18 -1
  17. package/dist/effect/generated/contact-groups.d.ts +33 -3
  18. package/dist/effect/generated/contacts.d.ts +608 -55
  19. package/dist/effect/generated/contacts.js +55 -10
  20. package/dist/effect/generated/conversations.d.ts +25 -25
  21. package/dist/effect/generated/conversations.js +1 -1
  22. package/dist/effect/generated/email.d.ts +162 -1
  23. package/dist/effect/generated/email.js +31 -11
  24. package/dist/effect/generated/extension-installations.d.ts +44 -44
  25. package/dist/effect/generated/extension-installations.js +6 -0
  26. package/dist/effect/generated/extensions.d.ts +10 -10
  27. package/dist/effect/generated/extensions.js +2 -0
  28. package/dist/effect/generated/journeys.d.ts +13 -61
  29. package/dist/effect/generated/journeys.js +5 -5
  30. package/dist/effect/generated/mailboxes.d.ts +584 -78
  31. package/dist/effect/generated/mailboxes.js +65 -24
  32. package/dist/effect/generated/messages.d.ts +35 -1
  33. package/dist/effect/generated/messages.js +9 -2
  34. package/dist/effect/generated/namespaces.d.ts +432 -2
  35. package/dist/effect/generated/namespaces.js +91 -4
  36. package/dist/effect/generated/organizations.d.ts +13 -11
  37. package/dist/effect/generated/organizations.js +7 -3
  38. package/dist/effect/generated/shared.d.ts +104 -49
  39. package/dist/effect/generated/shared.js +51 -28
  40. package/dist/effect/generated/templates.d.ts +44 -1
  41. package/dist/effect/generated/templates.js +9 -3
  42. package/dist/effect/generated/unsubscribe-groups.d.ts +173 -78
  43. package/dist/effect/generated/unsubscribe-groups.js +75 -58
  44. package/dist/effect/generated/webhooks.d.ts +19 -19
  45. package/dist/effect/generated/webhooks.js +8 -0
  46. package/dist/effect/generated-metadata.d.ts +22 -6
  47. package/dist/effect/generated-metadata.js +334 -329
  48. package/dist/effect/index.js +2 -2
  49. package/dist/effect/journeys.d.ts +4 -4
  50. package/dist/effect/mailboxes.d.ts +144 -12
  51. package/dist/effect/messages.d.ts +8 -0
  52. package/dist/effect/namespaces.d.ts +29 -0
  53. package/dist/effect/namespaces.js +7 -1
  54. package/dist/effect/organizations.d.ts +4 -4
  55. package/dist/effect/templates.d.ts +12 -1
  56. package/dist/effect/unsubscribe-groups.d.ts +29 -18
  57. package/dist/effect/unsubscribe-groups.js +5 -5
  58. package/dist/effect/webhooks.d.ts +8 -8
  59. package/dist/index.js +2 -2
  60. package/dist/mailbox-events.d.ts +31 -4
  61. package/dist/mailbox-events.js +39 -11
  62. package/dist/package.js +1 -1
  63. package/dist/promises/errors.gen.d.ts +2 -12
  64. package/dist/promises/errors.gen.js +1 -26
  65. package/dist/promises/index.d.ts +1 -1
  66. package/dist/promises/index.js +2 -2
  67. package/dist/promises/types.gen.d.ts +1 -1
  68. package/dist/service-map.d.ts +24 -4
  69. package/dist/service-map.js +26 -2
  70. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: string | null | undefined;
3
3
  readonly cursor?: string | null | undefined;
4
+ readonly namespaceId?: string | null | undefined;
4
5
  readonly search?: string | null | undefined;
5
6
  readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
6
7
  readonly fields?: string | null | undefined;
@@ -11,6 +12,7 @@ export declare const list: ((input?: {
11
12
  } | undefined) => import("effect/Effect").Effect<{
12
13
  readonly items: readonly {
13
14
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
15
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
14
16
  readonly name: string;
15
17
  readonly displayName: string | null;
16
18
  readonly status: "active" | "archived" | "blocked" | "paused";
@@ -33,6 +35,7 @@ export declare const list: ((input?: {
33
35
  readonly pages: (input?: {
34
36
  readonly limit?: string | null | undefined;
35
37
  readonly cursor?: string | null | undefined;
38
+ readonly namespaceId?: string | null | undefined;
36
39
  readonly search?: string | null | undefined;
37
40
  readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
38
41
  readonly fields?: string | null | undefined;
@@ -43,6 +46,7 @@ export declare const list: ((input?: {
43
46
  } | undefined) => import("effect/Stream").Stream<{
44
47
  readonly items: readonly {
45
48
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
49
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
46
50
  readonly name: string;
47
51
  readonly displayName: string | null;
48
52
  readonly status: "active" | "archived" | "blocked" | "paused";
@@ -65,6 +69,7 @@ export declare const list: ((input?: {
65
69
  readonly items: (input?: {
66
70
  readonly limit?: string | null | undefined;
67
71
  readonly cursor?: string | null | undefined;
72
+ readonly namespaceId?: string | null | undefined;
68
73
  readonly search?: string | null | undefined;
69
74
  readonly status?: "active" | "archived" | "blocked" | "paused" | null | undefined;
70
75
  readonly fields?: string | null | undefined;
@@ -74,6 +79,7 @@ export declare const list: ((input?: {
74
79
  readonly before?: string | null | undefined;
75
80
  } | undefined) => import("effect/Stream").Stream<{
76
81
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
82
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
77
83
  readonly name: string;
78
84
  readonly displayName: string | null;
79
85
  readonly status: "active" | "archived" | "blocked" | "paused";
@@ -93,11 +99,12 @@ export declare const list: ((input?: {
93
99
  }, 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>;
94
100
  };
95
101
  export declare const create: (input: {
102
+ readonly namespaceId?: string | null | undefined;
96
103
  readonly name: string;
97
104
  readonly displayName?: string | null | undefined;
98
105
  readonly avatar?: string | null | undefined;
99
106
  readonly identities?: readonly {
100
- readonly channel: "email";
107
+ readonly type: "email" | "phone";
101
108
  readonly identifier: string;
102
109
  readonly verified?: boolean | null | undefined;
103
110
  }[] | null | undefined;
@@ -162,6 +169,7 @@ export declare const create: (input: {
162
169
  } | null | undefined;
163
170
  }) => import("effect/Effect").Effect<{
164
171
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
172
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
165
173
  readonly name: string;
166
174
  readonly displayName: string | null;
167
175
  readonly avatar: string | null;
@@ -170,9 +178,21 @@ export declare const create: (input: {
170
178
  readonly externalId: string | null;
171
179
  readonly identities: readonly {
172
180
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
173
- readonly channel: "email";
181
+ readonly type: "email" | "phone";
174
182
  readonly identifier: string;
175
183
  readonly verified: boolean;
184
+ readonly channels: readonly {
185
+ readonly channel: "email";
186
+ readonly reachability: "reachable" | "unknown" | "unreachable";
187
+ readonly consent: {
188
+ readonly status: "opted_in" | "opted_out";
189
+ readonly source: string;
190
+ readonly capturedAt: string;
191
+ readonly proof: {
192
+ readonly [x: string]: import("./generated").JsonValue;
193
+ } | null;
194
+ } | null;
195
+ }[];
176
196
  }[];
177
197
  readonly profile: {
178
198
  readonly firstName?: string | null;
@@ -208,13 +228,15 @@ export declare const create: (input: {
208
228
  } | null;
209
229
  readonly createdAt: string;
210
230
  readonly updatedAt: string;
211
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
231
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
212
232
  export declare const find: (input?: {
233
+ readonly namespaceId?: string | null | undefined;
213
234
  readonly email?: string | null | undefined;
214
235
  readonly phone?: string | null | undefined;
215
236
  readonly externalId?: string | null | undefined;
216
237
  } | undefined) => import("effect/Effect").Effect<{
217
238
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
239
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
218
240
  readonly name: string;
219
241
  readonly displayName: string | null;
220
242
  readonly avatar: string | null;
@@ -223,9 +245,21 @@ export declare const find: (input?: {
223
245
  readonly externalId: string | null;
224
246
  readonly identities: readonly {
225
247
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
226
- readonly channel: "email";
248
+ readonly type: "email" | "phone";
227
249
  readonly identifier: string;
228
250
  readonly verified: boolean;
251
+ readonly channels: readonly {
252
+ readonly channel: "email";
253
+ readonly reachability: "reachable" | "unknown" | "unreachable";
254
+ readonly consent: {
255
+ readonly status: "opted_in" | "opted_out";
256
+ readonly source: string;
257
+ readonly capturedAt: string;
258
+ readonly proof: {
259
+ readonly [x: string]: import("./generated").JsonValue;
260
+ } | null;
261
+ } | null;
262
+ }[];
229
263
  }[];
230
264
  readonly profile: {
231
265
  readonly firstName?: string | null;
@@ -261,8 +295,9 @@ export declare const find: (input?: {
261
295
  } | null;
262
296
  readonly createdAt: string;
263
297
  readonly updatedAt: string;
264
- } | null, import("./errors").ConflictError | 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>;
298
+ } | null, import("./errors").ConflictError | 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>;
265
299
  export declare const findOrCreate: (input: {
300
+ readonly namespaceId?: string | null | undefined;
266
301
  readonly lookup: {
267
302
  readonly type: "email";
268
303
  readonly value: string;
@@ -278,7 +313,7 @@ export declare const findOrCreate: (input: {
278
313
  readonly displayName?: string | null | undefined;
279
314
  readonly avatar?: string | null | undefined;
280
315
  readonly identities?: readonly {
281
- readonly channel: "email";
316
+ readonly type: "email" | "phone";
282
317
  readonly identifier: string;
283
318
  readonly verified?: boolean | null | undefined;
284
319
  }[] | null | undefined;
@@ -303,6 +338,7 @@ export declare const findOrCreate: (input: {
303
338
  }) => import("effect/Effect").Effect<{
304
339
  readonly contact: {
305
340
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
341
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
306
342
  readonly name: string;
307
343
  readonly displayName: string | null;
308
344
  readonly avatar: string | null;
@@ -311,9 +347,21 @@ export declare const findOrCreate: (input: {
311
347
  readonly externalId: string | null;
312
348
  readonly identities: readonly {
313
349
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
314
- readonly channel: "email";
350
+ readonly type: "email" | "phone";
315
351
  readonly identifier: string;
316
352
  readonly verified: boolean;
353
+ readonly channels: readonly {
354
+ readonly channel: "email";
355
+ readonly reachability: "reachable" | "unknown" | "unreachable";
356
+ readonly consent: {
357
+ readonly status: "opted_in" | "opted_out";
358
+ readonly source: string;
359
+ readonly capturedAt: string;
360
+ readonly proof: {
361
+ readonly [x: string]: import("./generated").JsonValue;
362
+ } | null;
363
+ } | null;
364
+ }[];
317
365
  }[];
318
366
  readonly profile: {
319
367
  readonly firstName?: string | null;
@@ -351,11 +399,12 @@ export declare const findOrCreate: (input: {
351
399
  readonly updatedAt: string;
352
400
  };
353
401
  readonly created: boolean;
354
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
402
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
355
403
  export declare const get: (input: {
356
404
  readonly id: string;
357
405
  }) => import("effect/Effect").Effect<{
358
406
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
407
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
359
408
  readonly name: string;
360
409
  readonly displayName: string | null;
361
410
  readonly avatar: string | null;
@@ -364,9 +413,21 @@ export declare const get: (input: {
364
413
  readonly externalId: string | null;
365
414
  readonly identities: readonly {
366
415
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
367
- readonly channel: "email";
416
+ readonly type: "email" | "phone";
368
417
  readonly identifier: string;
369
418
  readonly verified: boolean;
419
+ readonly channels: readonly {
420
+ readonly channel: "email";
421
+ readonly reachability: "reachable" | "unknown" | "unreachable";
422
+ readonly consent: {
423
+ readonly status: "opted_in" | "opted_out";
424
+ readonly source: string;
425
+ readonly capturedAt: string;
426
+ readonly proof: {
427
+ readonly [x: string]: import("./generated").JsonValue;
428
+ } | null;
429
+ } | null;
430
+ }[];
370
431
  }[];
371
432
  readonly profile: {
372
433
  readonly firstName?: string | null;
@@ -472,6 +533,7 @@ export declare const update: (input: {
472
533
  } | null | undefined;
473
534
  }) => import("effect/Effect").Effect<{
474
535
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
536
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
475
537
  readonly name: string;
476
538
  readonly displayName: string | null;
477
539
  readonly avatar: string | null;
@@ -480,9 +542,21 @@ export declare const update: (input: {
480
542
  readonly externalId: string | null;
481
543
  readonly identities: readonly {
482
544
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
483
- readonly channel: "email";
545
+ readonly type: "email" | "phone";
484
546
  readonly identifier: string;
485
547
  readonly verified: boolean;
548
+ readonly channels: readonly {
549
+ readonly channel: "email";
550
+ readonly reachability: "reachable" | "unknown" | "unreachable";
551
+ readonly consent: {
552
+ readonly status: "opted_in" | "opted_out";
553
+ readonly source: string;
554
+ readonly capturedAt: string;
555
+ readonly proof: {
556
+ readonly [x: string]: import("./generated").JsonValue;
557
+ } | null;
558
+ } | null;
559
+ }[];
486
560
  }[];
487
561
  readonly profile: {
488
562
  readonly firstName?: string | null;
@@ -521,11 +595,12 @@ export declare const update: (input: {
521
595
  }, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
522
596
  export declare const addIdentity: (input: {
523
597
  readonly id: string;
524
- readonly channel: "email";
598
+ readonly type: "email" | "phone";
525
599
  readonly identifier: string;
526
600
  readonly verified?: boolean | null | undefined;
527
601
  }) => import("effect/Effect").Effect<{
528
602
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
603
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
529
604
  readonly name: string;
530
605
  readonly displayName: string | null;
531
606
  readonly avatar: string | null;
@@ -534,9 +609,21 @@ export declare const addIdentity: (input: {
534
609
  readonly externalId: string | null;
535
610
  readonly identities: readonly {
536
611
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
537
- readonly channel: "email";
612
+ readonly type: "email" | "phone";
538
613
  readonly identifier: string;
539
614
  readonly verified: boolean;
615
+ readonly channels: readonly {
616
+ readonly channel: "email";
617
+ readonly reachability: "reachable" | "unknown" | "unreachable";
618
+ readonly consent: {
619
+ readonly status: "opted_in" | "opted_out";
620
+ readonly source: string;
621
+ readonly capturedAt: string;
622
+ readonly proof: {
623
+ readonly [x: string]: import("./generated").JsonValue;
624
+ } | null;
625
+ } | null;
626
+ }[];
540
627
  }[];
541
628
  readonly profile: {
542
629
  readonly firstName?: string | null;
@@ -578,6 +665,7 @@ export declare const removeIdentity: (input: {
578
665
  readonly identityId: string;
579
666
  }) => import("effect/Effect").Effect<{
580
667
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
668
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
581
669
  readonly name: string;
582
670
  readonly displayName: string | null;
583
671
  readonly avatar: string | null;
@@ -586,9 +674,117 @@ export declare const removeIdentity: (input: {
586
674
  readonly externalId: string | null;
587
675
  readonly identities: readonly {
588
676
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
589
- readonly channel: "email";
677
+ readonly type: "email" | "phone";
590
678
  readonly identifier: string;
591
679
  readonly verified: boolean;
680
+ readonly channels: readonly {
681
+ readonly channel: "email";
682
+ readonly reachability: "reachable" | "unknown" | "unreachable";
683
+ readonly consent: {
684
+ readonly status: "opted_in" | "opted_out";
685
+ readonly source: string;
686
+ readonly capturedAt: string;
687
+ readonly proof: {
688
+ readonly [x: string]: import("./generated").JsonValue;
689
+ } | null;
690
+ } | null;
691
+ }[];
692
+ }[];
693
+ readonly profile: {
694
+ readonly firstName?: string | null;
695
+ readonly lastName?: string | null;
696
+ readonly company?: string | null;
697
+ readonly jobTitle?: string | null;
698
+ readonly location?: {
699
+ readonly country: string;
700
+ readonly state: string;
701
+ readonly city: string;
702
+ readonly timezone: string;
703
+ } | null;
704
+ readonly customFields?: {
705
+ readonly [x: string]: string | number | boolean | null;
706
+ } | null;
707
+ readonly source?: "api" | "form" | "import" | "manual" | null;
708
+ } | null;
709
+ readonly preferences: {
710
+ readonly preferredChannels?: readonly "email"[] | null;
711
+ readonly language?: string | null;
712
+ readonly timezone?: string | null;
713
+ readonly notifications?: {
714
+ readonly email?: boolean | null;
715
+ readonly quiet_hours?: {
716
+ readonly start: string;
717
+ readonly end: string;
718
+ } | null;
719
+ } | null;
720
+ } | null;
721
+ readonly tags: readonly string[];
722
+ readonly metadata: {
723
+ readonly [x: string]: import("./generated").JsonValue;
724
+ } | null;
725
+ readonly createdAt: string;
726
+ readonly updatedAt: string;
727
+ }, 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>;
728
+ export declare const setConsent: (input: {
729
+ readonly id: string;
730
+ readonly identityId: string;
731
+ readonly channel: "email";
732
+ readonly status: "opted_in" | "opted_out";
733
+ readonly source: string;
734
+ readonly capturedAt: string;
735
+ readonly proof?: {
736
+ readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
737
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
738
+ } | null)[] | {
739
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
740
+ } | null)[] | {
741
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
742
+ } | null)[] | {
743
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
744
+ } | null)[] | {
745
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
746
+ } | null)[] | {
747
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
748
+ } | null)[] | {
749
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
750
+ } | null)[] | {
751
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
752
+ } | null)[] | {
753
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
754
+ } | null)[] | {
755
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
756
+ } | null)[] | {
757
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
758
+ } | null)[] | {
759
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
760
+ } | null | undefined;
761
+ } | null | undefined;
762
+ }) => import("effect/Effect").Effect<{
763
+ readonly id: string & import("effect/Brand").Brand<"ContactId">;
764
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
765
+ readonly name: string;
766
+ readonly displayName: string | null;
767
+ readonly avatar: string | null;
768
+ readonly status: "active" | "archived" | "blocked" | "paused";
769
+ readonly statusReason: string | null;
770
+ readonly externalId: string | null;
771
+ readonly identities: readonly {
772
+ readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
773
+ readonly type: "email" | "phone";
774
+ readonly identifier: string;
775
+ readonly verified: boolean;
776
+ readonly channels: readonly {
777
+ readonly channel: "email";
778
+ readonly reachability: "reachable" | "unknown" | "unreachable";
779
+ readonly consent: {
780
+ readonly status: "opted_in" | "opted_out";
781
+ readonly source: string;
782
+ readonly capturedAt: string;
783
+ readonly proof: {
784
+ readonly [x: string]: import("./generated").JsonValue;
785
+ } | null;
786
+ } | null;
787
+ }[];
592
788
  }[];
593
789
  readonly profile: {
594
790
  readonly firstName?: string | null;
@@ -630,6 +826,7 @@ export declare const addTags: (input: {
630
826
  readonly tags: readonly string[];
631
827
  }) => import("effect/Effect").Effect<{
632
828
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
829
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
633
830
  readonly name: string;
634
831
  readonly displayName: string | null;
635
832
  readonly avatar: string | null;
@@ -638,9 +835,21 @@ export declare const addTags: (input: {
638
835
  readonly externalId: string | null;
639
836
  readonly identities: readonly {
640
837
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
641
- readonly channel: "email";
838
+ readonly type: "email" | "phone";
642
839
  readonly identifier: string;
643
840
  readonly verified: boolean;
841
+ readonly channels: readonly {
842
+ readonly channel: "email";
843
+ readonly reachability: "reachable" | "unknown" | "unreachable";
844
+ readonly consent: {
845
+ readonly status: "opted_in" | "opted_out";
846
+ readonly source: string;
847
+ readonly capturedAt: string;
848
+ readonly proof: {
849
+ readonly [x: string]: import("./generated").JsonValue;
850
+ } | null;
851
+ } | null;
852
+ }[];
644
853
  }[];
645
854
  readonly profile: {
646
855
  readonly firstName?: string | null;
@@ -682,6 +891,7 @@ export declare const removeTags: (input: {
682
891
  readonly tags: readonly string[];
683
892
  }) => import("effect/Effect").Effect<{
684
893
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
894
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
685
895
  readonly name: string;
686
896
  readonly displayName: string | null;
687
897
  readonly avatar: string | null;
@@ -690,9 +900,21 @@ export declare const removeTags: (input: {
690
900
  readonly externalId: string | null;
691
901
  readonly identities: readonly {
692
902
  readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
693
- readonly channel: "email";
903
+ readonly type: "email" | "phone";
694
904
  readonly identifier: string;
695
905
  readonly verified: boolean;
906
+ readonly channels: readonly {
907
+ readonly channel: "email";
908
+ readonly reachability: "reachable" | "unknown" | "unreachable";
909
+ readonly consent: {
910
+ readonly status: "opted_in" | "opted_out";
911
+ readonly source: string;
912
+ readonly capturedAt: string;
913
+ readonly proof: {
914
+ readonly [x: string]: import("./generated").JsonValue;
915
+ } | null;
916
+ } | null;
917
+ }[];
696
918
  }[];
697
919
  readonly profile: {
698
920
  readonly firstName?: string | null;
@@ -742,12 +964,13 @@ export declare const getEngagement: (input: {
742
964
  };
743
965
  }, 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>;
744
966
  export declare const bulkImport: (input: {
967
+ readonly namespaceId?: string | null | undefined;
745
968
  readonly contacts: readonly {
746
969
  readonly name: string;
747
970
  readonly displayName?: string | null | undefined;
748
971
  readonly avatar?: string | null | undefined;
749
972
  readonly identities?: readonly {
750
- readonly channel: "email";
973
+ readonly type: "email" | "phone";
751
974
  readonly identifier: string;
752
975
  readonly verified?: boolean | null | undefined;
753
976
  }[] | null | undefined;
@@ -822,7 +1045,7 @@ export declare const bulkImport: (input: {
822
1045
  readonly contactId?: (string & import("effect/Brand").Brand<"ContactId">) | null;
823
1046
  readonly error?: string | null;
824
1047
  }[];
825
- }, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1048
+ }, import("./errors").BillingProviderError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
826
1049
  export declare const bulkDelete: (input: {
827
1050
  readonly ids: readonly string[];
828
1051
  }) => import("effect/Effect").Effect<{
@@ -23,6 +23,7 @@ var contacts_exports = /* @__PURE__ */ __exportAll({
23
23
  remove: () => remove,
24
24
  removeIdentity: () => removeIdentity,
25
25
  removeTags: () => removeTags,
26
+ setConsent: () => setConsent,
26
27
  update: () => update
27
28
  });
28
29
  const make = /* @__PURE__ */ forGroup(ContactsGroup);
@@ -35,6 +36,7 @@ const remove = /* @__PURE__ */ make("contactsRemove");
35
36
  const update = /* @__PURE__ */ make("contactsUpdate");
36
37
  const addIdentity = /* @__PURE__ */ make("contactsAddIdentity");
37
38
  const removeIdentity = /* @__PURE__ */ make("contactsRemoveIdentity");
39
+ const setConsent = /* @__PURE__ */ make("contactsSetConsent");
38
40
  const addTags = /* @__PURE__ */ make("contactsAddTags");
39
41
  const removeTags = /* @__PURE__ */ make("contactsRemoveTags");
40
42
  const getEngagement = /* @__PURE__ */ make("contactsGetEngagement");
@@ -47,6 +49,6 @@ const getActivityTimeline = /* @__PURE__ */ make("contactsGetActivityTimeline");
47
49
  const getGroupMemberships = /* @__PURE__ */ make("contactsGetGroupMemberships");
48
50
  const listEvents = /* @__PURE__ */ forGroup(ContactEventsGroup)("contactEventsListEvents");
49
51
  //#endregion
50
- export { addIdentity, addTags, bulkDelete, bulkImport, bulkUpdateStatus, bulkUpdateTags, contacts_exports, create, exportContacts as export, find, findOrCreate, get, getActivityTimeline, getEngagement, getGroupMemberships, list, listEvents, remove, removeIdentity, removeTags, update };
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 };
51
53
 
52
54
  //# sourceMappingURL=contacts.js.map
@@ -253,7 +253,7 @@ export declare const create: (input: {
253
253
  readonly name: string;
254
254
  readonly displayName: string | null;
255
255
  readonly identities: readonly {
256
- readonly channel: "email";
256
+ readonly type: "email" | "phone";
257
257
  readonly identifier: string;
258
258
  readonly verified: boolean;
259
259
  }[];
@@ -314,7 +314,7 @@ export declare const getById: (input: {
314
314
  readonly name: string;
315
315
  readonly displayName: string | null;
316
316
  readonly identities: readonly {
317
- readonly channel: "email";
317
+ readonly type: "email" | "phone";
318
318
  readonly identifier: string;
319
319
  readonly verified: boolean;
320
320
  }[];
@@ -562,7 +562,7 @@ export declare const update: (input: {
562
562
  readonly name: string;
563
563
  readonly displayName: string | null;
564
564
  readonly identities: readonly {
565
- readonly channel: "email";
565
+ readonly type: "email" | "phone";
566
566
  readonly identifier: string;
567
567
  readonly verified: boolean;
568
568
  }[];
@@ -624,7 +624,7 @@ export declare const addTags: (input: {
624
624
  readonly name: string;
625
625
  readonly displayName: string | null;
626
626
  readonly identities: readonly {
627
- readonly channel: "email";
627
+ readonly type: "email" | "phone";
628
628
  readonly identifier: string;
629
629
  readonly verified: boolean;
630
630
  }[];
@@ -686,7 +686,7 @@ export declare const removeTags: (input: {
686
686
  readonly name: string;
687
687
  readonly displayName: string | null;
688
688
  readonly identities: readonly {
689
- readonly channel: "email";
689
+ readonly type: "email" | "phone";
690
690
  readonly identifier: string;
691
691
  readonly verified: boolean;
692
692
  }[];
@@ -748,7 +748,7 @@ export declare const addCategories: (input: {
748
748
  readonly name: string;
749
749
  readonly displayName: string | null;
750
750
  readonly identities: readonly {
751
- readonly channel: "email";
751
+ readonly type: "email" | "phone";
752
752
  readonly identifier: string;
753
753
  readonly verified: boolean;
754
754
  }[];
@@ -810,7 +810,7 @@ export declare const removeCategories: (input: {
810
810
  readonly name: string;
811
811
  readonly displayName: string | null;
812
812
  readonly identities: readonly {
813
- readonly channel: "email";
813
+ readonly type: "email" | "phone";
814
814
  readonly identifier: string;
815
815
  readonly verified: boolean;
816
816
  }[];
@@ -872,7 +872,7 @@ export declare const addChannels: (input: {
872
872
  readonly name: string;
873
873
  readonly displayName: string | null;
874
874
  readonly identities: readonly {
875
- readonly channel: "email";
875
+ readonly type: "email" | "phone";
876
876
  readonly identifier: string;
877
877
  readonly verified: boolean;
878
878
  }[];
@@ -934,7 +934,7 @@ export declare const removeChannels: (input: {
934
934
  readonly name: string;
935
935
  readonly displayName: string | null;
936
936
  readonly identities: readonly {
937
- readonly channel: "email";
937
+ readonly type: "email" | "phone";
938
938
  readonly identifier: string;
939
939
  readonly verified: boolean;
940
940
  }[];
@@ -996,7 +996,7 @@ export declare const addContacts: (input: {
996
996
  readonly name: string;
997
997
  readonly displayName: string | null;
998
998
  readonly identities: readonly {
999
- readonly channel: "email";
999
+ readonly type: "email" | "phone";
1000
1000
  readonly identifier: string;
1001
1001
  readonly verified: boolean;
1002
1002
  }[];
@@ -1058,7 +1058,7 @@ export declare const removeContacts: (input: {
1058
1058
  readonly name: string;
1059
1059
  readonly displayName: string | null;
1060
1060
  readonly identities: readonly {
1061
- readonly channel: "email";
1061
+ readonly type: "email" | "phone";
1062
1062
  readonly identifier: string;
1063
1063
  readonly verified: boolean;
1064
1064
  }[];