@kl1/contracts 1.4.13 → 1.4.14

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.
@@ -26,7 +26,7 @@ export type TelephonyQueue = z.infer<typeof TelephonyQueueSchema>;
26
26
  export type TelephonyQueueList = z.infer<typeof TelephonyQueueListSchmea>;
27
27
  export type TelephonyExtension = z.infer<typeof TelephonyExtensionSchema>;
28
28
  export type TelephonyExtensionList = z.infer<typeof TelephonyExtensionListSchema>;
29
- export declare const telephonyCdrContract: {
29
+ export declare const laravelServiceTelephonyCdr: {
30
30
  findAll: {
31
31
  summary: "Get all telephony cdr.";
32
32
  method: "GET";
@@ -2888,2886 +2888,7 @@ export declare const telephonyCdrContract: {
2888
2888
  error?: any;
2889
2889
  }>;
2890
2890
  };
2891
- path: "ms/telephony-cdr/";
2892
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2893
- 'x-tenant': z.ZodString;
2894
- 'x-service-token': z.ZodString;
2895
- 'x-code': z.ZodOptional<z.ZodString>;
2896
- 'x-client-timezone': z.ZodDefault<z.ZodString>;
2897
- }, "strip", z.ZodTypeAny, {
2898
- 'x-tenant': string;
2899
- 'x-service-token': string;
2900
- 'x-client-timezone': string;
2901
- 'x-code'?: string | undefined;
2902
- }, {
2903
- 'x-tenant': string;
2904
- 'x-service-token': string;
2905
- 'x-code'?: string | undefined;
2906
- 'x-client-timezone'?: string | undefined;
2907
- }>>>;
2908
- };
2909
- getRecordings: {
2910
- summary: "Get all telephony cdr.";
2911
- method: "GET";
2912
- query: z.ZodObject<{
2913
- page: z.ZodDefault<z.ZodNumber>;
2914
- pageSize: z.ZodDefault<z.ZodNumber>;
2915
- selectedDate: z.ZodOptional<z.ZodString>;
2916
- type: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2917
- status: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2918
- callFrom: z.ZodOptional<z.ZodString>;
2919
- callTo: z.ZodOptional<z.ZodString>;
2920
- trunk: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2921
- userId: z.ZodOptional<z.ZodString>;
2922
- queueStatus: z.ZodOptional<z.ZodString>;
2923
- agentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2924
- agentCallsOnly: z.ZodOptional<z.ZodBoolean>;
2925
- contactId: z.ZodOptional<z.ZodString>;
2926
- }, "strip", z.ZodTypeAny, {
2927
- page: number;
2928
- pageSize: number;
2929
- selectedDate?: string | undefined;
2930
- type?: string[] | undefined;
2931
- status?: string[] | undefined;
2932
- callFrom?: string | undefined;
2933
- callTo?: string | undefined;
2934
- trunk?: string[] | undefined;
2935
- userId?: string | undefined;
2936
- queueStatus?: string | undefined;
2937
- agentIds?: string[] | undefined;
2938
- agentCallsOnly?: boolean | undefined;
2939
- contactId?: string | undefined;
2940
- }, {
2941
- page?: number | undefined;
2942
- pageSize?: number | undefined;
2943
- selectedDate?: string | undefined;
2944
- type?: string[] | undefined;
2945
- status?: string[] | undefined;
2946
- callFrom?: string | undefined;
2947
- callTo?: string | undefined;
2948
- trunk?: string[] | undefined;
2949
- userId?: string | undefined;
2950
- queueStatus?: string | undefined;
2951
- agentIds?: string[] | undefined;
2952
- agentCallsOnly?: boolean | undefined;
2953
- contactId?: string | undefined;
2954
- }>;
2955
- responses: {
2956
- 200: z.ZodObject<{
2957
- requestId: z.ZodString;
2958
- total: z.ZodNumber;
2959
- page: z.ZodNumber;
2960
- pageSize: z.ZodNumber;
2961
- telephonyCdrs: z.ZodArray<z.ZodObject<{
2962
- id: z.ZodString;
2963
- createdAt: z.ZodDate;
2964
- updatedAt: z.ZodDate;
2965
- deletedAt: z.ZodNullable<z.ZodDate>;
2966
- uniqueCallId: z.ZodString;
2967
- timeStart: z.ZodString;
2968
- callFrom: z.ZodString;
2969
- callTo: z.ZodString;
2970
- callDuration: z.ZodNullable<z.ZodNumber>;
2971
- talkDuration: z.ZodNullable<z.ZodNumber>;
2972
- srcTrunkName: z.ZodNullable<z.ZodString>;
2973
- dstTrunkName: z.ZodNullable<z.ZodString>;
2974
- contact: z.ZodOptional<z.ZodObject<{
2975
- id: z.ZodString;
2976
- createdAt: z.ZodDate;
2977
- updatedAt: z.ZodDate;
2978
- deletedAt: z.ZodNullable<z.ZodDate>;
2979
- name: z.ZodString;
2980
- address: z.ZodNullable<z.ZodString>;
2981
- channel: z.ZodNullable<z.ZodString>;
2982
- notes: z.ZodNullable<z.ZodString>;
2983
- contactProfile: z.ZodNullable<z.ZodString>;
2984
- socialProfileUrl: z.ZodNullable<z.ZodString>;
2985
- tags: z.ZodArray<z.ZodObject<{
2986
- id: z.ZodString;
2987
- createdAt: z.ZodDate;
2988
- updatedAt: z.ZodDate;
2989
- deletedAt: z.ZodNullable<z.ZodDate>;
2990
- name: z.ZodString;
2991
- }, "strip", z.ZodTypeAny, {
2992
- name: string;
2993
- id: string;
2994
- createdAt: Date;
2995
- updatedAt: Date;
2996
- deletedAt: Date | null;
2997
- }, {
2998
- name: string;
2999
- id: string;
3000
- createdAt: Date;
3001
- updatedAt: Date;
3002
- deletedAt: Date | null;
3003
- }>, "many">;
3004
- company: z.ZodNullable<z.ZodObject<Omit<{
3005
- id: z.ZodString;
3006
- createdAt: z.ZodDate;
3007
- updatedAt: z.ZodDate;
3008
- deletedAt: z.ZodNullable<z.ZodDate>;
3009
- name: z.ZodOptional<z.ZodString>;
3010
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3011
- address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3012
- industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3013
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3014
- id: z.ZodString;
3015
- createdAt: z.ZodDate;
3016
- updatedAt: z.ZodDate;
3017
- deletedAt: z.ZodNullable<z.ZodDate>;
3018
- textValue: z.ZodNullable<z.ZodString>;
3019
- booleanValue: z.ZodNullable<z.ZodBoolean>;
3020
- numberValue: z.ZodNullable<z.ZodNumber>;
3021
- dateValue: z.ZodNullable<z.ZodDate>;
3022
- attribute: z.ZodObject<Omit<{
3023
- id: z.ZodString;
3024
- createdAt: z.ZodDate;
3025
- updatedAt: z.ZodDate;
3026
- deletedAt: z.ZodNullable<z.ZodDate>;
3027
- systemName: z.ZodString;
3028
- displayName: z.ZodString;
3029
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3030
- position: z.ZodNumber;
3031
- isDefault: z.ZodBoolean;
3032
- isArchived: z.ZodBoolean;
3033
- isRequired: z.ZodBoolean;
3034
- isUnique: z.ZodBoolean;
3035
- options: z.ZodArray<z.ZodObject<{
3036
- position: z.ZodNumber;
3037
- value: z.ZodString;
3038
- label: z.ZodString;
3039
- isDefault: z.ZodBoolean;
3040
- id: z.ZodString;
3041
- }, "strip", z.ZodTypeAny, {
3042
- id: string;
3043
- position: number;
3044
- value: string;
3045
- label: string;
3046
- isDefault: boolean;
3047
- }, {
3048
- id: string;
3049
- position: number;
3050
- value: string;
3051
- label: string;
3052
- isDefault: boolean;
3053
- }>, "many">;
3054
- group: z.ZodObject<{
3055
- id: z.ZodString;
3056
- createdAt: z.ZodDate;
3057
- updatedAt: z.ZodDate;
3058
- deletedAt: z.ZodNullable<z.ZodDate>;
3059
- systemName: z.ZodString;
3060
- displayName: z.ZodString;
3061
- }, "strip", z.ZodTypeAny, {
3062
- id: string;
3063
- createdAt: Date;
3064
- updatedAt: Date;
3065
- deletedAt: Date | null;
3066
- systemName: string;
3067
- displayName: string;
3068
- }, {
3069
- id: string;
3070
- createdAt: Date;
3071
- updatedAt: Date;
3072
- deletedAt: Date | null;
3073
- systemName: string;
3074
- displayName: string;
3075
- }>;
3076
- }, "options" | "group">, "strip", z.ZodTypeAny, {
3077
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3078
- id: string;
3079
- position: number;
3080
- createdAt: Date;
3081
- updatedAt: Date;
3082
- deletedAt: Date | null;
3083
- systemName: string;
3084
- displayName: string;
3085
- isDefault: boolean;
3086
- isArchived: boolean;
3087
- isRequired: boolean;
3088
- isUnique: boolean;
3089
- }, {
3090
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3091
- id: string;
3092
- position: number;
3093
- createdAt: Date;
3094
- updatedAt: Date;
3095
- deletedAt: Date | null;
3096
- systemName: string;
3097
- displayName: string;
3098
- isDefault: boolean;
3099
- isArchived: boolean;
3100
- isRequired: boolean;
3101
- isUnique: boolean;
3102
- }>;
3103
- }, "strip", z.ZodTypeAny, {
3104
- id: string;
3105
- createdAt: Date;
3106
- updatedAt: Date;
3107
- deletedAt: Date | null;
3108
- attribute: {
3109
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3110
- id: string;
3111
- position: number;
3112
- createdAt: Date;
3113
- updatedAt: Date;
3114
- deletedAt: Date | null;
3115
- systemName: string;
3116
- displayName: string;
3117
- isDefault: boolean;
3118
- isArchived: boolean;
3119
- isRequired: boolean;
3120
- isUnique: boolean;
3121
- };
3122
- textValue: string | null;
3123
- booleanValue: boolean | null;
3124
- numberValue: number | null;
3125
- dateValue: Date | null;
3126
- }, {
3127
- id: string;
3128
- createdAt: Date;
3129
- updatedAt: Date;
3130
- deletedAt: Date | null;
3131
- attribute: {
3132
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3133
- id: string;
3134
- position: number;
3135
- createdAt: Date;
3136
- updatedAt: Date;
3137
- deletedAt: Date | null;
3138
- systemName: string;
3139
- displayName: string;
3140
- isDefault: boolean;
3141
- isArchived: boolean;
3142
- isRequired: boolean;
3143
- isUnique: boolean;
3144
- };
3145
- textValue: string | null;
3146
- booleanValue: boolean | null;
3147
- numberValue: number | null;
3148
- dateValue: Date | null;
3149
- }>, "many">>;
3150
- }, "customFields">, "strip", z.ZodTypeAny, {
3151
- id: string;
3152
- createdAt: Date;
3153
- updatedAt: Date;
3154
- deletedAt: Date | null;
3155
- name?: string | undefined;
3156
- address?: string | null | undefined;
3157
- phone?: string | null | undefined;
3158
- industry?: string | null | undefined;
3159
- }, {
3160
- id: string;
3161
- createdAt: Date;
3162
- updatedAt: Date;
3163
- deletedAt: Date | null;
3164
- name?: string | undefined;
3165
- address?: string | null | undefined;
3166
- phone?: string | null | undefined;
3167
- industry?: string | null | undefined;
3168
- }>>;
3169
- platformContacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3170
- id: z.ZodString;
3171
- createdAt: z.ZodDate;
3172
- updatedAt: z.ZodDate;
3173
- deletedAt: z.ZodNullable<z.ZodDate>;
3174
- channelId: z.ZodString;
3175
- socialPlatformId: z.ZodString;
3176
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
3177
- metadata: z.ZodObject<{
3178
- id: z.ZodString;
3179
- name: z.ZodString;
3180
- picture: z.ZodOptional<z.ZodString>;
3181
- additionalCredentials: z.ZodAny;
3182
- }, "strip", z.ZodTypeAny, {
3183
- name: string;
3184
- id: string;
3185
- picture?: string | undefined;
3186
- additionalCredentials?: any;
3187
- }, {
3188
- name: string;
3189
- id: string;
3190
- picture?: string | undefined;
3191
- additionalCredentials?: any;
3192
- }>;
3193
- }, "strip", z.ZodTypeAny, {
3194
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3195
- id: string;
3196
- metadata: {
3197
- name: string;
3198
- id: string;
3199
- picture?: string | undefined;
3200
- additionalCredentials?: any;
3201
- };
3202
- createdAt: Date;
3203
- updatedAt: Date;
3204
- deletedAt: Date | null;
3205
- channelId: string;
3206
- socialPlatformId: string;
3207
- }, {
3208
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3209
- id: string;
3210
- metadata: {
3211
- name: string;
3212
- id: string;
3213
- picture?: string | undefined;
3214
- additionalCredentials?: any;
3215
- };
3216
- createdAt: Date;
3217
- updatedAt: Date;
3218
- deletedAt: Date | null;
3219
- channelId: string;
3220
- socialPlatformId: string;
3221
- }>, "many">>;
3222
- customFields: z.ZodArray<z.ZodObject<{
3223
- id: z.ZodString;
3224
- createdAt: z.ZodDate;
3225
- updatedAt: z.ZodDate;
3226
- deletedAt: z.ZodNullable<z.ZodDate>;
3227
- textValue: z.ZodNullable<z.ZodString>;
3228
- booleanValue: z.ZodNullable<z.ZodBoolean>;
3229
- numberValue: z.ZodNullable<z.ZodNumber>;
3230
- dateValue: z.ZodNullable<z.ZodDate>;
3231
- attribute: z.ZodObject<Omit<{
3232
- id: z.ZodString;
3233
- createdAt: z.ZodDate;
3234
- updatedAt: z.ZodDate;
3235
- deletedAt: z.ZodNullable<z.ZodDate>;
3236
- systemName: z.ZodString;
3237
- displayName: z.ZodString;
3238
- type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3239
- position: z.ZodNumber;
3240
- isDefault: z.ZodBoolean;
3241
- isArchived: z.ZodBoolean;
3242
- isRequired: z.ZodBoolean;
3243
- isUnique: z.ZodBoolean;
3244
- options: z.ZodArray<z.ZodObject<{
3245
- position: z.ZodNumber;
3246
- value: z.ZodString;
3247
- label: z.ZodString;
3248
- isDefault: z.ZodBoolean;
3249
- id: z.ZodString;
3250
- }, "strip", z.ZodTypeAny, {
3251
- id: string;
3252
- position: number;
3253
- value: string;
3254
- label: string;
3255
- isDefault: boolean;
3256
- }, {
3257
- id: string;
3258
- position: number;
3259
- value: string;
3260
- label: string;
3261
- isDefault: boolean;
3262
- }>, "many">;
3263
- group: z.ZodObject<{
3264
- id: z.ZodString;
3265
- createdAt: z.ZodDate;
3266
- updatedAt: z.ZodDate;
3267
- deletedAt: z.ZodNullable<z.ZodDate>;
3268
- systemName: z.ZodString;
3269
- displayName: z.ZodString;
3270
- }, "strip", z.ZodTypeAny, {
3271
- id: string;
3272
- createdAt: Date;
3273
- updatedAt: Date;
3274
- deletedAt: Date | null;
3275
- systemName: string;
3276
- displayName: string;
3277
- }, {
3278
- id: string;
3279
- createdAt: Date;
3280
- updatedAt: Date;
3281
- deletedAt: Date | null;
3282
- systemName: string;
3283
- displayName: string;
3284
- }>;
3285
- }, "options" | "group">, "strip", z.ZodTypeAny, {
3286
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3287
- id: string;
3288
- position: number;
3289
- createdAt: Date;
3290
- updatedAt: Date;
3291
- deletedAt: Date | null;
3292
- systemName: string;
3293
- displayName: string;
3294
- isDefault: boolean;
3295
- isArchived: boolean;
3296
- isRequired: boolean;
3297
- isUnique: boolean;
3298
- }, {
3299
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3300
- id: string;
3301
- position: number;
3302
- createdAt: Date;
3303
- updatedAt: Date;
3304
- deletedAt: Date | null;
3305
- systemName: string;
3306
- displayName: string;
3307
- isDefault: boolean;
3308
- isArchived: boolean;
3309
- isRequired: boolean;
3310
- isUnique: boolean;
3311
- }>;
3312
- uploads: z.ZodArray<z.ZodObject<{
3313
- id: z.ZodString;
3314
- createdAt: z.ZodDate;
3315
- updatedAt: z.ZodDate;
3316
- deletedAt: z.ZodNullable<z.ZodDate>;
3317
- bucketName: z.ZodString;
3318
- fileName: z.ZodString;
3319
- fileSize: z.ZodNumber;
3320
- fileKey: z.ZodString;
3321
- fileUrl: z.ZodNullable<z.ZodString>;
3322
- status: z.ZodNullable<z.ZodString>;
3323
- }, "strip", z.ZodTypeAny, {
3324
- id: string;
3325
- status: string | null;
3326
- createdAt: Date;
3327
- updatedAt: Date;
3328
- deletedAt: Date | null;
3329
- fileName: string;
3330
- fileKey: string;
3331
- bucketName: string;
3332
- fileSize: number;
3333
- fileUrl: string | null;
3334
- }, {
3335
- id: string;
3336
- status: string | null;
3337
- createdAt: Date;
3338
- updatedAt: Date;
3339
- deletedAt: Date | null;
3340
- fileName: string;
3341
- fileKey: string;
3342
- bucketName: string;
3343
- fileSize: number;
3344
- fileUrl: string | null;
3345
- }>, "many">;
3346
- }, "strip", z.ZodTypeAny, {
3347
- id: string;
3348
- createdAt: Date;
3349
- updatedAt: Date;
3350
- deletedAt: Date | null;
3351
- attribute: {
3352
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3353
- id: string;
3354
- position: number;
3355
- createdAt: Date;
3356
- updatedAt: Date;
3357
- deletedAt: Date | null;
3358
- systemName: string;
3359
- displayName: string;
3360
- isDefault: boolean;
3361
- isArchived: boolean;
3362
- isRequired: boolean;
3363
- isUnique: boolean;
3364
- };
3365
- textValue: string | null;
3366
- booleanValue: boolean | null;
3367
- numberValue: number | null;
3368
- dateValue: Date | null;
3369
- uploads: {
3370
- id: string;
3371
- status: string | null;
3372
- createdAt: Date;
3373
- updatedAt: Date;
3374
- deletedAt: Date | null;
3375
- fileName: string;
3376
- fileKey: string;
3377
- bucketName: string;
3378
- fileSize: number;
3379
- fileUrl: string | null;
3380
- }[];
3381
- }, {
3382
- id: string;
3383
- createdAt: Date;
3384
- updatedAt: Date;
3385
- deletedAt: Date | null;
3386
- attribute: {
3387
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3388
- id: string;
3389
- position: number;
3390
- createdAt: Date;
3391
- updatedAt: Date;
3392
- deletedAt: Date | null;
3393
- systemName: string;
3394
- displayName: string;
3395
- isDefault: boolean;
3396
- isArchived: boolean;
3397
- isRequired: boolean;
3398
- isUnique: boolean;
3399
- };
3400
- textValue: string | null;
3401
- booleanValue: boolean | null;
3402
- numberValue: number | null;
3403
- dateValue: Date | null;
3404
- uploads: {
3405
- id: string;
3406
- status: string | null;
3407
- createdAt: Date;
3408
- updatedAt: Date;
3409
- deletedAt: Date | null;
3410
- fileName: string;
3411
- fileKey: string;
3412
- bucketName: string;
3413
- fileSize: number;
3414
- fileUrl: string | null;
3415
- }[];
3416
- }>, "many">;
3417
- contactEmails: z.ZodArray<z.ZodObject<{
3418
- id: z.ZodString;
3419
- createdAt: z.ZodDate;
3420
- updatedAt: z.ZodDate;
3421
- deletedAt: z.ZodNullable<z.ZodDate>;
3422
- email: z.ZodString;
3423
- isPrimary: z.ZodBoolean;
3424
- }, "strip", z.ZodTypeAny, {
3425
- id: string;
3426
- isPrimary: boolean;
3427
- email: string;
3428
- createdAt: Date;
3429
- updatedAt: Date;
3430
- deletedAt: Date | null;
3431
- }, {
3432
- id: string;
3433
- isPrimary: boolean;
3434
- email: string;
3435
- createdAt: Date;
3436
- updatedAt: Date;
3437
- deletedAt: Date | null;
3438
- }>, "many">;
3439
- contactPhones: z.ZodArray<z.ZodObject<{
3440
- id: z.ZodString;
3441
- createdAt: z.ZodDate;
3442
- updatedAt: z.ZodDate;
3443
- deletedAt: z.ZodNullable<z.ZodDate>;
3444
- phone: z.ZodString;
3445
- isPrimary: z.ZodBoolean;
3446
- }, "strip", z.ZodTypeAny, {
3447
- id: string;
3448
- isPrimary: boolean;
3449
- createdAt: Date;
3450
- updatedAt: Date;
3451
- deletedAt: Date | null;
3452
- phone: string;
3453
- }, {
3454
- id: string;
3455
- isPrimary: boolean;
3456
- createdAt: Date;
3457
- updatedAt: Date;
3458
- deletedAt: Date | null;
3459
- phone: string;
3460
- }>, "many">;
3461
- activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3462
- id: z.ZodString;
3463
- createdAt: z.ZodDate;
3464
- updatedAt: z.ZodDate;
3465
- deletedAt: z.ZodNullable<z.ZodDate>;
3466
- entityId: z.ZodString;
3467
- description: z.ZodString;
3468
- entityType: z.ZodObject<{
3469
- id: z.ZodString;
3470
- createdAt: z.ZodDate;
3471
- updatedAt: z.ZodDate;
3472
- deletedAt: z.ZodNullable<z.ZodDate>;
3473
- entity: z.ZodString;
3474
- description: z.ZodNullable<z.ZodString>;
3475
- }, "strip", z.ZodTypeAny, {
3476
- id: string;
3477
- description: string | null;
3478
- createdAt: Date;
3479
- updatedAt: Date;
3480
- deletedAt: Date | null;
3481
- entity: string;
3482
- }, {
3483
- id: string;
3484
- description: string | null;
3485
- createdAt: Date;
3486
- updatedAt: Date;
3487
- deletedAt: Date | null;
3488
- entity: string;
3489
- }>;
3490
- }, "strip", z.ZodTypeAny, {
3491
- id: string;
3492
- description: string;
3493
- createdAt: Date;
3494
- updatedAt: Date;
3495
- deletedAt: Date | null;
3496
- entityId: string;
3497
- entityType: {
3498
- id: string;
3499
- description: string | null;
3500
- createdAt: Date;
3501
- updatedAt: Date;
3502
- deletedAt: Date | null;
3503
- entity: string;
3504
- };
3505
- }, {
3506
- id: string;
3507
- description: string;
3508
- createdAt: Date;
3509
- updatedAt: Date;
3510
- deletedAt: Date | null;
3511
- entityId: string;
3512
- entityType: {
3513
- id: string;
3514
- description: string | null;
3515
- createdAt: Date;
3516
- updatedAt: Date;
3517
- deletedAt: Date | null;
3518
- entity: string;
3519
- };
3520
- }>, "many">>;
3521
- }, "strip", z.ZodTypeAny, {
3522
- name: string;
3523
- id: string;
3524
- channel: string | null;
3525
- address: string | null;
3526
- createdAt: Date;
3527
- updatedAt: Date;
3528
- deletedAt: Date | null;
3529
- customFields: {
3530
- id: string;
3531
- createdAt: Date;
3532
- updatedAt: Date;
3533
- deletedAt: Date | null;
3534
- attribute: {
3535
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3536
- id: string;
3537
- position: number;
3538
- createdAt: Date;
3539
- updatedAt: Date;
3540
- deletedAt: Date | null;
3541
- systemName: string;
3542
- displayName: string;
3543
- isDefault: boolean;
3544
- isArchived: boolean;
3545
- isRequired: boolean;
3546
- isUnique: boolean;
3547
- };
3548
- textValue: string | null;
3549
- booleanValue: boolean | null;
3550
- numberValue: number | null;
3551
- dateValue: Date | null;
3552
- uploads: {
3553
- id: string;
3554
- status: string | null;
3555
- createdAt: Date;
3556
- updatedAt: Date;
3557
- deletedAt: Date | null;
3558
- fileName: string;
3559
- fileKey: string;
3560
- bucketName: string;
3561
- fileSize: number;
3562
- fileUrl: string | null;
3563
- }[];
3564
- }[];
3565
- company: {
3566
- id: string;
3567
- createdAt: Date;
3568
- updatedAt: Date;
3569
- deletedAt: Date | null;
3570
- name?: string | undefined;
3571
- address?: string | null | undefined;
3572
- phone?: string | null | undefined;
3573
- industry?: string | null | undefined;
3574
- } | null;
3575
- notes: string | null;
3576
- contactProfile: string | null;
3577
- socialProfileUrl: string | null;
3578
- tags: {
3579
- name: string;
3580
- id: string;
3581
- createdAt: Date;
3582
- updatedAt: Date;
3583
- deletedAt: Date | null;
3584
- }[];
3585
- contactEmails: {
3586
- id: string;
3587
- isPrimary: boolean;
3588
- email: string;
3589
- createdAt: Date;
3590
- updatedAt: Date;
3591
- deletedAt: Date | null;
3592
- }[];
3593
- contactPhones: {
3594
- id: string;
3595
- isPrimary: boolean;
3596
- createdAt: Date;
3597
- updatedAt: Date;
3598
- deletedAt: Date | null;
3599
- phone: string;
3600
- }[];
3601
- platformContacts?: {
3602
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3603
- id: string;
3604
- metadata: {
3605
- name: string;
3606
- id: string;
3607
- picture?: string | undefined;
3608
- additionalCredentials?: any;
3609
- };
3610
- createdAt: Date;
3611
- updatedAt: Date;
3612
- deletedAt: Date | null;
3613
- channelId: string;
3614
- socialPlatformId: string;
3615
- }[] | undefined;
3616
- activityLogs?: {
3617
- id: string;
3618
- description: string;
3619
- createdAt: Date;
3620
- updatedAt: Date;
3621
- deletedAt: Date | null;
3622
- entityId: string;
3623
- entityType: {
3624
- id: string;
3625
- description: string | null;
3626
- createdAt: Date;
3627
- updatedAt: Date;
3628
- deletedAt: Date | null;
3629
- entity: string;
3630
- };
3631
- }[] | undefined;
3632
- }, {
3633
- name: string;
3634
- id: string;
3635
- channel: string | null;
3636
- address: string | null;
3637
- createdAt: Date;
3638
- updatedAt: Date;
3639
- deletedAt: Date | null;
3640
- customFields: {
3641
- id: string;
3642
- createdAt: Date;
3643
- updatedAt: Date;
3644
- deletedAt: Date | null;
3645
- attribute: {
3646
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3647
- id: string;
3648
- position: number;
3649
- createdAt: Date;
3650
- updatedAt: Date;
3651
- deletedAt: Date | null;
3652
- systemName: string;
3653
- displayName: string;
3654
- isDefault: boolean;
3655
- isArchived: boolean;
3656
- isRequired: boolean;
3657
- isUnique: boolean;
3658
- };
3659
- textValue: string | null;
3660
- booleanValue: boolean | null;
3661
- numberValue: number | null;
3662
- dateValue: Date | null;
3663
- uploads: {
3664
- id: string;
3665
- status: string | null;
3666
- createdAt: Date;
3667
- updatedAt: Date;
3668
- deletedAt: Date | null;
3669
- fileName: string;
3670
- fileKey: string;
3671
- bucketName: string;
3672
- fileSize: number;
3673
- fileUrl: string | null;
3674
- }[];
3675
- }[];
3676
- company: {
3677
- id: string;
3678
- createdAt: Date;
3679
- updatedAt: Date;
3680
- deletedAt: Date | null;
3681
- name?: string | undefined;
3682
- address?: string | null | undefined;
3683
- phone?: string | null | undefined;
3684
- industry?: string | null | undefined;
3685
- } | null;
3686
- notes: string | null;
3687
- contactProfile: string | null;
3688
- socialProfileUrl: string | null;
3689
- tags: {
3690
- name: string;
3691
- id: string;
3692
- createdAt: Date;
3693
- updatedAt: Date;
3694
- deletedAt: Date | null;
3695
- }[];
3696
- contactEmails: {
3697
- id: string;
3698
- isPrimary: boolean;
3699
- email: string;
3700
- createdAt: Date;
3701
- updatedAt: Date;
3702
- deletedAt: Date | null;
3703
- }[];
3704
- contactPhones: {
3705
- id: string;
3706
- isPrimary: boolean;
3707
- createdAt: Date;
3708
- updatedAt: Date;
3709
- deletedAt: Date | null;
3710
- phone: string;
3711
- }[];
3712
- platformContacts?: {
3713
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3714
- id: string;
3715
- metadata: {
3716
- name: string;
3717
- id: string;
3718
- picture?: string | undefined;
3719
- additionalCredentials?: any;
3720
- };
3721
- createdAt: Date;
3722
- updatedAt: Date;
3723
- deletedAt: Date | null;
3724
- channelId: string;
3725
- socialPlatformId: string;
3726
- }[] | undefined;
3727
- activityLogs?: {
3728
- id: string;
3729
- description: string;
3730
- createdAt: Date;
3731
- updatedAt: Date;
3732
- deletedAt: Date | null;
3733
- entityId: string;
3734
- entityType: {
3735
- id: string;
3736
- description: string | null;
3737
- createdAt: Date;
3738
- updatedAt: Date;
3739
- deletedAt: Date | null;
3740
- entity: string;
3741
- };
3742
- }[] | undefined;
3743
- }>>;
3744
- telephonyQueue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3745
- id: z.ZodString;
3746
- createdAt: z.ZodDate;
3747
- updatedAt: z.ZodDate;
3748
- deletedAt: z.ZodNullable<z.ZodDate>;
3749
- queueId: z.ZodNumber;
3750
- queueName: z.ZodString;
3751
- queueNumber: z.ZodString;
3752
- maximumWaitingTime: z.ZodNumber;
3753
- }, "strip", z.ZodTypeAny, {
3754
- id: string;
3755
- createdAt: Date;
3756
- updatedAt: Date;
3757
- deletedAt: Date | null;
3758
- queueId: number;
3759
- queueName: string;
3760
- queueNumber: string;
3761
- maximumWaitingTime: number;
3762
- }, {
3763
- id: string;
3764
- createdAt: Date;
3765
- updatedAt: Date;
3766
- deletedAt: Date | null;
3767
- queueId: number;
3768
- queueName: string;
3769
- queueNumber: string;
3770
- maximumWaitingTime: number;
3771
- }>>>;
3772
- pinCode: z.ZodNullable<z.ZodString>;
3773
- status: z.ZodString;
3774
- type: z.ZodString;
3775
- recording: z.ZodNullable<z.ZodString>;
3776
- didNumber: z.ZodNullable<z.ZodString>;
3777
- agentRingTime: z.ZodNullable<z.ZodNumber>;
3778
- uploadId: z.ZodNullable<z.ZodString>;
3779
- serialNumber: z.ZodNullable<z.ZodString>;
3780
- upload: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3781
- id: z.ZodString;
3782
- createdAt: z.ZodDate;
3783
- updatedAt: z.ZodDate;
3784
- deletedAt: z.ZodNullable<z.ZodDate>;
3785
- bucketName: z.ZodString;
3786
- fileName: z.ZodString;
3787
- fileSize: z.ZodNumber;
3788
- fileKey: z.ZodString;
3789
- fileUrl: z.ZodNullable<z.ZodString>;
3790
- status: z.ZodNullable<z.ZodString>;
3791
- }, "strip", z.ZodTypeAny, {
3792
- id: string;
3793
- status: string | null;
3794
- createdAt: Date;
3795
- updatedAt: Date;
3796
- deletedAt: Date | null;
3797
- fileName: string;
3798
- fileKey: string;
3799
- bucketName: string;
3800
- fileSize: number;
3801
- fileUrl: string | null;
3802
- }, {
3803
- id: string;
3804
- status: string | null;
3805
- createdAt: Date;
3806
- updatedAt: Date;
3807
- deletedAt: Date | null;
3808
- fileName: string;
3809
- fileKey: string;
3810
- bucketName: string;
3811
- fileSize: number;
3812
- fileUrl: string | null;
3813
- }>>>;
3814
- callParticipants: z.ZodNullable<z.ZodObject<{
3815
- callTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3816
- id: z.ZodString;
3817
- user: z.ZodNullable<z.ZodObject<Omit<{
3818
- name: z.ZodString;
3819
- id: z.ZodString;
3820
- address: z.ZodNullable<z.ZodString>;
3821
- email: z.ZodString;
3822
- createdAt: z.ZodDate;
3823
- updatedAt: z.ZodDate;
3824
- deletedAt: z.ZodNullable<z.ZodDate>;
3825
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3826
- password: z.ZodString;
3827
- phone: z.ZodNullable<z.ZodString>;
3828
- notificationCount: z.ZodNullable<z.ZodNumber>;
3829
- roles: z.ZodArray<z.ZodObject<{
3830
- id: z.ZodString;
3831
- createdAt: z.ZodDate;
3832
- updatedAt: z.ZodDate;
3833
- deletedAt: z.ZodNullable<z.ZodDate>;
3834
- systemName: z.ZodString;
3835
- displayName: z.ZodString;
3836
- description: z.ZodNullable<z.ZodString>;
3837
- permissions: z.ZodArray<z.ZodObject<{
3838
- id: z.ZodString;
3839
- createdAt: z.ZodDate;
3840
- updatedAt: z.ZodDate;
3841
- deletedAt: z.ZodNullable<z.ZodDate>;
3842
- systemName: z.ZodString;
3843
- displayName: z.ZodString;
3844
- description: z.ZodNullable<z.ZodString>;
3845
- }, "strip", z.ZodTypeAny, {
3846
- id: string;
3847
- description: string | null;
3848
- createdAt: Date;
3849
- updatedAt: Date;
3850
- deletedAt: Date | null;
3851
- systemName: string;
3852
- displayName: string;
3853
- }, {
3854
- id: string;
3855
- description: string | null;
3856
- createdAt: Date;
3857
- updatedAt: Date;
3858
- deletedAt: Date | null;
3859
- systemName: string;
3860
- displayName: string;
3861
- }>, "many">;
3862
- }, "strip", z.ZodTypeAny, {
3863
- id: string;
3864
- description: string | null;
3865
- createdAt: Date;
3866
- updatedAt: Date;
3867
- deletedAt: Date | null;
3868
- systemName: string;
3869
- displayName: string;
3870
- permissions: {
3871
- id: string;
3872
- description: string | null;
3873
- createdAt: Date;
3874
- updatedAt: Date;
3875
- deletedAt: Date | null;
3876
- systemName: string;
3877
- displayName: string;
3878
- }[];
3879
- }, {
3880
- id: string;
3881
- description: string | null;
3882
- createdAt: Date;
3883
- updatedAt: Date;
3884
- deletedAt: Date | null;
3885
- systemName: string;
3886
- displayName: string;
3887
- permissions: {
3888
- id: string;
3889
- description: string | null;
3890
- createdAt: Date;
3891
- updatedAt: Date;
3892
- deletedAt: Date | null;
3893
- systemName: string;
3894
- displayName: string;
3895
- }[];
3896
- }>, "many">;
3897
- extension: z.ZodObject<{
3898
- id: z.ZodString;
3899
- createdAt: z.ZodDate;
3900
- updatedAt: z.ZodDate;
3901
- deletedAt: z.ZodNullable<z.ZodDate>;
3902
- userId: z.ZodNullable<z.ZodString>;
3903
- sipServerUrl: z.ZodString;
3904
- sipUserName: z.ZodString;
3905
- webphoneLoginUser: z.ZodString;
3906
- extensionId: z.ZodNullable<z.ZodString>;
3907
- extensionName: z.ZodString;
3908
- telephonySignature: z.ZodNullable<z.ZodString>;
3909
- }, "strip", z.ZodTypeAny, {
3910
- id: string;
3911
- createdAt: Date;
3912
- updatedAt: Date;
3913
- deletedAt: Date | null;
3914
- userId: string | null;
3915
- sipServerUrl: string;
3916
- sipUserName: string;
3917
- webphoneLoginUser: string;
3918
- extensionId: string | null;
3919
- extensionName: string;
3920
- telephonySignature: string | null;
3921
- }, {
3922
- id: string;
3923
- createdAt: Date;
3924
- updatedAt: Date;
3925
- deletedAt: Date | null;
3926
- userId: string | null;
3927
- sipServerUrl: string;
3928
- sipUserName: string;
3929
- webphoneLoginUser: string;
3930
- extensionId: string | null;
3931
- extensionName: string;
3932
- telephonySignature: string | null;
3933
- }>;
3934
- }, "roles" | "extension">, "strip", z.ZodTypeAny, {
3935
- name: string;
3936
- id: string;
3937
- address: string | null;
3938
- email: string;
3939
- createdAt: Date;
3940
- updatedAt: Date;
3941
- deletedAt: Date | null;
3942
- emailVerifiedAt: Date | null;
3943
- password: string;
3944
- phone: string | null;
3945
- notificationCount: number | null;
3946
- }, {
3947
- name: string;
3948
- id: string;
3949
- address: string | null;
3950
- email: string;
3951
- createdAt: Date;
3952
- updatedAt: Date;
3953
- deletedAt: Date | null;
3954
- emailVerifiedAt: Date | null;
3955
- password: string;
3956
- phone: string | null;
3957
- notificationCount: number | null;
3958
- }>>;
3959
- userId: z.ZodString;
3960
- createdAt: z.ZodOptional<z.ZodString>;
3961
- deletedAt: z.ZodNullable<z.ZodString>;
3962
- updatedAt: z.ZodOptional<z.ZodString>;
3963
- extensionId: z.ZodNullable<z.ZodString>;
3964
- sipUserName: z.ZodNullable<z.ZodString>;
3965
- sipServerUrl: z.ZodNullable<z.ZodString>;
3966
- extensionName: z.ZodNullable<z.ZodString>;
3967
- webphoneLoginUser: z.ZodNullable<z.ZodString>;
3968
- telephonySignature: z.ZodNullable<z.ZodString>;
3969
- }, "strip", z.ZodTypeAny, {
3970
- id: string;
3971
- user: {
3972
- name: string;
3973
- id: string;
3974
- address: string | null;
3975
- email: string;
3976
- createdAt: Date;
3977
- updatedAt: Date;
3978
- deletedAt: Date | null;
3979
- emailVerifiedAt: Date | null;
3980
- password: string;
3981
- phone: string | null;
3982
- notificationCount: number | null;
3983
- } | null;
3984
- deletedAt: string | null;
3985
- userId: string;
3986
- sipServerUrl: string | null;
3987
- sipUserName: string | null;
3988
- webphoneLoginUser: string | null;
3989
- extensionId: string | null;
3990
- extensionName: string | null;
3991
- telephonySignature: string | null;
3992
- createdAt?: string | undefined;
3993
- updatedAt?: string | undefined;
3994
- }, {
3995
- id: string;
3996
- user: {
3997
- name: string;
3998
- id: string;
3999
- address: string | null;
4000
- email: string;
4001
- createdAt: Date;
4002
- updatedAt: Date;
4003
- deletedAt: Date | null;
4004
- emailVerifiedAt: Date | null;
4005
- password: string;
4006
- phone: string | null;
4007
- notificationCount: number | null;
4008
- } | null;
4009
- deletedAt: string | null;
4010
- userId: string;
4011
- sipServerUrl: string | null;
4012
- sipUserName: string | null;
4013
- webphoneLoginUser: string | null;
4014
- extensionId: string | null;
4015
- extensionName: string | null;
4016
- telephonySignature: string | null;
4017
- createdAt?: string | undefined;
4018
- updatedAt?: string | undefined;
4019
- }>>>;
4020
- callFrom: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4021
- id: z.ZodString;
4022
- user: z.ZodNullable<z.ZodObject<Omit<{
4023
- name: z.ZodString;
4024
- id: z.ZodString;
4025
- address: z.ZodNullable<z.ZodString>;
4026
- email: z.ZodString;
4027
- createdAt: z.ZodDate;
4028
- updatedAt: z.ZodDate;
4029
- deletedAt: z.ZodNullable<z.ZodDate>;
4030
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4031
- password: z.ZodString;
4032
- phone: z.ZodNullable<z.ZodString>;
4033
- notificationCount: z.ZodNullable<z.ZodNumber>;
4034
- roles: z.ZodArray<z.ZodObject<{
4035
- id: z.ZodString;
4036
- createdAt: z.ZodDate;
4037
- updatedAt: z.ZodDate;
4038
- deletedAt: z.ZodNullable<z.ZodDate>;
4039
- systemName: z.ZodString;
4040
- displayName: z.ZodString;
4041
- description: z.ZodNullable<z.ZodString>;
4042
- permissions: z.ZodArray<z.ZodObject<{
4043
- id: z.ZodString;
4044
- createdAt: z.ZodDate;
4045
- updatedAt: z.ZodDate;
4046
- deletedAt: z.ZodNullable<z.ZodDate>;
4047
- systemName: z.ZodString;
4048
- displayName: z.ZodString;
4049
- description: z.ZodNullable<z.ZodString>;
4050
- }, "strip", z.ZodTypeAny, {
4051
- id: string;
4052
- description: string | null;
4053
- createdAt: Date;
4054
- updatedAt: Date;
4055
- deletedAt: Date | null;
4056
- systemName: string;
4057
- displayName: string;
4058
- }, {
4059
- id: string;
4060
- description: string | null;
4061
- createdAt: Date;
4062
- updatedAt: Date;
4063
- deletedAt: Date | null;
4064
- systemName: string;
4065
- displayName: string;
4066
- }>, "many">;
4067
- }, "strip", z.ZodTypeAny, {
4068
- id: string;
4069
- description: string | null;
4070
- createdAt: Date;
4071
- updatedAt: Date;
4072
- deletedAt: Date | null;
4073
- systemName: string;
4074
- displayName: string;
4075
- permissions: {
4076
- id: string;
4077
- description: string | null;
4078
- createdAt: Date;
4079
- updatedAt: Date;
4080
- deletedAt: Date | null;
4081
- systemName: string;
4082
- displayName: string;
4083
- }[];
4084
- }, {
4085
- id: string;
4086
- description: string | null;
4087
- createdAt: Date;
4088
- updatedAt: Date;
4089
- deletedAt: Date | null;
4090
- systemName: string;
4091
- displayName: string;
4092
- permissions: {
4093
- id: string;
4094
- description: string | null;
4095
- createdAt: Date;
4096
- updatedAt: Date;
4097
- deletedAt: Date | null;
4098
- systemName: string;
4099
- displayName: string;
4100
- }[];
4101
- }>, "many">;
4102
- extension: z.ZodObject<{
4103
- id: z.ZodString;
4104
- createdAt: z.ZodDate;
4105
- updatedAt: z.ZodDate;
4106
- deletedAt: z.ZodNullable<z.ZodDate>;
4107
- userId: z.ZodNullable<z.ZodString>;
4108
- sipServerUrl: z.ZodString;
4109
- sipUserName: z.ZodString;
4110
- webphoneLoginUser: z.ZodString;
4111
- extensionId: z.ZodNullable<z.ZodString>;
4112
- extensionName: z.ZodString;
4113
- telephonySignature: z.ZodNullable<z.ZodString>;
4114
- }, "strip", z.ZodTypeAny, {
4115
- id: string;
4116
- createdAt: Date;
4117
- updatedAt: Date;
4118
- deletedAt: Date | null;
4119
- userId: string | null;
4120
- sipServerUrl: string;
4121
- sipUserName: string;
4122
- webphoneLoginUser: string;
4123
- extensionId: string | null;
4124
- extensionName: string;
4125
- telephonySignature: string | null;
4126
- }, {
4127
- id: string;
4128
- createdAt: Date;
4129
- updatedAt: Date;
4130
- deletedAt: Date | null;
4131
- userId: string | null;
4132
- sipServerUrl: string;
4133
- sipUserName: string;
4134
- webphoneLoginUser: string;
4135
- extensionId: string | null;
4136
- extensionName: string;
4137
- telephonySignature: string | null;
4138
- }>;
4139
- }, "roles" | "extension">, "strip", z.ZodTypeAny, {
4140
- name: string;
4141
- id: string;
4142
- address: string | null;
4143
- email: string;
4144
- createdAt: Date;
4145
- updatedAt: Date;
4146
- deletedAt: Date | null;
4147
- emailVerifiedAt: Date | null;
4148
- password: string;
4149
- phone: string | null;
4150
- notificationCount: number | null;
4151
- }, {
4152
- name: string;
4153
- id: string;
4154
- address: string | null;
4155
- email: string;
4156
- createdAt: Date;
4157
- updatedAt: Date;
4158
- deletedAt: Date | null;
4159
- emailVerifiedAt: Date | null;
4160
- password: string;
4161
- phone: string | null;
4162
- notificationCount: number | null;
4163
- }>>;
4164
- userId: z.ZodString;
4165
- createdAt: z.ZodOptional<z.ZodString>;
4166
- deletedAt: z.ZodNullable<z.ZodString>;
4167
- updatedAt: z.ZodOptional<z.ZodString>;
4168
- extensionId: z.ZodNullable<z.ZodString>;
4169
- sipUserName: z.ZodNullable<z.ZodString>;
4170
- sipServerUrl: z.ZodNullable<z.ZodString>;
4171
- extensionName: z.ZodNullable<z.ZodString>;
4172
- webphoneLoginUser: z.ZodNullable<z.ZodString>;
4173
- telephonySignature: z.ZodNullable<z.ZodString>;
4174
- }, "strip", z.ZodTypeAny, {
4175
- id: string;
4176
- user: {
4177
- name: string;
4178
- id: string;
4179
- address: string | null;
4180
- email: string;
4181
- createdAt: Date;
4182
- updatedAt: Date;
4183
- deletedAt: Date | null;
4184
- emailVerifiedAt: Date | null;
4185
- password: string;
4186
- phone: string | null;
4187
- notificationCount: number | null;
4188
- } | null;
4189
- deletedAt: string | null;
4190
- userId: string;
4191
- sipServerUrl: string | null;
4192
- sipUserName: string | null;
4193
- webphoneLoginUser: string | null;
4194
- extensionId: string | null;
4195
- extensionName: string | null;
4196
- telephonySignature: string | null;
4197
- createdAt?: string | undefined;
4198
- updatedAt?: string | undefined;
4199
- }, {
4200
- id: string;
4201
- user: {
4202
- name: string;
4203
- id: string;
4204
- address: string | null;
4205
- email: string;
4206
- createdAt: Date;
4207
- updatedAt: Date;
4208
- deletedAt: Date | null;
4209
- emailVerifiedAt: Date | null;
4210
- password: string;
4211
- phone: string | null;
4212
- notificationCount: number | null;
4213
- } | null;
4214
- deletedAt: string | null;
4215
- userId: string;
4216
- sipServerUrl: string | null;
4217
- sipUserName: string | null;
4218
- webphoneLoginUser: string | null;
4219
- extensionId: string | null;
4220
- extensionName: string | null;
4221
- telephonySignature: string | null;
4222
- createdAt?: string | undefined;
4223
- updatedAt?: string | undefined;
4224
- }>>>;
4225
- }, "strip", z.ZodTypeAny, {
4226
- callTo?: {
4227
- id: string;
4228
- user: {
4229
- name: string;
4230
- id: string;
4231
- address: string | null;
4232
- email: string;
4233
- createdAt: Date;
4234
- updatedAt: Date;
4235
- deletedAt: Date | null;
4236
- emailVerifiedAt: Date | null;
4237
- password: string;
4238
- phone: string | null;
4239
- notificationCount: number | null;
4240
- } | null;
4241
- deletedAt: string | null;
4242
- userId: string;
4243
- sipServerUrl: string | null;
4244
- sipUserName: string | null;
4245
- webphoneLoginUser: string | null;
4246
- extensionId: string | null;
4247
- extensionName: string | null;
4248
- telephonySignature: string | null;
4249
- createdAt?: string | undefined;
4250
- updatedAt?: string | undefined;
4251
- } | null | undefined;
4252
- callFrom?: {
4253
- id: string;
4254
- user: {
4255
- name: string;
4256
- id: string;
4257
- address: string | null;
4258
- email: string;
4259
- createdAt: Date;
4260
- updatedAt: Date;
4261
- deletedAt: Date | null;
4262
- emailVerifiedAt: Date | null;
4263
- password: string;
4264
- phone: string | null;
4265
- notificationCount: number | null;
4266
- } | null;
4267
- deletedAt: string | null;
4268
- userId: string;
4269
- sipServerUrl: string | null;
4270
- sipUserName: string | null;
4271
- webphoneLoginUser: string | null;
4272
- extensionId: string | null;
4273
- extensionName: string | null;
4274
- telephonySignature: string | null;
4275
- createdAt?: string | undefined;
4276
- updatedAt?: string | undefined;
4277
- } | null | undefined;
4278
- }, {
4279
- callTo?: {
4280
- id: string;
4281
- user: {
4282
- name: string;
4283
- id: string;
4284
- address: string | null;
4285
- email: string;
4286
- createdAt: Date;
4287
- updatedAt: Date;
4288
- deletedAt: Date | null;
4289
- emailVerifiedAt: Date | null;
4290
- password: string;
4291
- phone: string | null;
4292
- notificationCount: number | null;
4293
- } | null;
4294
- deletedAt: string | null;
4295
- userId: string;
4296
- sipServerUrl: string | null;
4297
- sipUserName: string | null;
4298
- webphoneLoginUser: string | null;
4299
- extensionId: string | null;
4300
- extensionName: string | null;
4301
- telephonySignature: string | null;
4302
- createdAt?: string | undefined;
4303
- updatedAt?: string | undefined;
4304
- } | null | undefined;
4305
- callFrom?: {
4306
- id: string;
4307
- user: {
4308
- name: string;
4309
- id: string;
4310
- address: string | null;
4311
- email: string;
4312
- createdAt: Date;
4313
- updatedAt: Date;
4314
- deletedAt: Date | null;
4315
- emailVerifiedAt: Date | null;
4316
- password: string;
4317
- phone: string | null;
4318
- notificationCount: number | null;
4319
- } | null;
4320
- deletedAt: string | null;
4321
- userId: string;
4322
- sipServerUrl: string | null;
4323
- sipUserName: string | null;
4324
- webphoneLoginUser: string | null;
4325
- extensionId: string | null;
4326
- extensionName: string | null;
4327
- telephonySignature: string | null;
4328
- createdAt?: string | undefined;
4329
- updatedAt?: string | undefined;
4330
- } | null | undefined;
4331
- }>>;
4332
- isQueueMissedCall: z.ZodBoolean;
4333
- extensionId: z.ZodNullable<z.ZodString>;
4334
- extension: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4335
- id: z.ZodString;
4336
- createdAt: z.ZodDate;
4337
- updatedAt: z.ZodDate;
4338
- deletedAt: z.ZodNullable<z.ZodDate>;
4339
- userId: z.ZodNullable<z.ZodString>;
4340
- sipServerUrl: z.ZodString;
4341
- sipUserName: z.ZodString;
4342
- webphoneLoginUser: z.ZodString;
4343
- extensionId: z.ZodNullable<z.ZodString>;
4344
- extensionName: z.ZodString;
4345
- telephonySignature: z.ZodNullable<z.ZodString>;
4346
- user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4347
- name: z.ZodString;
4348
- id: z.ZodString;
4349
- address: z.ZodNullable<z.ZodString>;
4350
- email: z.ZodString;
4351
- createdAt: z.ZodDate;
4352
- updatedAt: z.ZodDate;
4353
- deletedAt: z.ZodNullable<z.ZodDate>;
4354
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4355
- password: z.ZodString;
4356
- phone: z.ZodNullable<z.ZodString>;
4357
- notificationCount: z.ZodNullable<z.ZodNumber>;
4358
- roles: z.ZodArray<z.ZodObject<{
4359
- id: z.ZodString;
4360
- createdAt: z.ZodDate;
4361
- updatedAt: z.ZodDate;
4362
- deletedAt: z.ZodNullable<z.ZodDate>;
4363
- systemName: z.ZodString;
4364
- displayName: z.ZodString;
4365
- description: z.ZodNullable<z.ZodString>;
4366
- permissions: z.ZodArray<z.ZodObject<{
4367
- id: z.ZodString;
4368
- createdAt: z.ZodDate;
4369
- updatedAt: z.ZodDate;
4370
- deletedAt: z.ZodNullable<z.ZodDate>;
4371
- systemName: z.ZodString;
4372
- displayName: z.ZodString;
4373
- description: z.ZodNullable<z.ZodString>;
4374
- }, "strip", z.ZodTypeAny, {
4375
- id: string;
4376
- description: string | null;
4377
- createdAt: Date;
4378
- updatedAt: Date;
4379
- deletedAt: Date | null;
4380
- systemName: string;
4381
- displayName: string;
4382
- }, {
4383
- id: string;
4384
- description: string | null;
4385
- createdAt: Date;
4386
- updatedAt: Date;
4387
- deletedAt: Date | null;
4388
- systemName: string;
4389
- displayName: string;
4390
- }>, "many">;
4391
- }, "strip", z.ZodTypeAny, {
4392
- id: string;
4393
- description: string | null;
4394
- createdAt: Date;
4395
- updatedAt: Date;
4396
- deletedAt: Date | null;
4397
- systemName: string;
4398
- displayName: string;
4399
- permissions: {
4400
- id: string;
4401
- description: string | null;
4402
- createdAt: Date;
4403
- updatedAt: Date;
4404
- deletedAt: Date | null;
4405
- systemName: string;
4406
- displayName: string;
4407
- }[];
4408
- }, {
4409
- id: string;
4410
- description: string | null;
4411
- createdAt: Date;
4412
- updatedAt: Date;
4413
- deletedAt: Date | null;
4414
- systemName: string;
4415
- displayName: string;
4416
- permissions: {
4417
- id: string;
4418
- description: string | null;
4419
- createdAt: Date;
4420
- updatedAt: Date;
4421
- deletedAt: Date | null;
4422
- systemName: string;
4423
- displayName: string;
4424
- }[];
4425
- }>, "many">;
4426
- extension: z.ZodObject<{
4427
- id: z.ZodString;
4428
- createdAt: z.ZodDate;
4429
- updatedAt: z.ZodDate;
4430
- deletedAt: z.ZodNullable<z.ZodDate>;
4431
- userId: z.ZodNullable<z.ZodString>;
4432
- sipServerUrl: z.ZodString;
4433
- sipUserName: z.ZodString;
4434
- webphoneLoginUser: z.ZodString;
4435
- extensionId: z.ZodNullable<z.ZodString>;
4436
- extensionName: z.ZodString;
4437
- telephonySignature: z.ZodNullable<z.ZodString>;
4438
- }, "strip", z.ZodTypeAny, {
4439
- id: string;
4440
- createdAt: Date;
4441
- updatedAt: Date;
4442
- deletedAt: Date | null;
4443
- userId: string | null;
4444
- sipServerUrl: string;
4445
- sipUserName: string;
4446
- webphoneLoginUser: string;
4447
- extensionId: string | null;
4448
- extensionName: string;
4449
- telephonySignature: string | null;
4450
- }, {
4451
- id: string;
4452
- createdAt: Date;
4453
- updatedAt: Date;
4454
- deletedAt: Date | null;
4455
- userId: string | null;
4456
- sipServerUrl: string;
4457
- sipUserName: string;
4458
- webphoneLoginUser: string;
4459
- extensionId: string | null;
4460
- extensionName: string;
4461
- telephonySignature: string | null;
4462
- }>;
4463
- }, "strip", z.ZodTypeAny, {
4464
- name: string;
4465
- id: string;
4466
- address: string | null;
4467
- email: string;
4468
- createdAt: Date;
4469
- updatedAt: Date;
4470
- deletedAt: Date | null;
4471
- emailVerifiedAt: Date | null;
4472
- password: string;
4473
- phone: string | null;
4474
- notificationCount: number | null;
4475
- roles: {
4476
- id: string;
4477
- description: string | null;
4478
- createdAt: Date;
4479
- updatedAt: Date;
4480
- deletedAt: Date | null;
4481
- systemName: string;
4482
- displayName: string;
4483
- permissions: {
4484
- id: string;
4485
- description: string | null;
4486
- createdAt: Date;
4487
- updatedAt: Date;
4488
- deletedAt: Date | null;
4489
- systemName: string;
4490
- displayName: string;
4491
- }[];
4492
- }[];
4493
- extension: {
4494
- id: string;
4495
- createdAt: Date;
4496
- updatedAt: Date;
4497
- deletedAt: Date | null;
4498
- userId: string | null;
4499
- sipServerUrl: string;
4500
- sipUserName: string;
4501
- webphoneLoginUser: string;
4502
- extensionId: string | null;
4503
- extensionName: string;
4504
- telephonySignature: string | null;
4505
- };
4506
- }, {
4507
- name: string;
4508
- id: string;
4509
- address: string | null;
4510
- email: string;
4511
- createdAt: Date;
4512
- updatedAt: Date;
4513
- deletedAt: Date | null;
4514
- emailVerifiedAt: Date | null;
4515
- password: string;
4516
- phone: string | null;
4517
- notificationCount: number | null;
4518
- roles: {
4519
- id: string;
4520
- description: string | null;
4521
- createdAt: Date;
4522
- updatedAt: Date;
4523
- deletedAt: Date | null;
4524
- systemName: string;
4525
- displayName: string;
4526
- permissions: {
4527
- id: string;
4528
- description: string | null;
4529
- createdAt: Date;
4530
- updatedAt: Date;
4531
- deletedAt: Date | null;
4532
- systemName: string;
4533
- displayName: string;
4534
- }[];
4535
- }[];
4536
- extension: {
4537
- id: string;
4538
- createdAt: Date;
4539
- updatedAt: Date;
4540
- deletedAt: Date | null;
4541
- userId: string | null;
4542
- sipServerUrl: string;
4543
- sipUserName: string;
4544
- webphoneLoginUser: string;
4545
- extensionId: string | null;
4546
- extensionName: string;
4547
- telephonySignature: string | null;
4548
- };
4549
- }>>>;
4550
- }, "strip", z.ZodTypeAny, {
4551
- id: string;
4552
- createdAt: Date;
4553
- updatedAt: Date;
4554
- deletedAt: Date | null;
4555
- userId: string | null;
4556
- sipServerUrl: string;
4557
- sipUserName: string;
4558
- webphoneLoginUser: string;
4559
- extensionId: string | null;
4560
- extensionName: string;
4561
- telephonySignature: string | null;
4562
- user?: {
4563
- name: string;
4564
- id: string;
4565
- address: string | null;
4566
- email: string;
4567
- createdAt: Date;
4568
- updatedAt: Date;
4569
- deletedAt: Date | null;
4570
- emailVerifiedAt: Date | null;
4571
- password: string;
4572
- phone: string | null;
4573
- notificationCount: number | null;
4574
- roles: {
4575
- id: string;
4576
- description: string | null;
4577
- createdAt: Date;
4578
- updatedAt: Date;
4579
- deletedAt: Date | null;
4580
- systemName: string;
4581
- displayName: string;
4582
- permissions: {
4583
- id: string;
4584
- description: string | null;
4585
- createdAt: Date;
4586
- updatedAt: Date;
4587
- deletedAt: Date | null;
4588
- systemName: string;
4589
- displayName: string;
4590
- }[];
4591
- }[];
4592
- extension: {
4593
- id: string;
4594
- createdAt: Date;
4595
- updatedAt: Date;
4596
- deletedAt: Date | null;
4597
- userId: string | null;
4598
- sipServerUrl: string;
4599
- sipUserName: string;
4600
- webphoneLoginUser: string;
4601
- extensionId: string | null;
4602
- extensionName: string;
4603
- telephonySignature: string | null;
4604
- };
4605
- } | null | undefined;
4606
- }, {
4607
- id: string;
4608
- createdAt: Date;
4609
- updatedAt: Date;
4610
- deletedAt: Date | null;
4611
- userId: string | null;
4612
- sipServerUrl: string;
4613
- sipUserName: string;
4614
- webphoneLoginUser: string;
4615
- extensionId: string | null;
4616
- extensionName: string;
4617
- telephonySignature: string | null;
4618
- user?: {
4619
- name: string;
4620
- id: string;
4621
- address: string | null;
4622
- email: string;
4623
- createdAt: Date;
4624
- updatedAt: Date;
4625
- deletedAt: Date | null;
4626
- emailVerifiedAt: Date | null;
4627
- password: string;
4628
- phone: string | null;
4629
- notificationCount: number | null;
4630
- roles: {
4631
- id: string;
4632
- description: string | null;
4633
- createdAt: Date;
4634
- updatedAt: Date;
4635
- deletedAt: Date | null;
4636
- systemName: string;
4637
- displayName: string;
4638
- permissions: {
4639
- id: string;
4640
- description: string | null;
4641
- createdAt: Date;
4642
- updatedAt: Date;
4643
- deletedAt: Date | null;
4644
- systemName: string;
4645
- displayName: string;
4646
- }[];
4647
- }[];
4648
- extension: {
4649
- id: string;
4650
- createdAt: Date;
4651
- updatedAt: Date;
4652
- deletedAt: Date | null;
4653
- userId: string | null;
4654
- sipServerUrl: string;
4655
- sipUserName: string;
4656
- webphoneLoginUser: string;
4657
- extensionId: string | null;
4658
- extensionName: string;
4659
- telephonySignature: string | null;
4660
- };
4661
- } | null | undefined;
4662
- }>>>;
4663
- telephonyQueueId: z.ZodNullable<z.ZodString>;
4664
- contactId: z.ZodNullable<z.ZodString>;
4665
- }, "strip", z.ZodTypeAny, {
4666
- type: string;
4667
- id: string;
4668
- recording: string | null;
4669
- status: string;
4670
- createdAt: Date;
4671
- updatedAt: Date;
4672
- deletedAt: Date | null;
4673
- extensionId: string | null;
4674
- uniqueCallId: string;
4675
- timeStart: string;
4676
- callFrom: string;
4677
- callTo: string;
4678
- callDuration: number | null;
4679
- talkDuration: number | null;
4680
- srcTrunkName: string | null;
4681
- dstTrunkName: string | null;
4682
- pinCode: string | null;
4683
- didNumber: string | null;
4684
- agentRingTime: number | null;
4685
- uploadId: string | null;
4686
- serialNumber: string | null;
4687
- callParticipants: {
4688
- callTo?: {
4689
- id: string;
4690
- user: {
4691
- name: string;
4692
- id: string;
4693
- address: string | null;
4694
- email: string;
4695
- createdAt: Date;
4696
- updatedAt: Date;
4697
- deletedAt: Date | null;
4698
- emailVerifiedAt: Date | null;
4699
- password: string;
4700
- phone: string | null;
4701
- notificationCount: number | null;
4702
- } | null;
4703
- deletedAt: string | null;
4704
- userId: string;
4705
- sipServerUrl: string | null;
4706
- sipUserName: string | null;
4707
- webphoneLoginUser: string | null;
4708
- extensionId: string | null;
4709
- extensionName: string | null;
4710
- telephonySignature: string | null;
4711
- createdAt?: string | undefined;
4712
- updatedAt?: string | undefined;
4713
- } | null | undefined;
4714
- callFrom?: {
4715
- id: string;
4716
- user: {
4717
- name: string;
4718
- id: string;
4719
- address: string | null;
4720
- email: string;
4721
- createdAt: Date;
4722
- updatedAt: Date;
4723
- deletedAt: Date | null;
4724
- emailVerifiedAt: Date | null;
4725
- password: string;
4726
- phone: string | null;
4727
- notificationCount: number | null;
4728
- } | null;
4729
- deletedAt: string | null;
4730
- userId: string;
4731
- sipServerUrl: string | null;
4732
- sipUserName: string | null;
4733
- webphoneLoginUser: string | null;
4734
- extensionId: string | null;
4735
- extensionName: string | null;
4736
- telephonySignature: string | null;
4737
- createdAt?: string | undefined;
4738
- updatedAt?: string | undefined;
4739
- } | null | undefined;
4740
- } | null;
4741
- isQueueMissedCall: boolean;
4742
- telephonyQueueId: string | null;
4743
- contactId: string | null;
4744
- contact?: {
4745
- name: string;
4746
- id: string;
4747
- channel: string | null;
4748
- address: string | null;
4749
- createdAt: Date;
4750
- updatedAt: Date;
4751
- deletedAt: Date | null;
4752
- customFields: {
4753
- id: string;
4754
- createdAt: Date;
4755
- updatedAt: Date;
4756
- deletedAt: Date | null;
4757
- attribute: {
4758
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4759
- id: string;
4760
- position: number;
4761
- createdAt: Date;
4762
- updatedAt: Date;
4763
- deletedAt: Date | null;
4764
- systemName: string;
4765
- displayName: string;
4766
- isDefault: boolean;
4767
- isArchived: boolean;
4768
- isRequired: boolean;
4769
- isUnique: boolean;
4770
- };
4771
- textValue: string | null;
4772
- booleanValue: boolean | null;
4773
- numberValue: number | null;
4774
- dateValue: Date | null;
4775
- uploads: {
4776
- id: string;
4777
- status: string | null;
4778
- createdAt: Date;
4779
- updatedAt: Date;
4780
- deletedAt: Date | null;
4781
- fileName: string;
4782
- fileKey: string;
4783
- bucketName: string;
4784
- fileSize: number;
4785
- fileUrl: string | null;
4786
- }[];
4787
- }[];
4788
- company: {
4789
- id: string;
4790
- createdAt: Date;
4791
- updatedAt: Date;
4792
- deletedAt: Date | null;
4793
- name?: string | undefined;
4794
- address?: string | null | undefined;
4795
- phone?: string | null | undefined;
4796
- industry?: string | null | undefined;
4797
- } | null;
4798
- notes: string | null;
4799
- contactProfile: string | null;
4800
- socialProfileUrl: string | null;
4801
- tags: {
4802
- name: string;
4803
- id: string;
4804
- createdAt: Date;
4805
- updatedAt: Date;
4806
- deletedAt: Date | null;
4807
- }[];
4808
- contactEmails: {
4809
- id: string;
4810
- isPrimary: boolean;
4811
- email: string;
4812
- createdAt: Date;
4813
- updatedAt: Date;
4814
- deletedAt: Date | null;
4815
- }[];
4816
- contactPhones: {
4817
- id: string;
4818
- isPrimary: boolean;
4819
- createdAt: Date;
4820
- updatedAt: Date;
4821
- deletedAt: Date | null;
4822
- phone: string;
4823
- }[];
4824
- platformContacts?: {
4825
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
4826
- id: string;
4827
- metadata: {
4828
- name: string;
4829
- id: string;
4830
- picture?: string | undefined;
4831
- additionalCredentials?: any;
4832
- };
4833
- createdAt: Date;
4834
- updatedAt: Date;
4835
- deletedAt: Date | null;
4836
- channelId: string;
4837
- socialPlatformId: string;
4838
- }[] | undefined;
4839
- activityLogs?: {
4840
- id: string;
4841
- description: string;
4842
- createdAt: Date;
4843
- updatedAt: Date;
4844
- deletedAt: Date | null;
4845
- entityId: string;
4846
- entityType: {
4847
- id: string;
4848
- description: string | null;
4849
- createdAt: Date;
4850
- updatedAt: Date;
4851
- deletedAt: Date | null;
4852
- entity: string;
4853
- };
4854
- }[] | undefined;
4855
- } | undefined;
4856
- telephonyQueue?: {
4857
- id: string;
4858
- createdAt: Date;
4859
- updatedAt: Date;
4860
- deletedAt: Date | null;
4861
- queueId: number;
4862
- queueName: string;
4863
- queueNumber: string;
4864
- maximumWaitingTime: number;
4865
- } | null | undefined;
4866
- upload?: {
4867
- id: string;
4868
- status: string | null;
4869
- createdAt: Date;
4870
- updatedAt: Date;
4871
- deletedAt: Date | null;
4872
- fileName: string;
4873
- fileKey: string;
4874
- bucketName: string;
4875
- fileSize: number;
4876
- fileUrl: string | null;
4877
- } | null | undefined;
4878
- extension?: {
4879
- id: string;
4880
- createdAt: Date;
4881
- updatedAt: Date;
4882
- deletedAt: Date | null;
4883
- userId: string | null;
4884
- sipServerUrl: string;
4885
- sipUserName: string;
4886
- webphoneLoginUser: string;
4887
- extensionId: string | null;
4888
- extensionName: string;
4889
- telephonySignature: string | null;
4890
- user?: {
4891
- name: string;
4892
- id: string;
4893
- address: string | null;
4894
- email: string;
4895
- createdAt: Date;
4896
- updatedAt: Date;
4897
- deletedAt: Date | null;
4898
- emailVerifiedAt: Date | null;
4899
- password: string;
4900
- phone: string | null;
4901
- notificationCount: number | null;
4902
- roles: {
4903
- id: string;
4904
- description: string | null;
4905
- createdAt: Date;
4906
- updatedAt: Date;
4907
- deletedAt: Date | null;
4908
- systemName: string;
4909
- displayName: string;
4910
- permissions: {
4911
- id: string;
4912
- description: string | null;
4913
- createdAt: Date;
4914
- updatedAt: Date;
4915
- deletedAt: Date | null;
4916
- systemName: string;
4917
- displayName: string;
4918
- }[];
4919
- }[];
4920
- extension: {
4921
- id: string;
4922
- createdAt: Date;
4923
- updatedAt: Date;
4924
- deletedAt: Date | null;
4925
- userId: string | null;
4926
- sipServerUrl: string;
4927
- sipUserName: string;
4928
- webphoneLoginUser: string;
4929
- extensionId: string | null;
4930
- extensionName: string;
4931
- telephonySignature: string | null;
4932
- };
4933
- } | null | undefined;
4934
- } | null | undefined;
4935
- }, {
4936
- type: string;
4937
- id: string;
4938
- recording: string | null;
4939
- status: string;
4940
- createdAt: Date;
4941
- updatedAt: Date;
4942
- deletedAt: Date | null;
4943
- extensionId: string | null;
4944
- uniqueCallId: string;
4945
- timeStart: string;
4946
- callFrom: string;
4947
- callTo: string;
4948
- callDuration: number | null;
4949
- talkDuration: number | null;
4950
- srcTrunkName: string | null;
4951
- dstTrunkName: string | null;
4952
- pinCode: string | null;
4953
- didNumber: string | null;
4954
- agentRingTime: number | null;
4955
- uploadId: string | null;
4956
- serialNumber: string | null;
4957
- callParticipants: {
4958
- callTo?: {
4959
- id: string;
4960
- user: {
4961
- name: string;
4962
- id: string;
4963
- address: string | null;
4964
- email: string;
4965
- createdAt: Date;
4966
- updatedAt: Date;
4967
- deletedAt: Date | null;
4968
- emailVerifiedAt: Date | null;
4969
- password: string;
4970
- phone: string | null;
4971
- notificationCount: number | null;
4972
- } | null;
4973
- deletedAt: string | null;
4974
- userId: string;
4975
- sipServerUrl: string | null;
4976
- sipUserName: string | null;
4977
- webphoneLoginUser: string | null;
4978
- extensionId: string | null;
4979
- extensionName: string | null;
4980
- telephonySignature: string | null;
4981
- createdAt?: string | undefined;
4982
- updatedAt?: string | undefined;
4983
- } | null | undefined;
4984
- callFrom?: {
4985
- id: string;
4986
- user: {
4987
- name: string;
4988
- id: string;
4989
- address: string | null;
4990
- email: string;
4991
- createdAt: Date;
4992
- updatedAt: Date;
4993
- deletedAt: Date | null;
4994
- emailVerifiedAt: Date | null;
4995
- password: string;
4996
- phone: string | null;
4997
- notificationCount: number | null;
4998
- } | null;
4999
- deletedAt: string | null;
5000
- userId: string;
5001
- sipServerUrl: string | null;
5002
- sipUserName: string | null;
5003
- webphoneLoginUser: string | null;
5004
- extensionId: string | null;
5005
- extensionName: string | null;
5006
- telephonySignature: string | null;
5007
- createdAt?: string | undefined;
5008
- updatedAt?: string | undefined;
5009
- } | null | undefined;
5010
- } | null;
5011
- isQueueMissedCall: boolean;
5012
- telephonyQueueId: string | null;
5013
- contactId: string | null;
5014
- contact?: {
5015
- name: string;
5016
- id: string;
5017
- channel: string | null;
5018
- address: string | null;
5019
- createdAt: Date;
5020
- updatedAt: Date;
5021
- deletedAt: Date | null;
5022
- customFields: {
5023
- id: string;
5024
- createdAt: Date;
5025
- updatedAt: Date;
5026
- deletedAt: Date | null;
5027
- attribute: {
5028
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5029
- id: string;
5030
- position: number;
5031
- createdAt: Date;
5032
- updatedAt: Date;
5033
- deletedAt: Date | null;
5034
- systemName: string;
5035
- displayName: string;
5036
- isDefault: boolean;
5037
- isArchived: boolean;
5038
- isRequired: boolean;
5039
- isUnique: boolean;
5040
- };
5041
- textValue: string | null;
5042
- booleanValue: boolean | null;
5043
- numberValue: number | null;
5044
- dateValue: Date | null;
5045
- uploads: {
5046
- id: string;
5047
- status: string | null;
5048
- createdAt: Date;
5049
- updatedAt: Date;
5050
- deletedAt: Date | null;
5051
- fileName: string;
5052
- fileKey: string;
5053
- bucketName: string;
5054
- fileSize: number;
5055
- fileUrl: string | null;
5056
- }[];
5057
- }[];
5058
- company: {
5059
- id: string;
5060
- createdAt: Date;
5061
- updatedAt: Date;
5062
- deletedAt: Date | null;
5063
- name?: string | undefined;
5064
- address?: string | null | undefined;
5065
- phone?: string | null | undefined;
5066
- industry?: string | null | undefined;
5067
- } | null;
5068
- notes: string | null;
5069
- contactProfile: string | null;
5070
- socialProfileUrl: string | null;
5071
- tags: {
5072
- name: string;
5073
- id: string;
5074
- createdAt: Date;
5075
- updatedAt: Date;
5076
- deletedAt: Date | null;
5077
- }[];
5078
- contactEmails: {
5079
- id: string;
5080
- isPrimary: boolean;
5081
- email: string;
5082
- createdAt: Date;
5083
- updatedAt: Date;
5084
- deletedAt: Date | null;
5085
- }[];
5086
- contactPhones: {
5087
- id: string;
5088
- isPrimary: boolean;
5089
- createdAt: Date;
5090
- updatedAt: Date;
5091
- deletedAt: Date | null;
5092
- phone: string;
5093
- }[];
5094
- platformContacts?: {
5095
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5096
- id: string;
5097
- metadata: {
5098
- name: string;
5099
- id: string;
5100
- picture?: string | undefined;
5101
- additionalCredentials?: any;
5102
- };
5103
- createdAt: Date;
5104
- updatedAt: Date;
5105
- deletedAt: Date | null;
5106
- channelId: string;
5107
- socialPlatformId: string;
5108
- }[] | undefined;
5109
- activityLogs?: {
5110
- id: string;
5111
- description: string;
5112
- createdAt: Date;
5113
- updatedAt: Date;
5114
- deletedAt: Date | null;
5115
- entityId: string;
5116
- entityType: {
5117
- id: string;
5118
- description: string | null;
5119
- createdAt: Date;
5120
- updatedAt: Date;
5121
- deletedAt: Date | null;
5122
- entity: string;
5123
- };
5124
- }[] | undefined;
5125
- } | undefined;
5126
- telephonyQueue?: {
5127
- id: string;
5128
- createdAt: Date;
5129
- updatedAt: Date;
5130
- deletedAt: Date | null;
5131
- queueId: number;
5132
- queueName: string;
5133
- queueNumber: string;
5134
- maximumWaitingTime: number;
5135
- } | null | undefined;
5136
- upload?: {
5137
- id: string;
5138
- status: string | null;
5139
- createdAt: Date;
5140
- updatedAt: Date;
5141
- deletedAt: Date | null;
5142
- fileName: string;
5143
- fileKey: string;
5144
- bucketName: string;
5145
- fileSize: number;
5146
- fileUrl: string | null;
5147
- } | null | undefined;
5148
- extension?: {
5149
- id: string;
5150
- createdAt: Date;
5151
- updatedAt: Date;
5152
- deletedAt: Date | null;
5153
- userId: string | null;
5154
- sipServerUrl: string;
5155
- sipUserName: string;
5156
- webphoneLoginUser: string;
5157
- extensionId: string | null;
5158
- extensionName: string;
5159
- telephonySignature: string | null;
5160
- user?: {
5161
- name: string;
5162
- id: string;
5163
- address: string | null;
5164
- email: string;
5165
- createdAt: Date;
5166
- updatedAt: Date;
5167
- deletedAt: Date | null;
5168
- emailVerifiedAt: Date | null;
5169
- password: string;
5170
- phone: string | null;
5171
- notificationCount: number | null;
5172
- roles: {
5173
- id: string;
5174
- description: string | null;
5175
- createdAt: Date;
5176
- updatedAt: Date;
5177
- deletedAt: Date | null;
5178
- systemName: string;
5179
- displayName: string;
5180
- permissions: {
5181
- id: string;
5182
- description: string | null;
5183
- createdAt: Date;
5184
- updatedAt: Date;
5185
- deletedAt: Date | null;
5186
- systemName: string;
5187
- displayName: string;
5188
- }[];
5189
- }[];
5190
- extension: {
5191
- id: string;
5192
- createdAt: Date;
5193
- updatedAt: Date;
5194
- deletedAt: Date | null;
5195
- userId: string | null;
5196
- sipServerUrl: string;
5197
- sipUserName: string;
5198
- webphoneLoginUser: string;
5199
- extensionId: string | null;
5200
- extensionName: string;
5201
- telephonySignature: string | null;
5202
- };
5203
- } | null | undefined;
5204
- } | null | undefined;
5205
- }>, "many">;
5206
- }, "strip", z.ZodTypeAny, {
5207
- total: number;
5208
- page: number;
5209
- pageSize: number;
5210
- requestId: string;
5211
- telephonyCdrs: {
5212
- type: string;
5213
- id: string;
5214
- recording: string | null;
5215
- status: string;
5216
- createdAt: Date;
5217
- updatedAt: Date;
5218
- deletedAt: Date | null;
5219
- extensionId: string | null;
5220
- uniqueCallId: string;
5221
- timeStart: string;
5222
- callFrom: string;
5223
- callTo: string;
5224
- callDuration: number | null;
5225
- talkDuration: number | null;
5226
- srcTrunkName: string | null;
5227
- dstTrunkName: string | null;
5228
- pinCode: string | null;
5229
- didNumber: string | null;
5230
- agentRingTime: number | null;
5231
- uploadId: string | null;
5232
- serialNumber: string | null;
5233
- callParticipants: {
5234
- callTo?: {
5235
- id: string;
5236
- user: {
5237
- name: string;
5238
- id: string;
5239
- address: string | null;
5240
- email: string;
5241
- createdAt: Date;
5242
- updatedAt: Date;
5243
- deletedAt: Date | null;
5244
- emailVerifiedAt: Date | null;
5245
- password: string;
5246
- phone: string | null;
5247
- notificationCount: number | null;
5248
- } | null;
5249
- deletedAt: string | null;
5250
- userId: string;
5251
- sipServerUrl: string | null;
5252
- sipUserName: string | null;
5253
- webphoneLoginUser: string | null;
5254
- extensionId: string | null;
5255
- extensionName: string | null;
5256
- telephonySignature: string | null;
5257
- createdAt?: string | undefined;
5258
- updatedAt?: string | undefined;
5259
- } | null | undefined;
5260
- callFrom?: {
5261
- id: string;
5262
- user: {
5263
- name: string;
5264
- id: string;
5265
- address: string | null;
5266
- email: string;
5267
- createdAt: Date;
5268
- updatedAt: Date;
5269
- deletedAt: Date | null;
5270
- emailVerifiedAt: Date | null;
5271
- password: string;
5272
- phone: string | null;
5273
- notificationCount: number | null;
5274
- } | null;
5275
- deletedAt: string | null;
5276
- userId: string;
5277
- sipServerUrl: string | null;
5278
- sipUserName: string | null;
5279
- webphoneLoginUser: string | null;
5280
- extensionId: string | null;
5281
- extensionName: string | null;
5282
- telephonySignature: string | null;
5283
- createdAt?: string | undefined;
5284
- updatedAt?: string | undefined;
5285
- } | null | undefined;
5286
- } | null;
5287
- isQueueMissedCall: boolean;
5288
- telephonyQueueId: string | null;
5289
- contactId: string | null;
5290
- contact?: {
5291
- name: string;
5292
- id: string;
5293
- channel: string | null;
5294
- address: string | null;
5295
- createdAt: Date;
5296
- updatedAt: Date;
5297
- deletedAt: Date | null;
5298
- customFields: {
5299
- id: string;
5300
- createdAt: Date;
5301
- updatedAt: Date;
5302
- deletedAt: Date | null;
5303
- attribute: {
5304
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5305
- id: string;
5306
- position: number;
5307
- createdAt: Date;
5308
- updatedAt: Date;
5309
- deletedAt: Date | null;
5310
- systemName: string;
5311
- displayName: string;
5312
- isDefault: boolean;
5313
- isArchived: boolean;
5314
- isRequired: boolean;
5315
- isUnique: boolean;
5316
- };
5317
- textValue: string | null;
5318
- booleanValue: boolean | null;
5319
- numberValue: number | null;
5320
- dateValue: Date | null;
5321
- uploads: {
5322
- id: string;
5323
- status: string | null;
5324
- createdAt: Date;
5325
- updatedAt: Date;
5326
- deletedAt: Date | null;
5327
- fileName: string;
5328
- fileKey: string;
5329
- bucketName: string;
5330
- fileSize: number;
5331
- fileUrl: string | null;
5332
- }[];
5333
- }[];
5334
- company: {
5335
- id: string;
5336
- createdAt: Date;
5337
- updatedAt: Date;
5338
- deletedAt: Date | null;
5339
- name?: string | undefined;
5340
- address?: string | null | undefined;
5341
- phone?: string | null | undefined;
5342
- industry?: string | null | undefined;
5343
- } | null;
5344
- notes: string | null;
5345
- contactProfile: string | null;
5346
- socialProfileUrl: string | null;
5347
- tags: {
5348
- name: string;
5349
- id: string;
5350
- createdAt: Date;
5351
- updatedAt: Date;
5352
- deletedAt: Date | null;
5353
- }[];
5354
- contactEmails: {
5355
- id: string;
5356
- isPrimary: boolean;
5357
- email: string;
5358
- createdAt: Date;
5359
- updatedAt: Date;
5360
- deletedAt: Date | null;
5361
- }[];
5362
- contactPhones: {
5363
- id: string;
5364
- isPrimary: boolean;
5365
- createdAt: Date;
5366
- updatedAt: Date;
5367
- deletedAt: Date | null;
5368
- phone: string;
5369
- }[];
5370
- platformContacts?: {
5371
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5372
- id: string;
5373
- metadata: {
5374
- name: string;
5375
- id: string;
5376
- picture?: string | undefined;
5377
- additionalCredentials?: any;
5378
- };
5379
- createdAt: Date;
5380
- updatedAt: Date;
5381
- deletedAt: Date | null;
5382
- channelId: string;
5383
- socialPlatformId: string;
5384
- }[] | undefined;
5385
- activityLogs?: {
5386
- id: string;
5387
- description: string;
5388
- createdAt: Date;
5389
- updatedAt: Date;
5390
- deletedAt: Date | null;
5391
- entityId: string;
5392
- entityType: {
5393
- id: string;
5394
- description: string | null;
5395
- createdAt: Date;
5396
- updatedAt: Date;
5397
- deletedAt: Date | null;
5398
- entity: string;
5399
- };
5400
- }[] | undefined;
5401
- } | undefined;
5402
- telephonyQueue?: {
5403
- id: string;
5404
- createdAt: Date;
5405
- updatedAt: Date;
5406
- deletedAt: Date | null;
5407
- queueId: number;
5408
- queueName: string;
5409
- queueNumber: string;
5410
- maximumWaitingTime: number;
5411
- } | null | undefined;
5412
- upload?: {
5413
- id: string;
5414
- status: string | null;
5415
- createdAt: Date;
5416
- updatedAt: Date;
5417
- deletedAt: Date | null;
5418
- fileName: string;
5419
- fileKey: string;
5420
- bucketName: string;
5421
- fileSize: number;
5422
- fileUrl: string | null;
5423
- } | null | undefined;
5424
- extension?: {
5425
- id: string;
5426
- createdAt: Date;
5427
- updatedAt: Date;
5428
- deletedAt: Date | null;
5429
- userId: string | null;
5430
- sipServerUrl: string;
5431
- sipUserName: string;
5432
- webphoneLoginUser: string;
5433
- extensionId: string | null;
5434
- extensionName: string;
5435
- telephonySignature: string | null;
5436
- user?: {
5437
- name: string;
5438
- id: string;
5439
- address: string | null;
5440
- email: string;
5441
- createdAt: Date;
5442
- updatedAt: Date;
5443
- deletedAt: Date | null;
5444
- emailVerifiedAt: Date | null;
5445
- password: string;
5446
- phone: string | null;
5447
- notificationCount: number | null;
5448
- roles: {
5449
- id: string;
5450
- description: string | null;
5451
- createdAt: Date;
5452
- updatedAt: Date;
5453
- deletedAt: Date | null;
5454
- systemName: string;
5455
- displayName: string;
5456
- permissions: {
5457
- id: string;
5458
- description: string | null;
5459
- createdAt: Date;
5460
- updatedAt: Date;
5461
- deletedAt: Date | null;
5462
- systemName: string;
5463
- displayName: string;
5464
- }[];
5465
- }[];
5466
- extension: {
5467
- id: string;
5468
- createdAt: Date;
5469
- updatedAt: Date;
5470
- deletedAt: Date | null;
5471
- userId: string | null;
5472
- sipServerUrl: string;
5473
- sipUserName: string;
5474
- webphoneLoginUser: string;
5475
- extensionId: string | null;
5476
- extensionName: string;
5477
- telephonySignature: string | null;
5478
- };
5479
- } | null | undefined;
5480
- } | null | undefined;
5481
- }[];
5482
- }, {
5483
- total: number;
5484
- page: number;
5485
- pageSize: number;
5486
- requestId: string;
5487
- telephonyCdrs: {
5488
- type: string;
5489
- id: string;
5490
- recording: string | null;
5491
- status: string;
5492
- createdAt: Date;
5493
- updatedAt: Date;
5494
- deletedAt: Date | null;
5495
- extensionId: string | null;
5496
- uniqueCallId: string;
5497
- timeStart: string;
5498
- callFrom: string;
5499
- callTo: string;
5500
- callDuration: number | null;
5501
- talkDuration: number | null;
5502
- srcTrunkName: string | null;
5503
- dstTrunkName: string | null;
5504
- pinCode: string | null;
5505
- didNumber: string | null;
5506
- agentRingTime: number | null;
5507
- uploadId: string | null;
5508
- serialNumber: string | null;
5509
- callParticipants: {
5510
- callTo?: {
5511
- id: string;
5512
- user: {
5513
- name: string;
5514
- id: string;
5515
- address: string | null;
5516
- email: string;
5517
- createdAt: Date;
5518
- updatedAt: Date;
5519
- deletedAt: Date | null;
5520
- emailVerifiedAt: Date | null;
5521
- password: string;
5522
- phone: string | null;
5523
- notificationCount: number | null;
5524
- } | null;
5525
- deletedAt: string | null;
5526
- userId: string;
5527
- sipServerUrl: string | null;
5528
- sipUserName: string | null;
5529
- webphoneLoginUser: string | null;
5530
- extensionId: string | null;
5531
- extensionName: string | null;
5532
- telephonySignature: string | null;
5533
- createdAt?: string | undefined;
5534
- updatedAt?: string | undefined;
5535
- } | null | undefined;
5536
- callFrom?: {
5537
- id: string;
5538
- user: {
5539
- name: string;
5540
- id: string;
5541
- address: string | null;
5542
- email: string;
5543
- createdAt: Date;
5544
- updatedAt: Date;
5545
- deletedAt: Date | null;
5546
- emailVerifiedAt: Date | null;
5547
- password: string;
5548
- phone: string | null;
5549
- notificationCount: number | null;
5550
- } | null;
5551
- deletedAt: string | null;
5552
- userId: string;
5553
- sipServerUrl: string | null;
5554
- sipUserName: string | null;
5555
- webphoneLoginUser: string | null;
5556
- extensionId: string | null;
5557
- extensionName: string | null;
5558
- telephonySignature: string | null;
5559
- createdAt?: string | undefined;
5560
- updatedAt?: string | undefined;
5561
- } | null | undefined;
5562
- } | null;
5563
- isQueueMissedCall: boolean;
5564
- telephonyQueueId: string | null;
5565
- contactId: string | null;
5566
- contact?: {
5567
- name: string;
5568
- id: string;
5569
- channel: string | null;
5570
- address: string | null;
5571
- createdAt: Date;
5572
- updatedAt: Date;
5573
- deletedAt: Date | null;
5574
- customFields: {
5575
- id: string;
5576
- createdAt: Date;
5577
- updatedAt: Date;
5578
- deletedAt: Date | null;
5579
- attribute: {
5580
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5581
- id: string;
5582
- position: number;
5583
- createdAt: Date;
5584
- updatedAt: Date;
5585
- deletedAt: Date | null;
5586
- systemName: string;
5587
- displayName: string;
5588
- isDefault: boolean;
5589
- isArchived: boolean;
5590
- isRequired: boolean;
5591
- isUnique: boolean;
5592
- };
5593
- textValue: string | null;
5594
- booleanValue: boolean | null;
5595
- numberValue: number | null;
5596
- dateValue: Date | null;
5597
- uploads: {
5598
- id: string;
5599
- status: string | null;
5600
- createdAt: Date;
5601
- updatedAt: Date;
5602
- deletedAt: Date | null;
5603
- fileName: string;
5604
- fileKey: string;
5605
- bucketName: string;
5606
- fileSize: number;
5607
- fileUrl: string | null;
5608
- }[];
5609
- }[];
5610
- company: {
5611
- id: string;
5612
- createdAt: Date;
5613
- updatedAt: Date;
5614
- deletedAt: Date | null;
5615
- name?: string | undefined;
5616
- address?: string | null | undefined;
5617
- phone?: string | null | undefined;
5618
- industry?: string | null | undefined;
5619
- } | null;
5620
- notes: string | null;
5621
- contactProfile: string | null;
5622
- socialProfileUrl: string | null;
5623
- tags: {
5624
- name: string;
5625
- id: string;
5626
- createdAt: Date;
5627
- updatedAt: Date;
5628
- deletedAt: Date | null;
5629
- }[];
5630
- contactEmails: {
5631
- id: string;
5632
- isPrimary: boolean;
5633
- email: string;
5634
- createdAt: Date;
5635
- updatedAt: Date;
5636
- deletedAt: Date | null;
5637
- }[];
5638
- contactPhones: {
5639
- id: string;
5640
- isPrimary: boolean;
5641
- createdAt: Date;
5642
- updatedAt: Date;
5643
- deletedAt: Date | null;
5644
- phone: string;
5645
- }[];
5646
- platformContacts?: {
5647
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5648
- id: string;
5649
- metadata: {
5650
- name: string;
5651
- id: string;
5652
- picture?: string | undefined;
5653
- additionalCredentials?: any;
5654
- };
5655
- createdAt: Date;
5656
- updatedAt: Date;
5657
- deletedAt: Date | null;
5658
- channelId: string;
5659
- socialPlatformId: string;
5660
- }[] | undefined;
5661
- activityLogs?: {
5662
- id: string;
5663
- description: string;
5664
- createdAt: Date;
5665
- updatedAt: Date;
5666
- deletedAt: Date | null;
5667
- entityId: string;
5668
- entityType: {
5669
- id: string;
5670
- description: string | null;
5671
- createdAt: Date;
5672
- updatedAt: Date;
5673
- deletedAt: Date | null;
5674
- entity: string;
5675
- };
5676
- }[] | undefined;
5677
- } | undefined;
5678
- telephonyQueue?: {
5679
- id: string;
5680
- createdAt: Date;
5681
- updatedAt: Date;
5682
- deletedAt: Date | null;
5683
- queueId: number;
5684
- queueName: string;
5685
- queueNumber: string;
5686
- maximumWaitingTime: number;
5687
- } | null | undefined;
5688
- upload?: {
5689
- id: string;
5690
- status: string | null;
5691
- createdAt: Date;
5692
- updatedAt: Date;
5693
- deletedAt: Date | null;
5694
- fileName: string;
5695
- fileKey: string;
5696
- bucketName: string;
5697
- fileSize: number;
5698
- fileUrl: string | null;
5699
- } | null | undefined;
5700
- extension?: {
5701
- id: string;
5702
- createdAt: Date;
5703
- updatedAt: Date;
5704
- deletedAt: Date | null;
5705
- userId: string | null;
5706
- sipServerUrl: string;
5707
- sipUserName: string;
5708
- webphoneLoginUser: string;
5709
- extensionId: string | null;
5710
- extensionName: string;
5711
- telephonySignature: string | null;
5712
- user?: {
5713
- name: string;
5714
- id: string;
5715
- address: string | null;
5716
- email: string;
5717
- createdAt: Date;
5718
- updatedAt: Date;
5719
- deletedAt: Date | null;
5720
- emailVerifiedAt: Date | null;
5721
- password: string;
5722
- phone: string | null;
5723
- notificationCount: number | null;
5724
- roles: {
5725
- id: string;
5726
- description: string | null;
5727
- createdAt: Date;
5728
- updatedAt: Date;
5729
- deletedAt: Date | null;
5730
- systemName: string;
5731
- displayName: string;
5732
- permissions: {
5733
- id: string;
5734
- description: string | null;
5735
- createdAt: Date;
5736
- updatedAt: Date;
5737
- deletedAt: Date | null;
5738
- systemName: string;
5739
- displayName: string;
5740
- }[];
5741
- }[];
5742
- extension: {
5743
- id: string;
5744
- createdAt: Date;
5745
- updatedAt: Date;
5746
- deletedAt: Date | null;
5747
- userId: string | null;
5748
- sipServerUrl: string;
5749
- sipUserName: string;
5750
- webphoneLoginUser: string;
5751
- extensionId: string | null;
5752
- extensionName: string;
5753
- telephonySignature: string | null;
5754
- };
5755
- } | null | undefined;
5756
- } | null | undefined;
5757
- }[];
5758
- }>;
5759
- 401: z.ZodObject<{
5760
- message: z.ZodString;
5761
- error: z.ZodAny;
5762
- }, "strip", z.ZodTypeAny, {
5763
- message: string;
5764
- error?: any;
5765
- }, {
5766
- message: string;
5767
- error?: any;
5768
- }>;
5769
- };
5770
- path: "ms/telephony-cdr/recordings";
2891
+ path: "/tcdrs/api/v1/telephony-cdr";
5771
2892
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5772
2893
  'x-tenant': z.ZodString;
5773
2894
  'x-service-token': z.ZodString;
@@ -5785,6 +2906,8 @@ export declare const telephonyCdrContract: {
5785
2906
  'x-client-timezone'?: string | undefined;
5786
2907
  }>>>;
5787
2908
  };
2909
+ };
2910
+ export declare const telephonyCdrContract: {
5788
2911
  getRecentCall: {
5789
2912
  summary: "Get recent telephony cdr.";
5790
2913
  method: "GET";