@kl1/contracts 1.1.26-uat → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/index.js +2130 -1984
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2127 -1984
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/business-calendar/index.d.ts +820 -0
  6. package/dist/src/business-calendar/index.d.ts.map +1 -0
  7. package/dist/src/business-calendar/schema.d.ts +180 -0
  8. package/dist/src/business-calendar/schema.d.ts.map +1 -0
  9. package/dist/src/business-calendar/validation.d.ts +210 -0
  10. package/dist/src/business-calendar/validation.d.ts.map +1 -0
  11. package/dist/src/chat/index.d.ts +2424 -102
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +413 -18
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +448 -0
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/contact/index.d.ts +3 -0
  18. package/dist/src/contact/index.d.ts.map +1 -1
  19. package/dist/src/contact/schema.d.ts.map +1 -1
  20. package/dist/src/contact/validation.d.ts +3 -0
  21. package/dist/src/contact/validation.d.ts.map +1 -1
  22. package/dist/src/contract.d.ts +167810 -135163
  23. package/dist/src/contract.d.ts.map +1 -1
  24. package/dist/src/cx-log/index.d.ts +111 -0
  25. package/dist/src/cx-log/index.d.ts.map +1 -1
  26. package/dist/src/cx-log/schema.d.ts +167 -0
  27. package/dist/src/cx-log/schema.d.ts.map +1 -1
  28. package/dist/src/instagram/index.d.ts +294 -0
  29. package/dist/src/instagram/index.d.ts.map +1 -1
  30. package/dist/src/line/index.d.ts +294 -0
  31. package/dist/src/line/index.d.ts.map +1 -1
  32. package/dist/src/mail/mail-contract.d.ts +22910 -2257
  33. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  34. package/dist/src/mail/message-contract.d.ts +4587 -271
  35. package/dist/src/mail/message-contract.d.ts.map +1 -1
  36. package/dist/src/mail/room-contract.d.ts +17436 -1099
  37. package/dist/src/mail/room-contract.d.ts.map +1 -1
  38. package/dist/src/mail/schemas/message-validation.schema.d.ts +4 -4
  39. package/dist/src/mail/schemas/message.schema.d.ts +756 -40
  40. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  41. package/dist/src/mail/schemas/room-validation.schema.d.ts +5710 -344
  42. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  43. package/dist/src/mail/schemas/room.schema.d.ts +5817 -426
  44. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  45. package/dist/src/messenger/index.d.ts +294 -0
  46. package/dist/src/messenger/index.d.ts.map +1 -1
  47. package/dist/src/telephony-cdr/call-report.schema.d.ts +62 -62
  48. package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -1
  49. package/dist/src/telephony-cdr/index.d.ts +1 -622
  50. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  51. package/dist/src/viber/index.d.ts +294 -0
  52. package/dist/src/viber/index.d.ts.map +1 -1
  53. package/dist/src/webchat/index.d.ts +294 -0
  54. package/dist/src/webchat/index.d.ts.map +1 -1
  55. package/dist/src/workflow-rule/index.d.ts +7305 -0
  56. package/dist/src/workflow-rule/index.d.ts.map +1 -0
  57. package/dist/src/workflow-rule/schema.d.ts +27 -0
  58. package/dist/src/workflow-rule/schema.d.ts.map +1 -0
  59. package/dist/src/wrap-up-form/index.d.ts +744 -3
  60. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  61. package/dist/src/wrap-up-form/schema.d.ts +58 -0
  62. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  63. package/dist/src/wrap-up-form/validation.d.ts +3 -3
  64. package/package.json +1 -1
@@ -1632,6 +1632,40 @@ export declare const receiveMessageContract: {
1632
1632
  }>, "many">;
1633
1633
  callFrom: z.ZodNullable<z.ZodString>;
1634
1634
  callTo: z.ZodNullable<z.ZodString>;
1635
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
1636
+ id: z.ZodString;
1637
+ createdAt: z.ZodDate;
1638
+ updatedAt: z.ZodDate;
1639
+ deletedAt: z.ZodNullable<z.ZodDate>;
1640
+ textValue: z.ZodNullable<z.ZodString>;
1641
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
1642
+ numberValue: z.ZodNullable<z.ZodNumber>;
1643
+ dateValue: z.ZodNullable<z.ZodDate>;
1644
+ entityId: z.ZodString;
1645
+ attributeId: z.ZodString;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ id: string;
1648
+ createdAt: Date;
1649
+ updatedAt: Date;
1650
+ deletedAt: Date | null;
1651
+ entityId: string;
1652
+ attributeId: string;
1653
+ textValue: string | null;
1654
+ booleanValue: boolean | null;
1655
+ numberValue: number | null;
1656
+ dateValue: Date | null;
1657
+ }, {
1658
+ id: string;
1659
+ createdAt: Date;
1660
+ updatedAt: Date;
1661
+ deletedAt: Date | null;
1662
+ entityId: string;
1663
+ attributeId: string;
1664
+ textValue: string | null;
1665
+ booleanValue: boolean | null;
1666
+ numberValue: number | null;
1667
+ dateValue: Date | null;
1668
+ }>, "many">>>;
1635
1669
  }, "strip", z.ZodTypeAny, {
1636
1670
  type: string;
1637
1671
  id: string;
@@ -1671,6 +1705,18 @@ export declare const receiveMessageContract: {
1671
1705
  callFrom: string | null;
1672
1706
  callTo: string | null;
1673
1707
  note: string | null;
1708
+ customFields?: {
1709
+ id: string;
1710
+ createdAt: Date;
1711
+ updatedAt: Date;
1712
+ deletedAt: Date | null;
1713
+ entityId: string;
1714
+ attributeId: string;
1715
+ textValue: string | null;
1716
+ booleanValue: boolean | null;
1717
+ numberValue: number | null;
1718
+ dateValue: Date | null;
1719
+ }[] | null | undefined;
1674
1720
  }, {
1675
1721
  type: string;
1676
1722
  id: string;
@@ -1710,6 +1756,18 @@ export declare const receiveMessageContract: {
1710
1756
  callFrom: string | null;
1711
1757
  callTo: string | null;
1712
1758
  note: string | null;
1759
+ customFields?: {
1760
+ id: string;
1761
+ createdAt: Date;
1762
+ updatedAt: Date;
1763
+ deletedAt: Date | null;
1764
+ entityId: string;
1765
+ attributeId: string;
1766
+ textValue: string | null;
1767
+ booleanValue: boolean | null;
1768
+ numberValue: number | null;
1769
+ dateValue: Date | null;
1770
+ }[] | null | undefined;
1713
1771
  }>>;
1714
1772
  }, "strip", z.ZodTypeAny, {
1715
1773
  id: string;
@@ -1766,6 +1824,18 @@ export declare const receiveMessageContract: {
1766
1824
  callFrom: string | null;
1767
1825
  callTo: string | null;
1768
1826
  note: string | null;
1827
+ customFields?: {
1828
+ id: string;
1829
+ createdAt: Date;
1830
+ updatedAt: Date;
1831
+ deletedAt: Date | null;
1832
+ entityId: string;
1833
+ attributeId: string;
1834
+ textValue: string | null;
1835
+ booleanValue: boolean | null;
1836
+ numberValue: number | null;
1837
+ dateValue: Date | null;
1838
+ }[] | null | undefined;
1769
1839
  } | null;
1770
1840
  }, {
1771
1841
  id: string;
@@ -1822,6 +1892,18 @@ export declare const receiveMessageContract: {
1822
1892
  callFrom: string | null;
1823
1893
  callTo: string | null;
1824
1894
  note: string | null;
1895
+ customFields?: {
1896
+ id: string;
1897
+ createdAt: Date;
1898
+ updatedAt: Date;
1899
+ deletedAt: Date | null;
1900
+ entityId: string;
1901
+ attributeId: string;
1902
+ textValue: string | null;
1903
+ booleanValue: boolean | null;
1904
+ numberValue: number | null;
1905
+ dateValue: Date | null;
1906
+ }[] | null | undefined;
1825
1907
  } | null;
1826
1908
  }>>;
1827
1909
  }, "strip", z.ZodTypeAny, {
@@ -2116,6 +2198,18 @@ export declare const receiveMessageContract: {
2116
2198
  callFrom: string | null;
2117
2199
  callTo: string | null;
2118
2200
  note: string | null;
2201
+ customFields?: {
2202
+ id: string;
2203
+ createdAt: Date;
2204
+ updatedAt: Date;
2205
+ deletedAt: Date | null;
2206
+ entityId: string;
2207
+ attributeId: string;
2208
+ textValue: string | null;
2209
+ booleanValue: boolean | null;
2210
+ numberValue: number | null;
2211
+ dateValue: Date | null;
2212
+ }[] | null | undefined;
2119
2213
  } | null;
2120
2214
  } | undefined;
2121
2215
  }, {
@@ -2410,6 +2504,18 @@ export declare const receiveMessageContract: {
2410
2504
  callFrom: string | null;
2411
2505
  callTo: string | null;
2412
2506
  note: string | null;
2507
+ customFields?: {
2508
+ id: string;
2509
+ createdAt: Date;
2510
+ updatedAt: Date;
2511
+ deletedAt: Date | null;
2512
+ entityId: string;
2513
+ attributeId: string;
2514
+ textValue: string | null;
2515
+ booleanValue: boolean | null;
2516
+ numberValue: number | null;
2517
+ dateValue: Date | null;
2518
+ }[] | null | undefined;
2413
2519
  } | null;
2414
2520
  } | undefined;
2415
2521
  }>>;
@@ -3359,6 +3465,18 @@ export declare const receiveMessageContract: {
3359
3465
  callFrom: string | null;
3360
3466
  callTo: string | null;
3361
3467
  note: string | null;
3468
+ customFields?: {
3469
+ id: string;
3470
+ createdAt: Date;
3471
+ updatedAt: Date;
3472
+ deletedAt: Date | null;
3473
+ entityId: string;
3474
+ attributeId: string;
3475
+ textValue: string | null;
3476
+ booleanValue: boolean | null;
3477
+ numberValue: number | null;
3478
+ dateValue: Date | null;
3479
+ }[] | null | undefined;
3362
3480
  } | null;
3363
3481
  } | undefined;
3364
3482
  } | null;
@@ -3815,6 +3933,18 @@ export declare const receiveMessageContract: {
3815
3933
  callFrom: string | null;
3816
3934
  callTo: string | null;
3817
3935
  note: string | null;
3936
+ customFields?: {
3937
+ id: string;
3938
+ createdAt: Date;
3939
+ updatedAt: Date;
3940
+ deletedAt: Date | null;
3941
+ entityId: string;
3942
+ attributeId: string;
3943
+ textValue: string | null;
3944
+ booleanValue: boolean | null;
3945
+ numberValue: number | null;
3946
+ dateValue: Date | null;
3947
+ }[] | null | undefined;
3818
3948
  } | null;
3819
3949
  } | undefined;
3820
3950
  } | null;
@@ -4273,6 +4403,18 @@ export declare const receiveMessageContract: {
4273
4403
  callFrom: string | null;
4274
4404
  callTo: string | null;
4275
4405
  note: string | null;
4406
+ customFields?: {
4407
+ id: string;
4408
+ createdAt: Date;
4409
+ updatedAt: Date;
4410
+ deletedAt: Date | null;
4411
+ entityId: string;
4412
+ attributeId: string;
4413
+ textValue: string | null;
4414
+ booleanValue: boolean | null;
4415
+ numberValue: number | null;
4416
+ dateValue: Date | null;
4417
+ }[] | null | undefined;
4276
4418
  } | null;
4277
4419
  } | undefined;
4278
4420
  } | null;
@@ -4731,6 +4873,18 @@ export declare const receiveMessageContract: {
4731
4873
  callFrom: string | null;
4732
4874
  callTo: string | null;
4733
4875
  note: string | null;
4876
+ customFields?: {
4877
+ id: string;
4878
+ createdAt: Date;
4879
+ updatedAt: Date;
4880
+ deletedAt: Date | null;
4881
+ entityId: string;
4882
+ attributeId: string;
4883
+ textValue: string | null;
4884
+ booleanValue: boolean | null;
4885
+ numberValue: number | null;
4886
+ dateValue: Date | null;
4887
+ }[] | null | undefined;
4734
4888
  } | null;
4735
4889
  } | undefined;
4736
4890
  } | null;
@@ -6922,46 +7076,41 @@ export declare const mainChatContract: {
6922
7076
  }>, "many">;
6923
7077
  callFrom: z.ZodNullable<z.ZodString>;
6924
7078
  callTo: z.ZodNullable<z.ZodString>;
