commandbar 1.10.2 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +9 -4
  2. package/build/commandbar/src/shared/services/analytics/event-queue.d.ts +13 -0
  3. package/build/commandbar/src/shared/services/analytics/types.d.ts +3 -3
  4. package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +54 -0
  5. package/build/commandbar/src/shared/services/analytics/v2/helpers.d.ts +6 -0
  6. package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +152 -0
  7. package/build/commandbar/src/shared/services/analytics/v2/types.d.ts +4 -0
  8. package/build/commandbar-js/src/index.d.ts +2 -3
  9. package/build/commandbar-js/src/index.js +1 -1
  10. package/build/commandbar-js/src/snippet.d.ts +7 -1
  11. package/build/internal/src/client/CommandBarClientSDK.d.ts +13 -1
  12. package/build/internal/src/client/CommandBarProxySDK.d.ts +1 -4
  13. package/build/internal/src/client/CommandBarSDK.d.ts +7 -5
  14. package/build/internal/src/client/SDKConfig.d.ts +3 -1
  15. package/build/internal/src/client/globals.d.ts +1 -0
  16. package/build/internal/src/client/symbols.d.ts +3 -1
  17. package/build/internal/src/middleware/CommandFromClientV.d.ts +16 -2
  18. package/build/internal/src/middleware/OrganizationV.d.ts +44 -8
  19. package/build/internal/src/middleware/additionalResource.d.ts +9 -9
  20. package/build/internal/src/middleware/api.d.ts +181 -0
  21. package/build/internal/src/middleware/billing.d.ts +10 -0
  22. package/build/internal/src/middleware/chat.d.ts +3662 -172
  23. package/build/internal/src/middleware/checklist.d.ts +26 -10
  24. package/build/internal/src/middleware/command.d.ts +540 -140
  25. package/build/internal/src/middleware/endUser.d.ts +2 -0
  26. package/build/internal/src/middleware/experienceTemplate.d.ts +2882 -8
  27. package/build/internal/src/middleware/experiencesSearch.d.ts +233 -28
  28. package/build/internal/src/middleware/flags.d.ts +15 -1
  29. package/build/internal/src/middleware/generics.d.ts +1 -0
  30. package/build/internal/src/middleware/helpDocsIntegration.d.ts +98 -0
  31. package/build/internal/src/middleware/helpDocsSearch.d.ts +165 -20
  32. package/build/internal/src/middleware/helpDocsSync.d.ts +4 -0
  33. package/build/internal/src/middleware/helpHub.d.ts +1 -0
  34. package/build/internal/src/middleware/helpers/actions.d.ts +6 -6
  35. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +2 -2
  36. package/build/internal/src/middleware/helpers/rules.d.ts +9 -7
  37. package/build/internal/src/middleware/localizedMessage.d.ts +50 -0
  38. package/build/internal/src/middleware/network.d.ts +1 -0
  39. package/build/internal/src/middleware/nudge.d.ts +104 -24
  40. package/build/internal/src/middleware/organization.d.ts +201 -62
  41. package/build/internal/src/middleware/organizationSettings.d.ts +12 -8
  42. package/build/internal/src/middleware/profile.d.ts +8 -0
  43. package/build/internal/src/middleware/recommendationSet.d.ts +18 -9
  44. package/build/internal/src/middleware/theme.d.ts +81 -0
  45. package/build/internal/src/middleware/types.d.ts +27 -6
  46. package/build/internal/src/middleware/user.d.ts +9 -1
  47. package/build/internal/src/middleware/workflow.d.ts +85 -0
  48. package/build/internal/src/util/sentry.d.ts +2 -2
  49. package/package.json +8 -3
  50. package/src/index.ts +2 -3
  51. package/src/init.ts +32 -14
  52. package/src/snippet.ts +84 -74
  53. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  54. package/build/internal/src/middleware/guide.d.ts +0 -37
