@kl1/contracts 1.0.61 → 1.0.63

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.
@@ -3221,5 +3221,1871 @@ export declare const channelContract: {
3221
3221
  }>>>;
3222
3222
  };
3223
3223
  };
3224
+ instagram: {
3225
+ getPages: {
3226
+ method: "GET";
3227
+ query: z.ZodObject<{
3228
+ accessToken: z.ZodString;
3229
+ userId: z.ZodString;
3230
+ }, "strip", z.ZodTypeAny, {
3231
+ userId: string;
3232
+ accessToken: string;
3233
+ }, {
3234
+ userId: string;
3235
+ accessToken: string;
3236
+ }>;
3237
+ responses: {
3238
+ 200: z.ZodObject<{
3239
+ requestId: z.ZodString;
3240
+ data: z.ZodObject<{
3241
+ data: z.ZodArray<z.ZodObject<{
3242
+ access_token: z.ZodString;
3243
+ category: z.ZodString;
3244
+ category_list: z.ZodArray<z.ZodObject<{
3245
+ id: z.ZodString;
3246
+ name: z.ZodString;
3247
+ }, "strip", z.ZodTypeAny, {
3248
+ id: string;
3249
+ name: string;
3250
+ }, {
3251
+ id: string;
3252
+ name: string;
3253
+ }>, "many">;
3254
+ id: z.ZodString;
3255
+ name: z.ZodString;
3256
+ tasks: z.ZodArray<z.ZodString, "many">;
3257
+ }, "strip", z.ZodTypeAny, {
3258
+ id: string;
3259
+ name: string;
3260
+ category: string;
3261
+ access_token: string;
3262
+ category_list: {
3263
+ id: string;
3264
+ name: string;
3265
+ }[];
3266
+ tasks: string[];
3267
+ }, {
3268
+ id: string;
3269
+ name: string;
3270
+ category: string;
3271
+ access_token: string;
3272
+ category_list: {
3273
+ id: string;
3274
+ name: string;
3275
+ }[];
3276
+ tasks: string[];
3277
+ }>, "many">;
3278
+ paging: z.ZodOptional<z.ZodObject<{
3279
+ cursors: z.ZodObject<{
3280
+ before: z.ZodOptional<z.ZodString>;
3281
+ after: z.ZodOptional<z.ZodString>;
3282
+ }, "strip", z.ZodTypeAny, {
3283
+ before?: string | undefined;
3284
+ after?: string | undefined;
3285
+ }, {
3286
+ before?: string | undefined;
3287
+ after?: string | undefined;
3288
+ }>;
3289
+ }, "strip", z.ZodTypeAny, {
3290
+ cursors: {
3291
+ before?: string | undefined;
3292
+ after?: string | undefined;
3293
+ };
3294
+ }, {
3295
+ cursors: {
3296
+ before?: string | undefined;
3297
+ after?: string | undefined;
3298
+ };
3299
+ }>>;
3300
+ }, "strip", z.ZodTypeAny, {
3301
+ data: {
3302
+ id: string;
3303
+ name: string;
3304
+ category: string;
3305
+ access_token: string;
3306
+ category_list: {
3307
+ id: string;
3308
+ name: string;
3309
+ }[];
3310
+ tasks: string[];
3311
+ }[];
3312
+ paging?: {
3313
+ cursors: {
3314
+ before?: string | undefined;
3315
+ after?: string | undefined;
3316
+ };
3317
+ } | undefined;
3318
+ }, {
3319
+ data: {
3320
+ id: string;
3321
+ name: string;
3322
+ category: string;
3323
+ access_token: string;
3324
+ category_list: {
3325
+ id: string;
3326
+ name: string;
3327
+ }[];
3328
+ tasks: string[];
3329
+ }[];
3330
+ paging?: {
3331
+ cursors: {
3332
+ before?: string | undefined;
3333
+ after?: string | undefined;
3334
+ };
3335
+ } | undefined;
3336
+ }>;
3337
+ }, "strip", z.ZodTypeAny, {
3338
+ data: {
3339
+ data: {
3340
+ id: string;
3341
+ name: string;
3342
+ category: string;
3343
+ access_token: string;
3344
+ category_list: {
3345
+ id: string;
3346
+ name: string;
3347
+ }[];
3348
+ tasks: string[];
3349
+ }[];
3350
+ paging?: {
3351
+ cursors: {
3352
+ before?: string | undefined;
3353
+ after?: string | undefined;
3354
+ };
3355
+ } | undefined;
3356
+ };
3357
+ requestId: string;
3358
+ }, {
3359
+ data: {
3360
+ data: {
3361
+ id: string;
3362
+ name: string;
3363
+ category: string;
3364
+ access_token: string;
3365
+ category_list: {
3366
+ id: string;
3367
+ name: string;
3368
+ }[];
3369
+ tasks: string[];
3370
+ }[];
3371
+ paging?: {
3372
+ cursors: {
3373
+ before?: string | undefined;
3374
+ after?: string | undefined;
3375
+ };
3376
+ } | undefined;
3377
+ };
3378
+ requestId: string;
3379
+ }>;
3380
+ 500: z.ZodObject<{
3381
+ message: z.ZodString;
3382
+ error: z.ZodAny;
3383
+ }, "strip", z.ZodTypeAny, {
3384
+ message: string;
3385
+ error?: any;
3386
+ }, {
3387
+ message: string;
3388
+ error?: any;
3389
+ }>;
3390
+ };
3391
+ path: "channel/instagram/pages";
3392
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3393
+ 'x-tenant': z.ZodString;
3394
+ authorization: z.ZodString;
3395
+ 'x-code': z.ZodOptional<z.ZodString>;
3396
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
3397
+ }, "strip", z.ZodTypeAny, {
3398
+ 'x-tenant': string;
3399
+ authorization: string;
3400
+ 'x-client-timezone': string;
3401
+ 'x-code'?: string | undefined;
3402
+ }, {
3403
+ 'x-tenant': string;
3404
+ authorization: string;
3405
+ 'x-code'?: string | undefined;
3406
+ 'x-client-timezone'?: string | undefined;
3407
+ }>>>;
3408
+ };
3409
+ connect: {
3410
+ body: z.ZodObject<{
3411
+ name: z.ZodString;
3412
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
3413
+ metadata: z.ZodObject<{
3414
+ id: z.ZodString;
3415
+ name: z.ZodString;
3416
+ accessToken: z.ZodString;
3417
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
3418
+ }, "strip", z.ZodTypeAny, {
3419
+ id: string;
3420
+ name: string;
3421
+ accessToken: string;
3422
+ additionalCredentials?: any;
3423
+ }, {
3424
+ id: string;
3425
+ name: string;
3426
+ accessToken: string;
3427
+ additionalCredentials?: any;
3428
+ }>;
3429
+ platformId: z.ZodString;
3430
+ connectedUserId: z.ZodString;
3431
+ }, "strip", z.ZodTypeAny, {
3432
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3433
+ name: string;
3434
+ metadata: {
3435
+ id: string;
3436
+ name: string;
3437
+ accessToken: string;
3438
+ additionalCredentials?: any;
3439
+ };
3440
+ platformId: string;
3441
+ connectedUserId: string;
3442
+ }, {
3443
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
3444
+ name: string;
3445
+ metadata: {
3446
+ id: string;
3447
+ name: string;
3448
+ accessToken: string;
3449
+ additionalCredentials?: any;
3450
+ };
3451
+ platformId: string;
3452
+ connectedUserId: string;
3453
+ }>;
3454
+ summary: "Connect message channel";
3455
+ method: "POST";
3456
+ responses: {
3457
+ 200: z.ZodObject<{
3458
+ requestId: z.ZodString;
3459
+ channel: z.ZodOptional<z.ZodObject<{
3460
+ id: z.ZodOptional<z.ZodString>;
3461
+ createdAt: z.ZodOptional<z.ZodDate>;
3462
+ updatedAt: z.ZodOptional<z.ZodDate>;
3463
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
3464
+ name: z.ZodOptional<z.ZodString>;
3465
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
3466
+ metadata: z.ZodOptional<z.ZodObject<{
3467
+ id: z.ZodString;
3468
+ name: z.ZodString;
3469
+ accessToken: z.ZodString;
3470
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
3471
+ }, "strip", z.ZodTypeAny, {
3472
+ id: string;
3473
+ name: string;
3474
+ accessToken: string;
3475
+ additionalCredentials?: any;
3476
+ }, {
3477
+ id: string;
3478
+ name: string;
3479
+ accessToken: string;
3480
+ additionalCredentials?: any;
3481
+ }>>;
3482
+ brandName: z.ZodOptional<z.ZodString>;
3483
+ platformId: z.ZodOptional<z.ZodString>;
3484
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
3485
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
3486
+ connectedUserName: z.ZodOptional<z.ZodString>;
3487
+ connectedUserId: z.ZodOptional<z.ZodString>;
3488
+ actor: z.ZodOptional<z.ZodObject<{
3489
+ id: z.ZodString;
3490
+ createdAt: z.ZodDate;
3491
+ updatedAt: z.ZodDate;
3492
+ deletedAt: z.ZodNullable<z.ZodDate>;
3493
+ name: z.ZodString;
3494
+ email: z.ZodString;
3495
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3496
+ password: z.ZodString;
3497
+ address: z.ZodNullable<z.ZodString>;
3498
+ phone: z.ZodNullable<z.ZodString>;
3499
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3500
+ roles: z.ZodArray<z.ZodObject<{
3501
+ id: z.ZodString;
3502
+ createdAt: z.ZodDate;
3503
+ updatedAt: z.ZodDate;
3504
+ deletedAt: z.ZodNullable<z.ZodDate>;
3505
+ systemName: z.ZodString;
3506
+ displayName: z.ZodString;
3507
+ description: z.ZodNullable<z.ZodString>;
3508
+ permissions: z.ZodArray<z.ZodObject<{
3509
+ id: z.ZodString;
3510
+ createdAt: z.ZodDate;
3511
+ updatedAt: z.ZodDate;
3512
+ deletedAt: z.ZodNullable<z.ZodDate>;
3513
+ systemName: z.ZodString;
3514
+ displayName: z.ZodString;
3515
+ description: z.ZodNullable<z.ZodString>;
3516
+ }, "strip", z.ZodTypeAny, {
3517
+ id: string;
3518
+ description: string | null;
3519
+ createdAt: Date;
3520
+ updatedAt: Date;
3521
+ deletedAt: Date | null;
3522
+ systemName: string;
3523
+ displayName: string;
3524
+ }, {
3525
+ id: string;
3526
+ description: string | null;
3527
+ createdAt: Date;
3528
+ updatedAt: Date;
3529
+ deletedAt: Date | null;
3530
+ systemName: string;
3531
+ displayName: string;
3532
+ }>, "many">;
3533
+ }, "strip", z.ZodTypeAny, {
3534
+ id: string;
3535
+ description: string | null;
3536
+ createdAt: Date;
3537
+ updatedAt: Date;
3538
+ deletedAt: Date | null;
3539
+ systemName: string;
3540
+ displayName: string;
3541
+ permissions: {
3542
+ id: string;
3543
+ description: string | null;
3544
+ createdAt: Date;
3545
+ updatedAt: Date;
3546
+ deletedAt: Date | null;
3547
+ systemName: string;
3548
+ displayName: string;
3549
+ }[];
3550
+ }, {
3551
+ id: string;
3552
+ description: string | null;
3553
+ createdAt: Date;
3554
+ updatedAt: Date;
3555
+ deletedAt: Date | null;
3556
+ systemName: string;
3557
+ displayName: string;
3558
+ permissions: {
3559
+ id: string;
3560
+ description: string | null;
3561
+ createdAt: Date;
3562
+ updatedAt: Date;
3563
+ deletedAt: Date | null;
3564
+ systemName: string;
3565
+ displayName: string;
3566
+ }[];
3567
+ }>, "many">;
3568
+ extension: z.ZodObject<{
3569
+ id: z.ZodString;
3570
+ createdAt: z.ZodDate;
3571
+ updatedAt: z.ZodDate;
3572
+ deletedAt: z.ZodNullable<z.ZodDate>;
3573
+ userId: z.ZodNullable<z.ZodString>;
3574
+ sipServerUrl: z.ZodString;
3575
+ sipUserName: z.ZodString;
3576
+ webphoneLoginUser: z.ZodString;
3577
+ extensionId: z.ZodNullable<z.ZodString>;
3578
+ extensionName: z.ZodString;
3579
+ telephonySignature: z.ZodNullable<z.ZodString>;
3580
+ }, "strip", z.ZodTypeAny, {
3581
+ id: string;
3582
+ createdAt: Date;
3583
+ updatedAt: Date;
3584
+ deletedAt: Date | null;
3585
+ userId: string | null;
3586
+ sipServerUrl: string;
3587
+ sipUserName: string;
3588
+ webphoneLoginUser: string;
3589
+ extensionId: string | null;
3590
+ extensionName: string;
3591
+ telephonySignature: string | null;
3592
+ }, {
3593
+ id: string;
3594
+ createdAt: Date;
3595
+ updatedAt: Date;
3596
+ deletedAt: Date | null;
3597
+ userId: string | null;
3598
+ sipServerUrl: string;
3599
+ sipUserName: string;
3600
+ webphoneLoginUser: string;
3601
+ extensionId: string | null;
3602
+ extensionName: string;
3603
+ telephonySignature: string | null;
3604
+ }>;
3605
+ }, "strip", z.ZodTypeAny, {
3606
+ id: string;
3607
+ address: string | null;
3608
+ name: string;
3609
+ email: string;
3610
+ createdAt: Date;
3611
+ updatedAt: Date;
3612
+ deletedAt: Date | null;
3613
+ emailVerifiedAt: Date | null;
3614
+ password: string;
3615
+ phone: string | null;
3616
+ notificationCount: number | null;
3617
+ roles: {
3618
+ id: string;
3619
+ description: string | null;
3620
+ createdAt: Date;
3621
+ updatedAt: Date;
3622
+ deletedAt: Date | null;
3623
+ systemName: string;
3624
+ displayName: string;
3625
+ permissions: {
3626
+ id: string;
3627
+ description: string | null;
3628
+ createdAt: Date;
3629
+ updatedAt: Date;
3630
+ deletedAt: Date | null;
3631
+ systemName: string;
3632
+ displayName: string;
3633
+ }[];
3634
+ }[];
3635
+ extension: {
3636
+ id: string;
3637
+ createdAt: Date;
3638
+ updatedAt: Date;
3639
+ deletedAt: Date | null;
3640
+ userId: string | null;
3641
+ sipServerUrl: string;
3642
+ sipUserName: string;
3643
+ webphoneLoginUser: string;
3644
+ extensionId: string | null;
3645
+ extensionName: string;
3646
+ telephonySignature: string | null;
3647
+ };
3648
+ }, {
3649
+ id: string;
3650
+ address: string | null;
3651
+ name: string;
3652
+ email: string;
3653
+ createdAt: Date;
3654
+ updatedAt: Date;
3655
+ deletedAt: Date | null;
3656
+ emailVerifiedAt: Date | null;
3657
+ password: string;
3658
+ phone: string | null;
3659
+ notificationCount: number | null;
3660
+ roles: {
3661
+ id: string;
3662
+ description: string | null;
3663
+ createdAt: Date;
3664
+ updatedAt: Date;
3665
+ deletedAt: Date | null;
3666
+ systemName: string;
3667
+ displayName: string;
3668
+ permissions: {
3669
+ id: string;
3670
+ description: string | null;
3671
+ createdAt: Date;
3672
+ updatedAt: Date;
3673
+ deletedAt: Date | null;
3674
+ systemName: string;
3675
+ displayName: string;
3676
+ }[];
3677
+ }[];
3678
+ extension: {
3679
+ id: string;
3680
+ createdAt: Date;
3681
+ updatedAt: Date;
3682
+ deletedAt: Date | null;
3683
+ userId: string | null;
3684
+ sipServerUrl: string;
3685
+ sipUserName: string;
3686
+ webphoneLoginUser: string;
3687
+ extensionId: string | null;
3688
+ extensionName: string;
3689
+ telephonySignature: string | null;
3690
+ };
3691
+ }>>;
3692
+ }, "strip", z.ZodTypeAny, {
3693
+ id?: string | undefined;
3694
+ createdAt?: Date | undefined;
3695
+ updatedAt?: Date | undefined;
3696
+ deletedAt?: Date | null | undefined;
3697
+ name?: string | undefined;
3698
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3699
+ metadata?: {
3700
+ id: string;
3701
+ name: string;
3702
+ accessToken: string;
3703
+ additionalCredentials?: any;
3704
+ } | undefined;
3705
+ brandName?: string | undefined;
3706
+ platformId?: string | undefined;
3707
+ status?: boolean | undefined;
3708
+ isReloginRequired?: boolean | undefined;
3709
+ connectedUserName?: string | undefined;
3710
+ connectedUserId?: string | undefined;
3711
+ actor?: {
3712
+ id: string;
3713
+ address: string | null;
3714
+ name: string;
3715
+ email: string;
3716
+ createdAt: Date;
3717
+ updatedAt: Date;
3718
+ deletedAt: Date | null;
3719
+ emailVerifiedAt: Date | null;
3720
+ password: string;
3721
+ phone: string | null;
3722
+ notificationCount: number | null;
3723
+ roles: {
3724
+ id: string;
3725
+ description: string | null;
3726
+ createdAt: Date;
3727
+ updatedAt: Date;
3728
+ deletedAt: Date | null;
3729
+ systemName: string;
3730
+ displayName: string;
3731
+ permissions: {
3732
+ id: string;
3733
+ description: string | null;
3734
+ createdAt: Date;
3735
+ updatedAt: Date;
3736
+ deletedAt: Date | null;
3737
+ systemName: string;
3738
+ displayName: string;
3739
+ }[];
3740
+ }[];
3741
+ extension: {
3742
+ id: string;
3743
+ createdAt: Date;
3744
+ updatedAt: Date;
3745
+ deletedAt: Date | null;
3746
+ userId: string | null;
3747
+ sipServerUrl: string;
3748
+ sipUserName: string;
3749
+ webphoneLoginUser: string;
3750
+ extensionId: string | null;
3751
+ extensionName: string;
3752
+ telephonySignature: string | null;
3753
+ };
3754
+ } | undefined;
3755
+ }, {
3756
+ id?: string | undefined;
3757
+ createdAt?: Date | undefined;
3758
+ updatedAt?: Date | undefined;
3759
+ deletedAt?: Date | null | undefined;
3760
+ name?: string | undefined;
3761
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3762
+ metadata?: {
3763
+ id: string;
3764
+ name: string;
3765
+ accessToken: string;
3766
+ additionalCredentials?: any;
3767
+ } | undefined;
3768
+ brandName?: string | undefined;
3769
+ platformId?: string | undefined;
3770
+ status?: boolean | undefined;
3771
+ isReloginRequired?: boolean | undefined;
3772
+ connectedUserName?: string | undefined;
3773
+ connectedUserId?: string | undefined;
3774
+ actor?: {
3775
+ id: string;
3776
+ address: string | null;
3777
+ name: string;
3778
+ email: string;
3779
+ createdAt: Date;
3780
+ updatedAt: Date;
3781
+ deletedAt: Date | null;
3782
+ emailVerifiedAt: Date | null;
3783
+ password: string;
3784
+ phone: string | null;
3785
+ notificationCount: number | null;
3786
+ roles: {
3787
+ id: string;
3788
+ description: string | null;
3789
+ createdAt: Date;
3790
+ updatedAt: Date;
3791
+ deletedAt: Date | null;
3792
+ systemName: string;
3793
+ displayName: string;
3794
+ permissions: {
3795
+ id: string;
3796
+ description: string | null;
3797
+ createdAt: Date;
3798
+ updatedAt: Date;
3799
+ deletedAt: Date | null;
3800
+ systemName: string;
3801
+ displayName: string;
3802
+ }[];
3803
+ }[];
3804
+ extension: {
3805
+ id: string;
3806
+ createdAt: Date;
3807
+ updatedAt: Date;
3808
+ deletedAt: Date | null;
3809
+ userId: string | null;
3810
+ sipServerUrl: string;
3811
+ sipUserName: string;
3812
+ webphoneLoginUser: string;
3813
+ extensionId: string | null;
3814
+ extensionName: string;
3815
+ telephonySignature: string | null;
3816
+ };
3817
+ } | undefined;
3818
+ }>>;
3819
+ }, "strip", z.ZodTypeAny, {
3820
+ requestId: string;
3821
+ channel?: {
3822
+ id?: string | undefined;
3823
+ createdAt?: Date | undefined;
3824
+ updatedAt?: Date | undefined;
3825
+ deletedAt?: Date | null | undefined;
3826
+ name?: string | undefined;
3827
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3828
+ metadata?: {
3829
+ id: string;
3830
+ name: string;
3831
+ accessToken: string;
3832
+ additionalCredentials?: any;
3833
+ } | undefined;
3834
+ brandName?: string | undefined;
3835
+ platformId?: string | undefined;
3836
+ status?: boolean | undefined;
3837
+ isReloginRequired?: boolean | undefined;
3838
+ connectedUserName?: string | undefined;
3839
+ connectedUserId?: string | undefined;
3840
+ actor?: {
3841
+ id: string;
3842
+ address: string | null;
3843
+ name: string;
3844
+ email: string;
3845
+ createdAt: Date;
3846
+ updatedAt: Date;
3847
+ deletedAt: Date | null;
3848
+ emailVerifiedAt: Date | null;
3849
+ password: string;
3850
+ phone: string | null;
3851
+ notificationCount: number | null;
3852
+ roles: {
3853
+ id: string;
3854
+ description: string | null;
3855
+ createdAt: Date;
3856
+ updatedAt: Date;
3857
+ deletedAt: Date | null;
3858
+ systemName: string;
3859
+ displayName: string;
3860
+ permissions: {
3861
+ id: string;
3862
+ description: string | null;
3863
+ createdAt: Date;
3864
+ updatedAt: Date;
3865
+ deletedAt: Date | null;
3866
+ systemName: string;
3867
+ displayName: string;
3868
+ }[];
3869
+ }[];
3870
+ extension: {
3871
+ id: string;
3872
+ createdAt: Date;
3873
+ updatedAt: Date;
3874
+ deletedAt: Date | null;
3875
+ userId: string | null;
3876
+ sipServerUrl: string;
3877
+ sipUserName: string;
3878
+ webphoneLoginUser: string;
3879
+ extensionId: string | null;
3880
+ extensionName: string;
3881
+ telephonySignature: string | null;
3882
+ };
3883
+ } | undefined;
3884
+ } | undefined;
3885
+ }, {
3886
+ requestId: string;
3887
+ channel?: {
3888
+ id?: string | undefined;
3889
+ createdAt?: Date | undefined;
3890
+ updatedAt?: Date | undefined;
3891
+ deletedAt?: Date | null | undefined;
3892
+ name?: string | undefined;
3893
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
3894
+ metadata?: {
3895
+ id: string;
3896
+ name: string;
3897
+ accessToken: string;
3898
+ additionalCredentials?: any;
3899
+ } | undefined;
3900
+ brandName?: string | undefined;
3901
+ platformId?: string | undefined;
3902
+ status?: boolean | undefined;
3903
+ isReloginRequired?: boolean | undefined;
3904
+ connectedUserName?: string | undefined;
3905
+ connectedUserId?: string | undefined;
3906
+ actor?: {
3907
+ id: string;
3908
+ address: string | null;
3909
+ name: string;
3910
+ email: string;
3911
+ createdAt: Date;
3912
+ updatedAt: Date;
3913
+ deletedAt: Date | null;
3914
+ emailVerifiedAt: Date | null;
3915
+ password: string;
3916
+ phone: string | null;
3917
+ notificationCount: number | null;
3918
+ roles: {
3919
+ id: string;
3920
+ description: string | null;
3921
+ createdAt: Date;
3922
+ updatedAt: Date;
3923
+ deletedAt: Date | null;
3924
+ systemName: string;
3925
+ displayName: string;
3926
+ permissions: {
3927
+ id: string;
3928
+ description: string | null;
3929
+ createdAt: Date;
3930
+ updatedAt: Date;
3931
+ deletedAt: Date | null;
3932
+ systemName: string;
3933
+ displayName: string;
3934
+ }[];
3935
+ }[];
3936
+ extension: {
3937
+ id: string;
3938
+ createdAt: Date;
3939
+ updatedAt: Date;
3940
+ deletedAt: Date | null;
3941
+ userId: string | null;
3942
+ sipServerUrl: string;
3943
+ sipUserName: string;
3944
+ webphoneLoginUser: string;
3945
+ extensionId: string | null;
3946
+ extensionName: string;
3947
+ telephonySignature: string | null;
3948
+ };
3949
+ } | undefined;
3950
+ } | undefined;
3951
+ }>;
3952
+ 408: z.ZodObject<{
3953
+ message: z.ZodString;
3954
+ error: z.ZodAny;
3955
+ }, "strip", z.ZodTypeAny, {
3956
+ message: string;
3957
+ error?: any;
3958
+ }, {
3959
+ message: string;
3960
+ error?: any;
3961
+ }>;
3962
+ };
3963
+ path: "channel/instagram/connect";
3964
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3965
+ 'x-tenant': z.ZodString;
3966
+ authorization: z.ZodString;
3967
+ 'x-code': z.ZodOptional<z.ZodString>;
3968
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
3969
+ }, "strip", z.ZodTypeAny, {
3970
+ 'x-tenant': string;
3971
+ authorization: string;
3972
+ 'x-client-timezone': string;
3973
+ 'x-code'?: string | undefined;
3974
+ }, {
3975
+ 'x-tenant': string;
3976
+ authorization: string;
3977
+ 'x-code'?: string | undefined;
3978
+ 'x-client-timezone'?: string | undefined;
3979
+ }>>>;
3980
+ };
3981
+ relogin: {
3982
+ body: z.ZodObject<{
3983
+ name: z.ZodString;
3984
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>;
3985
+ metadata: z.ZodObject<{
3986
+ id: z.ZodString;
3987
+ name: z.ZodString;
3988
+ accessToken: z.ZodString;
3989
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
3990
+ }, "strip", z.ZodTypeAny, {
3991
+ id: string;
3992
+ name: string;
3993
+ accessToken: string;
3994
+ additionalCredentials?: any;
3995
+ }, {
3996
+ id: string;
3997
+ name: string;
3998
+ accessToken: string;
3999
+ additionalCredentials?: any;
4000
+ }>;
4001
+ platformId: z.ZodString;
4002
+ connectedUserId: z.ZodString;
4003
+ }, "strip", z.ZodTypeAny, {
4004
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
4005
+ name: string;
4006
+ metadata: {
4007
+ id: string;
4008
+ name: string;
4009
+ accessToken: string;
4010
+ additionalCredentials?: any;
4011
+ };
4012
+ platformId: string;
4013
+ connectedUserId: string;
4014
+ }, {
4015
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram";
4016
+ name: string;
4017
+ metadata: {
4018
+ id: string;
4019
+ name: string;
4020
+ accessToken: string;
4021
+ additionalCredentials?: any;
4022
+ };
4023
+ platformId: string;
4024
+ connectedUserId: string;
4025
+ }>;
4026
+ summary: "Relogin message channel";
4027
+ method: "POST";
4028
+ responses: {
4029
+ 200: z.ZodObject<{
4030
+ requestId: z.ZodString;
4031
+ channel: z.ZodOptional<z.ZodObject<{
4032
+ id: z.ZodOptional<z.ZodString>;
4033
+ createdAt: z.ZodOptional<z.ZodDate>;
4034
+ updatedAt: z.ZodOptional<z.ZodDate>;
4035
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4036
+ name: z.ZodOptional<z.ZodString>;
4037
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
4038
+ metadata: z.ZodOptional<z.ZodObject<{
4039
+ id: z.ZodString;
4040
+ name: z.ZodString;
4041
+ accessToken: z.ZodString;
4042
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
4043
+ }, "strip", z.ZodTypeAny, {
4044
+ id: string;
4045
+ name: string;
4046
+ accessToken: string;
4047
+ additionalCredentials?: any;
4048
+ }, {
4049
+ id: string;
4050
+ name: string;
4051
+ accessToken: string;
4052
+ additionalCredentials?: any;
4053
+ }>>;
4054
+ brandName: z.ZodOptional<z.ZodString>;
4055
+ platformId: z.ZodOptional<z.ZodString>;
4056
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
4057
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
4058
+ connectedUserName: z.ZodOptional<z.ZodString>;
4059
+ connectedUserId: z.ZodOptional<z.ZodString>;
4060
+ actor: z.ZodOptional<z.ZodObject<{
4061
+ id: z.ZodString;
4062
+ createdAt: z.ZodDate;
4063
+ updatedAt: z.ZodDate;
4064
+ deletedAt: z.ZodNullable<z.ZodDate>;
4065
+ name: z.ZodString;
4066
+ email: z.ZodString;
4067
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4068
+ password: z.ZodString;
4069
+ address: z.ZodNullable<z.ZodString>;
4070
+ phone: z.ZodNullable<z.ZodString>;
4071
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4072
+ roles: z.ZodArray<z.ZodObject<{
4073
+ id: z.ZodString;
4074
+ createdAt: z.ZodDate;
4075
+ updatedAt: z.ZodDate;
4076
+ deletedAt: z.ZodNullable<z.ZodDate>;
4077
+ systemName: z.ZodString;
4078
+ displayName: z.ZodString;
4079
+ description: z.ZodNullable<z.ZodString>;
4080
+ permissions: z.ZodArray<z.ZodObject<{
4081
+ id: z.ZodString;
4082
+ createdAt: z.ZodDate;
4083
+ updatedAt: z.ZodDate;
4084
+ deletedAt: z.ZodNullable<z.ZodDate>;
4085
+ systemName: z.ZodString;
4086
+ displayName: z.ZodString;
4087
+ description: z.ZodNullable<z.ZodString>;
4088
+ }, "strip", z.ZodTypeAny, {
4089
+ id: string;
4090
+ description: string | null;
4091
+ createdAt: Date;
4092
+ updatedAt: Date;
4093
+ deletedAt: Date | null;
4094
+ systemName: string;
4095
+ displayName: string;
4096
+ }, {
4097
+ id: string;
4098
+ description: string | null;
4099
+ createdAt: Date;
4100
+ updatedAt: Date;
4101
+ deletedAt: Date | null;
4102
+ systemName: string;
4103
+ displayName: string;
4104
+ }>, "many">;
4105
+ }, "strip", z.ZodTypeAny, {
4106
+ id: string;
4107
+ description: string | null;
4108
+ createdAt: Date;
4109
+ updatedAt: Date;
4110
+ deletedAt: Date | null;
4111
+ systemName: string;
4112
+ displayName: string;
4113
+ permissions: {
4114
+ id: string;
4115
+ description: string | null;
4116
+ createdAt: Date;
4117
+ updatedAt: Date;
4118
+ deletedAt: Date | null;
4119
+ systemName: string;
4120
+ displayName: string;
4121
+ }[];
4122
+ }, {
4123
+ id: string;
4124
+ description: string | null;
4125
+ createdAt: Date;
4126
+ updatedAt: Date;
4127
+ deletedAt: Date | null;
4128
+ systemName: string;
4129
+ displayName: string;
4130
+ permissions: {
4131
+ id: string;
4132
+ description: string | null;
4133
+ createdAt: Date;
4134
+ updatedAt: Date;
4135
+ deletedAt: Date | null;
4136
+ systemName: string;
4137
+ displayName: string;
4138
+ }[];
4139
+ }>, "many">;
4140
+ extension: z.ZodObject<{
4141
+ id: z.ZodString;
4142
+ createdAt: z.ZodDate;
4143
+ updatedAt: z.ZodDate;
4144
+ deletedAt: z.ZodNullable<z.ZodDate>;
4145
+ userId: z.ZodNullable<z.ZodString>;
4146
+ sipServerUrl: z.ZodString;
4147
+ sipUserName: z.ZodString;
4148
+ webphoneLoginUser: z.ZodString;
4149
+ extensionId: z.ZodNullable<z.ZodString>;
4150
+ extensionName: z.ZodString;
4151
+ telephonySignature: z.ZodNullable<z.ZodString>;
4152
+ }, "strip", z.ZodTypeAny, {
4153
+ id: string;
4154
+ createdAt: Date;
4155
+ updatedAt: Date;
4156
+ deletedAt: Date | null;
4157
+ userId: string | null;
4158
+ sipServerUrl: string;
4159
+ sipUserName: string;
4160
+ webphoneLoginUser: string;
4161
+ extensionId: string | null;
4162
+ extensionName: string;
4163
+ telephonySignature: string | null;
4164
+ }, {
4165
+ id: string;
4166
+ createdAt: Date;
4167
+ updatedAt: Date;
4168
+ deletedAt: Date | null;
4169
+ userId: string | null;
4170
+ sipServerUrl: string;
4171
+ sipUserName: string;
4172
+ webphoneLoginUser: string;
4173
+ extensionId: string | null;
4174
+ extensionName: string;
4175
+ telephonySignature: string | null;
4176
+ }>;
4177
+ }, "strip", z.ZodTypeAny, {
4178
+ id: string;
4179
+ address: string | null;
4180
+ name: string;
4181
+ email: string;
4182
+ createdAt: Date;
4183
+ updatedAt: Date;
4184
+ deletedAt: Date | null;
4185
+ emailVerifiedAt: Date | null;
4186
+ password: string;
4187
+ phone: string | null;
4188
+ notificationCount: number | null;
4189
+ roles: {
4190
+ id: string;
4191
+ description: string | null;
4192
+ createdAt: Date;
4193
+ updatedAt: Date;
4194
+ deletedAt: Date | null;
4195
+ systemName: string;
4196
+ displayName: string;
4197
+ permissions: {
4198
+ id: string;
4199
+ description: string | null;
4200
+ createdAt: Date;
4201
+ updatedAt: Date;
4202
+ deletedAt: Date | null;
4203
+ systemName: string;
4204
+ displayName: string;
4205
+ }[];
4206
+ }[];
4207
+ extension: {
4208
+ id: string;
4209
+ createdAt: Date;
4210
+ updatedAt: Date;
4211
+ deletedAt: Date | null;
4212
+ userId: string | null;
4213
+ sipServerUrl: string;
4214
+ sipUserName: string;
4215
+ webphoneLoginUser: string;
4216
+ extensionId: string | null;
4217
+ extensionName: string;
4218
+ telephonySignature: string | null;
4219
+ };
4220
+ }, {
4221
+ id: string;
4222
+ address: string | null;
4223
+ name: string;
4224
+ email: string;
4225
+ createdAt: Date;
4226
+ updatedAt: Date;
4227
+ deletedAt: Date | null;
4228
+ emailVerifiedAt: Date | null;
4229
+ password: string;
4230
+ phone: string | null;
4231
+ notificationCount: number | null;
4232
+ roles: {
4233
+ id: string;
4234
+ description: string | null;
4235
+ createdAt: Date;
4236
+ updatedAt: Date;
4237
+ deletedAt: Date | null;
4238
+ systemName: string;
4239
+ displayName: string;
4240
+ permissions: {
4241
+ id: string;
4242
+ description: string | null;
4243
+ createdAt: Date;
4244
+ updatedAt: Date;
4245
+ deletedAt: Date | null;
4246
+ systemName: string;
4247
+ displayName: string;
4248
+ }[];
4249
+ }[];
4250
+ extension: {
4251
+ id: string;
4252
+ createdAt: Date;
4253
+ updatedAt: Date;
4254
+ deletedAt: Date | null;
4255
+ userId: string | null;
4256
+ sipServerUrl: string;
4257
+ sipUserName: string;
4258
+ webphoneLoginUser: string;
4259
+ extensionId: string | null;
4260
+ extensionName: string;
4261
+ telephonySignature: string | null;
4262
+ };
4263
+ }>>;
4264
+ }, "strip", z.ZodTypeAny, {
4265
+ id?: string | undefined;
4266
+ createdAt?: Date | undefined;
4267
+ updatedAt?: Date | undefined;
4268
+ deletedAt?: Date | null | undefined;
4269
+ name?: string | undefined;
4270
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4271
+ metadata?: {
4272
+ id: string;
4273
+ name: string;
4274
+ accessToken: string;
4275
+ additionalCredentials?: any;
4276
+ } | undefined;
4277
+ brandName?: string | undefined;
4278
+ platformId?: string | undefined;
4279
+ status?: boolean | undefined;
4280
+ isReloginRequired?: boolean | undefined;
4281
+ connectedUserName?: string | undefined;
4282
+ connectedUserId?: string | undefined;
4283
+ actor?: {
4284
+ id: string;
4285
+ address: string | null;
4286
+ name: string;
4287
+ email: string;
4288
+ createdAt: Date;
4289
+ updatedAt: Date;
4290
+ deletedAt: Date | null;
4291
+ emailVerifiedAt: Date | null;
4292
+ password: string;
4293
+ phone: string | null;
4294
+ notificationCount: number | null;
4295
+ roles: {
4296
+ id: string;
4297
+ description: string | null;
4298
+ createdAt: Date;
4299
+ updatedAt: Date;
4300
+ deletedAt: Date | null;
4301
+ systemName: string;
4302
+ displayName: string;
4303
+ permissions: {
4304
+ id: string;
4305
+ description: string | null;
4306
+ createdAt: Date;
4307
+ updatedAt: Date;
4308
+ deletedAt: Date | null;
4309
+ systemName: string;
4310
+ displayName: string;
4311
+ }[];
4312
+ }[];
4313
+ extension: {
4314
+ id: string;
4315
+ createdAt: Date;
4316
+ updatedAt: Date;
4317
+ deletedAt: Date | null;
4318
+ userId: string | null;
4319
+ sipServerUrl: string;
4320
+ sipUserName: string;
4321
+ webphoneLoginUser: string;
4322
+ extensionId: string | null;
4323
+ extensionName: string;
4324
+ telephonySignature: string | null;
4325
+ };
4326
+ } | undefined;
4327
+ }, {
4328
+ id?: string | undefined;
4329
+ createdAt?: Date | undefined;
4330
+ updatedAt?: Date | undefined;
4331
+ deletedAt?: Date | null | undefined;
4332
+ name?: string | undefined;
4333
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4334
+ metadata?: {
4335
+ id: string;
4336
+ name: string;
4337
+ accessToken: string;
4338
+ additionalCredentials?: any;
4339
+ } | undefined;
4340
+ brandName?: string | undefined;
4341
+ platformId?: string | undefined;
4342
+ status?: boolean | undefined;
4343
+ isReloginRequired?: boolean | undefined;
4344
+ connectedUserName?: string | undefined;
4345
+ connectedUserId?: string | undefined;
4346
+ actor?: {
4347
+ id: string;
4348
+ address: string | null;
4349
+ name: string;
4350
+ email: string;
4351
+ createdAt: Date;
4352
+ updatedAt: Date;
4353
+ deletedAt: Date | null;
4354
+ emailVerifiedAt: Date | null;
4355
+ password: string;
4356
+ phone: string | null;
4357
+ notificationCount: number | null;
4358
+ roles: {
4359
+ id: string;
4360
+ description: string | null;
4361
+ createdAt: Date;
4362
+ updatedAt: Date;
4363
+ deletedAt: Date | null;
4364
+ systemName: string;
4365
+ displayName: string;
4366
+ permissions: {
4367
+ id: string;
4368
+ description: string | null;
4369
+ createdAt: Date;
4370
+ updatedAt: Date;
4371
+ deletedAt: Date | null;
4372
+ systemName: string;
4373
+ displayName: string;
4374
+ }[];
4375
+ }[];
4376
+ extension: {
4377
+ id: string;
4378
+ createdAt: Date;
4379
+ updatedAt: Date;
4380
+ deletedAt: Date | null;
4381
+ userId: string | null;
4382
+ sipServerUrl: string;
4383
+ sipUserName: string;
4384
+ webphoneLoginUser: string;
4385
+ extensionId: string | null;
4386
+ extensionName: string;
4387
+ telephonySignature: string | null;
4388
+ };
4389
+ } | undefined;
4390
+ }>>;
4391
+ }, "strip", z.ZodTypeAny, {
4392
+ requestId: string;
4393
+ channel?: {
4394
+ id?: string | undefined;
4395
+ createdAt?: Date | undefined;
4396
+ updatedAt?: Date | undefined;
4397
+ deletedAt?: Date | null | undefined;
4398
+ name?: string | undefined;
4399
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4400
+ metadata?: {
4401
+ id: string;
4402
+ name: string;
4403
+ accessToken: string;
4404
+ additionalCredentials?: any;
4405
+ } | undefined;
4406
+ brandName?: string | undefined;
4407
+ platformId?: string | undefined;
4408
+ status?: boolean | undefined;
4409
+ isReloginRequired?: boolean | undefined;
4410
+ connectedUserName?: string | undefined;
4411
+ connectedUserId?: string | undefined;
4412
+ actor?: {
4413
+ id: string;
4414
+ address: string | null;
4415
+ name: string;
4416
+ email: string;
4417
+ createdAt: Date;
4418
+ updatedAt: Date;
4419
+ deletedAt: Date | null;
4420
+ emailVerifiedAt: Date | null;
4421
+ password: string;
4422
+ phone: string | null;
4423
+ notificationCount: number | null;
4424
+ roles: {
4425
+ id: string;
4426
+ description: string | null;
4427
+ createdAt: Date;
4428
+ updatedAt: Date;
4429
+ deletedAt: Date | null;
4430
+ systemName: string;
4431
+ displayName: string;
4432
+ permissions: {
4433
+ id: string;
4434
+ description: string | null;
4435
+ createdAt: Date;
4436
+ updatedAt: Date;
4437
+ deletedAt: Date | null;
4438
+ systemName: string;
4439
+ displayName: string;
4440
+ }[];
4441
+ }[];
4442
+ extension: {
4443
+ id: string;
4444
+ createdAt: Date;
4445
+ updatedAt: Date;
4446
+ deletedAt: Date | null;
4447
+ userId: string | null;
4448
+ sipServerUrl: string;
4449
+ sipUserName: string;
4450
+ webphoneLoginUser: string;
4451
+ extensionId: string | null;
4452
+ extensionName: string;
4453
+ telephonySignature: string | null;
4454
+ };
4455
+ } | undefined;
4456
+ } | undefined;
4457
+ }, {
4458
+ requestId: string;
4459
+ channel?: {
4460
+ id?: string | undefined;
4461
+ createdAt?: Date | undefined;
4462
+ updatedAt?: Date | undefined;
4463
+ deletedAt?: Date | null | undefined;
4464
+ name?: string | undefined;
4465
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4466
+ metadata?: {
4467
+ id: string;
4468
+ name: string;
4469
+ accessToken: string;
4470
+ additionalCredentials?: any;
4471
+ } | undefined;
4472
+ brandName?: string | undefined;
4473
+ platformId?: string | undefined;
4474
+ status?: boolean | undefined;
4475
+ isReloginRequired?: boolean | undefined;
4476
+ connectedUserName?: string | undefined;
4477
+ connectedUserId?: string | undefined;
4478
+ actor?: {
4479
+ id: string;
4480
+ address: string | null;
4481
+ name: string;
4482
+ email: string;
4483
+ createdAt: Date;
4484
+ updatedAt: Date;
4485
+ deletedAt: Date | null;
4486
+ emailVerifiedAt: Date | null;
4487
+ password: string;
4488
+ phone: string | null;
4489
+ notificationCount: number | null;
4490
+ roles: {
4491
+ id: string;
4492
+ description: string | null;
4493
+ createdAt: Date;
4494
+ updatedAt: Date;
4495
+ deletedAt: Date | null;
4496
+ systemName: string;
4497
+ displayName: string;
4498
+ permissions: {
4499
+ id: string;
4500
+ description: string | null;
4501
+ createdAt: Date;
4502
+ updatedAt: Date;
4503
+ deletedAt: Date | null;
4504
+ systemName: string;
4505
+ displayName: string;
4506
+ }[];
4507
+ }[];
4508
+ extension: {
4509
+ id: string;
4510
+ createdAt: Date;
4511
+ updatedAt: Date;
4512
+ deletedAt: Date | null;
4513
+ userId: string | null;
4514
+ sipServerUrl: string;
4515
+ sipUserName: string;
4516
+ webphoneLoginUser: string;
4517
+ extensionId: string | null;
4518
+ extensionName: string;
4519
+ telephonySignature: string | null;
4520
+ };
4521
+ } | undefined;
4522
+ } | undefined;
4523
+ }>;
4524
+ 408: z.ZodObject<{
4525
+ message: z.ZodString;
4526
+ error: z.ZodAny;
4527
+ }, "strip", z.ZodTypeAny, {
4528
+ message: string;
4529
+ error?: any;
4530
+ }, {
4531
+ message: string;
4532
+ error?: any;
4533
+ }>;
4534
+ };
4535
+ path: "channel/instagram/relogin";
4536
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4537
+ 'x-tenant': z.ZodString;
4538
+ authorization: z.ZodString;
4539
+ 'x-code': z.ZodOptional<z.ZodString>;
4540
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
4541
+ }, "strip", z.ZodTypeAny, {
4542
+ 'x-tenant': string;
4543
+ authorization: string;
4544
+ 'x-client-timezone': string;
4545
+ 'x-code'?: string | undefined;
4546
+ }, {
4547
+ 'x-tenant': string;
4548
+ authorization: string;
4549
+ 'x-code'?: string | undefined;
4550
+ 'x-client-timezone'?: string | undefined;
4551
+ }>>>;
4552
+ };
4553
+ disconnect: {
4554
+ body: null;
4555
+ summary: "Disconnect message channel";
4556
+ method: "POST";
4557
+ pathParams: z.ZodObject<{
4558
+ channelId: z.ZodString;
4559
+ }, "strip", z.ZodTypeAny, {
4560
+ channelId: string;
4561
+ }, {
4562
+ channelId: string;
4563
+ }>;
4564
+ responses: {
4565
+ 200: z.ZodObject<{
4566
+ requestId: z.ZodString;
4567
+ channel: z.ZodOptional<z.ZodObject<{
4568
+ id: z.ZodOptional<z.ZodString>;
4569
+ createdAt: z.ZodOptional<z.ZodDate>;
4570
+ updatedAt: z.ZodOptional<z.ZodDate>;
4571
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
4572
+ name: z.ZodOptional<z.ZodString>;
4573
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "line", "viber", "kakao", "shopee", "lazada", "instagram"]>>;
4574
+ metadata: z.ZodOptional<z.ZodObject<{
4575
+ id: z.ZodString;
4576
+ name: z.ZodString;
4577
+ accessToken: z.ZodString;
4578
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
4579
+ }, "strip", z.ZodTypeAny, {
4580
+ id: string;
4581
+ name: string;
4582
+ accessToken: string;
4583
+ additionalCredentials?: any;
4584
+ }, {
4585
+ id: string;
4586
+ name: string;
4587
+ accessToken: string;
4588
+ additionalCredentials?: any;
4589
+ }>>;
4590
+ brandName: z.ZodOptional<z.ZodString>;
4591
+ platformId: z.ZodOptional<z.ZodString>;
4592
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
4593
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
4594
+ connectedUserName: z.ZodOptional<z.ZodString>;
4595
+ connectedUserId: z.ZodOptional<z.ZodString>;
4596
+ actor: z.ZodOptional<z.ZodObject<{
4597
+ id: z.ZodString;
4598
+ createdAt: z.ZodDate;
4599
+ updatedAt: z.ZodDate;
4600
+ deletedAt: z.ZodNullable<z.ZodDate>;
4601
+ name: z.ZodString;
4602
+ email: z.ZodString;
4603
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4604
+ password: z.ZodString;
4605
+ address: z.ZodNullable<z.ZodString>;
4606
+ phone: z.ZodNullable<z.ZodString>;
4607
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4608
+ roles: z.ZodArray<z.ZodObject<{
4609
+ id: z.ZodString;
4610
+ createdAt: z.ZodDate;
4611
+ updatedAt: z.ZodDate;
4612
+ deletedAt: z.ZodNullable<z.ZodDate>;
4613
+ systemName: z.ZodString;
4614
+ displayName: z.ZodString;
4615
+ description: z.ZodNullable<z.ZodString>;
4616
+ permissions: z.ZodArray<z.ZodObject<{
4617
+ id: z.ZodString;
4618
+ createdAt: z.ZodDate;
4619
+ updatedAt: z.ZodDate;
4620
+ deletedAt: z.ZodNullable<z.ZodDate>;
4621
+ systemName: z.ZodString;
4622
+ displayName: z.ZodString;
4623
+ description: z.ZodNullable<z.ZodString>;
4624
+ }, "strip", z.ZodTypeAny, {
4625
+ id: string;
4626
+ description: string | null;
4627
+ createdAt: Date;
4628
+ updatedAt: Date;
4629
+ deletedAt: Date | null;
4630
+ systemName: string;
4631
+ displayName: string;
4632
+ }, {
4633
+ id: string;
4634
+ description: string | null;
4635
+ createdAt: Date;
4636
+ updatedAt: Date;
4637
+ deletedAt: Date | null;
4638
+ systemName: string;
4639
+ displayName: string;
4640
+ }>, "many">;
4641
+ }, "strip", z.ZodTypeAny, {
4642
+ id: string;
4643
+ description: string | null;
4644
+ createdAt: Date;
4645
+ updatedAt: Date;
4646
+ deletedAt: Date | null;
4647
+ systemName: string;
4648
+ displayName: string;
4649
+ permissions: {
4650
+ id: string;
4651
+ description: string | null;
4652
+ createdAt: Date;
4653
+ updatedAt: Date;
4654
+ deletedAt: Date | null;
4655
+ systemName: string;
4656
+ displayName: string;
4657
+ }[];
4658
+ }, {
4659
+ id: string;
4660
+ description: string | null;
4661
+ createdAt: Date;
4662
+ updatedAt: Date;
4663
+ deletedAt: Date | null;
4664
+ systemName: string;
4665
+ displayName: string;
4666
+ permissions: {
4667
+ id: string;
4668
+ description: string | null;
4669
+ createdAt: Date;
4670
+ updatedAt: Date;
4671
+ deletedAt: Date | null;
4672
+ systemName: string;
4673
+ displayName: string;
4674
+ }[];
4675
+ }>, "many">;
4676
+ extension: z.ZodObject<{
4677
+ id: z.ZodString;
4678
+ createdAt: z.ZodDate;
4679
+ updatedAt: z.ZodDate;
4680
+ deletedAt: z.ZodNullable<z.ZodDate>;
4681
+ userId: z.ZodNullable<z.ZodString>;
4682
+ sipServerUrl: z.ZodString;
4683
+ sipUserName: z.ZodString;
4684
+ webphoneLoginUser: z.ZodString;
4685
+ extensionId: z.ZodNullable<z.ZodString>;
4686
+ extensionName: z.ZodString;
4687
+ telephonySignature: z.ZodNullable<z.ZodString>;
4688
+ }, "strip", z.ZodTypeAny, {
4689
+ id: string;
4690
+ createdAt: Date;
4691
+ updatedAt: Date;
4692
+ deletedAt: Date | null;
4693
+ userId: string | null;
4694
+ sipServerUrl: string;
4695
+ sipUserName: string;
4696
+ webphoneLoginUser: string;
4697
+ extensionId: string | null;
4698
+ extensionName: string;
4699
+ telephonySignature: string | null;
4700
+ }, {
4701
+ id: string;
4702
+ createdAt: Date;
4703
+ updatedAt: Date;
4704
+ deletedAt: Date | null;
4705
+ userId: string | null;
4706
+ sipServerUrl: string;
4707
+ sipUserName: string;
4708
+ webphoneLoginUser: string;
4709
+ extensionId: string | null;
4710
+ extensionName: string;
4711
+ telephonySignature: string | null;
4712
+ }>;
4713
+ }, "strip", z.ZodTypeAny, {
4714
+ id: string;
4715
+ address: string | null;
4716
+ name: string;
4717
+ email: string;
4718
+ createdAt: Date;
4719
+ updatedAt: Date;
4720
+ deletedAt: Date | null;
4721
+ emailVerifiedAt: Date | null;
4722
+ password: string;
4723
+ phone: string | null;
4724
+ notificationCount: number | null;
4725
+ roles: {
4726
+ id: string;
4727
+ description: string | null;
4728
+ createdAt: Date;
4729
+ updatedAt: Date;
4730
+ deletedAt: Date | null;
4731
+ systemName: string;
4732
+ displayName: string;
4733
+ permissions: {
4734
+ id: string;
4735
+ description: string | null;
4736
+ createdAt: Date;
4737
+ updatedAt: Date;
4738
+ deletedAt: Date | null;
4739
+ systemName: string;
4740
+ displayName: string;
4741
+ }[];
4742
+ }[];
4743
+ extension: {
4744
+ id: string;
4745
+ createdAt: Date;
4746
+ updatedAt: Date;
4747
+ deletedAt: Date | null;
4748
+ userId: string | null;
4749
+ sipServerUrl: string;
4750
+ sipUserName: string;
4751
+ webphoneLoginUser: string;
4752
+ extensionId: string | null;
4753
+ extensionName: string;
4754
+ telephonySignature: string | null;
4755
+ };
4756
+ }, {
4757
+ id: string;
4758
+ address: string | null;
4759
+ name: string;
4760
+ email: string;
4761
+ createdAt: Date;
4762
+ updatedAt: Date;
4763
+ deletedAt: Date | null;
4764
+ emailVerifiedAt: Date | null;
4765
+ password: string;
4766
+ phone: string | null;
4767
+ notificationCount: number | null;
4768
+ roles: {
4769
+ id: string;
4770
+ description: string | null;
4771
+ createdAt: Date;
4772
+ updatedAt: Date;
4773
+ deletedAt: Date | null;
4774
+ systemName: string;
4775
+ displayName: string;
4776
+ permissions: {
4777
+ id: string;
4778
+ description: string | null;
4779
+ createdAt: Date;
4780
+ updatedAt: Date;
4781
+ deletedAt: Date | null;
4782
+ systemName: string;
4783
+ displayName: string;
4784
+ }[];
4785
+ }[];
4786
+ extension: {
4787
+ id: string;
4788
+ createdAt: Date;
4789
+ updatedAt: Date;
4790
+ deletedAt: Date | null;
4791
+ userId: string | null;
4792
+ sipServerUrl: string;
4793
+ sipUserName: string;
4794
+ webphoneLoginUser: string;
4795
+ extensionId: string | null;
4796
+ extensionName: string;
4797
+ telephonySignature: string | null;
4798
+ };
4799
+ }>>;
4800
+ }, "strip", z.ZodTypeAny, {
4801
+ id?: string | undefined;
4802
+ createdAt?: Date | undefined;
4803
+ updatedAt?: Date | undefined;
4804
+ deletedAt?: Date | null | undefined;
4805
+ name?: string | undefined;
4806
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4807
+ metadata?: {
4808
+ id: string;
4809
+ name: string;
4810
+ accessToken: string;
4811
+ additionalCredentials?: any;
4812
+ } | undefined;
4813
+ brandName?: string | undefined;
4814
+ platformId?: string | undefined;
4815
+ status?: boolean | undefined;
4816
+ isReloginRequired?: boolean | undefined;
4817
+ connectedUserName?: string | undefined;
4818
+ connectedUserId?: string | undefined;
4819
+ actor?: {
4820
+ id: string;
4821
+ address: string | null;
4822
+ name: string;
4823
+ email: string;
4824
+ createdAt: Date;
4825
+ updatedAt: Date;
4826
+ deletedAt: Date | null;
4827
+ emailVerifiedAt: Date | null;
4828
+ password: string;
4829
+ phone: string | null;
4830
+ notificationCount: number | null;
4831
+ roles: {
4832
+ id: string;
4833
+ description: string | null;
4834
+ createdAt: Date;
4835
+ updatedAt: Date;
4836
+ deletedAt: Date | null;
4837
+ systemName: string;
4838
+ displayName: string;
4839
+ permissions: {
4840
+ id: string;
4841
+ description: string | null;
4842
+ createdAt: Date;
4843
+ updatedAt: Date;
4844
+ deletedAt: Date | null;
4845
+ systemName: string;
4846
+ displayName: string;
4847
+ }[];
4848
+ }[];
4849
+ extension: {
4850
+ id: string;
4851
+ createdAt: Date;
4852
+ updatedAt: Date;
4853
+ deletedAt: Date | null;
4854
+ userId: string | null;
4855
+ sipServerUrl: string;
4856
+ sipUserName: string;
4857
+ webphoneLoginUser: string;
4858
+ extensionId: string | null;
4859
+ extensionName: string;
4860
+ telephonySignature: string | null;
4861
+ };
4862
+ } | undefined;
4863
+ }, {
4864
+ id?: string | undefined;
4865
+ createdAt?: Date | undefined;
4866
+ updatedAt?: Date | undefined;
4867
+ deletedAt?: Date | null | undefined;
4868
+ name?: string | undefined;
4869
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4870
+ metadata?: {
4871
+ id: string;
4872
+ name: string;
4873
+ accessToken: string;
4874
+ additionalCredentials?: any;
4875
+ } | undefined;
4876
+ brandName?: string | undefined;
4877
+ platformId?: string | undefined;
4878
+ status?: boolean | undefined;
4879
+ isReloginRequired?: boolean | undefined;
4880
+ connectedUserName?: string | undefined;
4881
+ connectedUserId?: string | undefined;
4882
+ actor?: {
4883
+ id: string;
4884
+ address: string | null;
4885
+ name: string;
4886
+ email: string;
4887
+ createdAt: Date;
4888
+ updatedAt: Date;
4889
+ deletedAt: Date | null;
4890
+ emailVerifiedAt: Date | null;
4891
+ password: string;
4892
+ phone: string | null;
4893
+ notificationCount: number | null;
4894
+ roles: {
4895
+ id: string;
4896
+ description: string | null;
4897
+ createdAt: Date;
4898
+ updatedAt: Date;
4899
+ deletedAt: Date | null;
4900
+ systemName: string;
4901
+ displayName: string;
4902
+ permissions: {
4903
+ id: string;
4904
+ description: string | null;
4905
+ createdAt: Date;
4906
+ updatedAt: Date;
4907
+ deletedAt: Date | null;
4908
+ systemName: string;
4909
+ displayName: string;
4910
+ }[];
4911
+ }[];
4912
+ extension: {
4913
+ id: string;
4914
+ createdAt: Date;
4915
+ updatedAt: Date;
4916
+ deletedAt: Date | null;
4917
+ userId: string | null;
4918
+ sipServerUrl: string;
4919
+ sipUserName: string;
4920
+ webphoneLoginUser: string;
4921
+ extensionId: string | null;
4922
+ extensionName: string;
4923
+ telephonySignature: string | null;
4924
+ };
4925
+ } | undefined;
4926
+ }>>;
4927
+ }, "strip", z.ZodTypeAny, {
4928
+ requestId: string;
4929
+ channel?: {
4930
+ id?: string | undefined;
4931
+ createdAt?: Date | undefined;
4932
+ updatedAt?: Date | undefined;
4933
+ deletedAt?: Date | null | undefined;
4934
+ name?: string | undefined;
4935
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
4936
+ metadata?: {
4937
+ id: string;
4938
+ name: string;
4939
+ accessToken: string;
4940
+ additionalCredentials?: any;
4941
+ } | undefined;
4942
+ brandName?: string | undefined;
4943
+ platformId?: string | undefined;
4944
+ status?: boolean | undefined;
4945
+ isReloginRequired?: boolean | undefined;
4946
+ connectedUserName?: string | undefined;
4947
+ connectedUserId?: string | undefined;
4948
+ actor?: {
4949
+ id: string;
4950
+ address: string | null;
4951
+ name: string;
4952
+ email: string;
4953
+ createdAt: Date;
4954
+ updatedAt: Date;
4955
+ deletedAt: Date | null;
4956
+ emailVerifiedAt: Date | null;
4957
+ password: string;
4958
+ phone: string | null;
4959
+ notificationCount: number | null;
4960
+ roles: {
4961
+ id: string;
4962
+ description: string | null;
4963
+ createdAt: Date;
4964
+ updatedAt: Date;
4965
+ deletedAt: Date | null;
4966
+ systemName: string;
4967
+ displayName: string;
4968
+ permissions: {
4969
+ id: string;
4970
+ description: string | null;
4971
+ createdAt: Date;
4972
+ updatedAt: Date;
4973
+ deletedAt: Date | null;
4974
+ systemName: string;
4975
+ displayName: string;
4976
+ }[];
4977
+ }[];
4978
+ extension: {
4979
+ id: string;
4980
+ createdAt: Date;
4981
+ updatedAt: Date;
4982
+ deletedAt: Date | null;
4983
+ userId: string | null;
4984
+ sipServerUrl: string;
4985
+ sipUserName: string;
4986
+ webphoneLoginUser: string;
4987
+ extensionId: string | null;
4988
+ extensionName: string;
4989
+ telephonySignature: string | null;
4990
+ };
4991
+ } | undefined;
4992
+ } | undefined;
4993
+ }, {
4994
+ requestId: string;
4995
+ channel?: {
4996
+ id?: string | undefined;
4997
+ createdAt?: Date | undefined;
4998
+ updatedAt?: Date | undefined;
4999
+ deletedAt?: Date | null | undefined;
5000
+ name?: string | undefined;
5001
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "viber" | "kakao" | "shopee" | "lazada" | "instagram" | undefined;
5002
+ metadata?: {
5003
+ id: string;
5004
+ name: string;
5005
+ accessToken: string;
5006
+ additionalCredentials?: any;
5007
+ } | undefined;
5008
+ brandName?: string | undefined;
5009
+ platformId?: string | undefined;
5010
+ status?: boolean | undefined;
5011
+ isReloginRequired?: boolean | undefined;
5012
+ connectedUserName?: string | undefined;
5013
+ connectedUserId?: string | undefined;
5014
+ actor?: {
5015
+ id: string;
5016
+ address: string | null;
5017
+ name: string;
5018
+ email: string;
5019
+ createdAt: Date;
5020
+ updatedAt: Date;
5021
+ deletedAt: Date | null;
5022
+ emailVerifiedAt: Date | null;
5023
+ password: string;
5024
+ phone: string | null;
5025
+ notificationCount: number | null;
5026
+ roles: {
5027
+ id: string;
5028
+ description: string | null;
5029
+ createdAt: Date;
5030
+ updatedAt: Date;
5031
+ deletedAt: Date | null;
5032
+ systemName: string;
5033
+ displayName: string;
5034
+ permissions: {
5035
+ id: string;
5036
+ description: string | null;
5037
+ createdAt: Date;
5038
+ updatedAt: Date;
5039
+ deletedAt: Date | null;
5040
+ systemName: string;
5041
+ displayName: string;
5042
+ }[];
5043
+ }[];
5044
+ extension: {
5045
+ id: string;
5046
+ createdAt: Date;
5047
+ updatedAt: Date;
5048
+ deletedAt: Date | null;
5049
+ userId: string | null;
5050
+ sipServerUrl: string;
5051
+ sipUserName: string;
5052
+ webphoneLoginUser: string;
5053
+ extensionId: string | null;
5054
+ extensionName: string;
5055
+ telephonySignature: string | null;
5056
+ };
5057
+ } | undefined;
5058
+ } | undefined;
5059
+ }>;
5060
+ 408: z.ZodObject<{
5061
+ message: z.ZodString;
5062
+ error: z.ZodAny;
5063
+ }, "strip", z.ZodTypeAny, {
5064
+ message: string;
5065
+ error?: any;
5066
+ }, {
5067
+ message: string;
5068
+ error?: any;
5069
+ }>;
5070
+ };
5071
+ path: "channel/instagram/disconnect/:channelId";
5072
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5073
+ 'x-tenant': z.ZodString;
5074
+ authorization: z.ZodString;
5075
+ 'x-code': z.ZodOptional<z.ZodString>;
5076
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
5077
+ }, "strip", z.ZodTypeAny, {
5078
+ 'x-tenant': string;
5079
+ authorization: string;
5080
+ 'x-client-timezone': string;
5081
+ 'x-code'?: string | undefined;
5082
+ }, {
5083
+ 'x-tenant': string;
5084
+ authorization: string;
5085
+ 'x-code'?: string | undefined;
5086
+ 'x-client-timezone'?: string | undefined;
5087
+ }>>>;
5088
+ };
5089
+ };
3224
5090
  };
3225
5091
  //# sourceMappingURL=index.d.ts.map