commandbar 1.11.0 → 1.13.0

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.
Files changed (39) hide show
  1. package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +2 -2
  2. package/build/commandbar/src/shared/services/analytics/types.d.ts +2 -2
  3. package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +2 -3
  4. package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +1 -1
  5. package/build/commandbar-js/src/index.d.ts +2 -2
  6. package/build/commandbar-js/src/index.js +1 -1
  7. package/build/commandbar-js/src/snippet.d.ts +1 -2
  8. package/build/internal/src/client/CommandBarClientSDK.d.ts +2 -1
  9. package/build/internal/src/client/CommandBarSDK.d.ts +3 -3
  10. package/build/internal/src/middleware/CommandFromClientV.d.ts +3 -0
  11. package/build/internal/src/middleware/OrganizationV.d.ts +58 -4
  12. package/build/internal/src/middleware/additionalResource.d.ts +36 -9
  13. package/build/internal/src/middleware/api.d.ts +8 -0
  14. package/build/internal/src/middleware/chat.d.ts +439 -76
  15. package/build/internal/src/middleware/checklist.d.ts +48 -10
  16. package/build/internal/src/middleware/command.d.ts +259 -46
  17. package/build/internal/src/middleware/endUser.d.ts +1 -1
  18. package/build/internal/src/middleware/experienceTemplate.d.ts +72 -16
  19. package/build/internal/src/middleware/experiencesSearch.d.ts +77 -14
  20. package/build/internal/src/middleware/flags.d.ts +4 -5
  21. package/build/internal/src/middleware/helpDocsSearch.d.ts +55 -10
  22. package/build/internal/src/middleware/helpHub.d.ts +1 -0
  23. package/build/internal/src/middleware/helpers/actions.d.ts +21 -6
  24. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +14 -2
  25. package/build/internal/src/middleware/helpers/rules.d.ts +2 -0
  26. package/build/internal/src/middleware/keyword.d.ts +82 -0
  27. package/build/internal/src/middleware/network.d.ts +2 -2
  28. package/build/internal/src/middleware/nudge.d.ts +104 -24
  29. package/build/internal/src/middleware/organization.d.ts +161 -16
  30. package/build/internal/src/middleware/organizationSettings.d.ts +100 -8
  31. package/build/internal/src/middleware/recommendationSet.d.ts +36 -9
  32. package/build/internal/src/middleware/theme.d.ts +74 -0
  33. package/build/internal/src/middleware/types.d.ts +10 -2
  34. package/build/internal/src/middleware/workflow.d.ts +16 -0
  35. package/build/internal/src/util/sentry.d.ts +2 -2
  36. package/package.json +4 -2
  37. package/src/index.ts +2 -2
  38. package/src/init.ts +5 -1
  39. package/src/snippet.ts +2 -10
@@ -46,10 +46,13 @@ export declare const ChecklistItemV: t.IntersectionC<[t.TypeC<{
46
46
  value: t.StringC;
47
47
  }>, t.PartialC<{
48
48
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
49
+ meta: t.TypeC<{
50
+ command: t.StringC;
51
+ }>;
49
52
  }>]>, t.TypeC<{
50
53
  type: t.LiteralC<"open_chat">;
51
54
  meta: t.TypeC<{
52
- 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<"">]>;
55
+ 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<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
53
56
  }>;
54
57
  }>, t.TypeC<{
55
58
  type: t.LiteralC<"dismiss">;
@@ -177,10 +180,13 @@ export declare const ChecklistBaseV: t.IntersectionC<[t.TypeC<{
177
180
  value: t.StringC;
178
181
  }>, t.PartialC<{
179
182
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
183
+ meta: t.TypeC<{
184
+ command: t.StringC;
185
+ }>;
180
186
  }>]>, t.TypeC<{
181
187
  type: t.LiteralC<"open_chat">;
182
188
  meta: t.TypeC<{
183
- 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<"">]>;
189
+ 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<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
184
190
  }>;
185
191
  }>, t.TypeC<{
186
192
  type: t.LiteralC<"dismiss">;
@@ -326,10 +332,13 @@ export declare const ChecklistV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
326
332
  value: t.StringC;
327
333
  }>, t.PartialC<{
328
334
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
335
+ meta: t.TypeC<{
336
+ command: t.StringC;
337
+ }>;
329
338
  }>]>, t.TypeC<{
330
339
  type: t.LiteralC<"open_chat">;
331
340
  meta: t.TypeC<{
332
- 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<"">]>;
341
+ 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<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
333
342
  }>;
334
343
  }>, t.TypeC<{
335
344
  type: t.LiteralC<"dismiss">;
@@ -393,6 +402,7 @@ export declare const ChecklistV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
393
402
  copilot_cta_label: t.StringC;
394
403
  copilot_description: t.StringC;
395
404
  editor_tags: t.ArrayC<t.StringC>;
405
+ custom_theme: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
396
406
  }>]>;
