@kl1/contracts 1.1.92-uat → 1.1.93-uat

Sign up to get free protection for your applications and to get access to all the features.
@@ -5840,11 +5840,2006 @@ export declare const contactContract: {
5840
5840
  summary: "Create a new contact and platform contact for sms ";
5841
5841
  method: "POST";
5842
5842
  responses: {
5843
- 201: z.ZodObject<{
5843
+ 200: z.ZodObject<{
5844
5844
  requestId: z.ZodString;
5845
+ data: z.ZodObject<{
5846
+ id: z.ZodString;
5847
+ createdAt: z.ZodDate;
5848
+ updatedAt: z.ZodDate;
5849
+ deletedAt: z.ZodNullable<z.ZodDate>;
5850
+ name: z.ZodString;
5851
+ address: z.ZodNullable<z.ZodString>;
5852
+ channel: z.ZodNullable<z.ZodString>;
5853
+ notes: z.ZodNullable<z.ZodString>;
5854
+ contactProfile: z.ZodNullable<z.ZodString>;
5855
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
5856
+ tags: z.ZodArray<z.ZodObject<{
5857
+ id: z.ZodString;
5858
+ createdAt: z.ZodDate;
5859
+ updatedAt: z.ZodDate;
5860
+ deletedAt: z.ZodNullable<z.ZodDate>;
5861
+ name: z.ZodString;
5862
+ }, "strip", z.ZodTypeAny, {
5863
+ id: string;
5864
+ name: string;
5865
+ createdAt: Date;
5866
+ updatedAt: Date;
5867
+ deletedAt: Date | null;
5868
+ }, {
5869
+ id: string;
5870
+ name: string;
5871
+ createdAt: Date;
5872
+ updatedAt: Date;
5873
+ deletedAt: Date | null;
5874
+ }>, "many">;
5875
+ company: z.ZodNullable<z.ZodObject<Omit<{
5876
+ id: z.ZodString;
5877
+ createdAt: z.ZodDate;
5878
+ updatedAt: z.ZodDate;
5879
+ deletedAt: z.ZodNullable<z.ZodDate>;
5880
+ name: z.ZodOptional<z.ZodString>;
5881
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5882
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5883
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5884
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
5885
+ id: z.ZodString;
5886
+ createdAt: z.ZodDate;
5887
+ updatedAt: z.ZodDate;
5888
+ deletedAt: z.ZodNullable<z.ZodDate>;
5889
+ textValue: z.ZodNullable<z.ZodString>;
5890
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5891
+ numberValue: z.ZodNullable<z.ZodNumber>;
5892
+ dateValue: z.ZodNullable<z.ZodDate>;
5893
+ attribute: z.ZodObject<Omit<{
5894
+ id: z.ZodString;
5895
+ createdAt: z.ZodDate;
5896
+ updatedAt: z.ZodDate;
5897
+ deletedAt: z.ZodNullable<z.ZodDate>;
5898
+ systemName: z.ZodString;
5899
+ displayName: z.ZodString;
5900
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5901
+ position: z.ZodNumber;
5902
+ isDefault: z.ZodBoolean;
5903
+ isArchived: z.ZodBoolean;
5904
+ isRequired: z.ZodBoolean;
5905
+ isUnique: z.ZodBoolean;
5906
+ options: z.ZodArray<z.ZodObject<{
5907
+ position: z.ZodNumber;
5908
+ value: z.ZodString;
5909
+ label: z.ZodString;
5910
+ isDefault: z.ZodBoolean;
5911
+ id: z.ZodString;
5912
+ }, "strip", z.ZodTypeAny, {
5913
+ id: string;
5914
+ position: number;
5915
+ value: string;
5916
+ label: string;
5917
+ isDefault: boolean;
5918
+ }, {
5919
+ id: string;
5920
+ position: number;
5921
+ value: string;
5922
+ label: string;
5923
+ isDefault: boolean;
5924
+ }>, "many">;
5925
+ group: z.ZodObject<{
5926
+ id: z.ZodString;
5927
+ createdAt: z.ZodDate;
5928
+ updatedAt: z.ZodDate;
5929
+ deletedAt: z.ZodNullable<z.ZodDate>;
5930
+ systemName: z.ZodString;
5931
+ displayName: z.ZodString;
5932
+ }, "strip", z.ZodTypeAny, {
5933
+ id: string;
5934
+ createdAt: Date;
5935
+ updatedAt: Date;
5936
+ deletedAt: Date | null;
5937
+ systemName: string;
5938
+ displayName: string;
5939
+ }, {
5940
+ id: string;
5941
+ createdAt: Date;
5942
+ updatedAt: Date;
5943
+ deletedAt: Date | null;
5944
+ systemName: string;
5945
+ displayName: string;
5946
+ }>;
5947
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5948
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5949
+ id: string;
5950
+ position: number;
5951
+ createdAt: Date;
5952
+ updatedAt: Date;
5953
+ deletedAt: Date | null;
5954
+ systemName: string;
5955
+ displayName: string;
5956
+ isDefault: boolean;
5957
+ isArchived: boolean;
5958
+ isRequired: boolean;
5959
+ isUnique: boolean;
5960
+ }, {
5961
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5962
+ id: string;
5963
+ position: number;
5964
+ createdAt: Date;
5965
+ updatedAt: Date;
5966
+ deletedAt: Date | null;
5967
+ systemName: string;
5968
+ displayName: string;
5969
+ isDefault: boolean;
5970
+ isArchived: boolean;
5971
+ isRequired: boolean;
5972
+ isUnique: boolean;
5973
+ }>;
5974
+ }, "strip", z.ZodTypeAny, {
5975
+ id: string;
5976
+ createdAt: Date;
5977
+ updatedAt: Date;
5978
+ deletedAt: Date | null;
5979
+ attribute: {
5980
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5981
+ id: string;
5982
+ position: number;
5983
+ createdAt: Date;
5984
+ updatedAt: Date;
5985
+ deletedAt: Date | null;
5986
+ systemName: string;
5987
+ displayName: string;
5988
+ isDefault: boolean;
5989
+ isArchived: boolean;
5990
+ isRequired: boolean;
5991
+ isUnique: boolean;
5992
+ };
5993
+ textValue: string | null;
5994
+ booleanValue: boolean | null;
5995
+ numberValue: number | null;
5996
+ dateValue: Date | null;
5997
+ }, {
5998
+ id: string;
5999
+ createdAt: Date;
6000
+ updatedAt: Date;
6001
+ deletedAt: Date | null;
6002
+ attribute: {
6003
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6004
+ id: string;
6005
+ position: number;
6006
+ createdAt: Date;
6007
+ updatedAt: Date;
6008
+ deletedAt: Date | null;
6009
+ systemName: string;
6010
+ displayName: string;
6011
+ isDefault: boolean;
6012
+ isArchived: boolean;
6013
+ isRequired: boolean;
6014
+ isUnique: boolean;
6015
+ };
6016
+ textValue: string | null;
6017
+ booleanValue: boolean | null;
6018
+ numberValue: number | null;
6019
+ dateValue: Date | null;
6020
+ }>, "many">>;
6021
+ }, "customFields">, "strip", z.ZodTypeAny, {
6022
+ id: string;
6023
+ createdAt: Date;
6024
+ updatedAt: Date;
6025
+ deletedAt: Date | null;
6026
+ address?: string | null | undefined;
6027
+ name?: string | undefined;
6028
+ phone?: string | null | undefined;
6029
+ industry?: string | null | undefined;
6030
+ }, {
6031
+ id: string;
6032
+ createdAt: Date;
6033
+ updatedAt: Date;
6034
+ deletedAt: Date | null;
6035
+ address?: string | null | undefined;
6036
+ name?: string | undefined;
6037
+ phone?: string | null | undefined;
6038
+ industry?: string | null | undefined;
6039
+ }>>;
6040
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
6041
+ id: z.ZodString;
6042
+ createdAt: z.ZodDate;
6043
+ updatedAt: z.ZodDate;
6044
+ deletedAt: z.ZodNullable<z.ZodDate>;
6045
+ channelId: z.ZodString;
6046
+ socialPlatformId: z.ZodString;
6047
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
6048
+ metadata: z.ZodObject<{
6049
+ id: z.ZodString;
6050
+ name: z.ZodString;
6051
+ picture: z.ZodOptional<z.ZodString>;
6052
+ additionalCredentials: z.ZodAny;
6053
+ }, "strip", z.ZodTypeAny, {
6054
+ id: string;
6055
+ name: string;
6056
+ picture?: string | undefined;
6057
+ additionalCredentials?: any;
6058
+ }, {
6059
+ id: string;
6060
+ name: string;
6061
+ picture?: string | undefined;
6062
+ additionalCredentials?: any;
6063
+ }>;
6064
+ }, "strip", z.ZodTypeAny, {
6065
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6066
+ id: string;
6067
+ metadata: {
6068
+ id: string;
6069
+ name: string;
6070
+ picture?: string | undefined;
6071
+ additionalCredentials?: any;
6072
+ };
6073
+ createdAt: Date;
6074
+ updatedAt: Date;
6075
+ deletedAt: Date | null;
6076
+ channelId: string;
6077
+ socialPlatformId: string;
6078
+ }, {
6079
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6080
+ id: string;
6081
+ metadata: {
6082
+ id: string;
6083
+ name: string;
6084
+ picture?: string | undefined;
6085
+ additionalCredentials?: any;
6086
+ };
6087
+ createdAt: Date;
6088
+ updatedAt: Date;
6089
+ deletedAt: Date | null;
6090
+ channelId: string;
6091
+ socialPlatformId: string;
6092
+ }>, "many">>;
6093
+ customFields: z.ZodArray<z.ZodObject<{
6094
+ id: z.ZodString;
6095
+ createdAt: z.ZodDate;
6096
+ updatedAt: z.ZodDate;
6097
+ deletedAt: z.ZodNullable<z.ZodDate>;
6098
+ textValue: z.ZodNullable<z.ZodString>;
6099
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
6100
+ numberValue: z.ZodNullable<z.ZodNumber>;
6101
+ dateValue: z.ZodNullable<z.ZodDate>;
6102
+ attribute: z.ZodObject<Omit<{
6103
+ id: z.ZodString;
6104
+ createdAt: z.ZodDate;
6105
+ updatedAt: z.ZodDate;
6106
+ deletedAt: z.ZodNullable<z.ZodDate>;
6107
+ systemName: z.ZodString;
6108
+ displayName: z.ZodString;
6109
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
6110
+ position: z.ZodNumber;
6111
+ isDefault: z.ZodBoolean;
6112
+ isArchived: z.ZodBoolean;
6113
+ isRequired: z.ZodBoolean;
6114
+ isUnique: z.ZodBoolean;
6115
+ options: z.ZodArray<z.ZodObject<{
6116
+ position: z.ZodNumber;
6117
+ value: z.ZodString;
6118
+ label: z.ZodString;
6119
+ isDefault: z.ZodBoolean;
6120
+ id: z.ZodString;
6121
+ }, "strip", z.ZodTypeAny, {
6122
+ id: string;
6123
+ position: number;
6124
+ value: string;
6125
+ label: string;
6126
+ isDefault: boolean;
6127
+ }, {
6128
+ id: string;
6129
+ position: number;
6130
+ value: string;
6131
+ label: string;
6132
+ isDefault: boolean;
6133
+ }>, "many">;
6134
+ group: z.ZodObject<{
6135
+ id: z.ZodString;
6136
+ createdAt: z.ZodDate;
6137
+ updatedAt: z.ZodDate;
6138
+ deletedAt: z.ZodNullable<z.ZodDate>;
6139
+ systemName: z.ZodString;
6140
+ displayName: z.ZodString;
6141
+ }, "strip", z.ZodTypeAny, {
6142
+ id: string;
6143
+ createdAt: Date;
6144
+ updatedAt: Date;
6145
+ deletedAt: Date | null;
6146
+ systemName: string;
6147
+ displayName: string;
6148
+ }, {
6149
+ id: string;
6150
+ createdAt: Date;
6151
+ updatedAt: Date;
6152
+ deletedAt: Date | null;
6153
+ systemName: string;
6154
+ displayName: string;
6155
+ }>;
6156
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
6157
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6158
+ id: string;
6159
+ position: number;
6160
+ createdAt: Date;
6161
+ updatedAt: Date;
6162
+ deletedAt: Date | null;
6163
+ systemName: string;
6164
+ displayName: string;
6165
+ isDefault: boolean;
6166
+ isArchived: boolean;
6167
+ isRequired: boolean;
6168
+ isUnique: boolean;
6169
+ }, {
6170
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6171
+ id: string;
6172
+ position: number;
6173
+ createdAt: Date;
6174
+ updatedAt: Date;
6175
+ deletedAt: Date | null;
6176
+ systemName: string;
6177
+ displayName: string;
6178
+ isDefault: boolean;
6179
+ isArchived: boolean;
6180
+ isRequired: boolean;
6181
+ isUnique: boolean;
6182
+ }>;
6183
+ uploads: z.ZodArray<z.ZodObject<{
6184
+ id: z.ZodString;
6185
+ createdAt: z.ZodDate;
6186
+ updatedAt: z.ZodDate;
6187
+ deletedAt: z.ZodNullable<z.ZodDate>;
6188
+ bucketName: z.ZodString;
6189
+ fileName: z.ZodString;
6190
+ fileSize: z.ZodNumber;
6191
+ fileKey: z.ZodString;
6192
+ fileUrl: z.ZodNullable<z.ZodString>;
6193
+ status: z.ZodNullable<z.ZodString>;
6194
+ }, "strip", z.ZodTypeAny, {
6195
+ id: string;
6196
+ status: string | null;
6197
+ createdAt: Date;
6198
+ updatedAt: Date;
6199
+ deletedAt: Date | null;
6200
+ fileName: string;
6201
+ fileKey: string;
6202
+ bucketName: string;
6203
+ fileSize: number;
6204
+ fileUrl: string | null;
6205
+ }, {
6206
+ id: string;
6207
+ status: string | null;
6208
+ createdAt: Date;
6209
+ updatedAt: Date;
6210
+ deletedAt: Date | null;
6211
+ fileName: string;
6212
+ fileKey: string;
6213
+ bucketName: string;
6214
+ fileSize: number;
6215
+ fileUrl: string | null;
6216
+ }>, "many">;
6217
+ }, "strip", z.ZodTypeAny, {
6218
+ id: string;
6219
+ createdAt: Date;
6220
+ updatedAt: Date;
6221
+ deletedAt: Date | null;
6222
+ attribute: {
6223
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6224
+ id: string;
6225
+ position: number;
6226
+ createdAt: Date;
6227
+ updatedAt: Date;
6228
+ deletedAt: Date | null;
6229
+ systemName: string;
6230
+ displayName: string;
6231
+ isDefault: boolean;
6232
+ isArchived: boolean;
6233
+ isRequired: boolean;
6234
+ isUnique: boolean;
6235
+ };
6236
+ textValue: string | null;
6237
+ booleanValue: boolean | null;
6238
+ numberValue: number | null;
6239
+ dateValue: Date | null;
6240
+ uploads: {
6241
+ id: string;
6242
+ status: string | null;
6243
+ createdAt: Date;
6244
+ updatedAt: Date;
6245
+ deletedAt: Date | null;
6246
+ fileName: string;
6247
+ fileKey: string;
6248
+ bucketName: string;
6249
+ fileSize: number;
6250
+ fileUrl: string | null;
6251
+ }[];
6252
+ }, {
6253
+ id: string;
6254
+ createdAt: Date;
6255
+ updatedAt: Date;
6256
+ deletedAt: Date | null;
6257
+ attribute: {
6258
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6259
+ id: string;
6260
+ position: number;
6261
+ createdAt: Date;
6262
+ updatedAt: Date;
6263
+ deletedAt: Date | null;
6264
+ systemName: string;
6265
+ displayName: string;
6266
+ isDefault: boolean;
6267
+ isArchived: boolean;
6268
+ isRequired: boolean;
6269
+ isUnique: boolean;
6270
+ };
6271
+ textValue: string | null;
6272
+ booleanValue: boolean | null;
6273
+ numberValue: number | null;
6274
+ dateValue: Date | null;
6275
+ uploads: {
6276
+ id: string;
6277
+ status: string | null;
6278
+ createdAt: Date;
6279
+ updatedAt: Date;
6280
+ deletedAt: Date | null;
6281
+ fileName: string;
6282
+ fileKey: string;
6283
+ bucketName: string;
6284
+ fileSize: number;
6285
+ fileUrl: string | null;
6286
+ }[];
6287
+ }>, "many">;
6288
+ contactEmails: z.ZodArray<z.ZodObject<{
6289
+ id: z.ZodString;
6290
+ createdAt: z.ZodDate;
6291
+ updatedAt: z.ZodDate;
6292
+ deletedAt: z.ZodNullable<z.ZodDate>;
6293
+ email: z.ZodString;
6294
+ isPrimary: z.ZodBoolean;
6295
+ }, "strip", z.ZodTypeAny, {
6296
+ id: string;
6297
+ isPrimary: boolean;
6298
+ email: string;
6299
+ createdAt: Date;
6300
+ updatedAt: Date;
6301
+ deletedAt: Date | null;
6302
+ }, {
6303
+ id: string;
6304
+ isPrimary: boolean;
6305
+ email: string;
6306
+ createdAt: Date;
6307
+ updatedAt: Date;
6308
+ deletedAt: Date | null;
6309
+ }>, "many">;
6310
+ contactPhones: z.ZodArray<z.ZodObject<{
6311
+ id: z.ZodString;
6312
+ createdAt: z.ZodDate;
6313
+ updatedAt: z.ZodDate;
6314
+ deletedAt: z.ZodNullable<z.ZodDate>;
6315
+ phone: z.ZodString;
6316
+ isPrimary: z.ZodBoolean;
6317
+ }, "strip", z.ZodTypeAny, {
6318
+ id: string;
6319
+ isPrimary: boolean;
6320
+ createdAt: Date;
6321
+ updatedAt: Date;
6322
+ deletedAt: Date | null;
6323
+ phone: string;
6324
+ }, {
6325
+ id: string;
6326
+ isPrimary: boolean;
6327
+ createdAt: Date;
6328
+ updatedAt: Date;
6329
+ deletedAt: Date | null;
6330
+ phone: string;
6331
+ }>, "many">;
6332
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
6333
+ id: z.ZodString;
6334
+ createdAt: z.ZodDate;
6335
+ updatedAt: z.ZodDate;
6336
+ deletedAt: z.ZodNullable<z.ZodDate>;
6337
+ entityId: z.ZodString;
6338
+ description: z.ZodString;
6339
+ entityType: z.ZodObject<{
6340
+ id: z.ZodString;
6341
+ createdAt: z.ZodDate;
6342
+ updatedAt: z.ZodDate;
6343
+ deletedAt: z.ZodNullable<z.ZodDate>;
6344
+ entity: z.ZodString;
6345
+ description: z.ZodNullable<z.ZodString>;
6346
+ }, "strip", z.ZodTypeAny, {
6347
+ id: string;
6348
+ description: string | null;
6349
+ createdAt: Date;
6350
+ updatedAt: Date;
6351
+ deletedAt: Date | null;
6352
+ entity: string;
6353
+ }, {
6354
+ id: string;
6355
+ description: string | null;
6356
+ createdAt: Date;
6357
+ updatedAt: Date;
6358
+ deletedAt: Date | null;
6359
+ entity: string;
6360
+ }>;
6361
+ }, "strip", z.ZodTypeAny, {
6362
+ id: string;
6363
+ description: string;
6364
+ createdAt: Date;
6365
+ updatedAt: Date;
6366
+ deletedAt: Date | null;
6367
+ entityId: string;
6368
+ entityType: {
6369
+ id: string;
6370
+ description: string | null;
6371
+ createdAt: Date;
6372
+ updatedAt: Date;
6373
+ deletedAt: Date | null;
6374
+ entity: string;
6375
+ };
6376
+ }, {
6377
+ id: string;
6378
+ description: string;
6379
+ createdAt: Date;
6380
+ updatedAt: Date;
6381
+ deletedAt: Date | null;
6382
+ entityId: string;
6383
+ entityType: {
6384
+ id: string;
6385
+ description: string | null;
6386
+ createdAt: Date;
6387
+ updatedAt: Date;
6388
+ deletedAt: Date | null;
6389
+ entity: string;
6390
+ };
6391
+ }>, "many">>;
6392
+ }, "strip", z.ZodTypeAny, {
6393
+ id: string;
6394
+ channel: string | null;
6395
+ address: string | null;
6396
+ name: string;
6397
+ createdAt: Date;
6398
+ updatedAt: Date;
6399
+ deletedAt: Date | null;
6400
+ customFields: {
6401
+ id: string;
6402
+ createdAt: Date;
6403
+ updatedAt: Date;
6404
+ deletedAt: Date | null;
6405
+ attribute: {
6406
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6407
+ id: string;
6408
+ position: number;
6409
+ createdAt: Date;
6410
+ updatedAt: Date;
6411
+ deletedAt: Date | null;
6412
+ systemName: string;
6413
+ displayName: string;
6414
+ isDefault: boolean;
6415
+ isArchived: boolean;
6416
+ isRequired: boolean;
6417
+ isUnique: boolean;
6418
+ };
6419
+ textValue: string | null;
6420
+ booleanValue: boolean | null;
6421
+ numberValue: number | null;
6422
+ dateValue: Date | null;
6423
+ uploads: {
6424
+ id: string;
6425
+ status: string | null;
6426
+ createdAt: Date;
6427
+ updatedAt: Date;
6428
+ deletedAt: Date | null;
6429
+ fileName: string;
6430
+ fileKey: string;
6431
+ bucketName: string;
6432
+ fileSize: number;
6433
+ fileUrl: string | null;
6434
+ }[];
6435
+ }[];
6436
+ company: {
6437
+ id: string;
6438
+ createdAt: Date;
6439
+ updatedAt: Date;
6440
+ deletedAt: Date | null;
6441
+ address?: string | null | undefined;
6442
+ name?: string | undefined;
6443
+ phone?: string | null | undefined;
6444
+ industry?: string | null | undefined;
6445
+ } | null;
6446
+ notes: string | null;
6447
+ contactProfile: string | null;
6448
+ socialProfileUrl: string | null;
6449
+ tags: {
6450
+ id: string;
6451
+ name: string;
6452
+ createdAt: Date;
6453
+ updatedAt: Date;
6454
+ deletedAt: Date | null;
6455
+ }[];
6456
+ contactEmails: {
6457
+ id: string;
6458
+ isPrimary: boolean;
6459
+ email: string;
6460
+ createdAt: Date;
6461
+ updatedAt: Date;
6462
+ deletedAt: Date | null;
6463
+ }[];
6464
+ contactPhones: {
6465
+ id: string;
6466
+ isPrimary: boolean;
6467
+ createdAt: Date;
6468
+ updatedAt: Date;
6469
+ deletedAt: Date | null;
6470
+ phone: string;
6471
+ }[];
6472
+ platformContacts?: {
6473
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6474
+ id: string;
6475
+ metadata: {
6476
+ id: string;
6477
+ name: string;
6478
+ picture?: string | undefined;
6479
+ additionalCredentials?: any;
6480
+ };
6481
+ createdAt: Date;
6482
+ updatedAt: Date;
6483
+ deletedAt: Date | null;
6484
+ channelId: string;
6485
+ socialPlatformId: string;
6486
+ }[] | undefined;
6487
+ activityLogs?: {
6488
+ id: string;
6489
+ description: string;
6490
+ createdAt: Date;
6491
+ updatedAt: Date;
6492
+ deletedAt: Date | null;
6493
+ entityId: string;
6494
+ entityType: {
6495
+ id: string;
6496
+ description: string | null;
6497
+ createdAt: Date;
6498
+ updatedAt: Date;
6499
+ deletedAt: Date | null;
6500
+ entity: string;
6501
+ };
6502
+ }[] | undefined;
6503
+ }, {
6504
+ id: string;
6505
+ channel: string | null;
6506
+ address: string | null;
6507
+ name: string;
6508
+ createdAt: Date;
6509
+ updatedAt: Date;
6510
+ deletedAt: Date | null;
6511
+ customFields: {
6512
+ id: string;
6513
+ createdAt: Date;
6514
+ updatedAt: Date;
6515
+ deletedAt: Date | null;
6516
+ attribute: {
6517
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6518
+ id: string;
6519
+ position: number;
6520
+ createdAt: Date;
6521
+ updatedAt: Date;
6522
+ deletedAt: Date | null;
6523
+ systemName: string;
6524
+ displayName: string;
6525
+ isDefault: boolean;
6526
+ isArchived: boolean;
6527
+ isRequired: boolean;
6528
+ isUnique: boolean;
6529
+ };
6530
+ textValue: string | null;
6531
+ booleanValue: boolean | null;
6532
+ numberValue: number | null;
6533
+ dateValue: Date | null;
6534
+ uploads: {
6535
+ id: string;
6536
+ status: string | null;
6537
+ createdAt: Date;
6538
+ updatedAt: Date;
6539
+ deletedAt: Date | null;
6540
+ fileName: string;
6541
+ fileKey: string;
6542
+ bucketName: string;
6543
+ fileSize: number;
6544
+ fileUrl: string | null;
6545
+ }[];
6546
+ }[];
6547
+ company: {
6548
+ id: string;
6549
+ createdAt: Date;
6550
+ updatedAt: Date;
6551
+ deletedAt: Date | null;
6552
+ address?: string | null | undefined;
6553
+ name?: string | undefined;
6554
+ phone?: string | null | undefined;
6555
+ industry?: string | null | undefined;
6556
+ } | null;
6557
+ notes: string | null;
6558
+ contactProfile: string | null;
6559
+ socialProfileUrl: string | null;
6560
+ tags: {
6561
+ id: string;
6562
+ name: string;
6563
+ createdAt: Date;
6564
+ updatedAt: Date;
6565
+ deletedAt: Date | null;
6566
+ }[];
6567
+ contactEmails: {
6568
+ id: string;
6569
+ isPrimary: boolean;
6570
+ email: string;
6571
+ createdAt: Date;
6572
+ updatedAt: Date;
6573
+ deletedAt: Date | null;
6574
+ }[];
6575
+ contactPhones: {
6576
+ id: string;
6577
+ isPrimary: boolean;
6578
+ createdAt: Date;
6579
+ updatedAt: Date;
6580
+ deletedAt: Date | null;
6581
+ phone: string;
6582
+ }[];
6583
+ platformContacts?: {
6584
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6585
+ id: string;
6586
+ metadata: {
6587
+ id: string;
6588
+ name: string;
6589
+ picture?: string | undefined;
6590
+ additionalCredentials?: any;
6591
+ };
6592
+ createdAt: Date;
6593
+ updatedAt: Date;
6594
+ deletedAt: Date | null;
6595
+ channelId: string;
6596
+ socialPlatformId: string;
6597
+ }[] | undefined;
6598
+ activityLogs?: {
6599
+ id: string;
6600
+ description: string;
6601
+ createdAt: Date;
6602
+ updatedAt: Date;
6603
+ deletedAt: Date | null;
6604
+ entityId: string;
6605
+ entityType: {
6606
+ id: string;
6607
+ description: string | null;
6608
+ createdAt: Date;
6609
+ updatedAt: Date;
6610
+ deletedAt: Date | null;
6611
+ entity: string;
6612
+ };
6613
+ }[] | undefined;
6614
+ }>;
6615
+ }, "strip", z.ZodTypeAny, {
6616
+ data: {
6617
+ id: string;
6618
+ channel: string | null;
6619
+ address: string | null;
6620
+ name: string;
6621
+ createdAt: Date;
6622
+ updatedAt: Date;
6623
+ deletedAt: Date | null;
6624
+ customFields: {
6625
+ id: string;
6626
+ createdAt: Date;
6627
+ updatedAt: Date;
6628
+ deletedAt: Date | null;
6629
+ attribute: {
6630
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6631
+ id: string;
6632
+ position: number;
6633
+ createdAt: Date;
6634
+ updatedAt: Date;
6635
+ deletedAt: Date | null;
6636
+ systemName: string;
6637
+ displayName: string;
6638
+ isDefault: boolean;
6639
+ isArchived: boolean;
6640
+ isRequired: boolean;
6641
+ isUnique: boolean;
6642
+ };
6643
+ textValue: string | null;
6644
+ booleanValue: boolean | null;
6645
+ numberValue: number | null;
6646
+ dateValue: Date | null;
6647
+ uploads: {
6648
+ id: string;
6649
+ status: string | null;
6650
+ createdAt: Date;
6651
+ updatedAt: Date;
6652
+ deletedAt: Date | null;
6653
+ fileName: string;
6654
+ fileKey: string;
6655
+ bucketName: string;
6656
+ fileSize: number;
6657
+ fileUrl: string | null;
6658
+ }[];
6659
+ }[];
6660
+ company: {
6661
+ id: string;
6662
+ createdAt: Date;
6663
+ updatedAt: Date;
6664
+ deletedAt: Date | null;
6665
+ address?: string | null | undefined;
6666
+ name?: string | undefined;
6667
+ phone?: string | null | undefined;
6668
+ industry?: string | null | undefined;
6669
+ } | null;
6670
+ notes: string | null;
6671
+ contactProfile: string | null;
6672
+ socialProfileUrl: string | null;
6673
+ tags: {
6674
+ id: string;
6675
+ name: string;
6676
+ createdAt: Date;
6677
+ updatedAt: Date;
6678
+ deletedAt: Date | null;
6679
+ }[];
6680
+ contactEmails: {
6681
+ id: string;
6682
+ isPrimary: boolean;
6683
+ email: string;
6684
+ createdAt: Date;
6685
+ updatedAt: Date;
6686
+ deletedAt: Date | null;
6687
+ }[];
6688
+ contactPhones: {
6689
+ id: string;
6690
+ isPrimary: boolean;
6691
+ createdAt: Date;
6692
+ updatedAt: Date;
6693
+ deletedAt: Date | null;
6694
+ phone: string;
6695
+ }[];
6696
+ platformContacts?: {
6697
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6698
+ id: string;
6699
+ metadata: {
6700
+ id: string;
6701
+ name: string;
6702
+ picture?: string | undefined;
6703
+ additionalCredentials?: any;
6704
+ };
6705
+ createdAt: Date;
6706
+ updatedAt: Date;
6707
+ deletedAt: Date | null;
6708
+ channelId: string;
6709
+ socialPlatformId: string;
6710
+ }[] | undefined;
6711
+ activityLogs?: {
6712
+ id: string;
6713
+ description: string;
6714
+ createdAt: Date;
6715
+ updatedAt: Date;
6716
+ deletedAt: Date | null;
6717
+ entityId: string;
6718
+ entityType: {
6719
+ id: string;
6720
+ description: string | null;
6721
+ createdAt: Date;
6722
+ updatedAt: Date;
6723
+ deletedAt: Date | null;
6724
+ entity: string;
6725
+ };
6726
+ }[] | undefined;
6727
+ };
6728
+ requestId: string;
6729
+ }, {
6730
+ data: {
6731
+ id: string;
6732
+ channel: string | null;
6733
+ address: string | null;
6734
+ name: string;
6735
+ createdAt: Date;
6736
+ updatedAt: Date;
6737
+ deletedAt: Date | null;
6738
+ customFields: {
6739
+ id: string;
6740
+ createdAt: Date;
6741
+ updatedAt: Date;
6742
+ deletedAt: Date | null;
6743
+ attribute: {
6744
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6745
+ id: string;
6746
+ position: number;
6747
+ createdAt: Date;
6748
+ updatedAt: Date;
6749
+ deletedAt: Date | null;
6750
+ systemName: string;
6751
+ displayName: string;
6752
+ isDefault: boolean;
6753
+ isArchived: boolean;
6754
+ isRequired: boolean;
6755
+ isUnique: boolean;
6756
+ };
6757
+ textValue: string | null;
6758
+ booleanValue: boolean | null;
6759
+ numberValue: number | null;
6760
+ dateValue: Date | null;
6761
+ uploads: {
6762
+ id: string;
6763
+ status: string | null;
6764
+ createdAt: Date;
6765
+ updatedAt: Date;
6766
+ deletedAt: Date | null;
6767
+ fileName: string;
6768
+ fileKey: string;
6769
+ bucketName: string;
6770
+ fileSize: number;
6771
+ fileUrl: string | null;
6772
+ }[];
6773
+ }[];
6774
+ company: {
6775
+ id: string;
6776
+ createdAt: Date;
6777
+ updatedAt: Date;
6778
+ deletedAt: Date | null;
6779
+ address?: string | null | undefined;
6780
+ name?: string | undefined;
6781
+ phone?: string | null | undefined;
6782
+ industry?: string | null | undefined;
6783
+ } | null;
6784
+ notes: string | null;
6785
+ contactProfile: string | null;
6786
+ socialProfileUrl: string | null;
6787
+ tags: {
6788
+ id: string;
6789
+ name: string;
6790
+ createdAt: Date;
6791
+ updatedAt: Date;
6792
+ deletedAt: Date | null;
6793
+ }[];
6794
+ contactEmails: {
6795
+ id: string;
6796
+ isPrimary: boolean;
6797
+ email: string;
6798
+ createdAt: Date;
6799
+ updatedAt: Date;
6800
+ deletedAt: Date | null;
6801
+ }[];
6802
+ contactPhones: {
6803
+ id: string;
6804
+ isPrimary: boolean;
6805
+ createdAt: Date;
6806
+ updatedAt: Date;
6807
+ deletedAt: Date | null;
6808
+ phone: string;
6809
+ }[];
6810
+ platformContacts?: {
6811
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
6812
+ id: string;
6813
+ metadata: {
6814
+ id: string;
6815
+ name: string;
6816
+ picture?: string | undefined;
6817
+ additionalCredentials?: any;
6818
+ };
6819
+ createdAt: Date;
6820
+ updatedAt: Date;
6821
+ deletedAt: Date | null;
6822
+ channelId: string;
6823
+ socialPlatformId: string;
6824
+ }[] | undefined;
6825
+ activityLogs?: {
6826
+ id: string;
6827
+ description: string;
6828
+ createdAt: Date;
6829
+ updatedAt: Date;
6830
+ deletedAt: Date | null;
6831
+ entityId: string;
6832
+ entityType: {
6833
+ id: string;
6834
+ description: string | null;
6835
+ createdAt: Date;
6836
+ updatedAt: Date;
6837
+ deletedAt: Date | null;
6838
+ entity: string;
6839
+ };
6840
+ }[] | undefined;
6841
+ };
6842
+ requestId: string;
6843
+ }>;
6844
+ 201: z.ZodObject<{
6845
+ requestId: z.ZodString;
6846
+ data: z.ZodObject<{
6847
+ id: z.ZodString;
6848
+ createdAt: z.ZodDate;
6849
+ updatedAt: z.ZodDate;
6850
+ deletedAt: z.ZodNullable<z.ZodDate>;
6851
+ name: z.ZodString;
6852
+ address: z.ZodNullable<z.ZodString>;
6853
+ channel: z.ZodNullable<z.ZodString>;
6854
+ notes: z.ZodNullable<z.ZodString>;
6855
+ contactProfile: z.ZodNullable<z.ZodString>;
6856
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
6857
+ tags: z.ZodArray<z.ZodObject<{
6858
+ id: z.ZodString;
6859
+ createdAt: z.ZodDate;
6860
+ updatedAt: z.ZodDate;
6861
+ deletedAt: z.ZodNullable<z.ZodDate>;
6862
+ name: z.ZodString;
6863
+ }, "strip", z.ZodTypeAny, {
6864
+ id: string;
6865
+ name: string;
6866
+ createdAt: Date;
6867
+ updatedAt: Date;
6868
+ deletedAt: Date | null;
6869
+ }, {
6870
+ id: string;
6871
+ name: string;
6872
+ createdAt: Date;
6873
+ updatedAt: Date;
6874
+ deletedAt: Date | null;
6875
+ }>, "many">;
6876
+ company: z.ZodNullable<z.ZodObject<Omit<{
6877
+ id: z.ZodString;
6878
+ createdAt: z.ZodDate;
6879
+ updatedAt: z.ZodDate;
6880
+ deletedAt: z.ZodNullable<z.ZodDate>;
6881
+ name: z.ZodOptional<z.ZodString>;
6882
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6883
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6884
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6885
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
6886
+ id: z.ZodString;
6887
+ createdAt: z.ZodDate;
6888
+ updatedAt: z.ZodDate;
6889
+ deletedAt: z.ZodNullable<z.ZodDate>;
6890
+ textValue: z.ZodNullable<z.ZodString>;
6891
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
6892
+ numberValue: z.ZodNullable<z.ZodNumber>;
6893
+ dateValue: z.ZodNullable<z.ZodDate>;
6894
+ attribute: z.ZodObject<Omit<{
6895
+ id: z.ZodString;
6896
+ createdAt: z.ZodDate;
6897
+ updatedAt: z.ZodDate;
6898
+ deletedAt: z.ZodNullable<z.ZodDate>;
6899
+ systemName: z.ZodString;
6900
+ displayName: z.ZodString;
6901
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
6902
+ position: z.ZodNumber;
6903
+ isDefault: z.ZodBoolean;
6904
+ isArchived: z.ZodBoolean;
6905
+ isRequired: z.ZodBoolean;
6906
+ isUnique: z.ZodBoolean;
6907
+ options: z.ZodArray<z.ZodObject<{
6908
+ position: z.ZodNumber;
6909
+ value: z.ZodString;
6910
+ label: z.ZodString;
6911
+ isDefault: z.ZodBoolean;
6912
+ id: z.ZodString;
6913
+ }, "strip", z.ZodTypeAny, {
6914
+ id: string;
6915
+ position: number;
6916
+ value: string;
6917
+ label: string;
6918
+ isDefault: boolean;
6919
+ }, {
6920
+ id: string;
6921
+ position: number;
6922
+ value: string;
6923
+ label: string;
6924
+ isDefault: boolean;
6925
+ }>, "many">;
6926
+ group: z.ZodObject<{
6927
+ id: z.ZodString;
6928
+ createdAt: z.ZodDate;
6929
+ updatedAt: z.ZodDate;
6930
+ deletedAt: z.ZodNullable<z.ZodDate>;
6931
+ systemName: z.ZodString;
6932
+ displayName: z.ZodString;
6933
+ }, "strip", z.ZodTypeAny, {
6934
+ id: string;
6935
+ createdAt: Date;
6936
+ updatedAt: Date;
6937
+ deletedAt: Date | null;
6938
+ systemName: string;
6939
+ displayName: string;
6940
+ }, {
6941
+ id: string;
6942
+ createdAt: Date;
6943
+ updatedAt: Date;
6944
+ deletedAt: Date | null;
6945
+ systemName: string;
6946
+ displayName: string;
6947
+ }>;
6948
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
6949
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6950
+ id: string;
6951
+ position: number;
6952
+ createdAt: Date;
6953
+ updatedAt: Date;
6954
+ deletedAt: Date | null;
6955
+ systemName: string;
6956
+ displayName: string;
6957
+ isDefault: boolean;
6958
+ isArchived: boolean;
6959
+ isRequired: boolean;
6960
+ isUnique: boolean;
6961
+ }, {
6962
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6963
+ id: string;
6964
+ position: number;
6965
+ createdAt: Date;
6966
+ updatedAt: Date;
6967
+ deletedAt: Date | null;
6968
+ systemName: string;
6969
+ displayName: string;
6970
+ isDefault: boolean;
6971
+ isArchived: boolean;
6972
+ isRequired: boolean;
6973
+ isUnique: boolean;
6974
+ }>;
6975
+ }, "strip", z.ZodTypeAny, {
6976
+ id: string;
6977
+ createdAt: Date;
6978
+ updatedAt: Date;
6979
+ deletedAt: Date | null;
6980
+ attribute: {
6981
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
6982
+ id: string;
6983
+ position: number;
6984
+ createdAt: Date;
6985
+ updatedAt: Date;
6986
+ deletedAt: Date | null;
6987
+ systemName: string;
6988
+ displayName: string;
6989
+ isDefault: boolean;
6990
+ isArchived: boolean;
6991
+ isRequired: boolean;
6992
+ isUnique: boolean;
6993
+ };
6994
+ textValue: string | null;
6995
+ booleanValue: boolean | null;
6996
+ numberValue: number | null;
6997
+ dateValue: Date | null;
6998
+ }, {
6999
+ id: string;
7000
+ createdAt: Date;
7001
+ updatedAt: Date;
7002
+ deletedAt: Date | null;
7003
+ attribute: {
7004
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7005
+ id: string;
7006
+ position: number;
7007
+ createdAt: Date;
7008
+ updatedAt: Date;
7009
+ deletedAt: Date | null;
7010
+ systemName: string;
7011
+ displayName: string;
7012
+ isDefault: boolean;
7013
+ isArchived: boolean;
7014
+ isRequired: boolean;
7015
+ isUnique: boolean;
7016
+ };
7017
+ textValue: string | null;
7018
+ booleanValue: boolean | null;
7019
+ numberValue: number | null;
7020
+ dateValue: Date | null;
7021
+ }>, "many">>;
7022
+ }, "customFields">, "strip", z.ZodTypeAny, {
7023
+ id: string;
7024
+ createdAt: Date;
7025
+ updatedAt: Date;
7026
+ deletedAt: Date | null;
7027
+ address?: string | null | undefined;
7028
+ name?: string | undefined;
7029
+ phone?: string | null | undefined;
7030
+ industry?: string | null | undefined;
7031
+ }, {
7032
+ id: string;
7033
+ createdAt: Date;
7034
+ updatedAt: Date;
7035
+ deletedAt: Date | null;
7036
+ address?: string | null | undefined;
7037
+ name?: string | undefined;
7038
+ phone?: string | null | undefined;
7039
+ industry?: string | null | undefined;
7040
+ }>>;
7041
+ platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
7042
+ id: z.ZodString;
7043
+ createdAt: z.ZodDate;
7044
+ updatedAt: z.ZodDate;
7045
+ deletedAt: z.ZodNullable<z.ZodDate>;
7046
+ channelId: z.ZodString;
7047
+ socialPlatformId: z.ZodString;
7048
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
7049
+ metadata: z.ZodObject<{
7050
+ id: z.ZodString;
7051
+ name: z.ZodString;
7052
+ picture: z.ZodOptional<z.ZodString>;
7053
+ additionalCredentials: z.ZodAny;
7054
+ }, "strip", z.ZodTypeAny, {
7055
+ id: string;
7056
+ name: string;
7057
+ picture?: string | undefined;
7058
+ additionalCredentials?: any;
7059
+ }, {
7060
+ id: string;
7061
+ name: string;
7062
+ picture?: string | undefined;
7063
+ additionalCredentials?: any;
7064
+ }>;
7065
+ }, "strip", z.ZodTypeAny, {
7066
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
7067
+ id: string;
7068
+ metadata: {
7069
+ id: string;
7070
+ name: string;
7071
+ picture?: string | undefined;
7072
+ additionalCredentials?: any;
7073
+ };
7074
+ createdAt: Date;
7075
+ updatedAt: Date;
7076
+ deletedAt: Date | null;
7077
+ channelId: string;
7078
+ socialPlatformId: string;
7079
+ }, {
7080
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
7081
+ id: string;
7082
+ metadata: {
7083
+ id: string;
7084
+ name: string;
7085
+ picture?: string | undefined;
7086
+ additionalCredentials?: any;
7087
+ };
7088
+ createdAt: Date;
7089
+ updatedAt: Date;
7090
+ deletedAt: Date | null;
7091
+ channelId: string;
7092
+ socialPlatformId: string;
7093
+ }>, "many">>;
7094
+ customFields: z.ZodArray<z.ZodObject<{
7095
+ id: z.ZodString;
7096
+ createdAt: z.ZodDate;
7097
+ updatedAt: z.ZodDate;
7098
+ deletedAt: z.ZodNullable<z.ZodDate>;
7099
+ textValue: z.ZodNullable<z.ZodString>;
7100
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
7101
+ numberValue: z.ZodNullable<z.ZodNumber>;
7102
+ dateValue: z.ZodNullable<z.ZodDate>;
7103
+ attribute: z.ZodObject<Omit<{
7104
+ id: z.ZodString;
7105
+ createdAt: z.ZodDate;
7106
+ updatedAt: z.ZodDate;
7107
+ deletedAt: z.ZodNullable<z.ZodDate>;
7108
+ systemName: z.ZodString;
7109
+ displayName: z.ZodString;
7110
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
7111
+ position: z.ZodNumber;
7112
+ isDefault: z.ZodBoolean;
7113
+ isArchived: z.ZodBoolean;
7114
+ isRequired: z.ZodBoolean;
7115
+ isUnique: z.ZodBoolean;
7116
+ options: z.ZodArray<z.ZodObject<{
7117
+ position: z.ZodNumber;
7118
+ value: z.ZodString;
7119
+ label: z.ZodString;
7120
+ isDefault: z.ZodBoolean;
7121
+ id: z.ZodString;
7122
+ }, "strip", z.ZodTypeAny, {
7123
+ id: string;
7124
+ position: number;
7125
+ value: string;
7126
+ label: string;
7127
+ isDefault: boolean;
7128
+ }, {
7129
+ id: string;
7130
+ position: number;
7131
+ value: string;
7132
+ label: string;
7133
+ isDefault: boolean;
7134
+ }>, "many">;
7135
+ group: z.ZodObject<{
7136
+ id: z.ZodString;
7137
+ createdAt: z.ZodDate;
7138
+ updatedAt: z.ZodDate;
7139
+ deletedAt: z.ZodNullable<z.ZodDate>;
7140
+ systemName: z.ZodString;
7141
+ displayName: z.ZodString;
7142
+ }, "strip", z.ZodTypeAny, {
7143
+ id: string;
7144
+ createdAt: Date;
7145
+ updatedAt: Date;
7146
+ deletedAt: Date | null;
7147
+ systemName: string;
7148
+ displayName: string;
7149
+ }, {
7150
+ id: string;
7151
+ createdAt: Date;
7152
+ updatedAt: Date;
7153
+ deletedAt: Date | null;
7154
+ systemName: string;
7155
+ displayName: string;
7156
+ }>;
7157
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
7158
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7159
+ id: string;
7160
+ position: number;
7161
+ createdAt: Date;
7162
+ updatedAt: Date;
7163
+ deletedAt: Date | null;
7164
+ systemName: string;
7165
+ displayName: string;
7166
+ isDefault: boolean;
7167
+ isArchived: boolean;
7168
+ isRequired: boolean;
7169
+ isUnique: boolean;
7170
+ }, {
7171
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7172
+ id: string;
7173
+ position: number;
7174
+ createdAt: Date;
7175
+ updatedAt: Date;
7176
+ deletedAt: Date | null;
7177
+ systemName: string;
7178
+ displayName: string;
7179
+ isDefault: boolean;
7180
+ isArchived: boolean;
7181
+ isRequired: boolean;
7182
+ isUnique: boolean;
7183
+ }>;
7184
+ uploads: z.ZodArray<z.ZodObject<{
7185
+ id: z.ZodString;
7186
+ createdAt: z.ZodDate;
7187
+ updatedAt: z.ZodDate;
7188
+ deletedAt: z.ZodNullable<z.ZodDate>;
7189
+ bucketName: z.ZodString;
7190
+ fileName: z.ZodString;
7191
+ fileSize: z.ZodNumber;
7192
+ fileKey: z.ZodString;
7193
+ fileUrl: z.ZodNullable<z.ZodString>;
7194
+ status: z.ZodNullable<z.ZodString>;
7195
+ }, "strip", z.ZodTypeAny, {
7196
+ id: string;
7197
+ status: string | null;
7198
+ createdAt: Date;
7199
+ updatedAt: Date;
7200
+ deletedAt: Date | null;
7201
+ fileName: string;
7202
+ fileKey: string;
7203
+ bucketName: string;
7204
+ fileSize: number;
7205
+ fileUrl: string | null;
7206
+ }, {
7207
+ id: string;
7208
+ status: string | null;
7209
+ createdAt: Date;
7210
+ updatedAt: Date;
7211
+ deletedAt: Date | null;
7212
+ fileName: string;
7213
+ fileKey: string;
7214
+ bucketName: string;
7215
+ fileSize: number;
7216
+ fileUrl: string | null;
7217
+ }>, "many">;
7218
+ }, "strip", z.ZodTypeAny, {
7219
+ id: string;
7220
+ createdAt: Date;
7221
+ updatedAt: Date;
7222
+ deletedAt: Date | null;
7223
+ attribute: {
7224
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7225
+ id: string;
7226
+ position: number;
7227
+ createdAt: Date;
7228
+ updatedAt: Date;
7229
+ deletedAt: Date | null;
7230
+ systemName: string;
7231
+ displayName: string;
7232
+ isDefault: boolean;
7233
+ isArchived: boolean;
7234
+ isRequired: boolean;
7235
+ isUnique: boolean;
7236
+ };
7237
+ textValue: string | null;
7238
+ booleanValue: boolean | null;
7239
+ numberValue: number | null;
7240
+ dateValue: Date | null;
7241
+ uploads: {
7242
+ id: string;
7243
+ status: string | null;
7244
+ createdAt: Date;
7245
+ updatedAt: Date;
7246
+ deletedAt: Date | null;
7247
+ fileName: string;
7248
+ fileKey: string;
7249
+ bucketName: string;
7250
+ fileSize: number;
7251
+ fileUrl: string | null;
7252
+ }[];
7253
+ }, {
7254
+ id: string;
7255
+ createdAt: Date;
7256
+ updatedAt: Date;
7257
+ deletedAt: Date | null;
7258
+ attribute: {
7259
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7260
+ id: string;
7261
+ position: number;
7262
+ createdAt: Date;
7263
+ updatedAt: Date;
7264
+ deletedAt: Date | null;
7265
+ systemName: string;
7266
+ displayName: string;
7267
+ isDefault: boolean;
7268
+ isArchived: boolean;
7269
+ isRequired: boolean;
7270
+ isUnique: boolean;
7271
+ };
7272
+ textValue: string | null;
7273
+ booleanValue: boolean | null;
7274
+ numberValue: number | null;
7275
+ dateValue: Date | null;
7276
+ uploads: {
7277
+ id: string;
7278
+ status: string | null;
7279
+ createdAt: Date;
7280
+ updatedAt: Date;
7281
+ deletedAt: Date | null;
7282
+ fileName: string;
7283
+ fileKey: string;
7284
+ bucketName: string;
7285
+ fileSize: number;
7286
+ fileUrl: string | null;
7287
+ }[];
7288
+ }>, "many">;
7289
+ contactEmails: z.ZodArray<z.ZodObject<{
7290
+ id: z.ZodString;
7291
+ createdAt: z.ZodDate;
7292
+ updatedAt: z.ZodDate;
7293
+ deletedAt: z.ZodNullable<z.ZodDate>;
7294
+ email: z.ZodString;
7295
+ isPrimary: z.ZodBoolean;
7296
+ }, "strip", z.ZodTypeAny, {
7297
+ id: string;
7298
+ isPrimary: boolean;
7299
+ email: string;
7300
+ createdAt: Date;
7301
+ updatedAt: Date;
7302
+ deletedAt: Date | null;
7303
+ }, {
7304
+ id: string;
7305
+ isPrimary: boolean;
7306
+ email: string;
7307
+ createdAt: Date;
7308
+ updatedAt: Date;
7309
+ deletedAt: Date | null;
7310
+ }>, "many">;
7311
+ contactPhones: z.ZodArray<z.ZodObject<{
7312
+ id: z.ZodString;
7313
+ createdAt: z.ZodDate;
7314
+ updatedAt: z.ZodDate;
7315
+ deletedAt: z.ZodNullable<z.ZodDate>;
7316
+ phone: z.ZodString;
7317
+ isPrimary: z.ZodBoolean;
7318
+ }, "strip", z.ZodTypeAny, {
7319
+ id: string;
7320
+ isPrimary: boolean;
7321
+ createdAt: Date;
7322
+ updatedAt: Date;
7323
+ deletedAt: Date | null;
7324
+ phone: string;
7325
+ }, {
7326
+ id: string;
7327
+ isPrimary: boolean;
7328
+ createdAt: Date;
7329
+ updatedAt: Date;
7330
+ deletedAt: Date | null;
7331
+ phone: string;
7332
+ }>, "many">;
7333
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7334
+ id: z.ZodString;
7335
+ createdAt: z.ZodDate;
7336
+ updatedAt: z.ZodDate;
7337
+ deletedAt: z.ZodNullable<z.ZodDate>;
7338
+ entityId: z.ZodString;
7339
+ description: z.ZodString;
7340
+ entityType: z.ZodObject<{
7341
+ id: z.ZodString;
7342
+ createdAt: z.ZodDate;
7343
+ updatedAt: z.ZodDate;
7344
+ deletedAt: z.ZodNullable<z.ZodDate>;
7345
+ entity: z.ZodString;
7346
+ description: z.ZodNullable<z.ZodString>;
7347
+ }, "strip", z.ZodTypeAny, {
7348
+ id: string;
7349
+ description: string | null;
7350
+ createdAt: Date;
7351
+ updatedAt: Date;
7352
+ deletedAt: Date | null;
7353
+ entity: string;
7354
+ }, {
7355
+ id: string;
7356
+ description: string | null;
7357
+ createdAt: Date;
7358
+ updatedAt: Date;
7359
+ deletedAt: Date | null;
7360
+ entity: string;
7361
+ }>;
7362
+ }, "strip", z.ZodTypeAny, {
7363
+ id: string;
7364
+ description: string;
7365
+ createdAt: Date;
7366
+ updatedAt: Date;
7367
+ deletedAt: Date | null;
7368
+ entityId: string;
7369
+ entityType: {
7370
+ id: string;
7371
+ description: string | null;
7372
+ createdAt: Date;
7373
+ updatedAt: Date;
7374
+ deletedAt: Date | null;
7375
+ entity: string;
7376
+ };
7377
+ }, {
7378
+ id: string;
7379
+ description: string;
7380
+ createdAt: Date;
7381
+ updatedAt: Date;
7382
+ deletedAt: Date | null;
7383
+ entityId: string;
7384
+ entityType: {
7385
+ id: string;
7386
+ description: string | null;
7387
+ createdAt: Date;
7388
+ updatedAt: Date;
7389
+ deletedAt: Date | null;
7390
+ entity: string;
7391
+ };
7392
+ }>, "many">>;
7393
+ }, "strip", z.ZodTypeAny, {
7394
+ id: string;
7395
+ channel: string | null;
7396
+ address: string | null;
7397
+ name: string;
7398
+ createdAt: Date;
7399
+ updatedAt: Date;
7400
+ deletedAt: Date | null;
7401
+ customFields: {
7402
+ id: string;
7403
+ createdAt: Date;
7404
+ updatedAt: Date;
7405
+ deletedAt: Date | null;
7406
+ attribute: {
7407
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7408
+ id: string;
7409
+ position: number;
7410
+ createdAt: Date;
7411
+ updatedAt: Date;
7412
+ deletedAt: Date | null;
7413
+ systemName: string;
7414
+ displayName: string;
7415
+ isDefault: boolean;
7416
+ isArchived: boolean;
7417
+ isRequired: boolean;
7418
+ isUnique: boolean;
7419
+ };
7420
+ textValue: string | null;
7421
+ booleanValue: boolean | null;
7422
+ numberValue: number | null;
7423
+ dateValue: Date | null;
7424
+ uploads: {
7425
+ id: string;
7426
+ status: string | null;
7427
+ createdAt: Date;
7428
+ updatedAt: Date;
7429
+ deletedAt: Date | null;
7430
+ fileName: string;
7431
+ fileKey: string;
7432
+ bucketName: string;
7433
+ fileSize: number;
7434
+ fileUrl: string | null;
7435
+ }[];
7436
+ }[];
7437
+ company: {
7438
+ id: string;
7439
+ createdAt: Date;
7440
+ updatedAt: Date;
7441
+ deletedAt: Date | null;
7442
+ address?: string | null | undefined;
7443
+ name?: string | undefined;
7444
+ phone?: string | null | undefined;
7445
+ industry?: string | null | undefined;
7446
+ } | null;
7447
+ notes: string | null;
7448
+ contactProfile: string | null;
7449
+ socialProfileUrl: string | null;
7450
+ tags: {
7451
+ id: string;
7452
+ name: string;
7453
+ createdAt: Date;
7454
+ updatedAt: Date;
7455
+ deletedAt: Date | null;
7456
+ }[];
7457
+ contactEmails: {
7458
+ id: string;
7459
+ isPrimary: boolean;
7460
+ email: string;
7461
+ createdAt: Date;
7462
+ updatedAt: Date;
7463
+ deletedAt: Date | null;
7464
+ }[];
7465
+ contactPhones: {
7466
+ id: string;
7467
+ isPrimary: boolean;
7468
+ createdAt: Date;
7469
+ updatedAt: Date;
7470
+ deletedAt: Date | null;
7471
+ phone: string;
7472
+ }[];
7473
+ platformContacts?: {
7474
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
7475
+ id: string;
7476
+ metadata: {
7477
+ id: string;
7478
+ name: string;
7479
+ picture?: string | undefined;
7480
+ additionalCredentials?: any;
7481
+ };
7482
+ createdAt: Date;
7483
+ updatedAt: Date;
7484
+ deletedAt: Date | null;
7485
+ channelId: string;
7486
+ socialPlatformId: string;
7487
+ }[] | undefined;
7488
+ activityLogs?: {
7489
+ id: string;
7490
+ description: string;
7491
+ createdAt: Date;
7492
+ updatedAt: Date;
7493
+ deletedAt: Date | null;
7494
+ entityId: string;
7495
+ entityType: {
7496
+ id: string;
7497
+ description: string | null;
7498
+ createdAt: Date;
7499
+ updatedAt: Date;
7500
+ deletedAt: Date | null;
7501
+ entity: string;
7502
+ };
7503
+ }[] | undefined;
7504
+ }, {
7505
+ id: string;
7506
+ channel: string | null;
7507
+ address: string | null;
7508
+ name: string;
7509
+ createdAt: Date;
7510
+ updatedAt: Date;
7511
+ deletedAt: Date | null;
7512
+ customFields: {
7513
+ id: string;
7514
+ createdAt: Date;
7515
+ updatedAt: Date;
7516
+ deletedAt: Date | null;
7517
+ attribute: {
7518
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7519
+ id: string;
7520
+ position: number;
7521
+ createdAt: Date;
7522
+ updatedAt: Date;
7523
+ deletedAt: Date | null;
7524
+ systemName: string;
7525
+ displayName: string;
7526
+ isDefault: boolean;
7527
+ isArchived: boolean;
7528
+ isRequired: boolean;
7529
+ isUnique: boolean;
7530
+ };
7531
+ textValue: string | null;
7532
+ booleanValue: boolean | null;
7533
+ numberValue: number | null;
7534
+ dateValue: Date | null;
7535
+ uploads: {
7536
+ id: string;
7537
+ status: string | null;
7538
+ createdAt: Date;
7539
+ updatedAt: Date;
7540
+ deletedAt: Date | null;
7541
+ fileName: string;
7542
+ fileKey: string;
7543
+ bucketName: string;
7544
+ fileSize: number;
7545
+ fileUrl: string | null;
7546
+ }[];
7547
+ }[];
7548
+ company: {
7549
+ id: string;
7550
+ createdAt: Date;
7551
+ updatedAt: Date;
7552
+ deletedAt: Date | null;
7553
+ address?: string | null | undefined;
7554
+ name?: string | undefined;
7555
+ phone?: string | null | undefined;
7556
+ industry?: string | null | undefined;
7557
+ } | null;
7558
+ notes: string | null;
7559
+ contactProfile: string | null;
7560
+ socialProfileUrl: string | null;
7561
+ tags: {
7562
+ id: string;
7563
+ name: string;
7564
+ createdAt: Date;
7565
+ updatedAt: Date;
7566
+ deletedAt: Date | null;
7567
+ }[];
7568
+ contactEmails: {
7569
+ id: string;
7570
+ isPrimary: boolean;
7571
+ email: string;
7572
+ createdAt: Date;
7573
+ updatedAt: Date;
7574
+ deletedAt: Date | null;
7575
+ }[];
7576
+ contactPhones: {
7577
+ id: string;
7578
+ isPrimary: boolean;
7579
+ createdAt: Date;
7580
+ updatedAt: Date;
7581
+ deletedAt: Date | null;
7582
+ phone: string;
7583
+ }[];
7584
+ platformContacts?: {
7585
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
7586
+ id: string;
7587
+ metadata: {
7588
+ id: string;
7589
+ name: string;
7590
+ picture?: string | undefined;
7591
+ additionalCredentials?: any;
7592
+ };
7593
+ createdAt: Date;
7594
+ updatedAt: Date;
7595
+ deletedAt: Date | null;
7596
+ channelId: string;
7597
+ socialPlatformId: string;
7598
+ }[] | undefined;
7599
+ activityLogs?: {
7600
+ id: string;
7601
+ description: string;
7602
+ createdAt: Date;
7603
+ updatedAt: Date;
7604
+ deletedAt: Date | null;
7605
+ entityId: string;
7606
+ entityType: {
7607
+ id: string;
7608
+ description: string | null;
7609
+ createdAt: Date;
7610
+ updatedAt: Date;
7611
+ deletedAt: Date | null;
7612
+ entity: string;
7613
+ };
7614
+ }[] | undefined;
7615
+ }>;
5845
7616
  }, "strip", z.ZodTypeAny, {
7617
+ data: {
7618
+ id: string;
7619
+ channel: string | null;
7620
+ address: string | null;
7621
+ name: string;
7622
+ createdAt: Date;
7623
+ updatedAt: Date;
7624
+ deletedAt: Date | null;
7625
+ customFields: {
7626
+ id: string;
7627
+ createdAt: Date;
7628
+ updatedAt: Date;
7629
+ deletedAt: Date | null;
7630
+ attribute: {
7631
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7632
+ id: string;
7633
+ position: number;
7634
+ createdAt: Date;
7635
+ updatedAt: Date;
7636
+ deletedAt: Date | null;
7637
+ systemName: string;
7638
+ displayName: string;
7639
+ isDefault: boolean;
7640
+ isArchived: boolean;
7641
+ isRequired: boolean;
7642
+ isUnique: boolean;
7643
+ };
7644
+ textValue: string | null;
7645
+ booleanValue: boolean | null;
7646
+ numberValue: number | null;
7647
+ dateValue: Date | null;
7648
+ uploads: {
7649
+ id: string;
7650
+ status: string | null;
7651
+ createdAt: Date;
7652
+ updatedAt: Date;
7653
+ deletedAt: Date | null;
7654
+ fileName: string;
7655
+ fileKey: string;
7656
+ bucketName: string;
7657
+ fileSize: number;
7658
+ fileUrl: string | null;
7659
+ }[];
7660
+ }[];
7661
+ company: {
7662
+ id: string;
7663
+ createdAt: Date;
7664
+ updatedAt: Date;
7665
+ deletedAt: Date | null;
7666
+ address?: string | null | undefined;
7667
+ name?: string | undefined;
7668
+ phone?: string | null | undefined;
7669
+ industry?: string | null | undefined;
7670
+ } | null;
7671
+ notes: string | null;
7672
+ contactProfile: string | null;
7673
+ socialProfileUrl: string | null;
7674
+ tags: {
7675
+ id: string;
7676
+ name: string;
7677
+ createdAt: Date;
7678
+ updatedAt: Date;
7679
+ deletedAt: Date | null;
7680
+ }[];
7681
+ contactEmails: {
7682
+ id: string;
7683
+ isPrimary: boolean;
7684
+ email: string;
7685
+ createdAt: Date;
7686
+ updatedAt: Date;
7687
+ deletedAt: Date | null;
7688
+ }[];
7689
+ contactPhones: {
7690
+ id: string;
7691
+ isPrimary: boolean;
7692
+ createdAt: Date;
7693
+ updatedAt: Date;
7694
+ deletedAt: Date | null;
7695
+ phone: string;
7696
+ }[];
7697
+ platformContacts?: {
7698
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
7699
+ id: string;
7700
+ metadata: {
7701
+ id: string;
7702
+ name: string;
7703
+ picture?: string | undefined;
7704
+ additionalCredentials?: any;
7705
+ };
7706
+ createdAt: Date;
7707
+ updatedAt: Date;
7708
+ deletedAt: Date | null;
7709
+ channelId: string;
7710
+ socialPlatformId: string;
7711
+ }[] | undefined;
7712
+ activityLogs?: {
7713
+ id: string;
7714
+ description: string;
7715
+ createdAt: Date;
7716
+ updatedAt: Date;
7717
+ deletedAt: Date | null;
7718
+ entityId: string;
7719
+ entityType: {
7720
+ id: string;
7721
+ description: string | null;
7722
+ createdAt: Date;
7723
+ updatedAt: Date;
7724
+ deletedAt: Date | null;
7725
+ entity: string;
7726
+ };
7727
+ }[] | undefined;
7728
+ };
5846
7729
  requestId: string;
5847
7730
  }, {
7731
+ data: {
7732
+ id: string;
7733
+ channel: string | null;
7734
+ address: string | null;
7735
+ name: string;
7736
+ createdAt: Date;
7737
+ updatedAt: Date;
7738
+ deletedAt: Date | null;
7739
+ customFields: {
7740
+ id: string;
7741
+ createdAt: Date;
7742
+ updatedAt: Date;
7743
+ deletedAt: Date | null;
7744
+ attribute: {
7745
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7746
+ id: string;
7747
+ position: number;
7748
+ createdAt: Date;
7749
+ updatedAt: Date;
7750
+ deletedAt: Date | null;
7751
+ systemName: string;
7752
+ displayName: string;
7753
+ isDefault: boolean;
7754
+ isArchived: boolean;
7755
+ isRequired: boolean;
7756
+ isUnique: boolean;
7757
+ };
7758
+ textValue: string | null;
7759
+ booleanValue: boolean | null;
7760
+ numberValue: number | null;
7761
+ dateValue: Date | null;
7762
+ uploads: {
7763
+ id: string;
7764
+ status: string | null;
7765
+ createdAt: Date;
7766
+ updatedAt: Date;
7767
+ deletedAt: Date | null;
7768
+ fileName: string;
7769
+ fileKey: string;
7770
+ bucketName: string;
7771
+ fileSize: number;
7772
+ fileUrl: string | null;
7773
+ }[];
7774
+ }[];
7775
+ company: {
7776
+ id: string;
7777
+ createdAt: Date;
7778
+ updatedAt: Date;
7779
+ deletedAt: Date | null;
7780
+ address?: string | null | undefined;
7781
+ name?: string | undefined;
7782
+ phone?: string | null | undefined;
7783
+ industry?: string | null | undefined;
7784
+ } | null;
7785
+ notes: string | null;
7786
+ contactProfile: string | null;
7787
+ socialProfileUrl: string | null;
7788
+ tags: {
7789
+ id: string;
7790
+ name: string;
7791
+ createdAt: Date;
7792
+ updatedAt: Date;
7793
+ deletedAt: Date | null;
7794
+ }[];
7795
+ contactEmails: {
7796
+ id: string;
7797
+ isPrimary: boolean;
7798
+ email: string;
7799
+ createdAt: Date;
7800
+ updatedAt: Date;
7801
+ deletedAt: Date | null;
7802
+ }[];
7803
+ contactPhones: {
7804
+ id: string;
7805
+ isPrimary: boolean;
7806
+ createdAt: Date;
7807
+ updatedAt: Date;
7808
+ deletedAt: Date | null;
7809
+ phone: string;
7810
+ }[];
7811
+ platformContacts?: {
7812
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
7813
+ id: string;
7814
+ metadata: {
7815
+ id: string;
7816
+ name: string;
7817
+ picture?: string | undefined;
7818
+ additionalCredentials?: any;
7819
+ };
7820
+ createdAt: Date;
7821
+ updatedAt: Date;
7822
+ deletedAt: Date | null;
7823
+ channelId: string;
7824
+ socialPlatformId: string;
7825
+ }[] | undefined;
7826
+ activityLogs?: {
7827
+ id: string;
7828
+ description: string;
7829
+ createdAt: Date;
7830
+ updatedAt: Date;
7831
+ deletedAt: Date | null;
7832
+ entityId: string;
7833
+ entityType: {
7834
+ id: string;
7835
+ description: string | null;
7836
+ createdAt: Date;
7837
+ updatedAt: Date;
7838
+ deletedAt: Date | null;
7839
+ entity: string;
7840
+ };
7841
+ }[] | undefined;
7842
+ };
5848
7843
  requestId: string;
5849
7844
  }>;
5850
7845
  400: z.ZodObject<{