@kl1/contracts 1.1.20 → 1.1.21-uat

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.
@@ -648,19 +648,49 @@ export declare const apiContract: {
648
648
  query: import("zod").ZodObject<{
649
649
  page: import("zod").ZodDefault<import("zod").ZodNumber>;
650
650
  pageSize: import("zod").ZodDefault<import("zod").ZodNumber>;
651
- keyword: import("zod").ZodOptional<import("zod").ZodString>;
651
+ keyword: import("zod").ZodOptional<import("zod").ZodObject<{
652
+ value: import("zod").ZodString;
653
+ category: import("zod").ZodUnion<[import("zod").ZodLiteral<"contact">, import("zod").ZodLiteral<"message">]>;
654
+ }, "strip", import("zod").ZodTypeAny, {
655
+ value: string;
656
+ category: "message" | "contact";
657
+ }, {
658
+ value: string;
659
+ category: "message" | "contact";
660
+ }>>;
661
+ contactLabels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
662
+ channels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
663
+ date: import("zod").ZodOptional<import("zod").ZodString>;
664
+ contacts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
665
+ assignees: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
652
666
  level1: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"open">, import("zod").ZodLiteral<"close">, import("zod").ZodLiteral<"inbox">, import("zod").ZodLiteral<"sent">, import("zod").ZodLiteral<"scheduled">, import("zod").ZodLiteral<"starred">]>>;
653
667
  level2: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"all">, import("zod").ZodLiteral<"unassign">, import("zod").ZodLiteral<"mine">, import("zod").ZodLiteral<"other">]>>;
654
668
  }, "strip", import("zod").ZodTypeAny, {
655
669
  page: number;
656
670
  pageSize: number;
657
- keyword?: string | undefined;
671
+ keyword?: {
672
+ value: string;
673
+ category: "message" | "contact";
674
+ } | undefined;
675
+ contactLabels?: string[] | undefined;
676
+ channels?: string[] | undefined;
677
+ date?: string | undefined;
678
+ contacts?: string[] | undefined;
679
+ assignees?: string[] | undefined;
658
680
  level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
659
681
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
660
682
  }, {
661
683
  page?: number | undefined;
662
684
  pageSize?: number | undefined;
663
- keyword?: string | undefined;
685
+ keyword?: {
686
+ value: string;
687
+ category: "message" | "contact";
688
+ } | undefined;
689
+ contactLabels?: string[] | undefined;
690
+ channels?: string[] | undefined;
691
+ date?: string | undefined;
692
+ contacts?: string[] | undefined;
693
+ assignees?: string[] | undefined;
664
694
  level1?: "open" | "close" | "inbox" | "sent" | "scheduled" | "starred" | undefined;
665
695
  level2?: "all" | "other" | "unassign" | "mine" | undefined;
666
696
  }>;
@@ -2421,146 +2451,324 @@ export declare const apiContract: {
2421
2451
  };
2422
2452
  }>;
2423
2453
  unReadMessageCount: import("zod").ZodNumber;
