samva 0.1.1 → 0.3.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 (47) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +10 -3
  3. package/dist/client/sdk.gen.d.ts +333 -188
  4. package/dist/client/types.gen.d.ts +1452 -718
  5. package/dist/{client-DVALvDUe.js → client-BOghX8fr.js} +1990 -1631
  6. package/dist/effect/api-keys.d.ts +14 -14
  7. package/dist/effect/api-keys.js +1 -1
  8. package/dist/effect/campaigns.d.ts +233 -861
  9. package/dist/effect/campaigns.js +1 -1
  10. package/dist/effect/categories.d.ts +1 -1
  11. package/dist/effect/client.js +1 -1
  12. package/dist/effect/contacts.d.ts +131 -231
  13. package/dist/effect/contacts.js +1 -1
  14. package/dist/effect/conversations.d.ts +91 -208
  15. package/dist/effect/conversations.js +1 -1
  16. package/dist/effect/design.d.ts +11 -11
  17. package/dist/effect/design.js +1 -1
  18. package/dist/effect/email.d.ts +164 -168
  19. package/dist/effect/email.js +20 -18
  20. package/dist/effect/generated.d.ts +13753 -14935
  21. package/dist/effect/index.d.ts +1 -0
  22. package/dist/effect/index.js +3 -2
  23. package/dist/effect/internal/operation.d.ts +15 -113
  24. package/dist/effect/media.d.ts +80 -0
  25. package/dist/effect/media.js +19 -0
  26. package/dist/effect/messages.d.ts +41 -261
  27. package/dist/effect/messages.js +1 -1
  28. package/dist/effect/operations.d.ts +10 -10
  29. package/dist/effect/operations.js +1 -1
  30. package/dist/effect/organizations.d.ts +24 -42
  31. package/dist/effect/organizations.js +1 -1
  32. package/dist/effect/scheduled-messages.d.ts +43 -502
  33. package/dist/effect/scheduled-messages.js +1 -1
  34. package/dist/effect/templates.d.ts +312 -1542
  35. package/dist/effect/templates.js +26 -18
  36. package/dist/effect/webhooks.d.ts +26 -27
  37. package/dist/effect/webhooks.js +2 -2
  38. package/dist/index.js +1 -1
  39. package/dist/{normalize-LkWl4HUF.js → normalize-BKFjbR9t.js} +5 -13
  40. package/dist/normalize.d.ts +3 -33
  41. package/dist/{operation-UtKNITtG.js → operation-C2Q4cFJL.js} +67 -26
  42. package/dist/promises/index.d.ts +6 -14
  43. package/dist/promises/index.js +1 -1
  44. package/dist/promises/types.gen.d.ts +1 -1
  45. package/dist/{promises-QxEfMTho.js → promises-oiy7mOyu.js} +680 -157
  46. package/dist/service-map.d.ts +92 -40
  47. package/package.json +19 -14
