@kl1/contracts 1.2.8-uat → 1.2.10-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/api-contracts/src/channel/index.d.ts +121 -0
  2. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/channel/schema.d.ts +8 -0
  4. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  5. package/dist/api-contracts/src/channel/validation.d.ts +8 -0
  6. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  7. package/dist/api-contracts/src/chat/index.d.ts +230 -0
  8. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  9. package/dist/api-contracts/src/chat/schema.d.ts +54 -0
  10. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  11. package/dist/api-contracts/src/chat/validation.d.ts +79 -0
  12. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  13. package/dist/api-contracts/src/contract.d.ts +664 -0
  14. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  15. package/dist/api-contracts/src/cx-log/index.d.ts +11 -0
  16. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  17. package/dist/api-contracts/src/cx-log/schema.d.ts +9 -0
  18. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  19. package/dist/api-contracts/src/facebook-feed/index.d.ts +106 -0
  20. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/facebook-feed/schema.d.ts +7 -0
  22. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  23. package/dist/api-contracts/src/facebook-feed/validation.d.ts +5 -0
  24. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  25. package/dist/api-contracts/src/instagram/index.d.ts +83 -0
  26. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  27. package/dist/api-contracts/src/line/index.d.ts +75 -0
  28. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  29. package/dist/api-contracts/src/line/validation.d.ts +9 -0
  30. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  31. package/dist/api-contracts/src/mail/account-contract.d.ts +276 -0
  32. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  33. package/dist/api-contracts/src/mail/mail-contract.d.ts +399 -1470
  34. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  35. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +47 -0
  36. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  37. package/dist/api-contracts/src/mail/message-contract.d.ts +10 -1404
  38. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  39. package/dist/api-contracts/src/mail/schemas/account-validation.schema.d.ts +139 -0
  40. package/dist/api-contracts/src/mail/schemas/account-validation.schema.d.ts.map +1 -1
  41. package/dist/api-contracts/src/messenger/index.d.ts +83 -0
  42. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  43. package/dist/api-contracts/src/messenger/validation.d.ts +5 -0
  44. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  45. package/dist/api-contracts/src/sms/index.d.ts +21 -0
  46. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  47. package/dist/api-contracts/src/sms/schema.d.ts +5 -0
  48. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  49. package/dist/api-contracts/src/sms/validation.d.ts +3 -0
  50. package/dist/api-contracts/src/sms/validation.d.ts.map +1 -1
  51. package/dist/api-contracts/src/viber/index.d.ts +61 -0
  52. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  53. package/dist/api-contracts/src/webchat/index.d.ts +40 -0
  54. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  55. package/dist/api-contracts/src/workflow-rule/index.d.ts +21 -0
  56. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  57. package/dist/index.js +71 -3
  58. package/dist/index.js.map +1 -1
  59. package/dist/index.mjs +71 -3
  60. package/dist/index.mjs.map +1 -1
  61. package/package.json +1 -1