2424
- }, "strip", import("zod").ZodTypeAny, {
2425
- id: string;
2426
- direction: string;
2427
- createdAt: Date;
2428
- updatedAt: Date;
2429
- deletedAt: Date | null;
2430
- tags: {
2431
- id: string;
2432
- name: string;
2433
- color: string;
2434
- createdAt: Date;
2435
- updatedAt: Date;
2436
- deletedAt: Date | null;
2437
- }[];
2438
- note: string;
2439
- lastMessage: {
2440
- id: string;
2441
- direction: string;
2442
- action: string;
2443
- date: Date;
2444
- createdAt: Date;
2445
- updatedAt: Date;
2446
- deletedAt: Date | null;
2447
- roomId: string;
2448
- subject: string;
2449
- textPlain: string;
2450
- textHtml: string;
2451
- textId: string;
2452
- emailEngineEmailId: string;
2453
- emailEngineMessageId: string;
2454
- emailEngineReplyTo: string | null;
2455
- unseen: boolean;
2456
- seemsLikeNew: boolean;
2457
- from: {
2458
- id: string;
2459
- address: string;
2460
- name: string;
2461
- createdAt: Date;
2462
- updatedAt: Date;
2463
- deletedAt: Date | null;
2464
- }[];
2465
- to: {
2466
- id: string;
2467
- address: string;
2468
- name: string;
2469
- createdAt: Date;
2470
- updatedAt: Date;
2471
- deletedAt: Date | null;
2472
- }[];
2473
- cc: {
2474
- id: string;
2475
- address: string;
2476
- name: string;
2477
- createdAt: Date;
2478
- updatedAt: Date;
2479
- deletedAt: Date | null;
2480
- }[];
2481
- bcc: {
2454
+ cxlog: import("zod").ZodObject<{
2455
+ id: import("zod").ZodString;
2456
+ createdAt: import("zod").ZodDate;
2457
+ updatedAt: import("zod").ZodDate;
2458
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2459
+ caseId: import("zod").ZodNumber;
2460
+ entityId: import("zod").ZodString;
2461
+ entityName: import("zod").ZodString;
2462
+ contactId: import("zod").ZodNullable<import("zod").ZodString>;
2463
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
2464
+ queueId: import("zod").ZodNullable<import("zod").ZodString>;
2465
+ agentId: import("zod").ZodNullable<import("zod").ZodString>;
2466
+ direction: import("zod").ZodNullable<import("zod").ZodString>;
2467
+ startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
2468
+ handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2469
+ firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
2470
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
2471
+ id: import("zod").ZodString;
2472
+ createdAt: import("zod").ZodDate;
2473
+ updatedAt: import("zod").ZodDate;
2474
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2475
+ note: import("zod").ZodNullable<import("zod").ZodString>;
2476
+ disposition: import("zod").ZodNullable<import("zod").ZodString>;
2477
+ callFrom: import("zod").ZodNullable<import("zod").ZodString>;
2478
+ callTo: import("zod").ZodNullable<import("zod").ZodString>;
2479
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
2480
+ id: import("zod").ZodString;
2481
+ createdAt: import("zod").ZodDate;
2482
+ updatedAt: import("zod").ZodDate;
2483
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
2484
+ name: import("zod").ZodString;
2485
+ }, "strip", import("zod").ZodTypeAny, {
2486
+ id: string;
2487
+ name: string;
2488
+ createdAt: Date;
2489
+ updatedAt: Date;
2490
+ deletedAt: Date | null;
2491
+ }, {
2492
+ id: string;
2493
+ name: string;
2494
+ createdAt: Date;
2495
+ updatedAt: Date;
2496
+ deletedAt: Date | null;
2497
+ }>, "many">;
2498
+ }, "strip", import("zod").ZodTypeAny, {
2482
2499
  id: string;
2483
- address: string;
2484
- name: string;
2500
+ disposition: string | null;
2485
2501
  createdAt: Date;
2486
2502
  updatedAt: Date;
2487
2503
  deletedAt: Date | null;
2488
- }[];
2489
- attachments: {
2504
+ tags: {
2505
+ id: string;
2506
+ name: string;
2507
+ createdAt: Date;
2508
+ updatedAt: Date;
2509
+ deletedAt: Date | null;
2510
+ }[];
2511
+ callFrom: string | null;
2512
+ callTo: string | null;
2513
+ note: string | null;
2514
+ }, {
2490
2515
  id: string;
2516
+ disposition: string | null;
2491
2517
  createdAt: Date;
2492
2518
  updatedAt: Date;
2493
2519
  deletedAt: Date | null;
2494
- fileName: string;
2495
- fileType: string;
2496
- uploadId: string;
2497
- upload: {
2520
+ tags: {
2498
2521
  id: string;
2522
+ name: string;
2499
2523
  createdAt: Date;
2500
2524
  updatedAt: Date;
2501
2525
  deletedAt: Date | null;
2502
- extensionName: string;
2503
- fileName: string;
2504
- fileKey: string;
2505
- bucketName: string;
2506
- fileSize: number;
2507
- fileUrl: string;
2508
- };
2509
- roomId: string;
2510
- messageId: string;
2511
- emailEngineAttachmentId: string;
2512
- }[];
2513
- };
2514
- assignee: {
2515
- id: string;
2516
- address: string | null;
2517
- name: string;
2518
- email: string;
2519
- createdAt: Date;
2520
- updatedAt: Date;
2521
- deletedAt: Date | null;
2522
- phone: string | null;
2523
- notificationCount: number | null;
2524
- };
2525
- resolved: boolean;
2526
- assigneeId: string | null;
2527
- subject: string;
2528
- from: {
2529
- id: string;
2530
- address: string;
2531
- name: string;
2532
- createdAt: Date;
2533
- updatedAt: Date;
2534
- deletedAt: Date | null;
2535
- }[];
2536
- to: {
2526
+ }[];
2527
+ callFrom: string | null;
2528
+ callTo: string | null;
2529
+ note: string | null;
2530
+ }>>;
2531
+ }, "strip", import("zod").ZodTypeAny, {
2537
2532
  id: string;
2538
- address: string;
2539
- name: string;
2533
+ channel: string | null;
2534
+ direction: string | null;
2540
2535
  createdAt: Date;
2541
2536
  updatedAt: Date;
2542
2537
  deletedAt: Date | null;
2543
- }[];
2544
- cc: {
2538
+ entityId: string;
2539
+ queueId: string | null;
2540
+ contactId: string | null;
2541
+ caseId: number;
2542
+ entityName: string;
2543
+ agentId: string | null;
2544
+ startedDate: Date | null;
2545
+ handledTime: number | null;
2546
+ firstResponseTime: number | null;
2547
+ wrapUpForm: {
2548
+ id: string;
2549
+ disposition: string | null;
2550
+ createdAt: Date;
2551
+ updatedAt: Date;
2552
+ deletedAt: Date | null;
2553
+ tags: {
2554
+ id: string;
2555
+ name: string;
2556
+ createdAt: Date;
2557
+ updatedAt: Date;
2558
+ deletedAt: Date | null;
2559
+ }[];
2560
+ callFrom: string | null;
2561
+ callTo: string | null;
2562
+ note: string | null;
2563
+ } | null;
2564
+ }, {
2545
2565
  id: string;
2546
- address: string;
2547
- name: string;
2566
+ channel: string | null;
2567
+ direction: string | null;
2548
2568
  createdAt: Date;
2549
2569
  updatedAt: Date;
2550
2570
  deletedAt: Date | null;
2551
- }[];
2552
- bcc: {
2571
+ entityId: string;
2572
+ queueId: string | null;
2573
+ contactId: string | null;
2574
+ caseId: number;
2575
+ entityName: string;
2576
+ agentId: string | null;
2577
+ startedDate: Date | null;
2578
+ handledTime: number | null;
2579
+ firstResponseTime: number | null;
2580
+ wrapUpForm: {
2581
+ id: string;
2582
+ disposition: string | null;
2583
+ createdAt: Date;
2584
+ updatedAt: Date;
2585
+ deletedAt: Date | null;
2586
+ tags: {
2587
+ id: string;
2588
+ name: string;
2589
+ createdAt: Date;
2590
+ updatedAt: Date;
2591
+ deletedAt: Date | null;
2592
+ }[];
2593
+ callFrom: string | null;
2594
+ callTo: string | null;
2595
+ note: string | null;
2596
+ } | null;
2597
+ }>;
2598
+ }, "strip", import("zod").ZodTypeAny, {
2599
+ id: string;
2600
+ direction: string;
2601
+ createdAt: Date;
2602
+ updatedAt: Date;
2603
+ deletedAt: Date | null;
2604
+ tags: {
2553
2605
  id: string;
2554
- address: string;
2555
2606
  name: string;
2607
+ color: string;
2556
2608
  createdAt: Date;
2557
2609
  updatedAt: Date;
2558
2610
  deletedAt: Date | null;
2559
2611
  }[];
2560
- mailId: string;
2561
- lastMessageId: string;
2562
- firstMessageId: string;
2563
- firstMessage: {
2612
+ note: string;
2613
+ lastMessage: {
2614
+ id: string;
2615
+ direction: string;
2616
+ action: string;
2617
+ date: Date;
2618
+ createdAt: Date;
2619
+ updatedAt: Date;
2620
+ deletedAt: Date | null;
2621
+ roomId: string;
2622
+ subject: string;
2623
+ textPlain: string;
2624
+ textHtml: string;
2625
+ textId: string;
2626
+ emailEngineEmailId: string;
2627
+ emailEngineMessageId: string;
2628
+ emailEngineReplyTo: string | null;
2629
+ unseen: boolean;
2630
+ seemsLikeNew: boolean;
2631
+ from: {
2632
+ id: string;
2633
+ address: string;
2634
+ name: string;
2635
+ createdAt: Date;
2636
+ updatedAt: Date;
2637
+ deletedAt: Date | null;
2638
+ }[];
2639
+ to: {
2640
+ id: string;
2641
+ address: string;
2642
+ name: string;
2643
+ createdAt: Date;
2644
+ updatedAt: Date;
2645
+ deletedAt: Date | null;
2646
+ }[];
2647
+ cc: {
2648
+ id: string;
2649
+ address: string;
2650
+ name: string;
2651
+ createdAt: Date;
2652
+ updatedAt: Date;
2653
+ deletedAt: Date | null;
2654
+ }[];
2655
+ bcc: {
2656
+ id: string;
2657
+ address: string;
2658
+ name: string;
2659
+ createdAt: Date;
2660
+ updatedAt: Date;
2661
+ deletedAt: Date | null;
2662
+ }[];
2663
+ attachments: {
2664
+ id: string;
2665
+ createdAt: Date;
2666
+ updatedAt: Date;
2667
+ deletedAt: Date | null;
2668
+ fileName: string;
2669
+ fileType: string;
2670
+ uploadId: string;
2671
+ upload: {
2672
+ id: string;
2673
+ createdAt: Date;
2674
+ updatedAt: Date;
2675
+ deletedAt: Date | null;
2676
+ extensionName: string;
2677
+ fileName: string;
2678
+ fileKey: string;
2679
+ bucketName: string;
2680
+ fileSize: number;
2681
+ fileUrl: string;
2682
+ };
2683
+ roomId: string;
2684
+ messageId: string;
2685
+ emailEngineAttachmentId: string;
2686
+ }[];
2687
+ };
2688
+ assignee: {
2689
+ id: string;
2690
+ address: string | null;
2691
+ name: string;
2692
+ email: string;
2693
+ createdAt: Date;
2694
+ updatedAt: Date;
2695
+ deletedAt: Date | null;
2696
+ phone: string | null;
2697
+ notificationCount: number | null;
2698
+ };
2699
+ resolved: boolean;
2700
+ cxlog: {
2701
+ id: string;
2702
+ channel: string | null;
2703
+ direction: string | null;
2704
+ createdAt: Date;
2705
+ updatedAt: Date;
2706
+ deletedAt: Date | null;
2707
+ entityId: string;
2708
+ queueId: string | null;
2709
+ contactId: string | null;
2710
+ caseId: number;
2711
+ entityName: string;
2712
+ agentId: string | null;
2713
+ startedDate: Date | null;
2714
+ handledTime: number | null;
2715
+ firstResponseTime: number | null;
2716
+ wrapUpForm: {
2717
+ id: string;
2718
+ disposition: string | null;
2719
+ createdAt: Date;
2720
+ updatedAt: Date;
2721
+ deletedAt: Date | null;
2722
+ tags: {
2723
+ id: string;
2724
+ name: string;
2725
+ createdAt: Date;
2726
+ updatedAt: Date;
2727
+ deletedAt: Date | null;
2728
+ }[];
2729
+ callFrom: string | null;
2730
+ callTo: string | null;
2731
+ note: string | null;
2732
+ } | null;
2733
+ };
2734
+ assigneeId: string | null;
2735
+ subject: string;
2736
+ from: {
2737
+ id: string;
2738
+ address: string;
2739
+ name: string;
2740
+ createdAt: Date;
2741
+ updatedAt: Date;
2742
+ deletedAt: Date | null;
2743
+ }[];
2744
+ to: {
2745
+ id: string;
2746
+ address: string;
2747
+ name: string;
2748
+ createdAt: Date;
2749
+ updatedAt: Date;
2750
+ deletedAt: Date | null;
2751
+ }[];
2752
+ cc: {
2753
+ id: string;
2754
+ address: string;
2755
+ name: string;
2756
+ createdAt: Date;
2757
+ updatedAt: Date;
2758
+ deletedAt: Date | null;
2759
+ }[];
2760
+ bcc: {
2761
+ id: string;
2762
+ address: string;
2763
+ name: string;
2764
+ createdAt: Date;
2765
+ updatedAt: Date;
2766
+ deletedAt: Date | null;
2767
+ }[];
2768
+ mailId: string;
2769
+ lastMessageId: string;
2770
+ firstMessageId: string;
2771
+ firstMessage: {
2564
2772
  id: string;
2565
2773
  direction: string;
2566
2774
  action: string;
@@ -2933,6 +3141,40 @@ export declare const apiContract: {
2933
3141
  notificationCount: number | null;
2934
3142
  };
2935
3143
  resolved: boolean;
3144
+ cxlog: {
3145
+ id: string;
3146
+ channel: string | null;
3147
+ direction: string | null;
3148
+ createdAt: Date;
3149
+ updatedAt: Date;
3150
+ deletedAt: Date | null;
3151
+ entityId: string;
3152
+ queueId: string | null;
3153
+ contactId: string | null;
3154
+ caseId: number;
3155
+ entityName: string;
3156
+ agentId: string | null;
3157
+ startedDate: Date | null;
3158
+ handledTime: number | null;
3159
+ firstResponseTime: number | null;
3160
+ wrapUpForm: {
3161
+ id: string;
3162
+ disposition: string | null;
3163
+ createdAt: Date;
3164
+ updatedAt: Date;
3165
+ deletedAt: Date | null;
3166
+ tags: {
3167
+ id: string;
3168
+ name: string;
3169
+ createdAt: Date;
3170
+ updatedAt: Date;
3171
+ deletedAt: Date | null;
3172
+ }[];
3173
+ callFrom: string | null;
3174
+ callTo: string | null;
3175
+ note: string | null;
3176
+ } | null;
3177
+ };
2936
3178
  assigneeId: string | null;
2937
3179
  subject: string;
2938
3180
  from: {
@@ -3348,6 +3590,40 @@ export declare const apiContract: {
3348
3590
  notificationCount: number | null;
3349
3591
  };
3350
3592
  resolved: boolean;
3593
+ cxlog: {
3594
+ id: string;
3595
+ channel: string | null;
3596
+ direction: string | null;
3597
+ createdAt: Date;
3598
+ updatedAt: Date;
3599
+ deletedAt: Date | null;
3600
+ entityId: string;
3601
+ queueId: string | null;
3602
+ contactId: string | null;
3603
+ caseId: number;
3604
+ entityName: string;
3605
+ agentId: string | null;
3606
+ startedDate: Date | null;
3607
+ handledTime: number | null;
3608
+ firstResponseTime: number | null;
3609
+ wrapUpForm: {
3610
+ id: string;
3611
+ disposition: string | null;
3612
+ createdAt: Date;
3613
+ updatedAt: Date;
3614
+ deletedAt: Date | null;
3615
+ tags: {
3616
+ id: string;
3617
+ name: string;
3618
+ createdAt: Date;
3619
+ updatedAt: Date;
3620
+ deletedAt: Date | null;
3621
+ }[];
3622
+ callFrom: string | null;
3623
+ callTo: string | null;
3624
+ note: string | null;
3625
+ } | null;
3626
+ };
3351
3627
  assigneeId: string | null;
3352
3628
  subject: string;
3353
3629
  from: {
@@ -3764,6 +4040,40 @@ export declare const apiContract: {
3764
4040
  notificationCount: number | null;
3765
4041
  };
3766
4042
  resolved: boolean;
4043
+ cxlog: {
4044
+ id: string;
4045
+ channel: string | null;
4046
+ direction: string | null;
4047
+ createdAt: Date;
4048
+ updatedAt: Date;
4049
+ deletedAt: Date | null;
4050
+ entityId: string;
4051
+ queueId: string | null;
4052
+ contactId: string | null;
4053
+ caseId: number;
4054
+ entityName: string;
4055
+ agentId: string | null;
4056
+ startedDate: Date | null;
4057
+ handledTime: number | null;
4058
+ firstResponseTime: number | null;
4059
+ wrapUpForm: {
4060
+ id: string;
4061
+ disposition: string | null;
4062
+ createdAt: Date;
4063
+ updatedAt: Date;
4064
+ deletedAt: Date | null;
4065
+ tags: {
4066
+ id: string;
4067
+ name: string;
4068
+ createdAt: Date;
4069
+ updatedAt: Date;
4070
+ deletedAt: Date | null;
4071
+ }[];
4072
+ callFrom: string | null;
4073
+ callTo: string | null;
4074
+ note: string | null;
4075
+ } | null;
4076
+ };
3767
4077
  assigneeId: string | null;
3768
4078
  subject: string;
3769
4079
  from: {
@@ -4081,16 +4391,9 @@ export declare const apiContract: {
4081
4391
  };
4082
4392
  path: "mail/room";
4083
4393
  };
4084
- getById: {
4085
- summary: "Get a mail room by id";
4394
+ getRoomCounts: {
4395
+ summary: "Get unread message counts for filter like \"open\", \"close\", \"inbox\" and etc...";
4086
4396
  method: "GET";
4087
- pathParams: import("zod").ZodObject<{
4088
- id: import("zod").ZodString;
4089
- }, "strip", import("zod").ZodTypeAny, {
4090
- id: string;
4091
- }, {
4092
- id: string;
4093
- }>;
4094
4397
  responses: {
4095
4398
  401: import("zod").ZodObject<{
4096
4399
  message: import("zod").ZodString;
@@ -4125,555 +4428,1288 @@ export declare const apiContract: {
4125
4428
  200: import("zod").ZodObject<{
4126
4429
  requestId: import("zod").ZodString;
4127
4430
  data: import("zod").ZodObject<{
4128
- id: import("zod").ZodString;
4129
- createdAt: import("zod").ZodDate;
4130
- updatedAt: import("zod").ZodDate;
4131
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4132
- subject: import("zod").ZodString;
4133
- resolved: import("zod").ZodBoolean;
4134
- assigneeId: import("zod").ZodNullable<import("zod").ZodString>;
4135
- note: import("zod").ZodString;
4136
- mailId: import("zod").ZodString;
4137
- direction: import("zod").ZodString;
4138
- lastMessageId: import("zod").ZodString;
4139
- firstMessageId: import("zod").ZodString;
4140
- from: import("zod").ZodArray<import("zod").ZodObject<{
4141
- id: import("zod").ZodString;
4142
- createdAt: import("zod").ZodDate;
4143
- updatedAt: import("zod").ZodDate;
4144
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4145
- name: import("zod").ZodString;
4146
- address: import("zod").ZodString;
4147
- }, "strip", import("zod").ZodTypeAny, {
4148
- id: string;
4149
- address: string;
4150
- name: string;
4151
- createdAt: Date;
4152
- updatedAt: Date;
4153
- deletedAt: Date | null;
4154
- }, {
4155
- id: string;
4156
- address: string;
4157
- name: string;
4158
- createdAt: Date;
4159
- updatedAt: Date;
4160
- deletedAt: Date | null;
4161
- }>, "many">;
4162
- to: import("zod").ZodArray<import("zod").ZodObject<{
4163
- id: import("zod").ZodString;
4164
- createdAt: import("zod").ZodDate;
4165
- updatedAt: import("zod").ZodDate;
4166
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4167
- name: import("zod").ZodString;
4168
- address: import("zod").ZodString;
4169
- }, "strip", import("zod").ZodTypeAny, {
4170
- id: string;
4171
- address: string;
4172
- name: string;
4173
- createdAt: Date;
4174
- updatedAt: Date;
4175
- deletedAt: Date | null;
4176
- }, {
4177
- id: string;
4178
- address: string;
4179
- name: string;
4180
- createdAt: Date;
4181
- updatedAt: Date;
4182
- deletedAt: Date | null;
4183
- }>, "many">;
4184
- cc: import("zod").ZodArray<import("zod").ZodObject<{
4185
- id: import("zod").ZodString;
4186
- createdAt: import("zod").ZodDate;
4187
- updatedAt: import("zod").ZodDate;
4188
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4189
- name: import("zod").ZodString;
4190
- address: import("zod").ZodString;
4191
- }, "strip", import("zod").ZodTypeAny, {
4192
- id: string;
4193
- address: string;
4194
- name: string;
4195
- createdAt: Date;
4196
- updatedAt: Date;
4197
- deletedAt: Date | null;
4198
- }, {
4199
- id: string;
4200
- address: string;
4201
- name: string;
4202
- createdAt: Date;
4203
- updatedAt: Date;
4204
- deletedAt: Date | null;
4205
- }>, "many">;
4206
- bcc: import("zod").ZodArray<import("zod").ZodObject<{
4207
- id: import("zod").ZodString;
4208
- createdAt: import("zod").ZodDate;
4209
- updatedAt: import("zod").ZodDate;
4210
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4431
+ general: import("zod").ZodArray<import("zod").ZodObject<{
4211
4432
  name: import("zod").ZodString;
4212
- address: import("zod").ZodString;
4433
+ count: import("zod").ZodNumber;
4434
+ unReadMessagesCount: import("zod").ZodNumber;
4213
4435
  }, "strip", import("zod").ZodTypeAny, {
4214
- id: string;
4215
- address: string;
4216
4436
  name: string;
4217
- createdAt: Date;
4218
- updatedAt: Date;
4219
- deletedAt: Date | null;
4437
+ count: number;
4438
+ unReadMessagesCount: number;
4220
4439
  }, {
4221
- id: string;
4222
- address: string;
4223
4440
  name: string;
4224
- createdAt: Date;
4225
- updatedAt: Date;
4226
- deletedAt: Date | null;
4441
+ count: number;
4442
+ unReadMessagesCount: number;
4227
4443
  }>, "many">;
4228
- firstMessage: import("zod").ZodObject<{
4229
- id: import("zod").ZodString;
4230
- createdAt: import("zod").ZodDate;
4231
- updatedAt: import("zod").ZodDate;
4232
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4233
- roomId: import("zod").ZodString;
4234
- subject: import("zod").ZodString;
4235
- textPlain: import("zod").ZodString;
4236
- textHtml: import("zod").ZodString;
4237
- textId: import("zod").ZodString;
4238
- emailEngineEmailId: import("zod").ZodString;
4239
- emailEngineMessageId: import("zod").ZodString;
4240
- emailEngineReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
4241
- direction: import("zod").ZodString;
4242
- date: import("zod").ZodDate;
4243
- action: import("zod").ZodString;
4244
- unseen: import("zod").ZodBoolean;
4245
- seemsLikeNew: import("zod").ZodBoolean;
4246
- from: import("zod").ZodArray<import("zod").ZodObject<{
4247
- id: import("zod").ZodString;
4248
- createdAt: import("zod").ZodDate;
4249
- updatedAt: import("zod").ZodDate;
4250
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4251
- name: import("zod").ZodString;
4252
- address: import("zod").ZodString;
4253
- }, "strip", import("zod").ZodTypeAny, {
4254
- id: string;
4255
- address: string;
4256
- name: string;
4257
- createdAt: Date;
4258
- updatedAt: Date;
4259
- deletedAt: Date | null;
4260
- }, {
4261
- id: string;
4262
- address: string;
4263
- name: string;
4264
- createdAt: Date;
4265
- updatedAt: Date;
4266
- deletedAt: Date | null;
4267
- }>, "many">;
4268
- to: import("zod").ZodArray<import("zod").ZodObject<{
4269
- id: import("zod").ZodString;
4270
- createdAt: import("zod").ZodDate;
4271
- updatedAt: import("zod").ZodDate;
4272
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4273
- name: import("zod").ZodString;
4274
- address: import("zod").ZodString;
4275
- }, "strip", import("zod").ZodTypeAny, {
4276
- id: string;
4277
- address: string;
4278
- name: string;
4279
- createdAt: Date;
4280
- updatedAt: Date;
4281
- deletedAt: Date | null;
4282
- }, {
4283
- id: string;
4284
- address: string;
4285
- name: string;
4286
- createdAt: Date;
4287
- updatedAt: Date;
4288
- deletedAt: Date | null;
4289
- }>, "many">;
4290
- cc: import("zod").ZodArray<import("zod").ZodObject<{
4291
- id: import("zod").ZodString;
4292
- createdAt: import("zod").ZodDate;
4293
- updatedAt: import("zod").ZodDate;
4294
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4295
- name: import("zod").ZodString;
4296
- address: import("zod").ZodString;
4297
- }, "strip", import("zod").ZodTypeAny, {
4298
- id: string;
4299
- address: string;
4300
- name: string;
4301
- createdAt: Date;
4302
- updatedAt: Date;
4303
- deletedAt: Date | null;
4304
- }, {
4305
- id: string;
4306
- address: string;
4307
- name: string;
4308
- createdAt: Date;
4309
- updatedAt: Date;
4310
- deletedAt: Date | null;
4311
- }>, "many">;
4312
- bcc: import("zod").ZodArray<import("zod").ZodObject<{
4444
+ channels: import("zod").ZodArray<import("zod").ZodObject<{
4445
+ channel: import("zod").ZodObject<{
4313
4446
  id: import("zod").ZodString;
4314
4447
  createdAt: import("zod").ZodDate;
4315
4448
  updatedAt: import("zod").ZodDate;
4316
4449
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4317
4450
  name: import("zod").ZodString;
4318
4451
  address: import("zod").ZodString;
4319
- }, "strip", import("zod").ZodTypeAny, {
4320
- id: string;
4321
- address: string;
4322
- name: string;
4323
- createdAt: Date;
4324
- updatedAt: Date;
4325
- deletedAt: Date | null;
4326
- }, {
4327
- id: string;
4328
- address: string;
4329
- name: string;
4330
- createdAt: Date;
4331
- updatedAt: Date;
4332
- deletedAt: Date | null;
4333
- }>, "many">;
4334
- attachments: import("zod").ZodArray<import("zod").ZodObject<{
4335
- id: import("zod").ZodString;
4336
- createdAt: import("zod").ZodDate;
4337
- updatedAt: import("zod").ZodDate;
4338
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4339
- roomId: import("zod").ZodString;
4340
- messageId: import("zod").ZodString;
4341
- fileName: import("zod").ZodString;
4342
- fileType: import("zod").ZodString;
4343
- emailEngineAttachmentId: import("zod").ZodString;
4344
- uploadId: import("zod").ZodString;
4345
- upload: import("zod").ZodObject<{
4452
+ accountId: import("zod").ZodString;
4453
+ mailServerId: import("zod").ZodString;
4454
+ mailServer: import("zod").ZodObject<{
4346
4455
  id: import("zod").ZodString;
4347
4456
  createdAt: import("zod").ZodDate;
4348
4457
  updatedAt: import("zod").ZodDate;
4349
4458
  deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4350
- bucketName: import("zod").ZodString;
4351
- fileName: import("zod").ZodString;
4352
- fileKey: import("zod").ZodString;
4353
- fileSize: import("zod").ZodNumber;
4354
- fileUrl: import("zod").ZodString;
4355
- extensionName: import("zod").ZodString;
4459
+ name: import("zod").ZodString;
4460
+ smtpHost: import("zod").ZodString;
4461
+ smtpPort: import("zod").ZodNumber;
4462
+ smtpTlsPort: import("zod").ZodNumber;
4463
+ useTlsForSmtp: import("zod").ZodBoolean;
4464
+ imapHost: import("zod").ZodString;
4465
+ imapPort: import("zod").ZodNumber;
4466
+ imapTlsPort: import("zod").ZodNumber;
4467
+ useTlsForImap: import("zod").ZodBoolean;
4356
4468
  }, "strip", import("zod").ZodTypeAny, {
4357
4469
  id: string;
4470
+ name: string;
4358
4471
  createdAt: Date;
4359
4472
  updatedAt: Date;
4360
4473
  deletedAt: Date | null;
4361
- extensionName: string;
4362
- fileName: string;
4363
- fileKey: string;
4364
- bucketName: string;
4365
- fileSize: number;
4366
- fileUrl: string;
4474
+ smtpHost: string;
4475
+ smtpPort: number;
4476
+ smtpTlsPort: number;
4477
+ useTlsForSmtp: boolean;
4478
+ imapHost: string;
4479
+ imapPort: number;
4480
+ imapTlsPort: number;
4481
+ useTlsForImap: boolean;
4367
4482
  }, {
4368
4483
  id: string;
4484
+ name: string;
4369
4485
  createdAt: Date;
4370
4486
  updatedAt: Date;
4371
4487
  deletedAt: Date | null;
4372
- extensionName: string;
4373
- fileName: string;
4374
- fileKey: string;
4375
- bucketName: string;
4376
- fileSize: number;
4377
- fileUrl: string;
4488
+ smtpHost: string;
4489
+ smtpPort: number;
4490
+ smtpTlsPort: number;
4491
+ useTlsForSmtp: boolean;
4492
+ imapHost: string;
4493
+ imapPort: number;
4494
+ imapTlsPort: number;
4495
+ useTlsForImap: boolean;
4378
4496
  }>;
4497
+ state: import("zod").ZodUnion<[import("zod").ZodLiteral<"init">, import("zod").ZodLiteral<"syncing">, import("zod").ZodLiteral<"connecting">, import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">, import("zod").ZodLiteral<"authenticationError">, import("zod").ZodLiteral<"connectError">, import("zod").ZodLiteral<"unset">]>;
4379
4498
  }, "strip", import("zod").ZodTypeAny, {
4380
4499
  id: string;
4500
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4501
+ address: string;
4502
+ name: string;
4381
4503
  createdAt: Date;
4382
4504
  updatedAt: Date;
4383
4505
  deletedAt: Date | null;
4384
- fileName: string;
4385
- fileType: string;
4386
- uploadId: string;
4387
- upload: {
4506
+ accountId: string;
4507
+ mailServerId: string;
4508
+ mailServer: {
4388
4509
  id: string;
4510
+ name: string;
4389
4511
  createdAt: Date;
4390
4512
  updatedAt: Date;
4391
4513
  deletedAt: Date | null;
4392
- extensionName: string;
4393
- fileName: string;
4394
- fileKey: string;
4395
- bucketName: string;
4396
- fileSize: number;
4397
- fileUrl: string;
4514
+ smtpHost: string;
4515
+ smtpPort: number;
4516
+ smtpTlsPort: number;
4517
+ useTlsForSmtp: boolean;
4518
+ imapHost: string;
4519
+ imapPort: number;
4520
+ imapTlsPort: number;
4521
+ useTlsForImap: boolean;
4398
4522
  };
4399
- roomId: string;
4400
- messageId: string;
4401
- emailEngineAttachmentId: string;
4402
4523
  }, {
4403
4524
  id: string;
4525
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4526
+ address: string;
4527
+ name: string;
4404
4528
  createdAt: Date;
4405
4529
  updatedAt: Date;
4406
4530
  deletedAt: Date | null;
4407
- fileName: string;
4408
- fileType: string;
4409
- uploadId: string;
4410
- upload: {
4531
+ accountId: string;
4532
+ mailServerId: string;
4533
+ mailServer: {
4411
4534
  id: string;
4535
+ name: string;
4412
4536
  createdAt: Date;
4413
4537
  updatedAt: Date;
4414
4538
  deletedAt: Date | null;
4415
- extensionName: string;
4416
- fileName: string;
4417
- fileKey: string;
4418
- bucketName: string;
4419
- fileSize: number;
4420
- fileUrl: string;
4539
+ smtpHost: string;
4540
+ smtpPort: number;
4541
+ smtpTlsPort: number;
4542
+ useTlsForSmtp: boolean;
4543
+ imapHost: string;
4544
+ imapPort: number;
4545
+ imapTlsPort: number;
4546
+ useTlsForImap: boolean;
4421
4547
  };
4422
- roomId: string;
4423
- messageId: string;
4424
- emailEngineAttachmentId: string;
4425
- }>, "many">;
4548
+ }>;
4549
+ count: import("zod").ZodNumber;
4426
4550
  }, "strip", import("zod").ZodTypeAny, {
4427
- id: string;
4428
- direction: string;
4429
- action: string;
4430
- date: Date;
4431
- createdAt: Date;
4432
- updatedAt: Date;
4433
- deletedAt: Date | null;
4434
- roomId: string;
4435
- subject: string;
4436
- textPlain: string;
4437
- textHtml: string;
4438
- textId: string;
4439
- emailEngineEmailId: string;
4440
- emailEngineMessageId: string;
4441
- emailEngineReplyTo: string | null;
4442
- unseen: boolean;
4443
- seemsLikeNew: boolean;
4444
- from: {
4551
+ channel: {
4445
4552
  id: string;
4553
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4446
4554
  address: string;
4447
4555
  name: string;
4448
4556
  createdAt: Date;
4449
4557
  updatedAt: Date;
4450
4558
  deletedAt: Date | null;
4451
- }[];
4452
- to: {
4453
- id: string;
4454
- address: string;
4455
- name: string;
4456
- createdAt: Date;
4457
- updatedAt: Date;
4458
- deletedAt: Date | null;
4459
- }[];
4460
- cc: {
4461
- id: string;
4462
- address: string;
4463
- name: string;
4464
- createdAt: Date;
4465
- updatedAt: Date;
4466
- deletedAt: Date | null;
4467
- }[];
4468
- bcc: {
4559
+ accountId: string;
4560
+ mailServerId: string;
4561
+ mailServer: {
4562
+ id: string;
4563
+ name: string;
4564
+ createdAt: Date;
4565
+ updatedAt: Date;
4566
+ deletedAt: Date | null;
4567
+ smtpHost: string;
4568
+ smtpPort: number;
4569
+ smtpTlsPort: number;
4570
+ useTlsForSmtp: boolean;
4571
+ imapHost: string;
4572
+ imapPort: number;
4573
+ imapTlsPort: number;
4574
+ useTlsForImap: boolean;
4575
+ };
4576
+ };
4577
+ count: number;
4578
+ }, {
4579
+ channel: {
4469
4580
  id: string;
4581
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4470
4582
  address: string;
4471
4583
  name: string;
4472
4584
  createdAt: Date;
4473
4585
  updatedAt: Date;
4474
4586
  deletedAt: Date | null;
4475
- }[];
4476
- attachments: {
4477
- id: string;
4478
- createdAt: Date;
4479
- updatedAt: Date;
4480
- deletedAt: Date | null;
4481
- fileName: string;
4482
- fileType: string;
4483
- uploadId: string;
4484
- upload: {
4587
+ accountId: string;
4588
+ mailServerId: string;
4589
+ mailServer: {
4485
4590
  id: string;
4591
+ name: string;
4486
4592
  createdAt: Date;
4487
4593
  updatedAt: Date;
4488
4594
  deletedAt: Date | null;
4489
- extensionName: string;
4490
- fileName: string;
4491
- fileKey: string;
4492
- bucketName: string;
4493
- fileSize: number;
4494
- fileUrl: string;
4595
+ smtpHost: string;
4596
+ smtpPort: number;
4597
+ smtpTlsPort: number;
4598
+ useTlsForSmtp: boolean;
4599
+ imapHost: string;
4600
+ imapPort: number;
4601
+ imapTlsPort: number;
4602
+ useTlsForImap: boolean;
4495
4603
  };
4496
- roomId: string;
4497
- messageId: string;
4498
- emailEngineAttachmentId: string;
4499
- }[];
4500
- }, {
4501
- id: string;
4502
- direction: string;
4503
- action: string;
4504
- date: Date;
4505
- createdAt: Date;
4506
- updatedAt: Date;
4507
- deletedAt: Date | null;
4508
- roomId: string;
4509
- subject: string;
4510
- textPlain: string;
4511
- textHtml: string;
4512
- textId: string;
4513
- emailEngineEmailId: string;
4514
- emailEngineMessageId: string;
4515
- emailEngineReplyTo: string | null;
4516
- unseen: boolean;
4517
- seemsLikeNew: boolean;
4518
- from: {
4604
+ };
4605
+ count: number;
4606
+ }>, "many">;
4607
+ contactLabels: import("zod").ZodArray<import("zod").ZodObject<{
4608
+ label: import("zod").ZodObject<{
4609
+ id: import("zod").ZodString;
4610
+ createdAt: import("zod").ZodDate;
4611
+ updatedAt: import("zod").ZodDate;
4612
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4613
+ name: import("zod").ZodString;
4614
+ }, "strip", import("zod").ZodTypeAny, {
4519
4615
  id: string;
4520
- address: string;
4521
4616
  name: string;
4522
4617
  createdAt: Date;
4523
4618
  updatedAt: Date;
4524
4619
  deletedAt: Date | null;
4525
- }[];
4526
- to: {
4620
+ }, {
4527
4621
  id: string;
4528
- address: string;
4529
4622
  name: string;
4530
4623
  createdAt: Date;
4531
4624
  updatedAt: Date;
4532
4625
  deletedAt: Date | null;
4533
- }[];
4534
- cc: {
4626
+ }>;
4627
+ count: import("zod").ZodNumber;
4628
+ }, "strip", import("zod").ZodTypeAny, {
4629
+ label: {
4535
4630
  id: string;
4536
- address: string;
4537
4631
  name: string;
4538
4632
  createdAt: Date;
4539
4633
  updatedAt: Date;
4540
4634
  deletedAt: Date | null;
4541
- }[];
4542
- bcc: {
4635
+ };
4636
+ count: number;
4637
+ }, {
4638
+ label: {
4543
4639
  id: string;
4544
- address: string;
4545
4640
  name: string;
4546
4641
  createdAt: Date;
4547
4642
  updatedAt: Date;
4548
4643
  deletedAt: Date | null;
4549
- }[];
4550
- attachments: {
4644
+ };
4645
+ count: number;
4646
+ }>, "many">;
4647
+ }, "strip", import("zod").ZodTypeAny, {
4648
+ general: {
4649
+ name: string;
4650
+ count: number;
4651
+ unReadMessagesCount: number;
4652
+ }[];
4653
+ channels: {
4654
+ channel: {
4551
4655
  id: string;
4656
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4657
+ address: string;
4658
+ name: string;
4552
4659
  createdAt: Date;
4553
4660
  updatedAt: Date;
4554
4661
  deletedAt: Date | null;
4555
- fileName: string;
4556
- fileType: string;
4557
- uploadId: string;
4558
- upload: {
4662
+ accountId: string;
4663
+ mailServerId: string;
4664
+ mailServer: {
4559
4665
  id: string;
4666
+ name: string;
4560
4667
  createdAt: Date;
4561
4668
  updatedAt: Date;
4562
4669
  deletedAt: Date | null;
4563
- extensionName: string;
4564
- fileName: string;
4565
- fileKey: string;
4566
- bucketName: string;
4567
- fileSize: number;
4568
- fileUrl: string;
4670
+ smtpHost: string;
4671
+ smtpPort: number;
4672
+ smtpTlsPort: number;
4673
+ useTlsForSmtp: boolean;
4674
+ imapHost: string;
4675
+ imapPort: number;
4676
+ imapTlsPort: number;
4677
+ useTlsForImap: boolean;
4569
4678
  };
4570
- roomId: string;
4571
- messageId: string;
4572
- emailEngineAttachmentId: string;
4573
- }[];
4574
- }>;
4575
- lastMessage: import("zod").ZodObject<{
4576
- id: import("zod").ZodString;
4577
- createdAt: import("zod").ZodDate;
4578
- updatedAt: import("zod").ZodDate;
4579
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4580
- roomId: import("zod").ZodString;
4581
- subject: import("zod").ZodString;
4582
- textPlain: import("zod").ZodString;
4583
- textHtml: import("zod").ZodString;
4584
- textId: import("zod").ZodString;
4585
- emailEngineEmailId: import("zod").ZodString;
4586
- emailEngineMessageId: import("zod").ZodString;
4587
- emailEngineReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
4588
- direction: import("zod").ZodString;
4589
- date: import("zod").ZodDate;
4590
- action: import("zod").ZodString;
4591
- unseen: import("zod").ZodBoolean;
4592
- seemsLikeNew: import("zod").ZodBoolean;
4593
- from: import("zod").ZodArray<import("zod").ZodObject<{
4594
- id: import("zod").ZodString;
4595
- createdAt: import("zod").ZodDate;
4596
- updatedAt: import("zod").ZodDate;
4597
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4598
- name: import("zod").ZodString;
4599
- address: import("zod").ZodString;
4600
- }, "strip", import("zod").ZodTypeAny, {
4679
+ };
4680
+ count: number;
4681
+ }[];
4682
+ contactLabels: {
4683
+ label: {
4601
4684
  id: string;
4602
- address: string;
4603
4685
  name: string;
4604
4686
  createdAt: Date;
4605
4687
  updatedAt: Date;
4606
4688
  deletedAt: Date | null;
4607
- }, {
4689
+ };
4690
+ count: number;
4691
+ }[];
4692
+ }, {
4693
+ general: {
4694
+ name: string;
4695
+ count: number;
4696
+ unReadMessagesCount: number;
4697
+ }[];
4698
+ channels: {
4699
+ channel: {
4608
4700
  id: string;
4701
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4609
4702
  address: string;
4610
4703
  name: string;
4611
4704
  createdAt: Date;
4612
4705
  updatedAt: Date;
4613
4706
  deletedAt: Date | null;
4614
- }>, "many">;
4615
- to: import("zod").ZodArray<import("zod").ZodObject<{
4616
- id: import("zod").ZodString;
4617
- createdAt: import("zod").ZodDate;
4618
- updatedAt: import("zod").ZodDate;
4619
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4620
- name: import("zod").ZodString;
4621
- address: import("zod").ZodString;
4622
- }, "strip", import("zod").ZodTypeAny, {
4707
+ accountId: string;
4708
+ mailServerId: string;
4709
+ mailServer: {
4710
+ id: string;
4711
+ name: string;
4712
+ createdAt: Date;
4713
+ updatedAt: Date;
4714
+ deletedAt: Date | null;
4715
+ smtpHost: string;
4716
+ smtpPort: number;
4717
+ smtpTlsPort: number;
4718
+ useTlsForSmtp: boolean;
4719
+ imapHost: string;
4720
+ imapPort: number;
4721
+ imapTlsPort: number;
4722
+ useTlsForImap: boolean;
4723
+ };
4724
+ };
4725
+ count: number;
4726
+ }[];
4727
+ contactLabels: {
4728
+ label: {
4623
4729
  id: string;
4624
- address: string;
4625
4730
  name: string;
4626
4731
  createdAt: Date;
4627
4732
  updatedAt: Date;
4628
4733
  deletedAt: Date | null;
4629
- }, {
4734
+ };
4735
+ count: number;
4736
+ }[];
4737
+ }>;
4738
+ }, "strip", import("zod").ZodTypeAny, {
4739
+ data: {
4740
+ general: {
4741
+ name: string;
4742
+ count: number;
4743
+ unReadMessagesCount: number;
4744
+ }[];
4745
+ channels: {
4746
+ channel: {
4630
4747
  id: string;
4748
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4631
4749
  address: string;
4632
4750
  name: string;
4633
4751
  createdAt: Date;
4634
4752
  updatedAt: Date;
4635
4753
  deletedAt: Date | null;
4636
- }>, "many">;
4637
- cc: import("zod").ZodArray<import("zod").ZodObject<{
4638
- id: import("zod").ZodString;
4639
- createdAt: import("zod").ZodDate;
4640
- updatedAt: import("zod").ZodDate;
4641
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4642
- name: import("zod").ZodString;
4643
- address: import("zod").ZodString;
4644
- }, "strip", import("zod").ZodTypeAny, {
4754
+ accountId: string;
4755
+ mailServerId: string;
4756
+ mailServer: {
4757
+ id: string;
4758
+ name: string;
4759
+ createdAt: Date;
4760
+ updatedAt: Date;
4761
+ deletedAt: Date | null;
4762
+ smtpHost: string;
4763
+ smtpPort: number;
4764
+ smtpTlsPort: number;
4765
+ useTlsForSmtp: boolean;
4766
+ imapHost: string;
4767
+ imapPort: number;
4768
+ imapTlsPort: number;
4769
+ useTlsForImap: boolean;
4770
+ };
4771
+ };
4772
+ count: number;
4773
+ }[];
4774
+ contactLabels: {
4775
+ label: {
4645
4776
  id: string;
4646
- address: string;
4647
4777
  name: string;
4648
4778
  createdAt: Date;
4649
4779
  updatedAt: Date;
4650
4780
  deletedAt: Date | null;
4651
- }, {
4781
+ };
4782
+ count: number;
4783
+ }[];
4784
+ };
4785
+ requestId: string;
4786
+ }, {
4787
+ data: {
4788
+ general: {
4789
+ name: string;
4790
+ count: number;
4791
+ unReadMessagesCount: number;
4792
+ }[];
4793
+ channels: {
4794
+ channel: {
4652
4795
  id: string;
4796
+ state: "connected" | "connecting" | "disconnected" | "init" | "syncing" | "authenticationError" | "connectError" | "unset";
4653
4797
  address: string;
4654
4798
  name: string;
4655
4799
  createdAt: Date;
4656
4800
  updatedAt: Date;
4657
4801
  deletedAt: Date | null;
4658
- }>, "many">;
4659
- bcc: import("zod").ZodArray<import("zod").ZodObject<{
4660
- id: import("zod").ZodString;
4661
- createdAt: import("zod").ZodDate;
4662
- updatedAt: import("zod").ZodDate;
4663
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4664
- name: import("zod").ZodString;
4665
- address: import("zod").ZodString;
4666
- }, "strip", import("zod").ZodTypeAny, {
4802
+ accountId: string;
4803
+ mailServerId: string;
4804
+ mailServer: {
4805
+ id: string;
4806
+ name: string;
4807
+ createdAt: Date;
4808
+ updatedAt: Date;
4809
+ deletedAt: Date | null;
4810
+ smtpHost: string;
4811
+ smtpPort: number;
4812
+ smtpTlsPort: number;
4813
+ useTlsForSmtp: boolean;
4814
+ imapHost: string;
4815
+ imapPort: number;
4816
+ imapTlsPort: number;
4817
+ useTlsForImap: boolean;
4818
+ };
4819
+ };
4820
+ count: number;
4821
+ }[];
4822
+ contactLabels: {
4823
+ label: {
4667
4824
  id: string;
4668
- address: string;
4669
4825
  name: string;
4670
4826
  createdAt: Date;
4671
4827
  updatedAt: Date;
4672
4828
  deletedAt: Date | null;
4673
- }, {
4674
- id: string;
4675
- address: string;
4676
- name: string;
4829
+ };
4830
+ count: number;
4831
+ }[];
4832
+ };
4833
+ requestId: string;
4834
+ }>;
4835
+ };
4836
+ path: "mail/room/count_rooms/all";
4837
+ };
4838
+ getAttachments: {
4839
+ summary: "Get all the attachments of a room";
4840
+ method: "GET";
4841
+ pathParams: import("zod").ZodObject<{
4842
+ id: import("zod").ZodString;
4843
+ }, "strip", import("zod").ZodTypeAny, {
4844
+ id: string;
4845
+ }, {
4846
+ id: string;
4847
+ }>;
4848
+ responses: {
4849
+ 401: import("zod").ZodObject<{
4850
+ message: import("zod").ZodString;
4851
+ error: import("zod").ZodAny;
4852
+ }, "strip", import("zod").ZodTypeAny, {
4853
+ message: string;
4854
+ error?: any;
4855
+ }, {
4856
+ message: string;
4857
+ error?: any;
4858
+ }>;
4859
+ 404: import("zod").ZodObject<{
4860
+ message: import("zod").ZodString;
4861
+ error: import("zod").ZodAny;
4862
+ }, "strip", import("zod").ZodTypeAny, {
4863
+ message: string;
4864
+ error?: any;
4865
+ }, {
4866
+ message: string;
4867
+ error?: any;
4868
+ }>;
4869
+ 422: import("zod").ZodObject<{
4870
+ message: import("zod").ZodString;
4871
+ error: import("zod").ZodAny;
4872
+ }, "strip", import("zod").ZodTypeAny, {
4873
+ message: string;
4874
+ error?: any;
4875
+ }, {
4876
+ message: string;
4877
+ error?: any;
4878
+ }>;
4879
+ 200: import("zod").ZodObject<{
4880
+ requestId: import("zod").ZodString;
4881
+ data: import("zod").ZodArray<import("zod").ZodObject<{
4882
+ fileName: import("zod").ZodString;
4883
+ fileType: import("zod").ZodString;
4884
+ emailEngineAttachmentId: import("zod").ZodString;
4885
+ uploadId: import("zod").ZodString;
4886
+ messageId: import("zod").ZodString;
4887
+ roomId: import("zod").ZodString;
4888
+ upload: import("zod").ZodObject<{
4889
+ id: import("zod").ZodString;
4890
+ createdAt: import("zod").ZodDate;
4891
+ updatedAt: import("zod").ZodDate;
4892
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
4893
+ bucketName: import("zod").ZodString;
4894
+ fileName: import("zod").ZodString;
4895
+ fileSize: import("zod").ZodNumber;
4896
+ fileKey: import("zod").ZodString;
4897
+ fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
4898
+ status: import("zod").ZodOptional<import("zod").ZodString>;
4899
+ }, "strip", import("zod").ZodTypeAny, {
4900
+ id: string;
4901
+ createdAt: Date;
4902
+ updatedAt: Date;
4903
+ deletedAt: Date | null;
4904
+ fileName: string;
4905
+ fileKey: string;
4906
+ bucketName: string;
4907
+ fileSize: number;
4908
+ fileUrl: string | null;
4909
+ status?: string | undefined;
4910
+ }, {
4911
+ id: string;
4912
+ createdAt: Date;
4913
+ updatedAt: Date;
4914
+ deletedAt: Date | null;
4915
+ fileName: string;
4916
+ fileKey: string;
4917
+ bucketName: string;
4918
+ fileSize: number;
4919
+ fileUrl: string | null;
4920
+ status?: string | undefined;
4921
+ }>;
4922
+ }, "strip", import("zod").ZodTypeAny, {
4923
+ fileName: string;
4924
+ fileType: string;
4925
+ uploadId: string;
4926
+ upload: {
4927
+ id: string;
4928
+ createdAt: Date;
4929
+ updatedAt: Date;
4930
+ deletedAt: Date | null;
4931
+ fileName: string;
4932
+ fileKey: string;
4933
+ bucketName: string;
4934
+ fileSize: number;
4935
+ fileUrl: string | null;
4936
+ status?: string | undefined;
4937
+ };
4938
+ roomId: string;
4939
+ messageId: string;
4940
+ emailEngineAttachmentId: string;
4941
+ }, {
4942
+ fileName: string;
4943
+ fileType: string;
4944
+ uploadId: string;
4945
+ upload: {
4946
+ id: string;
4947
+ createdAt: Date;
4948
+ updatedAt: Date;
4949
+ deletedAt: Date | null;
4950
+ fileName: string;
4951
+ fileKey: string;
4952
+ bucketName: string;
4953
+ fileSize: number;
4954
+ fileUrl: string | null;
4955
+ status?: string | undefined;
4956
+ };
4957
+ roomId: string;
4958
+ messageId: string;
4959
+ emailEngineAttachmentId: string;
4960
+ }>, "many">;
4961
+ }, "strip", import("zod").ZodTypeAny, {
4962
+ data: {
4963
+ fileName: string;
4964
+ fileType: string;
4965
+ uploadId: string;
4966
+ upload: {
4967
+ id: string;
4968
+ createdAt: Date;
4969
+ updatedAt: Date;
4970
+ deletedAt: Date | null;
4971
+ fileName: string;
4972
+ fileKey: string;
4973
+ bucketName: string;
4974
+ fileSize: number;
4975
+ fileUrl: string | null;
4976
+ status?: string | undefined;
4977
+ };
4978
+ roomId: string;
4979
+ messageId: string;
4980
+ emailEngineAttachmentId: string;
4981
+ }[];
4982
+ requestId: string;
4983
+ }, {
4984
+ data: {
4985
+ fileName: string;
4986
+ fileType: string;
4987
+ uploadId: string;
4988
+ upload: {
4989
+ id: string;
4990
+ createdAt: Date;
4991
+ updatedAt: Date;
4992
+ deletedAt: Date | null;
4993
+ fileName: string;
4994
+ fileKey: string;
4995
+ bucketName: string;
4996
+ fileSize: number;
4997
+ fileUrl: string | null;
4998
+ status?: string | undefined;
4999
+ };
5000
+ roomId: string;
5001
+ messageId: string;
5002
+ emailEngineAttachmentId: string;
5003
+ }[];
5004
+ requestId: string;
5005
+ }>;
5006
+ };
5007
+ path: "mail/room/:id/attachments";
5008
+ };
5009
+ getParticipants: {
5010
+ summary: "Get all the attachments of a room";
5011
+ method: "GET";
5012
+ pathParams: import("zod").ZodObject<{
5013
+ id: import("zod").ZodString;
5014
+ }, "strip", import("zod").ZodTypeAny, {
5015
+ id: string;
5016
+ }, {
5017
+ id: string;
5018
+ }>;
5019
+ responses: {
5020
+ 401: import("zod").ZodObject<{
5021
+ message: import("zod").ZodString;
5022
+ error: import("zod").ZodAny;
5023
+ }, "strip", import("zod").ZodTypeAny, {
5024
+ message: string;
5025
+ error?: any;
5026
+ }, {
5027
+ message: string;
5028
+ error?: any;
5029
+ }>;
5030
+ 404: import("zod").ZodObject<{
5031
+ message: import("zod").ZodString;
5032
+ error: import("zod").ZodAny;
5033
+ }, "strip", import("zod").ZodTypeAny, {
5034
+ message: string;
5035
+ error?: any;
5036
+ }, {
5037
+ message: string;
5038
+ error?: any;
5039
+ }>;
5040
+ 422: import("zod").ZodObject<{
5041
+ message: import("zod").ZodString;
5042
+ error: import("zod").ZodAny;
5043
+ }, "strip", import("zod").ZodTypeAny, {
5044
+ message: string;
5045
+ error?: any;
5046
+ }, {
5047
+ message: string;
5048
+ error?: any;
5049
+ }>;
5050
+ 200: import("zod").ZodObject<{
5051
+ requestId: import("zod").ZodString;
5052
+ data: import("zod").ZodArray<import("zod").ZodObject<{
5053
+ id: import("zod").ZodString;
5054
+ createdAt: import("zod").ZodDate;
5055
+ updatedAt: import("zod").ZodDate;
5056
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5057
+ name: import("zod").ZodString;
5058
+ address: import("zod").ZodString;
5059
+ }, "strip", import("zod").ZodTypeAny, {
5060
+ id: string;
5061
+ address: string;
5062
+ name: string;
5063
+ createdAt: Date;
5064
+ updatedAt: Date;
5065
+ deletedAt: Date | null;
5066
+ }, {
5067
+ id: string;
5068
+ address: string;
5069
+ name: string;
5070
+ createdAt: Date;
5071
+ updatedAt: Date;
5072
+ deletedAt: Date | null;
5073
+ }>, "many">;
5074
+ }, "strip", import("zod").ZodTypeAny, {
5075
+ data: {
5076
+ id: string;
5077
+ address: string;
5078
+ name: string;
5079
+ createdAt: Date;
5080
+ updatedAt: Date;
5081
+ deletedAt: Date | null;
5082
+ }[];
5083
+ requestId: string;
5084
+ }, {
5085
+ data: {
5086
+ id: string;
5087
+ address: string;
5088
+ name: string;
5089
+ createdAt: Date;
5090
+ updatedAt: Date;
5091
+ deletedAt: Date | null;
5092
+ }[];
5093
+ requestId: string;
5094
+ }>;
5095
+ };
5096
+ path: "mail/room/:id/participants";
5097
+ };
5098
+ update: {
5099
+ body: import("zod").ZodObject<{
5100
+ disposition: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"resolved">, import("zod").ZodLiteral<"follow up">, import("zod").ZodLiteral<"escalated">, import("zod").ZodLiteral<"dropped">, import("zod").ZodLiteral<"prank">, import("zod").ZodLiteral<"blank">]>>>;
5101
+ assigneeId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
5102
+ note: import("zod").ZodOptional<import("zod").ZodString>;
5103
+ tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
5104
+ handover: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
5105
+ selfAssign: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
5106
+ }, "strip", import("zod").ZodTypeAny, {
5107
+ disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
5108
+ assigneeId?: string | null | undefined;
5109
+ note?: string | undefined;
5110
+ tags?: string[] | undefined;
5111
+ handover?: boolean | null | undefined;
5112
+ selfAssign?: boolean | null | undefined;
5113
+ }, {
5114
+ disposition?: "resolved" | "follow up" | "escalated" | "dropped" | "prank" | "blank" | null | undefined;
5115
+ assigneeId?: string | null | undefined;
5116
+ note?: string | undefined;
5117
+ tags?: string[] | undefined;
5118
+ handover?: boolean | "false" | "true" | null | undefined;
5119
+ selfAssign?: boolean | "false" | "true" | null | undefined;
5120
+ }>;
5121
+ summary: "Update a mail room by id";
5122
+ method: "PATCH";
5123
+ pathParams: import("zod").ZodObject<{
5124
+ id: import("zod").ZodString;
5125
+ }, "strip", import("zod").ZodTypeAny, {
5126
+ id: string;
5127
+ }, {
5128
+ id: string;
5129
+ }>;
5130
+ responses: {
5131
+ 401: import("zod").ZodObject<{
5132
+ message: import("zod").ZodString;
5133
+ error: import("zod").ZodAny;
5134
+ }, "strip", import("zod").ZodTypeAny, {
5135
+ message: string;
5136
+ error?: any;
5137
+ }, {
5138
+ message: string;
5139
+ error?: any;
5140
+ }>;
5141
+ 404: import("zod").ZodObject<{
5142
+ message: import("zod").ZodString;
5143
+ error: import("zod").ZodAny;
5144
+ }, "strip", import("zod").ZodTypeAny, {
5145
+ message: string;
5146
+ error?: any;
5147
+ }, {
5148
+ message: string;
5149
+ error?: any;
5150
+ }>;
5151
+ 422: import("zod").ZodObject<{
5152
+ message: import("zod").ZodString;
5153
+ error: import("zod").ZodAny;
5154
+ }, "strip", import("zod").ZodTypeAny, {
5155
+ message: string;
5156
+ error?: any;
5157
+ }, {
5158
+ message: string;
5159
+ error?: any;
5160
+ }>;
5161
+ 200: import("zod").ZodObject<{
5162
+ requestId: import("zod").ZodString;
5163
+ data: import("zod").ZodObject<{
5164
+ id: import("zod").ZodString;
5165
+ createdAt: import("zod").ZodDate;
5166
+ updatedAt: import("zod").ZodDate;
5167
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5168
+ subject: import("zod").ZodString;
5169
+ resolved: import("zod").ZodBoolean;
5170
+ assigneeId: import("zod").ZodNullable<import("zod").ZodString>;
5171
+ note: import("zod").ZodString;
5172
+ mailId: import("zod").ZodString;
5173
+ direction: import("zod").ZodString;
5174
+ lastMessageId: import("zod").ZodString;
5175
+ firstMessageId: import("zod").ZodString;
5176
+ from: import("zod").ZodArray<import("zod").ZodObject<{
5177
+ id: import("zod").ZodString;
5178
+ createdAt: import("zod").ZodDate;
5179
+ updatedAt: import("zod").ZodDate;
5180
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5181
+ name: import("zod").ZodString;
5182
+ address: import("zod").ZodString;
5183
+ }, "strip", import("zod").ZodTypeAny, {
5184
+ id: string;
5185
+ address: string;
5186
+ name: string;
5187
+ createdAt: Date;
5188
+ updatedAt: Date;
5189
+ deletedAt: Date | null;
5190
+ }, {
5191
+ id: string;
5192
+ address: string;
5193
+ name: string;
5194
+ createdAt: Date;
5195
+ updatedAt: Date;
5196
+ deletedAt: Date | null;
5197
+ }>, "many">;
5198
+ to: import("zod").ZodArray<import("zod").ZodObject<{
5199
+ id: import("zod").ZodString;
5200
+ createdAt: import("zod").ZodDate;
5201
+ updatedAt: import("zod").ZodDate;
5202
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5203
+ name: import("zod").ZodString;
5204
+ address: import("zod").ZodString;
5205
+ }, "strip", import("zod").ZodTypeAny, {
5206
+ id: string;
5207
+ address: string;
5208
+ name: string;
5209
+ createdAt: Date;
5210
+ updatedAt: Date;
5211
+ deletedAt: Date | null;
5212
+ }, {
5213
+ id: string;
5214
+ address: string;
5215
+ name: string;
5216
+ createdAt: Date;
5217
+ updatedAt: Date;
5218
+ deletedAt: Date | null;
5219
+ }>, "many">;
5220
+ cc: import("zod").ZodArray<import("zod").ZodObject<{
5221
+ id: import("zod").ZodString;
5222
+ createdAt: import("zod").ZodDate;
5223
+ updatedAt: import("zod").ZodDate;
5224
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5225
+ name: import("zod").ZodString;
5226
+ address: import("zod").ZodString;
5227
+ }, "strip", import("zod").ZodTypeAny, {
5228
+ id: string;
5229
+ address: string;
5230
+ name: string;
5231
+ createdAt: Date;
5232
+ updatedAt: Date;
5233
+ deletedAt: Date | null;
5234
+ }, {
5235
+ id: string;
5236
+ address: string;
5237
+ name: string;
5238
+ createdAt: Date;
5239
+ updatedAt: Date;
5240
+ deletedAt: Date | null;
5241
+ }>, "many">;
5242
+ bcc: import("zod").ZodArray<import("zod").ZodObject<{
5243
+ id: import("zod").ZodString;
5244
+ createdAt: import("zod").ZodDate;
5245
+ updatedAt: import("zod").ZodDate;
5246
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5247
+ name: import("zod").ZodString;
5248
+ address: import("zod").ZodString;
5249
+ }, "strip", import("zod").ZodTypeAny, {
5250
+ id: string;
5251
+ address: string;
5252
+ name: string;
5253
+ createdAt: Date;
5254
+ updatedAt: Date;
5255
+ deletedAt: Date | null;
5256
+ }, {
5257
+ id: string;
5258
+ address: string;
5259
+ name: string;
5260
+ createdAt: Date;
5261
+ updatedAt: Date;
5262
+ deletedAt: Date | null;
5263
+ }>, "many">;
5264
+ firstMessage: import("zod").ZodObject<{
5265
+ id: import("zod").ZodString;
5266
+ createdAt: import("zod").ZodDate;
5267
+ updatedAt: import("zod").ZodDate;
5268
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5269
+ roomId: import("zod").ZodString;
5270
+ subject: import("zod").ZodString;
5271
+ textPlain: import("zod").ZodString;
5272
+ textHtml: import("zod").ZodString;
5273
+ textId: import("zod").ZodString;
5274
+ emailEngineEmailId: import("zod").ZodString;
5275
+ emailEngineMessageId: import("zod").ZodString;
5276
+ emailEngineReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
5277
+ direction: import("zod").ZodString;
5278
+ date: import("zod").ZodDate;
5279
+ action: import("zod").ZodString;
5280
+ unseen: import("zod").ZodBoolean;
5281
+ seemsLikeNew: import("zod").ZodBoolean;
5282
+ from: import("zod").ZodArray<import("zod").ZodObject<{
5283
+ id: import("zod").ZodString;
5284
+ createdAt: import("zod").ZodDate;
5285
+ updatedAt: import("zod").ZodDate;
5286
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5287
+ name: import("zod").ZodString;
5288
+ address: import("zod").ZodString;
5289
+ }, "strip", import("zod").ZodTypeAny, {
5290
+ id: string;
5291
+ address: string;
5292
+ name: string;
5293
+ createdAt: Date;
5294
+ updatedAt: Date;
5295
+ deletedAt: Date | null;
5296
+ }, {
5297
+ id: string;
5298
+ address: string;
5299
+ name: string;
5300
+ createdAt: Date;
5301
+ updatedAt: Date;
5302
+ deletedAt: Date | null;
5303
+ }>, "many">;
5304
+ to: import("zod").ZodArray<import("zod").ZodObject<{
5305
+ id: import("zod").ZodString;
5306
+ createdAt: import("zod").ZodDate;
5307
+ updatedAt: import("zod").ZodDate;
5308
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5309
+ name: import("zod").ZodString;
5310
+ address: import("zod").ZodString;
5311
+ }, "strip", import("zod").ZodTypeAny, {
5312
+ id: string;
5313
+ address: string;
5314
+ name: string;
5315
+ createdAt: Date;
5316
+ updatedAt: Date;
5317
+ deletedAt: Date | null;
5318
+ }, {
5319
+ id: string;
5320
+ address: string;
5321
+ name: string;
5322
+ createdAt: Date;
5323
+ updatedAt: Date;
5324
+ deletedAt: Date | null;
5325
+ }>, "many">;
5326
+ cc: import("zod").ZodArray<import("zod").ZodObject<{
5327
+ id: import("zod").ZodString;
5328
+ createdAt: import("zod").ZodDate;
5329
+ updatedAt: import("zod").ZodDate;
5330
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5331
+ name: import("zod").ZodString;
5332
+ address: import("zod").ZodString;
5333
+ }, "strip", import("zod").ZodTypeAny, {
5334
+ id: string;
5335
+ address: string;
5336
+ name: string;
5337
+ createdAt: Date;
5338
+ updatedAt: Date;
5339
+ deletedAt: Date | null;
5340
+ }, {
5341
+ id: string;
5342
+ address: string;
5343
+ name: string;
5344
+ createdAt: Date;
5345
+ updatedAt: Date;
5346
+ deletedAt: Date | null;
5347
+ }>, "many">;
5348
+ bcc: import("zod").ZodArray<import("zod").ZodObject<{
5349
+ id: import("zod").ZodString;
5350
+ createdAt: import("zod").ZodDate;
5351
+ updatedAt: import("zod").ZodDate;
5352
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5353
+ name: import("zod").ZodString;
5354
+ address: import("zod").ZodString;
5355
+ }, "strip", import("zod").ZodTypeAny, {
5356
+ id: string;
5357
+ address: string;
5358
+ name: string;
5359
+ createdAt: Date;
5360
+ updatedAt: Date;
5361
+ deletedAt: Date | null;
5362
+ }, {
5363
+ id: string;
5364
+ address: string;
5365
+ name: string;
5366
+ createdAt: Date;
5367
+ updatedAt: Date;
5368
+ deletedAt: Date | null;
5369
+ }>, "many">;
5370
+ attachments: import("zod").ZodArray<import("zod").ZodObject<{
5371
+ id: import("zod").ZodString;
5372
+ createdAt: import("zod").ZodDate;
5373
+ updatedAt: import("zod").ZodDate;
5374
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5375
+ roomId: import("zod").ZodString;
5376
+ messageId: import("zod").ZodString;
5377
+ fileName: import("zod").ZodString;
5378
+ fileType: import("zod").ZodString;
5379
+ emailEngineAttachmentId: import("zod").ZodString;
5380
+ uploadId: import("zod").ZodString;
5381
+ upload: import("zod").ZodObject<{
5382
+ id: import("zod").ZodString;
5383
+ createdAt: import("zod").ZodDate;
5384
+ updatedAt: import("zod").ZodDate;
5385
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5386
+ bucketName: import("zod").ZodString;
5387
+ fileName: import("zod").ZodString;
5388
+ fileKey: import("zod").ZodString;
5389
+ fileSize: import("zod").ZodNumber;
5390
+ fileUrl: import("zod").ZodString;
5391
+ extensionName: import("zod").ZodString;
5392
+ }, "strip", import("zod").ZodTypeAny, {
5393
+ id: string;
5394
+ createdAt: Date;
5395
+ updatedAt: Date;
5396
+ deletedAt: Date | null;
5397
+ extensionName: string;
5398
+ fileName: string;
5399
+ fileKey: string;
5400
+ bucketName: string;
5401
+ fileSize: number;
5402
+ fileUrl: string;
5403
+ }, {
5404
+ id: string;
5405
+ createdAt: Date;
5406
+ updatedAt: Date;
5407
+ deletedAt: Date | null;
5408
+ extensionName: string;
5409
+ fileName: string;
5410
+ fileKey: string;
5411
+ bucketName: string;
5412
+ fileSize: number;
5413
+ fileUrl: string;
5414
+ }>;
5415
+ }, "strip", import("zod").ZodTypeAny, {
5416
+ id: string;
5417
+ createdAt: Date;
5418
+ updatedAt: Date;
5419
+ deletedAt: Date | null;
5420
+ fileName: string;
5421
+ fileType: string;
5422
+ uploadId: string;
5423
+ upload: {
5424
+ id: string;
5425
+ createdAt: Date;
5426
+ updatedAt: Date;
5427
+ deletedAt: Date | null;
5428
+ extensionName: string;
5429
+ fileName: string;
5430
+ fileKey: string;
5431
+ bucketName: string;
5432
+ fileSize: number;
5433
+ fileUrl: string;
5434
+ };
5435
+ roomId: string;
5436
+ messageId: string;
5437
+ emailEngineAttachmentId: string;
5438
+ }, {
5439
+ id: string;
5440
+ createdAt: Date;
5441
+ updatedAt: Date;
5442
+ deletedAt: Date | null;
5443
+ fileName: string;
5444
+ fileType: string;
5445
+ uploadId: string;
5446
+ upload: {
5447
+ id: string;
5448
+ createdAt: Date;
5449
+ updatedAt: Date;
5450
+ deletedAt: Date | null;
5451
+ extensionName: string;
5452
+ fileName: string;
5453
+ fileKey: string;
5454
+ bucketName: string;
5455
+ fileSize: number;
5456
+ fileUrl: string;
5457
+ };
5458
+ roomId: string;
5459
+ messageId: string;
5460
+ emailEngineAttachmentId: string;
5461
+ }>, "many">;
5462
+ }, "strip", import("zod").ZodTypeAny, {
5463
+ id: string;
5464
+ direction: string;
5465
+ action: string;
5466
+ date: Date;
5467
+ createdAt: Date;
5468
+ updatedAt: Date;
5469
+ deletedAt: Date | null;
5470
+ roomId: string;
5471
+ subject: string;
5472
+ textPlain: string;
5473
+ textHtml: string;
5474
+ textId: string;
5475
+ emailEngineEmailId: string;
5476
+ emailEngineMessageId: string;
5477
+ emailEngineReplyTo: string | null;
5478
+ unseen: boolean;
5479
+ seemsLikeNew: boolean;
5480
+ from: {
5481
+ id: string;
5482
+ address: string;
5483
+ name: string;
5484
+ createdAt: Date;
5485
+ updatedAt: Date;
5486
+ deletedAt: Date | null;
5487
+ }[];
5488
+ to: {
5489
+ id: string;
5490
+ address: string;
5491
+ name: string;
5492
+ createdAt: Date;
5493
+ updatedAt: Date;
5494
+ deletedAt: Date | null;
5495
+ }[];
5496
+ cc: {
5497
+ id: string;
5498
+ address: string;
5499
+ name: string;
5500
+ createdAt: Date;
5501
+ updatedAt: Date;
5502
+ deletedAt: Date | null;
5503
+ }[];
5504
+ bcc: {
5505
+ id: string;
5506
+ address: string;
5507
+ name: string;
5508
+ createdAt: Date;
5509
+ updatedAt: Date;
5510
+ deletedAt: Date | null;
5511
+ }[];
5512
+ attachments: {
5513
+ id: string;
5514
+ createdAt: Date;
5515
+ updatedAt: Date;
5516
+ deletedAt: Date | null;
5517
+ fileName: string;
5518
+ fileType: string;
5519
+ uploadId: string;
5520
+ upload: {
5521
+ id: string;
5522
+ createdAt: Date;
5523
+ updatedAt: Date;
5524
+ deletedAt: Date | null;
5525
+ extensionName: string;
5526
+ fileName: string;
5527
+ fileKey: string;
5528
+ bucketName: string;
5529
+ fileSize: number;
5530
+ fileUrl: string;
5531
+ };
5532
+ roomId: string;
5533
+ messageId: string;
5534
+ emailEngineAttachmentId: string;
5535
+ }[];
5536
+ }, {
5537
+ id: string;
5538
+ direction: string;
5539
+ action: string;
5540
+ date: Date;
5541
+ createdAt: Date;
5542
+ updatedAt: Date;
5543
+ deletedAt: Date | null;
5544
+ roomId: string;
5545
+ subject: string;
5546
+ textPlain: string;
5547
+ textHtml: string;
5548
+ textId: string;
5549
+ emailEngineEmailId: string;
5550
+ emailEngineMessageId: string;
5551
+ emailEngineReplyTo: string | null;
5552
+ unseen: boolean;
5553
+ seemsLikeNew: boolean;
5554
+ from: {
5555
+ id: string;
5556
+ address: string;
5557
+ name: string;
5558
+ createdAt: Date;
5559
+ updatedAt: Date;
5560
+ deletedAt: Date | null;
5561
+ }[];
5562
+ to: {
5563
+ id: string;
5564
+ address: string;
5565
+ name: string;
5566
+ createdAt: Date;
5567
+ updatedAt: Date;
5568
+ deletedAt: Date | null;
5569
+ }[];
5570
+ cc: {
5571
+ id: string;
5572
+ address: string;
5573
+ name: string;
5574
+ createdAt: Date;
5575
+ updatedAt: Date;
5576
+ deletedAt: Date | null;
5577
+ }[];
5578
+ bcc: {
5579
+ id: string;
5580
+ address: string;
5581
+ name: string;
5582
+ createdAt: Date;
5583
+ updatedAt: Date;
5584
+ deletedAt: Date | null;
5585
+ }[];
5586
+ attachments: {
5587
+ id: string;
5588
+ createdAt: Date;
5589
+ updatedAt: Date;
5590
+ deletedAt: Date | null;
5591
+ fileName: string;
5592
+ fileType: string;
5593
+ uploadId: string;
5594
+ upload: {
5595
+ id: string;
5596
+ createdAt: Date;
5597
+ updatedAt: Date;
5598
+ deletedAt: Date | null;
5599
+ extensionName: string;
5600
+ fileName: string;
5601
+ fileKey: string;
5602
+ bucketName: string;
5603
+ fileSize: number;
5604
+ fileUrl: string;
5605
+ };
5606
+ roomId: string;
5607
+ messageId: string;
5608
+ emailEngineAttachmentId: string;
5609
+ }[];
5610
+ }>;
5611
+ lastMessage: import("zod").ZodObject<{
5612
+ id: import("zod").ZodString;
5613
+ createdAt: import("zod").ZodDate;
5614
+ updatedAt: import("zod").ZodDate;
5615
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5616
+ roomId: import("zod").ZodString;
5617
+ subject: import("zod").ZodString;
5618
+ textPlain: import("zod").ZodString;
5619
+ textHtml: import("zod").ZodString;
5620
+ textId: import("zod").ZodString;
5621
+ emailEngineEmailId: import("zod").ZodString;
5622
+ emailEngineMessageId: import("zod").ZodString;
5623
+ emailEngineReplyTo: import("zod").ZodNullable<import("zod").ZodString>;
5624
+ direction: import("zod").ZodString;
5625
+ date: import("zod").ZodDate;
5626
+ action: import("zod").ZodString;
5627
+ unseen: import("zod").ZodBoolean;
5628
+ seemsLikeNew: import("zod").ZodBoolean;
5629
+ from: import("zod").ZodArray<import("zod").ZodObject<{
5630
+ id: import("zod").ZodString;
5631
+ createdAt: import("zod").ZodDate;
5632
+ updatedAt: import("zod").ZodDate;
5633
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5634
+ name: import("zod").ZodString;
5635
+ address: import("zod").ZodString;
5636
+ }, "strip", import("zod").ZodTypeAny, {
5637
+ id: string;
5638
+ address: string;
5639
+ name: string;
5640
+ createdAt: Date;
5641
+ updatedAt: Date;
5642
+ deletedAt: Date | null;
5643
+ }, {
5644
+ id: string;
5645
+ address: string;
5646
+ name: string;
5647
+ createdAt: Date;
5648
+ updatedAt: Date;
5649
+ deletedAt: Date | null;
5650
+ }>, "many">;
5651
+ to: import("zod").ZodArray<import("zod").ZodObject<{
5652
+ id: import("zod").ZodString;
5653
+ createdAt: import("zod").ZodDate;
5654
+ updatedAt: import("zod").ZodDate;
5655
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5656
+ name: import("zod").ZodString;
5657
+ address: import("zod").ZodString;
5658
+ }, "strip", import("zod").ZodTypeAny, {
5659
+ id: string;
5660
+ address: string;
5661
+ name: string;
5662
+ createdAt: Date;
5663
+ updatedAt: Date;
5664
+ deletedAt: Date | null;
5665
+ }, {
5666
+ id: string;
5667
+ address: string;
5668
+ name: string;
5669
+ createdAt: Date;
5670
+ updatedAt: Date;
5671
+ deletedAt: Date | null;
5672
+ }>, "many">;
5673
+ cc: import("zod").ZodArray<import("zod").ZodObject<{
5674
+ id: import("zod").ZodString;
5675
+ createdAt: import("zod").ZodDate;
5676
+ updatedAt: import("zod").ZodDate;
5677
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5678
+ name: import("zod").ZodString;
5679
+ address: import("zod").ZodString;
5680
+ }, "strip", import("zod").ZodTypeAny, {
5681
+ id: string;
5682
+ address: string;
5683
+ name: string;
5684
+ createdAt: Date;
5685
+ updatedAt: Date;
5686
+ deletedAt: Date | null;
5687
+ }, {
5688
+ id: string;
5689
+ address: string;
5690
+ name: string;
5691
+ createdAt: Date;
5692
+ updatedAt: Date;
5693
+ deletedAt: Date | null;
5694
+ }>, "many">;
5695
+ bcc: import("zod").ZodArray<import("zod").ZodObject<{
5696
+ id: import("zod").ZodString;
5697
+ createdAt: import("zod").ZodDate;
5698
+ updatedAt: import("zod").ZodDate;
5699
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
5700
+ name: import("zod").ZodString;
5701
+ address: import("zod").ZodString;
5702
+ }, "strip", import("zod").ZodTypeAny, {
5703
+ id: string;
5704
+ address: string;
5705
+ name: string;
5706
+ createdAt: Date;
5707
+ updatedAt: Date;
5708
+ deletedAt: Date | null;
5709
+ }, {
5710
+ id: string;
5711
+ address: string;
5712
+ name: string;
4677
5713
  createdAt: Date;
4678
5714
  updatedAt: Date;
4679
5715
  deletedAt: Date | null;
@@ -5848,6 +6884,150 @@ export declare const apiContract: {
5848
6884
  };
5849
6885
  }>;
5850
6886
  unReadMessageCount: import("zod").ZodNumber;
6887
+ cxlog: import("zod").ZodObject<{
6888
+ id: import("zod").ZodString;
6889
+ createdAt: import("zod").ZodDate;
6890
+ updatedAt: import("zod").ZodDate;
6891
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
6892
+ caseId: import("zod").ZodNumber;
6893
+ entityId: import("zod").ZodString;
6894
+ entityName: import("zod").ZodString;
6895
+ contactId: import("zod").ZodNullable<import("zod").ZodString>;
6896
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
6897
+ queueId: import("zod").ZodNullable<import("zod").ZodString>;
6898
+ agentId: import("zod").ZodNullable<import("zod").ZodString>;
6899
+ direction: import("zod").ZodNullable<import("zod").ZodString>;
6900
+ startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
6901
+ handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
6902
+ firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
6903
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
6904
+ id: import("zod").ZodString;
6905
+ createdAt: import("zod").ZodDate;
6906
+ updatedAt: import("zod").ZodDate;
6907
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
6908
+ note: import("zod").ZodNullable<import("zod").ZodString>;
6909
+ disposition: import("zod").ZodNullable<import("zod").ZodString>;
6910
+ callFrom: import("zod").ZodNullable<import("zod").ZodString>;
6911
+ callTo: import("zod").ZodNullable<import("zod").ZodString>;
6912
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
6913
+ id: import("zod").ZodString;
6914
+ createdAt: import("zod").ZodDate;
6915
+ updatedAt: import("zod").ZodDate;
6916
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
6917
+ name: import("zod").ZodString;
6918
+ }, "strip", import("zod").ZodTypeAny, {
6919
+ id: string;
6920
+ name: string;
6921
+ createdAt: Date;
6922
+ updatedAt: Date;
6923
+ deletedAt: Date | null;
6924
+ }, {
6925
+ id: string;
6926
+ name: string;
6927
+ createdAt: Date;
6928
+ updatedAt: Date;
6929
+ deletedAt: Date | null;
6930
+ }>, "many">;
6931
+ }, "strip", import("zod").ZodTypeAny, {
6932
+ id: string;
6933
+ disposition: string | null;
6934
+ createdAt: Date;
6935
+ updatedAt: Date;
6936
+ deletedAt: Date | null;
6937
+ tags: {
6938
+ id: string;
6939
+ name: string;
6940
+ createdAt: Date;
6941
+ updatedAt: Date;
6942
+ deletedAt: Date | null;
6943
+ }[];
6944
+ callFrom: string | null;
6945
+ callTo: string | null;
6946
+ note: string | null;
6947
+ }, {
6948
+ id: string;
6949
+ disposition: string | null;
6950
+ createdAt: Date;
6951
+ updatedAt: Date;
6952
+ deletedAt: Date | null;
6953
+ tags: {
6954
+ id: string;
6955
+ name: string;
6956
+ createdAt: Date;
6957
+ updatedAt: Date;
6958
+ deletedAt: Date | null;
6959
+ }[];
6960
+ callFrom: string | null;
6961
+ callTo: string | null;
6962
+ note: string | null;
6963
+ }>>;
6964
+ }, "strip", import("zod").ZodTypeAny, {
6965
+ id: string;
6966
+ channel: string | null;
6967
+ direction: string | null;
6968
+ createdAt: Date;
6969
+ updatedAt: Date;
6970
+ deletedAt: Date | null;
6971
+ entityId: string;
6972
+ queueId: string | null;
6973
+ contactId: string | null;
6974
+ caseId: number;
6975
+ entityName: string;
6976
+ agentId: string | null;
6977
+ startedDate: Date | null;
6978
+ handledTime: number | null;
6979
+ firstResponseTime: number | null;
6980
+ wrapUpForm: {
6981
+ id: string;
6982
+ disposition: string | null;
6983
+ createdAt: Date;
6984
+ updatedAt: Date;
6985
+ deletedAt: Date | null;
6986
+ tags: {
6987
+ id: string;
6988
+ name: string;
6989
+ createdAt: Date;
6990
+ updatedAt: Date;
6991
+ deletedAt: Date | null;
6992
+ }[];
6993
+ callFrom: string | null;
6994
+ callTo: string | null;
6995
+ note: string | null;
6996
+ } | null;
6997
+ }, {
6998
+ id: string;
6999
+ channel: string | null;
7000
+ direction: string | null;
7001
+ createdAt: Date;
7002
+ updatedAt: Date;
7003
+ deletedAt: Date | null;
7004
+ entityId: string;
7005
+ queueId: string | null;
7006
+ contactId: string | null;
7007
+ caseId: number;
7008
+ entityName: string;
7009
+ agentId: string | null;
7010
+ startedDate: Date | null;
7011
+ handledTime: number | null;
7012
+ firstResponseTime: number | null;
7013
+ wrapUpForm: {
7014
+ id: string;
7015
+ disposition: string | null;
7016
+ createdAt: Date;
7017
+ updatedAt: Date;
7018
+ deletedAt: Date | null;
7019
+ tags: {
7020
+ id: string;
7021
+ name: string;
7022
+ createdAt: Date;
7023
+ updatedAt: Date;
7024
+ deletedAt: Date | null;
7025
+ }[];
7026
+ callFrom: string | null;
7027
+ callTo: string | null;
7028
+ note: string | null;
7029
+ } | null;
7030
+ }>;
5851
7031
  }, "strip", import("zod").ZodTypeAny, {
5852
7032
  id: string;
5853
7033
  direction: string;
@@ -5950,6 +7130,40 @@ export declare const apiContract: {
5950
7130
  notificationCount: number | null;
5951
7131
  };
5952
7132
  resolved: boolean;
7133
+ cxlog: {
7134
+ id: string;
7135
+ channel: string | null;
7136
+ direction: string | null;
7137
+ createdAt: Date;
7138
+ updatedAt: Date;
7139
+ deletedAt: Date | null;
7140
+ entityId: string;
7141
+ queueId: string | null;
7142
+ contactId: string | null;
7143
+ caseId: number;
7144
+ entityName: string;
7145
+ agentId: string | null;
7146
+ startedDate: Date | null;
7147
+ handledTime: number | null;
7148
+ firstResponseTime: number | null;
7149
+ wrapUpForm: {
7150
+ id: string;
7151
+ disposition: string | null;
7152
+ createdAt: Date;
7153
+ updatedAt: Date;
7154
+ deletedAt: Date | null;
7155
+ tags: {
7156
+ id: string;
7157
+ name: string;
7158
+ createdAt: Date;
7159
+ updatedAt: Date;
7160
+ deletedAt: Date | null;
7161
+ }[];
7162
+ callFrom: string | null;
7163
+ callTo: string | null;
7164
+ note: string | null;
7165
+ } | null;
7166
+ };
5953
7167
  assigneeId: string | null;
5954
7168
  subject: string;
5955
7169
  from: {
@@ -6360,6 +7574,40 @@ export declare const apiContract: {
6360
7574
  notificationCount: number | null;
6361
7575
  };
6362
7576
  resolved: boolean;
7577
+ cxlog: {
7578
+ id: string;
7579
+ channel: string | null;
7580
+ direction: string | null;
7581
+ createdAt: Date;
7582
+ updatedAt: Date;
7583
+ deletedAt: Date | null;
7584
+ entityId: string;
7585
+ queueId: string | null;
7586
+ contactId: string | null;
7587
+ caseId: number;
7588
+ entityName: string;
7589
+ agentId: string | null;
7590
+ startedDate: Date | null;
7591
+ handledTime: number | null;
7592
+ firstResponseTime: number | null;
7593
+ wrapUpForm: {
7594
+ id: string;
7595
+ disposition: string | null;
7596
+ createdAt: Date;
7597
+ updatedAt: Date;
7598
+ deletedAt: Date | null;
7599
+ tags: {
7600
+ id: string;
7601
+ name: string;
7602
+ createdAt: Date;
7603
+ updatedAt: Date;
7604
+ deletedAt: Date | null;
7605
+ }[];
7606
+ callFrom: string | null;
7607
+ callTo: string | null;
7608
+ note: string | null;
7609
+ } | null;
7610
+ };
6363
7611
  assigneeId: string | null;
6364
7612
  subject: string;
6365
7613
  from: {
@@ -6772,6 +8020,40 @@ export declare const apiContract: {
6772
8020
  notificationCount: number | null;
6773
8021
  };
6774
8022
  resolved: boolean;
8023
+ cxlog: {
8024
+ id: string;
8025
+ channel: string | null;
8026
+ direction: string | null;
8027
+ createdAt: Date;
8028
+ updatedAt: Date;
8029
+ deletedAt: Date | null;
8030
+ entityId: string;
8031
+ queueId: string | null;
8032
+ contactId: string | null;
8033
+ caseId: number;
8034
+ entityName: string;
8035
+ agentId: string | null;
8036
+ startedDate: Date | null;
8037
+ handledTime: number | null;
8038
+ firstResponseTime: number | null;
8039
+ wrapUpForm: {
8040
+ id: string;
8041
+ disposition: string | null;
8042
+ createdAt: Date;
8043
+ updatedAt: Date;
8044
+ deletedAt: Date | null;
8045
+ tags: {
8046
+ id: string;
8047
+ name: string;
8048
+ createdAt: Date;
8049
+ updatedAt: Date;
8050
+ deletedAt: Date | null;
8051
+ }[];
8052
+ callFrom: string | null;
8053
+ callTo: string | null;
8054
+ note: string | null;
8055
+ } | null;
8056
+ };
6775
8057
  assigneeId: string | null;
6776
8058
  subject: string;
6777
8059
  from: {
@@ -7185,6 +8467,40 @@ export declare const apiContract: {
7185
8467
  notificationCount: number | null;
7186
8468
  };
7187
8469
  resolved: boolean;
8470
+ cxlog: {
8471
+ id: string;
8472
+ channel: string | null;
8473
+ direction: string | null;
8474
+ createdAt: Date;
8475
+ updatedAt: Date;
8476
+ deletedAt: Date | null;
8477
+ entityId: string;
8478
+ queueId: string | null;
8479
+ contactId: string | null;
8480
+ caseId: number;
8481
+ entityName: string;
8482
+ agentId: string | null;
8483
+ startedDate: Date | null;
8484
+ handledTime: number | null;
8485
+ firstResponseTime: number | null;
8486
+ wrapUpForm: {
8487
+ id: string;
8488
+ disposition: string | null;
8489
+ createdAt: Date;
8490
+ updatedAt: Date;
8491
+ deletedAt: Date | null;
8492
+ tags: {
8493
+ id: string;
8494
+ name: string;
8495
+ createdAt: Date;
8496
+ updatedAt: Date;
8497
+ deletedAt: Date | null;
8498
+ }[];
8499
+ callFrom: string | null;
8500
+ callTo: string | null;
8501
+ note: string | null;
8502
+ } | null;
8503
+ };
7188
8504
  assigneeId: string | null;
7189
8505
  subject: string;
7190
8506
  from: {
@@ -7499,187 +8815,16 @@ export declare const apiContract: {
7499
8815
  };
7500
8816
  path: "mail/room/:id";
7501
8817
  };
7502
- getAttachments: {
7503
- summary: "Get all the attachments of a room";
7504
- method: "GET";
7505
- pathParams: import("zod").ZodObject<{
7506
- id: import("zod").ZodString;
7507
- }, "strip", import("zod").ZodTypeAny, {
7508
- id: string;
7509
- }, {
7510
- id: string;
7511
- }>;
7512
- responses: {
7513
- 401: import("zod").ZodObject<{
7514
- message: import("zod").ZodString;
7515
- error: import("zod").ZodAny;
7516
- }, "strip", import("zod").ZodTypeAny, {
7517
- message: string;
7518
- error?: any;
7519
- }, {
7520
- message: string;
7521
- error?: any;
7522
- }>;
7523
- 404: import("zod").ZodObject<{
7524
- message: import("zod").ZodString;
7525
- error: import("zod").ZodAny;
7526
- }, "strip", import("zod").ZodTypeAny, {
7527
- message: string;
7528
- error?: any;
7529
- }, {
7530
- message: string;
7531
- error?: any;
7532
- }>;
7533
- 422: import("zod").ZodObject<{
7534
- message: import("zod").ZodString;
7535
- error: import("zod").ZodAny;
7536
- }, "strip", import("zod").ZodTypeAny, {
7537
- message: string;
7538
- error?: any;
7539
- }, {
7540
- message: string;
7541
- error?: any;
7542
- }>;
7543
- 200: import("zod").ZodObject<{
7544
- requestId: import("zod").ZodString;
7545
- data: import("zod").ZodArray<import("zod").ZodObject<{
7546
- fileName: import("zod").ZodString;
7547
- fileType: import("zod").ZodString;
7548
- emailEngineAttachmentId: import("zod").ZodString;
7549
- uploadId: import("zod").ZodString;
7550
- messageId: import("zod").ZodString;
7551
- roomId: import("zod").ZodString;
7552
- upload: import("zod").ZodObject<{
7553
- id: import("zod").ZodString;
7554
- createdAt: import("zod").ZodDate;
7555
- updatedAt: import("zod").ZodDate;
7556
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
7557
- bucketName: import("zod").ZodString;
7558
- fileName: import("zod").ZodString;
7559
- fileSize: import("zod").ZodNumber;
7560
- fileKey: import("zod").ZodString;
7561
- fileUrl: import("zod").ZodNullable<import("zod").ZodString>;
7562
- status: import("zod").ZodOptional<import("zod").ZodString>;
7563
- }, "strip", import("zod").ZodTypeAny, {
7564
- id: string;
7565
- createdAt: Date;
7566
- updatedAt: Date;
7567
- deletedAt: Date | null;
7568
- fileName: string;
7569
- fileKey: string;
7570
- bucketName: string;
7571
- fileSize: number;
7572
- fileUrl: string | null;
7573
- status?: string | undefined;
7574
- }, {
7575
- id: string;
7576
- createdAt: Date;
7577
- updatedAt: Date;
7578
- deletedAt: Date | null;
7579
- fileName: string;
7580
- fileKey: string;
7581
- bucketName: string;
7582
- fileSize: number;
7583
- fileUrl: string | null;
7584
- status?: string | undefined;
7585
- }>;
7586
- }, "strip", import("zod").ZodTypeAny, {
7587
- fileName: string;
7588
- fileType: string;
7589
- uploadId: string;
7590
- upload: {
7591
- id: string;
7592
- createdAt: Date;
7593
- updatedAt: Date;
7594
- deletedAt: Date | null;
7595
- fileName: string;
7596
- fileKey: string;
7597
- bucketName: string;
7598
- fileSize: number;
7599
- fileUrl: string | null;
7600
- status?: string | undefined;
7601
- };
7602
- roomId: string;
7603
- messageId: string;
7604
- emailEngineAttachmentId: string;
7605
- }, {
7606
- fileName: string;
7607
- fileType: string;
7608
- uploadId: string;
7609
- upload: {
7610
- id: string;
7611
- createdAt: Date;
7612
- updatedAt: Date;
7613
- deletedAt: Date | null;
7614
- fileName: string;
7615
- fileKey: string;
7616
- bucketName: string;
7617
- fileSize: number;
7618
- fileUrl: string | null;
7619
- status?: string | undefined;
7620
- };
7621
- roomId: string;
7622
- messageId: string;
7623
- emailEngineAttachmentId: string;
7624
- }>, "many">;
7625
- }, "strip", import("zod").ZodTypeAny, {
7626
- data: {
7627
- fileName: string;
7628
- fileType: string;
7629
- uploadId: string;
7630
- upload: {
7631
- id: string;
7632
- createdAt: Date;
7633
- updatedAt: Date;
7634
- deletedAt: Date | null;
7635
- fileName: string;
7636
- fileKey: string;
7637
- bucketName: string;
7638
- fileSize: number;
7639
- fileUrl: string | null;
7640
- status?: string | undefined;
7641
- };
7642
- roomId: string;
7643
- messageId: string;
7644
- emailEngineAttachmentId: string;
7645
- }[];
7646
- requestId: string;
7647
- }, {
7648
- data: {
7649
- fileName: string;
7650
- fileType: string;
7651
- uploadId: string;
7652
- upload: {
7653
- id: string;
7654
- createdAt: Date;
7655
- updatedAt: Date;
7656
- deletedAt: Date | null;
7657
- fileName: string;
7658
- fileKey: string;
7659
- bucketName: string;
7660
- fileSize: number;
7661
- fileUrl: string | null;
7662
- status?: string | undefined;
7663
- };
7664
- roomId: string;
7665
- messageId: string;
7666
- emailEngineAttachmentId: string;
7667
- }[];
7668
- requestId: string;
7669
- }>;
7670
- };
7671
- path: "mail/room/:id/attachments";
7672
- };
7673
- getParticipants: {
7674
- summary: "Get all the attachments of a room";
7675
- method: "GET";
7676
- pathParams: import("zod").ZodObject<{
8818
+ markAsRead: {
8819
+ body: import("zod").ZodObject<{
7677
8820
  id: import("zod").ZodString;
7678
8821
  }, "strip", import("zod").ZodTypeAny, {
7679
8822
  id: string;
7680
8823
  }, {
7681
8824
  id: string;
7682
8825
  }>;
8826
+ summary: "Mark all the unread messages of a room as read";
8827
+ method: "POST";
7683
8828
  responses: {
7684
8829
  401: import("zod").ZodObject<{
7685
8830
  message: import("zod").ZodString;
@@ -7713,77 +8858,20 @@ export declare const apiContract: {
7713
8858
  }>;
7714
8859
  200: import("zod").ZodObject<{
7715
8860
  requestId: import("zod").ZodString;
7716
- data: import("zod").ZodArray<import("zod").ZodObject<{
7717
- id: import("zod").ZodString;
7718
- createdAt: import("zod").ZodDate;
7719
- updatedAt: import("zod").ZodDate;
7720
- deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
7721
- name: import("zod").ZodString;
7722
- address: import("zod").ZodString;
7723
- }, "strip", import("zod").ZodTypeAny, {
7724
- id: string;
7725
- address: string;
7726
- name: string;
7727
- createdAt: Date;
7728
- updatedAt: Date;
7729
- deletedAt: Date | null;
7730
- }, {
7731
- id: string;
7732
- address: string;
7733
- name: string;
7734
- createdAt: Date;
7735
- updatedAt: Date;
7736
- deletedAt: Date | null;
7737
- }>, "many">;
8861
+ message: import("zod").ZodString;
7738
8862
  }, "strip", import("zod").ZodTypeAny, {
7739
- data: {
7740
- id: string;
7741
- address: string;
7742
- name: string;
7743
- createdAt: Date;
7744
- updatedAt: Date;
7745
- deletedAt: Date | null;
7746
- }[];
8863
+ message: string;
7747
8864
  requestId: string;
7748
8865
  }, {
7749
- data: {
7750
- id: string;
7751
- address: string;
7752
- name: string;
7753
- createdAt: Date;
7754
- updatedAt: Date;
7755
- deletedAt: Date | null;
7756
- }[];
8866
+ message: string;
7757
8867
  requestId: string;
7758
8868
  }>;
7759
8869
  };
7760
- path: "mail/room/:id/participants";
8870
+ path: "mail/room/mark_as_read";
7761
8871
  };
7762
- update: {
7763
- body: import("zod").ZodObject<{
7764
- resolved: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
7765
- assigneeId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
7766
- note: import("zod").ZodOptional<import("zod").ZodString>;
7767
- tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
7768
- handover: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
7769
- selfAssign: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodBoolean, import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodLiteral<"true">, import("zod").ZodLiteral<"false">]>, boolean, "false" | "true">]>>>;
7770
- }, "strip", import("zod").ZodTypeAny, {
7771
- resolved?: boolean | null | undefined;
7772
- assigneeId?: string | null | undefined;
7773
- note?: string | undefined;
7774
- tags?: string[] | undefined;
7775
- handover?: boolean | null | undefined;
7776
- selfAssign?: boolean | null | undefined;
7777
- }, {
7778
- resolved?: boolean | "false" | "true" | null | undefined;
7779
- assigneeId?: string | null | undefined;
7780
- note?: string | undefined;
7781
- tags?: string[] | undefined;
7782
- handover?: boolean | "false" | "true" | null | undefined;
7783
- selfAssign?: boolean | "false" | "true" | null | undefined;
7784
- }>;
7785
- summary: "Update a mail room by id";
7786
- method: "PATCH";
8872
+ getById: {
8873
+ summary: "Get a mail room by id";
8874
+ method: "GET";
7787
8875
  pathParams: import("zod").ZodObject<{
7788
8876
  id: import("zod").ZodString;
7789
8877
  }, "strip", import("zod").ZodTypeAny, {
@@ -9548,6 +10636,150 @@ export declare const apiContract: {
9548
10636
  };
9549
10637
  }>;
9550
10638
  unReadMessageCount: import("zod").ZodNumber;
10639
+ cxlog: import("zod").ZodObject<{
10640
+ id: import("zod").ZodString;
10641
+ createdAt: import("zod").ZodDate;
10642
+ updatedAt: import("zod").ZodDate;
10643
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
10644
+ caseId: import("zod").ZodNumber;
10645
+ entityId: import("zod").ZodString;
10646
+ entityName: import("zod").ZodString;
10647
+ contactId: import("zod").ZodNullable<import("zod").ZodString>;
10648
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
10649
+ queueId: import("zod").ZodNullable<import("zod").ZodString>;
10650
+ agentId: import("zod").ZodNullable<import("zod").ZodString>;
10651
+ direction: import("zod").ZodNullable<import("zod").ZodString>;
10652
+ startedDate: import("zod").ZodNullable<import("zod").ZodDate>;
10653
+ handledTime: import("zod").ZodNullable<import("zod").ZodNumber>;
10654
+ firstResponseTime: import("zod").ZodNullable<import("zod").ZodNumber>;
10655
+ wrapUpForm: import("zod").ZodNullable<import("zod").ZodObject<{
10656
+ id: import("zod").ZodString;
10657
+ createdAt: import("zod").ZodDate;
10658
+ updatedAt: import("zod").ZodDate;
10659
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
10660
+ note: import("zod").ZodNullable<import("zod").ZodString>;
10661
+ disposition: import("zod").ZodNullable<import("zod").ZodString>;
10662
+ callFrom: import("zod").ZodNullable<import("zod").ZodString>;
10663
+ callTo: import("zod").ZodNullable<import("zod").ZodString>;
10664
+ tags: import("zod").ZodArray<import("zod").ZodObject<{
10665
+ id: import("zod").ZodString;
10666
+ createdAt: import("zod").ZodDate;
10667
+ updatedAt: import("zod").ZodDate;
10668
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
10669
+ name: import("zod").ZodString;
10670
+ }, "strip", import("zod").ZodTypeAny, {
10671
+ id: string;
10672
+ name: string;
10673
+ createdAt: Date;
10674
+ updatedAt: Date;
10675
+ deletedAt: Date | null;
10676
+ }, {
10677
+ id: string;
10678
+ name: string;
10679
+ createdAt: Date;
10680
+ updatedAt: Date;
10681
+ deletedAt: Date | null;
10682
+ }>, "many">;
10683
+ }, "strip", import("zod").ZodTypeAny, {
10684
+ id: string;
10685
+ disposition: string | null;
10686
+ createdAt: Date;
10687
+ updatedAt: Date;
10688
+ deletedAt: Date | null;
10689
+ tags: {
10690
+ id: string;
10691
+ name: string;
10692
+ createdAt: Date;
10693
+ updatedAt: Date;
10694
+ deletedAt: Date | null;
10695
+ }[];
10696
+ callFrom: string | null;
10697
+ callTo: string | null;
10698
+ note: string | null;
10699
+ }, {
10700
+ id: string;
10701
+ disposition: string | null;
10702
+ createdAt: Date;
10703
+ updatedAt: Date;
10704
+ deletedAt: Date | null;
10705
+ tags: {
10706
+ id: string;
10707
+ name: string;
10708
+ createdAt: Date;
10709
+ updatedAt: Date;
10710
+ deletedAt: Date | null;
10711
+ }[];
10712
+ callFrom: string | null;
10713
+ callTo: string | null;
10714
+ note: string | null;
10715
+ }>>;
10716
+ }, "strip", import("zod").ZodTypeAny, {
10717
+ id: string;
10718
+ channel: string | null;
10719
+ direction: string | null;
10720
+ createdAt: Date;
10721
+ updatedAt: Date;
10722
+ deletedAt: Date | null;
10723
+ entityId: string;
10724
+ queueId: string | null;
10725
+ contactId: string | null;
10726
+ caseId: number;
10727
+ entityName: string;
10728
+ agentId: string | null;
10729
+ startedDate: Date | null;
10730
+ handledTime: number | null;
10731
+ firstResponseTime: number | null;
10732
+ wrapUpForm: {
10733
+ id: string;
10734
+ disposition: string | null;
10735
+ createdAt: Date;
10736
+ updatedAt: Date;
10737
+ deletedAt: Date | null;
10738
+ tags: {
10739
+ id: string;
10740
+ name: string;
10741
+ createdAt: Date;
10742
+ updatedAt: Date;
10743
+ deletedAt: Date | null;
10744
+ }[];
10745
+ callFrom: string | null;
10746
+ callTo: string | null;
10747
+ note: string | null;
10748
+ } | null;
10749
+ }, {
10750
+ id: string;
10751
+ channel: string | null;
10752
+ direction: string | null;
10753
+ createdAt: Date;
10754
+ updatedAt: Date;
10755
+ deletedAt: Date | null;
10756
+ entityId: string;
10757
+ queueId: string | null;
10758
+ contactId: string | null;
10759
+ caseId: number;
10760
+ entityName: string;
10761
+ agentId: string | null;
10762
+ startedDate: Date | null;
10763
+ handledTime: number | null;
10764
+ firstResponseTime: number | null;
10765
+ wrapUpForm: {
10766
+ id: string;
10767
+ disposition: string | null;
10768
+ createdAt: Date;
10769
+ updatedAt: Date;
10770
+ deletedAt: Date | null;
10771
+ tags: {
10772
+ id: string;
10773
+ name: string;
10774
+ createdAt: Date;
10775
+ updatedAt: Date;
10776
+ deletedAt: Date | null;
10777
+ }[];
10778
+ callFrom: string | null;
10779
+ callTo: string | null;
10780
+ note: string | null;
10781
+ } | null;
10782
+ }>;
9551
10783
  }, "strip", import("zod").ZodTypeAny, {
9552
10784
  id: string;
9553
10785
  direction: string;
@@ -9650,6 +10882,40 @@ export declare const apiContract: {
9650
10882
  notificationCount: number | null;
9651
10883
  };
9652
10884
  resolved: boolean;
10885
+ cxlog: {
10886
+ id: string;
10887
+ channel: string | null;
10888
+ direction: string | null;
10889
+ createdAt: Date;
10890
+ updatedAt: Date;
10891
+ deletedAt: Date | null;
10892
+ entityId: string;
10893
+ queueId: string | null;
10894
+ contactId: string | null;
10895
+ caseId: number;
10896
+ entityName: string;
10897
+ agentId: string | null;
10898
+ startedDate: Date | null;
10899
+ handledTime: number | null;
10900
+ firstResponseTime: number | null;
10901
+ wrapUpForm: {
10902
+ id: string;
10903
+ disposition: string | null;
10904
+ createdAt: Date;
10905
+ updatedAt: Date;
10906
+ deletedAt: Date | null;
10907
+ tags: {
10908
+ id: string;
10909
+ name: string;
10910
+ createdAt: Date;
10911
+ updatedAt: Date;
10912
+ deletedAt: Date | null;
10913
+ }[];
10914
+ callFrom: string | null;
10915
+ callTo: string | null;
10916
+ note: string | null;
10917
+ } | null;
10918
+ };
9653
10919
  assigneeId: string | null;
9654
10920
  subject: string;
9655
10921
  from: {
@@ -10060,6 +11326,40 @@ export declare const apiContract: {
10060
11326
  notificationCount: number | null;
10061
11327
  };
10062
11328
  resolved: boolean;
11329
+ cxlog: {
11330
+ id: string;
11331
+ channel: string | null;
11332
+ direction: string | null;
11333
+ createdAt: Date;
11334
+ updatedAt: Date;
11335
+ deletedAt: Date | null;
11336
+ entityId: string;
11337
+ queueId: string | null;
11338
+ contactId: string | null;
11339
+ caseId: number;
11340
+ entityName: string;
11341
+ agentId: string | null;
11342
+ startedDate: Date | null;
11343
+ handledTime: number | null;
11344
+ firstResponseTime: number | null;
11345
+ wrapUpForm: {
11346
+ id: string;
11347
+ disposition: string | null;
11348
+ createdAt: Date;
11349
+ updatedAt: Date;
11350
+ deletedAt: Date | null;
11351
+ tags: {
11352
+ id: string;
11353
+ name: string;
11354
+ createdAt: Date;
11355
+ updatedAt: Date;
11356
+ deletedAt: Date | null;
11357
+ }[];
11358
+ callFrom: string | null;
11359
+ callTo: string | null;
11360
+ note: string | null;
11361
+ } | null;
11362
+ };
10063
11363
  assigneeId: string | null;
10064
11364
  subject: string;
10065
11365
  from: {
@@ -10472,6 +11772,40 @@ export declare const apiContract: {
10472
11772
  notificationCount: number | null;
10473
11773
  };
10474
11774
  resolved: boolean;
11775
+ cxlog: {
11776
+ id: string;
11777
+ channel: string | null;
11778
+ direction: string | null;
11779
+ createdAt: Date;
11780
+ updatedAt: Date;
11781
+ deletedAt: Date | null;
11782
+ entityId: string;
11783
+ queueId: string | null;
11784
+ contactId: string | null;
11785
+ caseId: number;
11786
+ entityName: string;
11787
+ agentId: string | null;
11788
+ startedDate: Date | null;
11789
+ handledTime: number | null;
11790
+ firstResponseTime: number | null;
11791
+ wrapUpForm: {
11792
+ id: string;
11793
+ disposition: string | null;
11794
+ createdAt: Date;
11795
+ updatedAt: Date;
11796
+ deletedAt: Date | null;
11797
+ tags: {
11798
+ id: string;
11799
+ name: string;
11800
+ createdAt: Date;
11801
+ updatedAt: Date;
11802
+ deletedAt: Date | null;
11803
+ }[];
11804
+ callFrom: string | null;
11805
+ callTo: string | null;
11806
+ note: string | null;
11807
+ } | null;
11808
+ };
10475
11809
  assigneeId: string | null;
10476
11810
  subject: string;
10477
11811
  from: {
@@ -10885,6 +12219,40 @@ export declare const apiContract: {
10885
12219
  notificationCount: number | null;
10886
12220
  };
10887
12221
  resolved: boolean;
12222
+ cxlog: {
12223
+ id: string;
12224
+ channel: string | null;
12225
+ direction: string | null;
12226
+ createdAt: Date;
12227
+ updatedAt: Date;
12228
+ deletedAt: Date | null;
12229
+ entityId: string;
12230
+ queueId: string | null;
12231
+ contactId: string | null;
12232
+ caseId: number;
12233
+ entityName: string;
12234
+ agentId: string | null;
12235
+ startedDate: Date | null;
12236
+ handledTime: number | null;
12237
+ firstResponseTime: number | null;
12238
+ wrapUpForm: {
12239
+ id: string;
12240
+ disposition: string | null;
12241
+ createdAt: Date;
12242
+ updatedAt: Date;
12243
+ deletedAt: Date | null;
12244
+ tags: {
12245
+ id: string;
12246
+ name: string;
12247
+ createdAt: Date;
12248
+ updatedAt: Date;
12249
+ deletedAt: Date | null;
12250
+ }[];
12251
+ callFrom: string | null;
12252
+ callTo: string | null;
12253
+ note: string | null;
12254
+ } | null;
12255
+ };
10888
12256
  assigneeId: string | null;
10889
12257
  subject: string;
10890
12258
  from: {
@@ -11199,60 +12567,6 @@ export declare const apiContract: {
11199
12567
  };
11200
12568
  path: "mail/room/:id";
11201
12569
  };
11202
- markAsRead: {
11203
- summary: "Mark all the un read messages as read";
11204
- method: "GET";
11205
- pathParams: import("zod").ZodObject<{
11206
- id: import("zod").ZodString;
11207
- }, "strip", import("zod").ZodTypeAny, {
11208
- id: string;
11209
- }, {
11210
- id: string;
11211
- }>;
11212
- responses: {
11213
- 401: import("zod").ZodObject<{
11214
- message: import("zod").ZodString;
11215
- error: import("zod").ZodAny;
11216
- }, "strip", import("zod").ZodTypeAny, {
11217
- message: string;
11218
- error?: any;
11219
- }, {
11220
- message: string;
11221
- error?: any;
11222
- }>;
11223
- 404: import("zod").ZodObject<{
11224
- message: import("zod").ZodString;
11225
- error: import("zod").ZodAny;
11226
- }, "strip", import("zod").ZodTypeAny, {
11227
- message: string;
11228
- error?: any;
11229
- }, {
11230
- message: string;
11231
- error?: any;
11232
- }>;
11233
- 422: import("zod").ZodObject<{
11234
- message: import("zod").ZodString;
11235
- error: import("zod").ZodAny;
11236
- }, "strip", import("zod").ZodTypeAny, {
11237
- message: string;
11238
- error?: any;
11239
- }, {
11240
- message: string;
11241
- error?: any;
11242
- }>;
11243
- 200: import("zod").ZodObject<{
11244
- requestId: import("zod").ZodString;
11245
- message: import("zod").ZodString;
11246
- }, "strip", import("zod").ZodTypeAny, {
11247
- message: string;
11248
- requestId: string;
11249
- }, {
11250
- message: string;
11251
- requestId: string;
11252
- }>;
11253
- };
11254
- path: "mail/room/:id";
11255
- };
11256
12570
  };
11257
12571
  message: {
11258
12572
  submit: {
@@ -11397,7 +12711,7 @@ export declare const apiContract: {
11397
12711
  presignedUrl: string;
11398
12712
  }[] | undefined;
11399
12713
  }>;
11400
- summary: "Submit a message such compose, reply or forward";
12714
+ summary: "Submit a message such as compose, reply or forward";
11401
12715
  method: "POST";
11402
12716
  responses: {
11403
12717
  500: import("zod").ZodObject<{
@@ -11478,6 +12792,63 @@ export declare const apiContract: {
11478
12792
  };
11479
12793
  path: "mail/message/submit";
11480
12794
  };
12795
+ getTotalUnreadMessageCount: {
12796
+ summary: "Get total unread messages counts";
12797
+ method: "GET";
12798
+ responses: {
12799
+ 401: import("zod").ZodObject<{
12800
+ message: import("zod").ZodString;
12801
+ error: import("zod").ZodAny;
12802
+ }, "strip", import("zod").ZodTypeAny, {
12803
+ message: string;
12804
+ error?: any;
12805
+ }, {
12806
+ message: string;
12807
+ error?: any;
12808
+ }>;
12809
+ 404: import("zod").ZodObject<{
12810
+ message: import("zod").ZodString;
12811
+ error: import("zod").ZodAny;
12812
+ }, "strip", import("zod").ZodTypeAny, {
12813
+ message: string;
12814
+ error?: any;
12815
+ }, {
12816
+ message: string;
12817
+ error?: any;
12818
+ }>;
12819
+ 422: import("zod").ZodObject<{
12820
+ message: import("zod").ZodString;
12821
+ error: import("zod").ZodAny;
12822
+ }, "strip", import("zod").ZodTypeAny, {
12823
+ message: string;
12824
+ error?: any;
12825
+ }, {
12826
+ message: string;
12827
+ error?: any;
12828
+ }>;
12829
+ 200: import("zod").ZodObject<{
12830
+ requestId: import("zod").ZodString;
12831
+ data: import("zod").ZodObject<{
12832
+ count: import("zod").ZodNumber;
12833
+ }, "strip", import("zod").ZodTypeAny, {
12834
+ count: number;
12835
+ }, {
12836
+ count: number;
12837
+ }>;
12838
+ }, "strip", import("zod").ZodTypeAny, {
12839
+ data: {
12840
+ count: number;
12841
+ };
12842
+ requestId: string;
12843
+ }, {
12844
+ data: {
12845
+ count: number;
12846
+ };
12847
+ requestId: string;
12848
+ }>;
12849
+ };
12850
+ path: "mail/message/new_message_count";
12851
+ };
11481
12852
  getById: {
11482
12853
  summary: "Get a message by id";
11483
12854
  method: "GET";
@@ -12128,8 +13499,71 @@ export declare const apiContract: {
12128
13499
  'x-client-timezone'?: string | undefined;
12129
13500
  }>>>;
12130
13501
  };
13502
+ sync: {
13503
+ summary: "Sync all accounts state from email engine to system";
13504
+ method: "GET";
13505
+ responses: {
13506
+ 401: import("zod").ZodObject<{
13507
+ message: import("zod").ZodString;
13508
+ error: import("zod").ZodAny;
13509
+ }, "strip", import("zod").ZodTypeAny, {
13510
+ message: string;
13511
+ error?: any;
13512
+ }, {
13513
+ message: string;
13514
+ error?: any;
13515
+ }>;
13516
+ 404: import("zod").ZodObject<{
13517
+ message: import("zod").ZodString;
13518
+ error: import("zod").ZodAny;
13519
+ }, "strip", import("zod").ZodTypeAny, {
13520
+ message: string;
13521
+ error?: any;
13522
+ }, {
13523
+ message: string;
13524
+ error?: any;
13525
+ }>;
13526
+ 422: import("zod").ZodObject<{
13527
+ message: import("zod").ZodString;
13528
+ error: import("zod").ZodAny;
13529
+ }, "strip", import("zod").ZodTypeAny, {
13530
+ message: string;
13531
+ error?: any;
13532
+ }, {
13533
+ message: string;
13534
+ error?: any;
13535
+ }>;
13536
+ 200: import("zod").ZodObject<{
13537
+ requestId: import("zod").ZodString;
13538
+ message: import("zod").ZodString;
13539
+ }, "strip", import("zod").ZodTypeAny, {
13540
+ message: string;
13541
+ requestId: string;
13542
+ }, {
13543
+ message: string;
13544
+ requestId: string;
13545
+ }>;
13546
+ };
13547
+ path: "mail/account/sync";
13548
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
13549
+ 'x-tenant': import("zod").ZodString;
13550
+ authorization: import("zod").ZodString;
13551
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
13552
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
13553
+ }, "strip", import("zod").ZodTypeAny, {
13554
+ 'x-tenant': string;
13555
+ authorization: string;
13556
+ 'x-client-timezone': string;
13557
+ 'x-code'?: string | undefined;
13558
+ }, {
13559
+ 'x-tenant': string;
13560
+ authorization: string;
13561
+ 'x-code'?: string | undefined;
13562
+ 'x-client-timezone'?: string | undefined;
13563
+ }>>>;
13564
+ };
12131
13565
  getById: {
12132
- summary: "Get a account by id";
13566
+ summary: "Get an account by id";
12133
13567
  method: "GET";
12134
13568
  pathParams: import("zod").ZodObject<{
12135
13569
  id: import("zod").ZodString;
@@ -12354,6 +13788,13 @@ export declare const apiContract: {
12354
13788
  getAll: {
12355
13789
  summary: "Get all accounts";
12356
13790
  method: "GET";
13791
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
13792
+ state: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"connected">, import("zod").ZodLiteral<"disconnected">]>>;
13793
+ }, "strip", import("zod").ZodTypeAny, {
13794
+ state?: "connected" | "disconnected" | undefined;
13795
+ }, {
13796
+ state?: "connected" | "disconnected" | undefined;
13797
+ }>>;
12357
13798
  responses: {
12358
13799
  401: import("zod").ZodObject<{
12359
13800
  message: import("zod").ZodString;
@@ -40292,10 +41733,102 @@ export declare const apiContract: {
40292
41733
  }, "strip", import("zod").ZodTypeAny, {
40293
41734
  newName: string;
40294
41735
  }, {
40295
- newName: string;
40296
- }>;
40297
- summary: "Rename an attachment name";
40298
- method: "POST";
41736
+ newName: string;
41737
+ }>;
41738
+ summary: "Rename an attachment name";
41739
+ method: "POST";
41740
+ pathParams: import("zod").ZodObject<{
41741
+ id: import("zod").ZodString;
41742
+ }, "strip", import("zod").ZodTypeAny, {
41743
+ id: string;
41744
+ }, {
41745
+ id: string;
41746
+ }>;
41747
+ responses: {
41748
+ 201: import("zod").ZodObject<{
41749
+ requestId: import("zod").ZodString;
41750
+ message: import("zod").ZodString;
41751
+ }, "strip", import("zod").ZodTypeAny, {
41752
+ message: string;
41753
+ requestId: string;
41754
+ }, {
41755
+ message: string;
41756
+ requestId: string;
41757
+ }>;
41758
+ 400: import("zod").ZodObject<{
41759
+ message: import("zod").ZodString;
41760
+ }, "strip", import("zod").ZodTypeAny, {
41761
+ message: string;
41762
+ }, {
41763
+ message: string;
41764
+ }>;
41765
+ 409: import("zod").ZodObject<{
41766
+ message: import("zod").ZodString;
41767
+ }, "strip", import("zod").ZodTypeAny, {
41768
+ message: string;
41769
+ }, {
41770
+ message: string;
41771
+ }>;
41772
+ 500: import("zod").ZodObject<{
41773
+ message: import("zod").ZodString;
41774
+ }, "strip", import("zod").ZodTypeAny, {
41775
+ message: string;
41776
+ }, {
41777
+ message: string;
41778
+ }>;
41779
+ 401: import("zod").ZodObject<{
41780
+ message: import("zod").ZodString;
41781
+ error: import("zod").ZodAny;
41782
+ }, "strip", import("zod").ZodTypeAny, {
41783
+ message: string;
41784
+ error?: any;
41785
+ }, {
41786
+ message: string;
41787
+ error?: any;
41788
+ }>;
41789
+ 404: import("zod").ZodObject<{
41790
+ message: import("zod").ZodString;
41791
+ error: import("zod").ZodAny;
41792
+ }, "strip", import("zod").ZodTypeAny, {
41793
+ message: string;
41794
+ error?: any;
41795
+ }, {
41796
+ message: string;
41797
+ error?: any;
41798
+ }>;
41799
+ 422: import("zod").ZodObject<{
41800
+ message: import("zod").ZodString;
41801
+ error: import("zod").ZodAny;
41802
+ }, "strip", import("zod").ZodTypeAny, {
41803
+ message: string;
41804
+ error?: any;
41805
+ }, {
41806
+ message: string;
41807
+ error?: any;
41808
+ }>;
41809
+ };
41810
+ path: "/upload/:id/rename";
41811
+ headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
41812
+ 'x-tenant': import("zod").ZodString;
41813
+ authorization: import("zod").ZodString;
41814
+ 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
41815
+ 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
41816
+ }, "strip", import("zod").ZodTypeAny, {
41817
+ 'x-tenant': string;
41818
+ authorization: string;
41819
+ 'x-client-timezone': string;
41820
+ 'x-code'?: string | undefined;
41821
+ }, {
41822
+ 'x-tenant': string;
41823
+ authorization: string;
41824
+ 'x-code'?: string | undefined;
41825
+ 'x-client-timezone'?: string | undefined;
41826
+ }>>>;
41827
+ };
41828
+ delete: {
41829
+ body: null;
41830
+ summary: "Delete an attachment";
41831
+ method: "DELETE";
40299
41832
  pathParams: import("zod").ZodObject<{
40300
41833
  id: import("zod").ZodString;
40301
41834
  }, "strip", import("zod").ZodTypeAny, {
@@ -40366,7 +41899,7 @@ export declare const apiContract: {
40366
41899
  error?: any;
40367
41900
  }>;
40368
41901
  };
40369
- path: "/upload/:id/rename";
41902
+ path: "/upload/:id";
40370
41903
  headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
40371
41904
  'x-tenant': import("zod").ZodString;
40372
41905
  authorization: import("zod").ZodString;
@@ -40384,50 +41917,373 @@ export declare const apiContract: {
40384
41917
  'x-client-timezone'?: string | undefined;
40385
41918
  }>>>;
40386
41919
  };
40387
- delete: {
40388
- body: null;
40389
- summary: "Delete an attachment";
40390
- method: "DELETE";
40391
- pathParams: import("zod").ZodObject<{
40392
- id: import("zod").ZodString;
41920
+ };
41921
+ snippet: {
41922
+ createSnippetGroup: {
41923
+ body: import("zod").ZodObject<{
41924
+ name: import("zod").ZodString;
41925
+ platformType: import("zod").ZodString;
40393
41926
  }, "strip", import("zod").ZodTypeAny, {
40394
- id: string;
41927
+ name: string;
41928
+ platformType: string;
40395
41929
  }, {
40396
- id: string;
41930
+ name: string;
41931
+ platformType: string;
40397
41932
  }>;
41933
+ method: "POST";
40398
41934
  responses: {
40399
41935
  201: import("zod").ZodObject<{
40400
41936
  requestId: import("zod").ZodString;
41937
+ snippetgroup: import("zod").ZodObject<{
41938
+ id: import("zod").ZodString;
41939
+ createdAt: import("zod").ZodDate;
41940
+ updatedAt: import("zod").ZodDate;
41941
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
41942
+ name: import("zod").ZodString;
41943
+ platformType: import("zod").ZodString;
41944
+ }, "strip", import("zod").ZodTypeAny, {
41945
+ id: string;
41946
+ name: string;
41947
+ createdAt: Date;
41948
+ updatedAt: Date;
41949
+ deletedAt: Date | null;
41950
+ platformType: string;
41951
+ }, {
41952
+ id: string;
41953
+ name: string;
41954
+ createdAt: Date;
41955
+ updatedAt: Date;
41956
+ deletedAt: Date | null;
41957
+ platformType: string;
41958
+ }>;
41959
+ }, "strip", import("zod").ZodTypeAny, {
41960
+ requestId: string;
41961
+ snippetgroup: {
41962
+ id: string;
41963
+ name: string;
41964
+ createdAt: Date;
41965
+ updatedAt: Date;
41966
+ deletedAt: Date | null;
41967
+ platformType: string;
41968
+ };
41969
+ }, {
41970
+ requestId: string;
41971
+ snippetgroup: {
41972
+ id: string;
41973
+ name: string;
41974
+ createdAt: Date;
41975
+ updatedAt: Date;
41976
+ deletedAt: Date | null;
41977
+ platformType: string;
41978
+ };
41979
+ }>;
41980
+ 500: import("zod").ZodObject<{
40401
41981
  message: import("zod").ZodString;
41982
+ error: import("zod").ZodAny;
40402
41983
  }, "strip", import("zod").ZodTypeAny, {
40403
41984
  message: string;
40404
- requestId: string;
41985
+ error?: any;
40405
41986
  }, {
40406
41987
  message: string;
41988
+ error?: any;
41989
+ }>;
41990
+ };
41991
+ path: "snippets/groups";
41992
+ };
41993
+ getSnippetGroups: {
41994
+ method: "GET";
41995
+ query: null;
41996
+ responses: {
41997
+ 200: import("zod").ZodObject<{
41998
+ requestId: import("zod").ZodString;
41999
+ snippetgroups: import("zod").ZodArray<import("zod").ZodObject<{
42000
+ id: import("zod").ZodString;
42001
+ createdAt: import("zod").ZodDate;
42002
+ updatedAt: import("zod").ZodDate;
42003
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42004
+ name: import("zod").ZodString;
42005
+ platformType: import("zod").ZodString;
42006
+ }, "strip", import("zod").ZodTypeAny, {
42007
+ id: string;
42008
+ name: string;
42009
+ createdAt: Date;
42010
+ updatedAt: Date;
42011
+ deletedAt: Date | null;
42012
+ platformType: string;
42013
+ }, {
42014
+ id: string;
42015
+ name: string;
42016
+ createdAt: Date;
42017
+ updatedAt: Date;
42018
+ deletedAt: Date | null;
42019
+ platformType: string;
42020
+ }>, "many">;
42021
+ }, "strip", import("zod").ZodTypeAny, {
42022
+ requestId: string;
42023
+ snippetgroups: {
42024
+ id: string;
42025
+ name: string;
42026
+ createdAt: Date;
42027
+ updatedAt: Date;
42028
+ deletedAt: Date | null;
42029
+ platformType: string;
42030
+ }[];
42031
+ }, {
40407
42032
  requestId: string;
42033
+ snippetgroups: {
42034
+ id: string;
42035
+ name: string;
42036
+ createdAt: Date;
42037
+ updatedAt: Date;
42038
+ deletedAt: Date | null;
42039
+ platformType: string;
42040
+ }[];
40408
42041
  }>;
40409
- 400: import("zod").ZodObject<{
42042
+ 500: import("zod").ZodObject<{
40410
42043
  message: import("zod").ZodString;
42044
+ error: import("zod").ZodAny;
40411
42045
  }, "strip", import("zod").ZodTypeAny, {
40412
42046
  message: string;
42047
+ error?: any;
40413
42048
  }, {
40414
42049
  message: string;
42050
+ error?: any;
40415
42051
  }>;
40416
- 409: import("zod").ZodObject<{
42052
+ };
42053
+ path: "snippets/groups";
42054
+ };
42055
+ updateSnippetGroup: {
42056
+ body: import("zod").ZodObject<{
42057
+ name: import("zod").ZodOptional<import("zod").ZodString>;
42058
+ platformType: import("zod").ZodOptional<import("zod").ZodString>;
42059
+ }, "strip", import("zod").ZodTypeAny, {
42060
+ name?: string | undefined;
42061
+ platformType?: string | undefined;
42062
+ }, {
42063
+ name?: string | undefined;
42064
+ platformType?: string | undefined;
42065
+ }>;
42066
+ method: "PATCH";
42067
+ pathParams: import("zod").ZodObject<{
42068
+ id: import("zod").ZodString;
42069
+ }, "strip", import("zod").ZodTypeAny, {
42070
+ id: string;
42071
+ }, {
42072
+ id: string;
42073
+ }>;
42074
+ responses: {
42075
+ 200: import("zod").ZodObject<{
42076
+ requestId: import("zod").ZodString;
42077
+ snippetgroup: import("zod").ZodObject<{
42078
+ id: import("zod").ZodString;
42079
+ createdAt: import("zod").ZodDate;
42080
+ updatedAt: import("zod").ZodDate;
42081
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42082
+ name: import("zod").ZodString;
42083
+ platformType: import("zod").ZodString;
42084
+ }, "strip", import("zod").ZodTypeAny, {
42085
+ id: string;
42086
+ name: string;
42087
+ createdAt: Date;
42088
+ updatedAt: Date;
42089
+ deletedAt: Date | null;
42090
+ platformType: string;
42091
+ }, {
42092
+ id: string;
42093
+ name: string;
42094
+ createdAt: Date;
42095
+ updatedAt: Date;
42096
+ deletedAt: Date | null;
42097
+ platformType: string;
42098
+ }>;
42099
+ }, "strip", import("zod").ZodTypeAny, {
42100
+ requestId: string;
42101
+ snippetgroup: {
42102
+ id: string;
42103
+ name: string;
42104
+ createdAt: Date;
42105
+ updatedAt: Date;
42106
+ deletedAt: Date | null;
42107
+ platformType: string;
42108
+ };
42109
+ }, {
42110
+ requestId: string;
42111
+ snippetgroup: {
42112
+ id: string;
42113
+ name: string;
42114
+ createdAt: Date;
42115
+ updatedAt: Date;
42116
+ deletedAt: Date | null;
42117
+ platformType: string;
42118
+ };
42119
+ }>;
42120
+ 500: import("zod").ZodObject<{
40417
42121
  message: import("zod").ZodString;
42122
+ error: import("zod").ZodAny;
40418
42123
  }, "strip", import("zod").ZodTypeAny, {
40419
42124
  message: string;
42125
+ error?: any;
40420
42126
  }, {
40421
42127
  message: string;
42128
+ error?: any;
42129
+ }>;
42130
+ };
42131
+ path: "snippets/groups/:id";
42132
+ };
42133
+ deleteSnippetGroup: {
42134
+ body: null;
42135
+ method: "DELETE";
42136
+ pathParams: import("zod").ZodObject<{
42137
+ id: import("zod").ZodString;
42138
+ }, "strip", import("zod").ZodTypeAny, {
42139
+ id: string;
42140
+ }, {
42141
+ id: string;
42142
+ }>;
42143
+ responses: {
42144
+ 200: import("zod").ZodObject<{
42145
+ requestId: import("zod").ZodString;
42146
+ }, "strip", import("zod").ZodTypeAny, {
42147
+ requestId: string;
42148
+ }, {
42149
+ requestId: string;
40422
42150
  }>;
40423
42151
  500: import("zod").ZodObject<{
40424
42152
  message: import("zod").ZodString;
42153
+ error: import("zod").ZodAny;
40425
42154
  }, "strip", import("zod").ZodTypeAny, {
40426
42155
  message: string;
42156
+ error?: any;
40427
42157
  }, {
40428
42158
  message: string;
42159
+ error?: any;
40429
42160
  }>;
40430
- 401: import("zod").ZodObject<{
42161
+ };
42162
+ path: "snippets/groups/:id";
42163
+ };
42164
+ getSnippets: {
42165
+ method: "GET";
42166
+ responses: {
42167
+ 200: import("zod").ZodObject<{
42168
+ requestId: import("zod").ZodString;
42169
+ snippets: import("zod").ZodArray<import("zod").ZodObject<{
42170
+ id: import("zod").ZodString;
42171
+ createdAt: import("zod").ZodDate;
42172
+ updatedAt: import("zod").ZodDate;
42173
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42174
+ shortcutName: import("zod").ZodString;
42175
+ contentType: import("zod").ZodString;
42176
+ contentValue: import("zod").ZodNullable<import("zod").ZodString>;
42177
+ uploadId: import("zod").ZodNullable<import("zod").ZodString>;
42178
+ order: import("zod").ZodOptional<import("zod").ZodNumber>;
42179
+ snippetGroupId: import("zod").ZodString;
42180
+ snippetGroup: import("zod").ZodObject<{
42181
+ id: import("zod").ZodString;
42182
+ createdAt: import("zod").ZodDate;
42183
+ updatedAt: import("zod").ZodDate;
42184
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42185
+ name: import("zod").ZodString;
42186
+ platformType: import("zod").ZodString;
42187
+ }, "strip", import("zod").ZodTypeAny, {
42188
+ id: string;
42189
+ name: string;
42190
+ createdAt: Date;
42191
+ updatedAt: Date;
42192
+ deletedAt: Date | null;
42193
+ platformType: string;
42194
+ }, {
42195
+ id: string;
42196
+ name: string;
42197
+ createdAt: Date;
42198
+ updatedAt: Date;
42199
+ deletedAt: Date | null;
42200
+ platformType: string;
42201
+ }>;
42202
+ }, "strip", import("zod").ZodTypeAny, {
42203
+ id: string;
42204
+ createdAt: Date;
42205
+ updatedAt: Date;
42206
+ deletedAt: Date | null;
42207
+ contentType: string;
42208
+ uploadId: string | null;
42209
+ shortcutName: string;
42210
+ contentValue: string | null;
42211
+ snippetGroupId: string;
42212
+ snippetGroup: {
42213
+ id: string;
42214
+ name: string;
42215
+ createdAt: Date;
42216
+ updatedAt: Date;
42217
+ deletedAt: Date | null;
42218
+ platformType: string;
42219
+ };
42220
+ order?: number | undefined;
42221
+ }, {
42222
+ id: string;
42223
+ createdAt: Date;
42224
+ updatedAt: Date;
42225
+ deletedAt: Date | null;
42226
+ contentType: string;
42227
+ uploadId: string | null;
42228
+ shortcutName: string;
42229
+ contentValue: string | null;
42230
+ snippetGroupId: string;
42231
+ snippetGroup: {
42232
+ id: string;
42233
+ name: string;
42234
+ createdAt: Date;
42235
+ updatedAt: Date;
42236
+ deletedAt: Date | null;
42237
+ platformType: string;
42238
+ };
42239
+ order?: number | undefined;
42240
+ }>, "many">;
42241
+ }, "strip", import("zod").ZodTypeAny, {
42242
+ requestId: string;
42243
+ snippets: {
42244
+ id: string;
42245
+ createdAt: Date;
42246
+ updatedAt: Date;
42247
+ deletedAt: Date | null;
42248
+ contentType: string;
42249
+ uploadId: string | null;
42250
+ shortcutName: string;
42251
+ contentValue: string | null;
42252
+ snippetGroupId: string;
42253
+ snippetGroup: {
42254
+ id: string;
42255
+ name: string;
42256
+ createdAt: Date;
42257
+ updatedAt: Date;
42258
+ deletedAt: Date | null;
42259
+ platformType: string;
42260
+ };
42261
+ order?: number | undefined;
42262
+ }[];
42263
+ }, {
42264
+ requestId: string;
42265
+ snippets: {
42266
+ id: string;
42267
+ createdAt: Date;
42268
+ updatedAt: Date;
42269
+ deletedAt: Date | null;
42270
+ contentType: string;
42271
+ uploadId: string | null;
42272
+ shortcutName: string;
42273
+ contentValue: string | null;
42274
+ snippetGroupId: string;
42275
+ snippetGroup: {
42276
+ id: string;
42277
+ name: string;
42278
+ createdAt: Date;
42279
+ updatedAt: Date;
42280
+ deletedAt: Date | null;
42281
+ platformType: string;
42282
+ };
42283
+ order?: number | undefined;
42284
+ }[];
42285
+ }>;
42286
+ 500: import("zod").ZodObject<{
40431
42287
  message: import("zod").ZodString;
40432
42288
  error: import("zod").ZodAny;
40433
42289
  }, "strip", import("zod").ZodTypeAny, {
@@ -40437,7 +42293,151 @@ export declare const apiContract: {
40437
42293
  message: string;
40438
42294
  error?: any;
40439
42295
  }>;
40440
- 404: import("zod").ZodObject<{
42296
+ };
42297
+ path: "snippets";
42298
+ };
42299
+ createSnippet: {
42300
+ body: import("zod").ZodObject<{
42301
+ shortcutName: import("zod").ZodString;
42302
+ contentType: import("zod").ZodString;
42303
+ contentValue: import("zod").ZodOptional<import("zod").ZodString>;
42304
+ snippetGroupId: import("zod").ZodString;
42305
+ platformType: import("zod").ZodString;
42306
+ }, "strip", import("zod").ZodTypeAny, {
42307
+ contentType: string;
42308
+ platformType: string;
42309
+ shortcutName: string;
42310
+ snippetGroupId: string;
42311
+ contentValue?: string | undefined;
42312
+ }, {
42313
+ contentType: string;
42314
+ platformType: string;
42315
+ shortcutName: string;
42316
+ snippetGroupId: string;
42317
+ contentValue?: string | undefined;
42318
+ }>;
42319
+ method: "POST";
42320
+ responses: {
42321
+ 201: import("zod").ZodObject<{
42322
+ requestId: import("zod").ZodString;
42323
+ snippet: import("zod").ZodObject<{
42324
+ id: import("zod").ZodString;
42325
+ createdAt: import("zod").ZodDate;
42326
+ updatedAt: import("zod").ZodDate;
42327
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42328
+ shortcutName: import("zod").ZodString;
42329
+ contentType: import("zod").ZodString;
42330
+ contentValue: import("zod").ZodNullable<import("zod").ZodString>;
42331
+ uploadId: import("zod").ZodNullable<import("zod").ZodString>;
42332
+ order: import("zod").ZodOptional<import("zod").ZodNumber>;
42333
+ snippetGroupId: import("zod").ZodString;
42334
+ snippetGroup: import("zod").ZodObject<{
42335
+ id: import("zod").ZodString;
42336
+ createdAt: import("zod").ZodDate;
42337
+ updatedAt: import("zod").ZodDate;
42338
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42339
+ name: import("zod").ZodString;
42340
+ platformType: import("zod").ZodString;
42341
+ }, "strip", import("zod").ZodTypeAny, {
42342
+ id: string;
42343
+ name: string;
42344
+ createdAt: Date;
42345
+ updatedAt: Date;
42346
+ deletedAt: Date | null;
42347
+ platformType: string;
42348
+ }, {
42349
+ id: string;
42350
+ name: string;
42351
+ createdAt: Date;
42352
+ updatedAt: Date;
42353
+ deletedAt: Date | null;
42354
+ platformType: string;
42355
+ }>;
42356
+ }, "strip", import("zod").ZodTypeAny, {
42357
+ id: string;
42358
+ createdAt: Date;
42359
+ updatedAt: Date;
42360
+ deletedAt: Date | null;
42361
+ contentType: string;
42362
+ uploadId: string | null;
42363
+ shortcutName: string;
42364
+ contentValue: string | null;
42365
+ snippetGroupId: string;
42366
+ snippetGroup: {
42367
+ id: string;
42368
+ name: string;
42369
+ createdAt: Date;
42370
+ updatedAt: Date;
42371
+ deletedAt: Date | null;
42372
+ platformType: string;
42373
+ };
42374
+ order?: number | undefined;
42375
+ }, {
42376
+ id: string;
42377
+ createdAt: Date;
42378
+ updatedAt: Date;
42379
+ deletedAt: Date | null;
42380
+ contentType: string;
42381
+ uploadId: string | null;
42382
+ shortcutName: string;
42383
+ contentValue: string | null;
42384
+ snippetGroupId: string;
42385
+ snippetGroup: {
42386
+ id: string;
42387
+ name: string;
42388
+ createdAt: Date;
42389
+ updatedAt: Date;
42390
+ deletedAt: Date | null;
42391
+ platformType: string;
42392
+ };
42393
+ order?: number | undefined;
42394
+ }>;
42395
+ }, "strip", import("zod").ZodTypeAny, {
42396
+ requestId: string;
42397
+ snippet: {
42398
+ id: string;
42399
+ createdAt: Date;
42400
+ updatedAt: Date;
42401
+ deletedAt: Date | null;
42402
+ contentType: string;
42403
+ uploadId: string | null;
42404
+ shortcutName: string;
42405
+ contentValue: string | null;
42406
+ snippetGroupId: string;
42407
+ snippetGroup: {
42408
+ id: string;
42409
+ name: string;
42410
+ createdAt: Date;
42411
+ updatedAt: Date;
42412
+ deletedAt: Date | null;
42413
+ platformType: string;
42414
+ };
42415
+ order?: number | undefined;
42416
+ };
42417
+ }, {
42418
+ requestId: string;
42419
+ snippet: {
42420
+ id: string;
42421
+ createdAt: Date;
42422
+ updatedAt: Date;
42423
+ deletedAt: Date | null;
42424
+ contentType: string;
42425
+ uploadId: string | null;
42426
+ shortcutName: string;
42427
+ contentValue: string | null;
42428
+ snippetGroupId: string;
42429
+ snippetGroup: {
42430
+ id: string;
42431
+ name: string;
42432
+ createdAt: Date;
42433
+ updatedAt: Date;
42434
+ deletedAt: Date | null;
42435
+ platformType: string;
42436
+ };
42437
+ order?: number | undefined;
42438
+ };
42439
+ }>;
42440
+ 500: import("zod").ZodObject<{
40441
42441
  message: import("zod").ZodString;
40442
42442
  error: import("zod").ZodAny;
40443
42443
  }, "strip", import("zod").ZodTypeAny, {
@@ -40447,7 +42447,161 @@ export declare const apiContract: {
40447
42447
  message: string;
40448
42448
  error?: any;
40449
42449
  }>;
40450
- 422: import("zod").ZodObject<{
42450
+ };
42451
+ path: "snippets";
42452
+ };
42453
+ updateSnippet: {
42454
+ body: import("zod").ZodObject<{
42455
+ contentType: import("zod").ZodString;
42456
+ platformType: import("zod").ZodString;
42457
+ shortcutName: import("zod").ZodString;
42458
+ contentValue: import("zod").ZodOptional<import("zod").ZodString>;
42459
+ snippetGroupId: import("zod").ZodString;
42460
+ snippetContentId: import("zod").ZodString;
42461
+ }, "strip", import("zod").ZodTypeAny, {
42462
+ contentType: string;
42463
+ platformType: string;
42464
+ shortcutName: string;
42465
+ snippetGroupId: string;
42466
+ snippetContentId: string;
42467
+ contentValue?: string | undefined;
42468
+ }, {
42469
+ contentType: string;
42470
+ platformType: string;
42471
+ shortcutName: string;
42472
+ snippetGroupId: string;
42473
+ snippetContentId: string;
42474
+ contentValue?: string | undefined;
42475
+ }>;
42476
+ method: "PATCH";
42477
+ pathParams: import("zod").ZodObject<{
42478
+ id: import("zod").ZodString;
42479
+ }, "strip", import("zod").ZodTypeAny, {
42480
+ id: string;
42481
+ }, {
42482
+ id: string;
42483
+ }>;
42484
+ responses: {
42485
+ 200: import("zod").ZodObject<{
42486
+ requestId: import("zod").ZodString;
42487
+ snippet: import("zod").ZodObject<{
42488
+ id: import("zod").ZodString;
42489
+ createdAt: import("zod").ZodDate;
42490
+ updatedAt: import("zod").ZodDate;
42491
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42492
+ shortcutName: import("zod").ZodString;
42493
+ contentType: import("zod").ZodString;
42494
+ contentValue: import("zod").ZodNullable<import("zod").ZodString>;
42495
+ uploadId: import("zod").ZodNullable<import("zod").ZodString>;
42496
+ order: import("zod").ZodOptional<import("zod").ZodNumber>;
42497
+ snippetGroupId: import("zod").ZodString;
42498
+ snippetGroup: import("zod").ZodObject<{
42499
+ id: import("zod").ZodString;
42500
+ createdAt: import("zod").ZodDate;
42501
+ updatedAt: import("zod").ZodDate;
42502
+ deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
42503
+ name: import("zod").ZodString;
42504
+ platformType: import("zod").ZodString;
42505
+ }, "strip", import("zod").ZodTypeAny, {
42506
+ id: string;
42507
+ name: string;
42508
+ createdAt: Date;
42509
+ updatedAt: Date;
42510
+ deletedAt: Date | null;
42511
+ platformType: string;
42512
+ }, {
42513
+ id: string;
42514
+ name: string;
42515
+ createdAt: Date;
42516
+ updatedAt: Date;
42517
+ deletedAt: Date | null;
42518
+ platformType: string;
42519
+ }>;
42520
+ }, "strip", import("zod").ZodTypeAny, {
42521
+ id: string;
42522
+ createdAt: Date;
42523
+ updatedAt: Date;
42524
+ deletedAt: Date | null;
42525
+ contentType: string;
42526
+ uploadId: string | null;
42527
+ shortcutName: string;
42528
+ contentValue: string | null;
42529
+ snippetGroupId: string;
42530
+ snippetGroup: {
42531
+ id: string;
42532
+ name: string;
42533
+ createdAt: Date;
42534
+ updatedAt: Date;
42535
+ deletedAt: Date | null;
42536
+ platformType: string;
42537
+ };
42538
+ order?: number | undefined;
42539
+ }, {
42540
+ id: string;
42541
+ createdAt: Date;
42542
+ updatedAt: Date;
42543
+ deletedAt: Date | null;
42544
+ contentType: string;
42545
+ uploadId: string | null;
42546
+ shortcutName: string;
42547
+ contentValue: string | null;
42548
+ snippetGroupId: string;
42549
+ snippetGroup: {
42550
+ id: string;
42551
+ name: string;
42552
+ createdAt: Date;
42553
+ updatedAt: Date;
42554
+ deletedAt: Date | null;
42555
+ platformType: string;
42556
+ };
42557
+ order?: number | undefined;
42558
+ }>;
42559
+ }, "strip", import("zod").ZodTypeAny, {
42560
+ requestId: string;
42561
+ snippet: {
42562
+ id: string;
42563
+ createdAt: Date;
42564
+ updatedAt: Date;
42565
+ deletedAt: Date | null;
42566
+ contentType: string;
42567
+ uploadId: string | null;
42568
+ shortcutName: string;
42569
+ contentValue: string | null;
42570
+ snippetGroupId: string;
42571
+ snippetGroup: {
42572
+ id: string;
42573
+ name: string;
42574
+ createdAt: Date;
42575
+ updatedAt: Date;
42576
+ deletedAt: Date | null;
42577
+ platformType: string;
42578
+ };
42579
+ order?: number | undefined;
42580
+ };
42581
+ }, {
42582
+ requestId: string;
42583
+ snippet: {
42584
+ id: string;
42585
+ createdAt: Date;
42586
+ updatedAt: Date;
42587
+ deletedAt: Date | null;
42588
+ contentType: string;
42589
+ uploadId: string | null;
42590
+ shortcutName: string;
42591
+ contentValue: string | null;
42592
+ snippetGroupId: string;
42593
+ snippetGroup: {
42594
+ id: string;
42595
+ name: string;
42596
+ createdAt: Date;
42597
+ updatedAt: Date;
42598
+ deletedAt: Date | null;
42599
+ platformType: string;
42600
+ };
42601
+ order?: number | undefined;
42602
+ };
42603
+ }>;
42604
+ 500: import("zod").ZodObject<{
40451
42605
  message: import("zod").ZodString;
40452
42606
  error: import("zod").ZodAny;
40453
42607
  }, "strip", import("zod").ZodTypeAny, {
@@ -40458,23 +42612,38 @@ export declare const apiContract: {
40458
42612
  error?: any;
40459
42613
  }>;
40460
42614
  };
40461
- path: "/upload/:id";
40462
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
40463
- 'x-tenant': import("zod").ZodString;
40464
- authorization: import("zod").ZodString;
40465
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
40466
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
42615
+ path: "snippets/:id";
42616
+ };
42617
+ deleteSnippet: {
42618
+ body: null;
42619
+ method: "DELETE";
42620
+ pathParams: import("zod").ZodObject<{
42621
+ id: import("zod").ZodString;
40467
42622
  }, "strip", import("zod").ZodTypeAny, {
40468
- 'x-tenant': string;
40469
- authorization: string;
40470
- 'x-client-timezone': string;
40471
- 'x-code'?: string | undefined;
42623
+ id: string;
40472
42624
  }, {
40473
- 'x-tenant': string;
40474
- authorization: string;
40475
- 'x-code'?: string | undefined;
40476
- 'x-client-timezone'?: string | undefined;
40477
- }>>>;
42625
+ id: string;
42626
+ }>;
42627
+ responses: {
42628
+ 200: import("zod").ZodObject<{
42629
+ requestId: import("zod").ZodString;
42630
+ }, "strip", import("zod").ZodTypeAny, {
42631
+ requestId: string;
42632
+ }, {
42633
+ requestId: string;
42634
+ }>;
42635
+ 500: import("zod").ZodObject<{
42636
+ message: import("zod").ZodString;
42637
+ error: import("zod").ZodAny;
42638
+ }, "strip", import("zod").ZodTypeAny, {
42639
+ message: string;
42640
+ error?: any;
42641
+ }, {
42642
+ message: string;
42643
+ error?: any;
42644
+ }>;
42645
+ };
42646
+ path: "snippets/:id";
40478
42647
  };
40479
42648
  };
40480
42649
  };