samva 0.22.0 → 0.22.1

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.
@@ -9,29 +9,7 @@ export declare const list: ((input?: {
9
9
  readonly customFieldValue?: string | null | undefined;
10
10
  readonly after?: string | null | undefined;
11
11
  readonly before?: string | null | undefined;
12
- } | undefined) => import("effect/Effect").Effect<{
13
- readonly items: readonly {
14
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
15
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
16
- readonly name: string;
17
- readonly displayName: string | null;
18
- readonly status: "active" | "archived" | "blocked" | "paused";
19
- readonly email: string | null;
20
- readonly channels: readonly "email"[];
21
- readonly tags: readonly string[];
22
- readonly lists: readonly {
23
- readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
24
- readonly name: string;
25
- readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
26
- }[];
27
- readonly customFields?: {
28
- readonly [x: string]: string | number | boolean | null;
29
- } | null;
30
- readonly lastActiveAt: string | null;
31
- readonly createdAt: string;
32
- }[];
33
- readonly nextCursor: string | null;
34
- }, 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>) & {
12
+ } | undefined) => import("./internal/operation").OperationResult<"contactsList">) & {
35
13
  readonly pages: (input?: {
36
14
  readonly limit?: string | null | undefined;
37
15
  readonly cursor?: string | null | undefined;
@@ -167,135 +145,13 @@ export declare const create: (input: {
167
145
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
168
146
  } | null | undefined;
169
147
  } | null | undefined;
170
- }) => import("effect/Effect").Effect<{
171
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
172
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
173
- readonly name: string;
174
- readonly displayName: string | null;
175
- readonly avatar: string | null;
176
- readonly status: "active" | "archived" | "blocked" | "paused";
177
- readonly statusReason: string | null;
178
- readonly externalId: string | null;
179
- readonly identities: readonly {
180
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
181
- readonly type: "email" | "phone";
182
- readonly identifier: string;
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
- }[];
196
- }[];
197
- readonly profile: {
198
- readonly firstName?: string | null;
199
- readonly lastName?: string | null;
200
- readonly company?: string | null;
201
- readonly jobTitle?: string | null;
202
- readonly location?: {
203
- readonly country: string;
204
- readonly state: string;
205
- readonly city: string;
206
- readonly timezone: string;
207
- } | null;
208
- readonly customFields?: {
209
- readonly [x: string]: string | number | boolean | null;
210
- } | null;
211
- readonly source?: "api" | "form" | "import" | "manual" | null;
212
- } | null;
213
- readonly preferences: {
214
- readonly preferredChannels?: readonly "email"[] | null;
215
- readonly language?: string | null;
216
- readonly timezone?: string | null;
217
- readonly notifications?: {
218
- readonly email?: boolean | null;
219
- readonly quiet_hours?: {
220
- readonly start: string;
221
- readonly end: string;
222
- } | null;
223
- } | null;
224
- } | null;
225
- readonly tags: readonly string[];
226
- readonly metadata: {
227
- readonly [x: string]: import("./generated").JsonValue;
228
- } | null;
229
- readonly createdAt: string;
230
- readonly updatedAt: string;
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>;
148
+ }) => import("./internal/operation").OperationResult<"contactsCreate">;
232
149
  export declare const find: (input?: {
233
150
  readonly namespaceId?: string | null | undefined;
234
151
  readonly email?: string | null | undefined;
235
152
  readonly phone?: string | null | undefined;
236
153
  readonly externalId?: string | null | undefined;
237
- } | undefined) => import("effect/Effect").Effect<{
238
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
239
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
240
- readonly name: string;
241
- readonly displayName: string | null;
242
- readonly avatar: string | null;
243
- readonly status: "active" | "archived" | "blocked" | "paused";
244
- readonly statusReason: string | null;
245
- readonly externalId: string | null;
246
- readonly identities: readonly {
247
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
248
- readonly type: "email" | "phone";
249
- readonly identifier: string;
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
- }[];
263
- }[];
264
- readonly profile: {
265
- readonly firstName?: string | null;
266
- readonly lastName?: string | null;
267
- readonly company?: string | null;
268
- readonly jobTitle?: string | null;
269
- readonly location?: {
270
- readonly country: string;
271
- readonly state: string;
272
- readonly city: string;
273
- readonly timezone: string;
274
- } | null;
275
- readonly customFields?: {
276
- readonly [x: string]: string | number | boolean | null;
277
- } | null;
278
- readonly source?: "api" | "form" | "import" | "manual" | null;
279
- } | null;
280
- readonly preferences: {
281
- readonly preferredChannels?: readonly "email"[] | null;
282
- readonly language?: string | null;
283
- readonly timezone?: string | null;
284
- readonly notifications?: {
285
- readonly email?: boolean | null;
286
- readonly quiet_hours?: {
287
- readonly start: string;
288
- readonly end: string;
289
- } | null;
290
- } | null;
291
- } | null;
292
- readonly tags: readonly string[];
293
- readonly metadata: {
294
- readonly [x: string]: import("./generated").JsonValue;
295
- } | null;
296
- readonly createdAt: string;
297
- readonly updatedAt: string;
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>;
154
+ } | undefined) => import("./internal/operation").OperationResult<"contactsFind">;
299
155
  export declare const findOrCreate: (input: {
300
156
  readonly namespaceId?: string | null | undefined;
301
157
  readonly lookup: {
@@ -335,140 +191,13 @@ export declare const findOrCreate: (input: {
335
191
  } | null | undefined;
336
192
  readonly externalId?: string | null | undefined;
337
193
  } | null | undefined;
338
- }) => import("effect/Effect").Effect<{
339
- readonly contact: {
340
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
341
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
342
- readonly name: string;
343
- readonly displayName: string | null;
344
- readonly avatar: string | null;
345
- readonly status: "active" | "archived" | "blocked" | "paused";
346
- readonly statusReason: string | null;
347
- readonly externalId: string | null;
348
- readonly identities: readonly {
349
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
350
- readonly type: "email" | "phone";
351
- readonly identifier: string;
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
- }[];
365
- }[];
366
- readonly profile: {
367
- readonly firstName?: string | null;
368
- readonly lastName?: string | null;
369
- readonly company?: string | null;
370
- readonly jobTitle?: string | null;
371
- readonly location?: {
372
- readonly country: string;
373
- readonly state: string;
374
- readonly city: string;
375
- readonly timezone: string;
376
- } | null;
377
- readonly customFields?: {
378
- readonly [x: string]: string | number | boolean | null;
379
- } | null;
380
- readonly source?: "api" | "form" | "import" | "manual" | null;
381
- } | null;
382
- readonly preferences: {
383
- readonly preferredChannels?: readonly "email"[] | null;
384
- readonly language?: string | null;
385
- readonly timezone?: string | null;
386
- readonly notifications?: {
387
- readonly email?: boolean | null;
388
- readonly quiet_hours?: {
389
- readonly start: string;
390
- readonly end: string;
391
- } | null;
392
- } | null;
393
- } | null;
394
- readonly tags: readonly string[];
395
- readonly metadata: {
396
- readonly [x: string]: import("./generated").JsonValue;
397
- } | null;
398
- readonly createdAt: string;
399
- readonly updatedAt: string;
400
- };
401
- readonly created: boolean;
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>;
194
+ }) => import("./internal/operation").OperationResult<"contactsFindOrCreate">;
403
195
  export declare const get: (input: {
404
196
  readonly id: string;
405
- }) => import("effect/Effect").Effect<{
406
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
407
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
408
- readonly name: string;
409
- readonly displayName: string | null;
410
- readonly avatar: string | null;
411
- readonly status: "active" | "archived" | "blocked" | "paused";
412
- readonly statusReason: string | null;
413
- readonly externalId: string | null;
414
- readonly identities: readonly {
415
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
416
- readonly type: "email" | "phone";
417
- readonly identifier: string;
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
- }[];
431
- }[];
432
- readonly profile: {
433
- readonly firstName?: string | null;
434
- readonly lastName?: string | null;
435
- readonly company?: string | null;
436
- readonly jobTitle?: string | null;
437
- readonly location?: {
438
- readonly country: string;
439
- readonly state: string;
440
- readonly city: string;
441
- readonly timezone: string;
442
- } | null;
443
- readonly customFields?: {
444
- readonly [x: string]: string | number | boolean | null;
445
- } | null;
446
- readonly source?: "api" | "form" | "import" | "manual" | null;
447
- } | null;
448
- readonly preferences: {
449
- readonly preferredChannels?: readonly "email"[] | null;
450
- readonly language?: string | null;
451
- readonly timezone?: string | null;
452
- readonly notifications?: {
453
- readonly email?: boolean | null;
454
- readonly quiet_hours?: {
455
- readonly start: string;
456
- readonly end: string;
457
- } | null;
458
- } | null;
459
- } | null;
460
- readonly tags: readonly string[];
461
- readonly metadata: {
462
- readonly [x: string]: import("./generated").JsonValue;
463
- } | null;
464
- readonly createdAt: string;
465
- readonly updatedAt: string;
466
- }, 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>;
197
+ }) => import("./internal/operation").OperationResult<"contactsGet">;
467
198
  export declare const remove: (input: {
468
199
  readonly id: string;
469
- }) => import("effect/Effect").Effect<{
470
- readonly success: boolean;
471
- }, import("./errors").BillingProviderError | 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>;
200
+ }) => import("./internal/operation").OperationResult<"contactsRemove">;
472
201
  export declare const update: (input: {
473
202
  readonly id: string;
474
203
  readonly name?: string | null | undefined;
@@ -531,200 +260,17 @@ export declare const update: (input: {
531
260
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
532
261
  } | null | undefined;
533
262
  } | null | undefined;
534
- }) => import("effect/Effect").Effect<{
535
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
536
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
537
- readonly name: string;
538
- readonly displayName: string | null;
539
- readonly avatar: string | null;
540
- readonly status: "active" | "archived" | "blocked" | "paused";
541
- readonly statusReason: string | null;
542
- readonly externalId: string | null;
543
- readonly identities: readonly {
544
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
545
- readonly type: "email" | "phone";
546
- readonly identifier: string;
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
- }[];
560
- }[];
561
- readonly profile: {
562
- readonly firstName?: string | null;
563
- readonly lastName?: string | null;
564
- readonly company?: string | null;
565
- readonly jobTitle?: string | null;
566
- readonly location?: {
567
- readonly country: string;
568
- readonly state: string;
569
- readonly city: string;
570
- readonly timezone: string;
571
- } | null;
572
- readonly customFields?: {
573
- readonly [x: string]: string | number | boolean | null;
574
- } | null;
575
- readonly source?: "api" | "form" | "import" | "manual" | null;
576
- } | null;
577
- readonly preferences: {
578
- readonly preferredChannels?: readonly "email"[] | null;
579
- readonly language?: string | null;
580
- readonly timezone?: string | null;
581
- readonly notifications?: {
582
- readonly email?: boolean | null;
583
- readonly quiet_hours?: {
584
- readonly start: string;
585
- readonly end: string;
586
- } | null;
587
- } | null;
588
- } | null;
589
- readonly tags: readonly string[];
590
- readonly metadata: {
591
- readonly [x: string]: import("./generated").JsonValue;
592
- } | null;
593
- readonly createdAt: string;
594
- readonly updatedAt: string;
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>;
263
+ }) => import("./internal/operation").OperationResult<"contactsUpdate">;
596
264
  export declare const addIdentity: (input: {
597
265
  readonly id: string;
598
266
  readonly type: "email" | "phone";
599
267
  readonly identifier: string;
600
268
  readonly verified?: boolean | null | undefined;
601
- }) => import("effect/Effect").Effect<{
602
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
603
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
604
- readonly name: string;
605
- readonly displayName: string | null;
606
- readonly avatar: string | null;
607
- readonly status: "active" | "archived" | "blocked" | "paused";
608
- readonly statusReason: string | null;
609
- readonly externalId: string | null;
610
- readonly identities: readonly {
611
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
612
- readonly type: "email" | "phone";
613
- readonly identifier: string;
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
- }[];
627
- }[];
628
- readonly profile: {
629
- readonly firstName?: string | null;
630
- readonly lastName?: string | null;
631
- readonly company?: string | null;
632
- readonly jobTitle?: string | null;
633
- readonly location?: {
634
- readonly country: string;
635
- readonly state: string;
636
- readonly city: string;
637
- readonly timezone: string;
638
- } | null;
639
- readonly customFields?: {
640
- readonly [x: string]: string | number | boolean | null;
641
- } | null;
642
- readonly source?: "api" | "form" | "import" | "manual" | null;
643
- } | null;
644
- readonly preferences: {
645
- readonly preferredChannels?: readonly "email"[] | null;
646
- readonly language?: string | null;
647
- readonly timezone?: string | null;
648
- readonly notifications?: {
649
- readonly email?: boolean | null;
650
- readonly quiet_hours?: {
651
- readonly start: string;
652
- readonly end: string;
653
- } | null;
654
- } | null;
655
- } | null;
656
- readonly tags: readonly string[];
657
- readonly metadata: {
658
- readonly [x: string]: import("./generated").JsonValue;
659
- } | null;
660
- readonly createdAt: string;
661
- readonly updatedAt: string;
662
- }, 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>;
269
+ }) => import("./internal/operation").OperationResult<"contactsAddIdentity">;
663
270
  export declare const removeIdentity: (input: {
664
271
  readonly id: string;
665
272
  readonly identityId: string;
666
- }) => import("effect/Effect").Effect<{
667
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
668
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
669
- readonly name: string;
670
- readonly displayName: string | null;
671
- readonly avatar: string | null;
672
- readonly status: "active" | "archived" | "blocked" | "paused";
673
- readonly statusReason: string | null;
674
- readonly externalId: string | null;
675
- readonly identities: readonly {
676
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
677
- readonly type: "email" | "phone";
678
- readonly identifier: string;
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>;
273
+ }) => import("./internal/operation").OperationResult<"contactsRemoveIdentity">;
728
274
  export declare const setConsent: (input: {
729
275
  readonly id: string;
730
276
  readonly identityId: string;
@@ -759,210 +305,18 @@ export declare const setConsent: (input: {
759
305
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
760
306
  } | null | undefined;
761
307
  } | 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
- }[];
788
- }[];
789
- readonly profile: {
790
- readonly firstName?: string | null;
791
- readonly lastName?: string | null;
792
- readonly company?: string | null;
793
- readonly jobTitle?: string | null;
794
- readonly location?: {
795
- readonly country: string;
796
- readonly state: string;
797
- readonly city: string;
798
- readonly timezone: string;
799
- } | null;
800
- readonly customFields?: {
801
- readonly [x: string]: string | number | boolean | null;
802
- } | null;
803
- readonly source?: "api" | "form" | "import" | "manual" | null;
804
- } | null;
805
- readonly preferences: {
806
- readonly preferredChannels?: readonly "email"[] | null;
807
- readonly language?: string | null;
808
- readonly timezone?: string | null;
809
- readonly notifications?: {
810
- readonly email?: boolean | null;
811
- readonly quiet_hours?: {
812
- readonly start: string;
813
- readonly end: string;
814
- } | null;
815
- } | null;
816
- } | null;
817
- readonly tags: readonly string[];
818
- readonly metadata: {
819
- readonly [x: string]: import("./generated").JsonValue;
820
- } | null;
821
- readonly createdAt: string;
822
- readonly updatedAt: string;
823
- }, 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>;
308
+ }) => import("./internal/operation").OperationResult<"contactsSetConsent">;
824
309
  export declare const addTags: (input: {
825
310
  readonly id: string;
826
311
  readonly tags: readonly string[];
827
- }) => import("effect/Effect").Effect<{
828
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
829
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
830
- readonly name: string;
831
- readonly displayName: string | null;
832
- readonly avatar: string | null;
833
- readonly status: "active" | "archived" | "blocked" | "paused";
834
- readonly statusReason: string | null;
835
- readonly externalId: string | null;
836
- readonly identities: readonly {
837
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
838
- readonly type: "email" | "phone";
839
- readonly identifier: string;
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
- }[];
853
- }[];
854
- readonly profile: {
855
- readonly firstName?: string | null;
856
- readonly lastName?: string | null;
857
- readonly company?: string | null;
858
- readonly jobTitle?: string | null;
859
- readonly location?: {
860
- readonly country: string;
861
- readonly state: string;
862
- readonly city: string;
863
- readonly timezone: string;
864
- } | null;
865
- readonly customFields?: {
866
- readonly [x: string]: string | number | boolean | null;
867
- } | null;
868
- readonly source?: "api" | "form" | "import" | "manual" | null;
869
- } | null;
870
- readonly preferences: {
871
- readonly preferredChannels?: readonly "email"[] | null;
872
- readonly language?: string | null;
873
- readonly timezone?: string | null;
874
- readonly notifications?: {
875
- readonly email?: boolean | null;
876
- readonly quiet_hours?: {
877
- readonly start: string;
878
- readonly end: string;
879
- } | null;
880
- } | null;
881
- } | null;
882
- readonly tags: readonly string[];
883
- readonly metadata: {
884
- readonly [x: string]: import("./generated").JsonValue;
885
- } | null;
886
- readonly createdAt: string;
887
- readonly updatedAt: string;
888
- }, 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>;
312
+ }) => import("./internal/operation").OperationResult<"contactsAddTags">;
889
313
  export declare const removeTags: (input: {
890
314
  readonly id: string;
891
315
  readonly tags: readonly string[];
892
- }) => import("effect/Effect").Effect<{
893
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
894
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
895
- readonly name: string;
896
- readonly displayName: string | null;
897
- readonly avatar: string | null;
898
- readonly status: "active" | "archived" | "blocked" | "paused";
899
- readonly statusReason: string | null;
900
- readonly externalId: string | null;
901
- readonly identities: readonly {
902
- readonly id: string & import("effect/Brand").Brand<"ContactIdentityId">;
903
- readonly type: "email" | "phone";
904
- readonly identifier: string;
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
- }[];
918
- }[];
919
- readonly profile: {
920
- readonly firstName?: string | null;
921
- readonly lastName?: string | null;
922
- readonly company?: string | null;
923
- readonly jobTitle?: string | null;
924
- readonly location?: {
925
- readonly country: string;
926
- readonly state: string;
927
- readonly city: string;
928
- readonly timezone: string;
929
- } | null;
930
- readonly customFields?: {
931
- readonly [x: string]: string | number | boolean | null;
932
- } | null;
933
- readonly source?: "api" | "form" | "import" | "manual" | null;
934
- } | null;
935
- readonly preferences: {
936
- readonly preferredChannels?: readonly "email"[] | null;
937
- readonly language?: string | null;
938
- readonly timezone?: string | null;
939
- readonly notifications?: {
940
- readonly email?: boolean | null;
941
- readonly quiet_hours?: {
942
- readonly start: string;
943
- readonly end: string;
944
- } | null;
945
- } | null;
946
- } | null;
947
- readonly tags: readonly string[];
948
- readonly metadata: {
949
- readonly [x: string]: import("./generated").JsonValue;
950
- } | null;
951
- readonly createdAt: string;
952
- readonly updatedAt: string;
953
- }, 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>;
316
+ }) => import("./internal/operation").OperationResult<"contactsRemoveTags">;
954
317
  export declare const getEngagement: (input: {
955
318
  readonly id: string;
956
- }) => import("effect/Effect").Effect<{
957
- readonly totalMessages: number;
958
- readonly messagesSent: number;
959
- readonly messagesReceived: number;
960
- readonly activeConversations: number;
961
- readonly lastActivityAt: string | null;
962
- readonly channelsUsed: {
963
- readonly [x: string]: number;
964
- };
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>;
319
+ }) => import("./internal/operation").OperationResult<"contactsGetEngagement">;
966
320
  export declare const bulkImport: (input: {
967
321
  readonly namespaceId?: string | null | undefined;
968
322
  readonly contacts: readonly {
@@ -1033,40 +387,19 @@ export declare const bulkImport: (input: {
1033
387
  } | null | undefined;
1034
388
  }[];
1035
389
  readonly onConflict?: "skip" | "update" | null | undefined;
1036
- }) => import("effect/Effect").Effect<{
1037
- readonly total: number;
1038
- readonly created: number;
1039
- readonly updated: number;
1040
- readonly skipped: number;
1041
- readonly errors: number;
1042
- readonly results: readonly {
1043
- readonly index: number;
1044
- readonly status: "created" | "error" | "skipped" | "updated";
1045
- readonly contactId?: (string & import("effect/Brand").Brand<"ContactId">) | null;
1046
- readonly error?: string | null;
1047
- }[];
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>;
390
+ }) => import("./internal/operation").OperationResult<"contactsBulkImport">;
1049
391
  export declare const bulkDelete: (input: {
1050
392
  readonly ids: readonly string[];
1051
- }) => import("effect/Effect").Effect<{
1052
- readonly deleted: number;
1053
- readonly failed: number;
1054
- }, import("./errors").BillingProviderError | 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>;
393
+ }) => import("./internal/operation").OperationResult<"contactsBulkDelete">;
1055
394
  export declare const bulkUpdateTags: (input: {
1056
395
  readonly ids: readonly string[];
1057
396
  readonly operation: "add" | "remove" | "set";
1058
397
  readonly tags: readonly string[];
1059
- }) => import("effect/Effect").Effect<{
1060
- readonly updated: number;
1061
- readonly failed: number;
1062
- }, 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>;
398
+ }) => import("./internal/operation").OperationResult<"contactsBulkUpdateTags">;
1063
399
  export declare const bulkUpdateStatus: (input: {
1064
400
  readonly ids: readonly string[];
1065
401
  readonly status: "active" | "archived" | "blocked" | "paused";
1066
- }) => import("effect/Effect").Effect<{
1067
- readonly updated: number;
1068
- readonly failed: number;
1069
- }, 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>;
402
+ }) => import("./internal/operation").OperationResult<"contactsBulkUpdateStatus">;
1070
403
  declare const exportContacts: (input?: {
1071
404
  readonly ids?: readonly string[] | null | undefined;
1072
405
  readonly format?: "csv" | "json" | null | undefined;
@@ -1075,30 +408,14 @@ declare const exportContacts: (input?: {
1075
408
  readonly tags?: readonly string[] | null | undefined;
1076
409
  } | null | undefined;
1077
410
  readonly fields?: readonly string[] | null | undefined;
1078
- } | undefined) => import("effect/Effect").Effect<{
1079
- readonly data: string;
1080
- readonly format: "csv" | "json";
1081
- readonly count: number;
1082
- }, 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>;
411
+ } | undefined) => import("./internal/operation").OperationResult<"contactsExport">;
1083
412
  export { exportContacts as export };