@@ -75,7 +75,7 @@ export declare const NudgeButtonActionV: t.UnionC<[t.TypeC<{
75
75
  }>]>, t.TypeC<{
76
76
  type: t.LiteralC<"open_chat">;
77
77
  meta: t.TypeC<{
78
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
78
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
79
79
  }>;
80
80
  }>, t.TypeC<{
81
81
  type: t.LiteralC<"dismiss">;
@@ -128,7 +128,7 @@ export declare const NudgeConditionalActionV: t.TypeC<{
128
128
  }>]>, t.TypeC<{
129
129
  type: t.LiteralC<"open_chat">;
130
130
  meta: t.TypeC<{
131
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
131
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
132
132
  }>;
133
133
  }>, t.TypeC<{
134
134
  type: t.LiteralC<"dismiss">;
@@ -184,7 +184,7 @@ export declare const NudgeContentButtonBlockV: t.TypeC<{
184
184
  }>]>, t.TypeC<{
185
185
  type: t.LiteralC<"open_chat">;
186
186
  meta: t.TypeC<{
187
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
187
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
188
188
  }>;
189
189
  }>, t.TypeC<{
190
190
  type: t.LiteralC<"dismiss">;
@@ -238,7 +238,7 @@ export declare const NudgeContentButtonBlockV: t.TypeC<{
238
238
  }>]>, t.TypeC<{
239
239
  type: t.LiteralC<"open_chat">;
240
240
  meta: t.TypeC<{
241
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
241
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
242
242
  }>;
243
243
  }>, t.TypeC<{
244
244
  type: t.LiteralC<"dismiss">;
@@ -321,6 +321,11 @@ export declare const NudgeContentSurveyRatingBlockV: t.TypeC<{
321
321
  lower_label: t.StringC;
322
322
  upper_label: t.StringC;
323
323
  options: t.NumberC;
324
+ }>, t.TypeC<{
325
+ type: t.LiteralC<"nps">;
326
+ lower_label: t.StringC;
327
+ upper_label: t.StringC;
328
+ options: t.NumberC;
324
329
  }>]>, t.PartialC<{
325
330
  validation: t.PartialC<{
326
331
  required: t.UnionC<[t.TypeC<{
@@ -391,7 +396,7 @@ export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
391
396
  }>]>, t.TypeC<{
392
397
  type: t.LiteralC<"open_chat">;
393
398
  meta: t.TypeC<{
394
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
399
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
395
400
  }>;
396
401
  }>, t.TypeC<{
397
402
  type: t.LiteralC<"dismiss">;
@@ -445,7 +450,7 @@ export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
445
450
  }>]>, t.TypeC<{
446
451
  type: t.LiteralC<"open_chat">;
447
452
  meta: t.TypeC<{
448
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
453
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
449
454
  }>;
450
455
  }>, t.TypeC<{
451
456
  type: t.LiteralC<"dismiss">;
@@ -525,6 +530,11 @@ export declare const NudgeContentBlockV: t.UnionC<[t.TypeC<{
525
530
  lower_label: t.StringC;
526
531
  upper_label: t.StringC;
527
532
  options: t.NumberC;
533
+ }>, t.TypeC<{
534
+ type: t.LiteralC<"nps">;
535
+ lower_label: t.StringC;
536
+ upper_label: t.StringC;
537
+ options: t.NumberC;
528
538
  }>]>, t.PartialC<{
529
539
  validation: t.PartialC<{
530
540
  required: t.UnionC<[t.TypeC<{
@@ -616,7 +626,7 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
616
626
  }>]>, t.TypeC<{
617
627
  type: t.LiteralC<"open_chat">;
618
628
  meta: t.TypeC<{
619
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
629
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
620
630
  }>;
621
631
  }>, t.TypeC<{
622
632
  type: t.LiteralC<"dismiss">;
@@ -670,7 +680,7 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
670
680
  }>]>, t.TypeC<{
671
681
  type: t.LiteralC<"open_chat">;
672
682
  meta: t.TypeC<{
673
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
683
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
674
684
  }>;
675
685
  }>, t.TypeC<{
676
686
  type: t.LiteralC<"dismiss">;
@@ -750,6 +760,11 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
750
760
  lower_label: t.StringC;
751
761
  upper_label: t.StringC;
752
762
  options: t.NumberC;
763
+ }>, t.TypeC<{
764
+ type: t.LiteralC<"nps">;
765
+ lower_label: t.StringC;
766
+ upper_label: t.StringC;
767
+ options: t.NumberC;
753
768
  }>]>, t.PartialC<{
754
769
  validation: t.PartialC<{
755
770
  required: t.UnionC<[t.TypeC<{
@@ -781,6 +796,7 @@ export declare const NudgeStepV: t.IntersectionC<[t.TypeC<{
781
796
  }>]>;
782
797
  }>]>>;
783
798
  is_live: t.BooleanC;
799
+ preview_url: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
784
800
  }>, t.IntersectionC<[t.TypeC<{
785
801
  form_factor: t.UnionC<[t.TypeC<{
786
802
  type: t.LiteralC<"modal">;
@@ -934,7 +950,7 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
934
950
  }>]>, t.TypeC<{
935
951
  type: t.LiteralC<"open_chat">;
936
952
  meta: t.TypeC<{
937
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
953
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
938
954
  }>;
939
955
  }>, t.TypeC<{
940
956
  type: t.LiteralC<"dismiss">;
@@ -988,7 +1004,7 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
988
1004
  }>]>, t.TypeC<{
989
1005
  type: t.LiteralC<"open_chat">;
990
1006
  meta: t.TypeC<{
991
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
1007
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
992
1008
  }>;
993
1009
  }>, t.TypeC<{
994
1010
  type: t.LiteralC<"dismiss">;
@@ -1068,6 +1084,11 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1068
1084
  lower_label: t.StringC;
1069
1085
  upper_label: t.StringC;
1070
1086
  options: t.NumberC;
1087
+ }>, t.TypeC<{
1088
+ type: t.LiteralC<"nps">;
1089
+ lower_label: t.StringC;
1090
+ upper_label: t.StringC;
1091
+ options: t.NumberC;
1071
1092
  }>]>, t.PartialC<{
1072
1093
  validation: t.PartialC<{
1073
1094
  required: t.UnionC<[t.TypeC<{
@@ -1099,6 +1120,7 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1099
1120
  }>]>;
1100
1121
  }>]>>;
1101
1122
  is_live: t.BooleanC;
1123
+ preview_url: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
1102
1124
  }>, t.IntersectionC<[t.TypeC<{
1103
1125
  form_factor: t.UnionC<[t.TypeC<{
1104
1126
  type: t.LiteralC<"modal">;
@@ -1176,6 +1198,8 @@ export declare const NudgeV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
1176
1198
  snooze_label: t.StringC;
1177
1199
  type: t.UnionC<[t.LiteralC<"announcement">, t.LiteralC<"product_tour">, t.LiteralC<"survey">, t.NullC]>;
1178
1200
  editor_tags: t.ArrayC<t.StringC>;
1201
+ preview_url: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
1202
+ custom_theme: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
1179
1203
  }>]>;
1180
1204
  export declare const OldNudgeBaseV: t.IntersectionC<[t.TypeC<{
1181
1205
  id: t.NumberC;
@@ -1422,7 +1446,7 @@ export declare class Nudge {
1422
1446
  }) | {
1423
1447
  type: "open_chat";
1424
1448
  meta: {
1425
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
1449
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1426
1450
  };
1427
1451
  } | {
1428
1452
  type: "dismiss";
@@ -1476,7 +1500,7 @@ export declare class Nudge {
1476
1500
  }) | {
1477
1501
  type: "open_chat";
1478
1502
  meta: {
1479
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
1503
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1480
1504
  };
1481
1505
  } | {
1482
1506
  type: "dismiss";
@@ -1556,6 +1580,11 @@ export declare class Nudge {
1556
1580
  lower_label: string;
1557
1581
  upper_label: string;
1558
1582
  options: number;
1583
+ } | {
1584
+ type: "nps";
1585
+ lower_label: string;
1586
+ upper_label: string;
1587
+ options: number;
1559
1588
  }) & {
1560
1589
  validation?: {
1561
1590
  required?: {
@@ -1587,6 +1616,7 @@ export declare class Nudge {
1587
1616
  };
1588
1617
  })[];
1589
1618
  is_live: boolean;
1619
+ preview_url: string | null | undefined;
1590
1620
  } & {
1591
1621
  form_factor: {
1592
1622
  type: "modal";
@@ -1664,6 +1694,8 @@ export declare class Nudge {
1664
1694
  snooze_label: string;
1665
1695
  type: "announcement" | "product_tour" | "survey" | null;
1666
1696
  editor_tags: string[];
1697
+ preview_url: string | null | undefined;
1698
+ custom_theme: string | null | undefined;
1667
1699
  };
1668
1700
  static create: (object: {
1669
1701
  slug: string;
@@ -1776,7 +1808,7 @@ export declare class Nudge {
1776
1808
  }) | {
1777
1809
  type: "open_chat";
1778
1810
  meta: {
1779
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
1811
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1780
1812
  };
1781
1813
  } | {
1782
1814
  type: "dismiss";
@@ -1830,7 +1862,7 @@ export declare class Nudge {
1830
1862
  }) | {
1831
1863
  type: "open_chat";
1832
1864
  meta: {
1833
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
1865
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1834
1866
  };
1835
1867
  } | {
1836
1868
  type: "dismiss";
@@ -1910,6 +1942,11 @@ export declare class Nudge {
1910
1942
  lower_label: string;
1911
1943
  upper_label: string;
1912
1944
  options: number;
1945
+ } | {
1946
+ type: "nps";
1947
+ lower_label: string;
1948
+ upper_label: string;
1949
+ options: number;
1913
1950
  }) & {
1914
1951
  validation?: {
1915
1952
  required?: {
@@ -1941,6 +1978,7 @@ export declare class Nudge {
1941
1978
  };
1942
1979
  })[];
1943
1980
  is_live: boolean;
1981
+ preview_url: string | null | undefined;
1944
1982
  } & {
1945
1983
  form_factor: {
1946
1984
  type: "modal";
@@ -2018,6 +2056,8 @@ export declare class Nudge {
2018
2056
  snooze_label: string;
2019
2057
  type: "announcement" | "product_tour" | "survey" | null;
2020
2058
  editor_tags: string[];
2059
+ preview_url: string | null | undefined;
2060
+ custom_theme: string | null | undefined;
2021
2061
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
2022
2062
  slug: string;
2023
2063
  id: string | number;
@@ -2129,7 +2169,7 @@ export declare class Nudge {
2129
2169
  }) | {
2130
2170
  type: "open_chat";
2131
2171
  meta: {
2132
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
2172
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
2133
2173
  };
2134
2174
  } | {
2135
2175
  type: "dismiss";
@@ -2183,7 +2223,7 @@ export declare class Nudge {
2183
2223
  }) | {
2184
2224
  type: "open_chat";
2185
2225
  meta: {
2186
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
2226
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
2187
2227
  };
2188
2228
  } | {
2189
2229
  type: "dismiss";
@@ -2263,6 +2303,11 @@ export declare class Nudge {
2263
2303
  lower_label: string;
2264
2304
  upper_label: string;
2265
2305
  options: number;
2306
+ } | {
2307
+ type: "nps";
2308
+ lower_label: string;
2309
+ upper_label: string;
2310
+ options: number;
2266
2311
  }) & {
2267
2312
  validation?: {
2268
2313
  required?: {
@@ -2294,6 +2339,7 @@ export declare class Nudge {
2294
2339
  };
2295
2340
  })[];
2296
2341
  is_live: boolean;
2342
+ preview_url: string | null | undefined;
2297
2343
  } & {
2298
2344
  form_factor: {
2299
2345
  type: "modal";
@@ -2371,6 +2417,8 @@ export declare class Nudge {
2371
2417
  snooze_label: string;
2372
2418
  type: "announcement" | "product_tour" | "survey" | null;
2373
2419
  editor_tags: string[];
2420
+ preview_url: string | null | undefined;
2421
+ custom_theme: string | null | undefined;
2374
2422
  }>;
2375
2423
  static update: (object: {
2376
2424
  slug: string;
@@ -2483,7 +2531,7 @@ export declare class Nudge {
2483
2531
  }) | {
2484
2532
  type: "open_chat";
2485
2533
  meta: {
2486
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
2534
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
2487
2535
  };
2488
2536
  } | {
2489
2537
  type: "dismiss";
@@ -2537,7 +2585,7 @@ export declare class Nudge {
2537
2585
  }) | {
2538
2586
  type: "open_chat";
2539
2587
  meta: {
2540
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
2588
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
2541
2589
  };
2542
2590
  } | {
2543
2591
  type: "dismiss";
@@ -2617,6 +2665,11 @@ export declare class Nudge {
2617
2665
  lower_label: string;
2618
2666
  upper_label: string;
2619
2667
  options: number;
2668
+ } | {
2669
+ type: "nps";
2670
+ lower_label: string;
2671
+ upper_label: string;
2672
+ options: number;
2620
2673
  }) & {
2621
2674
  validation?: {
2622
2675
  required?: {
@@ -2648,6 +2701,7 @@ export declare class Nudge {
2648
2701
  };
2649
2702
  })[];
2650
2703
  is_live: boolean;
2704
+ preview_url: string | null | undefined;
2651
2705
  } & {
2652
2706
  form_factor: {
2653
2707
  type: "modal";
@@ -2725,6 +2779,8 @@ export declare class Nudge {
2725
2779
  snooze_label: string;
2726
2780
  type: "announcement" | "product_tour" | "survey" | null;
2727
2781
  editor_tags: string[];
2782
+ preview_url: string | null | undefined;
2783
+ custom_theme: string | null | undefined;
2728
2784
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
2729
2785
  slug: string;
2730
2786
  id: string | number;
@@ -2836,7 +2892,7 @@ export declare class Nudge {
2836
2892
  }) | {
2837
2893
  type: "open_chat";
2838
2894
  meta: {
2839
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
2895
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
2840
2896
  };
2841
2897
  } | {
2842
2898
  type: "dismiss";
@@ -2890,7 +2946,7 @@ export declare class Nudge {
2890
2946
  }) | {
2891
2947
  type: "open_chat";
2892
2948
  meta: {
2893
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
2949
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
2894
2950
  };
2895
2951
  } | {
2896
2952
  type: "dismiss";
@@ -2970,6 +3026,11 @@ export declare class Nudge {
2970
3026
  lower_label: string;
2971
3027
  upper_label: string;
2972
3028
  options: number;
3029
+ } | {
3030
+ type: "nps";
3031
+ lower_label: string;
3032
+ upper_label: string;
3033
+ options: number;
2973
3034
  }) & {
2974
3035
  validation?: {
2975
3036
  required?: {
@@ -3001,6 +3062,7 @@ export declare class Nudge {
3001
3062
  };
3002
3063
  })[];
3003
3064
  is_live: boolean;
3065
+ preview_url: string | null | undefined;
3004
3066
  } & {
3005
3067
  form_factor: {
3006
3068
  type: "modal";
@@ -3078,6 +3140,8 @@ export declare class Nudge {
3078
3140
  snooze_label: string;
3079
3141
  type: "announcement" | "product_tour" | "survey" | null;
3080
3142
  editor_tags: string[];
3143
+ preview_url: string | null | undefined;
3144
+ custom_theme: string | null | undefined;
3081
3145
  }>;
3082
3146
  static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
3083
3147
  static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
@@ -3191,7 +3255,7 @@ export declare class Nudge {
3191
3255
  }) | {
3192
3256
  type: "open_chat";
3193
3257
  meta: {
3194
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
3258
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
3195
3259
  };
3196
3260
  } | {
3197
3261
  type: "dismiss";
@@ -3245,7 +3309,7 @@ export declare class Nudge {
3245
3309
  }) | {
3246
3310
  type: "open_chat";
3247
3311
  meta: {
3248
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
3312
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
3249
3313
  };
3250
3314
  } | {
3251
3315
  type: "dismiss";
@@ -3325,6 +3389,11 @@ export declare class Nudge {
3325
3389
  lower_label: string;
3326
3390
  upper_label: string;
3327
3391
  options: number;
3392
+ } | {
3393
+ type: "nps";
3394
+ lower_label: string;
3395
+ upper_label: string;
3396
+ options: number;
3328
3397
  }) & {
3329
3398
  validation?: {
3330
3399
  required?: {
@@ -3356,6 +3425,7 @@ export declare class Nudge {
3356
3425
  };
3357
3426
  })[];
3358
3427
  is_live: boolean;
3428
+ preview_url: string | null | undefined;
3359
3429
  } & {
3360
3430
  form_factor: {
3361
3431
  type: "modal";
@@ -3433,6 +3503,8 @@ export declare class Nudge {
3433
3503
  snooze_label: string;
3434
3504
  type: "announcement" | "product_tour" | "survey" | null;
3435
3505
  editor_tags: string[];
3506
+ preview_url: string | null | undefined;
3507
+ custom_theme: string | null | undefined;
3436
3508
  })[]>;
3437
3509
  static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
3438
3510
  onSuccess?: (() => void) | undefined;
@@ -3548,7 +3620,7 @@ export declare class Nudge {
3548
3620
  }) | {
3549
3621
  type: "open_chat";
3550
3622
  meta: {
3551
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
3623
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
3552
3624
  };
3553
3625
  } | {
3554
3626
  type: "dismiss";
@@ -3602,7 +3674,7 @@ export declare class Nudge {
3602
3674
  }) | {
3603
3675
  type: "open_chat";
3604
3676
  meta: {
3605
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
3677
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
3606
3678
  };
3607
3679
  } | {
3608
3680
  type: "dismiss";
@@ -3682,6 +3754,11 @@ export declare class Nudge {
3682
3754
  lower_label: string;
3683
3755
  upper_label: string;
3684
3756
  options: number;
3757
+ } | {
3758
+ type: "nps";
3759
+ lower_label: string;
3760
+ upper_label: string;
3761
+ options: number;
3685
3762
  }) & {
3686
3763
  validation?: {
3687
3764
  required?: {
@@ -3713,6 +3790,7 @@ export declare class Nudge {
3713
3790
  };
3714
3791
  })[];
3715
3792
  is_live: boolean;
3793
+ preview_url: string | null | undefined;
3716
3794
  } & {
3717
3795
  form_factor: {
3718
3796
  type: "modal";
@@ -3790,6 +3868,8 @@ export declare class Nudge {
3790
3868
  snooze_label: string;
3791
3869
  type: "announcement" | "product_tour" | "survey" | null;
3792
3870
  editor_tags: string[];
3871
+ preview_url: string | null | undefined;
3872
+ custom_theme: string | null | undefined;
3793
3873
  }>;
3794
3874
  /**
3795
3875
  * Returns true if the nudge is new (not yet saved to the backend)