@kl1/contracts 1.2.26-uat → 1.2.27-uat

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +17 -17
  2. package/dist/api-contracts/src/attribute/index.d.ts +164 -148
  3. package/dist/api-contracts/src/attribute/index.d.ts.map +1 -1
  4. package/dist/api-contracts/src/attribute/schema.d.ts +11 -8
  5. package/dist/api-contracts/src/attribute/schema.d.ts.map +1 -1
  6. package/dist/api-contracts/src/attribute-option/schema.d.ts +3 -2
  7. package/dist/api-contracts/src/attribute-option/schema.d.ts.map +1 -1
  8. package/dist/api-contracts/src/auth/index.d.ts +51 -47
  9. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  10. package/dist/api-contracts/src/automation-queue/index.d.ts +43 -31
  11. package/dist/api-contracts/src/automation-queue/index.d.ts.map +1 -1
  12. package/dist/api-contracts/src/automation-queue/schema.d.ts +3 -2
  13. package/dist/api-contracts/src/automation-queue/schema.d.ts.map +1 -1
  14. package/dist/api-contracts/src/aws/index.d.ts +8 -6
  15. package/dist/api-contracts/src/aws/index.d.ts.map +1 -1
  16. package/dist/api-contracts/src/botpress/index.d.ts +17 -13
  17. package/dist/api-contracts/src/botpress/index.d.ts.map +1 -1
  18. package/dist/api-contracts/src/business-calendar/index.d.ts +40 -28
  19. package/dist/api-contracts/src/business-calendar/index.d.ts.map +1 -1
  20. package/dist/api-contracts/src/business-calendar/schema.d.ts +15 -10
  21. package/dist/api-contracts/src/business-calendar/schema.d.ts.map +1 -1
  22. package/dist/api-contracts/src/call-log/schema.d.ts +5 -4
  23. package/dist/api-contracts/src/call-log/schema.d.ts.map +1 -1
  24. package/dist/api-contracts/src/category/index.d.ts +118 -109
  25. package/dist/api-contracts/src/category/index.d.ts.map +1 -1
  26. package/dist/api-contracts/src/category/schema.d.ts +3 -2
  27. package/dist/api-contracts/src/category/schema.d.ts.map +1 -1
  28. package/dist/api-contracts/src/channel/index.d.ts +1064 -1039
  29. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  30. package/dist/api-contracts/src/channel/schema.d.ts +38 -38
  31. package/dist/api-contracts/src/channel/validation.d.ts +52 -52
  32. package/dist/api-contracts/src/chat/index.d.ts +14634 -14201
  33. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  34. package/dist/api-contracts/src/chat/schema.d.ts +2120 -1984
  35. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  36. package/dist/api-contracts/src/chat/validation.d.ts +3894 -3827
  37. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  38. package/dist/api-contracts/src/comment/index.d.ts +281 -224
  39. package/dist/api-contracts/src/comment/index.d.ts.map +1 -1
  40. package/dist/api-contracts/src/comment/schema.d.ts +68 -50
  41. package/dist/api-contracts/src/comment/schema.d.ts.map +1 -1
  42. package/dist/api-contracts/src/comment/validation.d.ts +1 -1
  43. package/dist/api-contracts/src/company/index.d.ts +136 -109
  44. package/dist/api-contracts/src/company/index.d.ts.map +1 -1
  45. package/dist/api-contracts/src/company/schema.d.ts +33 -24
  46. package/dist/api-contracts/src/company/schema.d.ts.map +1 -1
  47. package/dist/api-contracts/src/company/validation.d.ts +78 -62
  48. package/dist/api-contracts/src/company/validation.d.ts.map +1 -1
  49. package/dist/api-contracts/src/contact/index.d.ts +686 -568
  50. package/dist/api-contracts/src/contact/index.d.ts.map +1 -1
  51. package/dist/api-contracts/src/contact/schema.d.ts +56 -42
  52. package/dist/api-contracts/src/contact/schema.d.ts.map +1 -1
  53. package/dist/api-contracts/src/contact/validation.d.ts +299 -218
  54. package/dist/api-contracts/src/contact/validation.d.ts.map +1 -1
  55. package/dist/api-contracts/src/contact-email/schema.d.ts +3 -2
  56. package/dist/api-contracts/src/contact-email/schema.d.ts.map +1 -1
  57. package/dist/api-contracts/src/contact-phone/schema.d.ts +3 -2
  58. package/dist/api-contracts/src/contact-phone/schema.d.ts.map +1 -1
  59. package/dist/api-contracts/src/contract.d.ts +23919 -22617
  60. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  61. package/dist/api-contracts/src/custom-field/schema.d.ts +3 -2
  62. package/dist/api-contracts/src/custom-field/schema.d.ts.map +1 -1
  63. package/dist/api-contracts/src/custom-field/validation.d.ts +2 -2
  64. package/dist/api-contracts/src/custom-field-upload/schema.d.ts +3 -2
  65. package/dist/api-contracts/src/custom-field-upload/schema.d.ts.map +1 -1
  66. package/dist/api-contracts/src/cx-log/index.d.ts +684 -644
  67. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  68. package/dist/api-contracts/src/cx-log/schema.d.ts +448 -405
  69. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  70. package/dist/api-contracts/src/cx-log/validation.d.ts +39 -39
  71. package/dist/api-contracts/src/dashboard/index.d.ts +378 -337
  72. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  73. package/dist/api-contracts/src/dashboard/schema.d.ts +7 -6
  74. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  75. package/dist/api-contracts/src/dashboard/validation.d.ts +24 -18
  76. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  77. package/dist/api-contracts/src/evaluate-form/index.d.ts +4 -3
  78. package/dist/api-contracts/src/evaluate-form/index.d.ts.map +1 -1
  79. package/dist/api-contracts/src/evaluate-form/schema.d.ts +3 -2
  80. package/dist/api-contracts/src/evaluate-form/schema.d.ts.map +1 -1
  81. package/dist/api-contracts/src/export/index.d.ts +4 -3
  82. package/dist/api-contracts/src/export/index.d.ts.map +1 -1
  83. package/dist/api-contracts/src/extension/index.d.ts +118 -112
  84. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  85. package/dist/api-contracts/src/facebook-feed/index.d.ts +1872 -1802
  86. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  87. package/dist/api-contracts/src/facebook-feed/schema.d.ts +73 -62
  88. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  89. package/dist/api-contracts/src/facebook-feed/validation.d.ts +96 -79
  90. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  91. package/dist/api-contracts/src/general-setting/index.d.ts +2 -2
  92. package/dist/api-contracts/src/group/schema.d.ts +3 -2
  93. package/dist/api-contracts/src/group/schema.d.ts.map +1 -1
  94. package/dist/api-contracts/src/hold-label/index.d.ts +37 -27
  95. package/dist/api-contracts/src/hold-label/index.d.ts.map +1 -1
  96. package/dist/api-contracts/src/hold-label/schema.d.ts +3 -2
  97. package/dist/api-contracts/src/hold-label/schema.d.ts.map +1 -1
  98. package/dist/api-contracts/src/index.d.ts +1 -0
  99. package/dist/api-contracts/src/index.d.ts.map +1 -1
  100. package/dist/api-contracts/src/instagram/index.d.ts +1366 -1316
  101. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  102. package/dist/api-contracts/src/instagram/validation.d.ts +6 -6
  103. package/dist/api-contracts/src/line/index.d.ts +1469 -1419
  104. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  105. package/dist/api-contracts/src/line/schema.d.ts +12 -11
  106. package/dist/api-contracts/src/line/schema.d.ts.map +1 -1
  107. package/dist/api-contracts/src/line/validation.d.ts +98 -98
  108. package/dist/api-contracts/src/log-form/schema.d.ts +3 -2
  109. package/dist/api-contracts/src/log-form/schema.d.ts.map +1 -1
  110. package/dist/api-contracts/src/mail/account-contract.d.ts +184 -174
  111. package/dist/api-contracts/src/mail/account-contract.d.ts.map +1 -1
  112. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts +4 -3
  113. package/dist/api-contracts/src/mail/email-engine-webhooks-events.contract.d.ts.map +1 -1
  114. package/dist/api-contracts/src/mail/mail-contract.d.ts +461 -416
  115. package/dist/api-contracts/src/mail/mail-contract.d.ts.map +1 -1
  116. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +24 -18
  117. package/dist/api-contracts/src/mail/mail-server-contract.d.ts.map +1 -1
  118. package/dist/api-contracts/src/mail/message-contract.d.ts +113 -107
  119. package/dist/api-contracts/src/mail/message-contract.d.ts.map +1 -1
  120. package/dist/api-contracts/src/mail/room-contract.d.ts +88 -65
  121. package/dist/api-contracts/src/mail/room-contract.d.ts.map +1 -1
  122. package/dist/api-contracts/src/mail/schemas/message-validation.schema.d.ts +16 -16
  123. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +22 -18
  124. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  125. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +15 -10
  126. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts.map +1 -1
  127. package/dist/api-contracts/src/messenger/index.d.ts +1368 -1316
  128. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  129. package/dist/api-contracts/src/messenger/validation.d.ts +96 -79
  130. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  131. package/dist/api-contracts/src/notification/index.d.ts +16 -12
  132. package/dist/api-contracts/src/notification/index.d.ts.map +1 -1
  133. package/dist/api-contracts/src/permission/index.d.ts +17 -17
  134. package/dist/api-contracts/src/presence-status/index.d.ts +84 -81
  135. package/dist/api-contracts/src/presence-status/index.d.ts.map +1 -1
  136. package/dist/api-contracts/src/public-api/index.d.ts +260 -196
  137. package/dist/api-contracts/src/public-api/index.d.ts.map +1 -1
  138. package/dist/api-contracts/src/public-api/schema.d.ts +48 -34
  139. package/dist/api-contracts/src/public-api/schema.d.ts.map +1 -1
  140. package/dist/api-contracts/src/public-api/validation.d.ts +113 -88
  141. package/dist/api-contracts/src/public-api/validation.d.ts.map +1 -1
  142. package/dist/api-contracts/src/role/index.d.ts +88 -83
  143. package/dist/api-contracts/src/role/index.d.ts.map +1 -1
  144. package/dist/api-contracts/src/sms/index.d.ts +209 -154
  145. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  146. package/dist/api-contracts/src/sms/schema.d.ts +22 -0
  147. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  148. package/dist/api-contracts/src/snippet/index.d.ts +76 -54
  149. package/dist/api-contracts/src/snippet/index.d.ts.map +1 -1
  150. package/dist/api-contracts/src/snippet/schema.d.ts +21 -14
  151. package/dist/api-contracts/src/snippet/schema.d.ts.map +1 -1
  152. package/dist/api-contracts/src/snippet/validation.d.ts +5 -4
  153. package/dist/api-contracts/src/snippet/validation.d.ts.map +1 -1
  154. package/dist/api-contracts/src/subscription/index.d.ts +71 -49
  155. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  156. package/dist/api-contracts/src/subscription/schema.d.ts +90 -60
  157. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  158. package/dist/api-contracts/src/tag/index.d.ts +79 -72
  159. package/dist/api-contracts/src/tag/index.d.ts.map +1 -1
  160. package/dist/api-contracts/src/tag/schema.d.ts +3 -2
  161. package/dist/api-contracts/src/tag/schema.d.ts.map +1 -1
  162. package/dist/api-contracts/src/tag-group/schema.d.ts +3 -2
  163. package/dist/api-contracts/src/tag-group/schema.d.ts.map +1 -1
  164. package/dist/api-contracts/src/telegram/index.d.ts +1214 -1166
  165. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  166. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +58 -54
  167. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  168. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +3 -2
  169. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  170. package/dist/api-contracts/src/telephony-cdr/call-report.schema.d.ts +38 -38
  171. package/dist/api-contracts/src/telephony-cdr/index.d.ts +1214 -1149
  172. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  173. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +186 -166
  174. package/dist/api-contracts/src/telephony-cdr/schema.d.ts.map +1 -1
  175. package/dist/api-contracts/src/telephony-cdr/validation.d.ts +52 -45
  176. package/dist/api-contracts/src/telephony-cdr/validation.d.ts.map +1 -1
  177. package/dist/api-contracts/src/telephony-extension/index.d.ts +21 -21
  178. package/dist/api-contracts/src/telephony-extension/schema.d.ts +4 -4
  179. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts +3 -2
  180. package/dist/api-contracts/src/telephony-live-queue-call/schema.d.ts.map +1 -1
  181. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts +3 -2
  182. package/dist/api-contracts/src/telephony-queue-call-count/schema.d.ts.map +1 -1
  183. package/dist/api-contracts/src/tenant/schema.d.ts +3 -2
  184. package/dist/api-contracts/src/tenant/schema.d.ts.map +1 -1
  185. package/dist/api-contracts/src/ticket/index.d.ts +722 -623
  186. package/dist/api-contracts/src/ticket/index.d.ts.map +1 -1
  187. package/dist/api-contracts/src/ticket/schema.d.ts +81 -58
  188. package/dist/api-contracts/src/ticket/schema.d.ts.map +1 -1
  189. package/dist/api-contracts/src/ticket/validation.d.ts +57 -55
  190. package/dist/api-contracts/src/ticket/validation.d.ts.map +1 -1
  191. package/dist/api-contracts/src/upload/index.d.ts +36 -34
  192. package/dist/api-contracts/src/upload/index.d.ts.map +1 -1
  193. package/dist/api-contracts/src/upload/schema.d.ts +3 -2
  194. package/dist/api-contracts/src/upload/schema.d.ts.map +1 -1
  195. package/dist/api-contracts/src/user/index.d.ts +114 -108
  196. package/dist/api-contracts/src/user/index.d.ts.map +1 -1
  197. package/dist/api-contracts/src/user/validation.d.ts +5 -4
  198. package/dist/api-contracts/src/user/validation.d.ts.map +1 -1
  199. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +32 -31
  200. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  201. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +3 -2
  202. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  203. package/dist/api-contracts/src/viber/index.d.ts +1341 -1293
  204. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  205. package/dist/api-contracts/src/webchat/index.d.ts +2461 -2416
  206. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  207. package/dist/api-contracts/src/whatsapp/index.d.ts +2715 -2666
  208. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  209. package/dist/api-contracts/src/whatsapp/validation.d.ts +3 -2
  210. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  211. package/dist/api-contracts/src/widget/index.d.ts +139 -128
  212. package/dist/api-contracts/src/widget/index.d.ts.map +1 -1
  213. package/dist/api-contracts/src/widget/schema.d.ts +3 -2
  214. package/dist/api-contracts/src/widget/schema.d.ts.map +1 -1
  215. package/dist/api-contracts/src/workflow-rule/index.d.ts +1500 -1465
  216. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  217. package/dist/api-contracts/src/workflow-rule/schema.d.ts +3 -2
  218. package/dist/api-contracts/src/workflow-rule/schema.d.ts.map +1 -1
  219. package/dist/api-contracts/src/wrap-up-form/index.d.ts +166 -147
  220. package/dist/api-contracts/src/wrap-up-form/index.d.ts.map +1 -1
  221. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +9 -6
  222. package/dist/api-contracts/src/wrap-up-form/schema.d.ts.map +1 -1
  223. package/dist/api-contracts/src/wrap-up-form/validation.d.ts +21 -20
  224. package/dist/api-contracts/src/wrap-up-form/validation.d.ts.map +1 -1
  225. package/dist/api-contracts/utils.d.ts +4 -3
  226. package/dist/api-contracts/utils.d.ts.map +1 -1
  227. package/dist/index.js +4242 -4219
  228. package/dist/index.js.map +1 -1
  229. package/dist/index.mjs +4239 -4217
  230. package/dist/index.mjs.map +1 -1
  231. package/package.json +1 -1
@@ -48,9 +48,11 @@ export declare const telegramContract: {
48
48
  }>;
49
49
  summary: "Connect telegram channel";
50
50
  method: "POST";