1084
413
  export declare const getActivityTimeline: ((input: {
1085
414
  readonly id: string;
1086
415
  readonly limit?: string | null | undefined;
1087
416
  readonly cursor?: string | null | undefined;
1088
417
  readonly channel?: "email" | null | undefined;
1089
- }) => import("effect/Effect").Effect<{
1090
- readonly items: readonly {
1091
- readonly id: string & import("effect/Brand").Brand<"MessageId">;
1092
- readonly channel: string;
1093
- readonly direction: string;
1094
- readonly status: string;
1095
- readonly subject: string | null;
1096
- readonly snippet: string | null;
1097
- readonly createdAt: string;
1098
- readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1099
- }[];
1100
- readonly nextCursor: string | null;
1101
- }, 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>) & {
418
+ }) => import("./internal/operation").OperationResult<"contactsGetActivityTimeline">) & {
1102
419
  readonly pages: (input: {
1103
420
  readonly id: string;
1104
421
  readonly limit?: string | null | undefined;
@@ -1137,17 +454,7 @@ export declare const getGroupMemberships: ((input: {
1137
454
  readonly id: string;
1138
455
  readonly limit?: string | null | undefined;
1139
456
  readonly cursor?: string | null | undefined;
1140
- }) => import("effect/Effect").Effect<{
1141
- readonly items: readonly {
1142
- readonly id: string & import("effect/Brand").Brand<"ContactGroupId">;
1143
- readonly name: string;
1144
- readonly type: string;
1145
- readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
1146
- readonly role: string;
1147
- readonly joinedAt: string;
1148
- }[];
1149
- readonly nextCursor: string | null;
1150
- }, 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>) & {
457
+ }) => import("./internal/operation").OperationResult<"contactsGetGroupMemberships">) & {
1151
458
  readonly pages: (input: {
1152
459
  readonly id: string;
1153
460
  readonly limit?: string | null | undefined;
@@ -1180,20 +487,7 @@ export declare const listEvents: ((input: {
1180
487
  readonly id: string;
1181
488
  readonly limit?: string | null | undefined;
1182
489
  readonly cursor?: string | null | undefined;
1183
- }) => import("effect/Effect").Effect<{
1184
- readonly items: readonly {
1185
- readonly id: string;
1186
- readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
1187
- readonly name: string;
1188
- readonly source: "api" | "samva";
1189
- readonly properties: {
1190
- readonly [x: string]: import("./generated").JsonValue;
1191
- };
1192
- readonly occurredAt: string;
1193
- readonly recordedAt: string;
1194
- }[];
1195
- readonly nextCursor: string | null;
1196
- }, 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>) & {
490
+ }) => import("./internal/operation").OperationResult<"contactEventsListEvents">) & {
1197
491
  readonly pages: (input: {
1198
492
  readonly id: string;
1199
493
  readonly limit?: string | null | undefined;