6925
- }, "strip", z.ZodTypeAny, {
6926
- type: string;
6927
- id: string;
6928
- disposition: string | null;
6929
- createdAt: Date;
6930
- updatedAt: Date;
6931
- deletedAt: Date | null;
6932
- categories: {
7079
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
7080
+ id: z.ZodString;
7081
+ createdAt: z.ZodDate;
7082
+ updatedAt: z.ZodDate;
7083
+ deletedAt: z.ZodNullable<z.ZodDate>;
7084
+ textValue: z.ZodNullable<z.ZodString>;
7085
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
7086
+ numberValue: z.ZodNullable<z.ZodNumber>;
7087
+ dateValue: z.ZodNullable<z.ZodDate>;
7088
+ entityId: z.ZodString;
7089
+ attributeId: z.ZodString;
7090
+ }, "strip", z.ZodTypeAny, {
6933
7091
  id: string;
6934
- value: string;
6935
7092
  createdAt: Date;
6936
7093
  updatedAt: Date;
6937
7094
  deletedAt: Date | null;
6938
- level: 2 | 1 | 3;
6939
- parentId: string | null;
6940
- childCategoryList: {
6941
- id: string;
6942
- value: string;
6943
- level: 2 | 1 | 3;
6944
- parentId: string | null;
6945
- childCategoryList: {
6946
- id: string;
6947
- value: string;
6948
- level: 2 | 1 | 3;
6949
- parentId: string | null;
6950
- childCategoryList: any[];
6951
- }[];
6952
- }[];
6953
- }[];
6954
- tags: {
7095
+ entityId: string;
7096
+ attributeId: string;
7097
+ textValue: string | null;
7098
+ booleanValue: boolean | null;
7099
+ numberValue: number | null;
7100
+ dateValue: Date | null;
7101
+ }, {
6955
7102
  id: string;
6956
- name: string;
6957
7103
  createdAt: Date;
6958
7104
  updatedAt: Date;
6959
7105
  deletedAt: Date | null;
6960
- }[];
6961
- callFrom: string | null;
6962
- callTo: string | null;
6963
- note: string | null;
6964
- }, {
7106
+ entityId: string;
7107
+ attributeId: string;
7108
+ textValue: string | null;
7109
+ booleanValue: boolean | null;
7110
+ numberValue: number | null;
7111
+ dateValue: Date | null;
7112
+ }>, "many">>>;
7113
+ }, "strip", z.ZodTypeAny, {
6965
7114
  type: string;
6966
7115
  id: string;
6967
7116
  disposition: string | null;
@@ -7000,80 +7149,19 @@ export declare const mainChatContract: {
7000
7149
  callFrom: string | null;
7001
7150
  callTo: string | null;
7002
7151
  note: string | null;
7003
- }>>;
7004
- }, "strip", z.ZodTypeAny, {
7005
- id: string;
7006
- channel: string | null;
7007
- direction: string | null;
7008
- createdAt: Date;
7009
- updatedAt: Date;
7010
- deletedAt: Date | null;
7011
- entityId: string;
7012
- queueId: string | null;
7013
- contactId: string | null;
7014
- caseId: number;
7015
- entityName: string;
7016
- agentId: string | null;
7017
- startedDate: Date | null;
7018
- handledTime: number | null;
7019
- firstResponseTime: number | null;
7020
- wrapUpForm: {
7021
- type: string;
7022
- id: string;
7023
- disposition: string | null;
7024
- createdAt: Date;
7025
- updatedAt: Date;
7026
- deletedAt: Date | null;
7027
- categories: {
7028
- id: string;
7029
- value: string;
7030
- createdAt: Date;
7031
- updatedAt: Date;
7032
- deletedAt: Date | null;
7033
- level: 2 | 1 | 3;
7034
- parentId: string | null;
7035
- childCategoryList: {
7036
- id: string;
7037
- value: string;
7038
- level: 2 | 1 | 3;
7039
- parentId: string | null;
7040
- childCategoryList: {
7041
- id: string;
7042
- value: string;
7043
- level: 2 | 1 | 3;
7044
- parentId: string | null;
7045
- childCategoryList: any[];
7046
- }[];
7047
- }[];
7048
- }[];
7049
- tags: {
7152
+ customFields?: {
7050
7153
  id: string;
7051
- name: string;
7052
7154
  createdAt: Date;
7053
7155
  updatedAt: Date;
7054
7156
  deletedAt: Date | null;
7055
- }[];
7056
- callFrom: string | null;
7057
- callTo: string | null;
7058
- note: string | null;
7059
- } | null;
7060
- }, {
7061
- id: string;
7062
- channel: string | null;
7063
- direction: string | null;
7064
- createdAt: Date;
7065
- updatedAt: Date;
7066
- deletedAt: Date | null;
7067
- entityId: string;
7068
- queueId: string | null;
7069
- contactId: string | null;
7070
- caseId: number;
7071
- entityName: string;
7072
- agentId: string | null;
7073
- startedDate: Date | null;
7074
- handledTime: number | null;
7075
- firstResponseTime: number | null;
7076
- wrapUpForm: {
7157
+ entityId: string;
7158
+ attributeId: string;
7159
+ textValue: string | null;
7160
+ booleanValue: boolean | null;
7161
+ numberValue: number | null;
7162
+ dateValue: Date | null;
7163
+ }[] | null | undefined;
7164
+ }, {
7077
7165
  type: string;
7078
7166
  id: string;
7079
7167
  disposition: string | null;
@@ -7112,8 +7200,181 @@ export declare const mainChatContract: {
7112
7200
  callFrom: string | null;
7113
7201
  callTo: string | null;
7114
7202
  note: string | null;
7203
+ customFields?: {
7204
+ id: string;
7205
+ createdAt: Date;
7206
+ updatedAt: Date;
7207
+ deletedAt: Date | null;
7208
+ entityId: string;
7209
+ attributeId: string;
7210
+ textValue: string | null;
7211
+ booleanValue: boolean | null;
7212
+ numberValue: number | null;
7213
+ dateValue: Date | null;
7214
+ }[] | null | undefined;
7215
+ }>>;
7216
+ }, "strip", z.ZodTypeAny, {
7217
+ id: string;
7218
+ channel: string | null;
7219
+ direction: string | null;
7220
+ createdAt: Date;
7221
+ updatedAt: Date;
7222
+ deletedAt: Date | null;
7223
+ entityId: string;
7224
+ queueId: string | null;
7225
+ contactId: string | null;
7226
+ caseId: number;
7227
+ entityName: string;
7228
+ agentId: string | null;
7229
+ startedDate: Date | null;
7230
+ handledTime: number | null;
7231
+ firstResponseTime: number | null;
7232
+ wrapUpForm: {
7233
+ type: string;
7234
+ id: string;
7235
+ disposition: string | null;
7236
+ createdAt: Date;
7237
+ updatedAt: Date;
7238
+ deletedAt: Date | null;
7239
+ categories: {
7240
+ id: string;
7241
+ value: string;
7242
+ createdAt: Date;
7243
+ updatedAt: Date;
7244
+ deletedAt: Date | null;
7245
+ level: 2 | 1 | 3;
7246
+ parentId: string | null;
7247
+ childCategoryList: {
7248
+ id: string;
7249
+ value: string;
7250
+ level: 2 | 1 | 3;
7251
+ parentId: string | null;
7252
+ childCategoryList: {
7253
+ id: string;
7254
+ value: string;
7255
+ level: 2 | 1 | 3;
7256
+ parentId: string | null;
7257
+ childCategoryList: any[];
7258
+ }[];
7259
+ }[];
7260
+ }[];
7261
+ tags: {
7262
+ id: string;
7263
+ name: string;
7264
+ createdAt: Date;
7265
+ updatedAt: Date;
7266
+ deletedAt: Date | null;
7267
+ }[];
7268
+ callFrom: string | null;
7269
+ callTo: string | null;
7270
+ note: string | null;
7271
+ customFields?: {
7272
+ id: string;
7273
+ createdAt: Date;
7274
+ updatedAt: Date;
7275
+ deletedAt: Date | null;
7276
+ entityId: string;
7277
+ attributeId: string;
7278
+ textValue: string | null;
7279
+ booleanValue: boolean | null;
7280
+ numberValue: number | null;
7281
+ dateValue: Date | null;
7282
+ }[] | null | undefined;
7283
+ } | null;
7284
+ }, {
7285
+ id: string;
7286
+ channel: string | null;
7287
+ direction: string | null;
7288
+ createdAt: Date;
7289
+ updatedAt: Date;
7290
+ deletedAt: Date | null;
7291
+ entityId: string;
7292
+ queueId: string | null;
7293
+ contactId: string | null;
7294
+ caseId: number;
7295
+ entityName: string;
7296
+ agentId: string | null;
7297
+ startedDate: Date | null;
7298
+ handledTime: number | null;
7299
+ firstResponseTime: number | null;
7300
+ wrapUpForm: {
7301
+ type: string;
7302
+ id: string;
7303
+ disposition: string | null;
7304
+ createdAt: Date;
7305
+ updatedAt: Date;
7306
+ deletedAt: Date | null;
7307
+ categories: {
7308
+ id: string;
7309
+ value: string;
7310
+ createdAt: Date;
7311
+ updatedAt: Date;
7312
+ deletedAt: Date | null;
7313
+ level: 2 | 1 | 3;
7314
+ parentId: string | null;
7315
+ childCategoryList: {
7316
+ id: string;
7317
+ value: string;
7318
+ level: 2 | 1 | 3;
7319
+ parentId: string | null;
7320
+ childCategoryList: {
7321
+ id: string;
7322
+ value: string;
7323
+ level: 2 | 1 | 3;
7324
+ parentId: string | null;
7325
+ childCategoryList: any[];
7326
+ }[];
7327
+ }[];
7328
+ }[];
7329
+ tags: {
7330
+ id: string;
7331
+ name: string;
7332
+ createdAt: Date;
7333
+ updatedAt: Date;
7334
+ deletedAt: Date | null;
7335
+ }[];
7336
+ callFrom: string | null;
7337
+ callTo: string | null;
7338
+ note: string | null;
7339
+ customFields?: {
7340
+ id: string;
7341
+ createdAt: Date;
7342
+ updatedAt: Date;
7343
+ deletedAt: Date | null;
7344
+ entityId: string;
7345
+ attributeId: string;
7346
+ textValue: string | null;
7347
+ booleanValue: boolean | null;
7348
+ numberValue: number | null;
7349
+ dateValue: Date | null;
7350
+ }[] | null | undefined;
7115
7351
  } | null;
7116
7352
  }>;
7353
+ workflowRule: z.ZodObject<{
7354
+ id: z.ZodString;
7355
+ createdAt: z.ZodDate;
7356
+ updatedAt: z.ZodDate;
7357
+ deletedAt: z.ZodNullable<z.ZodDate>;
7358
+ name: z.ZodString;
7359
+ isActive: z.ZodBoolean;
7360
+ type: z.ZodString;
7361
+ }, "strip", z.ZodTypeAny, {
7362
+ type: string;
7363
+ id: string;
7364
+ name: string;
7365
+ createdAt: Date;
7366
+ updatedAt: Date;
7367
+ deletedAt: Date | null;
7368
+ isActive: boolean;
7369
+ }, {
7370
+ type: string;
7371
+ id: string;
7372
+ name: string;
7373
+ createdAt: Date;
7374
+ updatedAt: Date;
7375
+ deletedAt: Date | null;
7376
+ isActive: boolean;
7377
+ }>;
7117
7378
  }, "strip", z.ZodTypeAny, {
7118
7379
  id: string;
7119
7380
  channel: {
@@ -7449,8 +7710,29 @@ export declare const mainChatContract: {
7449
7710
  callFrom: string | null;
7450
7711
  callTo: string | null;
7451
7712
  note: string | null;
7713
+ customFields?: {
7714
+ id: string;
7715
+ createdAt: Date;
7716
+ updatedAt: Date;
7717
+ deletedAt: Date | null;
7718
+ entityId: string;
7719
+ attributeId: string;
7720
+ textValue: string | null;
7721
+ booleanValue: boolean | null;
7722
+ numberValue: number | null;
7723
+ dateValue: Date | null;
7724
+ }[] | null | undefined;
7452
7725
  } | null;
7453
7726
  };
7727
+ workflowRule: {
7728
+ type: string;
7729
+ id: string;
7730
+ name: string;
7731
+ createdAt: Date;
7732
+ updatedAt: Date;
7733
+ deletedAt: Date | null;
7734
+ isActive: boolean;
7735
+ };
7454
7736
  }, {
7455
7737
  id: string;
7456
7738
  channel: {
@@ -7786,8 +8068,29 @@ export declare const mainChatContract: {
7786
8068
  callFrom: string | null;
7787
8069
  callTo: string | null;
7788
8070
  note: string | null;
8071
+ customFields?: {
8072
+ id: string;
8073
+ createdAt: Date;
8074
+ updatedAt: Date;
8075
+ deletedAt: Date | null;
8076
+ entityId: string;
8077
+ attributeId: string;
8078
+ textValue: string | null;
8079
+ booleanValue: boolean | null;
8080
+ numberValue: number | null;
8081
+ dateValue: Date | null;
8082
+ }[] | null | undefined;
7789
8083
  } | null;
7790
8084
  };
8085
+ workflowRule: {
8086
+ type: string;
8087
+ id: string;
8088
+ name: string;
8089
+ createdAt: Date;
8090
+ updatedAt: Date;
8091
+ deletedAt: Date | null;
8092
+ isActive: boolean;
8093
+ };
7791
8094
  }>, "many">;
7792
8095
  unreadCountsByAssignee: z.ZodArray<z.ZodObject<{
7793
8096
  assigneeId: z.ZodString;
@@ -8135,8 +8438,29 @@ export declare const mainChatContract: {
8135
8438
  callFrom: string | null;
8136
8439
  callTo: string | null;
8137
8440
  note: string | null;
8441
+ customFields?: {
8442
+ id: string;
8443
+ createdAt: Date;
8444
+ updatedAt: Date;
8445
+ deletedAt: Date | null;
8446
+ entityId: string;
8447
+ attributeId: string;
8448
+ textValue: string | null;
8449
+ booleanValue: boolean | null;
8450
+ numberValue: number | null;
8451
+ dateValue: Date | null;
8452
+ }[] | null | undefined;
8138
8453
  } | null;
8139
8454
  };
8455
+ workflowRule: {
8456
+ type: string;
8457
+ id: string;
8458
+ name: string;
8459
+ createdAt: Date;
8460
+ updatedAt: Date;
8461
+ deletedAt: Date | null;
8462
+ isActive: boolean;
8463
+ };
8140
8464
  }[];
8141
8465
  total: number;
8142
8466
  page: number;
@@ -8482,8 +8806,29 @@ export declare const mainChatContract: {
8482
8806
  callFrom: string | null;
8483
8807
  callTo: string | null;
8484
8808
  note: string | null;
8809
+ customFields?: {
8810
+ id: string;
8811
+ createdAt: Date;
8812
+ updatedAt: Date;
8813
+ deletedAt: Date | null;
8814
+ entityId: string;
8815
+ attributeId: string;
8816
+ textValue: string | null;
8817
+ booleanValue: boolean | null;
8818
+ numberValue: number | null;
8819
+ dateValue: Date | null;
8820
+ }[] | null | undefined;
8485
8821
  } | null;
8486
8822
  };
8823
+ workflowRule: {
8824
+ type: string;
8825
+ id: string;
8826
+ name: string;
8827
+ createdAt: Date;
8828
+ updatedAt: Date;
8829
+ deletedAt: Date | null;
8830
+ isActive: boolean;
8831
+ };
8487
8832
  }[];
8488
8833
  total: number;
8489
8834
  page: number;
@@ -11357,6 +11702,40 @@ export declare const mainChatContract: {
11357
11702
  }>, "many">;
11358
11703
  callFrom: z.ZodNullable<z.ZodString>;
11359
11704
  callTo: z.ZodNullable<z.ZodString>;