@@ -2,8 +2,8 @@ export declare const list: ((input?: {
2
2
  readonly limit?: string | null | undefined;
3
3
  readonly type?: string | null | undefined;
4
4
  readonly search?: string | null | undefined;
5
- readonly status?: string | null | undefined;
6
5
  readonly page?: string | null | undefined;
6
+ readonly status?: string | null | undefined;
7
7
  readonly startDate?: string | null | undefined;
8
8
  readonly endDate?: string | null | undefined;
9
9
  } | undefined) => import("effect/Effect").Effect<{
@@ -15,41 +15,38 @@ export declare const list: ((input?: {
15
15
  readonly displayName: string | null;
16
16
  readonly avatar: string | null;
17
17
  readonly identities: readonly {
18
- readonly channel: "sms" | "whatsapp" | "email";
18
+ readonly channel: "email";
19
19
  readonly identifier: string;
20
20
  readonly verified: boolean;
21
21
  }[];
22
22
  readonly humanProfile: {
23
23
  readonly email?: string | null;
24
+ readonly phone?: string | null;
25
+ readonly firstName?: string | null;
26
+ readonly lastName?: string | null;
27
+ readonly company?: string | null;
28
+ readonly jobTitle?: string | null;
24
29
  readonly location?: {
25
30
  readonly country: string;
26
31
  readonly state: string;
27
32
  readonly city: string;
28
33
  readonly timezone: string;
29
34
  } | null;
30
- readonly phone?: string | null;
31
- readonly source?: "manual" | "api" | "import" | "form" | null;
32
35
  readonly customFields?: {
33
36
  readonly [x: string]: import("./generated").JsonValue;
34
37
  } | null;
35
- readonly firstName?: string | null;
36
- readonly lastName?: string | null;
37
- readonly company?: string | null;
38
- readonly jobTitle?: string | null;
38
+ readonly source?: "manual" | "api" | "import" | "form" | null;
39
39
  readonly sourceDetails?: {
40
40
  readonly [x: string]: import("./generated").JsonValue;
41
41
  } | null;
42
42
  } | null;
43
43
  readonly capabilities: readonly string[];
44
44
  readonly tags: readonly string[];
45
- readonly engagement: {
46
- readonly [x: string]: import("./generated").JsonValue;
47
- };
48
45
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
49
46
  readonly accessConfig: {
50
47
  readonly paymentRequired?: {
51
- readonly currency: string;
52
48
  readonly amount: number;
49
+ readonly currency: string;
53
50
  readonly message?: string | null;
54
51
  readonly validityHours?: number | null;
55
52
  } | null;
@@ -71,12 +68,10 @@ export declare const list: ((input?: {
71
68
  } | null;
72
69
  } | null;
73
70
  readonly preferences: {
74
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
71
+ readonly preferredChannels?: readonly "email"[] | null;
75
72
  readonly language?: string | null;
76
73
  readonly timezone?: string | null;
77
74
  readonly notifications?: {
78
- readonly sms?: boolean | null;
79
- readonly whatsapp?: boolean | null;
80
75
  readonly email?: boolean | null;
81
76
  readonly quiet_hours?: {
82
77
  readonly start: string;
@@ -99,6 +94,10 @@ export declare const list: ((input?: {
99
94
  readonly updatedAt: string;
100
95
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
101
96
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
97
+ readonly engagement: {
98
+ readonly totalInteractions: number;
99
+ readonly lastActiveAt: string | null;
100
+ };
102
101
  }[];
103
102
  readonly pagination: {
104
103
  readonly page: number;
@@ -106,13 +105,13 @@ export declare const list: ((input?: {
106
105
  readonly total: number;
107
106
  readonly totalPages: number;
108
107
  };
109
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
108
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
110
109
  readonly pages: (input?: {
111
110
  readonly limit?: string | null | undefined;
112
111
  readonly type?: string | null | undefined;
113
112
  readonly search?: string | null | undefined;
114
- readonly status?: string | null | undefined;
115
113
  readonly page?: string | null | undefined;
114
+ readonly status?: string | null | undefined;
116
115
  readonly startDate?: string | null | undefined;
117
116
  readonly endDate?: string | null | undefined;
118
117
  } | undefined) => import("effect/Stream").Stream<{
@@ -124,41 +123,38 @@ export declare const list: ((input?: {
124
123
  readonly displayName: string | null;
125
124
  readonly avatar: string | null;
126
125
  readonly identities: readonly {
127
- readonly channel: "sms" | "whatsapp" | "email";
126
+ readonly channel: "email";
128
127
  readonly identifier: string;
129
128
  readonly verified: boolean;
130
129
  }[];
131
130
  readonly humanProfile: {
132
131
  readonly email?: string | null;
132
+ readonly phone?: string | null;
133
+ readonly firstName?: string | null;
134
+ readonly lastName?: string | null;
135
+ readonly company?: string | null;
136
+ readonly jobTitle?: string | null;
133
137
  readonly location?: {
134
138
  readonly country: string;
135
139
  readonly state: string;
136
140
  readonly city: string;
137
141
  readonly timezone: string;
138
142
  } | null;
139
- readonly phone?: string | null;
140
- readonly source?: "manual" | "api" | "import" | "form" | null;
141
143
  readonly customFields?: {
142
144
  readonly [x: string]: import("./generated").JsonValue;
143
145
  } | null;
144
- readonly firstName?: string | null;
145
- readonly lastName?: string | null;
146
- readonly company?: string | null;
147
- readonly jobTitle?: string | null;
146
+ readonly source?: "manual" | "api" | "import" | "form" | null;
148
147
  readonly sourceDetails?: {
149
148
  readonly [x: string]: import("./generated").JsonValue;
150
149
  } | null;
151
150
  } | null;
152
151
  readonly capabilities: readonly string[];
153
152
  readonly tags: readonly string[];
154
- readonly engagement: {
155
- readonly [x: string]: import("./generated").JsonValue;
156
- };
157
153
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
158
154
  readonly accessConfig: {
159
155
  readonly paymentRequired?: {
160
- readonly currency: string;
161
156
  readonly amount: number;
157
+ readonly currency: string;
162
158
  readonly message?: string | null;
163
159
  readonly validityHours?: number | null;
164
160
  } | null;
@@ -180,12 +176,10 @@ export declare const list: ((input?: {
180
176
  } | null;
181
177
  } | null;
182
178
  readonly preferences: {
183
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
179
+ readonly preferredChannels?: readonly "email"[] | null;
184
180
  readonly language?: string | null;
185
181
  readonly timezone?: string | null;
186
182
  readonly notifications?: {
187
- readonly sms?: boolean | null;
188
- readonly whatsapp?: boolean | null;
189
183
  readonly email?: boolean | null;
190
184
  readonly quiet_hours?: {
191
185
  readonly start: string;
@@ -208,6 +202,10 @@ export declare const list: ((input?: {
208
202
  readonly updatedAt: string;
209
203
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
210
204
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
205
+ readonly engagement: {
206
+ readonly totalInteractions: number;
207
+ readonly lastActiveAt: string | null;
208
+ };
211
209
  }[];
212
210
  readonly pagination: {
213
211
  readonly page: number;
@@ -215,13 +213,13 @@ export declare const list: ((input?: {
215
213
  readonly total: number;
216
214
  readonly totalPages: number;
217
215
  };
218
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
216
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
219
217
  readonly items: (input?: {
220
218
  readonly limit?: string | null | undefined;
221
219
  readonly type?: string | null | undefined;
222
220
  readonly search?: string | null | undefined;
223
- readonly status?: string | null | undefined;
224
221
  readonly page?: string | null | undefined;
222
+ readonly status?: string | null | undefined;
225
223
  readonly startDate?: string | null | undefined;
226
224
  readonly endDate?: string | null | undefined;
227
225
  } | undefined) => import("effect/Stream").Stream<{
@@ -232,41 +230,38 @@ export declare const list: ((input?: {
232
230
  readonly displayName: string | null;
233
231
  readonly avatar: string | null;
234
232
  readonly identities: readonly {
235
- readonly channel: "sms" | "whatsapp" | "email";
233
+ readonly channel: "email";
236
234
  readonly identifier: string;
237
235
  readonly verified: boolean;
238
236
  }[];
239
237
  readonly humanProfile: {
240
238
  readonly email?: string | null;
239
+ readonly phone?: string | null;
240
+ readonly firstName?: string | null;
241
+ readonly lastName?: string | null;
242
+ readonly company?: string | null;
243
+ readonly jobTitle?: string | null;
241
244
  readonly location?: {
242
245
  readonly country: string;
243
246
  readonly state: string;
244
247
  readonly city: string;
245
248
  readonly timezone: string;
246
249
  } | null;
247
- readonly phone?: string | null;
248
- readonly source?: "manual" | "api" | "import" | "form" | null;
249
250
  readonly customFields?: {
250
251
  readonly [x: string]: import("./generated").JsonValue;
251
252
  } | null;
252
- readonly firstName?: string | null;
253
- readonly lastName?: string | null;
254
- readonly company?: string | null;
255
- readonly jobTitle?: string | null;
253
+ readonly source?: "manual" | "api" | "import" | "form" | null;
256
254
  readonly sourceDetails?: {
257
255
  readonly [x: string]: import("./generated").JsonValue;
258
256
  } | null;
259
257
  } | null;
260
258
  readonly capabilities: readonly string[];
261
259
  readonly tags: readonly string[];
262
- readonly engagement: {
263
- readonly [x: string]: import("./generated").JsonValue;
264
- };
265
260
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
266
261
  readonly accessConfig: {
267
262
  readonly paymentRequired?: {
268
- readonly currency: string;
269
263
  readonly amount: number;
264
+ readonly currency: string;
270
265
  readonly message?: string | null;
271
266
  readonly validityHours?: number | null;
272
267
  } | null;
@@ -288,12 +283,10 @@ export declare const list: ((input?: {
288
283
  } | null;
289
284
  } | null;
290
285
  readonly preferences: {
291
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
286
+ readonly preferredChannels?: readonly "email"[] | null;
292
287
  readonly language?: string | null;
293
288
  readonly timezone?: string | null;
294
289
  readonly notifications?: {
295
- readonly sms?: boolean | null;
296
- readonly whatsapp?: boolean | null;
297
290
  readonly email?: boolean | null;
298
291
  readonly quiet_hours?: {
299
292
  readonly start: string;
@@ -316,11 +309,16 @@ export declare const list: ((input?: {
316
309
  readonly updatedAt: string;
317
310
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
318
311
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
319
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
312
+ readonly engagement: {
313
+ readonly totalInteractions: number;
314
+ readonly lastActiveAt: string | null;
315
+ };
316
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
320
317
  };
321
318
  export declare const create: (input: {
322
319
  readonly name: string;
323
320
  readonly type: string;
321
+ readonly avatar?: string | null | undefined;
324
322
  readonly metadata?: {
325
323
  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 | {
326
324
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -348,28 +346,29 @@ export declare const create: (input: {
348
346
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
349
347
  } | null | undefined;
350
348
  } | null | undefined;
351
- readonly status?: string | null | undefined;
352
349
  readonly displayName?: string | null | undefined;
353
350
  readonly identities?: readonly {
354
351
  readonly channel: string;
355
352
  readonly identifier: string;
356
353
  readonly verified: boolean;
357
354
  }[] | null | undefined;
355
+ readonly status?: string | null | undefined;
358
356
  readonly tags?: readonly string[] | null | undefined;
359
357
  readonly externalId?: string | null | undefined;
360
358
  readonly createdBy?: string | null | undefined;
361
- readonly statusReason?: string | null | undefined;
362
- readonly avatar?: string | null | undefined;
363
359
  readonly humanProfile?: {
364
360
  readonly email?: string | null | undefined;
361
+ readonly phone?: string | null | undefined;
362
+ readonly firstName?: string | null | undefined;
363
+ readonly lastName?: string | null | undefined;
364
+ readonly company?: string | null | undefined;
365
+ readonly jobTitle?: string | null | undefined;
365
366
  readonly location?: {
366
367
  readonly country: string;
367
368
  readonly state: string;
368
369
  readonly city: string;
369
370
  readonly timezone: string;
370
371
  } | null | undefined;
371
- readonly phone?: string | null | undefined;
372
- readonly source?: string | null | undefined;
373
372
  readonly customFields?: {
374
373
  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 | {
375
374
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -397,10 +396,7 @@ export declare const create: (input: {
397
396
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
398
397
  } | null | undefined;
399
398
  } | null | undefined;
400
- readonly firstName?: string | null | undefined;
401
- readonly lastName?: string | null | undefined;
402
- readonly company?: string | null | undefined;
403
- readonly jobTitle?: string | null | undefined;
399
+ readonly source?: string | null | undefined;
404
400
  readonly sourceDetails?: {
405
401
  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 | {
406
402
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -433,8 +429,8 @@ export declare const create: (input: {
433
429
  readonly accessLevel?: string | null | undefined;
434
430
  readonly accessConfig?: {
435
431
  readonly paymentRequired?: {
436
- readonly currency: string;
437
432
  readonly amount: number;
433
+ readonly currency: string;
438
434
  readonly message?: string | null | undefined;
439
435
  readonly validityHours?: number | null | undefined;
440
436
  } | null | undefined;
@@ -460,8 +456,6 @@ export declare const create: (input: {
460
456
  readonly language?: string | null | undefined;
461
457
  readonly timezone?: string | null | undefined;
462
458
  readonly notifications?: {
463
- readonly sms?: boolean | null | undefined;
464
- readonly whatsapp?: boolean | null | undefined;
465
459
  readonly email?: boolean | null | undefined;
466
460
  readonly quiet_hours?: {
467
461
  readonly start: string;
@@ -474,40 +468,8 @@ export declare const create: (input: {
474
468
  readonly maxMessageLength?: number | null | undefined;
475
469
  } | null | undefined;
476
470
  } | null | undefined;
471
+ readonly statusReason?: string | null | undefined;
477
472
  readonly lastModifiedBy?: string | null | undefined;
478
- readonly engagement?: {
479
- readonly channels: {
480
- readonly sms?: {
481
- readonly sent: number;
482
- readonly failed: number;
483
- readonly received: number;
484
- readonly lastAt?: string | null | undefined;
485
- } | null | undefined;
486
- readonly whatsapp?: {
487
- readonly sent: number;
488
- readonly failed: number;
489
- readonly received: number;
490
- readonly lastAt?: string | null | undefined;
491
- } | null | undefined;
492
- readonly email?: {
493
- readonly sent: number;
494
- readonly failed: number;
495
- readonly bounced: number;
496
- readonly received: number;
497
- readonly lastAt?: string | null | undefined;
498
- } | null | undefined;
499
- };
500
- readonly totalInteractions: number;
501
- readonly lastActiveAt: string;
502
- readonly averageResponseTime: number;
503
- readonly performance?: {
504
- readonly successRate: number;
505
- readonly escalationRate: number;
506
- readonly resolutionRate: number;
507
- readonly averageHandlingTime: number;
508
- } | null | undefined;
509
- readonly satisfactionScore?: number | null | undefined;
510
- } | null | undefined;
511
473
  }) => import("effect/Effect").Effect<{
512
474
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
513
475
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
@@ -516,41 +478,38 @@ export declare const create: (input: {
516
478
  readonly displayName: string | null;
517
479
  readonly avatar: string | null;
518
480
  readonly identities: readonly {
519
- readonly channel: "sms" | "whatsapp" | "email";
481
+ readonly channel: "email";
520
482
  readonly identifier: string;
521
483
  readonly verified: boolean;
522
484
  }[];
523
485
  readonly humanProfile: {
524
486
  readonly email?: string | null;
487
+ readonly phone?: string | null;
488
+ readonly firstName?: string | null;
489
+ readonly lastName?: string | null;
490
+ readonly company?: string | null;
491
+ readonly jobTitle?: string | null;
525
492
  readonly location?: {
526
493
  readonly country: string;
527
494
  readonly state: string;
528
495
  readonly city: string;
529
496
  readonly timezone: string;
530
497
  } | null;
531
- readonly phone?: string | null;
532
- readonly source?: "manual" | "api" | "import" | "form" | null;
533
498
  readonly customFields?: {
534
499
  readonly [x: string]: import("./generated").JsonValue;
535
500
  } | null;
536
- readonly firstName?: string | null;
537
- readonly lastName?: string | null;
538
- readonly company?: string | null;
539
- readonly jobTitle?: string | null;
501
+ readonly source?: "manual" | "api" | "import" | "form" | null;
540
502
  readonly sourceDetails?: {
541
503
  readonly [x: string]: import("./generated").JsonValue;
542
504
  } | null;
543
505
  } | null;
544
506
  readonly capabilities: readonly string[];
545
507
  readonly tags: readonly string[];
546
- readonly engagement: {
547
- readonly [x: string]: import("./generated").JsonValue;
548
- };
549
508
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
550
509
  readonly accessConfig: {
551
510
  readonly paymentRequired?: {
552
- readonly currency: string;
553
511
  readonly amount: number;
512
+ readonly currency: string;
554
513
  readonly message?: string | null;
555
514
  readonly validityHours?: number | null;
556
515
  } | null;
@@ -572,12 +531,10 @@ export declare const create: (input: {
572
531
  } | null;
573
532
  } | null;
574
533
  readonly preferences: {
575
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
534
+ readonly preferredChannels?: readonly "email"[] | null;
576
535
  readonly language?: string | null;
577
536
  readonly timezone?: string | null;
578
537
  readonly notifications?: {
579
- readonly sms?: boolean | null;
580
- readonly whatsapp?: boolean | null;
581
538
  readonly email?: boolean | null;
582
539
  readonly quiet_hours?: {
583
540
  readonly start: string;
@@ -600,9 +557,8 @@ export declare const create: (input: {
600
557
  readonly updatedAt: string;
601
558
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
602
559
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
603
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
560
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
604
561
  export declare const find: (input?: {
605
- readonly whatsapp?: string | null | undefined;
606
562
  readonly email?: string | null | undefined;
607
563
  readonly phone?: string | null | undefined;
608
564
  readonly externalId?: string | null | undefined;
@@ -614,41 +570,38 @@ export declare const find: (input?: {
614
570
  readonly displayName: string | null;
615
571
  readonly avatar: string | null;
616
572
  readonly identities: readonly {
617
- readonly channel: "sms" | "whatsapp" | "email";
573
+ readonly channel: "email";
618
574
  readonly identifier: string;
619
575
  readonly verified: boolean;
620
576
  }[];
621
577
  readonly humanProfile: {
622
578
  readonly email?: string | null;
579
+ readonly phone?: string | null;
580
+ readonly firstName?: string | null;
581
+ readonly lastName?: string | null;
582
+ readonly company?: string | null;
583
+ readonly jobTitle?: string | null;
623
584
  readonly location?: {
624
585
  readonly country: string;
625
586
  readonly state: string;
626
587
  readonly city: string;
627
588
  readonly timezone: string;
628
589
  } | null;
629
- readonly phone?: string | null;
630
- readonly source?: "manual" | "api" | "import" | "form" | null;
631
590
  readonly customFields?: {
632
591
  readonly [x: string]: import("./generated").JsonValue;
633
592
  } | null;
634
- readonly firstName?: string | null;
635
- readonly lastName?: string | null;
636
- readonly company?: string | null;
637
- readonly jobTitle?: string | null;
593
+ readonly source?: "manual" | "api" | "import" | "form" | null;
638
594
  readonly sourceDetails?: {
639
595
  readonly [x: string]: import("./generated").JsonValue;
640
596
  } | null;
641
597
  } | null;
642
598
  readonly capabilities: readonly string[];
643
599
  readonly tags: readonly string[];
644
- readonly engagement: {
645
- readonly [x: string]: import("./generated").JsonValue;
646
- };
647
600
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
648
601
  readonly accessConfig: {
649
602
  readonly paymentRequired?: {
650
- readonly currency: string;
651
603
  readonly amount: number;
604
+ readonly currency: string;
652
605
  readonly message?: string | null;
653
606
  readonly validityHours?: number | null;
654
607
  } | null;
@@ -670,12 +623,10 @@ export declare const find: (input?: {
670
623
  } | null;
671
624
  } | null;
672
625
  readonly preferences: {
673
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
626
+ readonly preferredChannels?: readonly "email"[] | null;
674
627
  readonly language?: string | null;
675
628
  readonly timezone?: string | null;
676
629
  readonly notifications?: {
677
- readonly sms?: boolean | null;
678
- readonly whatsapp?: boolean | null;
679
630
  readonly email?: boolean | null;
680
631
  readonly quiet_hours?: {
681
632
  readonly start: string;
@@ -698,9 +649,8 @@ export declare const find: (input?: {
698
649
  readonly updatedAt: string;
699
650
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
700
651
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
701
- } | null, import("effect/SchemaError").SchemaError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
652
+ } | null, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ValidationError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
702
653
  export declare const findOrCreate: (input?: {
703
- readonly whatsapp?: string | null | undefined;
704
654
  readonly email?: string | null | undefined;
705
655
  readonly name?: string | null | undefined;
706
656
  readonly phone?: string | null | undefined;
@@ -714,41 +664,38 @@ export declare const findOrCreate: (input?: {
714
664
  readonly displayName: string | null;
715
665
  readonly avatar: string | null;
716
666
  readonly identities: readonly {
717
- readonly channel: "sms" | "whatsapp" | "email";
667
+ readonly channel: "email";
718
668
  readonly identifier: string;
719
669
  readonly verified: boolean;
720
670
  }[];
721
671
  readonly humanProfile: {
722
672
  readonly email?: string | null;
673
+ readonly phone?: string | null;
674
+ readonly firstName?: string | null;
675
+ readonly lastName?: string | null;
676
+ readonly company?: string | null;
677
+ readonly jobTitle?: string | null;
723
678
  readonly location?: {
724
679
  readonly country: string;
725
680
  readonly state: string;
726
681
  readonly city: string;
727
682
  readonly timezone: string;
728
683
  } | null;
729
- readonly phone?: string | null;
730
- readonly source?: "manual" | "api" | "import" | "form" | null;
731
684
  readonly customFields?: {
732
685
  readonly [x: string]: import("./generated").JsonValue;
733
686
  } | null;
734
- readonly firstName?: string | null;
735
- readonly lastName?: string | null;
736
- readonly company?: string | null;
737
- readonly jobTitle?: string | null;
687
+ readonly source?: "manual" | "api" | "import" | "form" | null;
738
688
  readonly sourceDetails?: {
739
689
  readonly [x: string]: import("./generated").JsonValue;
740
690
  } | null;
741
691
  } | null;
742
692
  readonly capabilities: readonly string[];
743
693
  readonly tags: readonly string[];
744
- readonly engagement: {
745
- readonly [x: string]: import("./generated").JsonValue;
746
- };
747
694
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
748
695
  readonly accessConfig: {
749
696
  readonly paymentRequired?: {
750
- readonly currency: string;
751
697
  readonly amount: number;
698
+ readonly currency: string;
752
699
  readonly message?: string | null;
753
700
  readonly validityHours?: number | null;
754
701
  } | null;
@@ -770,12 +717,10 @@ export declare const findOrCreate: (input?: {
770
717
  } | null;
771
718
  } | null;
772
719
  readonly preferences: {
773
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
720
+ readonly preferredChannels?: readonly "email"[] | null;
774
721
  readonly language?: string | null;
775
722
  readonly timezone?: string | null;
776
723
  readonly notifications?: {
777
- readonly sms?: boolean | null;
778
- readonly whatsapp?: boolean | null;
779
724
  readonly email?: boolean | null;
780
725
  readonly quiet_hours?: {
781
726
  readonly start: string;
@@ -798,7 +743,7 @@ export declare const findOrCreate: (input?: {
798
743
  readonly updatedAt: string;
799
744
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
800
745
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
801
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
746
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("./generated").ConflictError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
802
747
  export declare const get: (input: {
803
748
  readonly id: string;
804
749
  }) => import("effect/Effect").Effect<{
@@ -809,41 +754,38 @@ export declare const get: (input: {
809
754
  readonly displayName: string | null;
810
755
  readonly avatar: string | null;
811
756
  readonly identities: readonly {
812
- readonly channel: "sms" | "whatsapp" | "email";
757
+ readonly channel: "email";
813
758
  readonly identifier: string;
814
759
  readonly verified: boolean;
815
760
  }[];
816
761
  readonly humanProfile: {
817
762
  readonly email?: string | null;
763
+ readonly phone?: string | null;
764
+ readonly firstName?: string | null;
765
+ readonly lastName?: string | null;
766
+ readonly company?: string | null;
767
+ readonly jobTitle?: string | null;
818
768
  readonly location?: {
819
769
  readonly country: string;
820
770
  readonly state: string;
821
771
  readonly city: string;
822
772
  readonly timezone: string;
823
773
  } | null;
824
- readonly phone?: string | null;
825
- readonly source?: "manual" | "api" | "import" | "form" | null;
826
774
  readonly customFields?: {
827
775
  readonly [x: string]: import("./generated").JsonValue;
828
776
  } | null;
829
- readonly firstName?: string | null;
830
- readonly lastName?: string | null;
831
- readonly company?: string | null;
832
- readonly jobTitle?: string | null;
777
+ readonly source?: "manual" | "api" | "import" | "form" | null;
833
778
  readonly sourceDetails?: {
834
779
  readonly [x: string]: import("./generated").JsonValue;
835
780
  } | null;
836
781
  } | null;
837
782
  readonly capabilities: readonly string[];
838
783
  readonly tags: readonly string[];
839
- readonly engagement: {
840
- readonly [x: string]: import("./generated").JsonValue;
841
- };
842
784
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
843
785
  readonly accessConfig: {
844
786
  readonly paymentRequired?: {
845
- readonly currency: string;
846
787
  readonly amount: number;
788
+ readonly currency: string;
847
789
  readonly message?: string | null;
848
790
  readonly validityHours?: number | null;
849
791
  } | null;
@@ -865,12 +807,10 @@ export declare const get: (input: {
865
807
  } | null;
866
808
  } | null;
867
809
  readonly preferences: {
868
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
810
+ readonly preferredChannels?: readonly "email"[] | null;
869
811
  readonly language?: string | null;
870
812
  readonly timezone?: string | null;
871
813
  readonly notifications?: {
872
- readonly sms?: boolean | null;
873
- readonly whatsapp?: boolean | null;
874
814
  readonly email?: boolean | null;
875
815
  readonly quiet_hours?: {
876
816
  readonly start: string;
@@ -893,14 +833,15 @@ export declare const get: (input: {
893
833
  readonly updatedAt: string;
894
834
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
895
835
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
896
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
836
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
897
837
  export declare const remove: (input: {
898
838
  readonly id: string;
899
839
  }) => import("effect/Effect").Effect<{
900
840
  readonly success: boolean;
901
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
841
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
902
842
  export declare const update: (input: {
903
843
  readonly id: string;
844
+ readonly avatar?: string | null | undefined;
904
845
  readonly name?: string | null | undefined;
905
846
  readonly metadata?: {
906
847
  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 | {
@@ -930,28 +871,29 @@ export declare const update: (input: {
930
871
  } | null | undefined;
931
872
  } | null | undefined;
932
873
  readonly type?: string | null | undefined;
933
- readonly status?: string | null | undefined;
934
874
  readonly displayName?: string | null | undefined;
935
875
  readonly identities?: readonly {
936
876
  readonly channel: string;
937
877
  readonly identifier: string;
938
878
  readonly verified: boolean;
939
879
  }[] | null | undefined;
880
+ readonly status?: string | null | undefined;
940
881
  readonly tags?: readonly string[] | null | undefined;
941
882
  readonly externalId?: string | null | undefined;
942
883
  readonly createdBy?: string | null | undefined;
943
- readonly statusReason?: string | null | undefined;
944
- readonly avatar?: string | null | undefined;
945
884
  readonly humanProfile?: {
946
885
  readonly email?: string | null | undefined;
886
+ readonly phone?: string | null | undefined;
887
+ readonly firstName?: string | null | undefined;
888
+ readonly lastName?: string | null | undefined;
889
+ readonly company?: string | null | undefined;
890
+ readonly jobTitle?: string | null | undefined;
947
891
  readonly location?: {
948
892
  readonly country: string;
949
893
  readonly state: string;
950
894
  readonly city: string;
951
895
  readonly timezone: string;
952
896
  } | null | undefined;
953
- readonly phone?: string | null | undefined;
954
- readonly source?: string | null | undefined;
955
897
  readonly customFields?: {
956
898
  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 | {
957
899
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -979,10 +921,7 @@ export declare const update: (input: {
979
921
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
980
922
  } | null | undefined;
981
923
  } | null | undefined;
982
- readonly firstName?: string | null | undefined;
983
- readonly lastName?: string | null | undefined;
984
- readonly company?: string | null | undefined;
985
- readonly jobTitle?: string | null | undefined;
924
+ readonly source?: string | null | undefined;
986
925
  readonly sourceDetails?: {
987
926
  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 | {
988
927
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -1015,8 +954,8 @@ export declare const update: (input: {
1015
954
  readonly accessLevel?: string | null | undefined;
1016
955
  readonly accessConfig?: {
1017
956
  readonly paymentRequired?: {
1018
- readonly currency: string;
1019
957
  readonly amount: number;
958
+ readonly currency: string;
1020
959
  readonly message?: string | null | undefined;
1021
960
  readonly validityHours?: number | null | undefined;
1022
961
  } | null | undefined;
@@ -1042,8 +981,6 @@ export declare const update: (input: {
1042
981
  readonly language?: string | null | undefined;
1043
982
  readonly timezone?: string | null | undefined;
1044
983
  readonly notifications?: {
1045
- readonly sms?: boolean | null | undefined;
1046
- readonly whatsapp?: boolean | null | undefined;
1047
984
  readonly email?: boolean | null | undefined;
1048
985
  readonly quiet_hours?: {
1049
986
  readonly start: string;
@@ -1056,40 +993,8 @@ export declare const update: (input: {
1056
993
  readonly maxMessageLength?: number | null | undefined;
1057
994
  } | null | undefined;
1058
995
  } | null | undefined;
996
+ readonly statusReason?: string | null | undefined;
1059
997
  readonly lastModifiedBy?: string | null | undefined;
1060
- readonly engagement?: {
1061
- readonly channels: {
1062
- readonly sms?: {
1063
- readonly sent: number;
1064
- readonly failed: number;
1065
- readonly received: number;
1066
- readonly lastAt?: string | null | undefined;
1067
- } | null | undefined;
1068
- readonly whatsapp?: {
1069
- readonly sent: number;
1070
- readonly failed: number;
1071
- readonly received: number;
1072
- readonly lastAt?: string | null | undefined;
1073
- } | null | undefined;
1074
- readonly email?: {
1075
- readonly sent: number;
1076
- readonly failed: number;
1077
- readonly bounced: number;
1078
- readonly received: number;
1079
- readonly lastAt?: string | null | undefined;
1080
- } | null | undefined;
1081
- };
1082
- readonly totalInteractions: number;
1083
- readonly lastActiveAt: string;
1084
- readonly averageResponseTime: number;
1085
- readonly performance?: {
1086
- readonly successRate: number;
1087
- readonly escalationRate: number;
1088
- readonly resolutionRate: number;
1089
- readonly averageHandlingTime: number;
1090
- } | null | undefined;
1091
- readonly satisfactionScore?: number | null | undefined;
1092
- } | null | undefined;
1093
998
  }) => import("effect/Effect").Effect<{
1094
999
  readonly id: string & import("effect/Brand").Brand<"ContactId">;
1095
1000
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
@@ -1098,41 +1003,38 @@ export declare const update: (input: {
1098
1003
  readonly displayName: string | null;
1099
1004
  readonly avatar: string | null;
1100
1005
  readonly identities: readonly {
1101
- readonly channel: "sms" | "whatsapp" | "email";
1006
+ readonly channel: "email";
1102
1007
  readonly identifier: string;
1103
1008
  readonly verified: boolean;
1104
1009
  }[];
1105
1010
  readonly humanProfile: {
1106
1011
  readonly email?: string | null;
1012
+ readonly phone?: string | null;
1013
+ readonly firstName?: string | null;
1014
+ readonly lastName?: string | null;
1015
+ readonly company?: string | null;
1016
+ readonly jobTitle?: string | null;
1107
1017
  readonly location?: {
1108
1018
  readonly country: string;
1109
1019
  readonly state: string;
1110
1020
  readonly city: string;
1111
1021
  readonly timezone: string;
1112
1022
  } | null;
1113
- readonly phone?: string | null;
1114
- readonly source?: "manual" | "api" | "import" | "form" | null;
1115
1023
  readonly customFields?: {
1116
1024
  readonly [x: string]: import("./generated").JsonValue;
1117
1025
  } | null;
1118
- readonly firstName?: string | null;
1119
- readonly lastName?: string | null;
1120
- readonly company?: string | null;
1121
- readonly jobTitle?: string | null;
1026
+ readonly source?: "manual" | "api" | "import" | "form" | null;
1122
1027
  readonly sourceDetails?: {
1123
1028
  readonly [x: string]: import("./generated").JsonValue;
1124
1029
  } | null;
1125
1030
  } | null;
1126
1031
  readonly capabilities: readonly string[];
1127
1032
  readonly tags: readonly string[];
1128
- readonly engagement: {
1129
- readonly [x: string]: import("./generated").JsonValue;
1130
- };
1131
1033
  readonly accessLevel: "internal" | "public" | "authenticated" | "vip";
1132
1034
  readonly accessConfig: {
1133
1035
  readonly paymentRequired?: {
1134
- readonly currency: string;
1135
1036
  readonly amount: number;
1037
+ readonly currency: string;
1136
1038
  readonly message?: string | null;
1137
1039
  readonly validityHours?: number | null;
1138
1040
  } | null;
@@ -1154,12 +1056,10 @@ export declare const update: (input: {
1154
1056
  } | null;
1155
1057
  } | null;
1156
1058
  readonly preferences: {
1157
- readonly preferredChannels?: readonly ("sms" | "whatsapp" | "email")[] | null;
1059
+ readonly preferredChannels?: readonly "email"[] | null;
1158
1060
  readonly language?: string | null;
1159
1061
  readonly timezone?: string | null;
1160
1062
  readonly notifications?: {
1161
- readonly sms?: boolean | null;
1162
- readonly whatsapp?: boolean | null;
1163
1063
  readonly email?: boolean | null;
1164
1064
  readonly quiet_hours?: {
1165
1065
  readonly start: string;
@@ -1182,7 +1082,7 @@ export declare const update: (input: {
1182
1082
  readonly updatedAt: string;
1183
1083
  readonly createdBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
1184
1084
  readonly lastModifiedBy: (string & import("effect/Brand").Brand<"ContactId">) | null;
1185
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1085
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ResourceNotFoundError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1186
1086
  export declare const getEngagement: (input: {
1187
1087
  readonly id: string;
1188
1088
  }) => import("effect/Effect").Effect<{
@@ -1194,13 +1094,16 @@ export declare const getEngagement: (input: {
1194
1094
  readonly channelsUsed: {
1195
1095
  readonly [x: string]: number;
1196
1096
  };
1197
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1097
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1198
1098
  export declare const bulkImport: (input: {
1199
1099
  readonly contacts: readonly {
1200
1100
  readonly name: string;
1201
1101
  readonly email?: string | null | undefined;
1202
1102
  readonly phone?: string | null | undefined;
1203
- readonly tags?: readonly string[] | null | undefined;
1103
+ readonly firstName?: string | null | undefined;
1104
+ readonly lastName?: string | null | undefined;
1105
+ readonly company?: string | null | undefined;
1106
+ readonly jobTitle?: string | null | undefined;
1204
1107
  readonly customFields?: {
1205
1108
  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 | {
1206
1109
  readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
@@ -1226,10 +1129,7 @@ export declare const bulkImport: (input: {
1226
1129
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null)[] | /*elided*/ any | null | undefined;
1227
1130
  } | null | undefined;
1228
1131
  } | null | undefined;
1229
- readonly firstName?: string | null | undefined;
1230
- readonly lastName?: string | null | undefined;
1231
- readonly company?: string | null | undefined;
1232
- readonly jobTitle?: string | null | undefined;
1132
+ readonly tags?: readonly string[] | null | undefined;
1233
1133
  }[];
1234
1134
  readonly upsertByEmail?: boolean | null | undefined;
1235
1135
  }) => import("effect/Effect").Effect<{
@@ -1244,13 +1144,13 @@ export declare const bulkImport: (input: {
1244
1144
  readonly error?: string | null;
1245
1145
  readonly contactId?: (string & import("effect/Brand").Brand<"ContactId">) | null;
1246
1146
  }[];
1247
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").UnauthorizedError | import("./generated").ValidationError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1147
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").ValidationError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1248
1148
  export declare const bulkDelete: (input: {
1249
1149
  readonly ids: readonly string[];
1250
1150
  }) => import("effect/Effect").Effect<{
1251
1151
  readonly deleted: number;
1252
1152
  readonly failed: number;
1253
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1153
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1254
1154
  export declare const bulkUpdateTags: (input: {
1255
1155
  readonly ids: readonly string[];
1256
1156
  readonly operation: string;
@@ -1258,14 +1158,14 @@ export declare const bulkUpdateTags: (input: {
1258
1158
  }) => import("effect/Effect").Effect<{
1259
1159
  readonly updated: number;
1260
1160
  readonly failed: number;
1261
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1161
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1262
1162
  export declare const bulkUpdateStatus: (input: {
1263
1163
  readonly ids: readonly string[];
1264
1164
  readonly status: string;
1265
1165
  }) => import("effect/Effect").Effect<{
1266
1166
  readonly updated: number;
1267
1167
  readonly failed: number;
1268
- }, import("effect/SchemaError").SchemaError | import("./generated").BillingProviderError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1168
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").PaymentRequiredError | import("./generated").BillingProviderError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1269
1169
  declare const exportContacts: (input?: {
1270
1170
  readonly fields?: readonly string[] | null | undefined;
1271
1171
  readonly format?: string | null | undefined;
@@ -1279,7 +1179,7 @@ declare const exportContacts: (input?: {
1279
1179
  readonly data: string;
1280
1180
  readonly format: "json" | "csv";
1281
1181
  readonly count: number;
1282
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1182
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1283
1183
  export { exportContacts as export };
1284
1184
  export declare const getActivityTimeline: ((input: {
1285
1185
  readonly id: string;
@@ -1303,7 +1203,7 @@ export declare const getActivityTimeline: ((input: {
1303
1203
  readonly total: number;
1304
1204
  readonly totalPages: number;
1305
1205
  };
1306
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>) & {
1206
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>) & {
1307
1207
  readonly pages: (input: {
1308
1208
  readonly id: string;
1309
1209
  readonly channel?: string | null | undefined;
@@ -1326,7 +1226,7 @@ export declare const getActivityTimeline: ((input: {
1326
1226
  readonly total: number;
1327
1227
  readonly totalPages: number;
1328
1228
  };
1329
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1229
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1330
1230
  readonly items: (input: {
1331
1231
  readonly id: string;
1332
1232
  readonly channel?: string | null | undefined;
@@ -1341,7 +1241,7 @@ export declare const getActivityTimeline: ((input: {
1341
1241
  readonly snippet: string | null;
1342
1242
  readonly createdAt: string;
1343
1243
  readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1344
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1244
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;
1345
1245
  };
1346
1246
  export declare const getGroupMemberships: (input: {
1347
1247
  readonly id: string;
@@ -1353,4 +1253,4 @@ export declare const getGroupMemberships: (input: {
1353
1253
  readonly role: string;
1354
1254
  readonly joinedAt: string;
1355
1255
  }[];
1356
- }, import("effect/SchemaError").SchemaError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("./generated").UnauthorizedError | import("effect/unstable/http/HttpClientError").HttpClientError, import("./client").Service>;
1256
+ }, import("./generated").UnauthorizedError | import("./generated").ForbiddenError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/unstable/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError, import("./client").Service>;