397
407
  export declare class Checklist {
398
408
  static decode: (data: any) => {
@@ -488,10 +498,13 @@ export declare class Checklist {
488
498
  value: string;
489
499
  } & {
490
500
  operation?: "self" | "router" | "blank" | undefined;
501
+ meta?: {
502
+ command: string;
503
+ } | undefined;
491
504
  }) | {
492
505
  type: "open_chat";
493
506
  meta: {
494
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
507
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
495
508
  };
496
509
  } | {
497
510
  type: "dismiss";
@@ -557,6 +570,7 @@ export declare class Checklist {
557
570
  copilot_cta_label: string;
558
571
  copilot_description: string;
559
572
  editor_tags: string[];
573
+ custom_theme: string | null | undefined;
560
574
  };
561
575
  static create: (object: {
562
576
  id: number;
@@ -651,10 +665,13 @@ export declare class Checklist {
651
665
  value: string;
652
666
  } & {
653
667
  operation?: "self" | "router" | "blank" | undefined;
668
+ meta?: {
669
+ command: string;
670
+ } | undefined;
654
671
  }) | {
655
672
  type: "open_chat";
656
673
  meta: {
657
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
674
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
658
675
  };
659
676
  } | {
660
677
  type: "dismiss";
@@ -720,6 +737,7 @@ export declare class Checklist {
720
737
  copilot_cta_label: string;
721
738
  copilot_description: string;
722
739
  editor_tags: string[];
740
+ custom_theme: string | null | undefined;
723
741
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
724
742
  id: number;
725
743
  title: string;
@@ -813,10 +831,13 @@ export declare class Checklist {
813
831
  value: string;
814
832
  } & {
815
833
  operation?: "self" | "router" | "blank" | undefined;
834
+ meta?: {
835
+ command: string;
836
+ } | undefined;
816
837
  }) | {
817
838
  type: "open_chat";
818
839
  meta: {
819
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
840
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
820
841
  };
821
842
  } | {
822
843
  type: "dismiss";
@@ -882,6 +903,7 @@ export declare class Checklist {
882
903
  copilot_cta_label: string;
883
904
  copilot_description: string;
884
905
  editor_tags: string[];
906
+ custom_theme: string | null | undefined;
885
907
  }>;
886
908
  static update: (object: {
887
909
  id: number;
@@ -976,10 +998,13 @@ export declare class Checklist {
976
998
  value: string;
977
999
  } & {
978
1000
  operation?: "self" | "router" | "blank" | undefined;
1001
+ meta?: {
1002
+ command: string;
1003
+ } | undefined;
979
1004
  }) | {
980
1005
  type: "open_chat";
981
1006
  meta: {
982
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1007
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
983
1008
  };
984
1009
  } | {
985
1010
  type: "dismiss";
@@ -1045,6 +1070,7 @@ export declare class Checklist {
1045
1070
  copilot_cta_label: string;
1046
1071
  copilot_description: string;
1047
1072
  editor_tags: string[];
1073
+ custom_theme: string | null | undefined;
1048
1074
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
1049
1075
  id: number;
1050
1076
  title: string;
@@ -1138,10 +1164,13 @@ export declare class Checklist {
1138
1164
  value: string;
1139
1165
  } & {
1140
1166
  operation?: "self" | "router" | "blank" | undefined;
1167
+ meta?: {
1168
+ command: string;
1169
+ } | undefined;
1141
1170
  }) | {
1142
1171
  type: "open_chat";
1143
1172
  meta: {
1144
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1173
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
1145
1174
  };
1146
1175
  } | {
1147
1176
  type: "dismiss";
@@ -1207,6 +1236,7 @@ export declare class Checklist {
1207
1236
  copilot_cta_label: string;
1208
1237
  copilot_description: string;
1209
1238
  editor_tags: string[];
1239
+ custom_theme: string | null | undefined;
1210
1240
  }>;
1211
1241
  static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
1212
1242
  static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
@@ -1302,10 +1332,13 @@ export declare class Checklist {
1302
1332
  value: string;
1303
1333
  } & {
1304
1334
  operation?: "self" | "router" | "blank" | undefined;
1335
+ meta?: {
1336
+ command: string;
1337
+ } | undefined;
1305
1338
  }) | {
1306
1339
  type: "open_chat";
1307
1340
  meta: {
1308
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1341
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
1309
1342
  };
1310
1343
  } | {
1311
1344
  type: "dismiss";
@@ -1371,6 +1404,7 @@ export declare class Checklist {
1371
1404
  copilot_cta_label: string;
1372
1405
  copilot_description: string;
1373
1406
  editor_tags: string[];
1407
+ custom_theme: string | null | undefined;
1374
1408
  })[]>;
1375
1409
  static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
1376
1410
  onSuccess?: (() => void) | undefined;
@@ -1468,10 +1502,13 @@ export declare class Checklist {
1468
1502
  value: string;
1469
1503
  } & {
1470
1504
  operation?: "self" | "router" | "blank" | undefined;
1505
+ meta?: {
1506
+ command: string;
1507
+ } | undefined;
1471
1508
  }) | {
1472
1509
  type: "open_chat";
1473
1510
  meta: {
1474
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
1511
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
1475
1512
  };
1476
1513
  } | {
1477
1514
  type: "dismiss";
@@ -1537,5 +1574,6 @@ export declare class Checklist {
1537
1574
  copilot_cta_label: string;
1538
1575
  copilot_description: string;
1539
1576
  editor_tags: string[];
1577
+ custom_theme: string | null | undefined;
1540
1578
  }>;
1541
1579
  }