@livechat/developer-studio-api 3.1.56-beta → 3.1.57
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 +963 -158
- package/dist/index.d.ts +963 -158
- package/dist/index.js +18 -23
- package/dist/index.mjs +18 -23
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -430,9 +430,11 @@ type WorkflowTriggerDto = {
|
|
|
430
430
|
at: string;
|
|
431
431
|
} | {
|
|
432
432
|
type: "webhook";
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
433
|
+
webhook: {
|
|
434
|
+
source: IntegrationEventProviderName;
|
|
435
|
+
event: IntegrationEvent;
|
|
436
|
+
headers?: Record<string, string[]>;
|
|
437
|
+
};
|
|
436
438
|
};
|
|
437
439
|
interface WorkflowDefinitionDto {
|
|
438
440
|
name: string;
|
|
@@ -2336,20 +2338,140 @@ declare const bigcommerceEventsZods: {
|
|
|
2336
2338
|
sourceName: "apps" | "workflows";
|
|
2337
2339
|
sourceKey: string;
|
|
2338
2340
|
}>, z.ZodObject<{
|
|
2339
|
-
event: z.
|
|
2341
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2342
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2343
|
+
}, "strip", z.ZodTypeAny, {
|
|
2344
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2345
|
+
}, {
|
|
2346
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2347
|
+
}>, z.ZodObject<{
|
|
2348
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2349
|
+
}, "strip", z.ZodTypeAny, {
|
|
2350
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2351
|
+
}, {
|
|
2352
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2353
|
+
}>, z.ZodObject<{
|
|
2354
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2355
|
+
}, "strip", z.ZodTypeAny, {
|
|
2356
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2357
|
+
}, {
|
|
2358
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2359
|
+
}>, z.ZodObject<{
|
|
2360
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2361
|
+
}, "strip", z.ZodTypeAny, {
|
|
2362
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2363
|
+
}, {
|
|
2364
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2365
|
+
}>, z.ZodObject<{
|
|
2366
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2367
|
+
}, "strip", z.ZodTypeAny, {
|
|
2368
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2369
|
+
}, {
|
|
2370
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2371
|
+
}>, z.ZodObject<{
|
|
2372
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2373
|
+
}, "strip", z.ZodTypeAny, {
|
|
2374
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2375
|
+
}, {
|
|
2376
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2377
|
+
}>]>;
|
|
2340
2378
|
}, "strip", z.ZodTypeAny, {
|
|
2341
|
-
event:
|
|
2379
|
+
event: {
|
|
2380
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2381
|
+
} | {
|
|
2382
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2383
|
+
} | {
|
|
2384
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2385
|
+
} | {
|
|
2386
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2387
|
+
} | {
|
|
2388
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2389
|
+
} | {
|
|
2390
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2391
|
+
};
|
|
2342
2392
|
}, {
|
|
2343
|
-
event:
|
|
2393
|
+
event: {
|
|
2394
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2395
|
+
} | {
|
|
2396
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2397
|
+
} | {
|
|
2398
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2399
|
+
} | {
|
|
2400
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2401
|
+
} | {
|
|
2402
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2403
|
+
} | {
|
|
2404
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2405
|
+
};
|
|
2344
2406
|
}>>;
|
|
2345
2407
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2346
2408
|
provider: z.ZodLiteral<"bigcommerce">;
|
|
2347
|
-
event: z.
|
|
2409
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2410
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
2411
|
+
}, "strip", z.ZodTypeAny, {
|
|
2412
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2413
|
+
}, {
|
|
2414
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2415
|
+
}>, z.ZodObject<{
|
|
2416
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
2417
|
+
}, "strip", z.ZodTypeAny, {
|
|
2418
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2419
|
+
}, {
|
|
2420
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2421
|
+
}>, z.ZodObject<{
|
|
2422
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
2423
|
+
}, "strip", z.ZodTypeAny, {
|
|
2424
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2425
|
+
}, {
|
|
2426
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2427
|
+
}>, z.ZodObject<{
|
|
2428
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
2429
|
+
}, "strip", z.ZodTypeAny, {
|
|
2430
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2431
|
+
}, {
|
|
2432
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2433
|
+
}>, z.ZodObject<{
|
|
2434
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
2435
|
+
}, "strip", z.ZodTypeAny, {
|
|
2436
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2437
|
+
}, {
|
|
2438
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2439
|
+
}>, z.ZodObject<{
|
|
2440
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
2441
|
+
}, "strip", z.ZodTypeAny, {
|
|
2442
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2443
|
+
}, {
|
|
2444
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2445
|
+
}>]>;
|
|
2348
2446
|
}, "strip", z.ZodTypeAny, {
|
|
2349
|
-
event:
|
|
2447
|
+
event: {
|
|
2448
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2449
|
+
} | {
|
|
2450
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2451
|
+
} | {
|
|
2452
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2453
|
+
} | {
|
|
2454
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2455
|
+
} | {
|
|
2456
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2457
|
+
} | {
|
|
2458
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2459
|
+
};
|
|
2350
2460
|
provider: "bigcommerce";
|
|
2351
2461
|
}, {
|
|
2352
|
-
event:
|
|
2462
|
+
event: {
|
|
2463
|
+
name: BigCommerceEventNames.CartCreated;
|
|
2464
|
+
} | {
|
|
2465
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
2466
|
+
} | {
|
|
2467
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
2468
|
+
} | {
|
|
2469
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
2470
|
+
} | {
|
|
2471
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
2472
|
+
} | {
|
|
2473
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
2474
|
+
};
|
|
2353
2475
|
provider: "bigcommerce";
|
|
2354
2476
|
}>;
|
|
2355
2477
|
};
|
|
@@ -2501,20 +2623,60 @@ declare const hubspotEventsZods: {
|
|
|
2501
2623
|
sourceName: "apps" | "workflows";
|
|
2502
2624
|
sourceKey: string;
|
|
2503
2625
|
}>, z.ZodObject<{
|
|
2504
|
-
event: z.
|
|
2626
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2627
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
2628
|
+
}, "strip", z.ZodTypeAny, {
|
|
2629
|
+
name: HubspotEventNames.ContactCreated;
|
|
2630
|
+
}, {
|
|
2631
|
+
name: HubspotEventNames.ContactCreated;
|
|
2632
|
+
}>, z.ZodObject<{
|
|
2633
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
2634
|
+
}, "strip", z.ZodTypeAny, {
|
|
2635
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2636
|
+
}, {
|
|
2637
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2638
|
+
}>]>;
|
|
2505
2639
|
}, "strip", z.ZodTypeAny, {
|
|
2506
|
-
event:
|
|
2640
|
+
event: {
|
|
2641
|
+
name: HubspotEventNames.ContactCreated;
|
|
2642
|
+
} | {
|
|
2643
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2644
|
+
};
|
|
2507
2645
|
}, {
|
|
2508
|
-
event:
|
|
2646
|
+
event: {
|
|
2647
|
+
name: HubspotEventNames.ContactCreated;
|
|
2648
|
+
} | {
|
|
2649
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2650
|
+
};
|
|
2509
2651
|
}>>;
|
|
2510
2652
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2511
2653
|
provider: z.ZodLiteral<"hubspot">;
|
|
2512
|
-
event: z.
|
|
2654
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2655
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
2656
|
+
}, "strip", z.ZodTypeAny, {
|
|
2657
|
+
name: HubspotEventNames.ContactCreated;
|
|
2658
|
+
}, {
|
|
2659
|
+
name: HubspotEventNames.ContactCreated;
|
|
2660
|
+
}>, z.ZodObject<{
|
|
2661
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
2662
|
+
}, "strip", z.ZodTypeAny, {
|
|
2663
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2664
|
+
}, {
|
|
2665
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2666
|
+
}>]>;
|
|
2513
2667
|
}, "strip", z.ZodTypeAny, {
|
|
2514
|
-
event:
|
|
2668
|
+
event: {
|
|
2669
|
+
name: HubspotEventNames.ContactCreated;
|
|
2670
|
+
} | {
|
|
2671
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2672
|
+
};
|
|
2515
2673
|
provider: "hubspot";
|
|
2516
2674
|
}, {
|
|
2517
|
-
event:
|
|
2675
|
+
event: {
|
|
2676
|
+
name: HubspotEventNames.ContactCreated;
|
|
2677
|
+
} | {
|
|
2678
|
+
name: HubspotEventNames.ContactDeleted;
|
|
2679
|
+
};
|
|
2518
2680
|
provider: "hubspot";
|
|
2519
2681
|
}>;
|
|
2520
2682
|
};
|
|
@@ -2549,32 +2711,44 @@ declare const mailchimpEventsZods: {
|
|
|
2549
2711
|
eventName: z.ZodNativeEnum<typeof MailchimpEventNames>;
|
|
2550
2712
|
events: {
|
|
2551
2713
|
subscribed: z.ZodObject<{
|
|
2714
|
+
listId: z.ZodString;
|
|
2552
2715
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2553
2716
|
}, "strip", z.ZodTypeAny, {
|
|
2554
2717
|
name: MailchimpEventNames.Subscribed;
|
|
2718
|
+
listId: string;
|
|
2555
2719
|
}, {
|
|
2556
2720
|
name: MailchimpEventNames.Subscribed;
|
|
2721
|
+
listId: string;
|
|
2557
2722
|
}>;
|
|
2558
2723
|
unsubscribed: z.ZodObject<{
|
|
2724
|
+
listId: z.ZodString;
|
|
2559
2725
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2560
2726
|
}, "strip", z.ZodTypeAny, {
|
|
2561
2727
|
name: MailchimpEventNames.Unsubscribed;
|
|
2728
|
+
listId: string;
|
|
2562
2729
|
}, {
|
|
2563
2730
|
name: MailchimpEventNames.Unsubscribed;
|
|
2731
|
+
listId: string;
|
|
2564
2732
|
}>;
|
|
2565
2733
|
};
|
|
2566
2734
|
readonly event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2735
|
+
listId: z.ZodString;
|
|
2567
2736
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2568
2737
|
}, "strip", z.ZodTypeAny, {
|
|
2569
2738
|
name: MailchimpEventNames.Subscribed;
|
|
2739
|
+
listId: string;
|
|
2570
2740
|
}, {
|
|
2571
2741
|
name: MailchimpEventNames.Subscribed;
|
|
2742
|
+
listId: string;
|
|
2572
2743
|
}>, z.ZodObject<{
|
|
2744
|
+
listId: z.ZodString;
|
|
2573
2745
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2574
2746
|
}, "strip", z.ZodTypeAny, {
|
|
2575
2747
|
name: MailchimpEventNames.Unsubscribed;
|
|
2748
|
+
listId: string;
|
|
2576
2749
|
}, {
|
|
2577
2750
|
name: MailchimpEventNames.Unsubscribed;
|
|
2751
|
+
listId: string;
|
|
2578
2752
|
}>]>;
|
|
2579
2753
|
readonly source: z.ZodObject<{
|
|
2580
2754
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
@@ -2597,72 +2771,86 @@ declare const mailchimpEventsZods: {
|
|
|
2597
2771
|
sourceKey: string;
|
|
2598
2772
|
}>, z.ZodObject<{
|
|
2599
2773
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2774
|
+
listId: z.ZodString;
|
|
2600
2775
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2601
2776
|
}, "strip", z.ZodTypeAny, {
|
|
2602
2777
|
name: MailchimpEventNames.Subscribed;
|
|
2778
|
+
listId: string;
|
|
2603
2779
|
}, {
|
|
2604
2780
|
name: MailchimpEventNames.Subscribed;
|
|
2781
|
+
listId: string;
|
|
2605
2782
|
}>, z.ZodObject<{
|
|
2783
|
+
listId: z.ZodString;
|
|
2606
2784
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2607
2785
|
}, "strip", z.ZodTypeAny, {
|
|
2608
2786
|
name: MailchimpEventNames.Unsubscribed;
|
|
2787
|
+
listId: string;
|
|
2609
2788
|
}, {
|
|
2610
2789
|
name: MailchimpEventNames.Unsubscribed;
|
|
2790
|
+
listId: string;
|
|
2611
2791
|
}>]>;
|
|
2612
|
-
listId: z.ZodString;
|
|
2613
2792
|
callback: z.ZodString;
|
|
2614
2793
|
}, "strip", z.ZodTypeAny, {
|
|
2615
2794
|
event: {
|
|
2616
2795
|
name: MailchimpEventNames.Subscribed;
|
|
2796
|
+
listId: string;
|
|
2617
2797
|
} | {
|
|
2618
2798
|
name: MailchimpEventNames.Unsubscribed;
|
|
2799
|
+
listId: string;
|
|
2619
2800
|
};
|
|
2620
2801
|
callback: string;
|
|
2621
|
-
listId: string;
|
|
2622
2802
|
}, {
|
|
2623
2803
|
event: {
|
|
2624
2804
|
name: MailchimpEventNames.Subscribed;
|
|
2805
|
+
listId: string;
|
|
2625
2806
|
} | {
|
|
2626
2807
|
name: MailchimpEventNames.Unsubscribed;
|
|
2808
|
+
listId: string;
|
|
2627
2809
|
};
|
|
2628
2810
|
callback: string;
|
|
2629
|
-
listId: string;
|
|
2630
2811
|
}>>;
|
|
2631
2812
|
readonly subscribeContent: z.ZodObject<{
|
|
2632
2813
|
provider: z.ZodLiteral<"mailchimp">;
|
|
2633
2814
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2815
|
+
listId: z.ZodString;
|
|
2634
2816
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2635
2817
|
}, "strip", z.ZodTypeAny, {
|
|
2636
2818
|
name: MailchimpEventNames.Subscribed;
|
|
2819
|
+
listId: string;
|
|
2637
2820
|
}, {
|
|
2638
2821
|
name: MailchimpEventNames.Subscribed;
|
|
2822
|
+
listId: string;
|
|
2639
2823
|
}>, z.ZodObject<{
|
|
2824
|
+
listId: z.ZodString;
|
|
2640
2825
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2641
2826
|
}, "strip", z.ZodTypeAny, {
|
|
2642
2827
|
name: MailchimpEventNames.Unsubscribed;
|
|
2828
|
+
listId: string;
|
|
2643
2829
|
}, {
|
|
2644
2830
|
name: MailchimpEventNames.Unsubscribed;
|
|
2831
|
+
listId: string;
|
|
2645
2832
|
}>]>;
|
|
2646
2833
|
callback: z.ZodString;
|
|
2647
|
-
listId: z.ZodString;
|
|
2648
2834
|
}, "strip", z.ZodTypeAny, {
|
|
2649
2835
|
event: {
|
|
2650
2836
|
name: MailchimpEventNames.Subscribed;
|
|
2837
|
+
listId: string;
|
|
2651
2838
|
} | {
|
|
2652
2839
|
name: MailchimpEventNames.Unsubscribed;
|
|
2840
|
+
listId: string;
|
|
2653
2841
|
};
|
|
2654
2842
|
callback: string;
|
|
2655
2843
|
provider: "mailchimp";
|
|
2656
|
-
listId: string;
|
|
2657
2844
|
}, {
|
|
2658
2845
|
event: {
|
|
2659
2846
|
name: MailchimpEventNames.Subscribed;
|
|
2847
|
+
listId: string;
|
|
2660
2848
|
} | {
|
|
2661
2849
|
name: MailchimpEventNames.Unsubscribed;
|
|
2850
|
+
listId: string;
|
|
2662
2851
|
};
|
|
2663
2852
|
callback: string;
|
|
2664
2853
|
provider: "mailchimp";
|
|
2665
|
-
listId: string;
|
|
2666
2854
|
}>;
|
|
2667
2855
|
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
2668
2856
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
@@ -2674,27 +2862,81 @@ declare const mailchimpEventsZods: {
|
|
|
2674
2862
|
sourceName: "apps" | "workflows";
|
|
2675
2863
|
sourceKey: string;
|
|
2676
2864
|
}>, z.ZodObject<{
|
|
2677
|
-
event: z.
|
|
2678
|
-
|
|
2865
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2866
|
+
listId: z.ZodString;
|
|
2867
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2868
|
+
}, "strip", z.ZodTypeAny, {
|
|
2869
|
+
name: MailchimpEventNames.Subscribed;
|
|
2870
|
+
listId: string;
|
|
2871
|
+
}, {
|
|
2872
|
+
name: MailchimpEventNames.Subscribed;
|
|
2873
|
+
listId: string;
|
|
2874
|
+
}>, z.ZodObject<{
|
|
2875
|
+
listId: z.ZodString;
|
|
2876
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2877
|
+
}, "strip", z.ZodTypeAny, {
|
|
2878
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2879
|
+
listId: string;
|
|
2880
|
+
}, {
|
|
2881
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2882
|
+
listId: string;
|
|
2883
|
+
}>]>;
|
|
2679
2884
|
}, "strip", z.ZodTypeAny, {
|
|
2680
|
-
event:
|
|
2681
|
-
|
|
2885
|
+
event: {
|
|
2886
|
+
name: MailchimpEventNames.Subscribed;
|
|
2887
|
+
listId: string;
|
|
2888
|
+
} | {
|
|
2889
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2890
|
+
listId: string;
|
|
2891
|
+
};
|
|
2682
2892
|
}, {
|
|
2683
|
-
event:
|
|
2684
|
-
|
|
2893
|
+
event: {
|
|
2894
|
+
name: MailchimpEventNames.Subscribed;
|
|
2895
|
+
listId: string;
|
|
2896
|
+
} | {
|
|
2897
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2898
|
+
listId: string;
|
|
2899
|
+
};
|
|
2685
2900
|
}>>;
|
|
2686
2901
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2687
2902
|
provider: z.ZodLiteral<"mailchimp">;
|
|
2688
|
-
event: z.
|
|
2689
|
-
|
|
2903
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
2904
|
+
listId: z.ZodString;
|
|
2905
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
2906
|
+
}, "strip", z.ZodTypeAny, {
|
|
2907
|
+
name: MailchimpEventNames.Subscribed;
|
|
2908
|
+
listId: string;
|
|
2909
|
+
}, {
|
|
2910
|
+
name: MailchimpEventNames.Subscribed;
|
|
2911
|
+
listId: string;
|
|
2912
|
+
}>, z.ZodObject<{
|
|
2913
|
+
listId: z.ZodString;
|
|
2914
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
2915
|
+
}, "strip", z.ZodTypeAny, {
|
|
2916
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2917
|
+
listId: string;
|
|
2918
|
+
}, {
|
|
2919
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2920
|
+
listId: string;
|
|
2921
|
+
}>]>;
|
|
2690
2922
|
}, "strip", z.ZodTypeAny, {
|
|
2691
|
-
event:
|
|
2923
|
+
event: {
|
|
2924
|
+
name: MailchimpEventNames.Subscribed;
|
|
2925
|
+
listId: string;
|
|
2926
|
+
} | {
|
|
2927
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2928
|
+
listId: string;
|
|
2929
|
+
};
|
|
2692
2930
|
provider: "mailchimp";
|
|
2693
|
-
listId: string;
|
|
2694
2931
|
}, {
|
|
2695
|
-
event:
|
|
2932
|
+
event: {
|
|
2933
|
+
name: MailchimpEventNames.Subscribed;
|
|
2934
|
+
listId: string;
|
|
2935
|
+
} | {
|
|
2936
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
2937
|
+
listId: string;
|
|
2938
|
+
};
|
|
2696
2939
|
provider: "mailchimp";
|
|
2697
|
-
listId: string;
|
|
2698
2940
|
}>;
|
|
2699
2941
|
};
|
|
2700
2942
|
type MailchimpEvent = z.infer<typeof mailchimpEventsZods.event>;
|
|
@@ -2818,23 +3060,43 @@ declare const shopifyEventsZods: {
|
|
|
2818
3060
|
sourceName: "apps" | "workflows";
|
|
2819
3061
|
sourceKey: string;
|
|
2820
3062
|
}>, z.ZodObject<{
|
|
2821
|
-
event: z.
|
|
3063
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3064
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
3065
|
+
}, "strip", z.ZodTypeAny, {
|
|
3066
|
+
name: ShopifyEventNames;
|
|
3067
|
+
}, {
|
|
3068
|
+
name: ShopifyEventNames;
|
|
3069
|
+
}>]>;
|
|
2822
3070
|
}, "strip", z.ZodTypeAny, {
|
|
2823
|
-
event:
|
|
3071
|
+
event: {
|
|
3072
|
+
name: ShopifyEventNames;
|
|
3073
|
+
};
|
|
2824
3074
|
}, {
|
|
2825
|
-
event:
|
|
3075
|
+
event: {
|
|
3076
|
+
name: ShopifyEventNames;
|
|
3077
|
+
};
|
|
2826
3078
|
}>>;
|
|
2827
3079
|
readonly unsubscribeContent: z.ZodObject<{
|
|
2828
3080
|
provider: z.ZodLiteral<"shopify">;
|
|
2829
|
-
event: z.
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
}
|
|
2837
|
-
|
|
3081
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3082
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
3083
|
+
}, "strip", z.ZodTypeAny, {
|
|
3084
|
+
name: ShopifyEventNames;
|
|
3085
|
+
}, {
|
|
3086
|
+
name: ShopifyEventNames;
|
|
3087
|
+
}>]>;
|
|
3088
|
+
}, "strip", z.ZodTypeAny, {
|
|
3089
|
+
event: {
|
|
3090
|
+
name: ShopifyEventNames;
|
|
3091
|
+
};
|
|
3092
|
+
provider: "shopify";
|
|
3093
|
+
}, {
|
|
3094
|
+
event: {
|
|
3095
|
+
name: ShopifyEventNames;
|
|
3096
|
+
};
|
|
3097
|
+
provider: "shopify";
|
|
3098
|
+
}>;
|
|
3099
|
+
};
|
|
2838
3100
|
type ShopifyEvent = z.infer<typeof shopifyEventsZods.event>;
|
|
2839
3101
|
type SubscribeToShopifyEventPayload = z.infer<typeof shopifyEventsZods.subscribe>;
|
|
2840
3102
|
type UnsubscribeFromShopifyEventPayload = z.infer<typeof shopifyEventsZods.unsubscribe>;
|
|
@@ -2906,10 +3168,13 @@ declare const textLivechatEventsZods: {
|
|
|
2906
3168
|
}>;
|
|
2907
3169
|
chatRated: z.ZodObject<{
|
|
2908
3170
|
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3171
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
2909
3172
|
}, "strip", z.ZodTypeAny, {
|
|
2910
3173
|
name: TextLivechatEventNames.ChatRated;
|
|
3174
|
+
rating?: "good" | "bad" | undefined;
|
|
2911
3175
|
}, {
|
|
2912
3176
|
name: TextLivechatEventNames.ChatRated;
|
|
3177
|
+
rating?: "good" | "bad" | undefined;
|
|
2913
3178
|
}>;
|
|
2914
3179
|
chatCommented: z.ZodObject<{
|
|
2915
3180
|
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
@@ -2978,10 +3243,13 @@ declare const textLivechatEventsZods: {
|
|
|
2978
3243
|
tag?: string | undefined;
|
|
2979
3244
|
}>, z.ZodObject<{
|
|
2980
3245
|
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3246
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
2981
3247
|
}, "strip", z.ZodTypeAny, {
|
|
2982
3248
|
name: TextLivechatEventNames.ChatRated;
|
|
3249
|
+
rating?: "good" | "bad" | undefined;
|
|
2983
3250
|
}, {
|
|
2984
3251
|
name: TextLivechatEventNames.ChatRated;
|
|
3252
|
+
rating?: "good" | "bad" | undefined;
|
|
2985
3253
|
}>, z.ZodObject<{
|
|
2986
3254
|
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
2987
3255
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3065,10 +3333,13 @@ declare const textLivechatEventsZods: {
|
|
|
3065
3333
|
tag?: string | undefined;
|
|
3066
3334
|
}>, z.ZodObject<{
|
|
3067
3335
|
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3336
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
3068
3337
|
}, "strip", z.ZodTypeAny, {
|
|
3069
3338
|
name: TextLivechatEventNames.ChatRated;
|
|
3339
|
+
rating?: "good" | "bad" | undefined;
|
|
3070
3340
|
}, {
|
|
3071
3341
|
name: TextLivechatEventNames.ChatRated;
|
|
3342
|
+
rating?: "good" | "bad" | undefined;
|
|
3072
3343
|
}>, z.ZodObject<{
|
|
3073
3344
|
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3074
3345
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3114,6 +3385,7 @@ declare const textLivechatEventsZods: {
|
|
|
3114
3385
|
tag?: string | undefined;
|
|
3115
3386
|
} | {
|
|
3116
3387
|
name: TextLivechatEventNames.ChatRated;
|
|
3388
|
+
rating?: "good" | "bad" | undefined;
|
|
3117
3389
|
} | {
|
|
3118
3390
|
name: TextLivechatEventNames.ChatCommented;
|
|
3119
3391
|
} | {
|
|
@@ -3139,6 +3411,7 @@ declare const textLivechatEventsZods: {
|
|
|
3139
3411
|
tag?: string | undefined;
|
|
3140
3412
|
} | {
|
|
3141
3413
|
name: TextLivechatEventNames.ChatRated;
|
|
3414
|
+
rating?: "good" | "bad" | undefined;
|
|
3142
3415
|
} | {
|
|
3143
3416
|
name: TextLivechatEventNames.ChatCommented;
|
|
3144
3417
|
} | {
|
|
@@ -3186,10 +3459,13 @@ declare const textLivechatEventsZods: {
|
|
|
3186
3459
|
tag?: string | undefined;
|
|
3187
3460
|
}>, z.ZodObject<{
|
|
3188
3461
|
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3462
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
3189
3463
|
}, "strip", z.ZodTypeAny, {
|
|
3190
3464
|
name: TextLivechatEventNames.ChatRated;
|
|
3465
|
+
rating?: "good" | "bad" | undefined;
|
|
3191
3466
|
}, {
|
|
3192
3467
|
name: TextLivechatEventNames.ChatRated;
|
|
3468
|
+
rating?: "good" | "bad" | undefined;
|
|
3193
3469
|
}>, z.ZodObject<{
|
|
3194
3470
|
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3195
3471
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3235,6 +3511,7 @@ declare const textLivechatEventsZods: {
|
|
|
3235
3511
|
tag?: string | undefined;
|
|
3236
3512
|
} | {
|
|
3237
3513
|
name: TextLivechatEventNames.ChatRated;
|
|
3514
|
+
rating?: "good" | "bad" | undefined;
|
|
3238
3515
|
} | {
|
|
3239
3516
|
name: TextLivechatEventNames.ChatCommented;
|
|
3240
3517
|
} | {
|
|
@@ -3261,6 +3538,7 @@ declare const textLivechatEventsZods: {
|
|
|
3261
3538
|
tag?: string | undefined;
|
|
3262
3539
|
} | {
|
|
3263
3540
|
name: TextLivechatEventNames.ChatRated;
|
|
3541
|
+
rating?: "good" | "bad" | undefined;
|
|
3264
3542
|
} | {
|
|
3265
3543
|
name: TextLivechatEventNames.ChatCommented;
|
|
3266
3544
|
} | {
|
|
@@ -3285,20 +3563,250 @@ declare const textLivechatEventsZods: {
|
|
|
3285
3563
|
sourceName: "apps" | "workflows";
|
|
3286
3564
|
sourceKey: string;
|
|
3287
3565
|
}>, z.ZodObject<{
|
|
3288
|
-
event: z.
|
|
3566
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3567
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
3568
|
+
}, "strip", z.ZodTypeAny, {
|
|
3569
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3570
|
+
}, {
|
|
3571
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3572
|
+
}>, z.ZodObject<{
|
|
3573
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
3574
|
+
}, "strip", z.ZodTypeAny, {
|
|
3575
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3576
|
+
}, {
|
|
3577
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3578
|
+
}>, z.ZodObject<{
|
|
3579
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
3580
|
+
}, "strip", z.ZodTypeAny, {
|
|
3581
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3582
|
+
}, {
|
|
3583
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3584
|
+
}>, z.ZodObject<{
|
|
3585
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
3586
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
3587
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
3588
|
+
}, "strip", z.ZodTypeAny, {
|
|
3589
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3590
|
+
exact?: boolean | undefined;
|
|
3591
|
+
tag?: string | undefined;
|
|
3592
|
+
}, {
|
|
3593
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3594
|
+
exact?: boolean | undefined;
|
|
3595
|
+
tag?: string | undefined;
|
|
3596
|
+
}>, z.ZodObject<{
|
|
3597
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3598
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
3599
|
+
}, "strip", z.ZodTypeAny, {
|
|
3600
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3601
|
+
rating?: "good" | "bad" | undefined;
|
|
3602
|
+
}, {
|
|
3603
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3604
|
+
rating?: "good" | "bad" | undefined;
|
|
3605
|
+
}>, z.ZodObject<{
|
|
3606
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3607
|
+
}, "strip", z.ZodTypeAny, {
|
|
3608
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3609
|
+
}, {
|
|
3610
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3611
|
+
}>, z.ZodObject<{
|
|
3612
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
3613
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
3614
|
+
}, "strip", z.ZodTypeAny, {
|
|
3615
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3616
|
+
filter?: string | undefined;
|
|
3617
|
+
}, {
|
|
3618
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3619
|
+
filter?: string | undefined;
|
|
3620
|
+
}>, z.ZodObject<{
|
|
3621
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
3622
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
3623
|
+
}, "strip", z.ZodTypeAny, {
|
|
3624
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3625
|
+
userType?: "agent" | "customer" | undefined;
|
|
3626
|
+
}, {
|
|
3627
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3628
|
+
userType?: "agent" | "customer" | undefined;
|
|
3629
|
+
}>, z.ZodObject<{
|
|
3630
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
3631
|
+
}, "strip", z.ZodTypeAny, {
|
|
3632
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3633
|
+
}, {
|
|
3634
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3635
|
+
}>]>;
|
|
3289
3636
|
}, "strip", z.ZodTypeAny, {
|
|
3290
|
-
event:
|
|
3637
|
+
event: {
|
|
3638
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3639
|
+
} | {
|
|
3640
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3641
|
+
} | {
|
|
3642
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3643
|
+
} | {
|
|
3644
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3645
|
+
exact?: boolean | undefined;
|
|
3646
|
+
tag?: string | undefined;
|
|
3647
|
+
} | {
|
|
3648
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3649
|
+
rating?: "good" | "bad" | undefined;
|
|
3650
|
+
} | {
|
|
3651
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3652
|
+
} | {
|
|
3653
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3654
|
+
filter?: string | undefined;
|
|
3655
|
+
} | {
|
|
3656
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3657
|
+
userType?: "agent" | "customer" | undefined;
|
|
3658
|
+
} | {
|
|
3659
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3660
|
+
};
|
|
3291
3661
|
}, {
|
|
3292
|
-
event:
|
|
3662
|
+
event: {
|
|
3663
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3664
|
+
} | {
|
|
3665
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3666
|
+
} | {
|
|
3667
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3668
|
+
} | {
|
|
3669
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3670
|
+
exact?: boolean | undefined;
|
|
3671
|
+
tag?: string | undefined;
|
|
3672
|
+
} | {
|
|
3673
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3674
|
+
rating?: "good" | "bad" | undefined;
|
|
3675
|
+
} | {
|
|
3676
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3677
|
+
} | {
|
|
3678
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3679
|
+
filter?: string | undefined;
|
|
3680
|
+
} | {
|
|
3681
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3682
|
+
userType?: "agent" | "customer" | undefined;
|
|
3683
|
+
} | {
|
|
3684
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3685
|
+
};
|
|
3293
3686
|
}>>;
|
|
3294
3687
|
readonly unsubscribeContent: z.ZodObject<{
|
|
3295
3688
|
provider: z.ZodLiteral<"text-livechat">;
|
|
3296
|
-
event: z.
|
|
3689
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3690
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
3691
|
+
}, "strip", z.ZodTypeAny, {
|
|
3692
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3693
|
+
}, {
|
|
3694
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3695
|
+
}>, z.ZodObject<{
|
|
3696
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
3697
|
+
}, "strip", z.ZodTypeAny, {
|
|
3698
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3699
|
+
}, {
|
|
3700
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3701
|
+
}>, z.ZodObject<{
|
|
3702
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
3703
|
+
}, "strip", z.ZodTypeAny, {
|
|
3704
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3705
|
+
}, {
|
|
3706
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3707
|
+
}>, z.ZodObject<{
|
|
3708
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
3709
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
3710
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
3711
|
+
}, "strip", z.ZodTypeAny, {
|
|
3712
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3713
|
+
exact?: boolean | undefined;
|
|
3714
|
+
tag?: string | undefined;
|
|
3715
|
+
}, {
|
|
3716
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3717
|
+
exact?: boolean | undefined;
|
|
3718
|
+
tag?: string | undefined;
|
|
3719
|
+
}>, z.ZodObject<{
|
|
3720
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3721
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
3722
|
+
}, "strip", z.ZodTypeAny, {
|
|
3723
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3724
|
+
rating?: "good" | "bad" | undefined;
|
|
3725
|
+
}, {
|
|
3726
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3727
|
+
rating?: "good" | "bad" | undefined;
|
|
3728
|
+
}>, z.ZodObject<{
|
|
3729
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3730
|
+
}, "strip", z.ZodTypeAny, {
|
|
3731
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3732
|
+
}, {
|
|
3733
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3734
|
+
}>, z.ZodObject<{
|
|
3735
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
3736
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
3737
|
+
}, "strip", z.ZodTypeAny, {
|
|
3738
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3739
|
+
filter?: string | undefined;
|
|
3740
|
+
}, {
|
|
3741
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3742
|
+
filter?: string | undefined;
|
|
3743
|
+
}>, z.ZodObject<{
|
|
3744
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
3745
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
3746
|
+
}, "strip", z.ZodTypeAny, {
|
|
3747
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3748
|
+
userType?: "agent" | "customer" | undefined;
|
|
3749
|
+
}, {
|
|
3750
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3751
|
+
userType?: "agent" | "customer" | undefined;
|
|
3752
|
+
}>, z.ZodObject<{
|
|
3753
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
3754
|
+
}, "strip", z.ZodTypeAny, {
|
|
3755
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3756
|
+
}, {
|
|
3757
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3758
|
+
}>]>;
|
|
3297
3759
|
}, "strip", z.ZodTypeAny, {
|
|
3298
|
-
event:
|
|
3760
|
+
event: {
|
|
3761
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3762
|
+
} | {
|
|
3763
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3764
|
+
} | {
|
|
3765
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3766
|
+
} | {
|
|
3767
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3768
|
+
exact?: boolean | undefined;
|
|
3769
|
+
tag?: string | undefined;
|
|
3770
|
+
} | {
|
|
3771
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3772
|
+
rating?: "good" | "bad" | undefined;
|
|
3773
|
+
} | {
|
|
3774
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3775
|
+
} | {
|
|
3776
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3777
|
+
filter?: string | undefined;
|
|
3778
|
+
} | {
|
|
3779
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3780
|
+
userType?: "agent" | "customer" | undefined;
|
|
3781
|
+
} | {
|
|
3782
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3783
|
+
};
|
|
3299
3784
|
provider: "text-livechat";
|
|
3300
3785
|
}, {
|
|
3301
|
-
event:
|
|
3786
|
+
event: {
|
|
3787
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3788
|
+
} | {
|
|
3789
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3790
|
+
} | {
|
|
3791
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3792
|
+
} | {
|
|
3793
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
3794
|
+
exact?: boolean | undefined;
|
|
3795
|
+
tag?: string | undefined;
|
|
3796
|
+
} | {
|
|
3797
|
+
name: TextLivechatEventNames.ChatRated;
|
|
3798
|
+
rating?: "good" | "bad" | undefined;
|
|
3799
|
+
} | {
|
|
3800
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
3801
|
+
} | {
|
|
3802
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
3803
|
+
filter?: string | undefined;
|
|
3804
|
+
} | {
|
|
3805
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
3806
|
+
userType?: "agent" | "customer" | undefined;
|
|
3807
|
+
} | {
|
|
3808
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3809
|
+
};
|
|
3302
3810
|
provider: "text-livechat";
|
|
3303
3811
|
}>;
|
|
3304
3812
|
};
|
|
@@ -3341,10 +3849,13 @@ declare const integrationEventsZods: {
|
|
|
3341
3849
|
tag?: string | undefined;
|
|
3342
3850
|
}>, z.ZodObject<{
|
|
3343
3851
|
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
3852
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
3344
3853
|
}, "strip", z.ZodTypeAny, {
|
|
3345
3854
|
name: TextLivechatEventNames.ChatRated;
|
|
3855
|
+
rating?: "good" | "bad" | undefined;
|
|
3346
3856
|
}, {
|
|
3347
3857
|
name: TextLivechatEventNames.ChatRated;
|
|
3858
|
+
rating?: "good" | "bad" | undefined;
|
|
3348
3859
|
}>, z.ZodObject<{
|
|
3349
3860
|
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3350
3861
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3382,17 +3893,23 @@ declare const integrationEventsZods: {
|
|
|
3382
3893
|
}, {
|
|
3383
3894
|
name: ShopifyEventNames;
|
|
3384
3895
|
}>]>]>, z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3896
|
+
listId: z.ZodString;
|
|
3385
3897
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
3386
3898
|
}, "strip", z.ZodTypeAny, {
|
|
3387
3899
|
name: MailchimpEventNames.Subscribed;
|
|
3900
|
+
listId: string;
|
|
3388
3901
|
}, {
|
|
3389
3902
|
name: MailchimpEventNames.Subscribed;
|
|
3903
|
+
listId: string;
|
|
3390
3904
|
}>, z.ZodObject<{
|
|
3905
|
+
listId: z.ZodString;
|
|
3391
3906
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
3392
3907
|
}, "strip", z.ZodTypeAny, {
|
|
3393
3908
|
name: MailchimpEventNames.Unsubscribed;
|
|
3909
|
+
listId: string;
|
|
3394
3910
|
}, {
|
|
3395
3911
|
name: MailchimpEventNames.Unsubscribed;
|
|
3912
|
+
listId: string;
|
|
3396
3913
|
}>]>]>, z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3397
3914
|
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
3398
3915
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3430,29 +3947,334 @@ declare const integrationEventsZods: {
|
|
|
3430
3947
|
}, {
|
|
3431
3948
|
name: BigCommerceEventNames.OrderUpdated;
|
|
3432
3949
|
}>, z.ZodObject<{
|
|
3433
|
-
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
3950
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
3951
|
+
}, "strip", z.ZodTypeAny, {
|
|
3952
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
3953
|
+
}, {
|
|
3954
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
3955
|
+
}>, z.ZodObject<{
|
|
3956
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
3957
|
+
}, "strip", z.ZodTypeAny, {
|
|
3958
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
3959
|
+
}, {
|
|
3960
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
3961
|
+
}>]>]>;
|
|
3962
|
+
readonly source: z.ZodObject<{
|
|
3963
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3964
|
+
sourceKey: z.ZodString;
|
|
3965
|
+
}, "strip", z.ZodTypeAny, {
|
|
3966
|
+
sourceName: "apps" | "workflows";
|
|
3967
|
+
sourceKey: string;
|
|
3968
|
+
}, {
|
|
3969
|
+
sourceName: "apps" | "workflows";
|
|
3970
|
+
sourceKey: string;
|
|
3971
|
+
}>;
|
|
3972
|
+
readonly subscribe: z.ZodIntersection<z.ZodObject<{
|
|
3973
|
+
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3974
|
+
sourceKey: z.ZodString;
|
|
3975
|
+
}, "strip", z.ZodTypeAny, {
|
|
3976
|
+
sourceName: "apps" | "workflows";
|
|
3977
|
+
sourceKey: string;
|
|
3978
|
+
}, {
|
|
3979
|
+
sourceName: "apps" | "workflows";
|
|
3980
|
+
sourceKey: string;
|
|
3981
|
+
}>, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
3982
|
+
provider: z.ZodLiteral<"text-livechat">;
|
|
3983
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
3984
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatStarted>;
|
|
3985
|
+
}, "strip", z.ZodTypeAny, {
|
|
3986
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3987
|
+
}, {
|
|
3988
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
3989
|
+
}>, z.ZodObject<{
|
|
3990
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatEnded>;
|
|
3991
|
+
}, "strip", z.ZodTypeAny, {
|
|
3992
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3993
|
+
}, {
|
|
3994
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
3995
|
+
}>, z.ZodObject<{
|
|
3996
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTransferred>;
|
|
3997
|
+
}, "strip", z.ZodTypeAny, {
|
|
3998
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
3999
|
+
}, {
|
|
4000
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4001
|
+
}>, z.ZodObject<{
|
|
4002
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatTagged>;
|
|
4003
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
4004
|
+
exact: z.ZodOptional<z.ZodBoolean>;
|
|
4005
|
+
}, "strip", z.ZodTypeAny, {
|
|
4006
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4007
|
+
exact?: boolean | undefined;
|
|
4008
|
+
tag?: string | undefined;
|
|
4009
|
+
}, {
|
|
4010
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4011
|
+
exact?: boolean | undefined;
|
|
4012
|
+
tag?: string | undefined;
|
|
4013
|
+
}>, z.ZodObject<{
|
|
4014
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
4015
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
4016
|
+
}, "strip", z.ZodTypeAny, {
|
|
4017
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4018
|
+
rating?: "good" | "bad" | undefined;
|
|
4019
|
+
}, {
|
|
4020
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4021
|
+
rating?: "good" | "bad" | undefined;
|
|
4022
|
+
}>, z.ZodObject<{
|
|
4023
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
4024
|
+
}, "strip", z.ZodTypeAny, {
|
|
4025
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4026
|
+
}, {
|
|
4027
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4028
|
+
}>, z.ZodObject<{
|
|
4029
|
+
name: z.ZodLiteral<TextLivechatEventNames.ChatMessage>;
|
|
4030
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
4031
|
+
}, "strip", z.ZodTypeAny, {
|
|
4032
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4033
|
+
filter?: string | undefined;
|
|
4034
|
+
}, {
|
|
4035
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4036
|
+
filter?: string | undefined;
|
|
4037
|
+
}>, z.ZodObject<{
|
|
4038
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserAddedToChat>;
|
|
4039
|
+
userType: z.ZodOptional<z.ZodEnum<["agent", "customer"]>>;
|
|
4040
|
+
}, "strip", z.ZodTypeAny, {
|
|
4041
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4042
|
+
userType?: "agent" | "customer" | undefined;
|
|
4043
|
+
}, {
|
|
4044
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4045
|
+
userType?: "agent" | "customer" | undefined;
|
|
4046
|
+
}>, z.ZodObject<{
|
|
4047
|
+
name: z.ZodLiteral<TextLivechatEventNames.UserRemovedFromChat>;
|
|
4048
|
+
}, "strip", z.ZodTypeAny, {
|
|
4049
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4050
|
+
}, {
|
|
4051
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4052
|
+
}>]>;
|
|
4053
|
+
callback: z.ZodString;
|
|
4054
|
+
}, "strip", z.ZodTypeAny, {
|
|
4055
|
+
event: {
|
|
4056
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4057
|
+
} | {
|
|
4058
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4059
|
+
} | {
|
|
4060
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4061
|
+
} | {
|
|
4062
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4063
|
+
exact?: boolean | undefined;
|
|
4064
|
+
tag?: string | undefined;
|
|
4065
|
+
} | {
|
|
4066
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4067
|
+
rating?: "good" | "bad" | undefined;
|
|
4068
|
+
} | {
|
|
4069
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4070
|
+
} | {
|
|
4071
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4072
|
+
filter?: string | undefined;
|
|
4073
|
+
} | {
|
|
4074
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4075
|
+
userType?: "agent" | "customer" | undefined;
|
|
4076
|
+
} | {
|
|
4077
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4078
|
+
};
|
|
4079
|
+
callback: string;
|
|
4080
|
+
provider: "text-livechat";
|
|
4081
|
+
}, {
|
|
4082
|
+
event: {
|
|
4083
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
4084
|
+
} | {
|
|
4085
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
4086
|
+
} | {
|
|
4087
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
4088
|
+
} | {
|
|
4089
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
4090
|
+
exact?: boolean | undefined;
|
|
4091
|
+
tag?: string | undefined;
|
|
4092
|
+
} | {
|
|
4093
|
+
name: TextLivechatEventNames.ChatRated;
|
|
4094
|
+
rating?: "good" | "bad" | undefined;
|
|
4095
|
+
} | {
|
|
4096
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
4097
|
+
} | {
|
|
4098
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
4099
|
+
filter?: string | undefined;
|
|
4100
|
+
} | {
|
|
4101
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
4102
|
+
userType?: "agent" | "customer" | undefined;
|
|
4103
|
+
} | {
|
|
4104
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
4105
|
+
};
|
|
4106
|
+
callback: string;
|
|
4107
|
+
provider: "text-livechat";
|
|
4108
|
+
}>, z.ZodObject<{
|
|
4109
|
+
provider: z.ZodLiteral<"shopify">;
|
|
4110
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4111
|
+
name: z.ZodLiteral<ShopifyEventNames>;
|
|
4112
|
+
}, "strip", z.ZodTypeAny, {
|
|
4113
|
+
name: ShopifyEventNames;
|
|
4114
|
+
}, {
|
|
4115
|
+
name: ShopifyEventNames;
|
|
4116
|
+
}>]>;
|
|
4117
|
+
callback: z.ZodString;
|
|
4118
|
+
}, "strip", z.ZodTypeAny, {
|
|
4119
|
+
event: {
|
|
4120
|
+
name: ShopifyEventNames;
|
|
4121
|
+
};
|
|
4122
|
+
callback: string;
|
|
4123
|
+
provider: "shopify";
|
|
4124
|
+
}, {
|
|
4125
|
+
event: {
|
|
4126
|
+
name: ShopifyEventNames;
|
|
4127
|
+
};
|
|
4128
|
+
callback: string;
|
|
4129
|
+
provider: "shopify";
|
|
4130
|
+
}>, z.ZodObject<{
|
|
4131
|
+
provider: z.ZodLiteral<"mailchimp">;
|
|
4132
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4133
|
+
listId: z.ZodString;
|
|
4134
|
+
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
4135
|
+
}, "strip", z.ZodTypeAny, {
|
|
4136
|
+
name: MailchimpEventNames.Subscribed;
|
|
4137
|
+
listId: string;
|
|
4138
|
+
}, {
|
|
4139
|
+
name: MailchimpEventNames.Subscribed;
|
|
4140
|
+
listId: string;
|
|
4141
|
+
}>, z.ZodObject<{
|
|
4142
|
+
listId: z.ZodString;
|
|
4143
|
+
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
4144
|
+
}, "strip", z.ZodTypeAny, {
|
|
4145
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4146
|
+
listId: string;
|
|
4147
|
+
}, {
|
|
4148
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4149
|
+
listId: string;
|
|
4150
|
+
}>]>;
|
|
4151
|
+
callback: z.ZodString;
|
|
3434
4152
|
}, "strip", z.ZodTypeAny, {
|
|
3435
|
-
|
|
4153
|
+
event: {
|
|
4154
|
+
name: MailchimpEventNames.Subscribed;
|
|
4155
|
+
listId: string;
|
|
4156
|
+
} | {
|
|
4157
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4158
|
+
listId: string;
|
|
4159
|
+
};
|
|
4160
|
+
callback: string;
|
|
4161
|
+
provider: "mailchimp";
|
|
3436
4162
|
}, {
|
|
3437
|
-
|
|
4163
|
+
event: {
|
|
4164
|
+
name: MailchimpEventNames.Subscribed;
|
|
4165
|
+
listId: string;
|
|
4166
|
+
} | {
|
|
4167
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
4168
|
+
listId: string;
|
|
4169
|
+
};
|
|
4170
|
+
callback: string;
|
|
4171
|
+
provider: "mailchimp";
|
|
3438
4172
|
}>, z.ZodObject<{
|
|
3439
|
-
|
|
4173
|
+
provider: z.ZodLiteral<"hubspot">;
|
|
4174
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4175
|
+
name: z.ZodLiteral<HubspotEventNames.ContactCreated>;
|
|
4176
|
+
}, "strip", z.ZodTypeAny, {
|
|
4177
|
+
name: HubspotEventNames.ContactCreated;
|
|
4178
|
+
}, {
|
|
4179
|
+
name: HubspotEventNames.ContactCreated;
|
|
4180
|
+
}>, z.ZodObject<{
|
|
4181
|
+
name: z.ZodLiteral<HubspotEventNames.ContactDeleted>;
|
|
4182
|
+
}, "strip", z.ZodTypeAny, {
|
|
4183
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4184
|
+
}, {
|
|
4185
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4186
|
+
}>]>;
|
|
4187
|
+
callback: z.ZodString;
|
|
3440
4188
|
}, "strip", z.ZodTypeAny, {
|
|
3441
|
-
|
|
4189
|
+
event: {
|
|
4190
|
+
name: HubspotEventNames.ContactCreated;
|
|
4191
|
+
} | {
|
|
4192
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4193
|
+
};
|
|
4194
|
+
callback: string;
|
|
4195
|
+
provider: "hubspot";
|
|
3442
4196
|
}, {
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
4197
|
+
event: {
|
|
4198
|
+
name: HubspotEventNames.ContactCreated;
|
|
4199
|
+
} | {
|
|
4200
|
+
name: HubspotEventNames.ContactDeleted;
|
|
4201
|
+
};
|
|
4202
|
+
callback: string;
|
|
4203
|
+
provider: "hubspot";
|
|
4204
|
+
}>, z.ZodObject<{
|
|
4205
|
+
provider: z.ZodLiteral<"bigcommerce">;
|
|
4206
|
+
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4207
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartCreated>;
|
|
4208
|
+
}, "strip", z.ZodTypeAny, {
|
|
4209
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4210
|
+
}, {
|
|
4211
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4212
|
+
}>, z.ZodObject<{
|
|
4213
|
+
name: z.ZodLiteral<BigCommerceEventNames.CartUpdated>;
|
|
4214
|
+
}, "strip", z.ZodTypeAny, {
|
|
4215
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4216
|
+
}, {
|
|
4217
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4218
|
+
}>, z.ZodObject<{
|
|
4219
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderCreated>;
|
|
4220
|
+
}, "strip", z.ZodTypeAny, {
|
|
4221
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4222
|
+
}, {
|
|
4223
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4224
|
+
}>, z.ZodObject<{
|
|
4225
|
+
name: z.ZodLiteral<BigCommerceEventNames.OrderUpdated>;
|
|
4226
|
+
}, "strip", z.ZodTypeAny, {
|
|
4227
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4228
|
+
}, {
|
|
4229
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4230
|
+
}>, z.ZodObject<{
|
|
4231
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductCreated>;
|
|
4232
|
+
}, "strip", z.ZodTypeAny, {
|
|
4233
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4234
|
+
}, {
|
|
4235
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4236
|
+
}>, z.ZodObject<{
|
|
4237
|
+
name: z.ZodLiteral<BigCommerceEventNames.ProductUpdated>;
|
|
4238
|
+
}, "strip", z.ZodTypeAny, {
|
|
4239
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4240
|
+
}, {
|
|
4241
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4242
|
+
}>]>;
|
|
4243
|
+
callback: z.ZodString;
|
|
3448
4244
|
}, "strip", z.ZodTypeAny, {
|
|
3449
|
-
|
|
3450
|
-
|
|
4245
|
+
event: {
|
|
4246
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4247
|
+
} | {
|
|
4248
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4249
|
+
} | {
|
|
4250
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4251
|
+
} | {
|
|
4252
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4253
|
+
} | {
|
|
4254
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4255
|
+
} | {
|
|
4256
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4257
|
+
};
|
|
4258
|
+
callback: string;
|
|
4259
|
+
provider: "bigcommerce";
|
|
3451
4260
|
}, {
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
4261
|
+
event: {
|
|
4262
|
+
name: BigCommerceEventNames.CartCreated;
|
|
4263
|
+
} | {
|
|
4264
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
4265
|
+
} | {
|
|
4266
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
4267
|
+
} | {
|
|
4268
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
4269
|
+
} | {
|
|
4270
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
4271
|
+
} | {
|
|
4272
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
4273
|
+
};
|
|
4274
|
+
callback: string;
|
|
4275
|
+
provider: "bigcommerce";
|
|
4276
|
+
}>]>>;
|
|
4277
|
+
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
3456
4278
|
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3457
4279
|
sourceKey: z.ZodString;
|
|
3458
4280
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3495,10 +4317,13 @@ declare const integrationEventsZods: {
|
|
|
3495
4317
|
tag?: string | undefined;
|
|
3496
4318
|
}>, z.ZodObject<{
|
|
3497
4319
|
name: z.ZodLiteral<TextLivechatEventNames.ChatRated>;
|
|
4320
|
+
rating: z.ZodOptional<z.ZodEnum<["good", "bad"]>>;
|
|
3498
4321
|
}, "strip", z.ZodTypeAny, {
|
|
3499
4322
|
name: TextLivechatEventNames.ChatRated;
|
|
4323
|
+
rating?: "good" | "bad" | undefined;
|
|
3500
4324
|
}, {
|
|
3501
4325
|
name: TextLivechatEventNames.ChatRated;
|
|
4326
|
+
rating?: "good" | "bad" | undefined;
|
|
3502
4327
|
}>, z.ZodObject<{
|
|
3503
4328
|
name: z.ZodLiteral<TextLivechatEventNames.ChatCommented>;
|
|
3504
4329
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3530,7 +4355,6 @@ declare const integrationEventsZods: {
|
|
|
3530
4355
|
}, {
|
|
3531
4356
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3532
4357
|
}>]>;
|
|
3533
|
-
callback: z.ZodString;
|
|
3534
4358
|
}, "strip", z.ZodTypeAny, {
|
|
3535
4359
|
event: {
|
|
3536
4360
|
name: TextLivechatEventNames.ChatStarted;
|
|
@@ -3544,6 +4368,7 @@ declare const integrationEventsZods: {
|
|
|
3544
4368
|
tag?: string | undefined;
|
|
3545
4369
|
} | {
|
|
3546
4370
|
name: TextLivechatEventNames.ChatRated;
|
|
4371
|
+
rating?: "good" | "bad" | undefined;
|
|
3547
4372
|
} | {
|
|
3548
4373
|
name: TextLivechatEventNames.ChatCommented;
|
|
3549
4374
|
} | {
|
|
@@ -3555,7 +4380,6 @@ declare const integrationEventsZods: {
|
|
|
3555
4380
|
} | {
|
|
3556
4381
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3557
4382
|
};
|
|
3558
|
-
callback: string;
|
|
3559
4383
|
provider: "text-livechat";
|
|
3560
4384
|
}, {
|
|
3561
4385
|
event: {
|
|
@@ -3570,6 +4394,7 @@ declare const integrationEventsZods: {
|
|
|
3570
4394
|
tag?: string | undefined;
|
|
3571
4395
|
} | {
|
|
3572
4396
|
name: TextLivechatEventNames.ChatRated;
|
|
4397
|
+
rating?: "good" | "bad" | undefined;
|
|
3573
4398
|
} | {
|
|
3574
4399
|
name: TextLivechatEventNames.ChatCommented;
|
|
3575
4400
|
} | {
|
|
@@ -3581,7 +4406,6 @@ declare const integrationEventsZods: {
|
|
|
3581
4406
|
} | {
|
|
3582
4407
|
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
3583
4408
|
};
|
|
3584
|
-
callback: string;
|
|
3585
4409
|
provider: "text-livechat";
|
|
3586
4410
|
}>, z.ZodObject<{
|
|
3587
4411
|
provider: z.ZodLiteral<"shopify">;
|
|
@@ -3592,54 +4416,55 @@ declare const integrationEventsZods: {
|
|
|
3592
4416
|
}, {
|
|
3593
4417
|
name: ShopifyEventNames;
|
|
3594
4418
|
}>]>;
|
|
3595
|
-
callback: z.ZodString;
|
|
3596
4419
|
}, "strip", z.ZodTypeAny, {
|
|
3597
4420
|
event: {
|
|
3598
4421
|
name: ShopifyEventNames;
|
|
3599
4422
|
};
|
|
3600
|
-
callback: string;
|
|
3601
4423
|
provider: "shopify";
|
|
3602
4424
|
}, {
|
|
3603
4425
|
event: {
|
|
3604
4426
|
name: ShopifyEventNames;
|
|
3605
4427
|
};
|
|
3606
|
-
callback: string;
|
|
3607
4428
|
provider: "shopify";
|
|
3608
4429
|
}>, z.ZodObject<{
|
|
3609
4430
|
provider: z.ZodLiteral<"mailchimp">;
|
|
3610
4431
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
4432
|
+
listId: z.ZodString;
|
|
3611
4433
|
name: z.ZodLiteral<MailchimpEventNames.Subscribed>;
|
|
3612
4434
|
}, "strip", z.ZodTypeAny, {
|
|
3613
4435
|
name: MailchimpEventNames.Subscribed;
|
|
4436
|
+
listId: string;
|
|
3614
4437
|
}, {
|
|
3615
4438
|
name: MailchimpEventNames.Subscribed;
|
|
4439
|
+
listId: string;
|
|
3616
4440
|
}>, z.ZodObject<{
|
|
4441
|
+
listId: z.ZodString;
|
|
3617
4442
|
name: z.ZodLiteral<MailchimpEventNames.Unsubscribed>;
|
|
3618
4443
|
}, "strip", z.ZodTypeAny, {
|
|
3619
4444
|
name: MailchimpEventNames.Unsubscribed;
|
|
4445
|
+
listId: string;
|
|
3620
4446
|
}, {
|
|
3621
4447
|
name: MailchimpEventNames.Unsubscribed;
|
|
4448
|
+
listId: string;
|
|
3622
4449
|
}>]>;
|
|
3623
|
-
callback: z.ZodString;
|
|
3624
|
-
listId: z.ZodString;
|
|
3625
4450
|
}, "strip", z.ZodTypeAny, {
|
|
3626
4451
|
event: {
|
|
3627
4452
|
name: MailchimpEventNames.Subscribed;
|
|
4453
|
+
listId: string;
|
|
3628
4454
|
} | {
|
|
3629
4455
|
name: MailchimpEventNames.Unsubscribed;
|
|
4456
|
+
listId: string;
|
|
3630
4457
|
};
|
|
3631
|
-
callback: string;
|
|
3632
4458
|
provider: "mailchimp";
|
|
3633
|
-
listId: string;
|
|
3634
4459
|
}, {
|
|
3635
4460
|
event: {
|
|
3636
4461
|
name: MailchimpEventNames.Subscribed;
|
|
4462
|
+
listId: string;
|
|
3637
4463
|
} | {
|
|
3638
4464
|
name: MailchimpEventNames.Unsubscribed;
|
|
4465
|
+
listId: string;
|
|
3639
4466
|
};
|
|
3640
|
-
callback: string;
|
|
3641
4467
|
provider: "mailchimp";
|
|
3642
|
-
listId: string;
|
|
3643
4468
|
}>, z.ZodObject<{
|
|
3644
4469
|
provider: z.ZodLiteral<"hubspot">;
|
|
3645
4470
|
event: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
@@ -3655,14 +4480,12 @@ declare const integrationEventsZods: {
|
|
|
3655
4480
|
}, {
|
|
3656
4481
|
name: HubspotEventNames.ContactDeleted;
|
|
3657
4482
|
}>]>;
|
|
3658
|
-
callback: z.ZodString;
|
|
3659
4483
|
}, "strip", z.ZodTypeAny, {
|
|
3660
4484
|
event: {
|
|
3661
4485
|
name: HubspotEventNames.ContactCreated;
|
|
3662
4486
|
} | {
|
|
3663
4487
|
name: HubspotEventNames.ContactDeleted;
|
|
3664
4488
|
};
|
|
3665
|
-
callback: string;
|
|
3666
4489
|
provider: "hubspot";
|
|
3667
4490
|
}, {
|
|
3668
4491
|
event: {
|
|
@@ -3670,7 +4493,6 @@ declare const integrationEventsZods: {
|
|
|
3670
4493
|
} | {
|
|
3671
4494
|
name: HubspotEventNames.ContactDeleted;
|
|
3672
4495
|
};
|
|
3673
|
-
callback: string;
|
|
3674
4496
|
provider: "hubspot";
|
|
3675
4497
|
}>, z.ZodObject<{
|
|
3676
4498
|
provider: z.ZodLiteral<"bigcommerce">;
|
|
@@ -3711,7 +4533,6 @@ declare const integrationEventsZods: {
|
|
|
3711
4533
|
}, {
|
|
3712
4534
|
name: BigCommerceEventNames.ProductUpdated;
|
|
3713
4535
|
}>]>;
|
|
3714
|
-
callback: z.ZodString;
|
|
3715
4536
|
}, "strip", z.ZodTypeAny, {
|
|
3716
4537
|
event: {
|
|
3717
4538
|
name: BigCommerceEventNames.CartCreated;
|
|
@@ -3726,7 +4547,6 @@ declare const integrationEventsZods: {
|
|
|
3726
4547
|
} | {
|
|
3727
4548
|
name: BigCommerceEventNames.ProductUpdated;
|
|
3728
4549
|
};
|
|
3729
|
-
callback: string;
|
|
3730
4550
|
provider: "bigcommerce";
|
|
3731
4551
|
}, {
|
|
3732
4552
|
event: {
|
|
@@ -3742,65 +4562,6 @@ declare const integrationEventsZods: {
|
|
|
3742
4562
|
} | {
|
|
3743
4563
|
name: BigCommerceEventNames.ProductUpdated;
|
|
3744
4564
|
};
|
|
3745
|
-
callback: string;
|
|
3746
|
-
provider: "bigcommerce";
|
|
3747
|
-
}>]>>;
|
|
3748
|
-
readonly unsubscribe: z.ZodIntersection<z.ZodObject<{
|
|
3749
|
-
sourceName: z.ZodEnum<["apps", "workflows"]>;
|
|
3750
|
-
sourceKey: z.ZodString;
|
|
3751
|
-
}, "strip", z.ZodTypeAny, {
|
|
3752
|
-
sourceName: "apps" | "workflows";
|
|
3753
|
-
sourceKey: string;
|
|
3754
|
-
}, {
|
|
3755
|
-
sourceName: "apps" | "workflows";
|
|
3756
|
-
sourceKey: string;
|
|
3757
|
-
}>, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
3758
|
-
provider: z.ZodLiteral<"text-livechat">;
|
|
3759
|
-
event: z.ZodNativeEnum<typeof TextLivechatEventNames>;
|
|
3760
|
-
}, "strip", z.ZodTypeAny, {
|
|
3761
|
-
event: TextLivechatEventNames;
|
|
3762
|
-
provider: "text-livechat";
|
|
3763
|
-
}, {
|
|
3764
|
-
event: TextLivechatEventNames;
|
|
3765
|
-
provider: "text-livechat";
|
|
3766
|
-
}>, z.ZodObject<{
|
|
3767
|
-
provider: z.ZodLiteral<"shopify">;
|
|
3768
|
-
event: z.ZodNativeEnum<typeof ShopifyEventNames>;
|
|
3769
|
-
}, "strip", z.ZodTypeAny, {
|
|
3770
|
-
event: ShopifyEventNames;
|
|
3771
|
-
provider: "shopify";
|
|
3772
|
-
}, {
|
|
3773
|
-
event: ShopifyEventNames;
|
|
3774
|
-
provider: "shopify";
|
|
3775
|
-
}>, z.ZodObject<{
|
|
3776
|
-
provider: z.ZodLiteral<"mailchimp">;
|
|
3777
|
-
event: z.ZodNativeEnum<typeof MailchimpEventNames>;
|
|
3778
|
-
listId: z.ZodString;
|
|
3779
|
-
}, "strip", z.ZodTypeAny, {
|
|
3780
|
-
event: MailchimpEventNames;
|
|
3781
|
-
provider: "mailchimp";
|
|
3782
|
-
listId: string;
|
|
3783
|
-
}, {
|
|
3784
|
-
event: MailchimpEventNames;
|
|
3785
|
-
provider: "mailchimp";
|
|
3786
|
-
listId: string;
|
|
3787
|
-
}>, z.ZodObject<{
|
|
3788
|
-
provider: z.ZodLiteral<"hubspot">;
|
|
3789
|
-
event: z.ZodNativeEnum<typeof HubspotEventNames>;
|
|
3790
|
-
}, "strip", z.ZodTypeAny, {
|
|
3791
|
-
event: HubspotEventNames;
|
|
3792
|
-
provider: "hubspot";
|
|
3793
|
-
}, {
|
|
3794
|
-
event: HubspotEventNames;
|
|
3795
|
-
provider: "hubspot";
|
|
3796
|
-
}>, z.ZodObject<{
|
|
3797
|
-
provider: z.ZodLiteral<"bigcommerce">;
|
|
3798
|
-
event: z.ZodNativeEnum<typeof BigCommerceEventNames>;
|
|
3799
|
-
}, "strip", z.ZodTypeAny, {
|
|
3800
|
-
event: BigCommerceEventNames;
|
|
3801
|
-
provider: "bigcommerce";
|
|
3802
|
-
}, {
|
|
3803
|
-
event: BigCommerceEventNames;
|
|
3804
4565
|
provider: "bigcommerce";
|
|
3805
4566
|
}>]>>;
|
|
3806
4567
|
};
|
|
@@ -4925,7 +5686,7 @@ interface LivechatWebhookSystemMessageEvent {
|
|
|
4925
5686
|
text: string;
|
|
4926
5687
|
system_message_type: LivechatWebhookSystemMessages;
|
|
4927
5688
|
visibility: "all" | "agents";
|
|
4928
|
-
text_vars: Record<string,
|
|
5689
|
+
text_vars: Record<string, string>;
|
|
4929
5690
|
}
|
|
4930
5691
|
interface LivechatWebhookMessageEvent {
|
|
4931
5692
|
custom_id: string;
|
|
@@ -5229,18 +5990,24 @@ declare const api: {
|
|
|
5229
5990
|
} & {
|
|
5230
5991
|
event: {
|
|
5231
5992
|
name: MailchimpEventNames.Subscribed;
|
|
5993
|
+
listId: string;
|
|
5232
5994
|
} | {
|
|
5233
5995
|
name: MailchimpEventNames.Unsubscribed;
|
|
5996
|
+
listId: string;
|
|
5234
5997
|
};
|
|
5235
5998
|
callback: string;
|
|
5236
|
-
listId: string;
|
|
5237
5999
|
}, authorization?: MailchimpClientAuthorization | undefined): Promise<void>;
|
|
5238
6000
|
unsubscribe(payload: {
|
|
5239
6001
|
sourceName: "apps" | "workflows";
|
|
5240
6002
|
sourceKey: string;
|
|
5241
6003
|
} & {
|
|
5242
|
-
event:
|
|
5243
|
-
|
|
6004
|
+
event: {
|
|
6005
|
+
name: MailchimpEventNames.Subscribed;
|
|
6006
|
+
listId: string;
|
|
6007
|
+
} | {
|
|
6008
|
+
name: MailchimpEventNames.Unsubscribed;
|
|
6009
|
+
listId: string;
|
|
6010
|
+
};
|
|
5244
6011
|
}, authorization?: MailchimpClientAuthorization | undefined): Promise<void>;
|
|
5245
6012
|
};
|
|
5246
6013
|
};
|
|
@@ -5259,7 +6026,9 @@ declare const api: {
|
|
|
5259
6026
|
sourceName: "apps" | "workflows";
|
|
5260
6027
|
sourceKey: string;
|
|
5261
6028
|
} & {
|
|
5262
|
-
event:
|
|
6029
|
+
event: {
|
|
6030
|
+
name: ShopifyEventNames;
|
|
6031
|
+
};
|
|
5263
6032
|
}, authorization?: ShopifyClientAuthorization | undefined): Promise<void>;
|
|
5264
6033
|
};
|
|
5265
6034
|
};
|
|
@@ -5280,7 +6049,11 @@ declare const api: {
|
|
|
5280
6049
|
sourceName: "apps" | "workflows";
|
|
5281
6050
|
sourceKey: string;
|
|
5282
6051
|
} & {
|
|
5283
|
-
event:
|
|
6052
|
+
event: {
|
|
6053
|
+
name: HubspotEventNames.ContactCreated;
|
|
6054
|
+
} | {
|
|
6055
|
+
name: HubspotEventNames.ContactDeleted;
|
|
6056
|
+
};
|
|
5284
6057
|
}, authorization?: HubspotClientAuthorization | undefined): Promise<void>;
|
|
5285
6058
|
};
|
|
5286
6059
|
};
|
|
@@ -5309,7 +6082,19 @@ declare const api: {
|
|
|
5309
6082
|
sourceName: "apps" | "workflows";
|
|
5310
6083
|
sourceKey: string;
|
|
5311
6084
|
} & {
|
|
5312
|
-
event:
|
|
6085
|
+
event: {
|
|
6086
|
+
name: BigCommerceEventNames.CartCreated;
|
|
6087
|
+
} | {
|
|
6088
|
+
name: BigCommerceEventNames.CartUpdated;
|
|
6089
|
+
} | {
|
|
6090
|
+
name: BigCommerceEventNames.OrderCreated;
|
|
6091
|
+
} | {
|
|
6092
|
+
name: BigCommerceEventNames.OrderUpdated;
|
|
6093
|
+
} | {
|
|
6094
|
+
name: BigCommerceEventNames.ProductCreated;
|
|
6095
|
+
} | {
|
|
6096
|
+
name: BigCommerceEventNames.ProductUpdated;
|
|
6097
|
+
};
|
|
5313
6098
|
}, authorization?: BigCommerceClientAuthorization | undefined): Promise<void>;
|
|
5314
6099
|
};
|
|
5315
6100
|
};
|
|
@@ -5331,6 +6116,7 @@ declare const api: {
|
|
|
5331
6116
|
tag?: string | undefined;
|
|
5332
6117
|
} | {
|
|
5333
6118
|
name: TextLivechatEventNames.ChatRated;
|
|
6119
|
+
rating?: "good" | "bad" | undefined;
|
|
5334
6120
|
} | {
|
|
5335
6121
|
name: TextLivechatEventNames.ChatCommented;
|
|
5336
6122
|
} | {
|
|
@@ -5348,7 +6134,30 @@ declare const api: {
|
|
|
5348
6134
|
sourceName: "apps" | "workflows";
|
|
5349
6135
|
sourceKey: string;
|
|
5350
6136
|
} & {
|
|
5351
|
-
event:
|
|
6137
|
+
event: {
|
|
6138
|
+
name: TextLivechatEventNames.ChatStarted;
|
|
6139
|
+
} | {
|
|
6140
|
+
name: TextLivechatEventNames.ChatEnded;
|
|
6141
|
+
} | {
|
|
6142
|
+
name: TextLivechatEventNames.ChatTransferred;
|
|
6143
|
+
} | {
|
|
6144
|
+
name: TextLivechatEventNames.ChatTagged;
|
|
6145
|
+
exact?: boolean | undefined;
|
|
6146
|
+
tag?: string | undefined;
|
|
6147
|
+
} | {
|
|
6148
|
+
name: TextLivechatEventNames.ChatRated;
|
|
6149
|
+
rating?: "good" | "bad" | undefined;
|
|
6150
|
+
} | {
|
|
6151
|
+
name: TextLivechatEventNames.ChatCommented;
|
|
6152
|
+
} | {
|
|
6153
|
+
name: TextLivechatEventNames.ChatMessage;
|
|
6154
|
+
filter?: string | undefined;
|
|
6155
|
+
} | {
|
|
6156
|
+
name: TextLivechatEventNames.UserAddedToChat;
|
|
6157
|
+
userType?: "agent" | "customer" | undefined;
|
|
6158
|
+
} | {
|
|
6159
|
+
name: TextLivechatEventNames.UserRemovedFromChat;
|
|
6160
|
+
};
|
|
5352
6161
|
}, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
|
|
5353
6162
|
};
|
|
5354
6163
|
};
|
|
@@ -5919,17 +6728,13 @@ declare const api: {
|
|
|
5919
6728
|
workflows: {
|
|
5920
6729
|
getWorkflows(authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowsDto[]>;
|
|
5921
6730
|
getWorkflow(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowDto>;
|
|
5922
|
-
createWorkflow(payload: UpsertWorkflowPayload
|
|
5923
|
-
third_party_headers: Record<string, string[]>;
|
|
5924
|
-
}, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
6731
|
+
createWorkflow(payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
5925
6732
|
id: string;
|
|
5926
6733
|
}, any>>;
|
|
5927
|
-
updateWorkflow(workflowId: string, payload: UpsertWorkflowPayload
|
|
5928
|
-
third_party_headers: Record<string, string[]>;
|
|
5929
|
-
}, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
6734
|
+
updateWorkflow(workflowId: string, payload: UpsertWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<{
|
|
5930
6735
|
version: number;
|
|
5931
6736
|
}, any>>;
|
|
5932
|
-
deleteWorkflow(workflowId: string,
|
|
6737
|
+
deleteWorkflow(workflowId: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
|
|
5933
6738
|
toggleWorkflowActivation(workflowId: string, isActive: boolean, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<void, any>>;
|
|
5934
6739
|
executeWorkflow(workflowId: string, input: unknown, authorization?: PlatformClientAuthorization | undefined): Promise<{
|
|
5935
6740
|
execution_id: string;
|