11705
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
11706
+ id: z.ZodString;
11707
+ createdAt: z.ZodDate;
11708
+ updatedAt: z.ZodDate;
11709
+ deletedAt: z.ZodNullable<z.ZodDate>;
11710
+ textValue: z.ZodNullable<z.ZodString>;
11711
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
11712
+ numberValue: z.ZodNullable<z.ZodNumber>;
11713
+ dateValue: z.ZodNullable<z.ZodDate>;
11714
+ entityId: z.ZodString;
11715
+ attributeId: z.ZodString;
11716
+ }, "strip", z.ZodTypeAny, {
11717
+ id: string;
11718
+ createdAt: Date;
11719
+ updatedAt: Date;
11720
+ deletedAt: Date | null;
11721
+ entityId: string;
11722
+ attributeId: string;
11723
+ textValue: string | null;
11724
+ booleanValue: boolean | null;
11725
+ numberValue: number | null;
11726
+ dateValue: Date | null;
11727
+ }, {
11728
+ id: string;
11729
+ createdAt: Date;
11730
+ updatedAt: Date;
11731
+ deletedAt: Date | null;
11732
+ entityId: string;
11733
+ attributeId: string;
11734
+ textValue: string | null;
11735
+ booleanValue: boolean | null;
11736
+ numberValue: number | null;
11737
+ dateValue: Date | null;
11738
+ }>, "many">>>;
11360
11739
  }, "strip", z.ZodTypeAny, {
11361
11740
  type: string;
11362
11741
  id: string;
@@ -11396,6 +11775,18 @@ export declare const mainChatContract: {
11396
11775
  callFrom: string | null;
11397
11776
  callTo: string | null;
11398
11777
  note: string | null;
11778
+ customFields?: {
11779
+ id: string;
11780
+ createdAt: Date;
11781
+ updatedAt: Date;
11782
+ deletedAt: Date | null;
11783
+ entityId: string;
11784
+ attributeId: string;
11785
+ textValue: string | null;
11786
+ booleanValue: boolean | null;
11787
+ numberValue: number | null;
11788
+ dateValue: Date | null;
11789
+ }[] | null | undefined;
11399
11790
  }, {
11400
11791
  type: string;
11401
11792
  id: string;
@@ -11435,6 +11826,18 @@ export declare const mainChatContract: {
11435
11826
  callFrom: string | null;
11436
11827
  callTo: string | null;
11437
11828
  note: string | null;
11829
+ customFields?: {
11830
+ id: string;
11831
+ createdAt: Date;
11832
+ updatedAt: Date;
11833
+ deletedAt: Date | null;
11834
+ entityId: string;
11835
+ attributeId: string;
11836
+ textValue: string | null;
11837
+ booleanValue: boolean | null;
11838
+ numberValue: number | null;
11839
+ dateValue: Date | null;
11840
+ }[] | null | undefined;
11438
11841
  }>>;
11439
11842
  }, "strip", z.ZodTypeAny, {
11440
11843
  id: string;
@@ -11491,6 +11894,18 @@ export declare const mainChatContract: {
11491
11894
  callFrom: string | null;
11492
11895
  callTo: string | null;
11493
11896
  note: string | null;
11897
+ customFields?: {
11898
+ id: string;
11899
+ createdAt: Date;
11900
+ updatedAt: Date;
11901
+ deletedAt: Date | null;
11902
+ entityId: string;
11903
+ attributeId: string;
11904
+ textValue: string | null;
11905
+ booleanValue: boolean | null;
11906
+ numberValue: number | null;
11907
+ dateValue: Date | null;
11908
+ }[] | null | undefined;
11494
11909
  } | null;
11495
11910
  }, {
11496
11911
  id: string;
@@ -11547,8 +11962,45 @@ export declare const mainChatContract: {
11547
11962
  callFrom: string | null;
11548
11963
  callTo: string | null;
11549
11964
  note: string | null;
11965
+ customFields?: {
11966
+ id: string;
11967
+ createdAt: Date;
11968
+ updatedAt: Date;
11969
+ deletedAt: Date | null;
11970
+ entityId: string;
11971
+ attributeId: string;
11972
+ textValue: string | null;
11973
+ booleanValue: boolean | null;
11974
+ numberValue: number | null;
11975
+ dateValue: Date | null;
11976
+ }[] | null | undefined;
11550
11977
  } | null;
11551
11978
  }>;
11979
+ workflowRule: z.ZodObject<{
11980
+ id: z.ZodString;
11981
+ createdAt: z.ZodDate;
11982
+ updatedAt: z.ZodDate;
11983
+ deletedAt: z.ZodNullable<z.ZodDate>;
11984
+ name: z.ZodString;
11985
+ isActive: z.ZodBoolean;
11986
+ type: z.ZodString;
11987
+ }, "strip", z.ZodTypeAny, {
11988
+ type: string;
11989
+ id: string;
11990
+ name: string;
11991
+ createdAt: Date;
11992
+ updatedAt: Date;
11993
+ deletedAt: Date | null;
11994
+ isActive: boolean;
11995
+ }, {
11996
+ type: string;
11997
+ id: string;
11998
+ name: string;
11999
+ createdAt: Date;
12000
+ updatedAt: Date;
12001
+ deletedAt: Date | null;
12002
+ isActive: boolean;
12003
+ }>;
11552
12004
  }, "strip", z.ZodTypeAny, {
11553
12005
  id: string;
11554
12006
  channel: {
@@ -11884,8 +12336,29 @@ export declare const mainChatContract: {
11884
12336
  callFrom: string | null;
11885
12337
  callTo: string | null;
11886
12338
  note: string | null;
12339
+ customFields?: {
12340
+ id: string;
12341
+ createdAt: Date;
12342
+ updatedAt: Date;
12343
+ deletedAt: Date | null;
12344
+ entityId: string;
12345
+ attributeId: string;
12346
+ textValue: string | null;
12347
+ booleanValue: boolean | null;
12348
+ numberValue: number | null;
12349
+ dateValue: Date | null;
12350
+ }[] | null | undefined;
11887
12351
  } | null;
11888
12352
  };
12353
+ workflowRule: {
12354
+ type: string;
12355
+ id: string;
12356
+ name: string;
12357
+ createdAt: Date;
12358
+ updatedAt: Date;
12359
+ deletedAt: Date | null;
12360
+ isActive: boolean;
12361
+ };
11889
12362
  }, {
11890
12363
  id: string;
11891
12364
  channel: {
@@ -12221,8 +12694,29 @@ export declare const mainChatContract: {
12221
12694
  callFrom: string | null;
12222
12695
  callTo: string | null;
12223
12696
  note: string | null;
12697
+ customFields?: {
12698
+ id: string;
12699
+ createdAt: Date;
12700
+ updatedAt: Date;
12701
+ deletedAt: Date | null;
12702
+ entityId: string;
12703
+ attributeId: string;
12704
+ textValue: string | null;
12705
+ booleanValue: boolean | null;
12706
+ numberValue: number | null;
12707
+ dateValue: Date | null;
12708
+ }[] | null | undefined;
12224
12709
  } | null;
12225
12710
  };
12711
+ workflowRule: {
12712
+ type: string;
12713
+ id: string;
12714
+ name: string;
12715
+ createdAt: Date;
12716
+ updatedAt: Date;
12717
+ deletedAt: Date | null;
12718
+ isActive: boolean;
12719
+ };
12226
12720
  }>;
12227
12721
  }, "strip", z.ZodTypeAny, {
12228
12722
  data: {
@@ -12560,8 +13054,29 @@ export declare const mainChatContract: {
12560
13054
  callFrom: string | null;
12561
13055
  callTo: string | null;
12562
13056
  note: string | null;
13057
+ customFields?: {
13058
+ id: string;
13059
+ createdAt: Date;
13060
+ updatedAt: Date;
13061
+ deletedAt: Date | null;
13062
+ entityId: string;
13063
+ attributeId: string;
13064
+ textValue: string | null;
13065
+ booleanValue: boolean | null;
13066
+ numberValue: number | null;
13067
+ dateValue: Date | null;
13068
+ }[] | null | undefined;
12563
13069
  } | null;
12564
13070
  };
13071
+ workflowRule: {
13072
+ type: string;
13073
+ id: string;
13074
+ name: string;
13075
+ createdAt: Date;
13076
+ updatedAt: Date;
13077
+ deletedAt: Date | null;
13078
+ isActive: boolean;
13079
+ };
12565
13080
  };
12566
13081
  requestId: string;
12567
13082
  }, {
@@ -12900,8 +13415,29 @@ export declare const mainChatContract: {
12900
13415
  callFrom: string | null;
12901
13416
  callTo: string | null;
12902
13417
  note: string | null;
13418
+ customFields?: {
13419
+ id: string;
13420
+ createdAt: Date;
13421
+ updatedAt: Date;
13422
+ deletedAt: Date | null;
13423
+ entityId: string;
13424
+ attributeId: string;
13425
+ textValue: string | null;
13426
+ booleanValue: boolean | null;
13427
+ numberValue: number | null;
13428
+ dateValue: Date | null;
13429
+ }[] | null | undefined;
12903
13430
  } | null;
12904
13431
  };
13432
+ workflowRule: {
13433
+ type: string;
13434
+ id: string;
13435
+ name: string;
13436
+ createdAt: Date;
13437
+ updatedAt: Date;
13438
+ deletedAt: Date | null;
13439
+ isActive: boolean;
13440
+ };
12905
13441
  };
12906
13442
  requestId: string;
12907
13443
  }>;
@@ -15187,6 +15723,40 @@ export declare const mainChatContract: {
15187
15723
  }>, "many">;
15188
15724
  callFrom: z.ZodNullable<z.ZodString>;
15189
15725
  callTo: z.ZodNullable<z.ZodString>;
15726
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
15727
+ id: z.ZodString;
15728
+ createdAt: z.ZodDate;
15729
+ updatedAt: z.ZodDate;
15730
+ deletedAt: z.ZodNullable<z.ZodDate>;
15731
+ textValue: z.ZodNullable<z.ZodString>;
15732
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
15733
+ numberValue: z.ZodNullable<z.ZodNumber>;
15734
+ dateValue: z.ZodNullable<z.ZodDate>;
15735
+ entityId: z.ZodString;
15736
+ attributeId: z.ZodString;
15737
+ }, "strip", z.ZodTypeAny, {
15738
+ id: string;
15739
+ createdAt: Date;
15740
+ updatedAt: Date;
15741
+ deletedAt: Date | null;
15742
+ entityId: string;
15743
+ attributeId: string;
15744
+ textValue: string | null;
15745
+ booleanValue: boolean | null;
15746
+ numberValue: number | null;
15747
+ dateValue: Date | null;
15748
+ }, {
15749
+ id: string;
15750
+ createdAt: Date;
15751
+ updatedAt: Date;
15752
+ deletedAt: Date | null;
15753
+ entityId: string;
15754
+ attributeId: string;
15755
+ textValue: string | null;
15756
+ booleanValue: boolean | null;
15757
+ numberValue: number | null;
15758
+ dateValue: Date | null;
15759
+ }>, "many">>>;
15190
15760
  }, "strip", z.ZodTypeAny, {
15191
15761
  type: string;
15192
15762
  id: string;
@@ -15226,6 +15796,18 @@ export declare const mainChatContract: {
15226
15796
  callFrom: string | null;
15227
15797
  callTo: string | null;
15228
15798
  note: string | null;
15799
+ customFields?: {
15800
+ id: string;
15801
+ createdAt: Date;
15802
+ updatedAt: Date;
15803
+ deletedAt: Date | null;
15804
+ entityId: string;
15805
+ attributeId: string;
15806
+ textValue: string | null;
15807
+ booleanValue: boolean | null;
15808
+ numberValue: number | null;
15809
+ dateValue: Date | null;
15810
+ }[] | null | undefined;
15229
15811
  }, {
15230
15812
  type: string;
15231
15813
  id: string;
@@ -15265,6 +15847,18 @@ export declare const mainChatContract: {
15265
15847
  callFrom: string | null;
15266
15848
  callTo: string | null;
15267
15849
  note: string | null;
15850
+ customFields?: {
15851
+ id: string;
15852
+ createdAt: Date;
15853
+ updatedAt: Date;
15854
+ deletedAt: Date | null;
15855
+ entityId: string;
15856
+ attributeId: string;
15857
+ textValue: string | null;
15858
+ booleanValue: boolean | null;
15859
+ numberValue: number | null;
15860
+ dateValue: Date | null;
15861
+ }[] | null | undefined;
15268
15862
  }>>;
15269
15863
  }, "strip", z.ZodTypeAny, {
15270
15864
  id: string;
@@ -15321,6 +15915,18 @@ export declare const mainChatContract: {
15321
15915
  callFrom: string | null;
15322
15916
  callTo: string | null;
15323
15917
  note: string | null;
15918
+ customFields?: {
15919
+ id: string;
15920
+ createdAt: Date;
15921
+ updatedAt: Date;
15922
+ deletedAt: Date | null;
15923
+ entityId: string;
15924
+ attributeId: string;
15925
+ textValue: string | null;
15926
+ booleanValue: boolean | null;
15927
+ numberValue: number | null;
15928
+ dateValue: Date | null;
15929
+ }[] | null | undefined;
15324
15930
  } | null;
15325
15931
  }, {
15326
15932
  id: string;
@@ -15377,8 +15983,45 @@ export declare const mainChatContract: {
15377
15983
  callFrom: string | null;
15378
15984
  callTo: string | null;
15379
15985
  note: string | null;
15986
+ customFields?: {
15987
+ id: string;
15988
+ createdAt: Date;
15989
+ updatedAt: Date;
15990
+ deletedAt: Date | null;
15991
+ entityId: string;
15992
+ attributeId: string;
15993
+ textValue: string | null;
15994
+ booleanValue: boolean | null;
15995
+ numberValue: number | null;
15996
+ dateValue: Date | null;
15997
+ }[] | null | undefined;
15380
15998
  } | null;
15381
15999
  }>;
16000
+ workflowRule: z.ZodObject<{
16001
+ id: z.ZodString;
16002
+ createdAt: z.ZodDate;
16003
+ updatedAt: z.ZodDate;
16004
+ deletedAt: z.ZodNullable<z.ZodDate>;
16005
+ name: z.ZodString;
16006
+ isActive: z.ZodBoolean;
16007
+ type: z.ZodString;
16008
+ }, "strip", z.ZodTypeAny, {
16009
+ type: string;
16010
+ id: string;
16011
+ name: string;
16012
+ createdAt: Date;
16013
+ updatedAt: Date;
16014
+ deletedAt: Date | null;
16015
+ isActive: boolean;
16016
+ }, {
16017
+ type: string;
16018
+ id: string;
16019
+ name: string;
16020
+ createdAt: Date;
16021
+ updatedAt: Date;
16022
+ deletedAt: Date | null;
16023
+ isActive: boolean;
16024
+ }>;
15382
16025
  }, "strip", z.ZodTypeAny, {
15383
16026
  id: string;
15384
16027
  channel: {
@@ -15714,8 +16357,29 @@ export declare const mainChatContract: {
15714
16357
  callFrom: string | null;
15715
16358
  callTo: string | null;
15716
16359
  note: string | null;
16360
+ customFields?: {
16361
+ id: string;
16362
+ createdAt: Date;
16363
+ updatedAt: Date;
16364
+ deletedAt: Date | null;
16365
+ entityId: string;
16366
+ attributeId: string;
16367
+ textValue: string | null;
16368
+ booleanValue: boolean | null;
16369
+ numberValue: number | null;
16370
+ dateValue: Date | null;
16371
+ }[] | null | undefined;
15717
16372
  } | null;
15718
16373
  };
16374
+ workflowRule: {
16375
+ type: string;
16376
+ id: string;
16377
+ name: string;
16378
+ createdAt: Date;
16379
+ updatedAt: Date;
16380
+ deletedAt: Date | null;
16381
+ isActive: boolean;
16382
+ };
15719
16383
  }, {
15720
16384
  id: string;
15721
16385
  channel: {
@@ -16051,8 +16715,29 @@ export declare const mainChatContract: {
16051
16715
  callFrom: string | null;
16052
16716
  callTo: string | null;
16053
16717
  note: string | null;
16718
+ customFields?: {
16719
+ id: string;
16720
+ createdAt: Date;
16721
+ updatedAt: Date;
16722
+ deletedAt: Date | null;
16723
+ entityId: string;
16724
+ attributeId: string;
16725
+ textValue: string | null;
16726
+ booleanValue: boolean | null;
16727
+ numberValue: number | null;
16728
+ dateValue: Date | null;
16729
+ }[] | null | undefined;
16054
16730
  } | null;
16055
16731
  };
16732
+ workflowRule: {
16733
+ type: string;
16734
+ id: string;
16735
+ name: string;
16736
+ createdAt: Date;
16737
+ updatedAt: Date;
16738
+ deletedAt: Date | null;
16739
+ isActive: boolean;
16740
+ };
16056
16741
  }>;
16057
16742
  upload: z.ZodObject<{
16058
16743
  id: z.ZodString;
@@ -17689,6 +18374,31 @@ export declare const mainChatContract: {
17689
18374
  telephonySignature: string | null;
17690
18375
  };
17691
18376
  }>;
18377
+ workflowRule: z.ZodObject<{
18378
+ id: z.ZodString;
18379
+ createdAt: z.ZodDate;
18380
+ updatedAt: z.ZodDate;
18381
+ deletedAt: z.ZodNullable<z.ZodDate>;
18382
+ name: z.ZodString;
18383
+ isActive: z.ZodBoolean;
18384
+ type: z.ZodString;
18385
+ }, "strip", z.ZodTypeAny, {
18386
+ type: string;
18387
+ id: string;
18388
+ name: string;
18389
+ createdAt: Date;
18390
+ updatedAt: Date;
18391
+ deletedAt: Date | null;
18392
+ isActive: boolean;
18393
+ }, {
18394
+ type: string;
18395
+ id: string;
18396
+ name: string;
18397
+ createdAt: Date;
18398
+ updatedAt: Date;
18399
+ deletedAt: Date | null;
18400
+ isActive: boolean;
18401
+ }>;
17692
18402
  }, "strip", z.ZodTypeAny, {
17693
18403
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
17694
18404
  message: string;
@@ -18134,8 +18844,38 @@ export declare const mainChatContract: {
18134
18844
  callFrom: string | null;
18135
18845
  callTo: string | null;
18136
18846
  note: string | null;
18847
+ customFields?: {
18848
+ id: string;
18849
+ createdAt: Date;
18850
+ updatedAt: Date;
18851
+ deletedAt: Date | null;
18852
+ entityId: string;
18853
+ attributeId: string;
18854
+ textValue: string | null;
18855
+ booleanValue: boolean | null;
18856
+ numberValue: number | null;
18857
+ dateValue: Date | null;
18858
+ }[] | null | undefined;
18137
18859
  } | null;
18138
18860
  };
18861
+ workflowRule: {
18862
+ type: string;
18863
+ id: string;
18864
+ name: string;
18865
+ createdAt: Date;
18866
+ updatedAt: Date;
18867
+ deletedAt: Date | null;
18868
+ isActive: boolean;
18869
+ };
18870
+ };
18871
+ workflowRule: {
18872
+ type: string;
18873
+ id: string;
18874
+ name: string;
18875
+ createdAt: Date;
18876
+ updatedAt: Date;
18877
+ deletedAt: Date | null;
18878
+ isActive: boolean;
18139
18879
  };
18140
18880
  readAt: Date;
18141
18881
  platformMessageId: string;
@@ -18797,8 +19537,38 @@ export declare const mainChatContract: {
18797
19537
  callFrom: string | null;
18798
19538
  callTo: string | null;
18799
19539
  note: string | null;
19540
+ customFields?: {
19541
+ id: string;
19542
+ createdAt: Date;
19543
+ updatedAt: Date;
19544
+ deletedAt: Date | null;
19545
+ entityId: string;
19546
+ attributeId: string;
19547
+ textValue: string | null;
19548
+ booleanValue: boolean | null;
19549
+ numberValue: number | null;
19550
+ dateValue: Date | null;
19551
+ }[] | null | undefined;
18800
19552
  } | null;
18801
19553
  };
19554
+ workflowRule: {
19555
+ type: string;
19556
+ id: string;
19557
+ name: string;
19558
+ createdAt: Date;
19559
+ updatedAt: Date;
19560
+ deletedAt: Date | null;
19561
+ isActive: boolean;
19562
+ };
19563
+ };
19564
+ workflowRule: {
19565
+ type: string;
19566
+ id: string;
19567
+ name: string;
19568
+ createdAt: Date;
19569
+ updatedAt: Date;
19570
+ deletedAt: Date | null;
19571
+ isActive: boolean;
18802
19572
  };
18803
19573
  readAt: Date;
18804
19574
  platformMessageId: string;
@@ -19462,8 +20232,38 @@ export declare const mainChatContract: {
19462
20232
  callFrom: string | null;
19463
20233
  callTo: string | null;
19464
20234
  note: string | null;
20235
+ customFields?: {
20236
+ id: string;
20237
+ createdAt: Date;
20238
+ updatedAt: Date;
20239
+ deletedAt: Date | null;
20240
+ entityId: string;
20241
+ attributeId: string;
20242
+ textValue: string | null;
20243
+ booleanValue: boolean | null;
20244
+ numberValue: number | null;
20245
+ dateValue: Date | null;
20246
+ }[] | null | undefined;
19465
20247
  } | null;
19466
20248
  };
20249
+ workflowRule: {
20250
+ type: string;
20251
+ id: string;
20252
+ name: string;
20253
+ createdAt: Date;
20254
+ updatedAt: Date;
20255
+ deletedAt: Date | null;
20256
+ isActive: boolean;
20257
+ };
20258
+ };
20259
+ workflowRule: {
20260
+ type: string;
20261
+ id: string;
20262
+ name: string;
20263
+ createdAt: Date;
20264
+ updatedAt: Date;
20265
+ deletedAt: Date | null;
20266
+ isActive: boolean;
19467
20267
  };
19468
20268
  readAt: Date;
19469
20269
  platformMessageId: string;
@@ -20128,8 +20928,38 @@ export declare const mainChatContract: {
20128
20928
  callFrom: string | null;
20129
20929
  callTo: string | null;
20130
20930
  note: string | null;
20931
+ customFields?: {
20932
+ id: string;
20933
+ createdAt: Date;
20934
+ updatedAt: Date;
20935
+ deletedAt: Date | null;
20936
+ entityId: string;
20937
+ attributeId: string;
20938
+ textValue: string | null;
20939
+ booleanValue: boolean | null;
20940
+ numberValue: number | null;
20941
+ dateValue: Date | null;
20942
+ }[] | null | undefined;
20131
20943
  } | null;
20132
20944
  };
20945
+ workflowRule: {
20946
+ type: string;
20947
+ id: string;
20948
+ name: string;
20949
+ createdAt: Date;
20950
+ updatedAt: Date;
20951
+ deletedAt: Date | null;
20952
+ isActive: boolean;
20953
+ };
20954
+ };
20955
+ workflowRule: {
20956
+ type: string;
20957
+ id: string;
20958
+ name: string;
20959
+ createdAt: Date;
20960
+ updatedAt: Date;
20961
+ deletedAt: Date | null;
20962
+ isActive: boolean;
20133
20963
  };
20134
20964
  readAt: Date;
20135
20965
  platformMessageId: string;
@@ -22361,6 +23191,40 @@ export declare const mainChatContract: {
22361
23191
  }>, "many">;
22362
23192
  callFrom: z.ZodNullable<z.ZodString>;
22363
23193
  callTo: z.ZodNullable<z.ZodString>;
23194
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
23195
+ id: z.ZodString;
23196
+ createdAt: z.ZodDate;
23197
+ updatedAt: z.ZodDate;
23198
+ deletedAt: z.ZodNullable<z.ZodDate>;
23199
+ textValue: z.ZodNullable<z.ZodString>;
23200
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
23201
+ numberValue: z.ZodNullable<z.ZodNumber>;
23202
+ dateValue: z.ZodNullable<z.ZodDate>;
23203
+ entityId: z.ZodString;
23204
+ attributeId: z.ZodString;
23205
+ }, "strip", z.ZodTypeAny, {
23206
+ id: string;
23207
+ createdAt: Date;
23208
+ updatedAt: Date;
23209
+ deletedAt: Date | null;
23210
+ entityId: string;
23211
+ attributeId: string;
23212
+ textValue: string | null;
23213
+ booleanValue: boolean | null;
23214
+ numberValue: number | null;
23215
+ dateValue: Date | null;
23216
+ }, {
23217
+ id: string;
23218
+ createdAt: Date;
23219
+ updatedAt: Date;
23220
+ deletedAt: Date | null;
23221
+ entityId: string;
23222
+ attributeId: string;
23223
+ textValue: string | null;
23224
+ booleanValue: boolean | null;
23225
+ numberValue: number | null;
23226
+ dateValue: Date | null;
23227
+ }>, "many">>>;
22364
23228
  }, "strip", z.ZodTypeAny, {
22365
23229
  type: string;
22366
23230
  id: string;
@@ -22400,6 +23264,18 @@ export declare const mainChatContract: {
22400
23264
  callFrom: string | null;
22401
23265
  callTo: string | null;
22402
23266
  note: string | null;
23267
+ customFields?: {
23268
+ id: string;
23269
+ createdAt: Date;
23270
+ updatedAt: Date;
23271
+ deletedAt: Date | null;
23272
+ entityId: string;
23273
+ attributeId: string;
23274
+ textValue: string | null;
23275
+ booleanValue: boolean | null;
23276
+ numberValue: number | null;
23277
+ dateValue: Date | null;
23278
+ }[] | null | undefined;
22403
23279
  }, {
22404
23280
  type: string;
22405
23281
  id: string;
@@ -22439,6 +23315,18 @@ export declare const mainChatContract: {
22439
23315
  callFrom: string | null;
22440
23316
  callTo: string | null;
22441
23317
  note: string | null;
23318
+ customFields?: {
23319
+ id: string;
23320
+ createdAt: Date;
23321
+ updatedAt: Date;
23322
+ deletedAt: Date | null;
23323
+ entityId: string;
23324
+ attributeId: string;
23325
+ textValue: string | null;
23326
+ booleanValue: boolean | null;
23327
+ numberValue: number | null;
23328
+ dateValue: Date | null;
23329
+ }[] | null | undefined;
22442
23330
  }>>;
22443
23331
  }, "strip", z.ZodTypeAny, {
22444
23332
  id: string;
@@ -22495,6 +23383,18 @@ export declare const mainChatContract: {
22495
23383
  callFrom: string | null;
22496
23384
  callTo: string | null;
22497
23385
  note: string | null;
23386
+ customFields?: {
23387
+ id: string;
23388
+ createdAt: Date;
23389
+ updatedAt: Date;
23390
+ deletedAt: Date | null;
23391
+ entityId: string;
23392
+ attributeId: string;
23393
+ textValue: string | null;
23394
+ booleanValue: boolean | null;
23395
+ numberValue: number | null;
23396
+ dateValue: Date | null;
23397
+ }[] | null | undefined;
22498
23398
  } | null;
22499
23399
  }, {
22500
23400
  id: string;
@@ -22551,8 +23451,45 @@ export declare const mainChatContract: {
22551
23451
  callFrom: string | null;
22552
23452
  callTo: string | null;
22553
23453
  note: string | null;
23454
+ customFields?: {
23455
+ id: string;
23456
+ createdAt: Date;
23457
+ updatedAt: Date;
23458
+ deletedAt: Date | null;
23459
+ entityId: string;
23460
+ attributeId: string;
23461
+ textValue: string | null;
23462
+ booleanValue: boolean | null;
23463
+ numberValue: number | null;
23464
+ dateValue: Date | null;
23465
+ }[] | null | undefined;
22554
23466
  } | null;
22555
23467
  }>;
23468
+ workflowRule: z.ZodObject<{
23469
+ id: z.ZodString;
23470
+ createdAt: z.ZodDate;
23471
+ updatedAt: z.ZodDate;
23472
+ deletedAt: z.ZodNullable<z.ZodDate>;
23473
+ name: z.ZodString;
23474
+ isActive: z.ZodBoolean;
23475
+ type: z.ZodString;
23476
+ }, "strip", z.ZodTypeAny, {
23477
+ type: string;
23478
+ id: string;
23479
+ name: string;
23480
+ createdAt: Date;
23481
+ updatedAt: Date;
23482
+ deletedAt: Date | null;
23483
+ isActive: boolean;
23484
+ }, {
23485
+ type: string;
23486
+ id: string;
23487
+ name: string;
23488
+ createdAt: Date;
23489
+ updatedAt: Date;
23490
+ deletedAt: Date | null;
23491
+ isActive: boolean;
23492
+ }>;
22556
23493
  }, "strip", z.ZodTypeAny, {
22557
23494
  id: string;
22558
23495
  channel: {
@@ -22888,8 +23825,29 @@ export declare const mainChatContract: {
22888
23825
  callFrom: string | null;
22889
23826
  callTo: string | null;
22890
23827
  note: string | null;
23828
+ customFields?: {
23829
+ id: string;
23830
+ createdAt: Date;
23831
+ updatedAt: Date;
23832
+ deletedAt: Date | null;
23833
+ entityId: string;
23834
+ attributeId: string;
23835
+ textValue: string | null;
23836
+ booleanValue: boolean | null;
23837
+ numberValue: number | null;
23838
+ dateValue: Date | null;
23839
+ }[] | null | undefined;
22891
23840
  } | null;
22892
23841
  };
23842
+ workflowRule: {
23843
+ type: string;
23844
+ id: string;
23845
+ name: string;
23846
+ createdAt: Date;
23847
+ updatedAt: Date;
23848
+ deletedAt: Date | null;
23849
+ isActive: boolean;
23850
+ };
22893
23851
  }, {
22894
23852
  id: string;
22895
23853
  channel: {
@@ -23225,8 +24183,29 @@ export declare const mainChatContract: {
23225
24183
  callFrom: string | null;
23226
24184
  callTo: string | null;
23227
24185
  note: string | null;
24186
+ customFields?: {
24187
+ id: string;
24188
+ createdAt: Date;
24189
+ updatedAt: Date;
24190
+ deletedAt: Date | null;
24191
+ entityId: string;
24192
+ attributeId: string;
24193
+ textValue: string | null;
24194
+ booleanValue: boolean | null;
24195
+ numberValue: number | null;
24196
+ dateValue: Date | null;
24197
+ }[] | null | undefined;
23228
24198
  } | null;
23229
24199
  };
24200
+ workflowRule: {
24201
+ type: string;
24202
+ id: string;
24203
+ name: string;
24204
+ createdAt: Date;
24205
+ updatedAt: Date;
24206
+ deletedAt: Date | null;
24207
+ isActive: boolean;
24208
+ };
23230
24209
  }>;
23231
24210
  upload: z.ZodObject<{
23232
24211
  id: z.ZodString;
@@ -24863,6 +25842,31 @@ export declare const mainChatContract: {
24863
25842
  telephonySignature: string | null;
24864
25843
  };
24865
25844
  }>;
25845
+ workflowRule: z.ZodObject<{
25846
+ id: z.ZodString;
25847
+ createdAt: z.ZodDate;
25848
+ updatedAt: z.ZodDate;
25849
+ deletedAt: z.ZodNullable<z.ZodDate>;
25850
+ name: z.ZodString;
25851
+ isActive: z.ZodBoolean;
25852
+ type: z.ZodString;
25853
+ }, "strip", z.ZodTypeAny, {
25854
+ type: string;
25855
+ id: string;
25856
+ name: string;
25857
+ createdAt: Date;
25858
+ updatedAt: Date;
25859
+ deletedAt: Date | null;
25860
+ isActive: boolean;
25861
+ }, {
25862
+ type: string;
25863
+ id: string;
25864
+ name: string;
25865
+ createdAt: Date;
25866
+ updatedAt: Date;
25867
+ deletedAt: Date | null;
25868
+ isActive: boolean;
25869
+ }>;
24866
25870
  }, "strip", z.ZodTypeAny, {
24867
25871
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
24868
25872
  message: string;
@@ -25308,8 +26312,38 @@ export declare const mainChatContract: {
25308
26312
  callFrom: string | null;
25309
26313
  callTo: string | null;
25310
26314
  note: string | null;
26315
+ customFields?: {
26316
+ id: string;
26317
+ createdAt: Date;
26318
+ updatedAt: Date;
26319
+ deletedAt: Date | null;
26320
+ entityId: string;
26321
+ attributeId: string;
26322
+ textValue: string | null;
26323
+ booleanValue: boolean | null;
26324
+ numberValue: number | null;
26325
+ dateValue: Date | null;
26326
+ }[] | null | undefined;
25311
26327
  } | null;
25312
26328
  };
26329
+ workflowRule: {
26330
+ type: string;
26331
+ id: string;
26332
+ name: string;
26333
+ createdAt: Date;
26334
+ updatedAt: Date;
26335
+ deletedAt: Date | null;
26336
+ isActive: boolean;
26337
+ };
26338
+ };
26339
+ workflowRule: {
26340
+ type: string;
26341
+ id: string;
26342
+ name: string;
26343
+ createdAt: Date;
26344
+ updatedAt: Date;
26345
+ deletedAt: Date | null;
26346
+ isActive: boolean;
25313
26347
  };
25314
26348
  readAt: Date;
25315
26349
  platformMessageId: string;
@@ -25971,8 +27005,38 @@ export declare const mainChatContract: {
25971
27005
  callFrom: string | null;
25972
27006
  callTo: string | null;
25973
27007
  note: string | null;
27008
+ customFields?: {
27009
+ id: string;
27010
+ createdAt: Date;
27011
+ updatedAt: Date;
27012
+ deletedAt: Date | null;
27013
+ entityId: string;
27014
+ attributeId: string;
27015
+ textValue: string | null;
27016
+ booleanValue: boolean | null;
27017
+ numberValue: number | null;
27018
+ dateValue: Date | null;
27019
+ }[] | null | undefined;
25974
27020
  } | null;
25975
27021
  };
27022
+ workflowRule: {
27023
+ type: string;
27024
+ id: string;
27025
+ name: string;
27026
+ createdAt: Date;
27027
+ updatedAt: Date;
27028
+ deletedAt: Date | null;
27029
+ isActive: boolean;
27030
+ };
27031
+ };
27032
+ workflowRule: {
27033
+ type: string;
27034
+ id: string;
27035
+ name: string;
27036
+ createdAt: Date;
27037
+ updatedAt: Date;
27038
+ deletedAt: Date | null;
27039
+ isActive: boolean;
25976
27040
  };
25977
27041
  readAt: Date;
25978
27042
  platformMessageId: string;
@@ -26636,8 +27700,38 @@ export declare const mainChatContract: {
26636
27700
  callFrom: string | null;
26637
27701
  callTo: string | null;
26638
27702
  note: string | null;
27703
+ customFields?: {
27704
+ id: string;
27705
+ createdAt: Date;
27706
+ updatedAt: Date;
27707
+ deletedAt: Date | null;
27708
+ entityId: string;
27709
+ attributeId: string;
27710
+ textValue: string | null;
27711
+ booleanValue: boolean | null;
27712
+ numberValue: number | null;
27713
+ dateValue: Date | null;
27714
+ }[] | null | undefined;
26639
27715
  } | null;
26640
27716
  };
27717
+ workflowRule: {
27718
+ type: string;
27719
+ id: string;
27720
+ name: string;
27721
+ createdAt: Date;
27722
+ updatedAt: Date;
27723
+ deletedAt: Date | null;
27724
+ isActive: boolean;
27725
+ };
27726
+ };
27727
+ workflowRule: {
27728
+ type: string;
27729
+ id: string;
27730
+ name: string;
27731
+ createdAt: Date;
27732
+ updatedAt: Date;
27733
+ deletedAt: Date | null;
27734
+ isActive: boolean;
26641
27735
  };
26642
27736
  readAt: Date;
26643
27737
  platformMessageId: string;
@@ -27305,8 +28399,38 @@ export declare const mainChatContract: {
27305
28399
  callFrom: string | null;
27306
28400
  callTo: string | null;
27307
28401
  note: string | null;
28402
+ customFields?: {
28403
+ id: string;
28404
+ createdAt: Date;
28405
+ updatedAt: Date;
28406
+ deletedAt: Date | null;
28407
+ entityId: string;
28408
+ attributeId: string;
28409
+ textValue: string | null;
28410
+ booleanValue: boolean | null;
28411
+ numberValue: number | null;
28412
+ dateValue: Date | null;
28413
+ }[] | null | undefined;
27308
28414
  } | null;
27309
28415
  };
28416
+ workflowRule: {
28417
+ type: string;
28418
+ id: string;
28419
+ name: string;
28420
+ createdAt: Date;
28421
+ updatedAt: Date;
28422
+ deletedAt: Date | null;
28423
+ isActive: boolean;
28424
+ };
28425
+ };
28426
+ workflowRule: {
28427
+ type: string;
28428
+ id: string;
28429
+ name: string;
28430
+ createdAt: Date;
28431
+ updatedAt: Date;
28432
+ deletedAt: Date | null;
28433
+ isActive: boolean;
27310
28434
  };
27311
28435
  readAt: Date;
27312
28436
  platformMessageId: string;
@@ -29431,6 +30555,40 @@ export declare const mainChatContract: {
29431
30555
  }>, "many">;
29432
30556
  callFrom: z.ZodNullable<z.ZodString>;
29433
30557
  callTo: z.ZodNullable<z.ZodString>;
30558
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
30559
+ id: z.ZodString;
30560
+ createdAt: z.ZodDate;
30561
+ updatedAt: z.ZodDate;
30562
+ deletedAt: z.ZodNullable<z.ZodDate>;
30563
+ textValue: z.ZodNullable<z.ZodString>;
30564
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
30565
+ numberValue: z.ZodNullable<z.ZodNumber>;
30566
+ dateValue: z.ZodNullable<z.ZodDate>;
30567
+ entityId: z.ZodString;
30568
+ attributeId: z.ZodString;
30569
+ }, "strip", z.ZodTypeAny, {
30570
+ id: string;
30571
+ createdAt: Date;
30572
+ updatedAt: Date;
30573
+ deletedAt: Date | null;
30574
+ entityId: string;
30575
+ attributeId: string;
30576
+ textValue: string | null;
30577
+ booleanValue: boolean | null;
30578
+ numberValue: number | null;
30579
+ dateValue: Date | null;
30580
+ }, {
30581
+ id: string;
30582
+ createdAt: Date;
30583
+ updatedAt: Date;
30584
+ deletedAt: Date | null;
30585
+ entityId: string;
30586
+ attributeId: string;
30587
+ textValue: string | null;
30588
+ booleanValue: boolean | null;
30589
+ numberValue: number | null;
30590
+ dateValue: Date | null;
30591
+ }>, "many">>>;
29434
30592
  }, "strip", z.ZodTypeAny, {
29435
30593
  type: string;
29436
30594
  id: string;
@@ -29470,6 +30628,18 @@ export declare const mainChatContract: {
29470
30628
  callFrom: string | null;
29471
30629
  callTo: string | null;
29472
30630
  note: string | null;
30631
+ customFields?: {
30632
+ id: string;
30633
+ createdAt: Date;
30634
+ updatedAt: Date;
30635
+ deletedAt: Date | null;
30636
+ entityId: string;
30637
+ attributeId: string;
30638
+ textValue: string | null;
30639
+ booleanValue: boolean | null;
30640
+ numberValue: number | null;
30641
+ dateValue: Date | null;
30642
+ }[] | null | undefined;
29473
30643
  }, {
29474
30644
  type: string;
29475
30645
  id: string;
@@ -29509,6 +30679,18 @@ export declare const mainChatContract: {
29509
30679
  callFrom: string | null;
29510
30680
  callTo: string | null;
29511
30681
  note: string | null;
30682
+ customFields?: {
30683
+ id: string;
30684
+ createdAt: Date;
30685
+ updatedAt: Date;
30686
+ deletedAt: Date | null;
30687
+ entityId: string;
30688
+ attributeId: string;
30689
+ textValue: string | null;
30690
+ booleanValue: boolean | null;
30691
+ numberValue: number | null;
30692
+ dateValue: Date | null;
30693
+ }[] | null | undefined;
29512
30694
  }>>;
29513
30695
  }, "strip", z.ZodTypeAny, {
29514
30696
  id: string;
@@ -29565,6 +30747,18 @@ export declare const mainChatContract: {
29565
30747
  callFrom: string | null;
29566
30748
  callTo: string | null;
29567
30749
  note: string | null;
30750
+ customFields?: {
30751
+ id: string;
30752
+ createdAt: Date;
30753
+ updatedAt: Date;
30754
+ deletedAt: Date | null;
30755
+ entityId: string;
30756
+ attributeId: string;
30757
+ textValue: string | null;
30758
+ booleanValue: boolean | null;
30759
+ numberValue: number | null;
30760
+ dateValue: Date | null;
30761
+ }[] | null | undefined;
29568
30762
  } | null;
29569
30763
  }, {
29570
30764
  id: string;
@@ -29621,8 +30815,45 @@ export declare const mainChatContract: {
29621
30815
  callFrom: string | null;
29622
30816
  callTo: string | null;
29623
30817
  note: string | null;
30818
+ customFields?: {
30819
+ id: string;
30820
+ createdAt: Date;
30821
+ updatedAt: Date;
30822
+ deletedAt: Date | null;
30823
+ entityId: string;
30824
+ attributeId: string;
30825
+ textValue: string | null;
30826
+ booleanValue: boolean | null;
30827
+ numberValue: number | null;
30828
+ dateValue: Date | null;
30829
+ }[] | null | undefined;
29624
30830
  } | null;
29625
30831
  }>;
30832
+ workflowRule: z.ZodObject<{
30833
+ id: z.ZodString;
30834
+ createdAt: z.ZodDate;
30835
+ updatedAt: z.ZodDate;
30836
+ deletedAt: z.ZodNullable<z.ZodDate>;
30837
+ name: z.ZodString;
30838
+ isActive: z.ZodBoolean;
30839
+ type: z.ZodString;
30840
+ }, "strip", z.ZodTypeAny, {
30841
+ type: string;
30842
+ id: string;
30843
+ name: string;
30844
+ createdAt: Date;
30845
+ updatedAt: Date;
30846
+ deletedAt: Date | null;
30847
+ isActive: boolean;
30848
+ }, {
30849
+ type: string;
30850
+ id: string;
30851
+ name: string;
30852
+ createdAt: Date;
30853
+ updatedAt: Date;
30854
+ deletedAt: Date | null;
30855
+ isActive: boolean;
30856
+ }>;
29626
30857
  solveMessage: z.ZodString;
29627
30858
  }, "strip", z.ZodTypeAny, {
29628
30859
  id: string;
@@ -29959,8 +31190,29 @@ export declare const mainChatContract: {
29959
31190
  callFrom: string | null;
29960
31191
  callTo: string | null;
29961
31192
  note: string | null;
31193
+ customFields?: {
31194
+ id: string;
31195
+ createdAt: Date;
31196
+ updatedAt: Date;
31197
+ deletedAt: Date | null;
31198
+ entityId: string;
31199
+ attributeId: string;
31200
+ textValue: string | null;
31201
+ booleanValue: boolean | null;
31202
+ numberValue: number | null;
31203
+ dateValue: Date | null;
31204
+ }[] | null | undefined;
29962
31205
  } | null;
29963
31206
  };
31207
+ workflowRule: {
31208
+ type: string;
31209
+ id: string;
31210
+ name: string;
31211
+ createdAt: Date;
31212
+ updatedAt: Date;
31213
+ deletedAt: Date | null;
31214
+ isActive: boolean;
31215
+ };
29964
31216
  solveMessage: string;
29965
31217
  }, {
29966
31218
  id: string;
@@ -30297,8 +31549,29 @@ export declare const mainChatContract: {
30297
31549
  callFrom: string | null;
30298
31550
  callTo: string | null;
30299
31551
  note: string | null;
31552
+ customFields?: {
31553
+ id: string;
31554
+ createdAt: Date;
31555
+ updatedAt: Date;
31556
+ deletedAt: Date | null;
31557
+ entityId: string;
31558
+ attributeId: string;
31559
+ textValue: string | null;
31560
+ booleanValue: boolean | null;
31561
+ numberValue: number | null;
31562
+ dateValue: Date | null;
31563
+ }[] | null | undefined;
30300
31564
  } | null;
30301
31565
  };
31566
+ workflowRule: {
31567
+ type: string;
31568
+ id: string;
31569
+ name: string;
31570
+ createdAt: Date;
31571
+ updatedAt: Date;
31572
+ deletedAt: Date | null;
31573
+ isActive: boolean;
31574
+ };
30302
31575
  solveMessage: string;
30303
31576
  }>;
30304
31577
  }, "strip", z.ZodTypeAny, {
@@ -30637,8 +31910,29 @@ export declare const mainChatContract: {
30637
31910
  callFrom: string | null;
30638
31911
  callTo: string | null;
30639
31912
  note: string | null;
31913
+ customFields?: {
31914
+ id: string;
31915
+ createdAt: Date;
31916
+ updatedAt: Date;
31917
+ deletedAt: Date | null;
31918
+ entityId: string;
31919
+ attributeId: string;
31920
+ textValue: string | null;
31921
+ booleanValue: boolean | null;
31922
+ numberValue: number | null;
31923
+ dateValue: Date | null;
31924
+ }[] | null | undefined;
30640
31925
  } | null;
30641
31926
  };
31927
+ workflowRule: {
31928
+ type: string;
31929
+ id: string;
31930
+ name: string;
31931
+ createdAt: Date;
31932
+ updatedAt: Date;
31933
+ deletedAt: Date | null;
31934
+ isActive: boolean;
31935
+ };
30642
31936
  solveMessage: string;
30643
31937
  };
30644
31938
  requestId: string;
@@ -30978,8 +32272,29 @@ export declare const mainChatContract: {
30978
32272
  callFrom: string | null;
30979
32273
  callTo: string | null;
30980
32274
  note: string | null;
32275
+ customFields?: {
32276
+ id: string;
32277
+ createdAt: Date;
32278
+ updatedAt: Date;
32279
+ deletedAt: Date | null;
32280
+ entityId: string;
32281
+ attributeId: string;
32282
+ textValue: string | null;
32283
+ booleanValue: boolean | null;
32284
+ numberValue: number | null;
32285
+ dateValue: Date | null;
32286
+ }[] | null | undefined;
30981
32287
  } | null;
30982
32288
  };
32289
+ workflowRule: {
32290
+ type: string;
32291
+ id: string;
32292
+ name: string;
32293
+ createdAt: Date;
32294
+ updatedAt: Date;
32295
+ deletedAt: Date | null;
32296
+ isActive: boolean;
32297
+ };
30983
32298
  solveMessage: string;
30984
32299
  };
30985
32300
  requestId: string;
@@ -32896,6 +34211,40 @@ export declare const mainChatContract: {
32896
34211
  }>, "many">;
32897
34212
  callFrom: z.ZodNullable<z.ZodString>;
32898
34213
  callTo: z.ZodNullable<z.ZodString>;
34214
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
34215
+ id: z.ZodString;
34216
+ createdAt: z.ZodDate;
34217
+ updatedAt: z.ZodDate;
34218
+ deletedAt: z.ZodNullable<z.ZodDate>;
34219
+ textValue: z.ZodNullable<z.ZodString>;
34220
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
34221
+ numberValue: z.ZodNullable<z.ZodNumber>;
34222
+ dateValue: z.ZodNullable<z.ZodDate>;
34223
+ entityId: z.ZodString;
34224
+ attributeId: z.ZodString;
34225
+ }, "strip", z.ZodTypeAny, {
34226
+ id: string;
34227
+ createdAt: Date;
34228
+ updatedAt: Date;
34229
+ deletedAt: Date | null;
34230
+ entityId: string;
34231
+ attributeId: string;
34232
+ textValue: string | null;
34233
+ booleanValue: boolean | null;
34234
+ numberValue: number | null;
34235
+ dateValue: Date | null;
34236
+ }, {
34237
+ id: string;
34238
+ createdAt: Date;
34239
+ updatedAt: Date;
34240
+ deletedAt: Date | null;
34241
+ entityId: string;
34242
+ attributeId: string;
34243
+ textValue: string | null;
34244
+ booleanValue: boolean | null;
34245
+ numberValue: number | null;
34246
+ dateValue: Date | null;
34247
+ }>, "many">>>;
32899
34248
  }, "strip", z.ZodTypeAny, {
32900
34249
  type: string;
32901
34250
  id: string;
@@ -32935,6 +34284,18 @@ export declare const mainChatContract: {
32935
34284
  callFrom: string | null;
32936
34285
  callTo: string | null;
32937
34286
  note: string | null;
34287
+ customFields?: {
34288
+ id: string;
34289
+ createdAt: Date;
34290
+ updatedAt: Date;
34291
+ deletedAt: Date | null;
34292
+ entityId: string;
34293
+ attributeId: string;
34294
+ textValue: string | null;
34295
+ booleanValue: boolean | null;
34296
+ numberValue: number | null;
34297
+ dateValue: Date | null;
34298
+ }[] | null | undefined;
32938
34299
  }, {
32939
34300
  type: string;
32940
34301
  id: string;
@@ -32974,6 +34335,18 @@ export declare const mainChatContract: {
32974
34335
  callFrom: string | null;
32975
34336
  callTo: string | null;
32976
34337
  note: string | null;
34338
+ customFields?: {
34339
+ id: string;
34340
+ createdAt: Date;
34341
+ updatedAt: Date;
34342
+ deletedAt: Date | null;
34343
+ entityId: string;
34344
+ attributeId: string;
34345
+ textValue: string | null;
34346
+ booleanValue: boolean | null;
34347
+ numberValue: number | null;
34348
+ dateValue: Date | null;
34349
+ }[] | null | undefined;
32977
34350
  }>>;
32978
34351
  }, "strip", z.ZodTypeAny, {
32979
34352
  id: string;
@@ -33030,6 +34403,18 @@ export declare const mainChatContract: {
33030
34403
  callFrom: string | null;
33031
34404
  callTo: string | null;
33032
34405
  note: string | null;
34406
+ customFields?: {
34407
+ id: string;
34408
+ createdAt: Date;
34409
+ updatedAt: Date;
34410
+ deletedAt: Date | null;
34411
+ entityId: string;
34412
+ attributeId: string;
34413
+ textValue: string | null;
34414
+ booleanValue: boolean | null;
34415
+ numberValue: number | null;
34416
+ dateValue: Date | null;
34417
+ }[] | null | undefined;
33033
34418
  } | null;
33034
34419
  }, {
33035
34420
  id: string;
@@ -33086,8 +34471,45 @@ export declare const mainChatContract: {
33086
34471
  callFrom: string | null;
33087
34472
  callTo: string | null;
33088
34473
  note: string | null;
34474
+ customFields?: {
34475
+ id: string;
34476
+ createdAt: Date;
34477
+ updatedAt: Date;
34478
+ deletedAt: Date | null;
34479
+ entityId: string;
34480
+ attributeId: string;
34481
+ textValue: string | null;
34482
+ booleanValue: boolean | null;
34483
+ numberValue: number | null;
34484
+ dateValue: Date | null;
34485
+ }[] | null | undefined;
33089
34486
  } | null;
33090
34487
  }>;
34488
+ workflowRule: z.ZodObject<{
34489
+ id: z.ZodString;
34490
+ createdAt: z.ZodDate;
34491
+ updatedAt: z.ZodDate;
34492
+ deletedAt: z.ZodNullable<z.ZodDate>;
34493
+ name: z.ZodString;
34494
+ isActive: z.ZodBoolean;
34495
+ type: z.ZodString;
34496
+ }, "strip", z.ZodTypeAny, {
34497
+ type: string;
34498
+ id: string;
34499
+ name: string;
34500
+ createdAt: Date;
34501
+ updatedAt: Date;
34502
+ deletedAt: Date | null;
34503
+ isActive: boolean;
34504
+ }, {
34505
+ type: string;
34506
+ id: string;
34507
+ name: string;
34508
+ createdAt: Date;
34509
+ updatedAt: Date;
34510
+ deletedAt: Date | null;
34511
+ isActive: boolean;
34512
+ }>;
33091
34513
  }, "strip", z.ZodTypeAny, {
33092
34514
  id: string;
33093
34515
  channel: {
@@ -33423,8 +34845,29 @@ export declare const mainChatContract: {
33423
34845
  callFrom: string | null;
33424
34846
  callTo: string | null;
33425
34847
  note: string | null;
34848
+ customFields?: {
34849
+ id: string;
34850
+ createdAt: Date;
34851
+ updatedAt: Date;
34852
+ deletedAt: Date | null;
34853
+ entityId: string;
34854
+ attributeId: string;
34855
+ textValue: string | null;
34856
+ booleanValue: boolean | null;
34857
+ numberValue: number | null;
34858
+ dateValue: Date | null;
34859
+ }[] | null | undefined;
33426
34860
  } | null;
33427
34861
  };
34862
+ workflowRule: {
34863
+ type: string;
34864
+ id: string;
34865
+ name: string;
34866
+ createdAt: Date;
34867
+ updatedAt: Date;
34868
+ deletedAt: Date | null;
34869
+ isActive: boolean;
34870
+ };
33428
34871
  }, {
33429
34872
  id: string;
33430
34873
  channel: {
@@ -33760,8 +35203,29 @@ export declare const mainChatContract: {
33760
35203
  callFrom: string | null;
33761
35204
  callTo: string | null;
33762
35205
  note: string | null;
35206
+ customFields?: {
35207
+ id: string;
35208
+ createdAt: Date;
35209
+ updatedAt: Date;
35210
+ deletedAt: Date | null;
35211
+ entityId: string;
35212
+ attributeId: string;
35213
+ textValue: string | null;
35214
+ booleanValue: boolean | null;
35215
+ numberValue: number | null;
35216
+ dateValue: Date | null;
35217
+ }[] | null | undefined;
33763
35218
  } | null;
33764
35219
  };
35220
+ workflowRule: {
35221
+ type: string;
35222
+ id: string;
35223
+ name: string;
35224
+ createdAt: Date;
35225
+ updatedAt: Date;
35226
+ deletedAt: Date | null;
35227
+ isActive: boolean;
35228
+ };
33765
35229
  }>;
33766
35230
  }, "strip", z.ZodTypeAny, {
33767
35231
  data: {
@@ -34099,8 +35563,29 @@ export declare const mainChatContract: {
34099
35563
  callFrom: string | null;
34100
35564
  callTo: string | null;
34101
35565
  note: string | null;
35566
+ customFields?: {
35567
+ id: string;
35568
+ createdAt: Date;
35569
+ updatedAt: Date;
35570
+ deletedAt: Date | null;
35571
+ entityId: string;
35572
+ attributeId: string;
35573
+ textValue: string | null;
35574
+ booleanValue: boolean | null;
35575
+ numberValue: number | null;
35576
+ dateValue: Date | null;
35577
+ }[] | null | undefined;
34102
35578
  } | null;
34103
35579
  };
35580
+ workflowRule: {
35581
+ type: string;
35582
+ id: string;
35583
+ name: string;
35584
+ createdAt: Date;
35585
+ updatedAt: Date;
35586
+ deletedAt: Date | null;
35587
+ isActive: boolean;
35588
+ };
34104
35589
  };
34105
35590
  requestId: string;
34106
35591
  }, {
@@ -34439,11 +35924,42 @@ export declare const mainChatContract: {
34439
35924
  callFrom: string | null;
34440
35925
  callTo: string | null;
34441
35926
  note: string | null;
35927
+ customFields?: {
35928
+ id: string;
35929
+ createdAt: Date;
35930
+ updatedAt: Date;
35931
+ deletedAt: Date | null;
35932
+ entityId: string;
35933
+ attributeId: string;
35934
+ textValue: string | null;
35935
+ booleanValue: boolean | null;
35936
+ numberValue: number | null;
35937
+ dateValue: Date | null;
35938
+ }[] | null | undefined;
34442
35939
  } | null;
34443
35940
  };
35941
+ workflowRule: {
35942
+ type: string;
35943
+ id: string;
35944
+ name: string;
35945
+ createdAt: Date;
35946
+ updatedAt: Date;
35947
+ deletedAt: Date | null;
35948
+ isActive: boolean;
35949
+ };
34444
35950
  };
34445
35951
  requestId: string;
34446
35952
  }>;
35953
+ 409: z.ZodObject<{
35954
+ message: z.ZodString;
35955
+ error: z.ZodAny;
35956
+ }, "strip", z.ZodTypeAny, {
35957
+ message: string;
35958
+ error?: any;
35959
+ }, {
35960
+ message: string;
35961
+ error?: any;
35962
+ }>;
34447
35963
  };
34448
35964
  path: "chat/room/assignee/update";
34449
35965
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -36344,6 +37860,40 @@ export declare const mainChatContract: {
36344
37860
  }>, "many">;
36345
37861
  callFrom: z.ZodNullable<z.ZodString>;
36346
37862
  callTo: z.ZodNullable<z.ZodString>;
37863
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
37864
+ id: z.ZodString;
37865
+ createdAt: z.ZodDate;
37866
+ updatedAt: z.ZodDate;
37867
+ deletedAt: z.ZodNullable<z.ZodDate>;
37868
+ textValue: z.ZodNullable<z.ZodString>;
37869
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
37870
+ numberValue: z.ZodNullable<z.ZodNumber>;
37871
+ dateValue: z.ZodNullable<z.ZodDate>;
37872
+ entityId: z.ZodString;
37873
+ attributeId: z.ZodString;
37874
+ }, "strip", z.ZodTypeAny, {
37875
+ id: string;
37876
+ createdAt: Date;
37877
+ updatedAt: Date;
37878
+ deletedAt: Date | null;
37879
+ entityId: string;
37880
+ attributeId: string;
37881
+ textValue: string | null;
37882
+ booleanValue: boolean | null;
37883
+ numberValue: number | null;
37884
+ dateValue: Date | null;
37885
+ }, {
37886
+ id: string;
37887
+ createdAt: Date;
37888
+ updatedAt: Date;
37889
+ deletedAt: Date | null;
37890
+ entityId: string;
37891
+ attributeId: string;
37892
+ textValue: string | null;
37893
+ booleanValue: boolean | null;
37894
+ numberValue: number | null;
37895
+ dateValue: Date | null;
37896
+ }>, "many">>>;
36347
37897
  }, "strip", z.ZodTypeAny, {
36348
37898
  type: string;
36349
37899
  id: string;
@@ -36383,6 +37933,18 @@ export declare const mainChatContract: {
36383
37933
  callFrom: string | null;
36384
37934
  callTo: string | null;
36385
37935
  note: string | null;
37936
+ customFields?: {
37937
+ id: string;
37938
+ createdAt: Date;
37939
+ updatedAt: Date;
37940
+ deletedAt: Date | null;
37941
+ entityId: string;
37942
+ attributeId: string;
37943
+ textValue: string | null;
37944
+ booleanValue: boolean | null;
37945
+ numberValue: number | null;
37946
+ dateValue: Date | null;
37947
+ }[] | null | undefined;
36386
37948
  }, {
36387
37949
  type: string;
36388
37950
  id: string;
@@ -36422,6 +37984,18 @@ export declare const mainChatContract: {
36422
37984
  callFrom: string | null;
36423
37985
  callTo: string | null;
36424
37986
  note: string | null;
37987
+ customFields?: {
37988
+ id: string;
37989
+ createdAt: Date;
37990
+ updatedAt: Date;
37991
+ deletedAt: Date | null;
37992
+ entityId: string;
37993
+ attributeId: string;
37994
+ textValue: string | null;
37995
+ booleanValue: boolean | null;
37996
+ numberValue: number | null;
37997
+ dateValue: Date | null;
37998
+ }[] | null | undefined;
36425
37999
  }>>;
36426
38000
  }, "strip", z.ZodTypeAny, {
36427
38001
  id: string;
@@ -36478,6 +38052,18 @@ export declare const mainChatContract: {
36478
38052
  callFrom: string | null;
36479
38053
  callTo: string | null;
36480
38054
  note: string | null;
38055
+ customFields?: {
38056
+ id: string;
38057
+ createdAt: Date;
38058
+ updatedAt: Date;
38059
+ deletedAt: Date | null;
38060
+ entityId: string;
38061
+ attributeId: string;
38062
+ textValue: string | null;
38063
+ booleanValue: boolean | null;
38064
+ numberValue: number | null;
38065
+ dateValue: Date | null;
38066
+ }[] | null | undefined;
36481
38067
  } | null;
36482
38068
  }, {
36483
38069
  id: string;
@@ -36534,8 +38120,45 @@ export declare const mainChatContract: {
36534
38120
  callFrom: string | null;
36535
38121
  callTo: string | null;
36536
38122
  note: string | null;
38123
+ customFields?: {
38124
+ id: string;
38125
+ createdAt: Date;
38126
+ updatedAt: Date;
38127
+ deletedAt: Date | null;
38128
+ entityId: string;
38129
+ attributeId: string;
38130
+ textValue: string | null;
38131
+ booleanValue: boolean | null;
38132
+ numberValue: number | null;
38133
+ dateValue: Date | null;
38134
+ }[] | null | undefined;
36537
38135
  } | null;
36538
38136
  }>;
38137
+ workflowRule: z.ZodObject<{
38138
+ id: z.ZodString;
38139
+ createdAt: z.ZodDate;
38140
+ updatedAt: z.ZodDate;
38141
+ deletedAt: z.ZodNullable<z.ZodDate>;
38142
+ name: z.ZodString;
38143
+ isActive: z.ZodBoolean;
38144
+ type: z.ZodString;
38145
+ }, "strip", z.ZodTypeAny, {
38146
+ type: string;
38147
+ id: string;
38148
+ name: string;
38149
+ createdAt: Date;
38150
+ updatedAt: Date;
38151
+ deletedAt: Date | null;
38152
+ isActive: boolean;
38153
+ }, {
38154
+ type: string;
38155
+ id: string;
38156
+ name: string;
38157
+ createdAt: Date;
38158
+ updatedAt: Date;
38159
+ deletedAt: Date | null;
38160
+ isActive: boolean;
38161
+ }>;
36539
38162
  }, "strip", z.ZodTypeAny, {
36540
38163
  id: string;
36541
38164
  channel: {
@@ -36871,8 +38494,29 @@ export declare const mainChatContract: {
36871
38494
  callFrom: string | null;
36872
38495
  callTo: string | null;
36873
38496
  note: string | null;
38497
+ customFields?: {
38498
+ id: string;
38499
+ createdAt: Date;
38500
+ updatedAt: Date;
38501
+ deletedAt: Date | null;
38502
+ entityId: string;
38503
+ attributeId: string;
38504
+ textValue: string | null;
38505
+ booleanValue: boolean | null;
38506
+ numberValue: number | null;
38507
+ dateValue: Date | null;
38508
+ }[] | null | undefined;
36874
38509
  } | null;
36875
38510
  };
38511
+ workflowRule: {
38512
+ type: string;
38513
+ id: string;
38514
+ name: string;
38515
+ createdAt: Date;
38516
+ updatedAt: Date;
38517
+ deletedAt: Date | null;
38518
+ isActive: boolean;
38519
+ };
36876
38520
  }, {
36877
38521
  id: string;
36878
38522
  channel: {
@@ -37208,8 +38852,29 @@ export declare const mainChatContract: {
37208
38852
  callFrom: string | null;
37209
38853
  callTo: string | null;
37210
38854
  note: string | null;
38855
+ customFields?: {
38856
+ id: string;
38857
+ createdAt: Date;
38858
+ updatedAt: Date;
38859
+ deletedAt: Date | null;
38860
+ entityId: string;
38861
+ attributeId: string;
38862
+ textValue: string | null;
38863
+ booleanValue: boolean | null;
38864
+ numberValue: number | null;
38865
+ dateValue: Date | null;
38866
+ }[] | null | undefined;
37211
38867
  } | null;
37212
38868
  };
38869
+ workflowRule: {
38870
+ type: string;
38871
+ id: string;
38872
+ name: string;
38873
+ createdAt: Date;
38874
+ updatedAt: Date;
38875
+ deletedAt: Date | null;
38876
+ isActive: boolean;
38877
+ };
37213
38878
  }>;
37214
38879
  latestIncomingMessage: z.ZodObject<{
37215
38880
  message: z.ZodString;
@@ -37590,8 +39255,29 @@ export declare const mainChatContract: {
37590
39255
  callFrom: string | null;
37591
39256
  callTo: string | null;
37592
39257
  note: string | null;
39258
+ customFields?: {
39259
+ id: string;
39260
+ createdAt: Date;
39261
+ updatedAt: Date;
39262
+ deletedAt: Date | null;
39263
+ entityId: string;
39264
+ attributeId: string;
39265
+ textValue: string | null;
39266
+ booleanValue: boolean | null;
39267
+ numberValue: number | null;
39268
+ dateValue: Date | null;
39269
+ }[] | null | undefined;
37593
39270
  } | null;
37594
39271
  };
39272
+ workflowRule: {
39273
+ type: string;
39274
+ id: string;
39275
+ name: string;
39276
+ createdAt: Date;
39277
+ updatedAt: Date;
39278
+ deletedAt: Date | null;
39279
+ isActive: boolean;
39280
+ };
37595
39281
  };
37596
39282
  latestIncomingMessage: {
37597
39283
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
@@ -37944,8 +39630,29 @@ export declare const mainChatContract: {
37944
39630
  callFrom: string | null;
37945
39631
  callTo: string | null;
37946
39632
  note: string | null;
39633
+ customFields?: {
39634
+ id: string;
39635
+ createdAt: Date;
39636
+ updatedAt: Date;
39637
+ deletedAt: Date | null;
39638
+ entityId: string;
39639
+ attributeId: string;
39640
+ textValue: string | null;
39641
+ booleanValue: boolean | null;
39642
+ numberValue: number | null;
39643
+ dateValue: Date | null;
39644
+ }[] | null | undefined;
37947
39645
  } | null;
37948
39646
  };
39647
+ workflowRule: {
39648
+ type: string;
39649
+ id: string;
39650
+ name: string;
39651
+ createdAt: Date;
39652
+ updatedAt: Date;
39653
+ deletedAt: Date | null;
39654
+ isActive: boolean;
39655
+ };
37949
39656
  };
37950
39657
  latestIncomingMessage: {
37951
39658
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
@@ -38300,8 +40007,29 @@ export declare const mainChatContract: {
38300
40007
  callFrom: string | null;
38301
40008
  callTo: string | null;
38302
40009
  note: string | null;
40010
+ customFields?: {
40011
+ id: string;
40012
+ createdAt: Date;
40013
+ updatedAt: Date;
40014
+ deletedAt: Date | null;
40015
+ entityId: string;
40016
+ attributeId: string;
40017
+ textValue: string | null;
40018
+ booleanValue: boolean | null;
40019
+ numberValue: number | null;
40020
+ dateValue: Date | null;
40021
+ }[] | null | undefined;
38303
40022
  } | null;
38304
40023
  };
40024
+ workflowRule: {
40025
+ type: string;
40026
+ id: string;
40027
+ name: string;
40028
+ createdAt: Date;
40029
+ updatedAt: Date;
40030
+ deletedAt: Date | null;
40031
+ isActive: boolean;
40032
+ };
38305
40033
  };
38306
40034
  latestIncomingMessage: {
38307
40035
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
@@ -38657,8 +40385,29 @@ export declare const mainChatContract: {
38657
40385
  callFrom: string | null;
38658
40386
  callTo: string | null;
38659
40387
  note: string | null;
40388
+ customFields?: {
40389
+ id: string;
40390
+ createdAt: Date;
40391
+ updatedAt: Date;
40392
+ deletedAt: Date | null;
40393
+ entityId: string;
40394
+ attributeId: string;
40395
+ textValue: string | null;
40396
+ booleanValue: boolean | null;
40397
+ numberValue: number | null;
40398
+ dateValue: Date | null;
40399
+ }[] | null | undefined;
38660
40400
  } | null;
38661
40401
  };
40402
+ workflowRule: {
40403
+ type: string;
40404
+ id: string;
40405
+ name: string;
40406
+ createdAt: Date;
40407
+ updatedAt: Date;
40408
+ deletedAt: Date | null;
40409
+ isActive: boolean;
40410
+ };
38662
40411
  };
38663
40412
  latestIncomingMessage: {
38664
40413
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
@@ -40588,6 +42337,40 @@ export declare const mainChatContract: {
40588
42337
  }>, "many">;
40589
42338
  callFrom: z.ZodNullable<z.ZodString>;
40590
42339
  callTo: z.ZodNullable<z.ZodString>;
42340
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
42341
+ id: z.ZodString;
42342
+ createdAt: z.ZodDate;
42343
+ updatedAt: z.ZodDate;
42344
+ deletedAt: z.ZodNullable<z.ZodDate>;
42345
+ textValue: z.ZodNullable<z.ZodString>;
42346
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
42347
+ numberValue: z.ZodNullable<z.ZodNumber>;
42348
+ dateValue: z.ZodNullable<z.ZodDate>;
42349
+ entityId: z.ZodString;
42350
+ attributeId: z.ZodString;
42351
+ }, "strip", z.ZodTypeAny, {
42352
+ id: string;
42353
+ createdAt: Date;
42354
+ updatedAt: Date;
42355
+ deletedAt: Date | null;
42356
+ entityId: string;
42357
+ attributeId: string;
42358
+ textValue: string | null;
42359
+ booleanValue: boolean | null;
42360
+ numberValue: number | null;
42361
+ dateValue: Date | null;
42362
+ }, {
42363
+ id: string;
42364
+ createdAt: Date;
42365
+ updatedAt: Date;
42366
+ deletedAt: Date | null;
42367
+ entityId: string;
42368
+ attributeId: string;
42369
+ textValue: string | null;
42370
+ booleanValue: boolean | null;
42371
+ numberValue: number | null;
42372
+ dateValue: Date | null;
42373
+ }>, "many">>>;
40591
42374
  }, "strip", z.ZodTypeAny, {
40592
42375
  type: string;
40593
42376
  id: string;
@@ -40627,6 +42410,18 @@ export declare const mainChatContract: {
40627
42410
  callFrom: string | null;
40628
42411
  callTo: string | null;
40629
42412
  note: string | null;
42413
+ customFields?: {
42414
+ id: string;
42415
+ createdAt: Date;
42416
+ updatedAt: Date;
42417
+ deletedAt: Date | null;
42418
+ entityId: string;
42419
+ attributeId: string;
42420
+ textValue: string | null;
42421
+ booleanValue: boolean | null;
42422
+ numberValue: number | null;
42423
+ dateValue: Date | null;
42424
+ }[] | null | undefined;
40630
42425
  }, {
40631
42426
  type: string;
40632
42427
  id: string;
@@ -40666,6 +42461,18 @@ export declare const mainChatContract: {
40666
42461
  callFrom: string | null;
40667
42462
  callTo: string | null;
40668
42463
  note: string | null;
42464
+ customFields?: {
42465
+ id: string;
42466
+ createdAt: Date;
42467
+ updatedAt: Date;
42468
+ deletedAt: Date | null;
42469
+ entityId: string;
42470
+ attributeId: string;
42471
+ textValue: string | null;
42472
+ booleanValue: boolean | null;
42473
+ numberValue: number | null;
42474
+ dateValue: Date | null;
42475
+ }[] | null | undefined;
40669
42476
  }>>;
40670
42477
  }, "strip", z.ZodTypeAny, {
40671
42478
  id: string;
@@ -40722,6 +42529,18 @@ export declare const mainChatContract: {
40722
42529
  callFrom: string | null;
40723
42530
  callTo: string | null;
40724
42531
  note: string | null;
42532
+ customFields?: {
42533
+ id: string;
42534
+ createdAt: Date;
42535
+ updatedAt: Date;
42536
+ deletedAt: Date | null;
42537
+ entityId: string;
42538
+ attributeId: string;
42539
+ textValue: string | null;
42540
+ booleanValue: boolean | null;
42541
+ numberValue: number | null;
42542
+ dateValue: Date | null;
42543
+ }[] | null | undefined;
40725
42544
  } | null;
40726
42545
  }, {
40727
42546
  id: string;
@@ -40778,8 +42597,45 @@ export declare const mainChatContract: {
40778
42597
  callFrom: string | null;
40779
42598
  callTo: string | null;
40780
42599
  note: string | null;
42600
+ customFields?: {
42601
+ id: string;
42602
+ createdAt: Date;
42603
+ updatedAt: Date;
42604
+ deletedAt: Date | null;
42605
+ entityId: string;
42606
+ attributeId: string;
42607
+ textValue: string | null;
42608
+ booleanValue: boolean | null;
42609
+ numberValue: number | null;
42610
+ dateValue: Date | null;
42611
+ }[] | null | undefined;
40781
42612
  } | null;
40782
42613
  }>;
42614
+ workflowRule: z.ZodObject<{
42615
+ id: z.ZodString;
42616
+ createdAt: z.ZodDate;
42617
+ updatedAt: z.ZodDate;
42618
+ deletedAt: z.ZodNullable<z.ZodDate>;
42619
+ name: z.ZodString;
42620
+ isActive: z.ZodBoolean;
42621
+ type: z.ZodString;
42622
+ }, "strip", z.ZodTypeAny, {
42623
+ type: string;
42624
+ id: string;
42625
+ name: string;
42626
+ createdAt: Date;
42627
+ updatedAt: Date;
42628
+ deletedAt: Date | null;
42629
+ isActive: boolean;
42630
+ }, {
42631
+ type: string;
42632
+ id: string;
42633
+ name: string;
42634
+ createdAt: Date;
42635
+ updatedAt: Date;
42636
+ deletedAt: Date | null;
42637
+ isActive: boolean;
42638
+ }>;
40783
42639
  contact: z.ZodObject<{
40784
42640
  id: z.ZodString;
40785
42641
  createdAt: z.ZodDate;
@@ -41900,8 +43756,29 @@ export declare const mainChatContract: {
41900
43756
  callFrom: string | null;
41901
43757
  callTo: string | null;
41902
43758
  note: string | null;
43759
+ customFields?: {
43760
+ id: string;
43761
+ createdAt: Date;
43762
+ updatedAt: Date;
43763
+ deletedAt: Date | null;
43764
+ entityId: string;
43765
+ attributeId: string;
43766
+ textValue: string | null;
43767
+ booleanValue: boolean | null;
43768
+ numberValue: number | null;
43769
+ dateValue: Date | null;
43770
+ }[] | null | undefined;
41903
43771
  } | null;
41904
43772
  };
43773
+ workflowRule: {
43774
+ type: string;
43775
+ id: string;
43776
+ name: string;
43777
+ createdAt: Date;
43778
+ updatedAt: Date;
43779
+ deletedAt: Date | null;
43780
+ isActive: boolean;
43781
+ };
41905
43782
  openMessage: string;
41906
43783
  }, {
41907
43784
  id: string;
@@ -42335,8 +44212,29 @@ export declare const mainChatContract: {
42335
44212
  callFrom: string | null;
42336
44213
  callTo: string | null;
42337
44214
  note: string | null;
44215
+ customFields?: {
44216
+ id: string;
44217
+ createdAt: Date;
44218
+ updatedAt: Date;
44219
+ deletedAt: Date | null;
44220
+ entityId: string;
44221
+ attributeId: string;
44222
+ textValue: string | null;
44223
+ booleanValue: boolean | null;
44224
+ numberValue: number | null;
44225
+ dateValue: Date | null;
44226
+ }[] | null | undefined;
42338
44227
  } | null;
42339
44228
  };
44229
+ workflowRule: {
44230
+ type: string;
44231
+ id: string;
44232
+ name: string;
44233
+ createdAt: Date;
44234
+ updatedAt: Date;
44235
+ deletedAt: Date | null;
44236
+ isActive: boolean;
44237
+ };
42340
44238
  openMessage: string;
42341
44239
  }>;
42342
44240
  }, "strip", z.ZodTypeAny, {
@@ -42772,8 +44670,29 @@ export declare const mainChatContract: {
42772
44670
  callFrom: string | null;
42773
44671
  callTo: string | null;
42774
44672
  note: string | null;
44673
+ customFields?: {
44674
+ id: string;
44675
+ createdAt: Date;
44676
+ updatedAt: Date;
44677
+ deletedAt: Date | null;
44678
+ entityId: string;
44679
+ attributeId: string;
44680
+ textValue: string | null;
44681
+ booleanValue: boolean | null;
44682
+ numberValue: number | null;
44683
+ dateValue: Date | null;
44684
+ }[] | null | undefined;
42775
44685
  } | null;
42776
44686
  };
44687
+ workflowRule: {
44688
+ type: string;
44689
+ id: string;
44690
+ name: string;
44691
+ createdAt: Date;
44692
+ updatedAt: Date;
44693
+ deletedAt: Date | null;
44694
+ isActive: boolean;
44695
+ };
42777
44696
  openMessage: string;
42778
44697
  };
42779
44698
  requestId: string;
@@ -43210,8 +45129,29 @@ export declare const mainChatContract: {
43210
45129
  callFrom: string | null;
43211
45130
  callTo: string | null;
43212
45131
  note: string | null;
45132
+ customFields?: {
45133
+ id: string;
45134
+ createdAt: Date;
45135
+ updatedAt: Date;
45136
+ deletedAt: Date | null;
45137
+ entityId: string;
45138
+ attributeId: string;
45139
+ textValue: string | null;
45140
+ booleanValue: boolean | null;
45141
+ numberValue: number | null;
45142
+ dateValue: Date | null;
45143
+ }[] | null | undefined;
43213
45144
  } | null;
43214
45145
  };
45146
+ workflowRule: {
45147
+ type: string;
45148
+ id: string;
45149
+ name: string;
45150
+ createdAt: Date;
45151
+ updatedAt: Date;
45152
+ deletedAt: Date | null;
45153
+ isActive: boolean;
45154
+ };
43215
45155
  openMessage: string;
43216
45156
  };
43217
45157
  requestId: string;
@@ -45116,6 +47056,40 @@ export declare const mainChatContract: {
45116
47056
  }>, "many">;
45117
47057
  callFrom: z.ZodNullable<z.ZodString>;
45118
47058
  callTo: z.ZodNullable<z.ZodString>;
47059
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
47060
+ id: z.ZodString;
47061
+ createdAt: z.ZodDate;
47062
+ updatedAt: z.ZodDate;
47063
+ deletedAt: z.ZodNullable<z.ZodDate>;
47064
+ textValue: z.ZodNullable<z.ZodString>;
47065
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
47066
+ numberValue: z.ZodNullable<z.ZodNumber>;
47067
+ dateValue: z.ZodNullable<z.ZodDate>;
47068
+ entityId: z.ZodString;
47069
+ attributeId: z.ZodString;
47070
+ }, "strip", z.ZodTypeAny, {
47071
+ id: string;
47072
+ createdAt: Date;
47073
+ updatedAt: Date;
47074
+ deletedAt: Date | null;
47075
+ entityId: string;
47076
+ attributeId: string;
47077
+ textValue: string | null;
47078
+ booleanValue: boolean | null;
47079
+ numberValue: number | null;
47080
+ dateValue: Date | null;
47081
+ }, {
47082
+ id: string;
47083
+ createdAt: Date;
47084
+ updatedAt: Date;
47085
+ deletedAt: Date | null;
47086
+ entityId: string;
47087
+ attributeId: string;
47088
+ textValue: string | null;
47089
+ booleanValue: boolean | null;
47090
+ numberValue: number | null;
47091
+ dateValue: Date | null;
47092
+ }>, "many">>>;
45119
47093
  }, "strip", z.ZodTypeAny, {
45120
47094
  type: string;
45121
47095
  id: string;
@@ -45155,6 +47129,18 @@ export declare const mainChatContract: {
45155
47129
  callFrom: string | null;
45156
47130
  callTo: string | null;
45157
47131
  note: string | null;
47132
+ customFields?: {
47133
+ id: string;
47134
+ createdAt: Date;
47135
+ updatedAt: Date;
47136
+ deletedAt: Date | null;
47137
+ entityId: string;
47138
+ attributeId: string;
47139
+ textValue: string | null;
47140
+ booleanValue: boolean | null;
47141
+ numberValue: number | null;
47142
+ dateValue: Date | null;
47143
+ }[] | null | undefined;
45158
47144
  }, {
45159
47145
  type: string;
45160
47146
  id: string;
@@ -45194,6 +47180,18 @@ export declare const mainChatContract: {
45194
47180
  callFrom: string | null;
45195
47181
  callTo: string | null;
45196
47182
  note: string | null;
47183
+ customFields?: {
47184
+ id: string;
47185
+ createdAt: Date;
47186
+ updatedAt: Date;
47187
+ deletedAt: Date | null;
47188
+ entityId: string;
47189
+ attributeId: string;
47190
+ textValue: string | null;
47191
+ booleanValue: boolean | null;
47192
+ numberValue: number | null;
47193
+ dateValue: Date | null;
47194
+ }[] | null | undefined;
45197
47195
  }>>;
45198
47196
  }, "strip", z.ZodTypeAny, {
45199
47197
  id: string;
@@ -45250,6 +47248,18 @@ export declare const mainChatContract: {
45250
47248
  callFrom: string | null;
45251
47249
  callTo: string | null;
45252
47250
  note: string | null;
47251
+ customFields?: {
47252
+ id: string;
47253
+ createdAt: Date;
47254
+ updatedAt: Date;
47255
+ deletedAt: Date | null;
47256
+ entityId: string;
47257
+ attributeId: string;
47258
+ textValue: string | null;
47259
+ booleanValue: boolean | null;
47260
+ numberValue: number | null;
47261
+ dateValue: Date | null;
47262
+ }[] | null | undefined;
45253
47263
  } | null;
45254
47264
  }, {
45255
47265
  id: string;
@@ -45306,8 +47316,45 @@ export declare const mainChatContract: {
45306
47316
  callFrom: string | null;
45307
47317
  callTo: string | null;
45308
47318
  note: string | null;
47319
+ customFields?: {
47320
+ id: string;
47321
+ createdAt: Date;
47322
+ updatedAt: Date;
47323
+ deletedAt: Date | null;
47324
+ entityId: string;
47325
+ attributeId: string;
47326
+ textValue: string | null;
47327
+ booleanValue: boolean | null;
47328
+ numberValue: number | null;
47329
+ dateValue: Date | null;
47330
+ }[] | null | undefined;
45309
47331
  } | null;
45310
47332
  }>;
47333
+ workflowRule: z.ZodObject<{
47334
+ id: z.ZodString;
47335
+ createdAt: z.ZodDate;
47336
+ updatedAt: z.ZodDate;
47337
+ deletedAt: z.ZodNullable<z.ZodDate>;
47338
+ name: z.ZodString;
47339
+ isActive: z.ZodBoolean;
47340
+ type: z.ZodString;
47341
+ }, "strip", z.ZodTypeAny, {
47342
+ type: string;
47343
+ id: string;
47344
+ name: string;
47345
+ createdAt: Date;
47346
+ updatedAt: Date;
47347
+ deletedAt: Date | null;
47348
+ isActive: boolean;
47349
+ }, {
47350
+ type: string;
47351
+ id: string;
47352
+ name: string;
47353
+ createdAt: Date;
47354
+ updatedAt: Date;
47355
+ deletedAt: Date | null;
47356
+ isActive: boolean;
47357
+ }>;
45311
47358
  description: z.ZodNullable<z.ZodString>;
45312
47359
  }, "strip", z.ZodTypeAny, {
45313
47360
  id: string;
@@ -45645,8 +47692,29 @@ export declare const mainChatContract: {
45645
47692
  callFrom: string | null;
45646
47693
  callTo: string | null;
45647
47694
  note: string | null;
47695
+ customFields?: {
47696
+ id: string;
47697
+ createdAt: Date;
47698
+ updatedAt: Date;
47699
+ deletedAt: Date | null;
47700
+ entityId: string;
47701
+ attributeId: string;
47702
+ textValue: string | null;
47703
+ booleanValue: boolean | null;
47704
+ numberValue: number | null;
47705
+ dateValue: Date | null;
47706
+ }[] | null | undefined;
45648
47707
  } | null;
45649
47708
  };
