@livechat/developer-studio-api 3.4.11 → 3.4.13

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.
package/dist/index.d.mts CHANGED
@@ -3157,10 +3157,13 @@ declare const textLivechatEventsZods: {
3157
3157
  events: {
3158
3158
  chatStarted: z.ZodObject<{
3159
3159
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3160
+ targetAgentId: z.ZodOptional<z.ZodString>;
3160
3161
  }, "strip", z.ZodTypeAny, {
3161
3162
  name: TextLivechatEventNames.ChatStarted;
3163
+ targetAgentId?: string | undefined;
3162
3164
  }, {
3163
3165
  name: TextLivechatEventNames.ChatStarted;
3166
+ targetAgentId?: string | undefined;
3164
3167
  }>;
3165
3168
  chatEnded: z.ZodObject<{
3166
3169
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
@@ -3236,10 +3239,13 @@ declare const textLivechatEventsZods: {
3236
3239
  };
3237
3240
  readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3238
3241
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3242
+ targetAgentId: z.ZodOptional<z.ZodString>;
3239
3243
  }, "strip", z.ZodTypeAny, {
3240
3244
  name: TextLivechatEventNames.ChatStarted;
3245
+ targetAgentId?: string | undefined;
3241
3246
  }, {
3242
3247
  name: TextLivechatEventNames.ChatStarted;
3248
+ targetAgentId?: string | undefined;
3243
3249
  }>, z.ZodObject<{
3244
3250
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3245
3251
  }, "strip", z.ZodTypeAny, {
@@ -3326,10 +3332,13 @@ declare const textLivechatEventsZods: {
3326
3332
  }>, z.ZodObject<{
3327
3333
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3328
3334
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3335
+ targetAgentId: z.ZodOptional<z.ZodString>;
3329
3336
  }, "strip", z.ZodTypeAny, {
3330
3337
  name: TextLivechatEventNames.ChatStarted;
3338
+ targetAgentId?: string | undefined;
3331
3339
  }, {
3332
3340
  name: TextLivechatEventNames.ChatStarted;
3341
+ targetAgentId?: string | undefined;
3333
3342
  }>, z.ZodObject<{
3334
3343
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3335
3344
  }, "strip", z.ZodTypeAny, {
@@ -3398,6 +3407,7 @@ declare const textLivechatEventsZods: {
3398
3407
  }, "strip", z.ZodTypeAny, {
3399
3408
  event: {
3400
3409
  name: TextLivechatEventNames.ChatStarted;
3410
+ targetAgentId?: string | undefined;
3401
3411
  } | {
3402
3412
  name: TextLivechatEventNames.ChatEnded;
3403
3413
  } | {
@@ -3424,6 +3434,7 @@ declare const textLivechatEventsZods: {
3424
3434
  }, {
3425
3435
  event: {
3426
3436
  name: TextLivechatEventNames.ChatStarted;
3437
+ targetAgentId?: string | undefined;
3427
3438
  } | {
3428
3439
  name: TextLivechatEventNames.ChatEnded;
3429
3440
  } | {
@@ -3452,10 +3463,13 @@ declare const textLivechatEventsZods: {
3452
3463
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
3453
3464
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3454
3465
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3466
+ targetAgentId: z.ZodOptional<z.ZodString>;
3455
3467
  }, "strip", z.ZodTypeAny, {
3456
3468
  name: TextLivechatEventNames.ChatStarted;
3469
+ targetAgentId?: string | undefined;
3457
3470
  }, {
3458
3471
  name: TextLivechatEventNames.ChatStarted;
3472
+ targetAgentId?: string | undefined;
3459
3473
  }>, z.ZodObject<{
3460
3474
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3461
3475
  }, "strip", z.ZodTypeAny, {
@@ -3524,6 +3538,7 @@ declare const textLivechatEventsZods: {
3524
3538
  }, "strip", z.ZodTypeAny, {
3525
3539
  event: {
3526
3540
  name: TextLivechatEventNames.ChatStarted;
3541
+ targetAgentId?: string | undefined;
3527
3542
  } | {
3528
3543
  name: TextLivechatEventNames.ChatEnded;
3529
3544
  } | {
@@ -3551,6 +3566,7 @@ declare const textLivechatEventsZods: {
3551
3566
  }, {
3552
3567
  event: {
3553
3568
  name: TextLivechatEventNames.ChatStarted;
3569
+ targetAgentId?: string | undefined;
3554
3570
  } | {
3555
3571
  name: TextLivechatEventNames.ChatEnded;
3556
3572
  } | {
@@ -3588,10 +3604,13 @@ declare const textLivechatEventsZods: {
3588
3604
  }>, z.ZodObject<{
3589
3605
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3590
3606
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3607
+ targetAgentId: z.ZodOptional<z.ZodString>;
3591
3608
  }, "strip", z.ZodTypeAny, {
3592
3609
  name: TextLivechatEventNames.ChatStarted;
3610
+ targetAgentId?: string | undefined;
3593
3611
  }, {
3594
3612
  name: TextLivechatEventNames.ChatStarted;
3613
+ targetAgentId?: string | undefined;
3595
3614
  }>, z.ZodObject<{
3596
3615
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3597
3616
  }, "strip", z.ZodTypeAny, {
@@ -3659,6 +3678,7 @@ declare const textLivechatEventsZods: {
3659
3678
  }, "strip", z.ZodTypeAny, {
3660
3679
  event: {
3661
3680
  name: TextLivechatEventNames.ChatStarted;
3681
+ targetAgentId?: string | undefined;
3662
3682
  } | {
3663
3683
  name: TextLivechatEventNames.ChatEnded;
3664
3684
  } | {
@@ -3684,6 +3704,7 @@ declare const textLivechatEventsZods: {
3684
3704
  }, {
3685
3705
  event: {
3686
3706
  name: TextLivechatEventNames.ChatStarted;
3707
+ targetAgentId?: string | undefined;
3687
3708
  } | {
3688
3709
  name: TextLivechatEventNames.ChatEnded;
3689
3710
  } | {
@@ -3711,10 +3732,13 @@ declare const textLivechatEventsZods: {
3711
3732
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
3712
3733
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3713
3734
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3735
+ targetAgentId: z.ZodOptional<z.ZodString>;
3714
3736
  }, "strip", z.ZodTypeAny, {
3715
3737
  name: TextLivechatEventNames.ChatStarted;
3738
+ targetAgentId?: string | undefined;
3716
3739
  }, {
3717
3740
  name: TextLivechatEventNames.ChatStarted;
3741
+ targetAgentId?: string | undefined;
3718
3742
  }>, z.ZodObject<{
3719
3743
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3720
3744
  }, "strip", z.ZodTypeAny, {
@@ -3782,6 +3806,7 @@ declare const textLivechatEventsZods: {
3782
3806
  }, "strip", z.ZodTypeAny, {
3783
3807
  event: {
3784
3808
  name: TextLivechatEventNames.ChatStarted;
3809
+ targetAgentId?: string | undefined;
3785
3810
  } | {
3786
3811
  name: TextLivechatEventNames.ChatEnded;
3787
3812
  } | {
@@ -3808,6 +3833,7 @@ declare const textLivechatEventsZods: {
3808
3833
  }, {
3809
3834
  event: {
3810
3835
  name: TextLivechatEventNames.ChatStarted;
3836
+ targetAgentId?: string | undefined;
3811
3837
  } | {
3812
3838
  name: TextLivechatEventNames.ChatEnded;
3813
3839
  } | {
@@ -4355,10 +4381,13 @@ declare const integrationEventsZods: {
4355
4381
  providerName: z.ZodEnum<[IntegrationNames.LiveChat, IntegrationNames.HelpDesk, IntegrationNames.Mailchimp, IntegrationNames.Shopify, IntegrationNames.HubSpot, IntegrationNames.BigCommerce]>;
4356
4382
  readonly event: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
4357
4383
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
4384
+ targetAgentId: z.ZodOptional<z.ZodString>;
4358
4385
  }, "strip", z.ZodTypeAny, {
4359
4386
  name: TextLivechatEventNames.ChatStarted;
4387
+ targetAgentId?: string | undefined;
4360
4388
  }, {
4361
4389
  name: TextLivechatEventNames.ChatStarted;
4390
+ targetAgentId?: string | undefined;
4362
4391
  }>, z.ZodObject<{
4363
4392
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
4364
4393
  }, "strip", z.ZodTypeAny, {
@@ -4566,10 +4595,13 @@ declare const integrationEventsZods: {
4566
4595
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
4567
4596
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
4568
4597
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
4598
+ targetAgentId: z.ZodOptional<z.ZodString>;
4569
4599
  }, "strip", z.ZodTypeAny, {
4570
4600
  name: TextLivechatEventNames.ChatStarted;
4601
+ targetAgentId?: string | undefined;
4571
4602
  }, {
4572
4603
  name: TextLivechatEventNames.ChatStarted;
4604
+ targetAgentId?: string | undefined;
4573
4605
  }>, z.ZodObject<{
4574
4606
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
4575
4607
  }, "strip", z.ZodTypeAny, {
@@ -4638,6 +4670,7 @@ declare const integrationEventsZods: {
4638
4670
  }, "strip", z.ZodTypeAny, {
4639
4671
  event: {
4640
4672
  name: TextLivechatEventNames.ChatStarted;
4673
+ targetAgentId?: string | undefined;
4641
4674
  } | {
4642
4675
  name: TextLivechatEventNames.ChatEnded;
4643
4676
  } | {
@@ -4665,6 +4698,7 @@ declare const integrationEventsZods: {
4665
4698
  }, {
4666
4699
  event: {
4667
4700
  name: TextLivechatEventNames.ChatStarted;
4701
+ targetAgentId?: string | undefined;
4668
4702
  } | {
4669
4703
  name: TextLivechatEventNames.ChatEnded;
4670
4704
  } | {
@@ -4963,10 +4997,13 @@ declare const integrationEventsZods: {
4963
4997
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
4964
4998
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
4965
4999
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
5000
+ targetAgentId: z.ZodOptional<z.ZodString>;
4966
5001
  }, "strip", z.ZodTypeAny, {
4967
5002
  name: TextLivechatEventNames.ChatStarted;
5003
+ targetAgentId?: string | undefined;
4968
5004
  }, {
4969
5005
  name: TextLivechatEventNames.ChatStarted;
5006
+ targetAgentId?: string | undefined;
4970
5007
  }>, z.ZodObject<{
4971
5008
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
4972
5009
  }, "strip", z.ZodTypeAny, {
@@ -5034,6 +5071,7 @@ declare const integrationEventsZods: {
5034
5071
  }, "strip", z.ZodTypeAny, {
5035
5072
  event: {
5036
5073
  name: TextLivechatEventNames.ChatStarted;
5074
+ targetAgentId?: string | undefined;
5037
5075
  } | {
5038
5076
  name: TextLivechatEventNames.ChatEnded;
5039
5077
  } | {
@@ -5060,6 +5098,7 @@ declare const integrationEventsZods: {
5060
5098
  }, {
5061
5099
  event: {
5062
5100
  name: TextLivechatEventNames.ChatStarted;
5101
+ targetAgentId?: string | undefined;
5063
5102
  } | {
5064
5103
  name: TextLivechatEventNames.ChatEnded;
5065
5104
  } | {
package/dist/index.d.ts CHANGED
@@ -3157,10 +3157,13 @@ declare const textLivechatEventsZods: {
3157
3157
  events: {
3158
3158
  chatStarted: z.ZodObject<{
3159
3159
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3160
+ targetAgentId: z.ZodOptional<z.ZodString>;
3160
3161
  }, "strip", z.ZodTypeAny, {
3161
3162
  name: TextLivechatEventNames.ChatStarted;
3163
+ targetAgentId?: string | undefined;
3162
3164
  }, {
3163
3165
  name: TextLivechatEventNames.ChatStarted;
3166
+ targetAgentId?: string | undefined;
3164
3167
  }>;
3165
3168
  chatEnded: z.ZodObject<{
3166
3169
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
@@ -3236,10 +3239,13 @@ declare const textLivechatEventsZods: {
3236
3239
  };
3237
3240
  readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3238
3241
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3242
+ targetAgentId: z.ZodOptional<z.ZodString>;
3239
3243
  }, "strip", z.ZodTypeAny, {
3240
3244
  name: TextLivechatEventNames.ChatStarted;
3245
+ targetAgentId?: string | undefined;
3241
3246
  }, {
3242
3247
  name: TextLivechatEventNames.ChatStarted;
3248
+ targetAgentId?: string | undefined;
3243
3249
  }>, z.ZodObject<{
3244
3250
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3245
3251
  }, "strip", z.ZodTypeAny, {
@@ -3326,10 +3332,13 @@ declare const textLivechatEventsZods: {
3326
3332
  }>, z.ZodObject<{
3327
3333
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3328
3334
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3335
+ targetAgentId: z.ZodOptional<z.ZodString>;
3329
3336
  }, "strip", z.ZodTypeAny, {
3330
3337
  name: TextLivechatEventNames.ChatStarted;
3338
+ targetAgentId?: string | undefined;
3331
3339
  }, {
3332
3340
  name: TextLivechatEventNames.ChatStarted;
3341
+ targetAgentId?: string | undefined;
3333
3342
  }>, z.ZodObject<{
3334
3343
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3335
3344
  }, "strip", z.ZodTypeAny, {
@@ -3398,6 +3407,7 @@ declare const textLivechatEventsZods: {
3398
3407
  }, "strip", z.ZodTypeAny, {
3399
3408
  event: {
3400
3409
  name: TextLivechatEventNames.ChatStarted;
3410
+ targetAgentId?: string | undefined;
3401
3411
  } | {
3402
3412
  name: TextLivechatEventNames.ChatEnded;
3403
3413
  } | {
@@ -3424,6 +3434,7 @@ declare const textLivechatEventsZods: {
3424
3434
  }, {
3425
3435
  event: {
3426
3436
  name: TextLivechatEventNames.ChatStarted;
3437
+ targetAgentId?: string | undefined;
3427
3438
  } | {
3428
3439
  name: TextLivechatEventNames.ChatEnded;
3429
3440
  } | {
@@ -3452,10 +3463,13 @@ declare const textLivechatEventsZods: {
3452
3463
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
3453
3464
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3454
3465
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3466
+ targetAgentId: z.ZodOptional<z.ZodString>;
3455
3467
  }, "strip", z.ZodTypeAny, {
3456
3468
  name: TextLivechatEventNames.ChatStarted;
3469
+ targetAgentId?: string | undefined;
3457
3470
  }, {
3458
3471
  name: TextLivechatEventNames.ChatStarted;
3472
+ targetAgentId?: string | undefined;
3459
3473
  }>, z.ZodObject<{
3460
3474
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3461
3475
  }, "strip", z.ZodTypeAny, {
@@ -3524,6 +3538,7 @@ declare const textLivechatEventsZods: {
3524
3538
  }, "strip", z.ZodTypeAny, {
3525
3539
  event: {
3526
3540
  name: TextLivechatEventNames.ChatStarted;
3541
+ targetAgentId?: string | undefined;
3527
3542
  } | {
3528
3543
  name: TextLivechatEventNames.ChatEnded;
3529
3544
  } | {
@@ -3551,6 +3566,7 @@ declare const textLivechatEventsZods: {
3551
3566
  }, {
3552
3567
  event: {
3553
3568
  name: TextLivechatEventNames.ChatStarted;
3569
+ targetAgentId?: string | undefined;
3554
3570
  } | {
3555
3571
  name: TextLivechatEventNames.ChatEnded;
3556
3572
  } | {
@@ -3588,10 +3604,13 @@ declare const textLivechatEventsZods: {
3588
3604
  }>, z.ZodObject<{
3589
3605
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3590
3606
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3607
+ targetAgentId: z.ZodOptional<z.ZodString>;
3591
3608
  }, "strip", z.ZodTypeAny, {
3592
3609
  name: TextLivechatEventNames.ChatStarted;
3610
+ targetAgentId?: string | undefined;
3593
3611
  }, {
3594
3612
  name: TextLivechatEventNames.ChatStarted;
3613
+ targetAgentId?: string | undefined;
3595
3614
  }>, z.ZodObject<{
3596
3615
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3597
3616
  }, "strip", z.ZodTypeAny, {
@@ -3659,6 +3678,7 @@ declare const textLivechatEventsZods: {
3659
3678
  }, "strip", z.ZodTypeAny, {
3660
3679
  event: {
3661
3680
  name: TextLivechatEventNames.ChatStarted;
3681
+ targetAgentId?: string | undefined;
3662
3682
  } | {
3663
3683
  name: TextLivechatEventNames.ChatEnded;
3664
3684
  } | {
@@ -3684,6 +3704,7 @@ declare const textLivechatEventsZods: {
3684
3704
  }, {
3685
3705
  event: {
3686
3706
  name: TextLivechatEventNames.ChatStarted;
3707
+ targetAgentId?: string | undefined;
3687
3708
  } | {
3688
3709
  name: TextLivechatEventNames.ChatEnded;
3689
3710
  } | {
@@ -3711,10 +3732,13 @@ declare const textLivechatEventsZods: {
3711
3732
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
3712
3733
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3713
3734
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
3735
+ targetAgentId: z.ZodOptional<z.ZodString>;
3714
3736
  }, "strip", z.ZodTypeAny, {
3715
3737
  name: TextLivechatEventNames.ChatStarted;
3738
+ targetAgentId?: string | undefined;
3716
3739
  }, {
3717
3740
  name: TextLivechatEventNames.ChatStarted;
3741
+ targetAgentId?: string | undefined;
3718
3742
  }>, z.ZodObject<{
3719
3743
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
3720
3744
  }, "strip", z.ZodTypeAny, {
@@ -3782,6 +3806,7 @@ declare const textLivechatEventsZods: {
3782
3806
  }, "strip", z.ZodTypeAny, {
3783
3807
  event: {
3784
3808
  name: TextLivechatEventNames.ChatStarted;
3809
+ targetAgentId?: string | undefined;
3785
3810
  } | {
3786
3811
  name: TextLivechatEventNames.ChatEnded;
3787
3812
  } | {
@@ -3808,6 +3833,7 @@ declare const textLivechatEventsZods: {
3808
3833
  }, {
3809
3834
  event: {
3810
3835
  name: TextLivechatEventNames.ChatStarted;
3836
+ targetAgentId?: string | undefined;
3811
3837
  } | {
3812
3838
  name: TextLivechatEventNames.ChatEnded;
3813
3839
  } | {
@@ -4355,10 +4381,13 @@ declare const integrationEventsZods: {
4355
4381
  providerName: z.ZodEnum<[IntegrationNames.LiveChat, IntegrationNames.HelpDesk, IntegrationNames.Mailchimp, IntegrationNames.Shopify, IntegrationNames.HubSpot, IntegrationNames.BigCommerce]>;
4356
4382
  readonly event: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
4357
4383
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
4384
+ targetAgentId: z.ZodOptional<z.ZodString>;
4358
4385
  }, "strip", z.ZodTypeAny, {
4359
4386
  name: TextLivechatEventNames.ChatStarted;
4387
+ targetAgentId?: string | undefined;
4360
4388
  }, {
4361
4389
  name: TextLivechatEventNames.ChatStarted;
4390
+ targetAgentId?: string | undefined;
4362
4391
  }>, z.ZodObject<{
4363
4392
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
4364
4393
  }, "strip", z.ZodTypeAny, {
@@ -4566,10 +4595,13 @@ declare const integrationEventsZods: {
4566
4595
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
4567
4596
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
4568
4597
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
4598
+ targetAgentId: z.ZodOptional<z.ZodString>;
4569
4599
  }, "strip", z.ZodTypeAny, {
4570
4600
  name: TextLivechatEventNames.ChatStarted;
4601
+ targetAgentId?: string | undefined;
4571
4602
  }, {
4572
4603
  name: TextLivechatEventNames.ChatStarted;
4604
+ targetAgentId?: string | undefined;
4573
4605
  }>, z.ZodObject<{
4574
4606
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
4575
4607
  }, "strip", z.ZodTypeAny, {
@@ -4638,6 +4670,7 @@ declare const integrationEventsZods: {
4638
4670
  }, "strip", z.ZodTypeAny, {
4639
4671
  event: {
4640
4672
  name: TextLivechatEventNames.ChatStarted;
4673
+ targetAgentId?: string | undefined;
4641
4674
  } | {
4642
4675
  name: TextLivechatEventNames.ChatEnded;
4643
4676
  } | {
@@ -4665,6 +4698,7 @@ declare const integrationEventsZods: {
4665
4698
  }, {
4666
4699
  event: {
4667
4700
  name: TextLivechatEventNames.ChatStarted;
4701
+ targetAgentId?: string | undefined;
4668
4702
  } | {
4669
4703
  name: TextLivechatEventNames.ChatEnded;
4670
4704
  } | {
@@ -4963,10 +4997,13 @@ declare const integrationEventsZods: {
4963
4997
  provider: z.ZodLiteral<IntegrationNames.LiveChat>;
4964
4998
  event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
4965
4999
  name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
5000
+ targetAgentId: z.ZodOptional<z.ZodString>;
4966
5001
  }, "strip", z.ZodTypeAny, {
4967
5002
  name: TextLivechatEventNames.ChatStarted;
5003
+ targetAgentId?: string | undefined;
4968
5004
  }, {
4969
5005
  name: TextLivechatEventNames.ChatStarted;
5006
+ targetAgentId?: string | undefined;
4970
5007
  }>, z.ZodObject<{
4971
5008
  name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
4972
5009
  }, "strip", z.ZodTypeAny, {
@@ -5034,6 +5071,7 @@ declare const integrationEventsZods: {
5034
5071
  }, "strip", z.ZodTypeAny, {
5035
5072
  event: {
5036
5073
  name: TextLivechatEventNames.ChatStarted;
5074
+ targetAgentId?: string | undefined;
5037
5075
  } | {
5038
5076
  name: TextLivechatEventNames.ChatEnded;
5039
5077
  } | {
@@ -5060,6 +5098,7 @@ declare const integrationEventsZods: {
5060
5098
  }, {
5061
5099
  event: {
5062
5100
  name: TextLivechatEventNames.ChatStarted;
5101
+ targetAgentId?: string | undefined;
5063
5102
  } | {
5064
5103
  name: TextLivechatEventNames.ChatEnded;
5065
5104
  } | {
package/dist/index.js CHANGED
@@ -2329,7 +2329,8 @@ var textLivechatEventsZods = {
2329
2329
  eventName: import_zod3.z.nativeEnum(TextLivechatEventNames),
2330
2330
  events: {
2331
2331
  chatStarted: import_zod3.z.object({
2332
- name: import_zod3.z.literal("chat_started" /* ChatStarted */)
2332
+ name: import_zod3.z.literal("chat_started" /* ChatStarted */),
2333
+ targetAgentId: import_zod3.z.string().email().optional()
2333
2334
  }),
2334
2335
  chatEnded: import_zod3.z.object({
2335
2336
  name: import_zod3.z.literal("chat_ended" /* ChatEnded */)
@@ -8041,7 +8042,7 @@ function getIntegrationFlowUrlForRedirection(provider, flow, state, context, con
8041
8042
  mode: "redirect" /* Redirect */,
8042
8043
  state: serializedState
8043
8044
  }));
8044
- return `${config.adapterUrl}/integrations/${provider}/flows/${flow}/flow?context=${serializedContext}`;
8045
+ return `${config.adapterUrl}/integrations/${provider}/flows/${flow}?context=${serializedContext}`;
8045
8046
  }
8046
8047
  function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
8047
8048
  return __async(this, null, function* () {
@@ -8049,7 +8050,7 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
8049
8050
  const serializedContext = serializerBase64.serialize(__spreadValues(__spreadValues({
8050
8051
  state: serializedState
8051
8052
  }, trigger), context));
8052
- const url = `${config.urls.adapterUrl}/integrations/${name}/flows/${flow}/flow?context=${serializedContext}`;
8053
+ const url = `${config.urls.adapterUrl}/integrations/${name}/flows/${flow}?context=${serializedContext}`;
8053
8054
  if (trigger.mode === "modal" /* Modal */) {
8054
8055
  const newWindow = window.open(
8055
8056
  url,
package/dist/index.mjs CHANGED
@@ -2182,7 +2182,8 @@ var textLivechatEventsZods = {
2182
2182
  eventName: z3.nativeEnum(TextLivechatEventNames),
2183
2183
  events: {
2184
2184
  chatStarted: z3.object({
2185
- name: z3.literal("chat_started" /* ChatStarted */)
2185
+ name: z3.literal("chat_started" /* ChatStarted */),
2186
+ targetAgentId: z3.string().email().optional()
2186
2187
  }),
2187
2188
  chatEnded: z3.object({
2188
2189
  name: z3.literal("chat_ended" /* ChatEnded */)
@@ -7894,7 +7895,7 @@ function getIntegrationFlowUrlForRedirection(provider, flow, state, context, con
7894
7895
  mode: "redirect" /* Redirect */,
7895
7896
  state: serializedState
7896
7897
  }));
7897
- return `${config.adapterUrl}/integrations/${provider}/flows/${flow}/flow?context=${serializedContext}`;
7898
+ return `${config.adapterUrl}/integrations/${provider}/flows/${flow}?context=${serializedContext}`;
7898
7899
  }
7899
7900
  function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
7900
7901
  return __async(this, null, function* () {
@@ -7902,7 +7903,7 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
7902
7903
  const serializedContext = serializerBase64.serialize(__spreadValues(__spreadValues({
7903
7904
  state: serializedState
7904
7905
  }, trigger), context));
7905
- const url = `${config.urls.adapterUrl}/integrations/${name}/flows/${flow}/flow?context=${serializedContext}`;
7906
+ const url = `${config.urls.adapterUrl}/integrations/${name}/flows/${flow}?context=${serializedContext}`;
7906
7907
  if (trigger.mode === "modal" /* Modal */) {
7907
7908
  const newWindow = window.open(
7908
7909
  url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.4.11",
3
+ "version": "3.4.13",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "@types/node": "^17.0.12",
21
21
  "tsup": "^7.1.0",
22
22
  "typescript": "^5.1.6",
23
+ "eslint-config-custom": "0.0.10",
23
24
  "tsconfig": "0.0.1",
24
- "utils": "0.0.4",
25
- "eslint-config-custom": "0.0.10"
25
+ "utils": "0.0.4"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsup",