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.
- package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +2 -2
- package/build/commandbar/src/shared/services/analytics/types.d.ts +2 -2
- package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +2 -3
- package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +1 -1
- package/build/commandbar-js/src/index.d.ts +2 -2
- package/build/commandbar-js/src/index.js +1 -1
- package/build/commandbar-js/src/snippet.d.ts +1 -2
- package/build/internal/src/client/CommandBarClientSDK.d.ts +2 -1
- package/build/internal/src/client/CommandBarSDK.d.ts +3 -3
- package/build/internal/src/middleware/CommandFromClientV.d.ts +3 -0
- package/build/internal/src/middleware/OrganizationV.d.ts +58 -4
- package/build/internal/src/middleware/additionalResource.d.ts +36 -9
- package/build/internal/src/middleware/api.d.ts +8 -0
- package/build/internal/src/middleware/chat.d.ts +439 -76
- package/build/internal/src/middleware/checklist.d.ts +48 -10
- package/build/internal/src/middleware/command.d.ts +259 -46
- package/build/internal/src/middleware/endUser.d.ts +1 -1
- package/build/internal/src/middleware/experienceTemplate.d.ts +72 -16
- package/build/internal/src/middleware/experiencesSearch.d.ts +77 -14
- package/build/internal/src/middleware/flags.d.ts +4 -5
- package/build/internal/src/middleware/helpDocsSearch.d.ts +55 -10
- package/build/internal/src/middleware/helpHub.d.ts +1 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +21 -6
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +14 -2
- package/build/internal/src/middleware/helpers/rules.d.ts +2 -0
- package/build/internal/src/middleware/keyword.d.ts +82 -0
- package/build/internal/src/middleware/network.d.ts +2 -2
- package/build/internal/src/middleware/nudge.d.ts +104 -24
- package/build/internal/src/middleware/organization.d.ts +161 -16
- package/build/internal/src/middleware/organizationSettings.d.ts +100 -8
- package/build/internal/src/middleware/recommendationSet.d.ts +36 -9
- package/build/internal/src/middleware/theme.d.ts +74 -0
- package/build/internal/src/middleware/types.d.ts +10 -2
- package/build/internal/src/middleware/workflow.d.ts +16 -0
- package/build/internal/src/util/sentry.d.ts +2 -2
- package/package.json +4 -2
- package/src/index.ts +2 -2
- package/src/init.ts +5 -1
- package/src/snippet.ts +2 -10
@@ -42,6 +42,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
42
42
|
helphub_suggested_queries_enabled: t.BooleanC;
|
43
43
|
helphub_continuations_enabled: t.BooleanC;
|
44
44
|
helphub_manual_suggested_queries: t.ArrayC<t.StringC>;
|
45
|
+
helphub_custom_theme: t.UnionC<[t.StringC, t.NullC]>;
|
45
46
|
copilot_name: t.StringC;
|
46
47
|
copilot_avatar: t.StringC;
|
47
48
|
copilot_personality: t.UnionC<[t.TypeC<{
|
@@ -86,10 +87,13 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
86
87
|
value: t.StringC;
|
87
88
|
}>, t.PartialC<{
|
88
89
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
90
|
+
meta: t.TypeC<{
|
91
|
+
command: t.StringC;
|
92
|
+
}>;
|
89
93
|
}>]>, t.TypeC<{
|
90
94
|
type: t.LiteralC<"open_chat">;
|
91
95
|
meta: t.TypeC<{
|
92
|
-
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<"">]>;
|
96
|
+
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<"">]>;
|
93
97
|
}>;
|
94
98
|
}>, t.TypeC<{
|
95
99
|
type: t.LiteralC<"dismiss">;
|
@@ -117,6 +121,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
117
121
|
type: t.LiteralC<"open_copilot">;
|
118
122
|
}>]>;
|
119
123
|
}>>;
|
124
|
+
helphub_search_action: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
|
120
125
|
copilot_negative_feedback_fallback_enabled: t.BooleanC;
|
121
126
|
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>;
|
122
127
|
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{
|
@@ -141,10 +146,13 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
141
146
|
value: t.StringC;
|
142
147
|
}>, t.PartialC<{
|
143
148
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
149
|
+
meta: t.TypeC<{
|
150
|
+
command: t.StringC;
|
151
|
+
}>;
|
144
152
|
}>]>, t.TypeC<{
|
145
153
|
type: t.LiteralC<"open_chat">;
|
146
154
|
meta: t.TypeC<{
|
147
|
-
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<"">]>;
|
155
|
+
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<"">]>;
|
148
156
|
}>;
|
149
157
|
}>, t.TypeC<{
|
150
158
|
type: t.LiteralC<"dismiss">;
|
@@ -178,6 +186,21 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
178
186
|
share_link_param: t.StringC;
|
179
187
|
spotlight_ask_copilot_enabled: t.BooleanC;
|
180
188
|
spotlight_ask_copilot_label: t.UnionC<[t.StringC, t.NullC]>;
|
189
|
+
spotlight_custom_theme: t.UnionC<[t.StringC, t.NullC]>;
|
190
|
+
spotlight_ask_copilot_audience: t.UnionC<[t.UnionC<[t.TypeC<{
|
191
|
+
type: t.LiteralC<"all_users">;
|
192
|
+
}>, t.TypeC<{
|
193
|
+
type: t.LiteralC<"rule_expression">;
|
194
|
+
expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
|
195
|
+
}>, t.TypeC<{
|
196
|
+
type: t.LiteralC<"named_rule_reference">;
|
197
|
+
rule_reference: t.IntersectionC<[t.TypeC<{
|
198
|
+
type: t.LiteralC<"named_rule">;
|
199
|
+
rule_id: t.UnionC<[t.NumberC, t.StringC]>;
|
200
|
+
}>, t.PartialC<{
|
201
|
+
reason: t.StringC;
|
202
|
+
}>]>;
|
203
|
+
}>]>, t.NullC]>;
|
181
204
|
copilot_enabled: t.BooleanC;
|
182
205
|
/** @deprecated Replaced by the `copilot_enabled` field */
|
183
206
|
helphub_ai_enabled: t.BooleanC;
|
@@ -232,6 +255,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
232
255
|
helphub_suggested_queries_enabled: boolean;
|
233
256
|
helphub_continuations_enabled: boolean;
|
234
257
|
helphub_manual_suggested_queries: string[];
|
258
|
+
helphub_custom_theme: string | null;
|
235
259
|
copilot_name: string;
|
236
260
|
copilot_avatar: string;
|
237
261
|
copilot_personality: {
|
@@ -274,10 +298,13 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
274
298
|
value: string;
|
275
299
|
} & {
|
276
300
|
operation?: "self" | "router" | "blank" | undefined;
|
301
|
+
meta?: {
|
302
|
+
command: string;
|
303
|
+
} | undefined;
|
277
304
|
}) | {
|
278
305
|
type: "open_chat";
|
279
306
|
meta: {
|
280
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
307
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
281
308
|
};
|
282
309
|
} | {
|
283
310
|
type: "dismiss";
|
@@ -307,6 +334,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
307
334
|
type: "no_action";
|
308
335
|
};
|
309
336
|
}[];
|
337
|
+
helphub_search_action: "search" | "ask";
|
310
338
|
copilot_negative_feedback_fallback_enabled: boolean;
|
311
339
|
copilot_negative_feedback_fallback_message: string | null;
|
312
340
|
copilot_negative_feedback_fallback_actions: {
|
@@ -329,10 +357,13 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
329
357
|
value: string;
|
330
358
|
} & {
|
331
359
|
operation?: "self" | "router" | "blank" | undefined;
|
360
|
+
meta?: {
|
361
|
+
command: string;
|
362
|
+
} | undefined;
|
332
363
|
}) | {
|
333
364
|
type: "open_chat";
|
334
365
|
meta: {
|
335
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
366
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
336
367
|
};
|
337
368
|
} | {
|
338
369
|
type: "dismiss";
|
@@ -368,6 +399,21 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
368
399
|
share_link_param: string;
|
369
400
|
spotlight_ask_copilot_enabled: boolean;
|
370
401
|
spotlight_ask_copilot_label: string | null;
|
402
|
+
spotlight_custom_theme: string | null;
|
403
|
+
spotlight_ask_copilot_audience: {
|
404
|
+
type: "all_users";
|
405
|
+
} | {
|
406
|
+
type: "rule_expression";
|
407
|
+
expression: import("./helpers/rules").RuleExpression;
|
408
|
+
} | {
|
409
|
+
type: "named_rule_reference";
|
410
|
+
rule_reference: {
|
411
|
+
type: "named_rule";
|
412
|
+
rule_id: string | number;
|
413
|
+
} & {
|
414
|
+
reason?: string | undefined;
|
415
|
+
};
|
416
|
+
} | null;
|
371
417
|
copilot_enabled: boolean;
|
372
418
|
helphub_ai_enabled: boolean;
|
373
419
|
copilot_experiences_enabled: boolean;
|
@@ -416,6 +462,7 @@ export declare const update: (object: {
|
|
416
462
|
helphub_suggested_queries_enabled?: boolean | undefined;
|
417
463
|
helphub_continuations_enabled?: boolean | undefined;
|
418
464
|
helphub_manual_suggested_queries?: string[] | undefined;
|
465
|
+
helphub_custom_theme?: string | null | undefined;
|
419
466
|
copilot_name?: string | undefined;
|
420
467
|
copilot_avatar?: string | undefined;
|
421
468
|
copilot_personality?: {
|
@@ -458,10 +505,13 @@ export declare const update: (object: {
|
|
458
505
|
value: string;
|
459
506
|
} & {
|
460
507
|
operation?: "self" | "router" | "blank" | undefined;
|
508
|
+
meta?: {
|
509
|
+
command: string;
|
510
|
+
} | undefined;
|
461
511
|
}) | {
|
462
512
|
type: "open_chat";
|
463
513
|
meta: {
|
464
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
514
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
465
515
|
};
|
466
516
|
} | {
|
467
517
|
type: "dismiss";
|
@@ -491,6 +541,7 @@ export declare const update: (object: {
|
|
491
541
|
type: "no_action";
|
492
542
|
};
|
493
543
|
}[] | undefined;
|
544
|
+
helphub_search_action?: "search" | "ask" | undefined;
|
494
545
|
copilot_negative_feedback_fallback_enabled?: boolean | undefined;
|
495
546
|
copilot_negative_feedback_fallback_message?: string | null | undefined;
|
496
547
|
copilot_negative_feedback_fallback_actions?: {
|
@@ -513,10 +564,13 @@ export declare const update: (object: {
|
|
513
564
|
value: string;
|
514
565
|
} & {
|
515
566
|
operation?: "self" | "router" | "blank" | undefined;
|
567
|
+
meta?: {
|
568
|
+
command: string;
|
569
|
+
} | undefined;
|
516
570
|
}) | {
|
517
571
|
type: "open_chat";
|
518
572
|
meta: {
|
519
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
573
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
520
574
|
};
|
521
575
|
} | {
|
522
576
|
type: "dismiss";
|
@@ -552,6 +606,21 @@ export declare const update: (object: {
|
|
552
606
|
share_link_param?: string | undefined;
|
553
607
|
spotlight_ask_copilot_enabled?: boolean | undefined;
|
554
608
|
spotlight_ask_copilot_label?: string | null | undefined;
|
609
|
+
spotlight_custom_theme?: string | null | undefined;
|
610
|
+
spotlight_ask_copilot_audience?: {
|
611
|
+
type: "all_users";
|
612
|
+
} | {
|
613
|
+
type: "rule_expression";
|
614
|
+
expression: import("./helpers/rules").RuleExpression;
|
615
|
+
} | {
|
616
|
+
type: "named_rule_reference";
|
617
|
+
rule_reference: {
|
618
|
+
type: "named_rule";
|
619
|
+
rule_id: string | number;
|
620
|
+
} & {
|
621
|
+
reason?: string | undefined;
|
622
|
+
};
|
623
|
+
} | null | undefined;
|
555
624
|
copilot_enabled?: boolean | undefined;
|
556
625
|
helphub_ai_enabled?: boolean | undefined;
|
557
626
|
copilot_experiences_enabled?: boolean | undefined;
|
@@ -602,6 +671,7 @@ export declare const update: (object: {
|
|
602
671
|
helphub_suggested_queries_enabled: boolean;
|
603
672
|
helphub_continuations_enabled: boolean;
|
604
673
|
helphub_manual_suggested_queries: string[];
|
674
|
+
helphub_custom_theme: string | null;
|
605
675
|
copilot_name: string;
|
606
676
|
copilot_avatar: string;
|
607
677
|
copilot_personality: {
|
@@ -644,10 +714,13 @@ export declare const update: (object: {
|
|
644
714
|
value: string;
|
645
715
|
} & {
|
646
716
|
operation?: "self" | "router" | "blank" | undefined;
|
717
|
+
meta?: {
|
718
|
+
command: string;
|
719
|
+
} | undefined;
|
647
720
|
}) | {
|
648
721
|
type: "open_chat";
|
649
722
|
meta: {
|
650
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
723
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
651
724
|
};
|
652
725
|
} | {
|
653
726
|
type: "dismiss";
|
@@ -677,6 +750,7 @@ export declare const update: (object: {
|
|
677
750
|
type: "no_action";
|
678
751
|
};
|
679
752
|
}[];
|
753
|
+
helphub_search_action: "search" | "ask";
|
680
754
|
copilot_negative_feedback_fallback_enabled: boolean;
|
681
755
|
copilot_negative_feedback_fallback_message: string | null;
|
682
756
|
copilot_negative_feedback_fallback_actions: {
|
@@ -699,10 +773,13 @@ export declare const update: (object: {
|
|
699
773
|
value: string;
|
700
774
|
} & {
|
701
775
|
operation?: "self" | "router" | "blank" | undefined;
|
776
|
+
meta?: {
|
777
|
+
command: string;
|
778
|
+
} | undefined;
|
702
779
|
}) | {
|
703
780
|
type: "open_chat";
|
704
781
|
meta: {
|
705
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
782
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
706
783
|
};
|
707
784
|
} | {
|
708
785
|
type: "dismiss";
|
@@ -738,6 +815,21 @@ export declare const update: (object: {
|
|
738
815
|
share_link_param: string;
|
739
816
|
spotlight_ask_copilot_enabled: boolean;
|
740
817
|
spotlight_ask_copilot_label: string | null;
|
818
|
+
spotlight_custom_theme: string | null;
|
819
|
+
spotlight_ask_copilot_audience: {
|
820
|
+
type: "all_users";
|
821
|
+
} | {
|
822
|
+
type: "rule_expression";
|
823
|
+
expression: import("./helpers/rules").RuleExpression;
|
824
|
+
} | {
|
825
|
+
type: "named_rule_reference";
|
826
|
+
rule_reference: {
|
827
|
+
type: "named_rule";
|
828
|
+
rule_id: string | number;
|
829
|
+
} & {
|
830
|
+
reason?: string | undefined;
|
831
|
+
};
|
832
|
+
} | null;
|
741
833
|
copilot_enabled: boolean;
|
742
834
|
helphub_ai_enabled: boolean;
|
743
835
|
copilot_experiences_enabled: boolean;
|
@@ -42,10 +42,13 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
|
|
42
42
|
value: t.StringC;
|
43
43
|
}>, t.PartialC<{
|
44
44
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
45
|
+
meta: t.TypeC<{
|
46
|
+
command: t.StringC;
|
47
|
+
}>;
|
45
48
|
}>]>, t.TypeC<{
|
46
49
|
type: t.LiteralC<"open_chat">;
|
47
50
|
meta: t.TypeC<{
|
48
|
-
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<"">]>;
|
51
|
+
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<"">]>;
|
49
52
|
}>;
|
50
53
|
}>, t.TypeC<{
|
51
54
|
type: t.LiteralC<"dismiss">;
|
@@ -118,10 +121,13 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
|
118
121
|
value: t.StringC;
|
119
122
|
}>, t.PartialC<{
|
120
123
|
operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
|
124
|
+
meta: t.TypeC<{
|
125
|
+
command: t.StringC;
|
126
|
+
}>;
|
121
127
|
}>]>, t.TypeC<{
|
122
128
|
type: t.LiteralC<"open_chat">;
|
123
129
|
meta: t.TypeC<{
|
124
|
-
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<"">]>;
|
130
|
+
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<"">]>;
|
125
131
|
}>;
|
126
132
|
}>, t.TypeC<{
|
127
133
|
type: t.LiteralC<"dismiss">;
|
@@ -193,10 +199,13 @@ export declare class RecommendationSet {
|
|
193
199
|
value: string;
|
194
200
|
} & {
|
195
201
|
operation?: "self" | "router" | "blank" | undefined;
|
202
|
+
meta?: {
|
203
|
+
command: string;
|
204
|
+
} | undefined;
|
196
205
|
}) | {
|
197
206
|
type: "open_chat";
|
198
207
|
meta: {
|
199
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
208
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
200
209
|
};
|
201
210
|
} | {
|
202
211
|
type: "dismiss";
|
@@ -269,10 +278,13 @@ export declare class RecommendationSet {
|
|
269
278
|
value: string;
|
270
279
|
} & {
|
271
280
|
operation?: "self" | "router" | "blank" | undefined;
|
281
|
+
meta?: {
|
282
|
+
command: string;
|
283
|
+
} | undefined;
|
272
284
|
}) | {
|
273
285
|
type: "open_chat";
|
274
286
|
meta: {
|
275
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
287
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
276
288
|
};
|
277
289
|
} | {
|
278
290
|
type: "dismiss";
|
@@ -344,10 +356,13 @@ export declare class RecommendationSet {
|
|
344
356
|
value: string;
|
345
357
|
} & {
|
346
358
|
operation?: "self" | "router" | "blank" | undefined;
|
359
|
+
meta?: {
|
360
|
+
command: string;
|
361
|
+
} | undefined;
|
347
362
|
}) | {
|
348
363
|
type: "open_chat";
|
349
364
|
meta: {
|
350
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
365
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
351
366
|
};
|
352
367
|
} | {
|
353
368
|
type: "dismiss";
|
@@ -420,10 +435,13 @@ export declare class RecommendationSet {
|
|
420
435
|
value: string;
|
421
436
|
} & {
|
422
437
|
operation?: "self" | "router" | "blank" | undefined;
|
438
|
+
meta?: {
|
439
|
+
command: string;
|
440
|
+
} | undefined;
|
423
441
|
}) | {
|
424
442
|
type: "open_chat";
|
425
443
|
meta: {
|
426
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
444
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
427
445
|
};
|
428
446
|
} | {
|
429
447
|
type: "dismiss";
|
@@ -495,10 +513,13 @@ export declare class RecommendationSet {
|
|
495
513
|
value: string;
|
496
514
|
} & {
|
497
515
|
operation?: "self" | "router" | "blank" | undefined;
|
516
|
+
meta?: {
|
517
|
+
command: string;
|
518
|
+
} | undefined;
|
498
519
|
}) | {
|
499
520
|
type: "open_chat";
|
500
521
|
meta: {
|
501
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
522
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
502
523
|
};
|
503
524
|
} | {
|
504
525
|
type: "dismiss";
|
@@ -572,10 +593,13 @@ export declare class RecommendationSet {
|
|
572
593
|
value: string;
|
573
594
|
} & {
|
574
595
|
operation?: "self" | "router" | "blank" | undefined;
|
596
|
+
meta?: {
|
597
|
+
command: string;
|
598
|
+
} | undefined;
|
575
599
|
}) | {
|
576
600
|
type: "open_chat";
|
577
601
|
meta: {
|
578
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
602
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
579
603
|
};
|
580
604
|
} | {
|
581
605
|
type: "dismiss";
|
@@ -651,10 +675,13 @@ export declare class RecommendationSet {
|
|
651
675
|
value: string;
|
652
676
|
} & {
|
653
677
|
operation?: "self" | "router" | "blank" | undefined;
|
678
|
+
meta?: {
|
679
|
+
command: string;
|
680
|
+
} | undefined;
|
654
681
|
}) | {
|
655
682
|
type: "open_chat";
|
656
683
|
meta: {
|
657
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
684
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
|
658
685
|
};
|
659
686
|
} | {
|
660
687
|
type: "dismiss";
|
@@ -21,6 +21,7 @@ export declare const ThemeV2V: t.UnionC<[t.TypeC<{
|
|
21
21
|
}>, t.NullC, t.UndefinedC]>;
|
22
22
|
export declare const ThemeV: t.TypeC<{
|
23
23
|
id: t.StringC;
|
24
|
+
uuid: t.UnionC<[t.StringC, t.NullC, t.UndefinedC]>;
|
24
25
|
slug: t.StringC;
|
25
26
|
name: t.StringC;
|
26
27
|
default: t.BooleanC;
|
@@ -94,6 +95,7 @@ export declare const ThemePatchV: t.PartialC<{
|
|
94
95
|
export declare class Theme {
|
95
96
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
96
97
|
id: string;
|
98
|
+
uuid: string | null | undefined;
|
97
99
|
slug: string;
|
98
100
|
name: string;
|
99
101
|
default: boolean;
|
@@ -165,6 +167,7 @@ export declare class Theme {
|
|
165
167
|
onError?: ((err: string) => void) | undefined;
|
166
168
|
} | undefined) => Promise<{
|
167
169
|
id: string;
|
170
|
+
uuid: string | null | undefined;
|
168
171
|
slug: string;
|
169
172
|
name: string;
|
170
173
|
default: boolean;
|
@@ -233,6 +236,7 @@ export declare class Theme {
|
|
233
236
|
}>;
|
234
237
|
static update: (theme: t.TypeOf<typeof ThemePatchV>) => Promise<{
|
235
238
|
id: string;
|
239
|
+
uuid: string | null | undefined;
|
236
240
|
slug: string;
|
237
241
|
name: string;
|
238
242
|
default: boolean;
|
@@ -368,6 +372,7 @@ export declare class Theme {
|
|
368
372
|
archived?: boolean | undefined;
|
369
373
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
370
374
|
id: string;
|
375
|
+
uuid: string | null | undefined;
|
371
376
|
slug: string;
|
372
377
|
name: string;
|
373
378
|
default: boolean;
|
@@ -435,4 +440,73 @@ export declare class Theme {
|
|
435
440
|
archived: boolean;
|
436
441
|
}>;
|
437
442
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
443
|
+
static decode: (data: any) => {
|
444
|
+
id: string;
|
445
|
+
uuid: string | null | undefined;
|
446
|
+
slug: string;
|
447
|
+
name: string;
|
448
|
+
default: boolean;
|
449
|
+
themeV2: {
|
450
|
+
light_mode: {
|
451
|
+
var_defaults: {
|
452
|
+
[x: string]: string | number;
|
453
|
+
};
|
454
|
+
var_overrides: {
|
455
|
+
[x: string]: string | number;
|
456
|
+
};
|
457
|
+
component_overrides: {
|
458
|
+
[x: string]: any;
|
459
|
+
};
|
460
|
+
mobile_overrides: {
|
461
|
+
[x: string]: any;
|
462
|
+
};
|
463
|
+
};
|
464
|
+
dark_mode: {
|
465
|
+
var_defaults: {
|
466
|
+
[x: string]: string | number;
|
467
|
+
};
|
468
|
+
var_overrides: {
|
469
|
+
[x: string]: string | number;
|
470
|
+
};
|
471
|
+
component_overrides: {
|
472
|
+
[x: string]: any;
|
473
|
+
};
|
474
|
+
mobile_overrides: {
|
475
|
+
[x: string]: any;
|
476
|
+
};
|
477
|
+
};
|
478
|
+
} | null | undefined;
|
479
|
+
themeV2_draft: {
|
480
|
+
light_mode: {
|
481
|
+
var_defaults: {
|
482
|
+
[x: string]: string | number;
|
483
|
+
};
|
484
|
+
var_overrides: {
|
485
|
+
[x: string]: string | number;
|
486
|
+
};
|
487
|
+
component_overrides: {
|
488
|
+
[x: string]: any;
|
489
|
+
};
|
490
|
+
mobile_overrides: {
|
491
|
+
[x: string]: any;
|
492
|
+
};
|
493
|
+
};
|
494
|
+
dark_mode: {
|
495
|
+
var_defaults: {
|
496
|
+
[x: string]: string | number;
|
497
|
+
};
|
498
|
+
var_overrides: {
|
499
|
+
[x: string]: string | number;
|
500
|
+
};
|
501
|
+
component_overrides: {
|
502
|
+
[x: string]: any;
|
503
|
+
};
|
504
|
+
mobile_overrides: {
|
505
|
+
[x: string]: any;
|
506
|
+
};
|
507
|
+
};
|
508
|
+
} | null | undefined;
|
509
|
+
organization: string;
|
510
|
+
archived: boolean;
|
511
|
+
};
|
438
512
|
}
|
@@ -31,10 +31,10 @@ import { AudienceV } from './helpers/audience';
|
|
31
31
|
import { AdditionalResourceV } from './additionalResource';
|
32
32
|
import { RecommendationSetV } from './recommendationSet';
|
33
33
|
import { BillingProfileV, UsageV } from './billing';
|
34
|
-
import { UserMessageV, AIMessageV, AIMessageExtraV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV, ChatV, CopilotSettingsPreviewV, HandoffPayloadV, ExternalChatPayloadV, ExternalChatHistoryV } from './chat';
|
34
|
+
import { UserMessageV, AIMessageV, AIMessageExtraV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV, ChatV, CopilotSettingsPreviewV, HandoffPayloadV, ExternalChatPayloadV, ExternalChatHistoryV, UserAttachmentV } from './chat';
|
35
35
|
import { HelpDocHitV, SearchHelpDocsPayloadV, SearchHelpDocsResponseV } from './helpDocsSearch';
|
36
36
|
import { ExperienceHitV, ExperienceTypeOptions, SearchExperiencesPayloadV, SearchExperiencesResponseV } from './experiencesSearch';
|
37
|
-
import { HelpHubLauncherSettingsV } from './helpHub';
|
37
|
+
import { HelpHubLauncherSettingsV, HelpHubSearchActionsV } from './helpHub';
|
38
38
|
import { EntityChangeV } from './entityChanges';
|
39
39
|
import { Flags } from './flags';
|
40
40
|
import { CopilotPersonalityAdjectiveV, CopilotPersonalityResponseFormatV, CopilotPersonalityResponseLengthV, CopilotPersonalityV } from './helpers/copilotPersonality';
|
@@ -42,6 +42,7 @@ import { ExperienceTemplateV } from './experienceTemplate';
|
|
42
42
|
import { APIV } from './api';
|
43
43
|
import { LocalizedMessagePatchV, LocalizedMessageV, LocalizedMessages } from './localizedMessage';
|
44
44
|
import { WorkflowV } from './workflow';
|
45
|
+
import { KeywordV } from './keyword';
|
45
46
|
/*******************************************************************************/
|
46
47
|
export type IInitOptions = {
|
47
48
|
apiOrigin?: string;
|
@@ -74,6 +75,7 @@ export type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV> & unknown;
|
|
74
75
|
export type IHelpDocsSyncLogMessageType = t.TypeOf<typeof HelpDocSyncLogMessageV> & unknown;
|
75
76
|
export type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV> & unknown;
|
76
77
|
export type IHelpHubLauncherSettingsType = t.TypeOf<typeof HelpHubLauncherSettingsV> & unknown;
|
78
|
+
export type IHelpHubSearchActionsType = t.TypeOf<typeof HelpHubSearchActionsV> & unknown;
|
77
79
|
export type IOrganizationType = t.TypeOf<typeof OrganizationV> & unknown;
|
78
80
|
export type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV> & unknown;
|
79
81
|
export type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown;
|
@@ -150,6 +152,7 @@ export type INudgeClientType = {
|
|
150
152
|
passedConditionsInLastEvaluation: boolean;
|
151
153
|
lastTriggeredTs?: number;
|
152
154
|
};
|
155
|
+
export type IKeyword = t.TypeOf<typeof KeywordV> & unknown;
|
153
156
|
export type IExperienceTemplate = t.TypeOf<typeof ExperienceTemplateV> & unknown;
|
154
157
|
export type LabeledAction = t.TypeOf<typeof LabeledActionV> & unknown;
|
155
158
|
export type OpenChatAction = t.TypeOf<typeof OpenChatActionV> & unknown;
|
@@ -175,6 +178,7 @@ export type NudgeInteractions = t.TypeOf<typeof NudgeInteractionsV> & unknown;
|
|
175
178
|
export type IMessageType = t.TypeOf<typeof MessageV> & unknown;
|
176
179
|
export type IUserMessageType = t.TypeOf<typeof UserMessageV> & unknown;
|
177
180
|
export type IAIMessageType = t.TypeOf<typeof AIMessageV> & unknown;
|
181
|
+
export type IUserAttachmentType = t.TypeOf<typeof UserAttachmentV> & unknown;
|
178
182
|
export type IAIMessageExtraType = t.TypeOf<typeof AIMessageExtraV> & unknown;
|
179
183
|
export type IQuestionSuggestionsType = t.TypeOf<typeof QuestionSuggestionsV> & unknown;
|
180
184
|
export type IQuestionSuggestionsPayloadType = t.TypeOf<typeof QuestionSuggestionsPayloadV> & unknown;
|
@@ -262,6 +266,8 @@ export type IConfigEndpointResponse = {
|
|
262
266
|
latest_foobar_version?: string;
|
263
267
|
};
|
264
268
|
localized_messages: LocalizedMessages;
|
269
|
+
themes?: IThemeType[];
|
270
|
+
keywords: IKeyword[];
|
265
271
|
};
|
266
272
|
export type IConfigType = {
|
267
273
|
commands: ICommandType[];
|
@@ -279,6 +285,8 @@ export type IConfigType = {
|
|
279
285
|
};
|
280
286
|
flags: Flags;
|
281
287
|
localized_messages: LocalizedMessages;
|
288
|
+
themes: IThemeType[];
|
289
|
+
keywords: IKeyword[];
|
282
290
|
};
|
283
291
|
export type { IRecordSettings } from './IRecordSettings';
|
284
292
|
export type IRecordSettingsByContextKey = t.TypeOf<typeof RecordSettingsByContextKeyV> & unknown;
|
@@ -6,6 +6,8 @@ export declare const WorkflowV: t.TypeC<{
|
|
6
6
|
title: t.StringC;
|
7
7
|
prompt: t.StringC;
|
8
8
|
trigger: t.AnyC;
|
9
|
+
allow_docs_search: t.BooleanC;
|
10
|
+
automatic_handoff: t.BooleanC;
|
9
11
|
}>;
|
10
12
|
export declare class Workflow {
|
11
13
|
static decode: (data: any) => {
|
@@ -15,6 +17,8 @@ export declare class Workflow {
|
|
15
17
|
title: string;
|
16
18
|
prompt: string;
|
17
19
|
trigger: any;
|
20
|
+
allow_docs_search: boolean;
|
21
|
+
automatic_handoff: boolean;
|
18
22
|
};
|
19
23
|
static create: (object: {
|
20
24
|
id: number;
|
@@ -23,6 +27,8 @@ export declare class Workflow {
|
|
23
27
|
title: string;
|
24
28
|
prompt: string;
|
25
29
|
trigger: any;
|
30
|
+
allow_docs_search: boolean;
|
31
|
+
automatic_handoff: boolean;
|
26
32
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
27
33
|
id: number;
|
28
34
|
archived: boolean;
|
@@ -30,6 +36,8 @@ export declare class Workflow {
|
|
30
36
|
title: string;
|
31
37
|
prompt: string;
|
32
38
|
trigger: any;
|
39
|
+
allow_docs_search: boolean;
|
40
|
+
automatic_handoff: boolean;
|
33
41
|
}>;
|
34
42
|
static update: (object: {
|
35
43
|
id: number;
|
@@ -38,6 +46,8 @@ export declare class Workflow {
|
|
38
46
|
title: string;
|
39
47
|
prompt: string;
|
40
48
|
trigger: any;
|
49
|
+
allow_docs_search: boolean;
|
50
|
+
automatic_handoff: boolean;
|
41
51
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
42
52
|
id: number;
|
43
53
|
archived: boolean;
|
@@ -45,6 +55,8 @@ export declare class Workflow {
|
|
45
55
|
title: string;
|
46
56
|
prompt: string;
|
47
57
|
trigger: any;
|
58
|
+
allow_docs_search: boolean;
|
59
|
+
automatic_handoff: boolean;
|
48
60
|
}>;
|
49
61
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
50
62
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
@@ -54,6 +66,8 @@ export declare class Workflow {
|
|
54
66
|
title: string;
|
55
67
|
prompt: string;
|
56
68
|
trigger: any;
|
69
|
+
allow_docs_search: boolean;
|
70
|
+
automatic_handoff: boolean;
|
57
71
|
}[]>;
|
58
72
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
59
73
|
onSuccess?: (() => void) | undefined;
|
@@ -65,5 +79,7 @@ export declare class Workflow {
|
|
65
79
|
title: string;
|
66
80
|
prompt: string;
|
67
81
|
trigger: any;
|
82
|
+
allow_docs_search: boolean;
|
83
|
+
automatic_handoff: boolean;
|
68
84
|
}>;
|
69
85
|
}
|
@@ -9,13 +9,13 @@ interface Props {
|
|
9
9
|
children: React.ReactNode;
|
10
10
|
}
|
11
11
|
interface State {
|
12
|
-
|
12
|
+
error: boolean;
|
13
13
|
}
|
14
14
|
export declare class SentryErrorBoundary extends React.Component<Props, State> {
|
15
15
|
constructor(props: Props);
|
16
16
|
captureRejection: (ev: PromiseRejectionEvent) => void;
|
17
17
|
static getDerivedStateFromError(_error: Error): {
|
18
|
-
|
18
|
+
error: boolean;
|
19
19
|
};
|
20
20
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
21
21
|
render(): React.ReactNode;
|