@@ -5774,1414 +5774,20 @@ export declare const messageContract: {
5774
5774
  200: z.ZodObject<{
5775
5775
  requestId: z.ZodString;
5776
5776
  data: z.ZodObject<{
5777
- id: z.ZodString;
5778
- createdAt: z.ZodDate;
5779
- updatedAt: z.ZodDate;
5780
- deletedAt: z.ZodNullable<z.ZodDate>;
5781
- roomId: z.ZodString;
5782
- subject: z.ZodString;
5783
- textPlain: z.ZodString;
5784
- textHtml: z.ZodString;
5785
- textId: z.ZodString;
5786
- emailEngineEmailId: z.ZodString;
5787
- emailEngineMessageId: z.ZodString;
5788
- emailEngineReplyTo: z.ZodNullable<z.ZodString>;
5789
- direction: z.ZodString;
5790
- date: z.ZodDate;
5791
- action: z.ZodString;
5792
- unseen: z.ZodBoolean;
5793
- sendAt: z.ZodDate;
5794
- starred: z.ZodBoolean;
5795
- seemsLikeNew: z.ZodBoolean;
5796
- from: z.ZodArray<z.ZodObject<{
5797
- id: z.ZodString;
5798
- createdAt: z.ZodDate;
5799
- updatedAt: z.ZodDate;
5800
- deletedAt: z.ZodNullable<z.ZodDate>;
5801
- roomId: z.ZodString;
5802
- messageId: z.ZodString;
5803
- mailUserId: z.ZodString;
5804
- mailUser: z.ZodObject<{
5805
- id: z.ZodString;
5806
- createdAt: z.ZodDate;
5807
- updatedAt: z.ZodDate;
5808
- deletedAt: z.ZodNullable<z.ZodDate>;
5809
- name: z.ZodString;
5810
- address: z.ZodString;
5811
- contactId: z.ZodString;
5812
- contact: z.ZodObject<{
5813
- id: z.ZodString;
5814
- createdAt: z.ZodDate;
5815
- updatedAt: z.ZodDate;
5816
- deletedAt: z.ZodNullable<z.ZodDate>;
5817
- name: z.ZodString;
5818
- address: z.ZodNullable<z.ZodString>;
5819
- channel: z.ZodNullable<z.ZodString>;
5820
- notes: z.ZodNullable<z.ZodString>;
5821
- contactProfile: z.ZodNullable<z.ZodString>;
5822
- socialProfileUrl: z.ZodNullable<z.ZodString>;
5823
- }, "strip", z.ZodTypeAny, {
5824
- id: string;
5825
- channel: string | null;
5826
- address: string | null;
5827
- name: string;
5828
- createdAt: Date;
5829
- updatedAt: Date;
5830
- deletedAt: Date | null;
5831
- notes: string | null;
5832
- contactProfile: string | null;
5833
- socialProfileUrl: string | null;
5834
- }, {
5835
- id: string;
5836
- channel: string | null;
5837
- address: string | null;
5838
- name: string;
5839
- createdAt: Date;
5840
- updatedAt: Date;
5841
- deletedAt: Date | null;
5842
- notes: string | null;
5843
- contactProfile: string | null;
5844
- socialProfileUrl: string | null;
5845
- }>;
5846
- isNewContact: z.ZodBoolean;
5847
- }, "strip", z.ZodTypeAny, {
5848
- id: string;
5849
- address: string;
5850
- name: string;
5851
- createdAt: Date;
5852
- updatedAt: Date;
5853
- deletedAt: Date | null;
5854
- contact: {
5855
- id: string;
5856
- channel: string | null;
5857
- address: string | null;
5858
- name: string;
5859
- createdAt: Date;
5860
- updatedAt: Date;
5861
- deletedAt: Date | null;
5862
- notes: string | null;
5863
- contactProfile: string | null;
5864
- socialProfileUrl: string | null;
5865
- };
5866
- contactId: string;
5867
- isNewContact: boolean;
5868
- }, {
5869
- id: string;
5870
- address: string;
5871
- name: string;
5872
- createdAt: Date;
5873
- updatedAt: Date;
5874
- deletedAt: Date | null;
5875
- contact: {
5876
- id: string;
5877
- channel: string | null;
5878
- address: string | null;
5879
- name: string;
5880
- createdAt: Date;
5881
- updatedAt: Date;
5882
- deletedAt: Date | null;
5883
- notes: string | null;
5884
- contactProfile: string | null;
5885
- socialProfileUrl: string | null;
5886
- };
5887
- contactId: string;
5888
- isNewContact: boolean;
5889
- }>;
5890
- }, "strip", z.ZodTypeAny, {
5891
- id: string;
5892
- createdAt: Date;
5893
- updatedAt: Date;
5894
- deletedAt: Date | null;
5895
- roomId: string;
5896
- messageId: string;
5897
- mailUserId: string;
5898
- mailUser: {
5899
- id: string;
5900
- address: string;
5901
- name: string;
5902
- createdAt: Date;
5903
- updatedAt: Date;
5904
- deletedAt: Date | null;
5905
- contact: {
5906
- id: string;
5907
- channel: string | null;
5908
- address: string | null;
5909
- name: string;
5910
- createdAt: Date;
5911
- updatedAt: Date;
5912
- deletedAt: Date | null;
5913
- notes: string | null;
5914
- contactProfile: string | null;
5915
- socialProfileUrl: string | null;
5916
- };
5917
- contactId: string;
5918
- isNewContact: boolean;
5919
- };
5920
- }, {
5921
- id: string;
5922
- createdAt: Date;
5923
- updatedAt: Date;
5924
- deletedAt: Date | null;
5925
- roomId: string;
5926
- messageId: string;
5927
- mailUserId: string;
5928
- mailUser: {
5929
- id: string;
5930
- address: string;
5931
- name: string;
5932
- createdAt: Date;
5933
- updatedAt: Date;
5934
- deletedAt: Date | null;
5935
- contact: {
5936
- id: string;
5937
- channel: string | null;
5938
- address: string | null;
5939
- name: string;
5940
- createdAt: Date;
5941
- updatedAt: Date;
5942
- deletedAt: Date | null;
5943
- notes: string | null;
5944
- contactProfile: string | null;
5945
- socialProfileUrl: string | null;
5946
- };
5947
- contactId: string;
5948
- isNewContact: boolean;
5949
- };
5950
- }>, "many">;
5951
- to: z.ZodArray<z.ZodObject<{
5952
- id: z.ZodString;
5953
- createdAt: z.ZodDate;
5954
- updatedAt: z.ZodDate;
5955
- deletedAt: z.ZodNullable<z.ZodDate>;
5956
- roomId: z.ZodString;
5957
- messageId: z.ZodString;
5958
- mailUserId: z.ZodString;
5959
- mailUser: z.ZodObject<{
5960
- id: z.ZodString;
5961
- createdAt: z.ZodDate;
5962
- updatedAt: z.ZodDate;
5963
- deletedAt: z.ZodNullable<z.ZodDate>;
5964
- name: z.ZodString;
5965
- address: z.ZodString;
5966
- contactId: z.ZodString;
5967
- contact: z.ZodObject<{
5968
- id: z.ZodString;
5969
- createdAt: z.ZodDate;
5970
- updatedAt: z.ZodDate;
5971
- deletedAt: z.ZodNullable<z.ZodDate>;
5972
- name: z.ZodString;
5973
- address: z.ZodNullable<z.ZodString>;
5974
- channel: z.ZodNullable<z.ZodString>;
5975
- notes: z.ZodNullable<z.ZodString>;
5976
- contactProfile: z.ZodNullable<z.ZodString>;
5977
- socialProfileUrl: z.ZodNullable<z.ZodString>;
5978
- }, "strip", z.ZodTypeAny, {
5979
- id: string;
5980
- channel: string | null;
5981
- address: string | null;
5982
- name: string;
5983
- createdAt: Date;
5984
- updatedAt: Date;
5985
- deletedAt: Date | null;
5986
- notes: string | null;
5987
- contactProfile: string | null;
5988
- socialProfileUrl: string | null;
5989
- }, {
5990
- id: string;
5991
- channel: string | null;
5992
- address: string | null;
5993
- name: string;
5994
- createdAt: Date;
5995
- updatedAt: Date;
5996
- deletedAt: Date | null;
5997
- notes: string | null;
5998
- contactProfile: string | null;
5999
- socialProfileUrl: string | null;
6000
- }>;
6001
- isNewContact: z.ZodBoolean;
6002
- }, "strip", z.ZodTypeAny, {
6003
- id: string;
6004
- address: string;
6005
- name: string;
6006
- createdAt: Date;
6007
- updatedAt: Date;
6008
- deletedAt: Date | null;
6009
- contact: {
6010
- id: string;
6011
- channel: string | null;
6012
- address: string | null;
6013
- name: string;
6014
- createdAt: Date;
6015
- updatedAt: Date;
6016
- deletedAt: Date | null;
6017
- notes: string | null;
6018
- contactProfile: string | null;
6019
- socialProfileUrl: string | null;
6020
- };
6021
- contactId: string;
6022
- isNewContact: boolean;
6023
- }, {
6024
- id: string;
6025
- address: string;
6026
- name: string;
6027
- createdAt: Date;
6028
- updatedAt: Date;
6029
- deletedAt: Date | null;
6030
- contact: {
6031
- id: string;
6032
- channel: string | null;
6033
- address: string | null;
6034
- name: string;
6035
- createdAt: Date;
6036
- updatedAt: Date;
6037
- deletedAt: Date | null;
6038
- notes: string | null;
6039
- contactProfile: string | null;
6040
- socialProfileUrl: string | null;
6041
- };
6042
- contactId: string;
6043
- isNewContact: boolean;
6044
- }>;
6045
- }, "strip", z.ZodTypeAny, {
6046
- id: string;
6047
- createdAt: Date;
6048
- updatedAt: Date;
6049
- deletedAt: Date | null;
6050
- roomId: string;
6051
- messageId: string;
6052
- mailUserId: string;
6053
- mailUser: {
6054
- id: string;
6055
- address: string;
6056
- name: string;
6057
- createdAt: Date;
6058
- updatedAt: Date;
6059
- deletedAt: Date | null;
6060
- contact: {
6061
- id: string;
6062
- channel: string | null;
6063
- address: string | null;
6064
- name: string;
6065
- createdAt: Date;
6066
- updatedAt: Date;
6067
- deletedAt: Date | null;
6068
- notes: string | null;
6069
- contactProfile: string | null;
6070
- socialProfileUrl: string | null;
6071
- };
6072
- contactId: string;
6073
- isNewContact: boolean;
6074
- };
6075
- }, {
6076
- id: string;
6077
- createdAt: Date;
6078
- updatedAt: Date;
6079
- deletedAt: Date | null;
6080
- roomId: string;
6081
- messageId: string;
6082
- mailUserId: string;
6083
- mailUser: {
6084
- id: string;
6085
- address: string;
6086
- name: string;
6087
- createdAt: Date;
6088
- updatedAt: Date;
6089
- deletedAt: Date | null;
6090
- contact: {
6091
- id: string;
6092
- channel: string | null;
6093
- address: string | null;
6094
- name: string;
6095
- createdAt: Date;
6096
- updatedAt: Date;
6097
- deletedAt: Date | null;
6098
- notes: string | null;
6099
- contactProfile: string | null;
6100
- socialProfileUrl: string | null;
6101
- };
6102
- contactId: string;
6103
- isNewContact: boolean;
6104
- };
6105
- }>, "many">;
6106
- cc: z.ZodArray<z.ZodObject<{
6107
- id: z.ZodString;
6108
- createdAt: z.ZodDate;
6109
- updatedAt: z.ZodDate;
6110
- deletedAt: z.ZodNullable<z.ZodDate>;
6111
- roomId: z.ZodString;
6112
- messageId: z.ZodString;
6113
- mailUserId: z.ZodString;
6114
- mailUser: z.ZodObject<{
6115
- id: z.ZodString;
6116
- createdAt: z.ZodDate;
6117
- updatedAt: z.ZodDate;
6118
- deletedAt: z.ZodNullable<z.ZodDate>;
6119
- name: z.ZodString;
6120
- address: z.ZodString;
6121
- contactId: z.ZodString;
6122
- contact: z.ZodObject<{
6123
- id: z.ZodString;
6124
- createdAt: z.ZodDate;
6125
- updatedAt: z.ZodDate;
6126
- deletedAt: z.ZodNullable<z.ZodDate>;
6127
- name: z.ZodString;
6128
- address: z.ZodNullable<z.ZodString>;
6129
- channel: z.ZodNullable<z.ZodString>;
6130
- notes: z.ZodNullable<z.ZodString>;
6131
- contactProfile: z.ZodNullable<z.ZodString>;
6132
- socialProfileUrl: z.ZodNullable<z.ZodString>;
6133
- }, "strip", z.ZodTypeAny, {
6134
- id: string;
6135
- channel: string | null;
6136
- address: string | null;
6137
- name: string;
6138
- createdAt: Date;
6139
- updatedAt: Date;
6140
- deletedAt: Date | null;
6141
- notes: string | null;
6142
- contactProfile: string | null;
6143
- socialProfileUrl: string | null;
6144
- }, {
6145
- id: string;
6146
- channel: string | null;
6147
- address: string | null;
6148
- name: string;
6149
- createdAt: Date;
6150
- updatedAt: Date;
6151
- deletedAt: Date | null;
6152
- notes: string | null;
6153
- contactProfile: string | null;
6154
- socialProfileUrl: string | null;
6155
- }>;
6156
- isNewContact: z.ZodBoolean;
6157
- }, "strip", z.ZodTypeAny, {
6158
- id: string;
6159
- address: string;
6160
- name: string;
6161
- createdAt: Date;
6162
- updatedAt: Date;
6163
- deletedAt: Date | null;
6164
- contact: {
6165
- id: string;
6166
- channel: string | null;
6167
- address: string | null;
6168
- name: string;
6169
- createdAt: Date;
6170
- updatedAt: Date;
6171
- deletedAt: Date | null;
6172
- notes: string | null;
6173
- contactProfile: string | null;
6174
- socialProfileUrl: string | null;
6175
- };
6176
- contactId: string;
6177
- isNewContact: boolean;
6178
- }, {
6179
- id: string;
6180
- address: string;
6181
- name: string;
6182
- createdAt: Date;
6183
- updatedAt: Date;
6184
- deletedAt: Date | null;
6185
- contact: {
6186
- id: string;
6187
- channel: string | null;
6188
- address: string | null;
6189
- name: string;
6190
- createdAt: Date;
6191
- updatedAt: Date;
6192
- deletedAt: Date | null;
6193
- notes: string | null;
6194
- contactProfile: string | null;
6195
- socialProfileUrl: string | null;
6196
- };
6197
- contactId: string;
6198
- isNewContact: boolean;
6199
- }>;
6200
- }, "strip", z.ZodTypeAny, {
6201
- id: string;
6202
- createdAt: Date;
6203
- updatedAt: Date;
6204
- deletedAt: Date | null;
6205
- roomId: string;
6206
- messageId: string;
6207
- mailUserId: string;
6208
- mailUser: {
6209
- id: string;
6210
- address: string;
6211
- name: string;
6212
- createdAt: Date;
6213
- updatedAt: Date;
6214
- deletedAt: Date | null;
6215
- contact: {
6216
- id: string;
6217
- channel: string | null;
6218
- address: string | null;
6219
- name: string;
6220
- createdAt: Date;
6221
- updatedAt: Date;
6222
- deletedAt: Date | null;
6223
- notes: string | null;
6224
- contactProfile: string | null;
6225
- socialProfileUrl: string | null;
6226
- };
6227
- contactId: string;
6228
- isNewContact: boolean;
6229
- };
6230
- }, {
6231
- id: string;
6232
- createdAt: Date;
6233
- updatedAt: Date;
6234
- deletedAt: Date | null;
6235
- roomId: string;
6236
- messageId: string;
6237
- mailUserId: string;
6238
- mailUser: {
6239
- id: string;
6240
- address: string;
6241
- name: string;
6242
- createdAt: Date;
6243
- updatedAt: Date;
6244
- deletedAt: Date | null;
6245
- contact: {
6246
- id: string;
6247
- channel: string | null;
6248
- address: string | null;
6249
- name: string;
6250
- createdAt: Date;
6251
- updatedAt: Date;
6252
- deletedAt: Date | null;
6253
- notes: string | null;
6254
- contactProfile: string | null;
6255
- socialProfileUrl: string | null;
6256
- };
6257
- contactId: string;
6258
- isNewContact: boolean;
6259
- };
6260
- }>, "many">;
6261
- bcc: z.ZodArray<z.ZodObject<{
6262
- id: z.ZodString;
6263
- createdAt: z.ZodDate;
6264
- updatedAt: z.ZodDate;
6265
- deletedAt: z.ZodNullable<z.ZodDate>;
6266
- roomId: z.ZodString;
6267
- messageId: z.ZodString;
6268
- mailUserId: z.ZodString;
6269
- mailUser: z.ZodObject<{
6270
- id: z.ZodString;
6271
- createdAt: z.ZodDate;
6272
- updatedAt: z.ZodDate;
6273
- deletedAt: z.ZodNullable<z.ZodDate>;
6274
- name: z.ZodString;
6275
- address: z.ZodString;
6276
- contactId: z.ZodString;
6277
- contact: z.ZodObject<{
6278
- id: z.ZodString;
6279
- createdAt: z.ZodDate;
6280
- updatedAt: z.ZodDate;
6281
- deletedAt: z.ZodNullable<z.ZodDate>;
6282
- name: z.ZodString;
6283
- address: z.ZodNullable<z.ZodString>;
6284
- channel: z.ZodNullable<z.ZodString>;
6285
- notes: z.ZodNullable<z.ZodString>;
6286
- contactProfile: z.ZodNullable<z.ZodString>;
6287
- socialProfileUrl: z.ZodNullable<z.ZodString>;
6288
- }, "strip", z.ZodTypeAny, {
6289
- id: string;
6290
- channel: string | null;
6291
- address: string | null;
6292
- name: string;
6293
- createdAt: Date;
6294
- updatedAt: Date;
6295
- deletedAt: Date | null;
6296
- notes: string | null;
6297
- contactProfile: string | null;
6298
- socialProfileUrl: string | null;
6299
- }, {
6300
- id: string;
6301
- channel: string | null;
6302
- address: string | null;
6303
- name: string;
6304
- createdAt: Date;
6305
- updatedAt: Date;
6306
- deletedAt: Date | null;
6307
- notes: string | null;
6308
- contactProfile: string | null;
6309
- socialProfileUrl: string | null;
6310
- }>;
6311
- isNewContact: z.ZodBoolean;
6312
- }, "strip", z.ZodTypeAny, {
6313
- id: string;
6314
- address: string;
6315
- name: string;
6316
- createdAt: Date;
6317
- updatedAt: Date;
6318
- deletedAt: Date | null;
6319
- contact: {
6320
- id: string;
6321
- channel: string | null;
6322
- address: string | null;
6323
- name: string;
6324
- createdAt: Date;
6325
- updatedAt: Date;
6326
- deletedAt: Date | null;
6327
- notes: string | null;
6328
- contactProfile: string | null;
6329
- socialProfileUrl: string | null;
6330
- };
6331
- contactId: string;
6332
- isNewContact: boolean;
6333
- }, {
6334
- id: string;
6335
- address: string;
6336
- name: string;
6337
- createdAt: Date;
6338
- updatedAt: Date;
6339
- deletedAt: Date | null;
6340
- contact: {
6341
- id: string;
6342
- channel: string | null;
6343
- address: string | null;
6344
- name: string;
6345
- createdAt: Date;
6346
- updatedAt: Date;
6347
- deletedAt: Date | null;
6348
- notes: string | null;
6349
- contactProfile: string | null;
6350
- socialProfileUrl: string | null;
6351
- };
6352
- contactId: string;
6353
- isNewContact: boolean;
6354
- }>;
6355
- }, "strip", z.ZodTypeAny, {
6356
- id: string;
6357
- createdAt: Date;
6358
- updatedAt: Date;
6359
- deletedAt: Date | null;
6360
- roomId: string;
6361
- messageId: string;
6362
- mailUserId: string;
6363
- mailUser: {
6364
- id: string;
6365
- address: string;
6366
- name: string;
6367
- createdAt: Date;
6368
- updatedAt: Date;
6369
- deletedAt: Date | null;
6370
- contact: {
6371
- id: string;
6372
- channel: string | null;
6373
- address: string | null;
6374
- name: string;
6375
- createdAt: Date;
6376
- updatedAt: Date;
6377
- deletedAt: Date | null;
6378
- notes: string | null;
6379
- contactProfile: string | null;
6380
- socialProfileUrl: string | null;
6381
- };
6382
- contactId: string;
6383
- isNewContact: boolean;
6384
- };
6385
- }, {
6386
- id: string;
6387
- createdAt: Date;
6388
- updatedAt: Date;
6389
- deletedAt: Date | null;
6390
- roomId: string;
6391
- messageId: string;
6392
- mailUserId: string;
6393
- mailUser: {
6394
- id: string;
6395
- address: string;
6396
- name: string;
6397
- createdAt: Date;
6398
- updatedAt: Date;
6399
- deletedAt: Date | null;
6400
- contact: {
6401
- id: string;
6402
- channel: string | null;
6403
- address: string | null;
6404
- name: string;
6405
- createdAt: Date;
6406
- updatedAt: Date;
6407
- deletedAt: Date | null;
6408
- notes: string | null;
6409
- contactProfile: string | null;
6410
- socialProfileUrl: string | null;
6411
- };
6412
- contactId: string;
6413
- isNewContact: boolean;
6414
- };
6415
- }>, "many">;
6416
- attachments: z.ZodArray<z.ZodObject<{
6417
- id: z.ZodString;
6418
- createdAt: z.ZodDate;
6419
- updatedAt: z.ZodDate;
6420
- deletedAt: z.ZodNullable<z.ZodDate>;
6421
- roomId: z.ZodString;
6422
- messageId: z.ZodString;
6423
- fileName: z.ZodString;
6424
- fileType: z.ZodString;
6425
- emailEngineAttachmentId: z.ZodString;
6426
- uploadId: z.ZodString;
6427
- upload: z.ZodObject<{
6428
- id: z.ZodString;
6429
- createdAt: z.ZodDate;
6430
- updatedAt: z.ZodDate;
6431
- deletedAt: z.ZodNullable<z.ZodDate>;
6432
- bucketName: z.ZodString;
6433
- fileName: z.ZodString;
6434
- fileKey: z.ZodString;
6435
- fileSize: z.ZodNumber;
6436
- fileUrl: z.ZodString;
6437
- extensionName: z.ZodString;
6438
- }, "strip", z.ZodTypeAny, {
6439
- id: string;
6440
- createdAt: Date;
6441
- updatedAt: Date;
6442
- deletedAt: Date | null;
6443
- extensionName: string;
6444
- fileName: string;
6445
- fileKey: string;
6446
- bucketName: string;
6447
- fileSize: number;
6448
- fileUrl: string;
6449
- }, {
6450
- id: string;
6451
- createdAt: Date;
6452
- updatedAt: Date;
6453
- deletedAt: Date | null;
6454
- extensionName: string;
6455
- fileName: string;
6456
- fileKey: string;
6457
- bucketName: string;
6458
- fileSize: number;
6459
- fileUrl: string;
6460
- }>;
6461
- }, "strip", z.ZodTypeAny, {
6462
- id: string;
6463
- createdAt: Date;
6464
- updatedAt: Date;
6465
- deletedAt: Date | null;
6466
- fileName: string;
6467
- fileType: string;
6468
- uploadId: string;
6469
- upload: {
6470
- id: string;
6471
- createdAt: Date;
6472
- updatedAt: Date;
6473
- deletedAt: Date | null;
6474
- extensionName: string;
6475
- fileName: string;
6476
- fileKey: string;
6477
- bucketName: string;
6478
- fileSize: number;
6479
- fileUrl: string;
6480
- };
6481
- roomId: string;
6482
- messageId: string;
6483
- emailEngineAttachmentId: string;
6484
- }, {
6485
- id: string;
6486
- createdAt: Date;
6487
- updatedAt: Date;
6488
- deletedAt: Date | null;
6489
- fileName: string;
6490
- fileType: string;
6491
- uploadId: string;
6492
- upload: {
6493
- id: string;
6494
- createdAt: Date;
6495
- updatedAt: Date;
6496
- deletedAt: Date | null;
6497
- extensionName: string;
6498
- fileName: string;
6499
- fileKey: string;
6500
- bucketName: string;
6501
- fileSize: number;
6502
- fileUrl: string;
6503
- };
6504
- roomId: string;
6505
- messageId: string;
6506
- emailEngineAttachmentId: string;
6507
- }>, "many">;
6508
- }, "strip", z.ZodTypeAny, {
6509
- id: string;
6510
- direction: string;
6511
- action: string;
6512
- date: Date;
6513
- createdAt: Date;
6514
- updatedAt: Date;
6515
- deletedAt: Date | null;
6516
- roomId: string;
6517
- from: {
6518
- id: string;
6519
- createdAt: Date;
6520
- updatedAt: Date;
6521
- deletedAt: Date | null;
6522
- roomId: string;
6523
- messageId: string;
6524
- mailUserId: string;
6525
- mailUser: {
6526
- id: string;
6527
- address: string;
6528
- name: string;
6529
- createdAt: Date;
6530
- updatedAt: Date;
6531
- deletedAt: Date | null;
6532
- contact: {
6533
- id: string;
6534
- channel: string | null;
6535
- address: string | null;
6536
- name: string;
6537
- createdAt: Date;
6538
- updatedAt: Date;
6539
- deletedAt: Date | null;
6540
- notes: string | null;
6541
- contactProfile: string | null;
6542
- socialProfileUrl: string | null;
6543
- };
6544
- contactId: string;
6545
- isNewContact: boolean;
6546
- };
6547
- }[];
6548
- attachments: {
6549
- id: string;
6550
- createdAt: Date;
6551
- updatedAt: Date;
6552
- deletedAt: Date | null;
6553
- fileName: string;
6554
- fileType: string;
6555
- uploadId: string;
6556
- upload: {
6557
- id: string;
6558
- createdAt: Date;
6559
- updatedAt: Date;
6560
- deletedAt: Date | null;
6561
- extensionName: string;
6562
- fileName: string;
6563
- fileKey: string;
6564
- bucketName: string;
6565
- fileSize: number;
6566
- fileUrl: string;
6567
- };
6568
- roomId: string;
6569
- messageId: string;
6570
- emailEngineAttachmentId: string;
6571
- }[];
6572
- subject: string;
6573
- to: {
6574
- id: string;
6575
- createdAt: Date;
6576
- updatedAt: Date;
6577
- deletedAt: Date | null;
6578
- roomId: string;
6579
- messageId: string;
6580
- mailUserId: string;
6581
- mailUser: {
6582
- id: string;
6583
- address: string;
6584
- name: string;
6585
- createdAt: Date;
6586
- updatedAt: Date;
6587
- deletedAt: Date | null;
6588
- contact: {
6589
- id: string;
6590
- channel: string | null;
6591
- address: string | null;
6592
- name: string;
6593
- createdAt: Date;
6594
- updatedAt: Date;
6595
- deletedAt: Date | null;
6596
- notes: string | null;
6597
- contactProfile: string | null;
6598
- socialProfileUrl: string | null;
6599
- };
6600
- contactId: string;
6601
- isNewContact: boolean;
6602
- };
6603
- }[];
6604
- cc: {
6605
- id: string;
6606
- createdAt: Date;
6607
- updatedAt: Date;
6608
- deletedAt: Date | null;
6609
- roomId: string;
6610
- messageId: string;
6611
- mailUserId: string;
6612
- mailUser: {
6613
- id: string;
6614
- address: string;
6615
- name: string;
6616
- createdAt: Date;
6617
- updatedAt: Date;
6618
- deletedAt: Date | null;
6619
- contact: {
6620
- id: string;
6621
- channel: string | null;
6622
- address: string | null;
6623
- name: string;
6624
- createdAt: Date;
6625
- updatedAt: Date;
6626
- deletedAt: Date | null;
6627
- notes: string | null;
6628
- contactProfile: string | null;
6629
- socialProfileUrl: string | null;
6630
- };
6631
- contactId: string;
6632
- isNewContact: boolean;
6633
- };
6634
- }[];
6635
- bcc: {
6636
- id: string;
6637
- createdAt: Date;
6638
- updatedAt: Date;
6639
- deletedAt: Date | null;
6640
- roomId: string;
6641
- messageId: string;
6642
- mailUserId: string;
6643
- mailUser: {
6644
- id: string;
6645
- address: string;
6646
- name: string;
6647
- createdAt: Date;
6648
- updatedAt: Date;
6649
- deletedAt: Date | null;
6650
- contact: {
6651
- id: string;
6652
- channel: string | null;
6653
- address: string | null;
6654
- name: string;
6655
- createdAt: Date;
6656
- updatedAt: Date;
6657
- deletedAt: Date | null;
6658
- notes: string | null;
6659
- contactProfile: string | null;
6660
- socialProfileUrl: string | null;
6661
- };
6662
- contactId: string;
6663
- isNewContact: boolean;
6664
- };
6665
- }[];
6666
- sendAt: Date;
6667
- textPlain: string;
6668
- textHtml: string;
6669
- textId: string;
6670
- emailEngineEmailId: string;
6671
- emailEngineMessageId: string;
6672
- emailEngineReplyTo: string | null;
6673
- unseen: boolean;
6674
- starred: boolean;
6675
- seemsLikeNew: boolean;
6676
- }, {
6677
- id: string;
6678
- direction: string;
6679
- action: string;
6680
- date: Date;
6681
- createdAt: Date;
6682
- updatedAt: Date;
6683
- deletedAt: Date | null;
6684
- roomId: string;
6685
- from: {
6686
- id: string;
6687
- createdAt: Date;
6688
- updatedAt: Date;
6689
- deletedAt: Date | null;
6690
- roomId: string;
6691
- messageId: string;
6692
- mailUserId: string;
6693
- mailUser: {
6694
- id: string;
6695
- address: string;
6696
- name: string;
6697
- createdAt: Date;
6698
- updatedAt: Date;
6699
- deletedAt: Date | null;
6700
- contact: {
6701
- id: string;
6702
- channel: string | null;
6703
- address: string | null;
6704
- name: string;
6705
- createdAt: Date;
6706
- updatedAt: Date;
6707
- deletedAt: Date | null;
6708
- notes: string | null;
6709
- contactProfile: string | null;
6710
- socialProfileUrl: string | null;
6711
- };
6712
- contactId: string;
6713
- isNewContact: boolean;
6714
- };
6715
- }[];
6716
- attachments: {
6717
- id: string;
6718
- createdAt: Date;
6719
- updatedAt: Date;
6720
- deletedAt: Date | null;
6721
- fileName: string;
6722
- fileType: string;
6723
- uploadId: string;
6724
- upload: {
6725
- id: string;
6726
- createdAt: Date;
6727
- updatedAt: Date;
6728
- deletedAt: Date | null;
6729
- extensionName: string;
6730
- fileName: string;
6731
- fileKey: string;
6732
- bucketName: string;
6733
- fileSize: number;
6734
- fileUrl: string;
6735
- };
6736
- roomId: string;
6737
- messageId: string;
6738
- emailEngineAttachmentId: string;
6739
- }[];
6740
- subject: string;
6741
- to: {
6742
- id: string;
6743
- createdAt: Date;
6744
- updatedAt: Date;
6745
- deletedAt: Date | null;
6746
- roomId: string;
6747
- messageId: string;
6748
- mailUserId: string;
6749
- mailUser: {
6750
- id: string;
6751
- address: string;
6752
- name: string;
6753
- createdAt: Date;
6754
- updatedAt: Date;
6755
- deletedAt: Date | null;
6756
- contact: {
6757
- id: string;
6758
- channel: string | null;
6759
- address: string | null;
6760
- name: string;
6761
- createdAt: Date;
6762
- updatedAt: Date;
6763
- deletedAt: Date | null;
6764
- notes: string | null;
6765
- contactProfile: string | null;
6766
- socialProfileUrl: string | null;
6767
- };
6768
- contactId: string;
6769
- isNewContact: boolean;
6770
- };
6771
- }[];
6772
- cc: {
6773
- id: string;
6774
- createdAt: Date;
6775
- updatedAt: Date;
6776
- deletedAt: Date | null;
6777
- roomId: string;
6778
- messageId: string;
6779
- mailUserId: string;
6780
- mailUser: {
6781
- id: string;
6782
- address: string;
6783
- name: string;
6784
- createdAt: Date;
6785
- updatedAt: Date;
6786
- deletedAt: Date | null;
6787
- contact: {
6788
- id: string;
6789
- channel: string | null;
6790
- address: string | null;
6791
- name: string;
6792
- createdAt: Date;
6793
- updatedAt: Date;
6794
- deletedAt: Date | null;
6795
- notes: string | null;
6796
- contactProfile: string | null;
6797
- socialProfileUrl: string | null;
6798
- };
6799
- contactId: string;
6800
- isNewContact: boolean;
6801
- };
6802
- }[];
6803
- bcc: {
6804
- id: string;
6805
- createdAt: Date;
6806
- updatedAt: Date;
6807
- deletedAt: Date | null;
6808
- roomId: string;
6809
- messageId: string;
6810
- mailUserId: string;
6811
- mailUser: {
6812
- id: string;
6813
- address: string;
6814
- name: string;
6815
- createdAt: Date;
6816
- updatedAt: Date;
6817
- deletedAt: Date | null;
6818
- contact: {
6819
- id: string;
6820
- channel: string | null;
6821
- address: string | null;
6822
- name: string;
6823
- createdAt: Date;
6824
- updatedAt: Date;
6825
- deletedAt: Date | null;
6826
- notes: string | null;
6827
- contactProfile: string | null;
6828
- socialProfileUrl: string | null;
6829
- };
6830
- contactId: string;
6831
- isNewContact: boolean;
6832
- };
6833
- }[];
6834
- sendAt: Date;
6835
- textPlain: string;
6836
- textHtml: string;
6837
- textId: string;
6838
- emailEngineEmailId: string;
6839
- emailEngineMessageId: string;
6840
- emailEngineReplyTo: string | null;
6841
- unseen: boolean;
6842
- starred: boolean;
6843
- seemsLikeNew: boolean;
6844
- }>;
6845
- }, "strip", z.ZodTypeAny, {
6846
- data: {
6847
- id: string;
6848
- direction: string;
6849
- action: string;
6850
- date: Date;
6851
- createdAt: Date;
6852
- updatedAt: Date;
6853
- deletedAt: Date | null;
6854
- roomId: string;
6855
- from: {
6856
- id: string;
6857
- createdAt: Date;
6858
- updatedAt: Date;
6859
- deletedAt: Date | null;
6860
- roomId: string;
6861
- messageId: string;
6862
- mailUserId: string;
6863
- mailUser: {
6864
- id: string;
6865
- address: string;
6866
- name: string;
6867
- createdAt: Date;
6868
- updatedAt: Date;
6869
- deletedAt: Date | null;
6870
- contact: {
6871
- id: string;
6872
- channel: string | null;
6873
- address: string | null;
6874
- name: string;
6875
- createdAt: Date;
6876
- updatedAt: Date;
6877
- deletedAt: Date | null;
6878
- notes: string | null;
6879
- contactProfile: string | null;
6880
- socialProfileUrl: string | null;
6881
- };
6882
- contactId: string;
6883
- isNewContact: boolean;
6884
- };
6885
- }[];
6886
- attachments: {
6887
- id: string;
6888
- createdAt: Date;
6889
- updatedAt: Date;
6890
- deletedAt: Date | null;
6891
- fileName: string;
6892
- fileType: string;
6893
- uploadId: string;
6894
- upload: {
6895
- id: string;
6896
- createdAt: Date;
6897
- updatedAt: Date;
6898
- deletedAt: Date | null;
6899
- extensionName: string;
6900
- fileName: string;
6901
- fileKey: string;
6902
- bucketName: string;
6903
- fileSize: number;
6904
- fileUrl: string;
6905
- };
6906
- roomId: string;
6907
- messageId: string;
6908
- emailEngineAttachmentId: string;
6909
- }[];
6910
- subject: string;
6911
- to: {
6912
- id: string;
6913
- createdAt: Date;
6914
- updatedAt: Date;
6915
- deletedAt: Date | null;
6916
- roomId: string;
6917
- messageId: string;
6918
- mailUserId: string;
6919
- mailUser: {
6920
- id: string;
6921
- address: string;
6922
- name: string;
6923
- createdAt: Date;
6924
- updatedAt: Date;
6925
- deletedAt: Date | null;
6926
- contact: {
6927
- id: string;
6928
- channel: string | null;
6929
- address: string | null;
6930
- name: string;
6931
- createdAt: Date;
6932
- updatedAt: Date;
6933
- deletedAt: Date | null;
6934
- notes: string | null;
6935
- contactProfile: string | null;
6936
- socialProfileUrl: string | null;
6937
- };
6938
- contactId: string;
6939
- isNewContact: boolean;
6940
- };
6941
- }[];
6942
- cc: {
6943
- id: string;
6944
- createdAt: Date;
6945
- updatedAt: Date;
6946
- deletedAt: Date | null;
6947
- roomId: string;
6948
- messageId: string;
6949
- mailUserId: string;
6950
- mailUser: {
6951
- id: string;
6952
- address: string;
6953
- name: string;
6954
- createdAt: Date;
6955
- updatedAt: Date;
6956
- deletedAt: Date | null;
6957
- contact: {
6958
- id: string;
6959
- channel: string | null;
6960
- address: string | null;
6961
- name: string;
6962
- createdAt: Date;
6963
- updatedAt: Date;
6964
- deletedAt: Date | null;
6965
- notes: string | null;
6966
- contactProfile: string | null;
6967
- socialProfileUrl: string | null;
6968
- };
6969
- contactId: string;
6970
- isNewContact: boolean;
6971
- };
6972
- }[];
6973
- bcc: {
6974
- id: string;
6975
- createdAt: Date;
6976
- updatedAt: Date;
6977
- deletedAt: Date | null;
6978
- roomId: string;
6979
- messageId: string;
6980
- mailUserId: string;
6981
- mailUser: {
6982
- id: string;
6983
- address: string;
6984
- name: string;
6985
- createdAt: Date;
6986
- updatedAt: Date;
6987
- deletedAt: Date | null;
6988
- contact: {
6989
- id: string;
6990
- channel: string | null;
6991
- address: string | null;
6992
- name: string;
6993
- createdAt: Date;
6994
- updatedAt: Date;
6995
- deletedAt: Date | null;
6996
- notes: string | null;
6997
- contactProfile: string | null;
6998
- socialProfileUrl: string | null;
6999
- };
7000
- contactId: string;
7001
- isNewContact: boolean;
7002
- };
7003
- }[];
7004
- sendAt: Date;
7005
- textPlain: string;
7006
- textHtml: string;
7007
- textId: string;
7008
- emailEngineEmailId: string;
7009
- emailEngineMessageId: string;
7010
- emailEngineReplyTo: string | null;
7011
- unseen: boolean;
7012
- starred: boolean;
7013
- seemsLikeNew: boolean;
5777
+ totalMessagesCount: z.ZodNumber;
5778
+ }, "strip", z.ZodTypeAny, {
5779
+ totalMessagesCount: number;
5780
+ }, {
5781
+ totalMessagesCount: number;
5782
+ }>;
5783
+ }, "strip", z.ZodTypeAny, {
5784
+ data: {
5785
+ totalMessagesCount: number;
7014
5786
  };
7015
5787
  requestId: string;
7016
5788
  }, {
7017
5789
  data: {
7018
- id: string;
7019
- direction: string;
7020
- action: string;
7021
- date: Date;
7022
- createdAt: Date;
7023
- updatedAt: Date;
7024
- deletedAt: Date | null;
7025
- roomId: string;
7026
- from: {
7027
- id: string;
7028
- createdAt: Date;
7029
- updatedAt: Date;
7030
- deletedAt: Date | null;
7031
- roomId: string;
7032
- messageId: string;
7033
- mailUserId: string;
7034
- mailUser: {
7035
- id: string;
7036
- address: string;
7037
- name: string;
7038
- createdAt: Date;
7039
- updatedAt: Date;
7040
- deletedAt: Date | null;
7041
- contact: {
7042
- id: string;
7043
- channel: string | null;
7044
- address: string | null;
7045
- name: string;
7046
- createdAt: Date;
7047
- updatedAt: Date;
7048
- deletedAt: Date | null;
7049
- notes: string | null;
7050
- contactProfile: string | null;
7051
- socialProfileUrl: string | null;
7052
- };
7053
- contactId: string;
7054
- isNewContact: boolean;
7055
- };
7056
- }[];
7057
- attachments: {
7058
- id: string;
7059
- createdAt: Date;
7060
- updatedAt: Date;
7061
- deletedAt: Date | null;
7062
- fileName: string;
7063
- fileType: string;
7064
- uploadId: string;
7065
- upload: {
7066
- id: string;
7067
- createdAt: Date;
7068
- updatedAt: Date;
7069
- deletedAt: Date | null;
7070
- extensionName: string;
7071
- fileName: string;
7072
- fileKey: string;
7073
- bucketName: string;
7074
- fileSize: number;
7075
- fileUrl: string;
7076
- };
7077
- roomId: string;
7078
- messageId: string;
7079
- emailEngineAttachmentId: string;
7080
- }[];
7081
- subject: string;
7082
- to: {
7083
- id: string;
7084
- createdAt: Date;
7085
- updatedAt: Date;
7086
- deletedAt: Date | null;
7087
- roomId: string;
7088
- messageId: string;
7089
- mailUserId: string;
7090
- mailUser: {
7091
- id: string;
7092
- address: string;
7093
- name: string;
7094
- createdAt: Date;
7095
- updatedAt: Date;
7096
- deletedAt: Date | null;
7097
- contact: {
7098
- id: string;
7099
- channel: string | null;
7100
- address: string | null;
7101
- name: string;
7102
- createdAt: Date;
7103
- updatedAt: Date;
7104
- deletedAt: Date | null;
7105
- notes: string | null;
7106
- contactProfile: string | null;
7107
- socialProfileUrl: string | null;
7108
- };
7109
- contactId: string;
7110
- isNewContact: boolean;
7111
- };
7112
- }[];
7113
- cc: {
7114
- id: string;
7115
- createdAt: Date;
7116
- updatedAt: Date;
7117
- deletedAt: Date | null;
7118
- roomId: string;
7119
- messageId: string;
7120
- mailUserId: string;
7121
- mailUser: {
7122
- id: string;
7123
- address: string;
7124
- name: string;
7125
- createdAt: Date;
7126
- updatedAt: Date;
7127
- deletedAt: Date | null;
7128
- contact: {
7129
- id: string;
7130
- channel: string | null;
7131
- address: string | null;
7132
- name: string;
7133
- createdAt: Date;
7134
- updatedAt: Date;
7135
- deletedAt: Date | null;
7136
- notes: string | null;
7137
- contactProfile: string | null;
7138
- socialProfileUrl: string | null;
7139
- };
7140
- contactId: string;
7141
- isNewContact: boolean;
7142
- };
7143
- }[];
7144
- bcc: {
7145
- id: string;
7146
- createdAt: Date;
7147
- updatedAt: Date;
7148
- deletedAt: Date | null;
7149
- roomId: string;
7150
- messageId: string;
7151
- mailUserId: string;
7152
- mailUser: {
7153
- id: string;
7154
- address: string;
7155
- name: string;
7156
- createdAt: Date;
7157
- updatedAt: Date;
7158
- deletedAt: Date | null;
7159
- contact: {
7160
- id: string;
7161
- channel: string | null;
7162
- address: string | null;
7163
- name: string;
7164
- createdAt: Date;
7165
- updatedAt: Date;
7166
- deletedAt: Date | null;
7167
- notes: string | null;
7168
- contactProfile: string | null;
7169
- socialProfileUrl: string | null;
7170
- };
7171
- contactId: string;
7172
- isNewContact: boolean;
7173
- };
7174
- }[];
7175
- sendAt: Date;
7176
- textPlain: string;
7177
- textHtml: string;
7178
- textId: string;
7179
- emailEngineEmailId: string;
7180
- emailEngineMessageId: string;
7181
- emailEngineReplyTo: string | null;
7182
- unseen: boolean;
7183
- starred: boolean;
7184
- seemsLikeNew: boolean;
5790
+ totalMessagesCount: number;
7185
5791
  };
7186
5792
  requestId: string;
7187
5793
  }>;