51
+ path: "/connect";
51
52
  responses: {
52
- 200: z.ZodObject<{
53
+ 200: z.ZodObject<z.objectUtil.extendShape<{
53
54
  requestId: z.ZodString;
55
+ }, {
54
56
  channel: z.ZodObject<{
55
57
  id: z.ZodString;
56
58
  createdAt: z.ZodDate;
@@ -78,19 +80,19 @@ export declare const telegramContract: {
78
80
  email: string;
79
81
  wabaExternalId: string;
80
82
  phoneNumberId: string;
83
+ status?: "active" | "pending" | undefined;
84
+ channelId?: string | undefined;
81
85
  wabaBusinessId?: string | undefined;
82
86
  clientId?: string | undefined;
83
- channelId?: string | undefined;
84
- status?: "active" | "pending" | undefined;
85
87
  apiKey?: string | undefined;
86
88
  }, {
87
89
  email: string;
88
90
  wabaExternalId: string;
89
91
  phoneNumberId: string;
92
+ status?: "active" | "pending" | undefined;
93
+ channelId?: string | undefined;
90
94
  wabaBusinessId?: string | undefined;
91
95
  clientId?: string | undefined;
92
- channelId?: string | undefined;
93
- status?: "active" | "pending" | undefined;
94
96
  apiKey?: string | undefined;
95
97
  }>>;
96
98
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -112,19 +114,19 @@ export declare const telegramContract: {
112
114
  name: string;
113
115
  id: string;
114
116
  accessToken?: string | undefined;
115
- channelSecret?: string | undefined;
116
- additionalCredentials?: any;
117
- senderId?: string | undefined;
118
117
  whatsapp?: {
119
118
  email: string;
120
119
  wabaExternalId: string;
121
120
  phoneNumberId: string;
121
+ status?: "active" | "pending" | undefined;
122
+ channelId?: string | undefined;
122
123
  wabaBusinessId?: string | undefined;
123
124
  clientId?: string | undefined;
124
- channelId?: string | undefined;
125
- status?: "active" | "pending" | undefined;
126
125
  apiKey?: string | undefined;
127
126
  } | undefined;
127
+ additionalCredentials?: any;
128
+ channelSecret?: string | undefined;
129
+ senderId?: string | undefined;
128
130
  vonageCredentials?: {
129
131
  apiKey: string;
130
132
  mobileNumber: string;
@@ -136,19 +138,19 @@ export declare const telegramContract: {
136
138
  name: string;
137
139
  id: string;
138
140
  accessToken?: string | undefined;
139
- channelSecret?: string | undefined;
140
- additionalCredentials?: any;
141
- senderId?: string | undefined;
142
141
  whatsapp?: {
143
142
  email: string;
144
143
  wabaExternalId: string;
145
144
  phoneNumberId: string;
145
+ status?: "active" | "pending" | undefined;
146
+ channelId?: string | undefined;
146
147
  wabaBusinessId?: string | undefined;
147
148
  clientId?: string | undefined;
148
- channelId?: string | undefined;
149
- status?: "active" | "pending" | undefined;
150
149
  apiKey?: string | undefined;
151
150
  } | undefined;
151
+ additionalCredentials?: any;
152
+ channelSecret?: string | undefined;
153
+ senderId?: string | undefined;
152
154
  vonageCredentials?: {
153
155
  apiKey: string;
154
156
  mobileNumber: string;
@@ -394,19 +396,19 @@ export declare const telegramContract: {
394
396
  name: string;
395
397
  id: string;
396
398
  accessToken?: string | undefined;
397
- channelSecret?: string | undefined;
398
- additionalCredentials?: any;
399
- senderId?: string | undefined;
400
399
  whatsapp?: {
401
400
  email: string;
402
401
  wabaExternalId: string;
403
402
  phoneNumberId: string;
403
+ status?: "active" | "pending" | undefined;
404
+ channelId?: string | undefined;
404
405
  wabaBusinessId?: string | undefined;
405
406
  clientId?: string | undefined;
406
- channelId?: string | undefined;
407
- status?: "active" | "pending" | undefined;
408
407
  apiKey?: string | undefined;
409
408
  } | undefined;
409
+ additionalCredentials?: any;
410
+ channelSecret?: string | undefined;
411
+ senderId?: string | undefined;
410
412
  vonageCredentials?: {
411
413
  apiKey: string;
412
414
  mobileNumber: string;
@@ -483,19 +485,19 @@ export declare const telegramContract: {
483
485
  name: string;
484
486
  id: string;
485
487
  accessToken?: string | undefined;
486
- channelSecret?: string | undefined;
487
- additionalCredentials?: any;
488
- senderId?: string | undefined;
489
488
  whatsapp?: {
490
489
  email: string;
491
490
  wabaExternalId: string;
492
491
  phoneNumberId: string;
492
+ status?: "active" | "pending" | undefined;
493
+ channelId?: string | undefined;
493
494
  wabaBusinessId?: string | undefined;
494
495
  clientId?: string | undefined;
495
- channelId?: string | undefined;
496
- status?: "active" | "pending" | undefined;
497
496
  apiKey?: string | undefined;
498
497
  } | undefined;
498
+ additionalCredentials?: any;
499
+ channelSecret?: string | undefined;
500
+ senderId?: string | undefined;
499
501
  vonageCredentials?: {
500
502
  apiKey: string;
501
503
  mobileNumber: string;
@@ -565,7 +567,7 @@ export declare const telegramContract: {
565
567
  integrationId: string;
566
568
  } | null;
567
569
  }>;
568
- }, "strip", z.ZodTypeAny, {
570
+ }>, "strip", z.ZodTypeAny, {
569
571
  channel: {
570
572
  name: string;
571
573
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -574,19 +576,19 @@ export declare const telegramContract: {
574
576
  name: string;
575
577
  id: string;
576
578
  accessToken?: string | undefined;
577
- channelSecret?: string | undefined;
578
- additionalCredentials?: any;
579
- senderId?: string | undefined;
580
579
  whatsapp?: {
581
580
  email: string;
582
581
  wabaExternalId: string;
583
582
  phoneNumberId: string;
583
+ status?: "active" | "pending" | undefined;
584
+ channelId?: string | undefined;
584
585
  wabaBusinessId?: string | undefined;
585
586
  clientId?: string | undefined;
586
- channelId?: string | undefined;
587
- status?: "active" | "pending" | undefined;
588
587
  apiKey?: string | undefined;
589
588
  } | undefined;
589
+ additionalCredentials?: any;
590
+ channelSecret?: string | undefined;
591
+ senderId?: string | undefined;
590
592
  vonageCredentials?: {
591
593
  apiKey: string;
592
594
  mobileNumber: string;
@@ -666,19 +668,19 @@ export declare const telegramContract: {
666
668
  name: string;
667
669
  id: string;
668
670
  accessToken?: string | undefined;
669
- channelSecret?: string | undefined;
670
- additionalCredentials?: any;
671
- senderId?: string | undefined;
672
671
  whatsapp?: {
673
672
  email: string;
674
673
  wabaExternalId: string;
675
674
  phoneNumberId: string;
675
+ status?: "active" | "pending" | undefined;
676
+ channelId?: string | undefined;
676
677
  wabaBusinessId?: string | undefined;
677
678
  clientId?: string | undefined;
678
- channelId?: string | undefined;
679
- status?: "active" | "pending" | undefined;
680
679
  apiKey?: string | undefined;
681
680
  } | undefined;
681
+ additionalCredentials?: any;
682
+ channelSecret?: string | undefined;
683
+ senderId?: string | undefined;
682
684
  vonageCredentials?: {
683
685
  apiKey: string;
684
686
  mobileNumber: string;
@@ -771,7 +773,6 @@ export declare const telegramContract: {
771
773
  error?: any;
772
774
  }>;
773
775
  };
774
- path: "/connect";
775
776
  };
776
777
  disconnect: {
777
778
  body: z.ZodObject<{
@@ -783,9 +784,11 @@ export declare const telegramContract: {
783
784
  }>;
784
785
  summary: "Disconnect telegram channel";
785
786
  method: "POST";
787
+ path: "/disconnect";
786
788
  responses: {
787
- 200: z.ZodObject<{
789
+ 200: z.ZodObject<z.objectUtil.extendShape<{
788
790
  requestId: z.ZodString;
791
+ }, {
789
792
  data: z.ZodObject<{
790
793
  id: z.ZodString;
791
794
  name: z.ZodString;
@@ -810,19 +813,19 @@ export declare const telegramContract: {
810
813
  email: string;
811
814
  wabaExternalId: string;
812
815
  phoneNumberId: string;
816
+ status?: "active" | "pending" | undefined;
817
+ channelId?: string | undefined;
813
818
  wabaBusinessId?: string | undefined;
814
819
  clientId?: string | undefined;
815
- channelId?: string | undefined;
816
- status?: "active" | "pending" | undefined;
817
820
  apiKey?: string | undefined;
818
821
  }, {
819
822
  email: string;
820
823
  wabaExternalId: string;
821
824
  phoneNumberId: string;
825
+ status?: "active" | "pending" | undefined;
826
+ channelId?: string | undefined;
822
827
  wabaBusinessId?: string | undefined;
823
828
  clientId?: string | undefined;
824
- channelId?: string | undefined;
825
- status?: "active" | "pending" | undefined;
826
829
  apiKey?: string | undefined;
827
830
  }>>;
828
831
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -844,19 +847,19 @@ export declare const telegramContract: {
844
847
  name: string;
845
848
  id: string;
846
849
  accessToken?: string | undefined;
847
- channelSecret?: string | undefined;
848
- additionalCredentials?: any;
849
- senderId?: string | undefined;
850
850
  whatsapp?: {
851
851
  email: string;
852
852
  wabaExternalId: string;
853
853
  phoneNumberId: string;
854
+ status?: "active" | "pending" | undefined;
855
+ channelId?: string | undefined;
854
856
  wabaBusinessId?: string | undefined;
855
857
  clientId?: string | undefined;
856
- channelId?: string | undefined;
857
- status?: "active" | "pending" | undefined;
858
858
  apiKey?: string | undefined;
859
859
  } | undefined;
860
+ additionalCredentials?: any;
861
+ channelSecret?: string | undefined;
862
+ senderId?: string | undefined;
860
863
  vonageCredentials?: {
861
864
  apiKey: string;
862
865
  mobileNumber: string;
@@ -868,19 +871,19 @@ export declare const telegramContract: {
868
871
  name: string;
869
872
  id: string;
870
873
  accessToken?: string | undefined;
871
- channelSecret?: string | undefined;
872
- additionalCredentials?: any;
873
- senderId?: string | undefined;
874
874
  whatsapp?: {
875
875
  email: string;
876
876
  wabaExternalId: string;
877
877
  phoneNumberId: string;
878
+ status?: "active" | "pending" | undefined;
879
+ channelId?: string | undefined;
878
880
  wabaBusinessId?: string | undefined;
879
881
  clientId?: string | undefined;
880
- channelId?: string | undefined;
881
- status?: "active" | "pending" | undefined;
882
882
  apiKey?: string | undefined;
883
883
  } | undefined;
884
+ additionalCredentials?: any;
885
+ channelSecret?: string | undefined;
886
+ senderId?: string | undefined;
884
887
  vonageCredentials?: {
885
888
  apiKey: string;
886
889
  mobileNumber: string;
@@ -922,19 +925,19 @@ export declare const telegramContract: {
922
925
  name: string;
923
926
  id: string;
924
927
  accessToken?: string | undefined;
925
- channelSecret?: string | undefined;
926
- additionalCredentials?: any;
927
- senderId?: string | undefined;
928
928
  whatsapp?: {
929
929
  email: string;
930
930
  wabaExternalId: string;
931
931
  phoneNumberId: string;
932
+ status?: "active" | "pending" | undefined;
933
+ channelId?: string | undefined;
932
934
  wabaBusinessId?: string | undefined;
933
935
  clientId?: string | undefined;
934
- channelId?: string | undefined;
935
- status?: "active" | "pending" | undefined;
936
936
  apiKey?: string | undefined;
937
937
  } | undefined;
938
+ additionalCredentials?: any;
939
+ channelSecret?: string | undefined;
940
+ senderId?: string | undefined;
938
941
  vonageCredentials?: {
939
942
  apiKey: string;
940
943
  mobileNumber: string;
@@ -946,9 +949,6 @@ export declare const telegramContract: {
946
949
  status: boolean;
947
950
  brandName: string;
948
951
  platformId: string;
949
- connectedUserName?: string | null | undefined;
950
- connectedUserId?: string | null | undefined;
951
- lineRichMenuId?: string | null | undefined;
952
952
  actor?: {
953
953
  name: string;
954
954
  id: string;
@@ -956,6 +956,9 @@ export declare const telegramContract: {
956
956
  email: string;
957
957
  phone: string | null;
958
958
  } | undefined;
959
+ lineRichMenuId?: string | null | undefined;
960
+ connectedUserName?: string | null | undefined;
961
+ connectedUserId?: string | null | undefined;
959
962
  }, {
960
963
  name: string;
961
964
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -964,19 +967,19 @@ export declare const telegramContract: {
964
967
  name: string;
965
968
  id: string;
966
969
  accessToken?: string | undefined;
967
- channelSecret?: string | undefined;
968
- additionalCredentials?: any;
969
- senderId?: string | undefined;
970
970
  whatsapp?: {
971
971
  email: string;
972
972
  wabaExternalId: string;
973
973
  phoneNumberId: string;
974
+ status?: "active" | "pending" | undefined;
975
+ channelId?: string | undefined;
974
976
  wabaBusinessId?: string | undefined;
975
977
  clientId?: string | undefined;
976
- channelId?: string | undefined;
977
- status?: "active" | "pending" | undefined;
978
978
  apiKey?: string | undefined;
979
979
  } | undefined;
980
+ additionalCredentials?: any;
981
+ channelSecret?: string | undefined;
982
+ senderId?: string | undefined;
980
983
  vonageCredentials?: {
981
984
  apiKey: string;
982
985
  mobileNumber: string;
@@ -988,9 +991,6 @@ export declare const telegramContract: {
988
991
  status: boolean;
989
992
  brandName: string;
990
993
  platformId: string;
991
- connectedUserName?: string | null | undefined;
992
- connectedUserId?: string | null | undefined;
993
- lineRichMenuId?: string | null | undefined;
994
994
  actor?: {
995
995
  name: string;
996
996
  id: string;
@@ -998,8 +998,11 @@ export declare const telegramContract: {
998
998
  email: string;
999
999
  phone: string | null;
1000
1000
  } | undefined;
1001
+ lineRichMenuId?: string | null | undefined;
1002
+ connectedUserName?: string | null | undefined;
1003
+ connectedUserId?: string | null | undefined;
1001
1004
  }>;
1002
- }, "strip", z.ZodTypeAny, {
1005
+ }>, "strip", z.ZodTypeAny, {
1003
1006
  data: {
1004
1007
  name: string;
1005
1008
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -1008,19 +1011,19 @@ export declare const telegramContract: {
1008
1011
  name: string;
1009
1012
  id: string;
1010
1013
  accessToken?: string | undefined;
1011
- channelSecret?: string | undefined;
1012
- additionalCredentials?: any;
1013
- senderId?: string | undefined;
1014
1014
  whatsapp?: {
1015
1015
  email: string;
1016
1016
  wabaExternalId: string;
1017
1017
  phoneNumberId: string;
1018
+ status?: "active" | "pending" | undefined;
1019
+ channelId?: string | undefined;
1018
1020
  wabaBusinessId?: string | undefined;
1019
1021
  clientId?: string | undefined;
1020
- channelId?: string | undefined;
1021
- status?: "active" | "pending" | undefined;
1022
1022
  apiKey?: string | undefined;
1023
1023
  } | undefined;
1024
+ additionalCredentials?: any;
1025
+ channelSecret?: string | undefined;
1026
+ senderId?: string | undefined;
1024
1027
  vonageCredentials?: {
1025
1028
  apiKey: string;
1026
1029
  mobileNumber: string;
@@ -1032,9 +1035,6 @@ export declare const telegramContract: {
1032
1035
  status: boolean;
1033
1036
  brandName: string;
1034
1037
  platformId: string;
1035
- connectedUserName?: string | null | undefined;
1036
- connectedUserId?: string | null | undefined;
1037
- lineRichMenuId?: string | null | undefined;
1038
1038
  actor?: {
1039
1039
  name: string;
1040
1040
  id: string;
@@ -1042,6 +1042,9 @@ export declare const telegramContract: {
1042
1042
  email: string;
1043
1043
  phone: string | null;
1044
1044
  } | undefined;
1045
+ lineRichMenuId?: string | null | undefined;
1046
+ connectedUserName?: string | null | undefined;
1047
+ connectedUserId?: string | null | undefined;
1045
1048
  };
1046
1049
  requestId: string;
1047
1050
  }, {
@@ -1053,19 +1056,19 @@ export declare const telegramContract: {
1053
1056
  name: string;
1054
1057
  id: string;
1055
1058
  accessToken?: string | undefined;
1056
- channelSecret?: string | undefined;
1057
- additionalCredentials?: any;
1058
- senderId?: string | undefined;
1059
1059
  whatsapp?: {
1060
1060
  email: string;
1061
1061
  wabaExternalId: string;
1062
1062
  phoneNumberId: string;
1063
+ status?: "active" | "pending" | undefined;
1064
+ channelId?: string | undefined;
1063
1065
  wabaBusinessId?: string | undefined;
1064
1066
  clientId?: string | undefined;
1065
- channelId?: string | undefined;
1066
- status?: "active" | "pending" | undefined;
1067
1067
  apiKey?: string | undefined;
1068
1068
  } | undefined;
1069
+ additionalCredentials?: any;
1070
+ channelSecret?: string | undefined;
1071
+ senderId?: string | undefined;
1069
1072
  vonageCredentials?: {
1070
1073
  apiKey: string;
1071
1074
  mobileNumber: string;
@@ -1077,9 +1080,6 @@ export declare const telegramContract: {
1077
1080
  status: boolean;
1078
1081
  brandName: string;
1079
1082
  platformId: string;
1080
- connectedUserName?: string | null | undefined;
1081
- connectedUserId?: string | null | undefined;
1082
- lineRichMenuId?: string | null | undefined;
1083
1083
  actor?: {
1084
1084
  name: string;
1085
1085
  id: string;
@@ -1087,6 +1087,9 @@ export declare const telegramContract: {
1087
1087
  email: string;
1088
1088
  phone: string | null;
1089
1089
  } | undefined;
1090
+ lineRichMenuId?: string | null | undefined;
1091
+ connectedUserName?: string | null | undefined;
1092
+ connectedUserId?: string | null | undefined;
1090
1093
  };
1091
1094
  requestId: string;
1092
1095
  }>;
@@ -1111,7 +1114,6 @@ export declare const telegramContract: {
1111
1114
  error?: any;
1112
1115
  }>;
1113
1116
  };
1114
- path: "/disconnect";
1115
1117
  };
1116
1118
  sendMessage: {
1117
1119
  body: z.ZodObject<{
@@ -1263,19 +1265,19 @@ export declare const telegramContract: {
1263
1265
  email: string;
1264
1266
  wabaExternalId: string;
1265
1267
  phoneNumberId: string;
1268
+ status?: "active" | "pending" | undefined;
1269
+ channelId?: string | undefined;
1266
1270
  wabaBusinessId?: string | undefined;
1267
1271
  clientId?: string | undefined;
1268
- channelId?: string | undefined;
1269
- status?: "active" | "pending" | undefined;
1270
1272
  apiKey?: string | undefined;
1271
1273
  }, {
1272
1274
  email: string;
1273
1275
  wabaExternalId: string;
1274
1276
  phoneNumberId: string;
1277
+ status?: "active" | "pending" | undefined;
1278
+ channelId?: string | undefined;
1275
1279
  wabaBusinessId?: string | undefined;
1276
1280
  clientId?: string | undefined;
1277
- channelId?: string | undefined;
1278
- status?: "active" | "pending" | undefined;
1279
1281
  apiKey?: string | undefined;
1280
1282
  }>>;
1281
1283
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -1297,19 +1299,19 @@ export declare const telegramContract: {
1297
1299
  name: string;
1298
1300
  id: string;
1299
1301
  accessToken?: string | undefined;
1300
- channelSecret?: string | undefined;
1301
- additionalCredentials?: any;
1302
- senderId?: string | undefined;
1303
1302
  whatsapp?: {
1304
1303
  email: string;
1305
1304
  wabaExternalId: string;
1306
1305
  phoneNumberId: string;
1306
+ status?: "active" | "pending" | undefined;
1307
+ channelId?: string | undefined;
1307
1308
  wabaBusinessId?: string | undefined;
1308
1309
  clientId?: string | undefined;
1309
- channelId?: string | undefined;
1310
- status?: "active" | "pending" | undefined;
1311
1310
  apiKey?: string | undefined;
1312
1311
  } | undefined;
1312
+ additionalCredentials?: any;
1313
+ channelSecret?: string | undefined;
1314
+ senderId?: string | undefined;
1313
1315
  vonageCredentials?: {
1314
1316
  apiKey: string;
1315
1317
  mobileNumber: string;
@@ -1321,19 +1323,19 @@ export declare const telegramContract: {
1321
1323
  name: string;
1322
1324
  id: string;
1323
1325
  accessToken?: string | undefined;
1324
- channelSecret?: string | undefined;
1325
- additionalCredentials?: any;
1326
- senderId?: string | undefined;
1327
1326
  whatsapp?: {
1328
1327
  email: string;
1329
1328
  wabaExternalId: string;
1330
1329
  phoneNumberId: string;
1330
+ status?: "active" | "pending" | undefined;
1331
+ channelId?: string | undefined;
1331
1332
  wabaBusinessId?: string | undefined;
1332
1333
  clientId?: string | undefined;
1333
- channelId?: string | undefined;
1334
- status?: "active" | "pending" | undefined;
1335
1334
  apiKey?: string | undefined;
1336
1335
  } | undefined;
1336
+ additionalCredentials?: any;
1337
+ channelSecret?: string | undefined;
1338
+ senderId?: string | undefined;
1337
1339
  vonageCredentials?: {
1338
1340
  apiKey: string;
1339
1341
  mobileNumber: string;
@@ -1375,19 +1377,19 @@ export declare const telegramContract: {
1375
1377
  name: string;
1376
1378
  id: string;
1377
1379
  accessToken?: string | undefined;
1378
- channelSecret?: string | undefined;
1379
- additionalCredentials?: any;
1380
- senderId?: string | undefined;
1381
1380
  whatsapp?: {
1382
1381
  email: string;
1383
1382
  wabaExternalId: string;
1384
1383
  phoneNumberId: string;
1384
+ status?: "active" | "pending" | undefined;
1385
+ channelId?: string | undefined;
1385
1386
  wabaBusinessId?: string | undefined;
1386
1387
  clientId?: string | undefined;
1387
- channelId?: string | undefined;
1388
- status?: "active" | "pending" | undefined;
1389
1388
  apiKey?: string | undefined;
1390
1389
  } | undefined;
1390
+ additionalCredentials?: any;
1391
+ channelSecret?: string | undefined;
1392
+ senderId?: string | undefined;
1391
1393
  vonageCredentials?: {
1392
1394
  apiKey: string;
1393
1395
  mobileNumber: string;
@@ -1399,9 +1401,6 @@ export declare const telegramContract: {
1399
1401
  status: boolean;
1400
1402
  brandName: string;
1401
1403
  platformId: string;
1402
- connectedUserName?: string | null | undefined;
1403
- connectedUserId?: string | null | undefined;
1404
- lineRichMenuId?: string | null | undefined;
1405
1404
  actor?: {
1406
1405
  name: string;
1407
1406
  id: string;
@@ -1409,6 +1408,9 @@ export declare const telegramContract: {
1409
1408
  email: string;
1410
1409
  phone: string | null;
1411
1410
  } | undefined;
1411
+ lineRichMenuId?: string | null | undefined;
1412
+ connectedUserName?: string | null | undefined;
1413
+ connectedUserId?: string | null | undefined;
1412
1414
  }, {
1413
1415
  name: string;
1414
1416
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -1417,19 +1419,19 @@ export declare const telegramContract: {
1417
1419
  name: string;
1418
1420
  id: string;
1419
1421
  accessToken?: string | undefined;
1420
- channelSecret?: string | undefined;
1421
- additionalCredentials?: any;
1422
- senderId?: string | undefined;
1423
1422
  whatsapp?: {
1424
1423
  email: string;
1425
1424
  wabaExternalId: string;
1426
1425
  phoneNumberId: string;
1426
+ status?: "active" | "pending" | undefined;
1427
+ channelId?: string | undefined;
1427
1428
  wabaBusinessId?: string | undefined;
1428
1429
  clientId?: string | undefined;
1429
- channelId?: string | undefined;
1430
- status?: "active" | "pending" | undefined;
1431
1430
  apiKey?: string | undefined;
1432
1431
  } | undefined;
1432
+ additionalCredentials?: any;
1433
+ channelSecret?: string | undefined;
1434
+ senderId?: string | undefined;
1433
1435
  vonageCredentials?: {
1434
1436
  apiKey: string;
1435
1437
  mobileNumber: string;
@@ -1441,9 +1443,6 @@ export declare const telegramContract: {
1441
1443
  status: boolean;
1442
1444
  brandName: string;
1443
1445
  platformId: string;
1444
- connectedUserName?: string | null | undefined;
1445
- connectedUserId?: string | null | undefined;
1446
- lineRichMenuId?: string | null | undefined;
1447
1446
  actor?: {
1448
1447
  name: string;
1449
1448
  id: string;
@@ -1451,9 +1450,12 @@ export declare const telegramContract: {
1451
1450
  email: string;
1452
1451
  phone: string | null;
1453
1452
  } | undefined;
1453
+ lineRichMenuId?: string | null | undefined;
1454
+ connectedUserName?: string | null | undefined;
1455
+ connectedUserId?: string | null | undefined;
1454
1456
  }>;
1455
1457
  messengerTags: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"post_purchase_update">, z.ZodLiteral<"account_update">, z.ZodLiteral<"confirmed_event_update">]>>;
1456
- telegramBusinessConnectionId: z.ZodNullable<z.ZodString>;
1458
+ telegramBusinessConnectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1457
1459
  }, "strip", z.ZodTypeAny, {
1458
1460
  id: string;
1459
1461
  channel: {
@@ -1464,19 +1466,19 @@ export declare const telegramContract: {
1464
1466
  name: string;
1465
1467
  id: string;
1466
1468
  accessToken?: string | undefined;
1467
- channelSecret?: string | undefined;
1468
- additionalCredentials?: any;
1469
- senderId?: string | undefined;
1470
1469
  whatsapp?: {
1471
1470
  email: string;
1472
1471
  wabaExternalId: string;
1473
1472
  phoneNumberId: string;
1473
+ status?: "active" | "pending" | undefined;
1474
+ channelId?: string | undefined;
1474
1475
  wabaBusinessId?: string | undefined;
1475
1476
  clientId?: string | undefined;
1476
- channelId?: string | undefined;
1477
- status?: "active" | "pending" | undefined;
1478
1477
  apiKey?: string | undefined;
1479
1478
  } | undefined;
1479
+ additionalCredentials?: any;
1480
+ channelSecret?: string | undefined;
1481
+ senderId?: string | undefined;
1480
1482
  vonageCredentials?: {
1481
1483
  apiKey: string;
1482
1484
  mobileNumber: string;
@@ -1488,9 +1490,6 @@ export declare const telegramContract: {
1488
1490
  status: boolean;
1489
1491
  brandName: string;
1490
1492
  platformId: string;
1491
- connectedUserName?: string | null | undefined;
1492
- connectedUserId?: string | null | undefined;
1493
- lineRichMenuId?: string | null | undefined;
1494
1493
  actor?: {
1495
1494
  name: string;
1496
1495
  id: string;
@@ -1498,6 +1497,9 @@ export declare const telegramContract: {
1498
1497
  email: string;
1499
1498
  phone: string | null;
1500
1499
  } | undefined;
1500
+ lineRichMenuId?: string | null | undefined;
1501
+ connectedUserName?: string | null | undefined;
1502
+ connectedUserId?: string | null | undefined;
1501
1503
  };
1502
1504
  direction: "incoming" | "outgoing" | "system";
1503
1505
  createdAt: string;
@@ -1535,11 +1537,11 @@ export declare const telegramContract: {
1535
1537
  id: string;
1536
1538
  email: string;
1537
1539
  } | null;
1538
- telegramBusinessConnectionId: string | null;
1540
+ metadata?: any;
1539
1541
  lastMessage?: string | undefined;
1540
1542
  handleTime?: number | undefined;
1541
- metadata?: any;
1542
1543
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1544
+ telegramBusinessConnectionId?: string | null | undefined;
1543
1545
  }, {
1544
1546
  id: string;
1545
1547
  channel: {
@@ -1550,19 +1552,19 @@ export declare const telegramContract: {
1550
1552
  name: string;
1551
1553
  id: string;
1552
1554
  accessToken?: string | undefined;
1553
- channelSecret?: string | undefined;
1554
- additionalCredentials?: any;
1555
- senderId?: string | undefined;
1556
1555
  whatsapp?: {
1557
1556
  email: string;
1558
1557
  wabaExternalId: string;
1559
1558
  phoneNumberId: string;
1559
+ status?: "active" | "pending" | undefined;
1560
+ channelId?: string | undefined;
1560
1561
  wabaBusinessId?: string | undefined;
1561
1562
  clientId?: string | undefined;
1562
- channelId?: string | undefined;
1563
- status?: "active" | "pending" | undefined;
1564
1563
  apiKey?: string | undefined;
1565
1564
  } | undefined;
1565
+ additionalCredentials?: any;
1566
+ channelSecret?: string | undefined;
1567
+ senderId?: string | undefined;
1566
1568
  vonageCredentials?: {
1567
1569
  apiKey: string;
1568
1570
  mobileNumber: string;
@@ -1574,9 +1576,6 @@ export declare const telegramContract: {
1574
1576
  status: boolean;
1575
1577
  brandName: string;
1576
1578
  platformId: string;
1577
- connectedUserName?: string | null | undefined;
1578
- connectedUserId?: string | null | undefined;
1579
- lineRichMenuId?: string | null | undefined;
1580
1579
  actor?: {
1581
1580
  name: string;
1582
1581
  id: string;
@@ -1584,6 +1583,9 @@ export declare const telegramContract: {
1584
1583
  email: string;
1585
1584
  phone: string | null;
1586
1585
  } | undefined;
1586
+ lineRichMenuId?: string | null | undefined;
1587
+ connectedUserName?: string | null | undefined;
1588
+ connectedUserId?: string | null | undefined;
1587
1589
  };
1588
1590
  direction: "incoming" | "outgoing" | "system";
1589
1591
  createdAt: string;
@@ -1621,11 +1623,11 @@ export declare const telegramContract: {
1621
1623
  id: string;
1622
1624
  email: string;
1623
1625
  } | null;
1624
- telegramBusinessConnectionId: string | null;
1626
+ metadata?: any;
1625
1627
  lastMessage?: string | undefined;
1626
1628
  handleTime?: number | undefined;
1627
- metadata?: any;
1628
1629
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1630
+ telegramBusinessConnectionId?: string | null | undefined;
1629
1631
  }>;
1630
1632
  message: z.ZodObject<{
1631
1633
  id: z.ZodOptional<z.ZodString>;
@@ -1689,18 +1691,12 @@ export declare const telegramContract: {
1689
1691
  }, "strip", z.ZodTypeAny, {
1690
1692
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
1691
1693
  direction: "incoming" | "outgoing" | "system";
1692
- id?: string | undefined;
1693
1694
  message?: string | undefined;
1694
- readAt?: string | Date | null | undefined;
1695
- metadata?: any;
1696
- platformId?: string | undefined;
1697
- platformMessageId?: string | undefined;
1698
- replyPlatformMessageId?: string | null | undefined;
1699
- template?: any;
1700
- locale?: "" | "th" | "mm" | "en" | null | undefined;
1695
+ id?: string | undefined;
1701
1696
  url?: string | undefined;
1702
- previewUrl?: string | null | undefined;
1703
- imageSetId?: string | null | undefined;
1697
+ label?: string | undefined;
1698
+ template?: any;
1699
+ metadata?: any;
1704
1700
  upload?: {
1705
1701
  fileName: string;
1706
1702
  fileKey: string;
@@ -1708,6 +1704,13 @@ export declare const telegramContract: {
1708
1704
  fileSize: number;
1709
1705
  originalUrl?: string | undefined;
1710
1706
  } | undefined;
1707
+ platformId?: string | undefined;
1708
+ platformMessageId?: string | undefined;
1709
+ readAt?: string | Date | null | undefined;
1710
+ replyPlatformMessageId?: string | null | undefined;
1711
+ locale?: "" | "th" | "mm" | "en" | null | undefined;
1712
+ previewUrl?: string | null | undefined;
1713
+ imageSetId?: string | null | undefined;
1711
1714
  sender?: {
1712
1715
  name: string;
1713
1716
  id: string;
@@ -1720,22 +1723,15 @@ export declare const telegramContract: {
1720
1723
  editedMessageId?: string | null | undefined;
1721
1724
  isEdited?: boolean | null | undefined;
1722
1725
  editedAt?: string | Date | null | undefined;
1723
- label?: string | undefined;
1724
1726
  }, {
1725
1727
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
1726
1728
  direction: "incoming" | "outgoing" | "system";
1727
- id?: string | undefined;
1728
1729
  message?: string | undefined;
1729
- readAt?: string | Date | null | undefined;
1730
- metadata?: any;
1731
- platformId?: string | undefined;
1732
- platformMessageId?: string | undefined;
1733
- replyPlatformMessageId?: string | null | undefined;
1734
- template?: any;
1735
- locale?: "" | "th" | "mm" | "en" | null | undefined;
1730
+ id?: string | undefined;
1736
1731
  url?: string | undefined;
1737
- previewUrl?: string | null | undefined;
1738
- imageSetId?: string | null | undefined;
1732
+ label?: string | undefined;
1733
+ template?: any;
1734
+ metadata?: any;
1739
1735
  upload?: {
1740
1736
  fileName: string;
1741
1737
  fileKey: string;
@@ -1743,6 +1739,13 @@ export declare const telegramContract: {
1743
1739
  fileSize: number;
1744
1740
  originalUrl?: string | undefined;
1745
1741
  } | undefined;
1742
+ platformId?: string | undefined;
1743
+ platformMessageId?: string | undefined;
1744
+ readAt?: string | Date | null | undefined;
1745
+ replyPlatformMessageId?: string | null | undefined;
1746
+ locale?: "" | "th" | "mm" | "en" | null | undefined;
1747
+ previewUrl?: string | null | undefined;
1748
+ imageSetId?: string | null | undefined;
1746
1749
  sender?: {
1747
1750
  name: string;
1748
1751
  id: string;
@@ -1755,24 +1758,17 @@ export declare const telegramContract: {
1755
1758
  editedMessageId?: string | null | undefined;
1756
1759
  isEdited?: boolean | null | undefined;
1757
1760
  editedAt?: string | Date | null | undefined;
1758
- label?: string | undefined;
1759
1761
  }>;
1760
1762
  }, "strip", z.ZodTypeAny, {
1761
1763
  message: {
1762
1764
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
1763
1765
  direction: "incoming" | "outgoing" | "system";
1764
- id?: string | undefined;
1765
1766
  message?: string | undefined;
1766
- readAt?: string | Date | null | undefined;
1767
- metadata?: any;
1768
- platformId?: string | undefined;
1769
- platformMessageId?: string | undefined;
1770
- replyPlatformMessageId?: string | null | undefined;
1771
- template?: any;
1772
- locale?: "" | "th" | "mm" | "en" | null | undefined;
1767
+ id?: string | undefined;
1773
1768
  url?: string | undefined;
1774
- previewUrl?: string | null | undefined;
1775
- imageSetId?: string | null | undefined;
1769
+ label?: string | undefined;
1770
+ template?: any;
1771
+ metadata?: any;
1776
1772
  upload?: {
1777
1773
  fileName: string;
1778
1774
  fileKey: string;
@@ -1780,6 +1776,13 @@ export declare const telegramContract: {
1780
1776
  fileSize: number;
1781
1777
  originalUrl?: string | undefined;
1782
1778
  } | undefined;
1779
+ platformId?: string | undefined;
1780
+ platformMessageId?: string | undefined;
1781
+ readAt?: string | Date | null | undefined;
1782
+ replyPlatformMessageId?: string | null | undefined;
1783
+ locale?: "" | "th" | "mm" | "en" | null | undefined;
1784
+ previewUrl?: string | null | undefined;
1785
+ imageSetId?: string | null | undefined;
1783
1786
  sender?: {
1784
1787
  name: string;
1785
1788
  id: string;
@@ -1792,7 +1795,6 @@ export declare const telegramContract: {
1792
1795
  editedMessageId?: string | null | undefined;
1793
1796
  isEdited?: boolean | null | undefined;
1794
1797
  editedAt?: string | Date | null | undefined;
1795
- label?: string | undefined;
1796
1798
  };
1797
1799
  room: {
1798
1800
  id: string;
@@ -1804,19 +1806,19 @@ export declare const telegramContract: {
1804
1806
  name: string;
1805
1807
  id: string;
1806
1808
  accessToken?: string | undefined;
1807
- channelSecret?: string | undefined;
1808
- additionalCredentials?: any;
1809
- senderId?: string | undefined;
1810
1809
  whatsapp?: {
1811
1810
  email: string;
1812
1811
  wabaExternalId: string;
1813
1812
  phoneNumberId: string;
1813
+ status?: "active" | "pending" | undefined;
1814
+ channelId?: string | undefined;
1814
1815
  wabaBusinessId?: string | undefined;
1815
1816
  clientId?: string | undefined;
1816
- channelId?: string | undefined;
1817
- status?: "active" | "pending" | undefined;
1818
1817
  apiKey?: string | undefined;
1819
1818
  } | undefined;
1819
+ additionalCredentials?: any;
1820
+ channelSecret?: string | undefined;
1821
+ senderId?: string | undefined;
1820
1822
  vonageCredentials?: {
1821
1823
  apiKey: string;
1822
1824
  mobileNumber: string;
@@ -1828,9 +1830,6 @@ export declare const telegramContract: {
1828
1830
  status: boolean;
1829
1831
  brandName: string;
1830
1832
  platformId: string;
1831
- connectedUserName?: string | null | undefined;
1832
- connectedUserId?: string | null | undefined;
1833
- lineRichMenuId?: string | null | undefined;
1834
1833
  actor?: {
1835
1834
  name: string;
1836
1835
  id: string;
@@ -1838,6 +1837,9 @@ export declare const telegramContract: {
1838
1837
  email: string;
1839
1838
  phone: string | null;
1840
1839
  } | undefined;
1840
+ lineRichMenuId?: string | null | undefined;
1841
+ connectedUserName?: string | null | undefined;
1842
+ connectedUserId?: string | null | undefined;
1841
1843
  };
1842
1844
  direction: "incoming" | "outgoing" | "system";
1843
1845
  createdAt: string;
@@ -1875,29 +1877,23 @@ export declare const telegramContract: {
1875
1877
  id: string;
1876
1878
  email: string;
1877
1879
  } | null;
1878
- telegramBusinessConnectionId: string | null;
1880
+ metadata?: any;
1879
1881
  lastMessage?: string | undefined;
1880
1882
  handleTime?: number | undefined;
1881
- metadata?: any;
1882
1883
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1884
+ telegramBusinessConnectionId?: string | null | undefined;
1883
1885
  };
1884
1886
  isBot: boolean | null;
1885
1887
  }, {
1886
1888
  message: {
1887
1889
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
1888
1890
  direction: "incoming" | "outgoing" | "system";
1889
- id?: string | undefined;
1890
1891
  message?: string | undefined;
1891
- readAt?: string | Date | null | undefined;
1892
- metadata?: any;
1893
- platformId?: string | undefined;
1894
- platformMessageId?: string | undefined;
1895
- replyPlatformMessageId?: string | null | undefined;
1896
- template?: any;
1897
- locale?: "" | "th" | "mm" | "en" | null | undefined;
1892
+ id?: string | undefined;
1898
1893
  url?: string | undefined;
1899
- previewUrl?: string | null | undefined;
1900
- imageSetId?: string | null | undefined;
1894
+ label?: string | undefined;
1895
+ template?: any;
1896
+ metadata?: any;
1901
1897
  upload?: {
1902
1898
  fileName: string;
1903
1899
  fileKey: string;
@@ -1905,6 +1901,13 @@ export declare const telegramContract: {
1905
1901
  fileSize: number;
1906
1902
  originalUrl?: string | undefined;
1907
1903
  } | undefined;
1904
+ platformId?: string | undefined;
1905
+ platformMessageId?: string | undefined;
1906
+ readAt?: string | Date | null | undefined;
1907
+ replyPlatformMessageId?: string | null | undefined;
1908
+ locale?: "" | "th" | "mm" | "en" | null | undefined;
1909
+ previewUrl?: string | null | undefined;
1910
+ imageSetId?: string | null | undefined;
1908
1911
  sender?: {
1909
1912
  name: string;
1910
1913
  id: string;
@@ -1917,7 +1920,6 @@ export declare const telegramContract: {
1917
1920
  editedMessageId?: string | null | undefined;
1918
1921
  isEdited?: boolean | null | undefined;
1919
1922
  editedAt?: string | Date | null | undefined;
1920
- label?: string | undefined;
1921
1923
  };
1922
1924
  room: {
1923
1925
  id: string;
@@ -1929,19 +1931,19 @@ export declare const telegramContract: {
1929
1931
  name: string;
1930
1932
  id: string;
1931
1933
  accessToken?: string | undefined;
1932
- channelSecret?: string | undefined;
1933
- additionalCredentials?: any;
1934
- senderId?: string | undefined;
1935
1934
  whatsapp?: {
1936
1935
  email: string;
1937
1936
  wabaExternalId: string;
1938
1937
  phoneNumberId: string;
1938
+ status?: "active" | "pending" | undefined;
1939
+ channelId?: string | undefined;
1939
1940
  wabaBusinessId?: string | undefined;
1940
1941
  clientId?: string | undefined;
1941
- channelId?: string | undefined;
1942
- status?: "active" | "pending" | undefined;
1943
1942
  apiKey?: string | undefined;
1944
1943
  } | undefined;
1944
+ additionalCredentials?: any;
1945
+ channelSecret?: string | undefined;
1946
+ senderId?: string | undefined;
1945
1947
  vonageCredentials?: {
1946
1948
  apiKey: string;
1947
1949
  mobileNumber: string;
@@ -1953,9 +1955,6 @@ export declare const telegramContract: {
1953
1955
  status: boolean;
1954
1956
  brandName: string;
1955
1957
  platformId: string;
1956
- connectedUserName?: string | null | undefined;
1957
- connectedUserId?: string | null | undefined;
1958
- lineRichMenuId?: string | null | undefined;
1959
1958
  actor?: {
1960
1959
  name: string;
1961
1960
  id: string;
@@ -1963,6 +1962,9 @@ export declare const telegramContract: {
1963
1962
  email: string;
1964
1963
  phone: string | null;
1965
1964
  } | undefined;
1965
+ lineRichMenuId?: string | null | undefined;
1966
+ connectedUserName?: string | null | undefined;
1967
+ connectedUserId?: string | null | undefined;
1966
1968
  };
1967
1969
  direction: "incoming" | "outgoing" | "system";
1968
1970
  createdAt: string;
@@ -2000,509 +2002,76 @@ export declare const telegramContract: {
2000
2002
  id: string;
2001
2003
  email: string;
2002
2004
  } | null;
2003
- telegramBusinessConnectionId: string | null;
2005
+ metadata?: any;
2004
2006
  lastMessage?: string | undefined;
2005
2007
  handleTime?: number | undefined;
2006
- metadata?: any;
2007
2008
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
2009
+ telegramBusinessConnectionId?: string | null | undefined;
2008
2010
  };
2009
2011
  isBot?: boolean | null | undefined;
2010
2012
  }>;
2011
2013
  method: "POST";
2014
+ path: "/message";
2012
2015
  responses: {
2013
- 200: z.ZodObject<{
2016
+ 200: z.ZodObject<z.objectUtil.extendShape<{
2014
2017
  requestId: z.ZodString;
2015
- data: z.ZodObject<{
2016
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "edited", "deleted", "unsupported"]>;
2017
- message: z.ZodString;
2018
+ }, {
2019
+ data: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2018
2020
  id: z.ZodString;
2019
- url: z.ZodString;
2020
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
2021
- label: z.ZodOptional<z.ZodString>;
2022
- template: z.ZodAny;
2023
- metadata: z.ZodAny;
2024
2021
  createdAt: z.ZodDate;
2025
2022
  updatedAt: z.ZodDate;
2026
2023
  deletedAt: z.ZodNullable<z.ZodDate>;
2027
- actor: z.ZodObject<{
2024
+ }, {
2025
+ message: z.ZodString;
2026
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
2027
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "edited", "deleted", "unsupported"]>;
2028
+ readAt: z.ZodDate;
2029
+ metadata: z.ZodAny;
2030
+ platformId: z.ZodString;
2031
+ platformMessageId: z.ZodString;
2032
+ replyPlatformMessageId: z.ZodString;
2033
+ template: z.ZodAny;
2034
+ locale: z.ZodEnum<["mm", "en", "th", ""]>;
2035
+ url: z.ZodString;
2036
+ previewUrl: z.ZodString;
2037
+ imageSetId: z.ZodString;
2038
+ room: z.ZodObject<z.objectUtil.extendShape<{
2028
2039
  id: z.ZodString;
2029
2040
  createdAt: z.ZodDate;
2030
2041
  updatedAt: z.ZodDate;
2031
2042
  deletedAt: z.ZodNullable<z.ZodDate>;
2032
- name: z.ZodString;
2033
- email: z.ZodString;
2034
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2035
- password: z.ZodString;
2036
- address: z.ZodNullable<z.ZodString>;
2037
- phone: z.ZodNullable<z.ZodString>;
2038
- notificationCount: z.ZodNullable<z.ZodNumber>;
2039
- roles: z.ZodArray<z.ZodObject<{
2043
+ }, {
2044
+ lastMessage: z.ZodString;
2045
+ handleTime: z.ZodNumber;
2046
+ closedAt: z.ZodDate;
2047
+ lastMessageAt: z.ZodNullable<z.ZodDate>;
2048
+ status: z.ZodNumber;
2049
+ unreadCount: z.ZodNumber;
2050
+ firstResponseAt: z.ZodDate;
2051
+ firstResponseTime: z.ZodNumber;
2052
+ isLatest: z.ZodBoolean;
2053
+ isBotRoom: z.ZodBoolean;
2054
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
2055
+ platformContact: z.ZodObject<{
2040
2056
  id: z.ZodString;
2041
2057
  createdAt: z.ZodDate;
2042
2058
  updatedAt: z.ZodDate;
2043
2059
  deletedAt: z.ZodNullable<z.ZodDate>;
2044
- systemName: z.ZodString;
2045
- displayName: z.ZodString;
2046
- description: z.ZodNullable<z.ZodString>;
2047
- permissions: z.ZodArray<z.ZodObject<{
2060
+ channelId: z.ZodString;
2061
+ socialPlatformId: z.ZodString;
2062
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
2063
+ metadata: z.ZodObject<{
2048
2064
  id: z.ZodString;
2049
- createdAt: z.ZodDate;
2050
- updatedAt: z.ZodDate;
2051
- deletedAt: z.ZodNullable<z.ZodDate>;
2052
- systemName: z.ZodString;
2053
- displayName: z.ZodString;
2054
- description: z.ZodNullable<z.ZodString>;
2065
+ name: z.ZodString;
2066
+ picture: z.ZodOptional<z.ZodString>;
2067
+ additionalCredentials: z.ZodAny;
2055
2068
  }, "strip", z.ZodTypeAny, {
2069
+ name: string;
2056
2070
  id: string;
2057
- description: string | null;
2058
- createdAt: Date;
2059
- updatedAt: Date;
2060
- deletedAt: Date | null;
2061
- systemName: string;
2062
- displayName: string;
2071
+ picture?: string | undefined;
2072
+ additionalCredentials?: any;
2063
2073
  }, {
2064
- id: string;
2065
- description: string | null;
2066
- createdAt: Date;
2067
- updatedAt: Date;
2068
- deletedAt: Date | null;
2069
- systemName: string;
2070
- displayName: string;
2071
- }>, "many">;
2072
- }, "strip", z.ZodTypeAny, {
2073
- id: string;
2074
- description: string | null;
2075
- createdAt: Date;
2076
- updatedAt: Date;
2077
- deletedAt: Date | null;
2078
- systemName: string;
2079
- displayName: string;
2080
- permissions: {
2081
- id: string;
2082
- description: string | null;
2083
- createdAt: Date;
2084
- updatedAt: Date;
2085
- deletedAt: Date | null;
2086
- systemName: string;
2087
- displayName: string;
2088
- }[];
2089
- }, {
2090
- id: string;
2091
- description: string | null;
2092
- createdAt: Date;
2093
- updatedAt: Date;
2094
- deletedAt: Date | null;
2095
- systemName: string;
2096
- displayName: string;
2097
- permissions: {
2098
- id: string;
2099
- description: string | null;
2100
- createdAt: Date;
2101
- updatedAt: Date;
2102
- deletedAt: Date | null;
2103
- systemName: string;
2104
- displayName: string;
2105
- }[];
2106
- }>, "many">;
2107
- extension: z.ZodObject<{
2108
- id: z.ZodString;
2109
- createdAt: z.ZodDate;
2110
- updatedAt: z.ZodDate;
2111
- deletedAt: z.ZodNullable<z.ZodDate>;
2112
- userId: z.ZodNullable<z.ZodString>;
2113
- sipServerUrl: z.ZodString;
2114
- sipUserName: z.ZodString;
2115
- webphoneLoginUser: z.ZodString;
2116
- extensionId: z.ZodNullable<z.ZodString>;
2117
- extensionName: z.ZodString;
2118
- telephonySignature: z.ZodNullable<z.ZodString>;
2119
- }, "strip", z.ZodTypeAny, {
2120
- id: string;
2121
- createdAt: Date;
2122
- updatedAt: Date;
2123
- deletedAt: Date | null;
2124
- userId: string | null;
2125
- sipServerUrl: string;
2126
- sipUserName: string;
2127
- webphoneLoginUser: string;
2128
- extensionId: string | null;
2129
- extensionName: string;
2130
- telephonySignature: string | null;
2131
- }, {
2132
- id: string;
2133
- createdAt: Date;
2134
- updatedAt: Date;
2135
- deletedAt: Date | null;
2136
- userId: string | null;
2137
- sipServerUrl: string;
2138
- sipUserName: string;
2139
- webphoneLoginUser: string;
2140
- extensionId: string | null;
2141
- extensionName: string;
2142
- telephonySignature: string | null;
2143
- }>;
2144
- }, "strip", z.ZodTypeAny, {
2145
- name: string;
2146
- id: string;
2147
- address: string | null;
2148
- email: string;
2149
- createdAt: Date;
2150
- updatedAt: Date;
2151
- deletedAt: Date | null;
2152
- emailVerifiedAt: Date | null;
2153
- password: string;
2154
- phone: string | null;
2155
- notificationCount: number | null;
2156
- roles: {
2157
- id: string;
2158
- description: string | null;
2159
- createdAt: Date;
2160
- updatedAt: Date;
2161
- deletedAt: Date | null;
2162
- systemName: string;
2163
- displayName: string;
2164
- permissions: {
2165
- id: string;
2166
- description: string | null;
2167
- createdAt: Date;
2168
- updatedAt: Date;
2169
- deletedAt: Date | null;
2170
- systemName: string;
2171
- displayName: string;
2172
- }[];
2173
- }[];
2174
- extension: {
2175
- id: string;
2176
- createdAt: Date;
2177
- updatedAt: Date;
2178
- deletedAt: Date | null;
2179
- userId: string | null;
2180
- sipServerUrl: string;
2181
- sipUserName: string;
2182
- webphoneLoginUser: string;
2183
- extensionId: string | null;
2184
- extensionName: string;
2185
- telephonySignature: string | null;
2186
- };
2187
- }, {
2188
- name: string;
2189
- id: string;
2190
- address: string | null;
2191
- email: string;
2192
- createdAt: Date;
2193
- updatedAt: Date;
2194
- deletedAt: Date | null;
2195
- emailVerifiedAt: Date | null;
2196
- password: string;
2197
- phone: string | null;
2198
- notificationCount: number | null;
2199
- roles: {
2200
- id: string;
2201
- description: string | null;
2202
- createdAt: Date;
2203
- updatedAt: Date;
2204
- deletedAt: Date | null;
2205
- systemName: string;
2206
- displayName: string;
2207
- permissions: {
2208
- id: string;
2209
- description: string | null;
2210
- createdAt: Date;
2211
- updatedAt: Date;
2212
- deletedAt: Date | null;
2213
- systemName: string;
2214
- displayName: string;
2215
- }[];
2216
- }[];
2217
- extension: {
2218
- id: string;
2219
- createdAt: Date;
2220
- updatedAt: Date;
2221
- deletedAt: Date | null;
2222
- userId: string | null;
2223
- sipServerUrl: string;
2224
- sipUserName: string;
2225
- webphoneLoginUser: string;
2226
- extensionId: string | null;
2227
- extensionName: string;
2228
- telephonySignature: string | null;
2229
- };
2230
- }>;
2231
- upload: z.ZodObject<{
2232
- id: z.ZodString;
2233
- createdAt: z.ZodDate;
2234
- updatedAt: z.ZodDate;
2235
- deletedAt: z.ZodNullable<z.ZodDate>;
2236
- bucketName: z.ZodString;
2237
- fileName: z.ZodString;
2238
- fileSize: z.ZodNumber;
2239
- fileKey: z.ZodString;
2240
- fileUrl: z.ZodNullable<z.ZodString>;
2241
- status: z.ZodNullable<z.ZodString>;
2242
- }, "strip", z.ZodTypeAny, {
2243
- id: string;
2244
- status: string | null;
2245
- createdAt: Date;
2246
- updatedAt: Date;
2247
- deletedAt: Date | null;
2248
- fileName: string;
2249
- fileKey: string;
2250
- bucketName: string;
2251
- fileSize: number;
2252
- fileUrl: string | null;
2253
- }, {
2254
- id: string;
2255
- status: string | null;
2256
- createdAt: Date;
2257
- updatedAt: Date;
2258
- deletedAt: Date | null;
2259
- fileName: string;
2260
- fileKey: string;
2261
- bucketName: string;
2262
- fileSize: number;
2263
- fileUrl: string | null;
2264
- }>;
2265
- assignee: z.ZodObject<{
2266
- id: z.ZodString;
2267
- createdAt: z.ZodDate;
2268
- updatedAt: z.ZodDate;
2269
- deletedAt: z.ZodNullable<z.ZodDate>;
2270
- name: z.ZodString;
2271
- email: z.ZodString;
2272
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2273
- password: z.ZodString;
2274
- address: z.ZodNullable<z.ZodString>;
2275
- phone: z.ZodNullable<z.ZodString>;
2276
- notificationCount: z.ZodNullable<z.ZodNumber>;
2277
- roles: z.ZodArray<z.ZodObject<{
2278
- id: z.ZodString;
2279
- createdAt: z.ZodDate;
2280
- updatedAt: z.ZodDate;
2281
- deletedAt: z.ZodNullable<z.ZodDate>;
2282
- systemName: z.ZodString;
2283
- displayName: z.ZodString;
2284
- description: z.ZodNullable<z.ZodString>;
2285
- permissions: z.ZodArray<z.ZodObject<{
2286
- id: z.ZodString;
2287
- createdAt: z.ZodDate;
2288
- updatedAt: z.ZodDate;
2289
- deletedAt: z.ZodNullable<z.ZodDate>;
2290
- systemName: z.ZodString;
2291
- displayName: z.ZodString;
2292
- description: z.ZodNullable<z.ZodString>;
2293
- }, "strip", z.ZodTypeAny, {
2294
- id: string;
2295
- description: string | null;
2296
- createdAt: Date;
2297
- updatedAt: Date;
2298
- deletedAt: Date | null;
2299
- systemName: string;
2300
- displayName: string;
2301
- }, {
2302
- id: string;
2303
- description: string | null;
2304
- createdAt: Date;
2305
- updatedAt: Date;
2306
- deletedAt: Date | null;
2307
- systemName: string;
2308
- displayName: string;
2309
- }>, "many">;
2310
- }, "strip", z.ZodTypeAny, {
2311
- id: string;
2312
- description: string | null;
2313
- createdAt: Date;
2314
- updatedAt: Date;
2315
- deletedAt: Date | null;
2316
- systemName: string;
2317
- displayName: string;
2318
- permissions: {
2319
- id: string;
2320
- description: string | null;
2321
- createdAt: Date;
2322
- updatedAt: Date;
2323
- deletedAt: Date | null;
2324
- systemName: string;
2325
- displayName: string;
2326
- }[];
2327
- }, {
2328
- id: string;
2329
- description: string | null;
2330
- createdAt: Date;
2331
- updatedAt: Date;
2332
- deletedAt: Date | null;
2333
- systemName: string;
2334
- displayName: string;
2335
- permissions: {
2336
- id: string;
2337
- description: string | null;
2338
- createdAt: Date;
2339
- updatedAt: Date;
2340
- deletedAt: Date | null;
2341
- systemName: string;
2342
- displayName: string;
2343
- }[];
2344
- }>, "many">;
2345
- extension: z.ZodObject<{
2346
- id: z.ZodString;
2347
- createdAt: z.ZodDate;
2348
- updatedAt: z.ZodDate;
2349
- deletedAt: z.ZodNullable<z.ZodDate>;
2350
- userId: z.ZodNullable<z.ZodString>;
2351
- sipServerUrl: z.ZodString;
2352
- sipUserName: z.ZodString;
2353
- webphoneLoginUser: z.ZodString;
2354
- extensionId: z.ZodNullable<z.ZodString>;
2355
- extensionName: z.ZodString;
2356
- telephonySignature: z.ZodNullable<z.ZodString>;
2357
- }, "strip", z.ZodTypeAny, {
2358
- id: string;
2359
- createdAt: Date;
2360
- updatedAt: Date;
2361
- deletedAt: Date | null;
2362
- userId: string | null;
2363
- sipServerUrl: string;
2364
- sipUserName: string;
2365
- webphoneLoginUser: string;
2366
- extensionId: string | null;
2367
- extensionName: string;
2368
- telephonySignature: string | null;
2369
- }, {
2370
- id: string;
2371
- createdAt: Date;
2372
- updatedAt: Date;
2373
- deletedAt: Date | null;
2374
- userId: string | null;
2375
- sipServerUrl: string;
2376
- sipUserName: string;
2377
- webphoneLoginUser: string;
2378
- extensionId: string | null;
2379
- extensionName: string;
2380
- telephonySignature: string | null;
2381
- }>;
2382
- }, "strip", z.ZodTypeAny, {
2383
- name: string;
2384
- id: string;
2385
- address: string | null;
2386
- email: string;
2387
- createdAt: Date;
2388
- updatedAt: Date;
2389
- deletedAt: Date | null;
2390
- emailVerifiedAt: Date | null;
2391
- password: string;
2392
- phone: string | null;
2393
- notificationCount: number | null;
2394
- roles: {
2395
- id: string;
2396
- description: string | null;
2397
- createdAt: Date;
2398
- updatedAt: Date;
2399
- deletedAt: Date | null;
2400
- systemName: string;
2401
- displayName: string;
2402
- permissions: {
2403
- id: string;
2404
- description: string | null;
2405
- createdAt: Date;
2406
- updatedAt: Date;
2407
- deletedAt: Date | null;
2408
- systemName: string;
2409
- displayName: string;
2410
- }[];
2411
- }[];
2412
- extension: {
2413
- id: string;
2414
- createdAt: Date;
2415
- updatedAt: Date;
2416
- deletedAt: Date | null;
2417
- userId: string | null;
2418
- sipServerUrl: string;
2419
- sipUserName: string;
2420
- webphoneLoginUser: string;
2421
- extensionId: string | null;
2422
- extensionName: string;
2423
- telephonySignature: string | null;
2424
- };
2425
- }, {
2426
- name: string;
2427
- id: string;
2428
- address: string | null;
2429
- email: string;
2430
- createdAt: Date;
2431
- updatedAt: Date;
2432
- deletedAt: Date | null;
2433
- emailVerifiedAt: Date | null;
2434
- password: string;
2435
- phone: string | null;
2436
- notificationCount: number | null;
2437
- roles: {
2438
- id: string;
2439
- description: string | null;
2440
- createdAt: Date;
2441
- updatedAt: Date;
2442
- deletedAt: Date | null;
2443
- systemName: string;
2444
- displayName: string;
2445
- permissions: {
2446
- id: string;
2447
- description: string | null;
2448
- createdAt: Date;
2449
- updatedAt: Date;
2450
- deletedAt: Date | null;
2451
- systemName: string;
2452
- displayName: string;
2453
- }[];
2454
- }[];
2455
- extension: {
2456
- id: string;
2457
- createdAt: Date;
2458
- updatedAt: Date;
2459
- deletedAt: Date | null;
2460
- userId: string | null;
2461
- sipServerUrl: string;
2462
- sipUserName: string;
2463
- webphoneLoginUser: string;
2464
- extensionId: string | null;
2465
- extensionName: string;
2466
- telephonySignature: string | null;
2467
- };
2468
- }>;
2469
- platformId: z.ZodString;
2470
- room: z.ZodObject<{
2471
- id: z.ZodString;
2472
- createdAt: z.ZodDate;
2473
- updatedAt: z.ZodDate;
2474
- deletedAt: z.ZodNullable<z.ZodDate>;
2475
- lastMessage: z.ZodString;
2476
- handleTime: z.ZodNumber;
2477
- closedAt: z.ZodDate;
2478
- lastMessageAt: z.ZodNullable<z.ZodDate>;
2479
- status: z.ZodNumber;
2480
- unreadCount: z.ZodNumber;
2481
- firstResponseAt: z.ZodDate;
2482
- firstResponseTime: z.ZodNumber;
2483
- isLatest: z.ZodBoolean;
2484
- isBotRoom: z.ZodBoolean;
2485
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
2486
- platformContact: z.ZodObject<{
2487
- id: z.ZodString;
2488
- createdAt: z.ZodDate;
2489
- updatedAt: z.ZodDate;
2490
- deletedAt: z.ZodNullable<z.ZodDate>;
2491
- channelId: z.ZodString;
2492
- socialPlatformId: z.ZodString;
2493
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
2494
- metadata: z.ZodObject<{
2495
- id: z.ZodString;
2496
- name: z.ZodString;
2497
- picture: z.ZodOptional<z.ZodString>;
2498
- additionalCredentials: z.ZodAny;
2499
- }, "strip", z.ZodTypeAny, {
2500
- name: string;
2501
- id: string;
2502
- picture?: string | undefined;
2503
- additionalCredentials?: any;
2504
- }, {
2505
- name: string;
2074
+ name: string;
2506
2075
  id: string;
2507
2076
  picture?: string | undefined;
2508
2077
  additionalCredentials?: any;
@@ -2518,13 +2087,14 @@ export declare const telegramContract: {
2518
2087
  notes: z.ZodNullable<z.ZodString>;
2519
2088
  contactProfile: z.ZodNullable<z.ZodString>;
2520
2089
  socialProfileUrl: z.ZodNullable<z.ZodString>;
2521
- tags: z.ZodArray<z.ZodObject<{
2090
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2522
2091
  id: z.ZodString;
2523
2092
  createdAt: z.ZodDate;
2524
2093
  updatedAt: z.ZodDate;
2525
2094
  deletedAt: z.ZodNullable<z.ZodDate>;
2095
+ }, {
2526
2096
  name: z.ZodString;
2527
- }, "strip", z.ZodTypeAny, {
2097
+ }>, "strip", z.ZodTypeAny, {
2528
2098
  name: string;
2529
2099
  id: string;
2530
2100
  createdAt: Date;
@@ -2537,29 +2107,32 @@ export declare const telegramContract: {
2537
2107
  updatedAt: Date;
2538
2108
  deletedAt: Date | null;
2539
2109
  }>, "many">;
2540
- company: z.ZodNullable<z.ZodObject<Omit<{
2110
+ company: z.ZodNullable<z.ZodObject<Omit<z.objectUtil.extendShape<{
2541
2111
  id: z.ZodString;
2542
2112
  createdAt: z.ZodDate;
2543
2113
  updatedAt: z.ZodDate;
2544
2114
  deletedAt: z.ZodNullable<z.ZodDate>;
2115
+ }, {
2545
2116
  name: z.ZodOptional<z.ZodString>;
2546
2117
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2547
2118
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2548
2119
  industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2549
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2120
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2550
2121
  id: z.ZodString;
2551
2122
  createdAt: z.ZodDate;
2552
2123
  updatedAt: z.ZodDate;
2553
2124
  deletedAt: z.ZodNullable<z.ZodDate>;
2125
+ }, {
2554
2126
  textValue: z.ZodNullable<z.ZodString>;
2555
2127
  booleanValue: z.ZodNullable<z.ZodBoolean>;
2556
2128
  numberValue: z.ZodNullable<z.ZodNumber>;
2557
2129
  dateValue: z.ZodNullable<z.ZodDate>;
2558
- attribute: z.ZodObject<Omit<{
2130
+ attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
2559
2131
  id: z.ZodString;
2560
2132
  createdAt: z.ZodDate;
2561
2133
  updatedAt: z.ZodDate;
2562
2134
  deletedAt: z.ZodNullable<z.ZodDate>;
2135
+ }, {
2563
2136
  systemName: z.ZodString;
2564
2137
  displayName: z.ZodString;
2565
2138
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -2568,13 +2141,14 @@ export declare const telegramContract: {
2568
2141
  isArchived: z.ZodBoolean;
2569
2142
  isRequired: z.ZodBoolean;
2570
2143
  isUnique: z.ZodBoolean;
2571
- options: z.ZodArray<z.ZodObject<{
2572
- position: z.ZodNumber;
2573
- value: z.ZodString;
2144
+ options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2574
2145
  label: z.ZodString;
2146
+ value: z.ZodString;
2575
2147
  isDefault: z.ZodBoolean;
2148
+ position: z.ZodNumber;
2149
+ }, {
2576
2150
  id: z.ZodString;
2577
- }, "strip", z.ZodTypeAny, {
2151
+ }>, "strip", z.ZodTypeAny, {
2578
2152
  id: string;
2579
2153
  position: number;
2580
2154
  value: string;
@@ -2587,14 +2161,15 @@ export declare const telegramContract: {
2587
2161
  label: string;
2588
2162
  isDefault: boolean;
2589
2163
  }>, "many">;
2590
- group: z.ZodObject<{
2164
+ group: z.ZodObject<z.objectUtil.extendShape<{
2591
2165
  id: z.ZodString;
2592
2166
  createdAt: z.ZodDate;
2593
2167
  updatedAt: z.ZodDate;
2594
2168
  deletedAt: z.ZodNullable<z.ZodDate>;
2169
+ }, {
2595
2170
  systemName: z.ZodString;
2596
2171
  displayName: z.ZodString;
2597
- }, "strip", z.ZodTypeAny, {
2172
+ }>, "strip", z.ZodTypeAny, {
2598
2173
  id: string;
2599
2174
  createdAt: Date;
2600
2175
  updatedAt: Date;
@@ -2609,7 +2184,7 @@ export declare const telegramContract: {
2609
2184
  systemName: string;
2610
2185
  displayName: string;
2611
2186
  }>;
2612
- }, "options" | "group">, "strip", z.ZodTypeAny, {
2187
+ }>, "options" | "group">, "strip", z.ZodTypeAny, {
2613
2188
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2614
2189
  id: string;
2615
2190
  position: number;
@@ -2636,7 +2211,7 @@ export declare const telegramContract: {
2636
2211
  isRequired: boolean;
2637
2212
  isUnique: boolean;
2638
2213
  }>;
2639
- }, "strip", z.ZodTypeAny, {
2214
+ }>, "strip", z.ZodTypeAny, {
2640
2215
  id: string;
2641
2216
  createdAt: Date;
2642
2217
  updatedAt: Date;
@@ -2683,7 +2258,7 @@ export declare const telegramContract: {
2683
2258
  numberValue: number | null;
2684
2259
  dateValue: Date | null;
2685
2260
  }>, "many">>;
2686
- }, "customFields">, "strip", z.ZodTypeAny, {
2261
+ }>, "customFields">, "strip", z.ZodTypeAny, {
2687
2262
  id: string;
2688
2263
  createdAt: Date;
2689
2264
  updatedAt: Date;
@@ -2764,11 +2339,12 @@ export declare const telegramContract: {
2764
2339
  booleanValue: z.ZodNullable<z.ZodBoolean>;
2765
2340
  numberValue: z.ZodNullable<z.ZodNumber>;
2766
2341
  dateValue: z.ZodNullable<z.ZodDate>;
2767
- attribute: z.ZodObject<Omit<{
2342
+ attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
2768
2343
  id: z.ZodString;
2769
2344
  createdAt: z.ZodDate;
2770
2345
  updatedAt: z.ZodDate;
2771
2346
  deletedAt: z.ZodNullable<z.ZodDate>;
2347
+ }, {
2772
2348
  systemName: z.ZodString;
2773
2349
  displayName: z.ZodString;
2774
2350
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -2777,13 +2353,14 @@ export declare const telegramContract: {
2777
2353
  isArchived: z.ZodBoolean;
2778
2354
  isRequired: z.ZodBoolean;
2779
2355
  isUnique: z.ZodBoolean;
2780
- options: z.ZodArray<z.ZodObject<{
2781
- position: z.ZodNumber;
2782
- value: z.ZodString;
2356
+ options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2783
2357
  label: z.ZodString;
2358
+ value: z.ZodString;
2784
2359
  isDefault: z.ZodBoolean;
2360
+ position: z.ZodNumber;
2361
+ }, {
2785
2362
  id: z.ZodString;
2786
- }, "strip", z.ZodTypeAny, {
2363
+ }>, "strip", z.ZodTypeAny, {
2787
2364
  id: string;
2788
2365
  position: number;
2789
2366
  value: string;
@@ -2796,14 +2373,15 @@ export declare const telegramContract: {
2796
2373
  label: string;
2797
2374
  isDefault: boolean;
2798
2375
  }>, "many">;
2799
- group: z.ZodObject<{
2376
+ group: z.ZodObject<z.objectUtil.extendShape<{
2800
2377
  id: z.ZodString;
2801
2378
  createdAt: z.ZodDate;
2802
2379
  updatedAt: z.ZodDate;
2803
2380
  deletedAt: z.ZodNullable<z.ZodDate>;
2381
+ }, {
2804
2382
  systemName: z.ZodString;
2805
2383
  displayName: z.ZodString;
2806
- }, "strip", z.ZodTypeAny, {
2384
+ }>, "strip", z.ZodTypeAny, {
2807
2385
  id: string;
2808
2386
  createdAt: Date;
2809
2387
  updatedAt: Date;
@@ -2818,7 +2396,7 @@ export declare const telegramContract: {
2818
2396
  systemName: string;
2819
2397
  displayName: string;
2820
2398
  }>;
2821
- }, "options" | "group">, "strip", z.ZodTypeAny, {
2399
+ }>, "options" | "group">, "strip", z.ZodTypeAny, {
2822
2400
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2823
2401
  id: string;
2824
2402
  position: number;
@@ -2845,18 +2423,19 @@ export declare const telegramContract: {
2845
2423
  isRequired: boolean;
2846
2424
  isUnique: boolean;
2847
2425
  }>;
2848
- uploads: z.ZodArray<z.ZodObject<{
2426
+ uploads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
2849
2427
  id: z.ZodString;
2850
2428
  createdAt: z.ZodDate;
2851
2429
  updatedAt: z.ZodDate;
2852
2430
  deletedAt: z.ZodNullable<z.ZodDate>;
2431
+ }, {
2853
2432
  bucketName: z.ZodString;
2854
2433
  fileName: z.ZodString;
2855
2434
  fileSize: z.ZodNumber;
2856
2435
  fileKey: z.ZodString;
2857
2436
  fileUrl: z.ZodNullable<z.ZodString>;
2858
2437
  status: z.ZodNullable<z.ZodString>;
2859
- }, "strip", z.ZodTypeAny, {
2438
+ }>, "strip", z.ZodTypeAny, {
2860
2439
  id: string;
2861
2440
  status: string | null;
2862
2441
  createdAt: Date;
@@ -3965,19 +3544,19 @@ export declare const telegramContract: {
3965
3544
  email: string;
3966
3545
  wabaExternalId: string;
3967
3546
  phoneNumberId: string;
3547
+ status?: "active" | "pending" | undefined;
3548
+ channelId?: string | undefined;
3968
3549
  wabaBusinessId?: string | undefined;
3969
3550
  clientId?: string | undefined;
3970
- channelId?: string | undefined;
3971
- status?: "active" | "pending" | undefined;
3972
3551
  apiKey?: string | undefined;
3973
3552
  }, {
3974
3553
  email: string;
3975
3554
  wabaExternalId: string;
3976
3555
  phoneNumberId: string;
3556
+ status?: "active" | "pending" | undefined;
3557
+ channelId?: string | undefined;
3977
3558
  wabaBusinessId?: string | undefined;
3978
3559
  clientId?: string | undefined;
3979
- channelId?: string | undefined;
3980
- status?: "active" | "pending" | undefined;
3981
3560
  apiKey?: string | undefined;
3982
3561
  }>>;
3983
3562
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -3999,19 +3578,19 @@ export declare const telegramContract: {
3999
3578
  name: string;
4000
3579
  id: string;
4001
3580
  accessToken?: string | undefined;
4002
- channelSecret?: string | undefined;
4003
- additionalCredentials?: any;
4004
- senderId?: string | undefined;
4005
3581
  whatsapp?: {
4006
3582
  email: string;
4007
3583
  wabaExternalId: string;
4008
3584
  phoneNumberId: string;
3585
+ status?: "active" | "pending" | undefined;
3586
+ channelId?: string | undefined;
4009
3587
  wabaBusinessId?: string | undefined;
4010
3588
  clientId?: string | undefined;
4011
- channelId?: string | undefined;
4012
- status?: "active" | "pending" | undefined;
4013
3589
  apiKey?: string | undefined;
4014
3590
  } | undefined;
3591
+ additionalCredentials?: any;
3592
+ channelSecret?: string | undefined;
3593
+ senderId?: string | undefined;
4015
3594
  vonageCredentials?: {
4016
3595
  apiKey: string;
4017
3596
  mobileNumber: string;
@@ -4023,19 +3602,19 @@ export declare const telegramContract: {
4023
3602
  name: string;
4024
3603
  id: string;
4025
3604
  accessToken?: string | undefined;
4026
- channelSecret?: string | undefined;
4027
- additionalCredentials?: any;
4028
- senderId?: string | undefined;
4029
3605
  whatsapp?: {
4030
3606
  email: string;
4031
3607
  wabaExternalId: string;
4032
3608
  phoneNumberId: string;
3609
+ status?: "active" | "pending" | undefined;
3610
+ channelId?: string | undefined;
4033
3611
  wabaBusinessId?: string | undefined;
4034
3612
  clientId?: string | undefined;
4035
- channelId?: string | undefined;
4036
- status?: "active" | "pending" | undefined;
4037
3613
  apiKey?: string | undefined;
4038
3614
  } | undefined;
3615
+ additionalCredentials?: any;
3616
+ channelSecret?: string | undefined;
3617
+ senderId?: string | undefined;
4039
3618
  vonageCredentials?: {
4040
3619
  apiKey: string;
4041
3620
  mobileNumber: string;
@@ -4281,19 +3860,19 @@ export declare const telegramContract: {
4281
3860
  name: string;
4282
3861
  id: string;
4283
3862
  accessToken?: string | undefined;
4284
- channelSecret?: string | undefined;
4285
- additionalCredentials?: any;
4286
- senderId?: string | undefined;
4287
3863
  whatsapp?: {
4288
3864
  email: string;
4289
3865
  wabaExternalId: string;
4290
3866
  phoneNumberId: string;
3867
+ status?: "active" | "pending" | undefined;
3868
+ channelId?: string | undefined;
4291
3869
  wabaBusinessId?: string | undefined;
4292
3870
  clientId?: string | undefined;
4293
- channelId?: string | undefined;
4294
- status?: "active" | "pending" | undefined;
4295
3871
  apiKey?: string | undefined;
4296
3872
  } | undefined;
3873
+ additionalCredentials?: any;
3874
+ channelSecret?: string | undefined;
3875
+ senderId?: string | undefined;
4297
3876
  vonageCredentials?: {
4298
3877
  apiKey: string;
4299
3878
  mobileNumber: string;
@@ -4370,19 +3949,19 @@ export declare const telegramContract: {
4370
3949
  name: string;
4371
3950
  id: string;
4372
3951
  accessToken?: string | undefined;
4373
- channelSecret?: string | undefined;
4374
- additionalCredentials?: any;
4375
- senderId?: string | undefined;
4376
3952
  whatsapp?: {
4377
3953
  email: string;
4378
3954
  wabaExternalId: string;
4379
3955
  phoneNumberId: string;
3956
+ status?: "active" | "pending" | undefined;
3957
+ channelId?: string | undefined;
4380
3958
  wabaBusinessId?: string | undefined;
4381
3959
  clientId?: string | undefined;
4382
- channelId?: string | undefined;
4383
- status?: "active" | "pending" | undefined;
4384
3960
  apiKey?: string | undefined;
4385
3961
  } | undefined;
3962
+ additionalCredentials?: any;
3963
+ channelSecret?: string | undefined;
3964
+ senderId?: string | undefined;
4386
3965
  vonageCredentials?: {
4387
3966
  apiKey: string;
4388
3967
  mobileNumber: string;
@@ -4452,11 +4031,12 @@ export declare const telegramContract: {
4452
4031
  integrationId: string;
4453
4032
  } | null;
4454
4033
  }>;
4455
- cxlog: z.ZodObject<{
4034
+ cxlog: z.ZodObject<z.objectUtil.extendShape<{
4456
4035
  id: z.ZodString;
4457
4036
  createdAt: z.ZodDate;
4458
4037
  updatedAt: z.ZodDate;
4459
4038
  deletedAt: z.ZodNullable<z.ZodDate>;
4039
+ }, {
4460
4040
  caseId: z.ZodNumber;
4461
4041
  entityId: z.ZodString;
4462
4042
  entityName: z.ZodString;
@@ -4468,21 +4048,23 @@ export declare const telegramContract: {
4468
4048
  startedDate: z.ZodNullable<z.ZodDate>;
4469
4049
  handledTime: z.ZodNullable<z.ZodNumber>;
4470
4050
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
4471
- wrapUpForm: z.ZodNullable<z.ZodObject<{
4051
+ wrapUpForm: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
4472
4052
  id: z.ZodString;
4473
4053
  createdAt: z.ZodDate;
4474
4054
  updatedAt: z.ZodDate;
4475
4055
  deletedAt: z.ZodNullable<z.ZodDate>;
4056
+ }, {
4476
4057
  note: z.ZodNullable<z.ZodString>;
4477
4058
  disposition: z.ZodNullable<z.ZodString>;
4478
4059
  type: z.ZodString;
4479
- tags: z.ZodArray<z.ZodObject<{
4060
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4480
4061
  id: z.ZodString;
4481
4062
  createdAt: z.ZodDate;
4482
4063
  updatedAt: z.ZodDate;
4483
4064
  deletedAt: z.ZodNullable<z.ZodDate>;
4065
+ }, {
4484
4066
  name: z.ZodString;
4485
- }, "strip", z.ZodTypeAny, {
4067
+ }>, "strip", z.ZodTypeAny, {
4486
4068
  name: string;
4487
4069
  id: string;
4488
4070
  createdAt: Date;
@@ -4495,11 +4077,12 @@ export declare const telegramContract: {
4495
4077
  updatedAt: Date;
4496
4078
  deletedAt: Date | null;
4497
4079
  }>, "many">;
4498
- categories: z.ZodArray<z.ZodObject<{
4080
+ categories: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
4499
4081
  id: z.ZodString;
4500
4082
  createdAt: z.ZodDate;
4501
4083
  updatedAt: z.ZodDate;
4502
4084
  deletedAt: z.ZodNullable<z.ZodDate>;
4085
+ }, {
4503
4086
  value: z.ZodString;
4504
4087
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
4505
4088
  parentId: z.ZodNullable<z.ZodString>;
@@ -4552,7 +4135,7 @@ export declare const telegramContract: {
4552
4135
  childCategoryList: any[];
4553
4136
  }[];
4554
4137
  }>, "many">;
4555
- }, "strip", z.ZodTypeAny, {
4138
+ }>, "strip", z.ZodTypeAny, {
4556
4139
  id: string;
4557
4140
  value: string;
4558
4141
  createdAt: Date;
@@ -4631,7 +4214,7 @@ export declare const telegramContract: {
4631
4214
  numberValue: number | null;
4632
4215
  dateValue: Date | null;
4633
4216
  }>, "many">>>;
4634
- }, "strip", z.ZodTypeAny, {
4217
+ }>, "strip", z.ZodTypeAny, {
4635
4218
  type: string;
4636
4219
  id: string;
4637
4220
  disposition: string | null;
@@ -4734,7 +4317,7 @@ export declare const telegramContract: {
4734
4317
  dateValue: Date | null;
4735
4318
  }[] | null | undefined;
4736
4319
  }>>;
4737
- }, "strip", z.ZodTypeAny, {
4320
+ }>, "strip", z.ZodTypeAny, {
4738
4321
  id: string;
4739
4322
  channel: string | null;
4740
4323
  direction: string | null;
@@ -4871,15 +4454,16 @@ export declare const telegramContract: {
4871
4454
  }[] | null | undefined;
4872
4455
  } | null;
4873
4456
  }>;
4874
- workflowRule: z.ZodObject<{
4457
+ workflowRule: z.ZodObject<z.objectUtil.extendShape<{
4875
4458
  id: z.ZodString;
4876
4459
  createdAt: z.ZodDate;
4877
4460
  updatedAt: z.ZodDate;
4878
4461
  deletedAt: z.ZodNullable<z.ZodDate>;
4462
+ }, {
4879
4463
  name: z.ZodString;
4880
4464
  isActive: z.ZodBoolean;
4881
4465
  type: z.ZodString;
4882
- }, "strip", z.ZodTypeAny, {
4466
+ }>, "strip", z.ZodTypeAny, {
4883
4467
  name: string;
4884
4468
  type: string;
4885
4469
  id: string;
@@ -4897,7 +4481,7 @@ export declare const telegramContract: {
4897
4481
  isActive: boolean;
4898
4482
  }>;
4899
4483
  automationQueueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4900
- }, "strip", z.ZodTypeAny, {
4484
+ }>, "strip", z.ZodTypeAny, {
4901
4485
  id: string;
4902
4486
  channel: {
4903
4487
  name: string;
@@ -4907,19 +4491,19 @@ export declare const telegramContract: {
4907
4491
  name: string;
4908
4492
  id: string;
4909
4493
  accessToken?: string | undefined;
4910
- channelSecret?: string | undefined;
4911
- additionalCredentials?: any;
4912
- senderId?: string | undefined;
4913
4494
  whatsapp?: {
4914
4495
  email: string;
4915
4496
  wabaExternalId: string;
4916
4497
  phoneNumberId: string;
4498
+ status?: "active" | "pending" | undefined;
4499
+ channelId?: string | undefined;
4917
4500
  wabaBusinessId?: string | undefined;
4918
4501
  clientId?: string | undefined;
4919
- channelId?: string | undefined;
4920
- status?: "active" | "pending" | undefined;
4921
4502
  apiKey?: string | undefined;
4922
4503
  } | undefined;
4504
+ additionalCredentials?: any;
4505
+ channelSecret?: string | undefined;
4506
+ senderId?: string | undefined;
4923
4507
  vonageCredentials?: {
4924
4508
  apiKey: string;
4925
4509
  mobileNumber: string;
@@ -5307,19 +4891,19 @@ export declare const telegramContract: {
5307
4891
  name: string;
5308
4892
  id: string;
5309
4893
  accessToken?: string | undefined;
5310
- channelSecret?: string | undefined;
5311
- additionalCredentials?: any;
5312
- senderId?: string | undefined;
5313
4894
  whatsapp?: {
5314
4895
  email: string;
5315
4896
  wabaExternalId: string;
5316
4897
  phoneNumberId: string;
4898
+ status?: "active" | "pending" | undefined;
4899
+ channelId?: string | undefined;
5317
4900
  wabaBusinessId?: string | undefined;
5318
4901
  clientId?: string | undefined;
5319
- channelId?: string | undefined;
5320
- status?: "active" | "pending" | undefined;
5321
4902
  apiKey?: string | undefined;
5322
4903
  } | undefined;
4904
+ additionalCredentials?: any;
4905
+ channelSecret?: string | undefined;
4906
+ senderId?: string | undefined;
5323
4907
  vonageCredentials?: {
5324
4908
  apiKey: string;
5325
4909
  mobileNumber: string;
@@ -5698,42 +5282,47 @@ export declare const telegramContract: {
5698
5282
  };
5699
5283
  automationQueueId?: string | null | undefined;
5700
5284
  }>;
5701
- platformMessageId: z.ZodString;
5702
- workflowRule: z.ZodObject<{
5285
+ upload: z.ZodObject<z.objectUtil.extendShape<{
5703
5286
  id: z.ZodString;
5704
5287
  createdAt: z.ZodDate;
5705
5288
  updatedAt: z.ZodDate;
5706
5289
  deletedAt: z.ZodNullable<z.ZodDate>;
5707
- name: z.ZodString;
5708
- isActive: z.ZodBoolean;
5709
- type: z.ZodString;
5710
- }, "strip", z.ZodTypeAny, {
5711
- name: string;
5712
- type: string;
5290
+ }, {
5291
+ bucketName: z.ZodString;
5292
+ fileName: z.ZodString;
5293
+ fileSize: z.ZodNumber;
5294
+ fileKey: z.ZodString;
5295
+ fileUrl: z.ZodNullable<z.ZodString>;
5296
+ status: z.ZodNullable<z.ZodString>;
5297
+ }>, "strip", z.ZodTypeAny, {
5713
5298
  id: string;
5299
+ status: string | null;
5714
5300
  createdAt: Date;
5715
5301
  updatedAt: Date;
5716
5302
  deletedAt: Date | null;
5717
- isActive: boolean;
5303
+ fileName: string;
5304
+ fileKey: string;
5305
+ bucketName: string;
5306
+ fileSize: number;
5307
+ fileUrl: string | null;
5718
5308
  }, {
5719
- name: string;
5720
- type: string;
5721
5309
  id: string;
5310
+ status: string | null;
5722
5311
  createdAt: Date;
5723
5312
  updatedAt: Date;
5724
5313
  deletedAt: Date | null;
5725
- isActive: boolean;
5314
+ fileName: string;
5315
+ fileKey: string;
5316
+ bucketName: string;
5317
+ fileSize: number;
5318
+ fileUrl: string | null;
5726
5319
  }>;
5727
- readAt: z.ZodDate;
5728
- replyPlatformMessageId: z.ZodString;
5729
- locale: z.ZodEnum<["mm", "en", "th", ""]>;
5730
- previewUrl: z.ZodString;
5731
- imageSetId: z.ZodString;
5732
- repliedMessage: z.ZodLazy<z.ZodObject<{
5320
+ repliedMessage: z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
5733
5321
  id: z.ZodString;
5734
5322
  createdAt: z.ZodDate;
5735
5323
  updatedAt: z.ZodDate;
5736
5324
  deletedAt: z.ZodNullable<z.ZodDate>;
5325
+ }, {
5737
5326
  message: z.ZodString;
5738
5327
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
5739
5328
  type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "edited", "deleted", "unsupported"]>;
@@ -5747,18 +5336,19 @@ export declare const telegramContract: {
5747
5336
  url: z.ZodString;
5748
5337
  previewUrl: z.ZodString;
5749
5338
  imageSetId: z.ZodString;
5750
- upload: z.ZodObject<{
5339
+ upload: z.ZodObject<z.objectUtil.extendShape<{
5751
5340
  id: z.ZodString;
5752
5341
  createdAt: z.ZodDate;
5753
5342
  updatedAt: z.ZodDate;
5754
5343
  deletedAt: z.ZodNullable<z.ZodDate>;
5344
+ }, {
5755
5345
  bucketName: z.ZodString;
5756
5346
  fileName: z.ZodString;
5757
5347
  fileSize: z.ZodNumber;
5758
5348
  fileKey: z.ZodString;
5759
5349
  fileUrl: z.ZodNullable<z.ZodString>;
5760
5350
  status: z.ZodNullable<z.ZodString>;
5761
- }, "strip", z.ZodTypeAny, {
5351
+ }>, "strip", z.ZodTypeAny, {
5762
5352
  id: string;
5763
5353
  status: string | null;
5764
5354
  createdAt: Date;
@@ -6392,8 +5982,170 @@ export declare const telegramContract: {
6392
5982
  extensionName: string;
6393
5983
  telephonySignature: string | null;
6394
5984
  };
6395
- }>;
6396
- }, "strip", z.ZodTypeAny, {
5985
+ }>;
5986
+ }>, "strip", z.ZodTypeAny, {
5987
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
5988
+ message: string;
5989
+ id: string;
5990
+ url: string;
5991
+ direction: "incoming" | "outgoing" | "system";
5992
+ createdAt: Date;
5993
+ updatedAt: Date;
5994
+ deletedAt: Date | null;
5995
+ actor: {
5996
+ name: string;
5997
+ id: string;
5998
+ address: string | null;
5999
+ email: string;
6000
+ createdAt: Date;
6001
+ updatedAt: Date;
6002
+ deletedAt: Date | null;
6003
+ emailVerifiedAt: Date | null;
6004
+ password: string;
6005
+ phone: string | null;
6006
+ notificationCount: number | null;
6007
+ roles: {
6008
+ id: string;
6009
+ description: string | null;
6010
+ createdAt: Date;
6011
+ updatedAt: Date;
6012
+ deletedAt: Date | null;
6013
+ systemName: string;
6014
+ displayName: string;
6015
+ permissions: {
6016
+ id: string;
6017
+ description: string | null;
6018
+ createdAt: Date;
6019
+ updatedAt: Date;
6020
+ deletedAt: Date | null;
6021
+ systemName: string;
6022
+ displayName: string;
6023
+ }[];
6024
+ }[];
6025
+ extension: {
6026
+ id: string;
6027
+ createdAt: Date;
6028
+ updatedAt: Date;
6029
+ deletedAt: Date | null;
6030
+ userId: string | null;
6031
+ sipServerUrl: string;
6032
+ sipUserName: string;
6033
+ webphoneLoginUser: string;
6034
+ extensionId: string | null;
6035
+ extensionName: string;
6036
+ telephonySignature: string | null;
6037
+ };
6038
+ };
6039
+ upload: {
6040
+ id: string;
6041
+ status: string | null;
6042
+ createdAt: Date;
6043
+ updatedAt: Date;
6044
+ deletedAt: Date | null;
6045
+ fileName: string;
6046
+ fileKey: string;
6047
+ bucketName: string;
6048
+ fileSize: number;
6049
+ fileUrl: string | null;
6050
+ };
6051
+ assignee: {
6052
+ name: string;
6053
+ id: string;
6054
+ address: string | null;
6055
+ email: string;
6056
+ createdAt: Date;
6057
+ updatedAt: Date;
6058
+ deletedAt: Date | null;
6059
+ emailVerifiedAt: Date | null;
6060
+ password: string;
6061
+ phone: string | null;
6062
+ notificationCount: number | null;
6063
+ roles: {
6064
+ id: string;
6065
+ description: string | null;
6066
+ createdAt: Date;
6067
+ updatedAt: Date;
6068
+ deletedAt: Date | null;
6069
+ systemName: string;
6070
+ displayName: string;
6071
+ permissions: {
6072
+ id: string;
6073
+ description: string | null;
6074
+ createdAt: Date;
6075
+ updatedAt: Date;
6076
+ deletedAt: Date | null;
6077
+ systemName: string;
6078
+ displayName: string;
6079
+ }[];
6080
+ }[];
6081
+ extension: {
6082
+ id: string;
6083
+ createdAt: Date;
6084
+ updatedAt: Date;
6085
+ deletedAt: Date | null;
6086
+ userId: string | null;
6087
+ sipServerUrl: string;
6088
+ sipUserName: string;
6089
+ webphoneLoginUser: string;
6090
+ extensionId: string | null;
6091
+ extensionName: string;
6092
+ telephonySignature: string | null;
6093
+ };
6094
+ };
6095
+ platformId: string;
6096
+ platformMessageId: string;
6097
+ readAt: Date;
6098
+ replyPlatformMessageId: string;
6099
+ locale: "" | "th" | "mm" | "en";
6100
+ previewUrl: string;
6101
+ imageSetId: string;
6102
+ sender: {
6103
+ name: string;
6104
+ id: string;
6105
+ address: string | null;
6106
+ email: string;
6107
+ createdAt: Date;
6108
+ updatedAt: Date;
6109
+ deletedAt: Date | null;
6110
+ emailVerifiedAt: Date | null;
6111
+ password: string;
6112
+ phone: string | null;
6113
+ notificationCount: number | null;
6114
+ roles: {
6115
+ id: string;
6116
+ description: string | null;
6117
+ createdAt: Date;
6118
+ updatedAt: Date;
6119
+ deletedAt: Date | null;
6120
+ systemName: string;
6121
+ displayName: string;
6122
+ permissions: {
6123
+ id: string;
6124
+ description: string | null;
6125
+ createdAt: Date;
6126
+ updatedAt: Date;
6127
+ deletedAt: Date | null;
6128
+ systemName: string;
6129
+ displayName: string;
6130
+ }[];
6131
+ }[];
6132
+ extension: {
6133
+ id: string;
6134
+ createdAt: Date;
6135
+ updatedAt: Date;
6136
+ deletedAt: Date | null;
6137
+ userId: string | null;
6138
+ sipServerUrl: string;
6139
+ sipUserName: string;
6140
+ webphoneLoginUser: string;
6141
+ extensionId: string | null;
6142
+ extensionName: string;
6143
+ telephonySignature: string | null;
6144
+ };
6145
+ };
6146
+ template?: any;
6147
+ metadata?: any;
6148
+ }, {
6397
6149
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
6398
6150
  message: string;
6399
6151
  id: string;
@@ -6529,54 +6281,291 @@ export declare const telegramContract: {
6529
6281
  deletedAt: Date | null;
6530
6282
  systemName: string;
6531
6283
  displayName: string;
6532
- permissions: {
6533
- id: string;
6534
- description: string | null;
6535
- createdAt: Date;
6536
- updatedAt: Date;
6537
- deletedAt: Date | null;
6538
- systemName: string;
6539
- displayName: string;
6540
- }[];
6541
- }[];
6542
- extension: {
6284
+ permissions: {
6285
+ id: string;
6286
+ description: string | null;
6287
+ createdAt: Date;
6288
+ updatedAt: Date;
6289
+ deletedAt: Date | null;
6290
+ systemName: string;
6291
+ displayName: string;
6292
+ }[];
6293
+ }[];
6294
+ extension: {
6295
+ id: string;
6296
+ createdAt: Date;
6297
+ updatedAt: Date;
6298
+ deletedAt: Date | null;
6299
+ userId: string | null;
6300
+ sipServerUrl: string;
6301
+ sipUserName: string;
6302
+ webphoneLoginUser: string;
6303
+ extensionId: string | null;
6304
+ extensionName: string;
6305
+ telephonySignature: string | null;
6306
+ };
6307
+ };
6308
+ template?: any;
6309
+ metadata?: any;
6310
+ }>>;
6311
+ actor: z.ZodObject<{
6312
+ id: z.ZodString;
6313
+ createdAt: z.ZodDate;
6314
+ updatedAt: z.ZodDate;
6315
+ deletedAt: z.ZodNullable<z.ZodDate>;
6316
+ name: z.ZodString;
6317
+ email: z.ZodString;
6318
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
6319
+ password: z.ZodString;
6320
+ address: z.ZodNullable<z.ZodString>;
6321
+ phone: z.ZodNullable<z.ZodString>;
6322
+ notificationCount: z.ZodNullable<z.ZodNumber>;
6323
+ roles: z.ZodArray<z.ZodObject<{
6324
+ id: z.ZodString;
6325
+ createdAt: z.ZodDate;
6326
+ updatedAt: z.ZodDate;
6327
+ deletedAt: z.ZodNullable<z.ZodDate>;
6328
+ systemName: z.ZodString;
6329
+ displayName: z.ZodString;
6330
+ description: z.ZodNullable<z.ZodString>;
6331
+ permissions: z.ZodArray<z.ZodObject<{
6332
+ id: z.ZodString;
6333
+ createdAt: z.ZodDate;
6334
+ updatedAt: z.ZodDate;
6335
+ deletedAt: z.ZodNullable<z.ZodDate>;
6336
+ systemName: z.ZodString;
6337
+ displayName: z.ZodString;
6338
+ description: z.ZodNullable<z.ZodString>;
6339
+ }, "strip", z.ZodTypeAny, {
6340
+ id: string;
6341
+ description: string | null;
6342
+ createdAt: Date;
6343
+ updatedAt: Date;
6344
+ deletedAt: Date | null;
6345
+ systemName: string;
6346
+ displayName: string;
6347
+ }, {
6348
+ id: string;
6349
+ description: string | null;
6350
+ createdAt: Date;
6351
+ updatedAt: Date;
6352
+ deletedAt: Date | null;
6353
+ systemName: string;
6354
+ displayName: string;
6355
+ }>, "many">;
6356
+ }, "strip", z.ZodTypeAny, {
6357
+ id: string;
6358
+ description: string | null;
6359
+ createdAt: Date;
6360
+ updatedAt: Date;
6361
+ deletedAt: Date | null;
6362
+ systemName: string;
6363
+ displayName: string;
6364
+ permissions: {
6365
+ id: string;
6366
+ description: string | null;
6367
+ createdAt: Date;
6368
+ updatedAt: Date;
6369
+ deletedAt: Date | null;
6370
+ systemName: string;
6371
+ displayName: string;
6372
+ }[];
6373
+ }, {
6374
+ id: string;
6375
+ description: string | null;
6376
+ createdAt: Date;
6377
+ updatedAt: Date;
6378
+ deletedAt: Date | null;
6379
+ systemName: string;
6380
+ displayName: string;
6381
+ permissions: {
6382
+ id: string;
6383
+ description: string | null;
6384
+ createdAt: Date;
6385
+ updatedAt: Date;
6386
+ deletedAt: Date | null;
6387
+ systemName: string;
6388
+ displayName: string;
6389
+ }[];
6390
+ }>, "many">;
6391
+ extension: z.ZodObject<{
6392
+ id: z.ZodString;
6393
+ createdAt: z.ZodDate;
6394
+ updatedAt: z.ZodDate;
6395
+ deletedAt: z.ZodNullable<z.ZodDate>;
6396
+ userId: z.ZodNullable<z.ZodString>;
6397
+ sipServerUrl: z.ZodString;
6398
+ sipUserName: z.ZodString;
6399
+ webphoneLoginUser: z.ZodString;
6400
+ extensionId: z.ZodNullable<z.ZodString>;
6401
+ extensionName: z.ZodString;
6402
+ telephonySignature: z.ZodNullable<z.ZodString>;
6403
+ }, "strip", z.ZodTypeAny, {
6404
+ id: string;
6405
+ createdAt: Date;
6406
+ updatedAt: Date;
6407
+ deletedAt: Date | null;
6408
+ userId: string | null;
6409
+ sipServerUrl: string;
6410
+ sipUserName: string;
6411
+ webphoneLoginUser: string;
6412
+ extensionId: string | null;
6413
+ extensionName: string;
6414
+ telephonySignature: string | null;
6415
+ }, {
6416
+ id: string;
6417
+ createdAt: Date;
6418
+ updatedAt: Date;
6419
+ deletedAt: Date | null;
6420
+ userId: string | null;
6421
+ sipServerUrl: string;
6422
+ sipUserName: string;
6423
+ webphoneLoginUser: string;
6424
+ extensionId: string | null;
6425
+ extensionName: string;
6426
+ telephonySignature: string | null;
6427
+ }>;
6428
+ }, "strip", z.ZodTypeAny, {
6429
+ name: string;
6430
+ id: string;
6431
+ address: string | null;
6432
+ email: string;
6433
+ createdAt: Date;
6434
+ updatedAt: Date;
6435
+ deletedAt: Date | null;
6436
+ emailVerifiedAt: Date | null;
6437
+ password: string;
6438
+ phone: string | null;
6439
+ notificationCount: number | null;
6440
+ roles: {
6441
+ id: string;
6442
+ description: string | null;
6443
+ createdAt: Date;
6444
+ updatedAt: Date;
6445
+ deletedAt: Date | null;
6446
+ systemName: string;
6447
+ displayName: string;
6448
+ permissions: {
6449
+ id: string;
6450
+ description: string | null;
6451
+ createdAt: Date;
6452
+ updatedAt: Date;
6453
+ deletedAt: Date | null;
6454
+ systemName: string;
6455
+ displayName: string;
6456
+ }[];
6457
+ }[];
6458
+ extension: {
6459
+ id: string;
6460
+ createdAt: Date;
6461
+ updatedAt: Date;
6462
+ deletedAt: Date | null;
6463
+ userId: string | null;
6464
+ sipServerUrl: string;
6465
+ sipUserName: string;
6466
+ webphoneLoginUser: string;
6467
+ extensionId: string | null;
6468
+ extensionName: string;
6469
+ telephonySignature: string | null;
6470
+ };
6471
+ }, {
6472
+ name: string;
6473
+ id: string;
6474
+ address: string | null;
6475
+ email: string;
6476
+ createdAt: Date;
6477
+ updatedAt: Date;
6478
+ deletedAt: Date | null;
6479
+ emailVerifiedAt: Date | null;
6480
+ password: string;
6481
+ phone: string | null;
6482
+ notificationCount: number | null;
6483
+ roles: {
6484
+ id: string;
6485
+ description: string | null;
6486
+ createdAt: Date;
6487
+ updatedAt: Date;
6488
+ deletedAt: Date | null;
6489
+ systemName: string;
6490
+ displayName: string;
6491
+ permissions: {
6492
+ id: string;
6493
+ description: string | null;
6494
+ createdAt: Date;
6495
+ updatedAt: Date;
6496
+ deletedAt: Date | null;
6497
+ systemName: string;
6498
+ displayName: string;
6499
+ }[];
6500
+ }[];
6501
+ extension: {
6502
+ id: string;
6503
+ createdAt: Date;
6504
+ updatedAt: Date;
6505
+ deletedAt: Date | null;
6506
+ userId: string | null;
6507
+ sipServerUrl: string;
6508
+ sipUserName: string;
6509
+ webphoneLoginUser: string;
6510
+ extensionId: string | null;
6511
+ extensionName: string;
6512
+ telephonySignature: string | null;
6513
+ };
6514
+ }>;
6515
+ assignee: z.ZodObject<{
6516
+ id: z.ZodString;
6517
+ createdAt: z.ZodDate;
6518
+ updatedAt: z.ZodDate;
6519
+ deletedAt: z.ZodNullable<z.ZodDate>;
6520
+ name: z.ZodString;
6521
+ email: z.ZodString;
6522
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
6523
+ password: z.ZodString;
6524
+ address: z.ZodNullable<z.ZodString>;
6525
+ phone: z.ZodNullable<z.ZodString>;
6526
+ notificationCount: z.ZodNullable<z.ZodNumber>;
6527
+ roles: z.ZodArray<z.ZodObject<{
6528
+ id: z.ZodString;
6529
+ createdAt: z.ZodDate;
6530
+ updatedAt: z.ZodDate;
6531
+ deletedAt: z.ZodNullable<z.ZodDate>;
6532
+ systemName: z.ZodString;
6533
+ displayName: z.ZodString;
6534
+ description: z.ZodNullable<z.ZodString>;
6535
+ permissions: z.ZodArray<z.ZodObject<{
6536
+ id: z.ZodString;
6537
+ createdAt: z.ZodDate;
6538
+ updatedAt: z.ZodDate;
6539
+ deletedAt: z.ZodNullable<z.ZodDate>;
6540
+ systemName: z.ZodString;
6541
+ displayName: z.ZodString;
6542
+ description: z.ZodNullable<z.ZodString>;
6543
+ }, "strip", z.ZodTypeAny, {
6544
+ id: string;
6545
+ description: string | null;
6546
+ createdAt: Date;
6547
+ updatedAt: Date;
6548
+ deletedAt: Date | null;
6549
+ systemName: string;
6550
+ displayName: string;
6551
+ }, {
6543
6552
  id: string;
6553
+ description: string | null;
6544
6554
  createdAt: Date;
6545
6555
  updatedAt: Date;
6546
6556
  deletedAt: Date | null;
6547
- userId: string | null;
6548
- sipServerUrl: string;
6549
- sipUserName: string;
6550
- webphoneLoginUser: string;
6551
- extensionId: string | null;
6552
- extensionName: string;
6553
- telephonySignature: string | null;
6554
- };
6555
- };
6556
- metadata?: any;
6557
- template?: any;
6558
- }, {
6559
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
6560
- message: string;
6561
- id: string;
6562
- url: string;
6563
- direction: "incoming" | "outgoing" | "system";
6564
- createdAt: Date;
6565
- updatedAt: Date;
6566
- deletedAt: Date | null;
6567
- actor: {
6568
- name: string;
6557
+ systemName: string;
6558
+ displayName: string;
6559
+ }>, "many">;
6560
+ }, "strip", z.ZodTypeAny, {
6569
6561
  id: string;
6570
- address: string | null;
6571
- email: string;
6562
+ description: string | null;
6572
6563
  createdAt: Date;
6573
6564
  updatedAt: Date;
6574
6565
  deletedAt: Date | null;
6575
- emailVerifiedAt: Date | null;
6576
- password: string;
6577
- phone: string | null;
6578
- notificationCount: number | null;
6579
- roles: {
6566
+ systemName: string;
6567
+ displayName: string;
6568
+ permissions: {
6580
6569
  id: string;
6581
6570
  description: string | null;
6582
6571
  createdAt: Date;
@@ -6584,55 +6573,83 @@ export declare const telegramContract: {
6584
6573
  deletedAt: Date | null;
6585
6574
  systemName: string;
6586
6575
  displayName: string;
6587
- permissions: {
6588
- id: string;
6589
- description: string | null;
6590
- createdAt: Date;
6591
- updatedAt: Date;
6592
- deletedAt: Date | null;
6593
- systemName: string;
6594
- displayName: string;
6595
- }[];
6596
6576
  }[];
6597
- extension: {
6577
+ }, {
6578
+ id: string;
6579
+ description: string | null;
6580
+ createdAt: Date;
6581
+ updatedAt: Date;
6582
+ deletedAt: Date | null;
6583
+ systemName: string;
6584
+ displayName: string;
6585
+ permissions: {
6598
6586
  id: string;
6587
+ description: string | null;
6599
6588
  createdAt: Date;
6600
6589
  updatedAt: Date;
6601
6590
  deletedAt: Date | null;
6602
- userId: string | null;
6603
- sipServerUrl: string;
6604
- sipUserName: string;
6605
- webphoneLoginUser: string;
6606
- extensionId: string | null;
6607
- extensionName: string;
6608
- telephonySignature: string | null;
6609
- };
6610
- };
6611
- upload: {
6591
+ systemName: string;
6592
+ displayName: string;
6593
+ }[];
6594
+ }>, "many">;
6595
+ extension: z.ZodObject<{
6596
+ id: z.ZodString;
6597
+ createdAt: z.ZodDate;
6598
+ updatedAt: z.ZodDate;
6599
+ deletedAt: z.ZodNullable<z.ZodDate>;
6600
+ userId: z.ZodNullable<z.ZodString>;
6601
+ sipServerUrl: z.ZodString;
6602
+ sipUserName: z.ZodString;
6603
+ webphoneLoginUser: z.ZodString;
6604
+ extensionId: z.ZodNullable<z.ZodString>;
6605
+ extensionName: z.ZodString;
6606
+ telephonySignature: z.ZodNullable<z.ZodString>;
6607
+ }, "strip", z.ZodTypeAny, {
6612
6608
  id: string;
6613
- status: string | null;
6614
6609
  createdAt: Date;
6615
6610
  updatedAt: Date;
6616
6611
  deletedAt: Date | null;
6617
- fileName: string;
6618
- fileKey: string;
6619
- bucketName: string;
6620
- fileSize: number;
6621
- fileUrl: string | null;
6622
- };
6623
- assignee: {
6624
- name: string;
6612
+ userId: string | null;
6613
+ sipServerUrl: string;
6614
+ sipUserName: string;
6615
+ webphoneLoginUser: string;
6616
+ extensionId: string | null;
6617
+ extensionName: string;
6618
+ telephonySignature: string | null;
6619
+ }, {
6625
6620
  id: string;
6626
- address: string | null;
6627
- email: string;
6628
6621
  createdAt: Date;
6629
6622
  updatedAt: Date;
6630
6623
  deletedAt: Date | null;
6631
- emailVerifiedAt: Date | null;
6632
- password: string;
6633
- phone: string | null;
6634
- notificationCount: number | null;
6635
- roles: {
6624
+ userId: string | null;
6625
+ sipServerUrl: string;
6626
+ sipUserName: string;
6627
+ webphoneLoginUser: string;
6628
+ extensionId: string | null;
6629
+ extensionName: string;
6630
+ telephonySignature: string | null;
6631
+ }>;
6632
+ }, "strip", z.ZodTypeAny, {
6633
+ name: string;
6634
+ id: string;
6635
+ address: string | null;
6636
+ email: string;
6637
+ createdAt: Date;
6638
+ updatedAt: Date;
6639
+ deletedAt: Date | null;
6640
+ emailVerifiedAt: Date | null;
6641
+ password: string;
6642
+ phone: string | null;
6643
+ notificationCount: number | null;
6644
+ roles: {
6645
+ id: string;
6646
+ description: string | null;
6647
+ createdAt: Date;
6648
+ updatedAt: Date;
6649
+ deletedAt: Date | null;
6650
+ systemName: string;
6651
+ displayName: string;
6652
+ permissions: {
6636
6653
  id: string;
6637
6654
  description: string | null;
6638
6655
  createdAt: Date;
@@ -6640,84 +6657,65 @@ export declare const telegramContract: {
6640
6657
  deletedAt: Date | null;
6641
6658
  systemName: string;
6642
6659
  displayName: string;
6643
- permissions: {
6644
- id: string;
6645
- description: string | null;
6646
- createdAt: Date;
6647
- updatedAt: Date;
6648
- deletedAt: Date | null;
6649
- systemName: string;
6650
- displayName: string;
6651
- }[];
6652
6660
  }[];
6653
- extension: {
6654
- id: string;
6655
- createdAt: Date;
6656
- updatedAt: Date;
6657
- deletedAt: Date | null;
6658
- userId: string | null;
6659
- sipServerUrl: string;
6660
- sipUserName: string;
6661
- webphoneLoginUser: string;
6662
- extensionId: string | null;
6663
- extensionName: string;
6664
- telephonySignature: string | null;
6665
- };
6661
+ }[];
6662
+ extension: {
6663
+ id: string;
6664
+ createdAt: Date;
6665
+ updatedAt: Date;
6666
+ deletedAt: Date | null;
6667
+ userId: string | null;
6668
+ sipServerUrl: string;
6669
+ sipUserName: string;
6670
+ webphoneLoginUser: string;
6671
+ extensionId: string | null;
6672
+ extensionName: string;
6673
+ telephonySignature: string | null;
6666
6674
  };
6667
- platformId: string;
6668
- platformMessageId: string;
6669
- readAt: Date;
6670
- replyPlatformMessageId: string;
6671
- locale: "" | "th" | "mm" | "en";
6672
- previewUrl: string;
6673
- imageSetId: string;
6674
- sender: {
6675
- name: string;
6675
+ }, {
6676
+ name: string;
6677
+ id: string;
6678
+ address: string | null;
6679
+ email: string;
6680
+ createdAt: Date;
6681
+ updatedAt: Date;
6682
+ deletedAt: Date | null;
6683
+ emailVerifiedAt: Date | null;
6684
+ password: string;
6685
+ phone: string | null;
6686
+ notificationCount: number | null;
6687
+ roles: {
6676
6688
  id: string;
6677
- address: string | null;
6678
- email: string;
6689
+ description: string | null;
6679
6690
  createdAt: Date;
6680
6691
  updatedAt: Date;
6681
6692
  deletedAt: Date | null;
6682
- emailVerifiedAt: Date | null;
6683
- password: string;
6684
- phone: string | null;
6685
- notificationCount: number | null;
6686
- roles: {
6687
- id: string;
6688
- description: string | null;
6689
- createdAt: Date;
6690
- updatedAt: Date;
6691
- deletedAt: Date | null;
6692
- systemName: string;
6693
- displayName: string;
6694
- permissions: {
6695
- id: string;
6696
- description: string | null;
6697
- createdAt: Date;
6698
- updatedAt: Date;
6699
- deletedAt: Date | null;
6700
- systemName: string;
6701
- displayName: string;
6702
- }[];
6703
- }[];
6704
- extension: {
6693
+ systemName: string;
6694
+ displayName: string;
6695
+ permissions: {
6705
6696
  id: string;
6697
+ description: string | null;
6706
6698
  createdAt: Date;
6707
6699
  updatedAt: Date;
6708
6700
  deletedAt: Date | null;
6709
- userId: string | null;
6710
- sipServerUrl: string;
6711
- sipUserName: string;
6712
- webphoneLoginUser: string;
6713
- extensionId: string | null;
6714
- extensionName: string;
6715
- telephonySignature: string | null;
6716
- };
6701
+ systemName: string;
6702
+ displayName: string;
6703
+ }[];
6704
+ }[];
6705
+ extension: {
6706
+ id: string;
6707
+ createdAt: Date;
6708
+ updatedAt: Date;
6709
+ deletedAt: Date | null;
6710
+ userId: string | null;
6711
+ sipServerUrl: string;
6712
+ sipUserName: string;
6713
+ webphoneLoginUser: string;
6714
+ extensionId: string | null;
6715
+ extensionName: string;
6716
+ telephonySignature: string | null;
6717
6717
  };
6718
- metadata?: any;
6719
- template?: any;
6720
- }>>;
6718
+ }>;
6721
6719
  sender: z.ZodObject<{
6722
6720
  id: z.ZodString;
6723
6721
  createdAt: z.ZodDate;
@@ -6922,12 +6920,41 @@ export declare const telegramContract: {
6922
6920
  telephonySignature: string | null;
6923
6921
  };
6924
6922
  }>;
6923
+ workflowRule: z.ZodObject<z.objectUtil.extendShape<{
6924
+ id: z.ZodString;
6925
+ createdAt: z.ZodDate;
6926
+ updatedAt: z.ZodDate;
6927
+ deletedAt: z.ZodNullable<z.ZodDate>;
6928
+ }, {
6929
+ name: z.ZodString;
6930
+ isActive: z.ZodBoolean;
6931
+ type: z.ZodString;
6932
+ }>, "strip", z.ZodTypeAny, {
6933
+ name: string;
6934
+ type: string;
6935
+ id: string;
6936
+ createdAt: Date;
6937
+ updatedAt: Date;
6938
+ deletedAt: Date | null;
6939
+ isActive: boolean;
6940
+ }, {
6941
+ name: string;
6942
+ type: string;
6943
+ id: string;
6944
+ createdAt: Date;
6945
+ updatedAt: Date;
6946
+ deletedAt: Date | null;
6947
+ isActive: boolean;
6948
+ }>;
6925
6949
  editedMessageid: z.ZodString;
6926
- fromMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6950
+ label: z.ZodOptional<z.ZodString>;
6951
+ }>, {
6952
+ fromMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
6927
6953
  id: z.ZodString;
6928
6954
  createdAt: z.ZodDate;
6929
6955
  updatedAt: z.ZodDate;
6930
6956
  deletedAt: z.ZodNullable<z.ZodDate>;
6957
+ }, {
6931
6958
  message: z.ZodString;
6932
6959
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
6933
6960
  type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "edited", "deleted", "unsupported"]>;
@@ -6941,11 +6968,12 @@ export declare const telegramContract: {
6941
6968
  url: z.ZodString;
6942
6969
  previewUrl: z.ZodString;
6943
6970
  imageSetId: z.ZodString;
6944
- room: z.ZodObject<{
6971
+ room: z.ZodObject<z.objectUtil.extendShape<{
6945
6972
  id: z.ZodString;
6946
6973
  createdAt: z.ZodDate;
6947
6974
  updatedAt: z.ZodDate;
6948
6975
  deletedAt: z.ZodNullable<z.ZodDate>;
6976
+ }, {
6949
6977
  lastMessage: z.ZodString;
6950
6978
  handleTime: z.ZodNumber;
6951
6979
  closedAt: z.ZodDate;
@@ -6992,13 +7020,14 @@ export declare const telegramContract: {
6992
7020
  notes: z.ZodNullable<z.ZodString>;
6993
7021
  contactProfile: z.ZodNullable<z.ZodString>;
6994
7022
  socialProfileUrl: z.ZodNullable<z.ZodString>;
6995
- tags: z.ZodArray<z.ZodObject<{
7023
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
6996
7024
  id: z.ZodString;
6997
7025
  createdAt: z.ZodDate;
6998
7026
  updatedAt: z.ZodDate;
6999
7027
  deletedAt: z.ZodNullable<z.ZodDate>;
7028
+ }, {
7000
7029
  name: z.ZodString;
7001
- }, "strip", z.ZodTypeAny, {
7030
+ }>, "strip", z.ZodTypeAny, {
7002
7031
  name: string;
7003
7032
  id: string;
7004
7033
  createdAt: Date;
@@ -7011,29 +7040,32 @@ export declare const telegramContract: {
7011
7040
  updatedAt: Date;
7012
7041
  deletedAt: Date | null;
7013
7042
  }>, "many">;
7014
- company: z.ZodNullable<z.ZodObject<Omit<{
7043
+ company: z.ZodNullable<z.ZodObject<Omit<z.objectUtil.extendShape<{
7015
7044
  id: z.ZodString;
7016
7045
  createdAt: z.ZodDate;
7017
7046
  updatedAt: z.ZodDate;
7018
7047
  deletedAt: z.ZodNullable<z.ZodDate>;
7048
+ }, {
7019
7049
  name: z.ZodOptional<z.ZodString>;
7020
7050
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7021
7051
  address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7022
7052
  industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7023
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
7053
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
7024
7054
  id: z.ZodString;
7025
7055
  createdAt: z.ZodDate;
7026
7056
  updatedAt: z.ZodDate;
7027
7057
  deletedAt: z.ZodNullable<z.ZodDate>;
7058
+ }, {
7028
7059
  textValue: z.ZodNullable<z.ZodString>;
7029
7060
  booleanValue: z.ZodNullable<z.ZodBoolean>;
7030
7061
  numberValue: z.ZodNullable<z.ZodNumber>;
7031
7062
  dateValue: z.ZodNullable<z.ZodDate>;
7032
- attribute: z.ZodObject<Omit<{
7063
+ attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
7033
7064
  id: z.ZodString;
7034
7065
  createdAt: z.ZodDate;
7035
7066
  updatedAt: z.ZodDate;
7036
7067
  deletedAt: z.ZodNullable<z.ZodDate>;
7068
+ }, {
7037
7069
  systemName: z.ZodString;
7038
7070
  displayName: z.ZodString;
7039
7071
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -7042,13 +7074,14 @@ export declare const telegramContract: {
7042
7074
  isArchived: z.ZodBoolean;
7043
7075
  isRequired: z.ZodBoolean;
7044
7076
  isUnique: z.ZodBoolean;
7045
- options: z.ZodArray<z.ZodObject<{
7046
- position: z.ZodNumber;
7047
- value: z.ZodString;
7077
+ options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
7048
7078
  label: z.ZodString;
7079
+ value: z.ZodString;
7049
7080
  isDefault: z.ZodBoolean;
7081
+ position: z.ZodNumber;
7082
+ }, {
7050
7083
  id: z.ZodString;
7051
- }, "strip", z.ZodTypeAny, {
7084
+ }>, "strip", z.ZodTypeAny, {
7052
7085
  id: string;
7053
7086
  position: number;
7054
7087
  value: string;
@@ -7061,14 +7094,15 @@ export declare const telegramContract: {
7061
7094
  label: string;
7062
7095
  isDefault: boolean;
7063
7096
  }>, "many">;
7064
- group: z.ZodObject<{
7097
+ group: z.ZodObject<z.objectUtil.extendShape<{
7065
7098
  id: z.ZodString;
7066
7099
  createdAt: z.ZodDate;
7067
7100
  updatedAt: z.ZodDate;
7068
7101
  deletedAt: z.ZodNullable<z.ZodDate>;
7102
+ }, {
7069
7103
  systemName: z.ZodString;
7070
7104
  displayName: z.ZodString;
7071
- }, "strip", z.ZodTypeAny, {
7105
+ }>, "strip", z.ZodTypeAny, {
7072
7106
  id: string;
7073
7107
  createdAt: Date;
7074
7108
  updatedAt: Date;
@@ -7083,7 +7117,7 @@ export declare const telegramContract: {
7083
7117
  systemName: string;
7084
7118
  displayName: string;
7085
7119
  }>;
7086
- }, "options" | "group">, "strip", z.ZodTypeAny, {
7120
+ }>, "options" | "group">, "strip", z.ZodTypeAny, {
7087
7121
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7088
7122
  id: string;
7089
7123
  position: number;
@@ -7110,7 +7144,7 @@ export declare const telegramContract: {
7110
7144
  isRequired: boolean;
7111
7145
  isUnique: boolean;
7112
7146
  }>;
7113
- }, "strip", z.ZodTypeAny, {
7147
+ }>, "strip", z.ZodTypeAny, {
7114
7148
  id: string;
7115
7149
  createdAt: Date;
7116
7150
  updatedAt: Date;
@@ -7157,7 +7191,7 @@ export declare const telegramContract: {
7157
7191
  numberValue: number | null;
7158
7192
  dateValue: Date | null;
7159
7193
  }>, "many">>;
7160
- }, "customFields">, "strip", z.ZodTypeAny, {
7194
+ }>, "customFields">, "strip", z.ZodTypeAny, {
7161
7195
  id: string;
7162
7196
  createdAt: Date;
7163
7197
  updatedAt: Date;
@@ -7238,11 +7272,12 @@ export declare const telegramContract: {
7238
7272
  booleanValue: z.ZodNullable<z.ZodBoolean>;
7239
7273
  numberValue: z.ZodNullable<z.ZodNumber>;
7240
7274
  dateValue: z.ZodNullable<z.ZodDate>;
7241
- attribute: z.ZodObject<Omit<{
7275
+ attribute: z.ZodObject<Omit<z.objectUtil.extendShape<{
7242
7276
  id: z.ZodString;
7243
7277
  createdAt: z.ZodDate;
7244
7278
  updatedAt: z.ZodDate;
7245
7279
  deletedAt: z.ZodNullable<z.ZodDate>;
7280
+ }, {
7246
7281
  systemName: z.ZodString;
7247
7282
  displayName: z.ZodString;
7248
7283
  type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
@@ -7251,13 +7286,14 @@ export declare const telegramContract: {
7251
7286
  isArchived: z.ZodBoolean;
7252
7287
  isRequired: z.ZodBoolean;
7253
7288
  isUnique: z.ZodBoolean;
7254
- options: z.ZodArray<z.ZodObject<{
7255
- position: z.ZodNumber;
7256
- value: z.ZodString;
7289
+ options: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
7257
7290
  label: z.ZodString;
7291
+ value: z.ZodString;
7258
7292
  isDefault: z.ZodBoolean;
7293
+ position: z.ZodNumber;
7294
+ }, {
7259
7295
  id: z.ZodString;
7260
- }, "strip", z.ZodTypeAny, {
7296
+ }>, "strip", z.ZodTypeAny, {
7261
7297
  id: string;
7262
7298
  position: number;
7263
7299
  value: string;
@@ -7270,14 +7306,15 @@ export declare const telegramContract: {
7270
7306
  label: string;
7271
7307
  isDefault: boolean;
7272
7308
  }>, "many">;
7273
- group: z.ZodObject<{
7309
+ group: z.ZodObject<z.objectUtil.extendShape<{
7274
7310
  id: z.ZodString;
7275
7311
  createdAt: z.ZodDate;
7276
7312
  updatedAt: z.ZodDate;
7277
7313
  deletedAt: z.ZodNullable<z.ZodDate>;
7314
+ }, {
7278
7315
  systemName: z.ZodString;
7279
7316
  displayName: z.ZodString;
7280
- }, "strip", z.ZodTypeAny, {
7317
+ }>, "strip", z.ZodTypeAny, {
7281
7318
  id: string;
7282
7319
  createdAt: Date;
7283
7320
  updatedAt: Date;
@@ -7292,7 +7329,7 @@ export declare const telegramContract: {
7292
7329
  systemName: string;
7293
7330
  displayName: string;
7294
7331
  }>;
7295
- }, "options" | "group">, "strip", z.ZodTypeAny, {
7332
+ }>, "options" | "group">, "strip", z.ZodTypeAny, {
7296
7333
  type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7297
7334
  id: string;
7298
7335
  position: number;
@@ -7319,18 +7356,19 @@ export declare const telegramContract: {
7319
7356
  isRequired: boolean;
7320
7357
  isUnique: boolean;
7321
7358
  }>;
7322
- uploads: z.ZodArray<z.ZodObject<{
7359
+ uploads: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
7323
7360
  id: z.ZodString;
7324
7361
  createdAt: z.ZodDate;
7325
7362
  updatedAt: z.ZodDate;
7326
7363
  deletedAt: z.ZodNullable<z.ZodDate>;
7364
+ }, {
7327
7365
  bucketName: z.ZodString;
7328
7366
  fileName: z.ZodString;
7329
7367
  fileSize: z.ZodNumber;
7330
7368
  fileKey: z.ZodString;
7331
7369
  fileUrl: z.ZodNullable<z.ZodString>;
7332
7370
  status: z.ZodNullable<z.ZodString>;
7333
- }, "strip", z.ZodTypeAny, {
7371
+ }>, "strip", z.ZodTypeAny, {
7334
7372
  id: string;
7335
7373
  status: string | null;
7336
7374
  createdAt: Date;
@@ -8439,19 +8477,19 @@ export declare const telegramContract: {
8439
8477
  email: string;
8440
8478
  wabaExternalId: string;
8441
8479
  phoneNumberId: string;
8480
+ status?: "active" | "pending" | undefined;
8481
+ channelId?: string | undefined;
8442
8482
  wabaBusinessId?: string | undefined;
8443
8483
  clientId?: string | undefined;
8444
- channelId?: string | undefined;
8445
- status?: "active" | "pending" | undefined;
8446
8484
  apiKey?: string | undefined;
8447
8485
  }, {
8448
8486
  email: string;
8449
8487
  wabaExternalId: string;
8450
8488
  phoneNumberId: string;
8489
+ status?: "active" | "pending" | undefined;
8490
+ channelId?: string | undefined;
8451
8491
  wabaBusinessId?: string | undefined;
8452
8492
  clientId?: string | undefined;
8453
- channelId?: string | undefined;
8454
- status?: "active" | "pending" | undefined;
8455
8493
  apiKey?: string | undefined;
8456
8494
  }>>;
8457
8495
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -8473,19 +8511,19 @@ export declare const telegramContract: {
8473
8511
  name: string;
8474
8512
  id: string;
8475
8513
  accessToken?: string | undefined;
8476
- channelSecret?: string | undefined;
8477
- additionalCredentials?: any;
8478
- senderId?: string | undefined;
8479
8514
  whatsapp?: {
8480
8515
  email: string;
8481
8516
  wabaExternalId: string;
8482
8517
  phoneNumberId: string;
8518
+ status?: "active" | "pending" | undefined;
8519
+ channelId?: string | undefined;
8483
8520
  wabaBusinessId?: string | undefined;
8484
8521
  clientId?: string | undefined;
8485
- channelId?: string | undefined;
8486
- status?: "active" | "pending" | undefined;
8487
8522
  apiKey?: string | undefined;
8488
8523
  } | undefined;
8524
+ additionalCredentials?: any;
8525
+ channelSecret?: string | undefined;
8526
+ senderId?: string | undefined;
8489
8527
  vonageCredentials?: {
8490
8528
  apiKey: string;
8491
8529
  mobileNumber: string;
@@ -8497,19 +8535,19 @@ export declare const telegramContract: {
8497
8535
  name: string;
8498
8536
  id: string;
8499
8537
  accessToken?: string | undefined;
8500
- channelSecret?: string | undefined;
8501
- additionalCredentials?: any;
8502
- senderId?: string | undefined;
8503
8538
  whatsapp?: {
8504
8539
  email: string;
8505
8540
  wabaExternalId: string;
8506
8541
  phoneNumberId: string;
8542
+ status?: "active" | "pending" | undefined;
8543
+ channelId?: string | undefined;
8507
8544
  wabaBusinessId?: string | undefined;
8508
8545
  clientId?: string | undefined;
8509
- channelId?: string | undefined;
8510
- status?: "active" | "pending" | undefined;
8511
8546
  apiKey?: string | undefined;
8512
8547
  } | undefined;
8548
+ additionalCredentials?: any;
8549
+ channelSecret?: string | undefined;
8550
+ senderId?: string | undefined;
8513
8551
  vonageCredentials?: {
8514
8552
  apiKey: string;
8515
8553
  mobileNumber: string;
@@ -8755,19 +8793,19 @@ export declare const telegramContract: {
8755
8793
  name: string;
8756
8794
  id: string;
8757
8795
  accessToken?: string | undefined;
8758
- channelSecret?: string | undefined;
8759
- additionalCredentials?: any;
8760
- senderId?: string | undefined;
8761
8796
  whatsapp?: {
8762
8797
  email: string;
8763
8798
  wabaExternalId: string;
8764
8799
  phoneNumberId: string;
8800
+ status?: "active" | "pending" | undefined;
8801
+ channelId?: string | undefined;
8765
8802
  wabaBusinessId?: string | undefined;
8766
8803
  clientId?: string | undefined;
8767
- channelId?: string | undefined;
8768
- status?: "active" | "pending" | undefined;
8769
8804
  apiKey?: string | undefined;
8770
8805
  } | undefined;
8806
+ additionalCredentials?: any;
8807
+ channelSecret?: string | undefined;
8808
+ senderId?: string | undefined;
8771
8809
  vonageCredentials?: {
8772
8810
  apiKey: string;
8773
8811
  mobileNumber: string;
@@ -8844,19 +8882,19 @@ export declare const telegramContract: {
8844
8882
  name: string;
8845
8883
  id: string;
8846
8884
  accessToken?: string | undefined;
8847
- channelSecret?: string | undefined;
8848
- additionalCredentials?: any;
8849
- senderId?: string | undefined;
8850
8885
  whatsapp?: {
8851
8886
  email: string;
8852
8887
  wabaExternalId: string;
8853
8888
  phoneNumberId: string;
8889
+ status?: "active" | "pending" | undefined;
8890
+ channelId?: string | undefined;
8854
8891
  wabaBusinessId?: string | undefined;
8855
8892
  clientId?: string | undefined;
8856
- channelId?: string | undefined;
8857
- status?: "active" | "pending" | undefined;
8858
8893
  apiKey?: string | undefined;
8859
8894
  } | undefined;
8895
+ additionalCredentials?: any;
8896
+ channelSecret?: string | undefined;
8897
+ senderId?: string | undefined;
8860
8898
  vonageCredentials?: {
8861
8899
  apiKey: string;
8862
8900
  mobileNumber: string;
@@ -8926,11 +8964,12 @@ export declare const telegramContract: {
8926
8964
  integrationId: string;
8927
8965
  } | null;
8928
8966
  }>;
8929
- cxlog: z.ZodObject<{
8967
+ cxlog: z.ZodObject<z.objectUtil.extendShape<{
8930
8968
  id: z.ZodString;
8931
8969
  createdAt: z.ZodDate;
8932
8970
  updatedAt: z.ZodDate;
8933
8971
  deletedAt: z.ZodNullable<z.ZodDate>;
8972
+ }, {
8934
8973
  caseId: z.ZodNumber;
8935
8974
  entityId: z.ZodString;
8936
8975
  entityName: z.ZodString;
@@ -8942,21 +8981,23 @@ export declare const telegramContract: {
8942
8981
  startedDate: z.ZodNullable<z.ZodDate>;
8943
8982
  handledTime: z.ZodNullable<z.ZodNumber>;
8944
8983
  firstResponseTime: z.ZodNullable<z.ZodNumber>;
8945
- wrapUpForm: z.ZodNullable<z.ZodObject<{
8984
+ wrapUpForm: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
8946
8985
  id: z.ZodString;
8947
8986
  createdAt: z.ZodDate;
8948
8987
  updatedAt: z.ZodDate;
8949
8988
  deletedAt: z.ZodNullable<z.ZodDate>;
8989
+ }, {
8950
8990
  note: z.ZodNullable<z.ZodString>;
8951
8991
  disposition: z.ZodNullable<z.ZodString>;
8952
8992
  type: z.ZodString;
8953
- tags: z.ZodArray<z.ZodObject<{
8993
+ tags: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
8954
8994
  id: z.ZodString;
8955
8995
  createdAt: z.ZodDate;
8956
8996
  updatedAt: z.ZodDate;
8957
8997
  deletedAt: z.ZodNullable<z.ZodDate>;
8998
+ }, {
8958
8999
  name: z.ZodString;
8959
- }, "strip", z.ZodTypeAny, {
9000
+ }>, "strip", z.ZodTypeAny, {
8960
9001
  name: string;
8961
9002
  id: string;
8962
9003
  createdAt: Date;
@@ -8969,11 +9010,12 @@ export declare const telegramContract: {
8969
9010
  updatedAt: Date;
8970
9011
  deletedAt: Date | null;
8971
9012
  }>, "many">;
8972
- categories: z.ZodArray<z.ZodObject<{
9013
+ categories: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
8973
9014
  id: z.ZodString;
8974
9015
  createdAt: z.ZodDate;
8975
9016
  updatedAt: z.ZodDate;
8976
9017
  deletedAt: z.ZodNullable<z.ZodDate>;
9018
+ }, {
8977
9019
  value: z.ZodString;
8978
9020
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
8979
9021
  parentId: z.ZodNullable<z.ZodString>;
@@ -9026,7 +9068,7 @@ export declare const telegramContract: {
9026
9068
  childCategoryList: any[];
9027
9069
  }[];
9028
9070
  }>, "many">;
9029
- }, "strip", z.ZodTypeAny, {
9071
+ }>, "strip", z.ZodTypeAny, {
9030
9072
  id: string;
9031
9073
  value: string;
9032
9074
  createdAt: Date;
@@ -9105,7 +9147,7 @@ export declare const telegramContract: {
9105
9147
  numberValue: number | null;
9106
9148
  dateValue: Date | null;
9107
9149
  }>, "many">>>;
9108
- }, "strip", z.ZodTypeAny, {
9150
+ }>, "strip", z.ZodTypeAny, {
9109
9151
  type: string;
9110
9152
  id: string;
9111
9153
  disposition: string | null;
@@ -9208,7 +9250,7 @@ export declare const telegramContract: {
9208
9250
  dateValue: Date | null;
9209
9251
  }[] | null | undefined;
9210
9252
  }>>;
9211
- }, "strip", z.ZodTypeAny, {
9253
+ }>, "strip", z.ZodTypeAny, {
9212
9254
  id: string;
9213
9255
  channel: string | null;
9214
9256
  direction: string | null;
@@ -9345,15 +9387,16 @@ export declare const telegramContract: {
9345
9387
  }[] | null | undefined;
9346
9388
  } | null;
9347
9389
  }>;
9348
- workflowRule: z.ZodObject<{
9390
+ workflowRule: z.ZodObject<z.objectUtil.extendShape<{
9349
9391
  id: z.ZodString;
9350
9392
  createdAt: z.ZodDate;
9351
9393
  updatedAt: z.ZodDate;
9352
9394
  deletedAt: z.ZodNullable<z.ZodDate>;
9395
+ }, {
9353
9396
  name: z.ZodString;
9354
9397
  isActive: z.ZodBoolean;
9355
9398
  type: z.ZodString;
9356
- }, "strip", z.ZodTypeAny, {
9399
+ }>, "strip", z.ZodTypeAny, {
9357
9400
  name: string;
9358
9401
  type: string;
9359
9402
  id: string;
@@ -9371,7 +9414,7 @@ export declare const telegramContract: {
9371
9414
  isActive: boolean;
9372
9415
  }>;
9373
9416
  automationQueueId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9374
- }, "strip", z.ZodTypeAny, {
9417
+ }>, "strip", z.ZodTypeAny, {
9375
9418
  id: string;
9376
9419
  channel: {
9377
9420
  name: string;
@@ -9381,19 +9424,19 @@ export declare const telegramContract: {
9381
9424
  name: string;
9382
9425
  id: string;
9383
9426
  accessToken?: string | undefined;
9384
- channelSecret?: string | undefined;
9385
- additionalCredentials?: any;
9386
- senderId?: string | undefined;
9387
9427
  whatsapp?: {
9388
9428
  email: string;
9389
9429
  wabaExternalId: string;
9390
9430
  phoneNumberId: string;
9431
+ status?: "active" | "pending" | undefined;
9432
+ channelId?: string | undefined;
9391
9433
  wabaBusinessId?: string | undefined;
9392
9434
  clientId?: string | undefined;
9393
- channelId?: string | undefined;
9394
- status?: "active" | "pending" | undefined;
9395
9435
  apiKey?: string | undefined;
9396
9436
  } | undefined;
9437
+ additionalCredentials?: any;
9438
+ channelSecret?: string | undefined;
9439
+ senderId?: string | undefined;
9397
9440
  vonageCredentials?: {
9398
9441
  apiKey: string;
9399
9442
  mobileNumber: string;
@@ -9781,19 +9824,19 @@ export declare const telegramContract: {
9781
9824
  name: string;
9782
9825
  id: string;
9783
9826
  accessToken?: string | undefined;
9784
- channelSecret?: string | undefined;
9785
- additionalCredentials?: any;
9786
- senderId?: string | undefined;
9787
9827
  whatsapp?: {
9788
9828
  email: string;
9789
9829
  wabaExternalId: string;
9790
9830
  phoneNumberId: string;
9831
+ status?: "active" | "pending" | undefined;
9832
+ channelId?: string | undefined;
9791
9833
  wabaBusinessId?: string | undefined;
9792
9834
  clientId?: string | undefined;
9793
- channelId?: string | undefined;
9794
- status?: "active" | "pending" | undefined;
9795
9835
  apiKey?: string | undefined;
9796
9836
  } | undefined;
9837
+ additionalCredentials?: any;
9838
+ channelSecret?: string | undefined;
9839
+ senderId?: string | undefined;
9797
9840
  vonageCredentials?: {
9798
9841
  apiKey: string;
9799
9842
  mobileNumber: string;
@@ -10172,18 +10215,19 @@ export declare const telegramContract: {
10172
10215
  };
10173
10216
  automationQueueId?: string | null | undefined;
10174
10217
  }>;
10175
- upload: z.ZodObject<{
10218
+ upload: z.ZodObject<z.objectUtil.extendShape<{
10176
10219
  id: z.ZodString;
10177
10220
  createdAt: z.ZodDate;
10178
10221
  updatedAt: z.ZodDate;
10179
10222
  deletedAt: z.ZodNullable<z.ZodDate>;
10223
+ }, {
10180
10224
  bucketName: z.ZodString;
10181
10225
  fileName: z.ZodString;
10182
10226
  fileSize: z.ZodNumber;
10183
10227
  fileKey: z.ZodString;
10184
10228
  fileUrl: z.ZodNullable<z.ZodString>;
10185
10229
  status: z.ZodNullable<z.ZodString>;
10186
- }, "strip", z.ZodTypeAny, {
10230
+ }>, "strip", z.ZodTypeAny, {
10187
10231
  id: string;
10188
10232
  status: string | null;
10189
10233
  createdAt: Date;
@@ -10206,11 +10250,12 @@ export declare const telegramContract: {
10206
10250
  fileSize: number;
10207
10251
  fileUrl: string | null;
10208
10252
  }>;
10209
- repliedMessage: z.ZodLazy<z.ZodObject<{
10253
+ repliedMessage: z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
10210
10254
  id: z.ZodString;
10211
10255
  createdAt: z.ZodDate;
10212
10256
  updatedAt: z.ZodDate;
10213
10257
  deletedAt: z.ZodNullable<z.ZodDate>;
10258
+ }, {
10214
10259
  message: z.ZodString;
10215
10260
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
10216
10261
  type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "text_with_image", "reaction", "contacts", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "edited", "deleted", "unsupported"]>;
@@ -10224,18 +10269,19 @@ export declare const telegramContract: {
10224
10269
  url: z.ZodString;
10225
10270
  previewUrl: z.ZodString;
10226
10271
  imageSetId: z.ZodString;
10227
- upload: z.ZodObject<{
10272
+ upload: z.ZodObject<z.objectUtil.extendShape<{
10228
10273
  id: z.ZodString;
10229
10274
  createdAt: z.ZodDate;
10230
10275
  updatedAt: z.ZodDate;
10231
10276
  deletedAt: z.ZodNullable<z.ZodDate>;
10277
+ }, {
10232
10278
  bucketName: z.ZodString;
10233
10279
  fileName: z.ZodString;
10234
10280
  fileSize: z.ZodNumber;
10235
10281
  fileKey: z.ZodString;
10236
10282
  fileUrl: z.ZodNullable<z.ZodString>;
10237
10283
  status: z.ZodNullable<z.ZodString>;
10238
- }, "strip", z.ZodTypeAny, {
10284
+ }>, "strip", z.ZodTypeAny, {
10239
10285
  id: string;
10240
10286
  status: string | null;
10241
10287
  createdAt: Date;
@@ -10870,7 +10916,7 @@ export declare const telegramContract: {
10870
10916
  telephonySignature: string | null;
10871
10917
  };
10872
10918
  }>;
10873
- }, "strip", z.ZodTypeAny, {
10919
+ }>, "strip", z.ZodTypeAny, {
10874
10920
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
10875
10921
  message: string;
10876
10922
  id: string;
@@ -11030,8 +11076,8 @@ export declare const telegramContract: {
11030
11076
  telephonySignature: string | null;
11031
11077
  };
11032
11078
  };
11033
- metadata?: any;
11034
11079
  template?: any;
11080
+ metadata?: any;
11035
11081
  }, {
11036
11082
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
11037
11083
  message: string;
@@ -11192,8 +11238,8 @@ export declare const telegramContract: {
11192
11238
  telephonySignature: string | null;
11193
11239
  };
11194
11240
  };
11195
- metadata?: any;
11196
11241
  template?: any;
11242
+ metadata?: any;
11197
11243
  }>>;
11198
11244
  actor: z.ZodObject<{
11199
11245
  id: z.ZodString;
@@ -11807,15 +11853,16 @@ export declare const telegramContract: {
11807
11853
  telephonySignature: string | null;
11808
11854
  };
11809
11855
  }>;
11810
- workflowRule: z.ZodObject<{
11856
+ workflowRule: z.ZodObject<z.objectUtil.extendShape<{
11811
11857
  id: z.ZodString;
11812
11858
  createdAt: z.ZodDate;
11813
11859
  updatedAt: z.ZodDate;
11814
11860
  deletedAt: z.ZodNullable<z.ZodDate>;
11861
+ }, {
11815
11862
  name: z.ZodString;
11816
11863
  isActive: z.ZodBoolean;
11817
11864
  type: z.ZodString;
11818
- }, "strip", z.ZodTypeAny, {
11865
+ }>, "strip", z.ZodTypeAny, {
11819
11866
  name: string;
11820
11867
  type: string;
11821
11868
  id: string;
@@ -11834,7 +11881,7 @@ export declare const telegramContract: {
11834
11881
  }>;
11835
11882
  editedMessageid: z.ZodString;
11836
11883
  label: z.ZodOptional<z.ZodString>;
11837
- }, "strip", z.ZodTypeAny, {
11884
+ }>, "strip", z.ZodTypeAny, {
11838
11885
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
11839
11886
  message: string;
11840
11887
  id: string;
@@ -11954,19 +12001,19 @@ export declare const telegramContract: {
11954
12001
  name: string;
11955
12002
  id: string;
11956
12003
  accessToken?: string | undefined;
11957
- channelSecret?: string | undefined;
11958
- additionalCredentials?: any;
11959
- senderId?: string | undefined;
11960
12004
  whatsapp?: {
11961
12005
  email: string;
11962
12006
  wabaExternalId: string;
11963
12007
  phoneNumberId: string;
12008
+ status?: "active" | "pending" | undefined;
12009
+ channelId?: string | undefined;
11964
12010
  wabaBusinessId?: string | undefined;
11965
12011
  clientId?: string | undefined;
11966
- channelId?: string | undefined;
11967
- status?: "active" | "pending" | undefined;
11968
12012
  apiKey?: string | undefined;
11969
12013
  } | undefined;
12014
+ additionalCredentials?: any;
12015
+ channelSecret?: string | undefined;
12016
+ senderId?: string | undefined;
11970
12017
  vonageCredentials?: {
11971
12018
  apiKey: string;
11972
12019
  mobileNumber: string;
@@ -12520,8 +12567,8 @@ export declare const telegramContract: {
12520
12567
  telephonySignature: string | null;
12521
12568
  };
12522
12569
  };
12523
- metadata?: any;
12524
12570
  template?: any;
12571
+ metadata?: any;
12525
12572
  };
12526
12573
  sender: {
12527
12574
  name: string;
@@ -12568,9 +12615,9 @@ export declare const telegramContract: {
12568
12615
  };
12569
12616
  };
12570
12617
  editedMessageid: string;
12571
- metadata?: any;
12572
- template?: any;
12573
12618
  label?: string | undefined;
12619
+ template?: any;
12620
+ metadata?: any;
12574
12621
  }, {
12575
12622
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
12576
12623
  message: string;
@@ -12691,19 +12738,19 @@ export declare const telegramContract: {
12691
12738
  name: string;
12692
12739
  id: string;
12693
12740
  accessToken?: string | undefined;
12694
- channelSecret?: string | undefined;
12695
- additionalCredentials?: any;
12696
- senderId?: string | undefined;
12697
12741
  whatsapp?: {
12698
12742
  email: string;
12699
12743
  wabaExternalId: string;
12700
12744
  phoneNumberId: string;
12745
+ status?: "active" | "pending" | undefined;
12746
+ channelId?: string | undefined;
12701
12747
  wabaBusinessId?: string | undefined;
12702
12748
  clientId?: string | undefined;
12703
- channelId?: string | undefined;
12704
- status?: "active" | "pending" | undefined;
12705
12749
  apiKey?: string | undefined;
12706
12750
  } | undefined;
12751
+ additionalCredentials?: any;
12752
+ channelSecret?: string | undefined;
12753
+ senderId?: string | undefined;
12707
12754
  vonageCredentials?: {
12708
12755
  apiKey: string;
12709
12756
  mobileNumber: string;
@@ -13257,8 +13304,8 @@ export declare const telegramContract: {
13257
13304
  telephonySignature: string | null;
13258
13305
  };
13259
13306
  };
13260
- metadata?: any;
13261
13307
  template?: any;
13308
+ metadata?: any;
13262
13309
  };
13263
13310
  sender: {
13264
13311
  name: string;
@@ -13305,11 +13352,11 @@ export declare const telegramContract: {
13305
13352
  };
13306
13353
  };
13307
13354
  editedMessageid: string;
13308
- metadata?: any;
13309
- template?: any;
13310
13355
  label?: string | undefined;
13356
+ template?: any;
13357
+ metadata?: any;
13311
13358
  }>>>;
13312
- }, "strip", z.ZodTypeAny, {
13359
+ }>, "strip", z.ZodTypeAny, {
13313
13360
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
13314
13361
  message: string;
13315
13362
  id: string;
@@ -13429,19 +13476,19 @@ export declare const telegramContract: {
13429
13476
  name: string;
13430
13477
  id: string;
13431
13478
  accessToken?: string | undefined;
13432
- channelSecret?: string | undefined;
13433
- additionalCredentials?: any;
13434
- senderId?: string | undefined;
13435
13479
  whatsapp?: {
13436
13480
  email: string;
13437
13481
  wabaExternalId: string;
13438
13482
  phoneNumberId: string;
13483
+ status?: "active" | "pending" | undefined;
13484
+ channelId?: string | undefined;
13439
13485
  wabaBusinessId?: string | undefined;
13440
13486
  clientId?: string | undefined;
13441
- channelId?: string | undefined;
13442
- status?: "active" | "pending" | undefined;
13443
13487
  apiKey?: string | undefined;
13444
13488
  } | undefined;
13489
+ additionalCredentials?: any;
13490
+ channelSecret?: string | undefined;
13491
+ senderId?: string | undefined;
13445
13492
  vonageCredentials?: {
13446
13493
  apiKey: string;
13447
13494
  mobileNumber: string;
@@ -13995,8 +14042,8 @@ export declare const telegramContract: {
13995
14042
  telephonySignature: string | null;
13996
14043
  };
13997
14044
  };
13998
- metadata?: any;
13999
14045
  template?: any;
14046
+ metadata?: any;
14000
14047
  };
14001
14048
  sender: {
14002
14049
  name: string;
@@ -14166,19 +14213,19 @@ export declare const telegramContract: {
14166
14213
  name: string;
14167
14214
  id: string;
14168
14215
  accessToken?: string | undefined;
14169
- channelSecret?: string | undefined;
14170
- additionalCredentials?: any;
14171
- senderId?: string | undefined;
14172
14216
  whatsapp?: {
14173
14217
  email: string;
14174
14218
  wabaExternalId: string;
14175
14219
  phoneNumberId: string;
14220
+ status?: "active" | "pending" | undefined;
14221
+ channelId?: string | undefined;
14176
14222
  wabaBusinessId?: string | undefined;
14177
14223
  clientId?: string | undefined;
14178
- channelId?: string | undefined;
14179
- status?: "active" | "pending" | undefined;
14180
14224
  apiKey?: string | undefined;
14181
14225
  } | undefined;
14226
+ additionalCredentials?: any;
14227
+ channelSecret?: string | undefined;
14228
+ senderId?: string | undefined;
14182
14229
  vonageCredentials?: {
14183
14230
  apiKey: string;
14184
14231
  mobileNumber: string;
@@ -14732,8 +14779,8 @@ export declare const telegramContract: {
14732
14779
  telephonySignature: string | null;
14733
14780
  };
14734
14781
  };
14735
- metadata?: any;
14736
14782
  template?: any;
14783
+ metadata?: any;
14737
14784
  };
14738
14785
  sender: {
14739
14786
  name: string;
@@ -14780,9 +14827,9 @@ export declare const telegramContract: {
14780
14827
  };
14781
14828
  };
14782
14829
  editedMessageid: string;
14783
- metadata?: any;
14784
- template?: any;
14785
14830
  label?: string | undefined;
14831
+ template?: any;
14832
+ metadata?: any;
14786
14833
  } | null | undefined;
14787
14834
  }, {
14788
14835
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
@@ -14904,19 +14951,19 @@ export declare const telegramContract: {
14904
14951
  name: string;
14905
14952
  id: string;
14906
14953
  accessToken?: string | undefined;
14907
- channelSecret?: string | undefined;
14908
- additionalCredentials?: any;
14909
- senderId?: string | undefined;
14910
14954
  whatsapp?: {
14911
14955
  email: string;
14912
14956
  wabaExternalId: string;
14913
14957
  phoneNumberId: string;
14958
+ status?: "active" | "pending" | undefined;
14959
+ channelId?: string | undefined;
14914
14960
  wabaBusinessId?: string | undefined;
14915
14961
  clientId?: string | undefined;
14916
- channelId?: string | undefined;
14917
- status?: "active" | "pending" | undefined;
14918
14962
  apiKey?: string | undefined;
14919
14963
  } | undefined;
14964
+ additionalCredentials?: any;
14965
+ channelSecret?: string | undefined;
14966
+ senderId?: string | undefined;
14920
14967
  vonageCredentials?: {
14921
14968
  apiKey: string;
14922
14969
  mobileNumber: string;
@@ -15470,8 +15517,8 @@ export declare const telegramContract: {
15470
15517
  telephonySignature: string | null;
15471
15518
  };
15472
15519
  };
15473
- metadata?: any;
15474
15520
  template?: any;
15521
+ metadata?: any;
15475
15522
  };
15476
15523
  sender: {
15477
15524
  name: string;
@@ -15641,19 +15688,19 @@ export declare const telegramContract: {
15641
15688
  name: string;
15642
15689
  id: string;
15643
15690
  accessToken?: string | undefined;
15644
- channelSecret?: string | undefined;
15645
- additionalCredentials?: any;
15646
- senderId?: string | undefined;
15647
15691
  whatsapp?: {
15648
15692
  email: string;
15649
15693
  wabaExternalId: string;
15650
15694
  phoneNumberId: string;
15695
+ status?: "active" | "pending" | undefined;
15696
+ channelId?: string | undefined;
15651
15697
  wabaBusinessId?: string | undefined;
15652
15698
  clientId?: string | undefined;
15653
- channelId?: string | undefined;
15654
- status?: "active" | "pending" | undefined;
15655
15699
  apiKey?: string | undefined;
15656
15700
  } | undefined;
15701
+ additionalCredentials?: any;
15702
+ channelSecret?: string | undefined;
15703
+ senderId?: string | undefined;
15657
15704
  vonageCredentials?: {
15658
15705
  apiKey: string;
15659
15706
  mobileNumber: string;
@@ -16207,8 +16254,8 @@ export declare const telegramContract: {
16207
16254
  telephonySignature: string | null;
16208
16255
  };
16209
16256
  };
16210
- metadata?: any;
16211
16257
  template?: any;
16258
+ metadata?: any;
16212
16259
  };
16213
16260
  sender: {
16214
16261
  name: string;
@@ -16255,12 +16302,12 @@ export declare const telegramContract: {
16255
16302
  };
16256
16303
  };
16257
16304
  editedMessageid: string;
16258
- metadata?: any;
16259
- template?: any;
16260
16305
  label?: string | undefined;
16306
+ template?: any;
16307
+ metadata?: any;
16261
16308
  } | null | undefined;
16262
16309
  }>;
16263
- }, "strip", z.ZodTypeAny, {
16310
+ }>, "strip", z.ZodTypeAny, {
16264
16311
  data: {
16265
16312
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "text_with_image" | "reaction" | "contacts" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "edited" | "deleted" | "unsupported";
16266
16313
  message: string;
@@ -16381,19 +16428,19 @@ export declare const telegramContract: {
16381
16428
  name: string;
16382
16429
  id: string;
16383
16430
  accessToken?: string | undefined;
16384
- channelSecret?: string | undefined;
16385
- additionalCredentials?: any;
16386
- senderId?: string | undefined;
16387
16431
  whatsapp?: {
16388
16432
  email: string;
16389
16433
  wabaExternalId: string;
16390
16434
  phoneNumberId: string;
16435
+ status?: "active" | "pending" | undefined;
16436
+ channelId?: string | undefined;
16391
16437
  wabaBusinessId?: string | undefined;
16392
16438
  clientId?: string | undefined;
16393
- channelId?: string | undefined;
16394
- status?: "active" | "pending" | undefined;
16395
16439
  apiKey?: string | undefined;
16396
16440
  } | undefined;
16441
+ additionalCredentials?: any;
16442
+ channelSecret?: string | undefined;
16443
+ senderId?: string | undefined;
16397
16444
  vonageCredentials?: {
16398
16445
  apiKey: string;
16399
16446
  mobileNumber: string;
@@ -16947,8 +16994,8 @@ export declare const telegramContract: {
16947
16994
  telephonySignature: string | null;
16948
16995
  };
16949
16996
  };
16950
- metadata?: any;
16951
16997
  template?: any;
16998
+ metadata?: any;
16952
16999
  };
16953
17000
  sender: {
16954
17001
  name: string;
@@ -17118,19 +17165,19 @@ export declare const telegramContract: {
17118
17165
  name: string;
17119
17166
  id: string;
17120
17167
  accessToken?: string | undefined;
17121
- channelSecret?: string | undefined;
17122
- additionalCredentials?: any;
17123
- senderId?: string | undefined;
17124
17168
  whatsapp?: {
17125
17169
  email: string;
17126
17170
  wabaExternalId: string;
17127
17171
  phoneNumberId: string;
17172
+ status?: "active" | "pending" | undefined;
17173
+ channelId?: string | undefined;
17128
17174
  wabaBusinessId?: string | undefined;
17129
17175
  clientId?: string | undefined;
17130
- channelId?: string | undefined;
17131
- status?: "active" | "pending" | undefined;
17132
17176
  apiKey?: string | undefined;
17133
17177
  } | undefined;
17178
+ additionalCredentials?: any;
17179
+ channelSecret?: string | undefined;
17180
+ senderId?: string | undefined;
17134
17181
  vonageCredentials?: {
17135
17182
  apiKey: string;
17136
17183
  mobileNumber: string;
@@ -17684,8 +17731,8 @@ export declare const telegramContract: {
17684
17731
  telephonySignature: string | null;
17685
17732
  };
17686
17733
  };
17687
- metadata?: any;
17688
17734
  template?: any;
17735
+ metadata?: any;
17689
17736
  };
17690
17737
  sender: {
17691
17738
  name: string;
@@ -17732,9 +17779,9 @@ export declare const telegramContract: {
17732
17779
  };
17733
17780
  };
17734
17781
  editedMessageid: string;
17735
- metadata?: any;
17736
- template?: any;
17737
17782
  label?: string | undefined;
17783
+ template?: any;
17784
+ metadata?: any;
17738
17785
  } | null | undefined;
17739
17786
  };
17740
17787
  requestId: string;
@@ -17859,19 +17906,19 @@ export declare const telegramContract: {
17859
17906
  name: string;
17860
17907
  id: string;
17861
17908
  accessToken?: string | undefined;
17862
- channelSecret?: string | undefined;
17863
- additionalCredentials?: any;
17864
- senderId?: string | undefined;
17865
17909
  whatsapp?: {
17866
17910
  email: string;
17867
17911
  wabaExternalId: string;
17868
17912
  phoneNumberId: string;
17913
+ status?: "active" | "pending" | undefined;
17914
+ channelId?: string | undefined;
17869
17915
  wabaBusinessId?: string | undefined;
17870
17916
  clientId?: string | undefined;
17871
- channelId?: string | undefined;
17872
- status?: "active" | "pending" | undefined;
17873
17917
  apiKey?: string | undefined;
17874
17918
  } | undefined;
17919
+ additionalCredentials?: any;
17920
+ channelSecret?: string | undefined;
17921
+ senderId?: string | undefined;
17875
17922
  vonageCredentials?: {
17876
17923
  apiKey: string;
17877
17924
  mobileNumber: string;
@@ -18425,8 +18472,8 @@ export declare const telegramContract: {
18425
18472
  telephonySignature: string | null;
18426
18473
  };
18427
18474
  };
18428
- metadata?: any;
18429
18475
  template?: any;
18476
+ metadata?: any;
18430
18477
  };
18431
18478
  sender: {
18432
18479
  name: string;
@@ -18596,19 +18643,19 @@ export declare const telegramContract: {
18596
18643
  name: string;
18597
18644
  id: string;
18598
18645
  accessToken?: string | undefined;
18599
- channelSecret?: string | undefined;
18600
- additionalCredentials?: any;
18601
- senderId?: string | undefined;
18602
18646
  whatsapp?: {
18603
18647
  email: string;
18604
18648
  wabaExternalId: string;
18605
18649
  phoneNumberId: string;
18650
+ status?: "active" | "pending" | undefined;
18651
+ channelId?: string | undefined;
18606
18652
  wabaBusinessId?: string | undefined;
18607
18653
  clientId?: string | undefined;
18608
- channelId?: string | undefined;
18609
- status?: "active" | "pending" | undefined;
18610
18654
  apiKey?: string | undefined;
18611
18655
  } | undefined;
18656
+ additionalCredentials?: any;
18657
+ channelSecret?: string | undefined;
18658
+ senderId?: string | undefined;
18612
18659
  vonageCredentials?: {
18613
18660
  apiKey: string;
18614
18661
  mobileNumber: string;
@@ -19162,8 +19209,8 @@ export declare const telegramContract: {
19162
19209
  telephonySignature: string | null;
19163
19210
  };
19164
19211
  };
19165
- metadata?: any;
19166
19212
  template?: any;
19213
+ metadata?: any;
19167
19214
  };
19168
19215
  sender: {
19169
19216
  name: string;
@@ -19210,9 +19257,9 @@ export declare const telegramContract: {
19210
19257
  };
19211
19258
  };
19212
19259
  editedMessageid: string;
19213
- metadata?: any;
19214
- template?: any;
19215
19260
  label?: string | undefined;
19261
+ template?: any;
19262
+ metadata?: any;
19216
19263
  } | null | undefined;
19217
19264
  };
19218
19265
  requestId: string;
@@ -19228,7 +19275,6 @@ export declare const telegramContract: {
19228
19275
  error?: any;
19229
19276
  }>;
19230
19277
  };
19231
- path: "/message";
19232
19278
  };
19233
19279
  reconnect: {
19234
19280
  body: null;
@@ -19241,9 +19287,11 @@ export declare const telegramContract: {
19241
19287
  }, {
19242
19288
  channelId: string;
19243
19289
  }>;
19290
+ path: "/reconnect/:channelId";
19244
19291
  responses: {
19245
- 200: z.ZodObject<{
19292
+ 200: z.ZodObject<z.objectUtil.extendShape<{
19246
19293
  requestId: z.ZodString;
19294
+ }, {
19247
19295
  data: z.ZodObject<{
19248
19296
  id: z.ZodString;
19249
19297
  name: z.ZodString;
@@ -19268,19 +19316,19 @@ export declare const telegramContract: {
19268
19316
  email: string;
19269
19317
  wabaExternalId: string;
19270
19318
  phoneNumberId: string;
19319
+ status?: "active" | "pending" | undefined;
19320
+ channelId?: string | undefined;
19271
19321
  wabaBusinessId?: string | undefined;
19272
19322
  clientId?: string | undefined;
19273
- channelId?: string | undefined;
19274
- status?: "active" | "pending" | undefined;
19275
19323
  apiKey?: string | undefined;
19276
19324
  }, {
19277
19325
  email: string;
19278
19326
  wabaExternalId: string;
19279
19327
  phoneNumberId: string;
19328
+ status?: "active" | "pending" | undefined;
19329
+ channelId?: string | undefined;
19280
19330
  wabaBusinessId?: string | undefined;
19281
19331
  clientId?: string | undefined;
19282
- channelId?: string | undefined;
19283
- status?: "active" | "pending" | undefined;
19284
19332
  apiKey?: string | undefined;
19285
19333
  }>>;
19286
19334
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -19302,19 +19350,19 @@ export declare const telegramContract: {
19302
19350
  name: string;
19303
19351
  id: string;
19304
19352
  accessToken?: string | undefined;
19305
- channelSecret?: string | undefined;
19306
- additionalCredentials?: any;
19307
- senderId?: string | undefined;
19308
19353
  whatsapp?: {
19309
19354
  email: string;
19310
19355
  wabaExternalId: string;
19311
19356
  phoneNumberId: string;
19357
+ status?: "active" | "pending" | undefined;
19358
+ channelId?: string | undefined;
19312
19359
  wabaBusinessId?: string | undefined;
19313
19360
  clientId?: string | undefined;
19314
- channelId?: string | undefined;
19315
- status?: "active" | "pending" | undefined;
19316
19361
  apiKey?: string | undefined;
19317
19362
  } | undefined;
19363
+ additionalCredentials?: any;
19364
+ channelSecret?: string | undefined;
19365
+ senderId?: string | undefined;
19318
19366
  vonageCredentials?: {
19319
19367
  apiKey: string;
19320
19368
  mobileNumber: string;
@@ -19326,19 +19374,19 @@ export declare const telegramContract: {
19326
19374
  name: string;
19327
19375
  id: string;
19328
19376
  accessToken?: string | undefined;
19329
- channelSecret?: string | undefined;
19330
- additionalCredentials?: any;
19331
- senderId?: string | undefined;
19332
19377
  whatsapp?: {
19333
19378
  email: string;
19334
19379
  wabaExternalId: string;
19335
19380
  phoneNumberId: string;
19381
+ status?: "active" | "pending" | undefined;
19382
+ channelId?: string | undefined;
19336
19383
  wabaBusinessId?: string | undefined;
19337
19384
  clientId?: string | undefined;
19338
- channelId?: string | undefined;
19339
- status?: "active" | "pending" | undefined;
19340
19385
  apiKey?: string | undefined;
19341
19386
  } | undefined;
19387
+ additionalCredentials?: any;
19388
+ channelSecret?: string | undefined;
19389
+ senderId?: string | undefined;
19342
19390
  vonageCredentials?: {
19343
19391
  apiKey: string;
19344
19392
  mobileNumber: string;
@@ -19380,19 +19428,19 @@ export declare const telegramContract: {
19380
19428
  name: string;
19381
19429
  id: string;
19382
19430
  accessToken?: string | undefined;
19383
- channelSecret?: string | undefined;
19384
- additionalCredentials?: any;
19385
- senderId?: string | undefined;
19386
19431
  whatsapp?: {
19387
19432
  email: string;
19388
19433
  wabaExternalId: string;
19389
19434
  phoneNumberId: string;
19435
+ status?: "active" | "pending" | undefined;
19436
+ channelId?: string | undefined;
19390
19437
  wabaBusinessId?: string | undefined;
19391
19438
  clientId?: string | undefined;
19392
- channelId?: string | undefined;
19393
- status?: "active" | "pending" | undefined;
19394
19439
  apiKey?: string | undefined;
19395
19440
  } | undefined;
19441
+ additionalCredentials?: any;
19442
+ channelSecret?: string | undefined;
19443
+ senderId?: string | undefined;
19396
19444
  vonageCredentials?: {
19397
19445
  apiKey: string;
19398
19446
  mobileNumber: string;
@@ -19404,9 +19452,6 @@ export declare const telegramContract: {
19404
19452
  status: boolean;
19405
19453
  brandName: string;
19406
19454
  platformId: string;
19407
- connectedUserName?: string | null | undefined;
19408
- connectedUserId?: string | null | undefined;
19409
- lineRichMenuId?: string | null | undefined;
19410
19455
  actor?: {
19411
19456
  name: string;
19412
19457
  id: string;
@@ -19414,6 +19459,9 @@ export declare const telegramContract: {
19414
19459
  email: string;
19415
19460
  phone: string | null;
19416
19461
  } | undefined;
19462
+ lineRichMenuId?: string | null | undefined;
19463
+ connectedUserName?: string | null | undefined;
19464
+ connectedUserId?: string | null | undefined;
19417
19465
  }, {
19418
19466
  name: string;
19419
19467
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -19422,19 +19470,19 @@ export declare const telegramContract: {
19422
19470
  name: string;
19423
19471
  id: string;
19424
19472
  accessToken?: string | undefined;
19425
- channelSecret?: string | undefined;
19426
- additionalCredentials?: any;
19427
- senderId?: string | undefined;
19428
19473
  whatsapp?: {
19429
19474
  email: string;
19430
19475
  wabaExternalId: string;
19431
19476
  phoneNumberId: string;
19477
+ status?: "active" | "pending" | undefined;
19478
+ channelId?: string | undefined;
19432
19479
  wabaBusinessId?: string | undefined;
19433
19480
  clientId?: string | undefined;
19434
- channelId?: string | undefined;
19435
- status?: "active" | "pending" | undefined;
19436
19481
  apiKey?: string | undefined;
19437
19482
  } | undefined;
19483
+ additionalCredentials?: any;
19484
+ channelSecret?: string | undefined;
19485
+ senderId?: string | undefined;
19438
19486
  vonageCredentials?: {
19439
19487
  apiKey: string;
19440
19488
  mobileNumber: string;
@@ -19446,9 +19494,6 @@ export declare const telegramContract: {
19446
19494
  status: boolean;
19447
19495
  brandName: string;
19448
19496
  platformId: string;
19449
- connectedUserName?: string | null | undefined;
19450
- connectedUserId?: string | null | undefined;
19451
- lineRichMenuId?: string | null | undefined;
19452
19497
  actor?: {
19453
19498
  name: string;
19454
19499
  id: string;
@@ -19456,8 +19501,11 @@ export declare const telegramContract: {
19456
19501
  email: string;
19457
19502
  phone: string | null;
19458
19503
  } | undefined;
19504
+ lineRichMenuId?: string | null | undefined;
19505
+ connectedUserName?: string | null | undefined;
19506
+ connectedUserId?: string | null | undefined;
19459
19507
  }>;
19460
- }, "strip", z.ZodTypeAny, {
19508
+ }>, "strip", z.ZodTypeAny, {
19461
19509
  data: {
19462
19510
  name: string;
19463
19511
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -19466,19 +19514,19 @@ export declare const telegramContract: {
19466
19514
  name: string;
19467
19515
  id: string;
19468
19516
  accessToken?: string | undefined;
19469
- channelSecret?: string | undefined;
19470
- additionalCredentials?: any;
19471
- senderId?: string | undefined;
19472
19517
  whatsapp?: {
19473
19518
  email: string;
19474
19519
  wabaExternalId: string;
19475
19520
  phoneNumberId: string;
19521
+ status?: "active" | "pending" | undefined;
19522
+ channelId?: string | undefined;
19476
19523
  wabaBusinessId?: string | undefined;
19477
19524
  clientId?: string | undefined;
19478
- channelId?: string | undefined;
19479
- status?: "active" | "pending" | undefined;
19480
19525
  apiKey?: string | undefined;
19481
19526
  } | undefined;
19527
+ additionalCredentials?: any;
19528
+ channelSecret?: string | undefined;
19529
+ senderId?: string | undefined;
19482
19530
  vonageCredentials?: {
19483
19531
  apiKey: string;
19484
19532
  mobileNumber: string;
@@ -19490,9 +19538,6 @@ export declare const telegramContract: {
19490
19538
  status: boolean;
19491
19539
  brandName: string;
19492
19540
  platformId: string;
19493
- connectedUserName?: string | null | undefined;
19494
- connectedUserId?: string | null | undefined;
19495
- lineRichMenuId?: string | null | undefined;
19496
19541
  actor?: {
19497
19542
  name: string;
19498
19543
  id: string;
@@ -19500,6 +19545,9 @@ export declare const telegramContract: {
19500
19545
  email: string;
19501
19546
  phone: string | null;
19502
19547
  } | undefined;
19548
+ lineRichMenuId?: string | null | undefined;
19549
+ connectedUserName?: string | null | undefined;
19550
+ connectedUserId?: string | null | undefined;
19503
19551
  };
19504
19552
  requestId: string;
19505
19553
  }, {
@@ -19511,19 +19559,19 @@ export declare const telegramContract: {
19511
19559
  name: string;
19512
19560
  id: string;
19513
19561
  accessToken?: string | undefined;
19514
- channelSecret?: string | undefined;
19515
- additionalCredentials?: any;
19516
- senderId?: string | undefined;
19517
19562
  whatsapp?: {
19518
19563
  email: string;
19519
19564
  wabaExternalId: string;
19520
19565
  phoneNumberId: string;
19566
+ status?: "active" | "pending" | undefined;
19567
+ channelId?: string | undefined;
19521
19568
  wabaBusinessId?: string | undefined;
19522
19569
  clientId?: string | undefined;
19523
- channelId?: string | undefined;
19524
- status?: "active" | "pending" | undefined;
19525
19570
  apiKey?: string | undefined;
19526
19571
  } | undefined;
19572
+ additionalCredentials?: any;
19573
+ channelSecret?: string | undefined;
19574
+ senderId?: string | undefined;
19527
19575
  vonageCredentials?: {
19528
19576
  apiKey: string;
19529
19577
  mobileNumber: string;
@@ -19535,9 +19583,6 @@ export declare const telegramContract: {
19535
19583
  status: boolean;
19536
19584
  brandName: string;
19537
19585
  platformId: string;
19538
- connectedUserName?: string | null | undefined;
19539
- connectedUserId?: string | null | undefined;
19540
- lineRichMenuId?: string | null | undefined;
19541
19586
  actor?: {
19542
19587
  name: string;
19543
19588
  id: string;
@@ -19545,6 +19590,9 @@ export declare const telegramContract: {
19545
19590
  email: string;
19546
19591
  phone: string | null;
19547
19592
  } | undefined;
19593
+ lineRichMenuId?: string | null | undefined;
19594
+ connectedUserName?: string | null | undefined;
19595
+ connectedUserId?: string | null | undefined;
19548
19596
  };
19549
19597
  requestId: string;
19550
19598
  }>;
@@ -19569,7 +19617,6 @@ export declare const telegramContract: {
19569
19617
  error?: any;
19570
19618
  }>;
19571
19619
  };
19572
- path: "/reconnect/:channelId";
19573
19620
  };
19574
19621
  delete: {
19575
19622
  body: null;
@@ -19582,9 +19629,11 @@ export declare const telegramContract: {
19582
19629
  }, {
19583
19630
  channelId: string;
19584
19631
  }>;
19632
+ path: "/delete/:channelId";
19585
19633
  responses: {
19586
- 200: z.ZodObject<{
19634
+ 200: z.ZodObject<z.objectUtil.extendShape<{
19587
19635
  requestId: z.ZodString;
19636
+ }, {
19588
19637
  data: z.ZodObject<{
19589
19638
  id: z.ZodString;
19590
19639
  name: z.ZodString;
@@ -19609,19 +19658,19 @@ export declare const telegramContract: {
19609
19658
  email: string;
19610
19659
  wabaExternalId: string;
19611
19660
  phoneNumberId: string;
19661
+ status?: "active" | "pending" | undefined;
19662
+ channelId?: string | undefined;
19612
19663
  wabaBusinessId?: string | undefined;
19613
19664
  clientId?: string | undefined;
19614
- channelId?: string | undefined;
19615
- status?: "active" | "pending" | undefined;
19616
19665
  apiKey?: string | undefined;
19617
19666
  }, {
19618
19667
  email: string;
19619
19668
  wabaExternalId: string;
19620
19669
  phoneNumberId: string;
19670
+ status?: "active" | "pending" | undefined;
19671
+ channelId?: string | undefined;
19621
19672
  wabaBusinessId?: string | undefined;
19622
19673
  clientId?: string | undefined;
19623
- channelId?: string | undefined;
19624
- status?: "active" | "pending" | undefined;
19625
19674
  apiKey?: string | undefined;
19626
19675
  }>>;
19627
19676
  vonageCredentials: z.ZodOptional<z.ZodObject<{
@@ -19643,19 +19692,19 @@ export declare const telegramContract: {
19643
19692
  name: string;
19644
19693
  id: string;
19645
19694
  accessToken?: string | undefined;
19646
- channelSecret?: string | undefined;
19647
- additionalCredentials?: any;
19648
- senderId?: string | undefined;
19649
19695
  whatsapp?: {
19650
19696
  email: string;
19651
19697
  wabaExternalId: string;
19652
19698
  phoneNumberId: string;
19699
+ status?: "active" | "pending" | undefined;
19700
+ channelId?: string | undefined;
19653
19701
  wabaBusinessId?: string | undefined;
19654
19702
  clientId?: string | undefined;
19655
- channelId?: string | undefined;
19656
- status?: "active" | "pending" | undefined;
19657
19703
  apiKey?: string | undefined;
19658
19704
  } | undefined;
19705
+ additionalCredentials?: any;
19706
+ channelSecret?: string | undefined;
19707
+ senderId?: string | undefined;
19659
19708
  vonageCredentials?: {
19660
19709
  apiKey: string;
19661
19710
  mobileNumber: string;
@@ -19667,19 +19716,19 @@ export declare const telegramContract: {
19667
19716
  name: string;
19668
19717
  id: string;
19669
19718
  accessToken?: string | undefined;
19670
- channelSecret?: string | undefined;
19671
- additionalCredentials?: any;
19672
- senderId?: string | undefined;
19673
19719
  whatsapp?: {
19674
19720
  email: string;
19675
19721
  wabaExternalId: string;
19676
19722
  phoneNumberId: string;
19723
+ status?: "active" | "pending" | undefined;
19724
+ channelId?: string | undefined;
19677
19725
  wabaBusinessId?: string | undefined;
19678
19726
  clientId?: string | undefined;
19679
- channelId?: string | undefined;
19680
- status?: "active" | "pending" | undefined;
19681
19727
  apiKey?: string | undefined;
19682
19728
  } | undefined;
19729
+ additionalCredentials?: any;
19730
+ channelSecret?: string | undefined;
19731
+ senderId?: string | undefined;
19683
19732
  vonageCredentials?: {
19684
19733
  apiKey: string;
19685
19734
  mobileNumber: string;
@@ -19721,19 +19770,19 @@ export declare const telegramContract: {
19721
19770
  name: string;
19722
19771
  id: string;
19723
19772
  accessToken?: string | undefined;
19724
- channelSecret?: string | undefined;
19725
- additionalCredentials?: any;
19726
- senderId?: string | undefined;
19727
19773
  whatsapp?: {
19728
19774
  email: string;
19729
19775
  wabaExternalId: string;
19730
19776
  phoneNumberId: string;
19777
+ status?: "active" | "pending" | undefined;
19778
+ channelId?: string | undefined;
19731
19779
  wabaBusinessId?: string | undefined;
19732
19780
  clientId?: string | undefined;
19733
- channelId?: string | undefined;
19734
- status?: "active" | "pending" | undefined;
19735
19781
  apiKey?: string | undefined;
19736
19782
  } | undefined;
19783
+ additionalCredentials?: any;
19784
+ channelSecret?: string | undefined;
19785
+ senderId?: string | undefined;
19737
19786
  vonageCredentials?: {
19738
19787
  apiKey: string;
19739
19788
  mobileNumber: string;
@@ -19745,9 +19794,6 @@ export declare const telegramContract: {
19745
19794
  status: boolean;
19746
19795
  brandName: string;
19747
19796
  platformId: string;
19748
- connectedUserName?: string | null | undefined;
19749
- connectedUserId?: string | null | undefined;
19750
- lineRichMenuId?: string | null | undefined;
19751
19797
  actor?: {
19752
19798
  name: string;
19753
19799
  id: string;
@@ -19755,6 +19801,9 @@ export declare const telegramContract: {
19755
19801
  email: string;
19756
19802
  phone: string | null;
19757
19803
  } | undefined;
19804
+ lineRichMenuId?: string | null | undefined;
19805
+ connectedUserName?: string | null | undefined;
19806
+ connectedUserId?: string | null | undefined;
19758
19807
  }, {
19759
19808
  name: string;
19760
19809
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -19763,19 +19812,19 @@ export declare const telegramContract: {
19763
19812
  name: string;
19764
19813
  id: string;
19765
19814
  accessToken?: string | undefined;
19766
- channelSecret?: string | undefined;
19767
- additionalCredentials?: any;
19768
- senderId?: string | undefined;
19769
19815
  whatsapp?: {
19770
19816
  email: string;
19771
19817
  wabaExternalId: string;
19772
19818
  phoneNumberId: string;
19819
+ status?: "active" | "pending" | undefined;
19820
+ channelId?: string | undefined;
19773
19821
  wabaBusinessId?: string | undefined;
19774
19822
  clientId?: string | undefined;
19775
- channelId?: string | undefined;
19776
- status?: "active" | "pending" | undefined;
19777
19823
  apiKey?: string | undefined;
19778
19824
  } | undefined;
19825
+ additionalCredentials?: any;
19826
+ channelSecret?: string | undefined;
19827
+ senderId?: string | undefined;
19779
19828
  vonageCredentials?: {
19780
19829
  apiKey: string;
19781
19830
  mobileNumber: string;
@@ -19787,9 +19836,6 @@ export declare const telegramContract: {
19787
19836
  status: boolean;
19788
19837
  brandName: string;
19789
19838
  platformId: string;
19790
- connectedUserName?: string | null | undefined;
19791
- connectedUserId?: string | null | undefined;
19792
- lineRichMenuId?: string | null | undefined;
19793
19839
  actor?: {
19794
19840
  name: string;
19795
19841
  id: string;
@@ -19797,8 +19843,11 @@ export declare const telegramContract: {
19797
19843
  email: string;
19798
19844
  phone: string | null;
19799
19845
  } | undefined;
19846
+ lineRichMenuId?: string | null | undefined;
19847
+ connectedUserName?: string | null | undefined;
19848
+ connectedUserId?: string | null | undefined;
19800
19849
  }>;
19801
- }, "strip", z.ZodTypeAny, {
19850
+ }>, "strip", z.ZodTypeAny, {
19802
19851
  data: {
19803
19852
  name: string;
19804
19853
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
@@ -19807,19 +19856,19 @@ export declare const telegramContract: {
19807
19856
  name: string;
19808
19857
  id: string;
19809
19858
  accessToken?: string | undefined;
19810
- channelSecret?: string | undefined;
19811
- additionalCredentials?: any;
19812
- senderId?: string | undefined;
19813
19859
  whatsapp?: {
19814
19860
  email: string;
19815
19861
  wabaExternalId: string;
19816
19862
  phoneNumberId: string;
19863
+ status?: "active" | "pending" | undefined;
19864
+ channelId?: string | undefined;
19817
19865
  wabaBusinessId?: string | undefined;
19818
19866
  clientId?: string | undefined;
19819
- channelId?: string | undefined;
19820
- status?: "active" | "pending" | undefined;
19821
19867
  apiKey?: string | undefined;
19822
19868
  } | undefined;
19869
+ additionalCredentials?: any;
19870
+ channelSecret?: string | undefined;
19871
+ senderId?: string | undefined;
19823
19872
  vonageCredentials?: {
19824
19873
  apiKey: string;
19825
19874
  mobileNumber: string;
@@ -19831,9 +19880,6 @@ export declare const telegramContract: {
19831
19880
  status: boolean;
19832
19881
  brandName: string;
19833
19882
  platformId: string;
19834
- connectedUserName?: string | null | undefined;
19835
- connectedUserId?: string | null | undefined;
19836
- lineRichMenuId?: string | null | undefined;
19837
19883
  actor?: {
19838
19884
  name: string;
19839
19885
  id: string;
@@ -19841,6 +19887,9 @@ export declare const telegramContract: {
19841
19887
  email: string;
19842
19888
  phone: string | null;
19843
19889
  } | undefined;
19890
+ lineRichMenuId?: string | null | undefined;
19891
+ connectedUserName?: string | null | undefined;
19892
+ connectedUserId?: string | null | undefined;
19844
19893
  };
19845
19894
  requestId: string;
19846
19895
  }, {
@@ -19852,19 +19901,19 @@ export declare const telegramContract: {
19852
19901
  name: string;
19853
19902
  id: string;
19854
19903
  accessToken?: string | undefined;
19855
- channelSecret?: string | undefined;
19856
- additionalCredentials?: any;
19857
- senderId?: string | undefined;
19858
19904
  whatsapp?: {
19859
19905
  email: string;
19860
19906
  wabaExternalId: string;
19861
19907
  phoneNumberId: string;
19908
+ status?: "active" | "pending" | undefined;
19909
+ channelId?: string | undefined;
19862
19910
  wabaBusinessId?: string | undefined;
19863
19911
  clientId?: string | undefined;
19864
- channelId?: string | undefined;
19865
- status?: "active" | "pending" | undefined;
19866
19912
  apiKey?: string | undefined;
19867
19913
  } | undefined;
19914
+ additionalCredentials?: any;
19915
+ channelSecret?: string | undefined;
19916
+ senderId?: string | undefined;
19868
19917
  vonageCredentials?: {
19869
19918
  apiKey: string;
19870
19919
  mobileNumber: string;
@@ -19876,9 +19925,6 @@ export declare const telegramContract: {
19876
19925
  status: boolean;
19877
19926
  brandName: string;
19878
19927
  platformId: string;
19879
- connectedUserName?: string | null | undefined;
19880
- connectedUserId?: string | null | undefined;
19881
- lineRichMenuId?: string | null | undefined;
19882
19928
  actor?: {
19883
19929
  name: string;
19884
19930
  id: string;
@@ -19886,6 +19932,9 @@ export declare const telegramContract: {
19886
19932
  email: string;
19887
19933
  phone: string | null;
19888
19934
  } | undefined;
19935
+ lineRichMenuId?: string | null | undefined;
19936
+ connectedUserName?: string | null | undefined;
19937
+ connectedUserId?: string | null | undefined;
19889
19938
  };
19890
19939
  requestId: string;
19891
19940
  }>;
@@ -19910,7 +19959,6 @@ export declare const telegramContract: {
19910
19959
  error?: any;
19911
19960
  }>;
19912
19961
  };
19913
- path: "/delete/:channelId";
19914
19962
  };
19915
19963
  };
19916
19964
  //# sourceMappingURL=index.d.ts.map