47709
+ workflowRule: {
47710
+ type: string;
47711
+ id: string;
47712
+ name: string;
47713
+ createdAt: Date;
47714
+ updatedAt: Date;
47715
+ deletedAt: Date | null;
47716
+ isActive: boolean;
47717
+ };
45650
47718
  }, {
45651
47719
  id: string;
45652
47720
  channel: {
@@ -45983,8 +48051,29 @@ export declare const mainChatContract: {
45983
48051
  callFrom: string | null;
45984
48052
  callTo: string | null;
45985
48053
  note: string | null;
48054
+ customFields?: {
48055
+ id: string;
48056
+ createdAt: Date;
48057
+ updatedAt: Date;
48058
+ deletedAt: Date | null;
48059
+ entityId: string;
48060
+ attributeId: string;
48061
+ textValue: string | null;
48062
+ booleanValue: boolean | null;
48063
+ numberValue: number | null;
48064
+ dateValue: Date | null;
48065
+ }[] | null | undefined;
45986
48066
  } | null;
45987
48067
  };
48068
+ workflowRule: {
48069
+ type: string;
48070
+ id: string;
48071
+ name: string;
48072
+ createdAt: Date;
48073
+ updatedAt: Date;
48074
+ deletedAt: Date | null;
48075
+ isActive: boolean;
48076
+ };
45988
48077
  }>;
45989
48078
  }, "strip", z.ZodTypeAny, {
45990
48079
  data: {
@@ -46323,8 +48412,29 @@ export declare const mainChatContract: {
46323
48412
  callFrom: string | null;
46324
48413
  callTo: string | null;
46325
48414
  note: string | null;
48415
+ customFields?: {
48416
+ id: string;
48417
+ createdAt: Date;
48418
+ updatedAt: Date;
48419
+ deletedAt: Date | null;
48420
+ entityId: string;
48421
+ attributeId: string;
48422
+ textValue: string | null;
48423
+ booleanValue: boolean | null;
48424
+ numberValue: number | null;
48425
+ dateValue: Date | null;
48426
+ }[] | null | undefined;
46326
48427
  } | null;
46327
48428
  };
48429
+ workflowRule: {
48430
+ type: string;
48431
+ id: string;
48432
+ name: string;
48433
+ createdAt: Date;
48434
+ updatedAt: Date;
48435
+ deletedAt: Date | null;
48436
+ isActive: boolean;
48437
+ };
46328
48438
  };
46329
48439
  requestId: string;
46330
48440
  }, {
@@ -46664,8 +48774,29 @@ export declare const mainChatContract: {
46664
48774
  callFrom: string | null;
46665
48775
  callTo: string | null;
46666
48776
  note: string | null;
48777
+ customFields?: {
48778
+ id: string;
48779
+ createdAt: Date;
48780
+ updatedAt: Date;
48781
+ deletedAt: Date | null;
48782
+ entityId: string;
48783
+ attributeId: string;
48784
+ textValue: string | null;
48785
+ booleanValue: boolean | null;
48786
+ numberValue: number | null;
48787
+ dateValue: Date | null;
48788
+ }[] | null | undefined;
46667
48789
  } | null;
46668
48790
  };
48791
+ workflowRule: {
48792
+ type: string;
48793
+ id: string;
48794
+ name: string;
48795
+ createdAt: Date;
48796
+ updatedAt: Date;
48797
+ deletedAt: Date | null;
48798
+ isActive: boolean;
48799
+ };
46669
48800
  };
46670
48801
  requestId: string;
46671
48802
  }>;
@@ -48580,6 +50711,40 @@ export declare const mainChatContract: {
48580
50711
  }>, "many">;
48581
50712
  callFrom: z.ZodNullable<z.ZodString>;
48582
50713
  callTo: z.ZodNullable<z.ZodString>;
50714
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
50715
+ id: z.ZodString;
50716
+ createdAt: z.ZodDate;
50717
+ updatedAt: z.ZodDate;
50718
+ deletedAt: z.ZodNullable<z.ZodDate>;
50719
+ textValue: z.ZodNullable<z.ZodString>;
50720
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
50721
+ numberValue: z.ZodNullable<z.ZodNumber>;
50722
+ dateValue: z.ZodNullable<z.ZodDate>;
50723
+ entityId: z.ZodString;
50724
+ attributeId: z.ZodString;
50725
+ }, "strip", z.ZodTypeAny, {
50726
+ id: string;
50727
+ createdAt: Date;
50728
+ updatedAt: Date;
50729
+ deletedAt: Date | null;
50730
+ entityId: string;
50731
+ attributeId: string;
50732
+ textValue: string | null;
50733
+ booleanValue: boolean | null;
50734
+ numberValue: number | null;
50735
+ dateValue: Date | null;
50736
+ }, {
50737
+ id: string;
50738
+ createdAt: Date;
50739
+ updatedAt: Date;
50740
+ deletedAt: Date | null;
50741
+ entityId: string;
50742
+ attributeId: string;
50743
+ textValue: string | null;
50744
+ booleanValue: boolean | null;
50745
+ numberValue: number | null;
50746
+ dateValue: Date | null;
50747
+ }>, "many">>>;
48583
50748
  }, "strip", z.ZodTypeAny, {
48584
50749
  type: string;
48585
50750
  id: string;
@@ -48619,6 +50784,18 @@ export declare const mainChatContract: {
48619
50784
  callFrom: string | null;
48620
50785
  callTo: string | null;
48621
50786
  note: string | null;
50787
+ customFields?: {
50788
+ id: string;
50789
+ createdAt: Date;
50790
+ updatedAt: Date;
50791
+ deletedAt: Date | null;
50792
+ entityId: string;
50793
+ attributeId: string;
50794
+ textValue: string | null;
50795
+ booleanValue: boolean | null;
50796
+ numberValue: number | null;
50797
+ dateValue: Date | null;
50798
+ }[] | null | undefined;
48622
50799
  }, {
48623
50800
  type: string;
48624
50801
  id: string;
@@ -48658,6 +50835,18 @@ export declare const mainChatContract: {
48658
50835
  callFrom: string | null;
48659
50836
  callTo: string | null;
48660
50837
  note: string | null;
50838
+ customFields?: {
50839
+ id: string;
50840
+ createdAt: Date;
50841
+ updatedAt: Date;
50842
+ deletedAt: Date | null;
50843
+ entityId: string;
50844
+ attributeId: string;
50845
+ textValue: string | null;
50846
+ booleanValue: boolean | null;
50847
+ numberValue: number | null;
50848
+ dateValue: Date | null;
50849
+ }[] | null | undefined;
48661
50850
  }>>;
48662
50851
  }, "strip", z.ZodTypeAny, {
48663
50852
  id: string;
@@ -48714,6 +50903,18 @@ export declare const mainChatContract: {
48714
50903
  callFrom: string | null;
48715
50904
  callTo: string | null;
48716
50905
  note: string | null;
50906
+ customFields?: {
50907
+ id: string;
50908
+ createdAt: Date;
50909
+ updatedAt: Date;
50910
+ deletedAt: Date | null;
50911
+ entityId: string;
50912
+ attributeId: string;
50913
+ textValue: string | null;
50914
+ booleanValue: boolean | null;
50915
+ numberValue: number | null;
50916
+ dateValue: Date | null;
50917
+ }[] | null | undefined;
48717
50918
  } | null;
48718
50919
  }, {
48719
50920
  id: string;
@@ -48770,8 +50971,45 @@ export declare const mainChatContract: {
48770
50971
  callFrom: string | null;
48771
50972
  callTo: string | null;
48772
50973
  note: string | null;
50974
+ customFields?: {
50975
+ id: string;
50976
+ createdAt: Date;
50977
+ updatedAt: Date;
50978
+ deletedAt: Date | null;
50979
+ entityId: string;
50980
+ attributeId: string;
50981
+ textValue: string | null;
50982
+ booleanValue: boolean | null;
50983
+ numberValue: number | null;
50984
+ dateValue: Date | null;
50985
+ }[] | null | undefined;
48773
50986
  } | null;
48774
50987
  }>;
50988
+ workflowRule: z.ZodObject<{
50989
+ id: z.ZodString;
50990
+ createdAt: z.ZodDate;
50991
+ updatedAt: z.ZodDate;
50992
+ deletedAt: z.ZodNullable<z.ZodDate>;
50993
+ name: z.ZodString;
50994
+ isActive: z.ZodBoolean;
50995
+ type: z.ZodString;
50996
+ }, "strip", z.ZodTypeAny, {
50997
+ type: string;
50998
+ id: string;
50999
+ name: string;
51000
+ createdAt: Date;
51001
+ updatedAt: Date;
51002
+ deletedAt: Date | null;
51003
+ isActive: boolean;
51004
+ }, {
51005
+ type: string;
51006
+ id: string;
51007
+ name: string;
51008
+ createdAt: Date;
51009
+ updatedAt: Date;
51010
+ deletedAt: Date | null;
51011
+ isActive: boolean;
51012
+ }>;
48775
51013
  }, "strip", z.ZodTypeAny, {
48776
51014
  id: string;
48777
51015
  channel: {
@@ -49107,8 +51345,29 @@ export declare const mainChatContract: {
49107
51345
  callFrom: string | null;
49108
51346
  callTo: string | null;
49109
51347
  note: string | null;
51348
+ customFields?: {
51349
+ id: string;
51350
+ createdAt: Date;
51351
+ updatedAt: Date;
51352
+ deletedAt: Date | null;
51353
+ entityId: string;
51354
+ attributeId: string;
51355
+ textValue: string | null;
51356
+ booleanValue: boolean | null;
51357
+ numberValue: number | null;
51358
+ dateValue: Date | null;
51359
+ }[] | null | undefined;
49110
51360
  } | null;
49111
51361
  };
51362
+ workflowRule: {
51363
+ type: string;
51364
+ id: string;
51365
+ name: string;
51366
+ createdAt: Date;
51367
+ updatedAt: Date;
51368
+ deletedAt: Date | null;
51369
+ isActive: boolean;
51370
+ };
49112
51371
  }, {
49113
51372
  id: string;
49114
51373
  channel: {
@@ -49444,8 +51703,29 @@ export declare const mainChatContract: {
49444
51703
  callFrom: string | null;
49445
51704
  callTo: string | null;
49446
51705
  note: string | null;
51706
+ customFields?: {
51707
+ id: string;
51708
+ createdAt: Date;
51709
+ updatedAt: Date;
51710
+ deletedAt: Date | null;
51711
+ entityId: string;
51712
+ attributeId: string;
51713
+ textValue: string | null;
51714
+ booleanValue: boolean | null;
51715
+ numberValue: number | null;
51716
+ dateValue: Date | null;
51717
+ }[] | null | undefined;
49447
51718
  } | null;
49448
51719
  };
51720
+ workflowRule: {
51721
+ type: string;
51722
+ id: string;
51723
+ name: string;
51724
+ createdAt: Date;
51725
+ updatedAt: Date;
51726
+ deletedAt: Date | null;
51727
+ isActive: boolean;
51728
+ };
49449
51729
  }>, "many">;
49450
51730
  }, "strip", z.ZodTypeAny, {
49451
51731
  data: {
@@ -49783,8 +52063,29 @@ export declare const mainChatContract: {
49783
52063
  callFrom: string | null;
49784
52064
  callTo: string | null;
49785
52065
  note: string | null;
52066
+ customFields?: {
52067
+ id: string;
52068
+ createdAt: Date;
52069
+ updatedAt: Date;
52070
+ deletedAt: Date | null;
52071
+ entityId: string;
52072
+ attributeId: string;
52073
+ textValue: string | null;
52074
+ booleanValue: boolean | null;
52075
+ numberValue: number | null;
52076
+ dateValue: Date | null;
52077
+ }[] | null | undefined;
49786
52078
  } | null;
49787
52079
  };
52080
+ workflowRule: {
52081
+ type: string;
52082
+ id: string;
52083
+ name: string;
52084
+ createdAt: Date;
52085
+ updatedAt: Date;
52086
+ deletedAt: Date | null;
52087
+ isActive: boolean;
52088
+ };
49788
52089
  }[];
49789
52090
  total: number;
49790
52091
  page: number;
@@ -50126,8 +52427,29 @@ export declare const mainChatContract: {
50126
52427
  callFrom: string | null;
50127
52428
  callTo: string | null;
50128
52429
  note: string | null;
52430
+ customFields?: {
52431
+ id: string;
52432
+ createdAt: Date;
52433
+ updatedAt: Date;
52434
+ deletedAt: Date | null;
52435
+ entityId: string;
52436
+ attributeId: string;
52437
+ textValue: string | null;
52438
+ booleanValue: boolean | null;
52439
+ numberValue: number | null;
52440
+ dateValue: Date | null;
52441
+ }[] | null | undefined;
50129
52442
  } | null;
50130
52443
  };
52444
+ workflowRule: {
52445
+ type: string;
52446
+ id: string;
52447
+ name: string;
52448
+ createdAt: Date;
52449
+ updatedAt: Date;
52450
+ deletedAt: Date | null;
52451
+ isActive: boolean;
52452
+ };
50131
52453
  }[];
50132
52454
  total: number;
50133
52455
  page: number;