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.
@@ -6,24 +6,7 @@ export declare const list: ((input?: {
6
6
  readonly contactId?: string | null | undefined;
7
7
  readonly after?: string | null | undefined;
8
8
  readonly before?: string | null | undefined;
9
- } | undefined) => import("effect/Effect").Effect<{
10
- readonly items: readonly {
11
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
12
- readonly title: string | null;
13
- readonly externalId: string | null;
14
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
15
- readonly primaryChannel: "email";
16
- readonly channels: readonly "email"[];
17
- readonly priority: number;
18
- readonly urgency: "critical" | "high" | "low" | "medium";
19
- readonly tags: readonly string[];
20
- readonly isTest: boolean;
21
- readonly messageCount: number;
22
- readonly lastActivityAt: string;
23
- readonly createdAt: string;
24
- }[];
25
- readonly nextCursor: string | null;
26
- }, 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>) & {
9
+ } | undefined) => import("./internal/operation").OperationResult<"conversationsList">) & {
27
10
  readonly pages: (input?: {
28
11
  readonly limit?: string | null | undefined;
29
12
  readonly cursor?: string | null | undefined;
@@ -207,146 +190,17 @@ export declare const create: (input: {
207
190
  readonly isTest?: boolean | null | undefined;
208
191
  readonly isInternal?: boolean | null | undefined;
209
192
  readonly isPrivate?: boolean | null | undefined;
210
- }) => import("effect/Effect").Effect<{
211
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
212
- readonly title: string | null;
213
- readonly externalId: string | null;
214
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
215
- readonly primaryChannel: "email";
216
- readonly channels: readonly "email"[];
217
- readonly priority: number;
218
- readonly urgency: "critical" | "high" | "low" | "medium";
219
- readonly tags: readonly string[];
220
- readonly isTest: boolean;
221
- readonly messageCount: number;
222
- readonly lastActivityAt: string;
223
- readonly createdAt: string;
224
- readonly description: string | null;
225
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
226
- readonly statusReason: string | null;
227
- readonly complexity: "complex" | "moderate" | "simple";
228
- readonly categories: readonly string[];
229
- readonly metadata: {
230
- readonly [x: string]: import("./generated").JsonValue;
231
- } | null;
232
- readonly context: {
233
- readonly customerData?: {
234
- readonly [x: string]: import("./generated").JsonValue;
235
- } | null;
236
- readonly previousConversations?: readonly string[] | null;
237
- readonly sessionVariables?: {
238
- readonly [x: string]: import("./generated").JsonValue;
239
- } | null;
240
- readonly workflowState?: {
241
- readonly currentStep?: string | null;
242
- readonly completedSteps?: readonly string[] | null;
243
- readonly pendingSteps?: readonly string[] | null;
244
- readonly workflowData?: {
245
- readonly [x: string]: import("./generated").JsonValue;
246
- } | null;
247
- } | null;
248
- } | null;
249
- readonly isInternal: boolean;
250
- readonly isPrivate: boolean;
251
- readonly contacts: readonly {
252
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
253
- readonly name: string;
254
- readonly displayName: string | null;
255
- readonly identities: readonly {
256
- readonly type: "email" | "phone";
257
- readonly identifier: string;
258
- readonly verified: boolean;
259
- }[];
260
- }[];
261
- readonly startedAt: string;
262
- readonly lastHumanActivityAt: string | null;
263
- readonly resolvedAt: string | null;
264
- readonly archivedAt: string | null;
265
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
266
- readonly resolutionNotes: string | null;
267
- readonly updatedAt: string;
268
- }, 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>;
193
+ }) => import("./internal/operation").OperationResult<"conversationsCreate">;
269
194
  export declare const getById: (input: {
270
195
  readonly id: string;
271
- }) => import("effect/Effect").Effect<{
272
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
273
- readonly title: string | null;
274
- readonly externalId: string | null;
275
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
276
- readonly primaryChannel: "email";
277
- readonly channels: readonly "email"[];
278
- readonly priority: number;
279
- readonly urgency: "critical" | "high" | "low" | "medium";
280
- readonly tags: readonly string[];
281
- readonly isTest: boolean;
282
- readonly messageCount: number;
283
- readonly lastActivityAt: string;
284
- readonly createdAt: string;
285
- readonly description: string | null;
286
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
287
- readonly statusReason: string | null;
288
- readonly complexity: "complex" | "moderate" | "simple";
289
- readonly categories: readonly string[];
290
- readonly metadata: {
291
- readonly [x: string]: import("./generated").JsonValue;
292
- } | null;
293
- readonly context: {
294
- readonly customerData?: {
295
- readonly [x: string]: import("./generated").JsonValue;
296
- } | null;
297
- readonly previousConversations?: readonly string[] | null;
298
- readonly sessionVariables?: {
299
- readonly [x: string]: import("./generated").JsonValue;
300
- } | null;
301
- readonly workflowState?: {
302
- readonly currentStep?: string | null;
303
- readonly completedSteps?: readonly string[] | null;
304
- readonly pendingSteps?: readonly string[] | null;
305
- readonly workflowData?: {
306
- readonly [x: string]: import("./generated").JsonValue;
307
- } | null;
308
- } | null;
309
- } | null;
310
- readonly isInternal: boolean;
311
- readonly isPrivate: boolean;
312
- readonly contacts: readonly {
313
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
314
- readonly name: string;
315
- readonly displayName: string | null;
316
- readonly identities: readonly {
317
- readonly type: "email" | "phone";
318
- readonly identifier: string;
319
- readonly verified: boolean;
320
- }[];
321
- }[];
322
- readonly startedAt: string;
323
- readonly lastHumanActivityAt: string | null;
324
- readonly resolvedAt: string | null;
325
- readonly archivedAt: string | null;
326
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
327
- readonly resolutionNotes: string | null;
328
- readonly updatedAt: string;
329
- }, 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>;
196
+ }) => import("./internal/operation").OperationResult<"conversationsGetById">;
330
197
  export declare const listMessages: ((input: {
331
198
  readonly id: string;
332
199
  readonly limit?: string | null | undefined;
333
200
  readonly cursor?: string | null | undefined;
334
201
  readonly after?: string | null | undefined;
335
202
  readonly before?: string | null | undefined;
336
- }) => import("effect/Effect").Effect<{
337
- readonly items: readonly {
338
- readonly id: string & import("effect/Brand").Brand<"MessageId">;
339
- readonly channel: "email";
340
- readonly direction: "inbound" | "outbound";
341
- readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
342
- readonly from: string | null;
343
- readonly to: readonly string[];
344
- readonly subject: string | null;
345
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
346
- readonly createdAt: string;
347
- }[];
348
- readonly nextCursor: string | null;
349
- }, 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>) & {
203
+ }) => import("./internal/operation").OperationResult<"conversationsListMessages">) & {
350
204
  readonly pages: (input: {
351
205
  readonly id: string;
352
206
  readonly limit?: string | null | undefined;
@@ -516,558 +370,36 @@ export declare const update: (input: {
516
370
  readonly isTest?: boolean | null | undefined;
517
371
  readonly isInternal?: boolean | null | undefined;
518
372
  readonly isPrivate?: boolean | null | undefined;
519
- }) => import("effect/Effect").Effect<{
520
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
521
- readonly title: string | null;
522
- readonly externalId: string | null;
523
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
524
- readonly primaryChannel: "email";
525
- readonly channels: readonly "email"[];
526
- readonly priority: number;
527
- readonly urgency: "critical" | "high" | "low" | "medium";
528
- readonly tags: readonly string[];
529
- readonly isTest: boolean;
530
- readonly messageCount: number;
531
- readonly lastActivityAt: string;
532
- readonly createdAt: string;
533
- readonly description: string | null;
534
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
535
- readonly statusReason: string | null;
536
- readonly complexity: "complex" | "moderate" | "simple";
537
- readonly categories: readonly string[];
538
- readonly metadata: {
539
- readonly [x: string]: import("./generated").JsonValue;
540
- } | null;
541
- readonly context: {
542
- readonly customerData?: {
543
- readonly [x: string]: import("./generated").JsonValue;
544
- } | null;
545
- readonly previousConversations?: readonly string[] | null;
546
- readonly sessionVariables?: {
547
- readonly [x: string]: import("./generated").JsonValue;
548
- } | null;
549
- readonly workflowState?: {
550
- readonly currentStep?: string | null;
551
- readonly completedSteps?: readonly string[] | null;
552
- readonly pendingSteps?: readonly string[] | null;
553
- readonly workflowData?: {
554
- readonly [x: string]: import("./generated").JsonValue;
555
- } | null;
556
- } | null;
557
- } | null;
558
- readonly isInternal: boolean;
559
- readonly isPrivate: boolean;
560
- readonly contacts: readonly {
561
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
562
- readonly name: string;
563
- readonly displayName: string | null;
564
- readonly identities: readonly {
565
- readonly type: "email" | "phone";
566
- readonly identifier: string;
567
- readonly verified: boolean;
568
- }[];
569
- }[];
570
- readonly startedAt: string;
571
- readonly lastHumanActivityAt: string | null;
572
- readonly resolvedAt: string | null;
573
- readonly archivedAt: string | null;
574
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
575
- readonly resolutionNotes: string | null;
576
- readonly updatedAt: string;
577
- }, 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>;
373
+ }) => import("./internal/operation").OperationResult<"conversationsUpdate">;
578
374
  export declare const addTags: (input: {
579
375
  readonly id: string;
580
376
  readonly tags: readonly string[];
581
- }) => import("effect/Effect").Effect<{
582
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
583
- readonly title: string | null;
584
- readonly externalId: string | null;
585
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
586
- readonly primaryChannel: "email";
587
- readonly channels: readonly "email"[];
588
- readonly priority: number;
589
- readonly urgency: "critical" | "high" | "low" | "medium";
590
- readonly tags: readonly string[];
591
- readonly isTest: boolean;
592
- readonly messageCount: number;
593
- readonly lastActivityAt: string;
594
- readonly createdAt: string;
595
- readonly description: string | null;
596
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
597
- readonly statusReason: string | null;
598
- readonly complexity: "complex" | "moderate" | "simple";
599
- readonly categories: readonly string[];
600
- readonly metadata: {
601
- readonly [x: string]: import("./generated").JsonValue;
602
- } | null;
603
- readonly context: {
604
- readonly customerData?: {
605
- readonly [x: string]: import("./generated").JsonValue;
606
- } | null;
607
- readonly previousConversations?: readonly string[] | null;
608
- readonly sessionVariables?: {
609
- readonly [x: string]: import("./generated").JsonValue;
610
- } | null;
611
- readonly workflowState?: {
612
- readonly currentStep?: string | null;
613
- readonly completedSteps?: readonly string[] | null;
614
- readonly pendingSteps?: readonly string[] | null;
615
- readonly workflowData?: {
616
- readonly [x: string]: import("./generated").JsonValue;
617
- } | null;
618
- } | null;
619
- } | null;
620
- readonly isInternal: boolean;
621
- readonly isPrivate: boolean;
622
- readonly contacts: readonly {
623
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
624
- readonly name: string;
625
- readonly displayName: string | null;
626
- readonly identities: readonly {
627
- readonly type: "email" | "phone";
628
- readonly identifier: string;
629
- readonly verified: boolean;
630
- }[];
631
- }[];
632
- readonly startedAt: string;
633
- readonly lastHumanActivityAt: string | null;
634
- readonly resolvedAt: string | null;
635
- readonly archivedAt: string | null;
636
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
637
- readonly resolutionNotes: string | null;
638
- readonly updatedAt: string;
639
- }, 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>;
377
+ }) => import("./internal/operation").OperationResult<"conversationsAddTags">;
640
378
  export declare const removeTags: (input: {
641
379
  readonly id: string;
642
380
  readonly tags: readonly string[];
643
- }) => import("effect/Effect").Effect<{
644
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
645
- readonly title: string | null;
646
- readonly externalId: string | null;
647
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
648
- readonly primaryChannel: "email";
649
- readonly channels: readonly "email"[];
650
- readonly priority: number;
651
- readonly urgency: "critical" | "high" | "low" | "medium";
652
- readonly tags: readonly string[];
653
- readonly isTest: boolean;
654
- readonly messageCount: number;
655
- readonly lastActivityAt: string;
656
- readonly createdAt: string;
657
- readonly description: string | null;
658
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
659
- readonly statusReason: string | null;
660
- readonly complexity: "complex" | "moderate" | "simple";
661
- readonly categories: readonly string[];
662
- readonly metadata: {
663
- readonly [x: string]: import("./generated").JsonValue;
664
- } | null;
665
- readonly context: {
666
- readonly customerData?: {
667
- readonly [x: string]: import("./generated").JsonValue;
668
- } | null;
669
- readonly previousConversations?: readonly string[] | null;
670
- readonly sessionVariables?: {
671
- readonly [x: string]: import("./generated").JsonValue;
672
- } | null;
673
- readonly workflowState?: {
674
- readonly currentStep?: string | null;
675
- readonly completedSteps?: readonly string[] | null;
676
- readonly pendingSteps?: readonly string[] | null;
677
- readonly workflowData?: {
678
- readonly [x: string]: import("./generated").JsonValue;
679
- } | null;
680
- } | null;
681
- } | null;
682
- readonly isInternal: boolean;
683
- readonly isPrivate: boolean;
684
- readonly contacts: readonly {
685
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
686
- readonly name: string;
687
- readonly displayName: string | null;
688
- readonly identities: readonly {
689
- readonly type: "email" | "phone";
690
- readonly identifier: string;
691
- readonly verified: boolean;
692
- }[];
693
- }[];
694
- readonly startedAt: string;
695
- readonly lastHumanActivityAt: string | null;
696
- readonly resolvedAt: string | null;
697
- readonly archivedAt: string | null;
698
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
699
- readonly resolutionNotes: string | null;
700
- readonly updatedAt: string;
701
- }, 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>;
381
+ }) => import("./internal/operation").OperationResult<"conversationsRemoveTags">;
702
382
  export declare const addCategories: (input: {
703
383
  readonly id: string;
704
384
  readonly categories: readonly string[];
705
- }) => import("effect/Effect").Effect<{
706
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
707
- readonly title: string | null;
708
- readonly externalId: string | null;
709
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
710
- readonly primaryChannel: "email";
711
- readonly channels: readonly "email"[];
712
- readonly priority: number;
713
- readonly urgency: "critical" | "high" | "low" | "medium";
714
- readonly tags: readonly string[];
715
- readonly isTest: boolean;
716
- readonly messageCount: number;
717
- readonly lastActivityAt: string;
718
- readonly createdAt: string;
719
- readonly description: string | null;
720
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
721
- readonly statusReason: string | null;
722
- readonly complexity: "complex" | "moderate" | "simple";
723
- readonly categories: readonly string[];
724
- readonly metadata: {
725
- readonly [x: string]: import("./generated").JsonValue;
726
- } | null;
727
- readonly context: {
728
- readonly customerData?: {
729
- readonly [x: string]: import("./generated").JsonValue;
730
- } | null;
731
- readonly previousConversations?: readonly string[] | null;
732
- readonly sessionVariables?: {
733
- readonly [x: string]: import("./generated").JsonValue;
734
- } | null;
735
- readonly workflowState?: {
736
- readonly currentStep?: string | null;
737
- readonly completedSteps?: readonly string[] | null;
738
- readonly pendingSteps?: readonly string[] | null;
739
- readonly workflowData?: {
740
- readonly [x: string]: import("./generated").JsonValue;
741
- } | null;
742
- } | null;
743
- } | null;
744
- readonly isInternal: boolean;
745
- readonly isPrivate: boolean;
746
- readonly contacts: readonly {
747
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
748
- readonly name: string;
749
- readonly displayName: string | null;
750
- readonly identities: readonly {
751
- readonly type: "email" | "phone";
752
- readonly identifier: string;
753
- readonly verified: boolean;
754
- }[];
755
- }[];
756
- readonly startedAt: string;
757
- readonly lastHumanActivityAt: string | null;
758
- readonly resolvedAt: string | null;
759
- readonly archivedAt: string | null;
760
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
761
- readonly resolutionNotes: string | null;
762
- readonly updatedAt: string;
763
- }, 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>;
385
+ }) => import("./internal/operation").OperationResult<"conversationsAddCategories">;
764
386
  export declare const removeCategories: (input: {
765
387
  readonly id: string;
766
388
  readonly categories: readonly string[];
767
- }) => import("effect/Effect").Effect<{
768
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
769
- readonly title: string | null;
770
- readonly externalId: string | null;
771
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
772
- readonly primaryChannel: "email";
773
- readonly channels: readonly "email"[];
774
- readonly priority: number;
775
- readonly urgency: "critical" | "high" | "low" | "medium";
776
- readonly tags: readonly string[];
777
- readonly isTest: boolean;
778
- readonly messageCount: number;
779
- readonly lastActivityAt: string;
780
- readonly createdAt: string;
781
- readonly description: string | null;
782
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
783
- readonly statusReason: string | null;
784
- readonly complexity: "complex" | "moderate" | "simple";
785
- readonly categories: readonly string[];
786
- readonly metadata: {
787
- readonly [x: string]: import("./generated").JsonValue;
788
- } | null;
789
- readonly context: {
790
- readonly customerData?: {
791
- readonly [x: string]: import("./generated").JsonValue;
792
- } | null;
793
- readonly previousConversations?: readonly string[] | null;
794
- readonly sessionVariables?: {
795
- readonly [x: string]: import("./generated").JsonValue;
796
- } | null;
797
- readonly workflowState?: {
798
- readonly currentStep?: string | null;
799
- readonly completedSteps?: readonly string[] | null;
800
- readonly pendingSteps?: readonly string[] | null;
801
- readonly workflowData?: {
802
- readonly [x: string]: import("./generated").JsonValue;
803
- } | null;
804
- } | null;
805
- } | null;
806
- readonly isInternal: boolean;
807
- readonly isPrivate: boolean;
808
- readonly contacts: readonly {
809
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
810
- readonly name: string;
811
- readonly displayName: string | null;
812
- readonly identities: readonly {
813
- readonly type: "email" | "phone";
814
- readonly identifier: string;
815
- readonly verified: boolean;
816
- }[];
817
- }[];
818
- readonly startedAt: string;
819
- readonly lastHumanActivityAt: string | null;
820
- readonly resolvedAt: string | null;
821
- readonly archivedAt: string | null;
822
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
823
- readonly resolutionNotes: string | null;
824
- readonly updatedAt: string;
825
- }, 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>;
389
+ }) => import("./internal/operation").OperationResult<"conversationsRemoveCategories">;
826
390
  export declare const addChannels: (input: {
827
391
  readonly id: string;
828
392
  readonly channels: readonly "email"[];
829
- }) => import("effect/Effect").Effect<{
830
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
831
- readonly title: string | null;
832
- readonly externalId: string | null;
833
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
834
- readonly primaryChannel: "email";
835
- readonly channels: readonly "email"[];
836
- readonly priority: number;
837
- readonly urgency: "critical" | "high" | "low" | "medium";
838
- readonly tags: readonly string[];
839
- readonly isTest: boolean;
840
- readonly messageCount: number;
841
- readonly lastActivityAt: string;
842
- readonly createdAt: string;
843
- readonly description: string | null;
844
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
845
- readonly statusReason: string | null;
846
- readonly complexity: "complex" | "moderate" | "simple";
847
- readonly categories: readonly string[];
848
- readonly metadata: {
849
- readonly [x: string]: import("./generated").JsonValue;
850
- } | null;
851
- readonly context: {
852
- readonly customerData?: {
853
- readonly [x: string]: import("./generated").JsonValue;
854
- } | null;
855
- readonly previousConversations?: readonly string[] | null;
856
- readonly sessionVariables?: {
857
- readonly [x: string]: import("./generated").JsonValue;
858
- } | null;
859
- readonly workflowState?: {
860
- readonly currentStep?: string | null;
861
- readonly completedSteps?: readonly string[] | null;
862
- readonly pendingSteps?: readonly string[] | null;
863
- readonly workflowData?: {
864
- readonly [x: string]: import("./generated").JsonValue;
865
- } | null;
866
- } | null;
867
- } | null;
868
- readonly isInternal: boolean;
869
- readonly isPrivate: boolean;
870
- readonly contacts: readonly {
871
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
872
- readonly name: string;
873
- readonly displayName: string | null;
874
- readonly identities: readonly {
875
- readonly type: "email" | "phone";
876
- readonly identifier: string;
877
- readonly verified: boolean;
878
- }[];
879
- }[];
880
- readonly startedAt: string;
881
- readonly lastHumanActivityAt: string | null;
882
- readonly resolvedAt: string | null;
883
- readonly archivedAt: string | null;
884
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
885
- readonly resolutionNotes: string | null;
886
- readonly updatedAt: string;
887
- }, 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>;
393
+ }) => import("./internal/operation").OperationResult<"conversationsAddChannels">;
888
394
  export declare const removeChannels: (input: {
889
395
  readonly id: string;
890
396
  readonly channels: readonly "email"[];
891
- }) => import("effect/Effect").Effect<{
892
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
893
- readonly title: string | null;
894
- readonly externalId: string | null;
895
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
896
- readonly primaryChannel: "email";
897
- readonly channels: readonly "email"[];
898
- readonly priority: number;
899
- readonly urgency: "critical" | "high" | "low" | "medium";
900
- readonly tags: readonly string[];
901
- readonly isTest: boolean;
902
- readonly messageCount: number;
903
- readonly lastActivityAt: string;
904
- readonly createdAt: string;
905
- readonly description: string | null;
906
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
907
- readonly statusReason: string | null;
908
- readonly complexity: "complex" | "moderate" | "simple";
909
- readonly categories: readonly string[];
910
- readonly metadata: {
911
- readonly [x: string]: import("./generated").JsonValue;
912
- } | null;
913
- readonly context: {
914
- readonly customerData?: {
915
- readonly [x: string]: import("./generated").JsonValue;
916
- } | null;
917
- readonly previousConversations?: readonly string[] | null;
918
- readonly sessionVariables?: {
919
- readonly [x: string]: import("./generated").JsonValue;
920
- } | null;
921
- readonly workflowState?: {
922
- readonly currentStep?: string | null;
923
- readonly completedSteps?: readonly string[] | null;
924
- readonly pendingSteps?: readonly string[] | null;
925
- readonly workflowData?: {
926
- readonly [x: string]: import("./generated").JsonValue;
927
- } | null;
928
- } | null;
929
- } | null;
930
- readonly isInternal: boolean;
931
- readonly isPrivate: boolean;
932
- readonly contacts: readonly {
933
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
934
- readonly name: string;
935
- readonly displayName: string | null;
936
- readonly identities: readonly {
937
- readonly type: "email" | "phone";
938
- readonly identifier: string;
939
- readonly verified: boolean;
940
- }[];
941
- }[];
942
- readonly startedAt: string;
943
- readonly lastHumanActivityAt: string | null;
944
- readonly resolvedAt: string | null;
945
- readonly archivedAt: string | null;
946
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
947
- readonly resolutionNotes: string | null;
948
- readonly updatedAt: string;
949
- }, 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>;
397
+ }) => import("./internal/operation").OperationResult<"conversationsRemoveChannels">;
950
398
  export declare const addContacts: (input: {
951
399
  readonly id: string;
952
400
  readonly contactIds: readonly string[];
953
- }) => import("effect/Effect").Effect<{
954
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
955
- readonly title: string | null;
956
- readonly externalId: string | null;
957
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
958
- readonly primaryChannel: "email";
959
- readonly channels: readonly "email"[];
960
- readonly priority: number;
961
- readonly urgency: "critical" | "high" | "low" | "medium";
962
- readonly tags: readonly string[];
963
- readonly isTest: boolean;
964
- readonly messageCount: number;
965
- readonly lastActivityAt: string;
966
- readonly createdAt: string;
967
- readonly description: string | null;
968
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
969
- readonly statusReason: string | null;
970
- readonly complexity: "complex" | "moderate" | "simple";
971
- readonly categories: readonly string[];
972
- readonly metadata: {
973
- readonly [x: string]: import("./generated").JsonValue;
974
- } | null;
975
- readonly context: {
976
- readonly customerData?: {
977
- readonly [x: string]: import("./generated").JsonValue;
978
- } | null;
979
- readonly previousConversations?: readonly string[] | null;
980
- readonly sessionVariables?: {
981
- readonly [x: string]: import("./generated").JsonValue;
982
- } | null;
983
- readonly workflowState?: {
984
- readonly currentStep?: string | null;
985
- readonly completedSteps?: readonly string[] | null;
986
- readonly pendingSteps?: readonly string[] | null;
987
- readonly workflowData?: {
988
- readonly [x: string]: import("./generated").JsonValue;
989
- } | null;
990
- } | null;
991
- } | null;
992
- readonly isInternal: boolean;
993
- readonly isPrivate: boolean;
994
- readonly contacts: readonly {
995
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
996
- readonly name: string;
997
- readonly displayName: string | null;
998
- readonly identities: readonly {
999
- readonly type: "email" | "phone";
1000
- readonly identifier: string;
1001
- readonly verified: boolean;
1002
- }[];
1003
- }[];
1004
- readonly startedAt: string;
1005
- readonly lastHumanActivityAt: string | null;
1006
- readonly resolvedAt: string | null;
1007
- readonly archivedAt: string | null;
1008
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
1009
- readonly resolutionNotes: string | null;
1010
- readonly updatedAt: string;
1011
- }, 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>;
401
+ }) => import("./internal/operation").OperationResult<"conversationsAddContacts">;
1012
402
  export declare const removeContacts: (input: {
1013
403
  readonly id: string;
1014
404
  readonly contactIds: readonly string[];
1015
- }) => import("effect/Effect").Effect<{
1016
- readonly id: string & import("effect/Brand").Brand<"ConversationId">;
1017
- readonly title: string | null;
1018
- readonly externalId: string | null;
1019
- readonly status: "active" | "archived" | "escalated" | "resolved" | "waiting";
1020
- readonly primaryChannel: "email";
1021
- readonly channels: readonly "email"[];
1022
- readonly priority: number;
1023
- readonly urgency: "critical" | "high" | "low" | "medium";
1024
- readonly tags: readonly string[];
1025
- readonly isTest: boolean;
1026
- readonly messageCount: number;
1027
- readonly lastActivityAt: string;
1028
- readonly createdAt: string;
1029
- readonly description: string | null;
1030
- readonly parentConversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1031
- readonly statusReason: string | null;
1032
- readonly complexity: "complex" | "moderate" | "simple";
1033
- readonly categories: readonly string[];
1034
- readonly metadata: {
1035
- readonly [x: string]: import("./generated").JsonValue;
1036
- } | null;
1037
- readonly context: {
1038
- readonly customerData?: {
1039
- readonly [x: string]: import("./generated").JsonValue;
1040
- } | null;
1041
- readonly previousConversations?: readonly string[] | null;
1042
- readonly sessionVariables?: {
1043
- readonly [x: string]: import("./generated").JsonValue;
1044
- } | null;
1045
- readonly workflowState?: {
1046
- readonly currentStep?: string | null;
1047
- readonly completedSteps?: readonly string[] | null;
1048
- readonly pendingSteps?: readonly string[] | null;
1049
- readonly workflowData?: {
1050
- readonly [x: string]: import("./generated").JsonValue;
1051
- } | null;
1052
- } | null;
1053
- } | null;
1054
- readonly isInternal: boolean;
1055
- readonly isPrivate: boolean;
1056
- readonly contacts: readonly {
1057
- readonly id: string & import("effect/Brand").Brand<"ContactId">;
1058
- readonly name: string;
1059
- readonly displayName: string | null;
1060
- readonly identities: readonly {
1061
- readonly type: "email" | "phone";
1062
- readonly identifier: string;
1063
- readonly verified: boolean;
1064
- }[];
1065
- }[];
1066
- readonly startedAt: string;
1067
- readonly lastHumanActivityAt: string | null;
1068
- readonly resolvedAt: string | null;
1069
- readonly archivedAt: string | null;
1070
- readonly resolutionType: "abandoned" | "automated" | "escalated" | "human_assisted" | "timeout" | null;
1071
- readonly resolutionNotes: string | null;
1072
- readonly updatedAt: string;
1073
- }, 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>;
405
+ }) => import("./internal/operation").OperationResult<"conversationsRemoveContacts">;