commandbar 1.10.2 → 1.12.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 +9 -4
- package/build/commandbar/src/shared/services/analytics/event-queue.d.ts +13 -0
- package/build/commandbar/src/shared/services/analytics/types.d.ts +3 -3
- package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +54 -0
- package/build/commandbar/src/shared/services/analytics/v2/helpers.d.ts +6 -0
- package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +152 -0
- package/build/commandbar/src/shared/services/analytics/v2/types.d.ts +4 -0
- package/build/commandbar-js/src/index.d.ts +2 -3
- package/build/commandbar-js/src/index.js +1 -1
- package/build/commandbar-js/src/snippet.d.ts +7 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +13 -1
- package/build/internal/src/client/CommandBarProxySDK.d.ts +1 -4
- package/build/internal/src/client/CommandBarSDK.d.ts +7 -5
- package/build/internal/src/client/SDKConfig.d.ts +3 -1
- package/build/internal/src/client/globals.d.ts +1 -0
- package/build/internal/src/client/symbols.d.ts +3 -1
- package/build/internal/src/middleware/CommandFromClientV.d.ts +16 -2
- package/build/internal/src/middleware/OrganizationV.d.ts +44 -8
- package/build/internal/src/middleware/additionalResource.d.ts +9 -9
- package/build/internal/src/middleware/api.d.ts +181 -0
- package/build/internal/src/middleware/billing.d.ts +10 -0
- package/build/internal/src/middleware/chat.d.ts +3662 -172
- package/build/internal/src/middleware/checklist.d.ts +26 -10
- package/build/internal/src/middleware/command.d.ts +540 -140
- package/build/internal/src/middleware/endUser.d.ts +2 -0
- package/build/internal/src/middleware/experienceTemplate.d.ts +2882 -8
- package/build/internal/src/middleware/experiencesSearch.d.ts +233 -28
- package/build/internal/src/middleware/flags.d.ts +15 -1
- package/build/internal/src/middleware/generics.d.ts +1 -0
- package/build/internal/src/middleware/helpDocsIntegration.d.ts +98 -0
- package/build/internal/src/middleware/helpDocsSearch.d.ts +165 -20
- package/build/internal/src/middleware/helpDocsSync.d.ts +4 -0
- package/build/internal/src/middleware/helpHub.d.ts +1 -0
- package/build/internal/src/middleware/helpers/actions.d.ts +6 -6
- package/build/internal/src/middleware/helpers/commandTemplate.d.ts +2 -2
- package/build/internal/src/middleware/helpers/rules.d.ts +9 -7
- package/build/internal/src/middleware/localizedMessage.d.ts +50 -0
- package/build/internal/src/middleware/network.d.ts +1 -0
- package/build/internal/src/middleware/nudge.d.ts +104 -24
- package/build/internal/src/middleware/organization.d.ts +201 -62
- package/build/internal/src/middleware/organizationSettings.d.ts +12 -8
- package/build/internal/src/middleware/profile.d.ts +8 -0
- package/build/internal/src/middleware/recommendationSet.d.ts +18 -9
- package/build/internal/src/middleware/theme.d.ts +81 -0
- package/build/internal/src/middleware/types.d.ts +27 -6
- package/build/internal/src/middleware/user.d.ts +9 -1
- package/build/internal/src/middleware/workflow.d.ts +85 -0
- package/build/internal/src/util/sentry.d.ts +2 -2
- package/package.json +8 -3
- package/src/index.ts +2 -3
- package/src/init.ts +32 -14
- package/src/snippet.ts +84 -74
- package/build/internal/src/client/OrgConfig.d.ts +0 -5
- package/build/internal/src/middleware/guide.d.ts +0 -37
@@ -89,7 +89,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
89
89
|
}>]>, t.TypeC<{
|
90
90
|
type: t.LiteralC<"open_chat">;
|
91
91
|
meta: t.TypeC<{
|
92
|
-
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<"">]>;
|
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<"">]>;
|
93
93
|
}>;
|
94
94
|
}>, t.TypeC<{
|
95
95
|
type: t.LiteralC<"dismiss">;
|
@@ -117,6 +117,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
117
117
|
type: t.LiteralC<"open_copilot">;
|
118
118
|
}>]>;
|
119
119
|
}>>;
|
120
|
+
helphub_search_action: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
|
120
121
|
copilot_negative_feedback_fallback_enabled: t.BooleanC;
|
121
122
|
copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>;
|
122
123
|
copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{
|
@@ -144,7 +145,7 @@ export declare const OrganizationSettingsV: t.TypeC<{
|
|
144
145
|
}>]>, t.TypeC<{
|
145
146
|
type: t.LiteralC<"open_chat">;
|
146
147
|
meta: t.TypeC<{
|
147
|
-
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<"">]>;
|
148
|
+
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<"">]>;
|
148
149
|
}>;
|
149
150
|
}>, t.TypeC<{
|
150
151
|
type: t.LiteralC<"dismiss">;
|
@@ -277,7 +278,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
277
278
|
}) | {
|
278
279
|
type: "open_chat";
|
279
280
|
meta: {
|
280
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
281
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
281
282
|
};
|
282
283
|
} | {
|
283
284
|
type: "dismiss";
|
@@ -307,6 +308,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
307
308
|
type: "no_action";
|
308
309
|
};
|
309
310
|
}[];
|
311
|
+
helphub_search_action: "search" | "ask";
|
310
312
|
copilot_negative_feedback_fallback_enabled: boolean;
|
311
313
|
copilot_negative_feedback_fallback_message: string | null;
|
312
314
|
copilot_negative_feedback_fallback_actions: {
|
@@ -332,7 +334,7 @@ export declare const read: (params?: Record<string, string> | undefined, callbac
|
|
332
334
|
}) | {
|
333
335
|
type: "open_chat";
|
334
336
|
meta: {
|
335
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
337
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
336
338
|
};
|
337
339
|
} | {
|
338
340
|
type: "dismiss";
|
@@ -461,7 +463,7 @@ export declare const update: (object: {
|
|
461
463
|
}) | {
|
462
464
|
type: "open_chat";
|
463
465
|
meta: {
|
464
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
466
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
465
467
|
};
|
466
468
|
} | {
|
467
469
|
type: "dismiss";
|
@@ -491,6 +493,7 @@ export declare const update: (object: {
|
|
491
493
|
type: "no_action";
|
492
494
|
};
|
493
495
|
}[] | undefined;
|
496
|
+
helphub_search_action?: "search" | "ask" | undefined;
|
494
497
|
copilot_negative_feedback_fallback_enabled?: boolean | undefined;
|
495
498
|
copilot_negative_feedback_fallback_message?: string | null | undefined;
|
496
499
|
copilot_negative_feedback_fallback_actions?: {
|
@@ -516,7 +519,7 @@ export declare const update: (object: {
|
|
516
519
|
}) | {
|
517
520
|
type: "open_chat";
|
518
521
|
meta: {
|
519
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
522
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
520
523
|
};
|
521
524
|
} | {
|
522
525
|
type: "dismiss";
|
@@ -647,7 +650,7 @@ export declare const update: (object: {
|
|
647
650
|
}) | {
|
648
651
|
type: "open_chat";
|
649
652
|
meta: {
|
650
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
653
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
651
654
|
};
|
652
655
|
} | {
|
653
656
|
type: "dismiss";
|
@@ -677,6 +680,7 @@ export declare const update: (object: {
|
|
677
680
|
type: "no_action";
|
678
681
|
};
|
679
682
|
}[];
|
683
|
+
helphub_search_action: "search" | "ask";
|
680
684
|
copilot_negative_feedback_fallback_enabled: boolean;
|
681
685
|
copilot_negative_feedback_fallback_message: string | null;
|
682
686
|
copilot_negative_feedback_fallback_actions: {
|
@@ -702,7 +706,7 @@ export declare const update: (object: {
|
|
702
706
|
}) | {
|
703
707
|
type: "open_chat";
|
704
708
|
meta: {
|
705
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
709
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
706
710
|
};
|
707
711
|
} | {
|
708
712
|
type: "dismiss";
|
@@ -3,11 +3,19 @@ export declare const ProfileV: t.TypeC<{
|
|
3
3
|
user: t.StringC;
|
4
4
|
organization: t.StringC;
|
5
5
|
is_active: t.BooleanC;
|
6
|
+
role: t.UnionC<[t.LiteralC<"admin">, t.LiteralC<"editor">, t.LiteralC<"contributor">, t.LiteralC<"viewer">]>;
|
7
|
+
first_name: t.StringC;
|
8
|
+
last_name: t.StringC;
|
9
|
+
email: t.StringC;
|
6
10
|
}>;
|
7
11
|
export declare class Profile {
|
8
12
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
9
13
|
user: string;
|
10
14
|
organization: string;
|
11
15
|
is_active: boolean;
|
16
|
+
role: "admin" | "editor" | "contributor" | "viewer";
|
17
|
+
first_name: string;
|
18
|
+
last_name: string;
|
19
|
+
email: string;
|
12
20
|
}[]>;
|
13
21
|
}
|
@@ -45,7 +45,7 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
|
|
45
45
|
}>]>, t.TypeC<{
|
46
46
|
type: t.LiteralC<"open_chat">;
|
47
47
|
meta: t.TypeC<{
|
48
|
-
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<"">]>;
|
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<"">]>;
|
49
49
|
}>;
|
50
50
|
}>, t.TypeC<{
|
51
51
|
type: t.LiteralC<"dismiss">;
|
@@ -74,6 +74,7 @@ export declare const RecommendationSetAdditionalV: t.TypeC<{
|
|
74
74
|
}>]>;
|
75
75
|
cta: t.StringC;
|
76
76
|
}>>;
|
77
|
+
is_live: t.BooleanC;
|
77
78
|
}>;
|
78
79
|
export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
79
80
|
id: t.NumberC;
|
@@ -120,7 +121,7 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
|
120
121
|
}>]>, t.TypeC<{
|
121
122
|
type: t.LiteralC<"open_chat">;
|
122
123
|
meta: t.TypeC<{
|
123
|
-
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<"">]>;
|
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<"">]>;
|
124
125
|
}>;
|
125
126
|
}>, t.TypeC<{
|
126
127
|
type: t.LiteralC<"dismiss">;
|
@@ -149,6 +150,7 @@ export declare const RecommendationSetV: t.IntersectionC<[t.TypeC<{
|
|
149
150
|
}>]>;
|
150
151
|
cta: t.StringC;
|
151
152
|
}>>;
|
153
|
+
is_live: t.BooleanC;
|
152
154
|
}>]>;
|
153
155
|
export declare class RecommendationSet {
|
154
156
|
static decode: (data: any) => {
|
@@ -194,7 +196,7 @@ export declare class RecommendationSet {
|
|
194
196
|
}) | {
|
195
197
|
type: "open_chat";
|
196
198
|
meta: {
|
197
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
199
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
198
200
|
};
|
199
201
|
} | {
|
200
202
|
type: "dismiss";
|
@@ -225,6 +227,7 @@ export declare class RecommendationSet {
|
|
225
227
|
};
|
226
228
|
cta: string;
|
227
229
|
}[];
|
230
|
+
is_live: boolean;
|
228
231
|
};
|
229
232
|
static create: (object: {
|
230
233
|
id: number;
|
@@ -269,7 +272,7 @@ export declare class RecommendationSet {
|
|
269
272
|
}) | {
|
270
273
|
type: "open_chat";
|
271
274
|
meta: {
|
272
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
275
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
273
276
|
};
|
274
277
|
} | {
|
275
278
|
type: "dismiss";
|
@@ -300,6 +303,7 @@ export declare class RecommendationSet {
|
|
300
303
|
};
|
301
304
|
cta: string;
|
302
305
|
}[];
|
306
|
+
is_live: boolean;
|
303
307
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
304
308
|
id: number;
|
305
309
|
widget: string;
|
@@ -343,7 +347,7 @@ export declare class RecommendationSet {
|
|
343
347
|
}) | {
|
344
348
|
type: "open_chat";
|
345
349
|
meta: {
|
346
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
350
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
347
351
|
};
|
348
352
|
} | {
|
349
353
|
type: "dismiss";
|
@@ -374,6 +378,7 @@ export declare class RecommendationSet {
|
|
374
378
|
};
|
375
379
|
cta: string;
|
376
380
|
}[];
|
381
|
+
is_live: boolean;
|
377
382
|
}>;
|
378
383
|
static update: (object: {
|
379
384
|
id: number;
|
@@ -418,7 +423,7 @@ export declare class RecommendationSet {
|
|
418
423
|
}) | {
|
419
424
|
type: "open_chat";
|
420
425
|
meta: {
|
421
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
426
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
422
427
|
};
|
423
428
|
} | {
|
424
429
|
type: "dismiss";
|
@@ -449,6 +454,7 @@ export declare class RecommendationSet {
|
|
449
454
|
};
|
450
455
|
cta: string;
|
451
456
|
}[];
|
457
|
+
is_live: boolean;
|
452
458
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
453
459
|
id: number;
|
454
460
|
widget: string;
|
@@ -492,7 +498,7 @@ export declare class RecommendationSet {
|
|
492
498
|
}) | {
|
493
499
|
type: "open_chat";
|
494
500
|
meta: {
|
495
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
501
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
496
502
|
};
|
497
503
|
} | {
|
498
504
|
type: "dismiss";
|
@@ -523,6 +529,7 @@ export declare class RecommendationSet {
|
|
523
529
|
};
|
524
530
|
cta: string;
|
525
531
|
}[];
|
532
|
+
is_live: boolean;
|
526
533
|
}>;
|
527
534
|
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
528
535
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
@@ -568,7 +575,7 @@ export declare class RecommendationSet {
|
|
568
575
|
}) | {
|
569
576
|
type: "open_chat";
|
570
577
|
meta: {
|
571
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
578
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
572
579
|
};
|
573
580
|
} | {
|
574
581
|
type: "dismiss";
|
@@ -599,6 +606,7 @@ export declare class RecommendationSet {
|
|
599
606
|
};
|
600
607
|
cta: string;
|
601
608
|
}[];
|
609
|
+
is_live: boolean;
|
602
610
|
})[]>;
|
603
611
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
604
612
|
onSuccess?: (() => void) | undefined;
|
@@ -646,7 +654,7 @@ export declare class RecommendationSet {
|
|
646
654
|
}) | {
|
647
655
|
type: "open_chat";
|
648
656
|
meta: {
|
649
|
-
type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
|
657
|
+
type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
|
650
658
|
};
|
651
659
|
} | {
|
652
660
|
type: "dismiss";
|
@@ -677,5 +685,6 @@ export declare class RecommendationSet {
|
|
677
685
|
};
|
678
686
|
cta: string;
|
679
687
|
}[];
|
688
|
+
is_live: boolean;
|
680
689
|
}>;
|
681
690
|
}
|
@@ -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;
|
@@ -53,6 +54,7 @@ export declare const ThemeV: t.TypeC<{
|
|
53
54
|
}>;
|
54
55
|
}>, t.NullC, t.UndefinedC]>;
|
55
56
|
organization: t.StringC;
|
57
|
+
archived: t.BooleanC;
|
56
58
|
}>;
|
57
59
|
export declare const ThemePatchV: t.PartialC<{
|
58
60
|
id: t.StringC;
|
@@ -88,10 +90,12 @@ export declare const ThemePatchV: t.PartialC<{
|
|
88
90
|
}>;
|
89
91
|
}>, t.NullC, t.UndefinedC]>;
|
90
92
|
organization: t.StringC;
|
93
|
+
archived: t.BooleanC;
|
91
94
|
}>;
|
92
95
|
export declare class Theme {
|
93
96
|
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
94
97
|
id: string;
|
98
|
+
uuid: string | null | undefined;
|
95
99
|
slug: string;
|
96
100
|
name: string;
|
97
101
|
default: boolean;
|
@@ -156,12 +160,14 @@ export declare class Theme {
|
|
156
160
|
};
|
157
161
|
} | null | undefined;
|
158
162
|
organization: string;
|
163
|
+
archived: boolean;
|
159
164
|
}[]>;
|
160
165
|
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
161
166
|
onSuccess?: (() => void) | undefined;
|
162
167
|
onError?: ((err: string) => void) | undefined;
|
163
168
|
} | undefined) => Promise<{
|
164
169
|
id: string;
|
170
|
+
uuid: string | null | undefined;
|
165
171
|
slug: string;
|
166
172
|
name: string;
|
167
173
|
default: boolean;
|
@@ -226,9 +232,11 @@ export declare class Theme {
|
|
226
232
|
};
|
227
233
|
} | null | undefined;
|
228
234
|
organization: string;
|
235
|
+
archived: boolean;
|
229
236
|
}>;
|
230
237
|
static update: (theme: t.TypeOf<typeof ThemePatchV>) => Promise<{
|
231
238
|
id: string;
|
239
|
+
uuid: string | null | undefined;
|
232
240
|
slug: string;
|
233
241
|
name: string;
|
234
242
|
default: boolean;
|
@@ -293,6 +301,7 @@ export declare class Theme {
|
|
293
301
|
};
|
294
302
|
} | null | undefined;
|
295
303
|
organization: string;
|
304
|
+
archived: boolean;
|
296
305
|
}>;
|
297
306
|
static create: (object: {
|
298
307
|
id?: string | undefined;
|
@@ -360,8 +369,10 @@ export declare class Theme {
|
|
360
369
|
};
|
361
370
|
} | null | undefined;
|
362
371
|
organization?: string | undefined;
|
372
|
+
archived?: boolean | undefined;
|
363
373
|
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
364
374
|
id: string;
|
375
|
+
uuid: string | null | undefined;
|
365
376
|
slug: string;
|
366
377
|
name: string;
|
367
378
|
default: boolean;
|
@@ -426,6 +437,76 @@ export declare class Theme {
|
|
426
437
|
};
|
427
438
|
} | null | undefined;
|
428
439
|
organization: string;
|
440
|
+
archived: boolean;
|
429
441
|
}>;
|
430
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
|
+
};
|
431
512
|
}
|
@@ -11,7 +11,6 @@ import { OrganizationStatusV, KeyEventV, RecordSettingsByContextKeyV, InternalSe
|
|
11
11
|
import { OrganizationSettingsV } from './organizationSettings';
|
12
12
|
import { UserV } from './user';
|
13
13
|
import { ContextV } from './context';
|
14
|
-
import { GuideV } from './guide';
|
15
14
|
import { HistoryEventV } from './historyEvent';
|
16
15
|
import { HelpDocSyncLogMessageV, HelpDocsSyncV } from './helpDocsSync';
|
17
16
|
import { HelpDocsIntegrationV } from './helpDocsIntegration';
|
@@ -32,21 +31,27 @@ import { AudienceV } from './helpers/audience';
|
|
32
31
|
import { AdditionalResourceV } from './additionalResource';
|
33
32
|
import { RecommendationSetV } from './recommendationSet';
|
34
33
|
import { BillingProfileV, UsageV } from './billing';
|
35
|
-
import { UserMessageV, AIMessageV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV, ChatV, CopilotSettingsPreviewV } from './chat';
|
34
|
+
import { UserMessageV, AIMessageV, AIMessageExtraV, MessageV, AIAnswerPayloadV, AIAnswerV, ContinuationsPayloadV, ContinuationV, CreateAnswerFeedbackPayloadV, QuestionSuggestionsPayloadV, QuestionSuggestionsV, ExperienceV, CreateChatPayloadV, ChatV, CopilotSettingsPreviewV, HandoffPayloadV, ExternalChatPayloadV, ExternalChatHistoryV } from './chat';
|
36
35
|
import { HelpDocHitV, SearchHelpDocsPayloadV, SearchHelpDocsResponseV } from './helpDocsSearch';
|
37
36
|
import { ExperienceHitV, ExperienceTypeOptions, SearchExperiencesPayloadV, SearchExperiencesResponseV } from './experiencesSearch';
|
38
|
-
import { HelpHubLauncherSettingsV } from './helpHub';
|
37
|
+
import { HelpHubLauncherSettingsV, HelpHubSearchActionsV } from './helpHub';
|
39
38
|
import { EntityChangeV } from './entityChanges';
|
40
39
|
import { Flags } from './flags';
|
41
40
|
import { CopilotPersonalityAdjectiveV, CopilotPersonalityResponseFormatV, CopilotPersonalityResponseLengthV, CopilotPersonalityV } from './helpers/copilotPersonality';
|
42
41
|
import { ExperienceTemplateV } from './experienceTemplate';
|
42
|
+
import { APIV } from './api';
|
43
|
+
import { LocalizedMessagePatchV, LocalizedMessageV, LocalizedMessages } from './localizedMessage';
|
44
|
+
import { WorkflowV } from './workflow';
|
43
45
|
/*******************************************************************************/
|
44
46
|
export type IInitOptions = {
|
47
|
+
apiOrigin?: string;
|
48
|
+
cdnOrigin?: string;
|
45
49
|
debug?: boolean;
|
46
50
|
environment?: string;
|
47
51
|
version?: string;
|
48
52
|
config?: any;
|
49
53
|
nonce?: string;
|
54
|
+
silentMode?: boolean;
|
50
55
|
};
|
51
56
|
/** Additional foobar init options */
|
52
57
|
export declare const SUPPORTED_FOOBAR_INIT_DEPLOYMENT_OPTIONS: readonly ["dev", "labs", "prod"];
|
@@ -63,15 +68,13 @@ export type IEditorCommandTypeLite = t.TypeOf<typeof EditorCommandLiteV> & unkno
|
|
63
68
|
export type ICommandTypeLite = t.TypeOf<typeof CommandLiteV> & unknown;
|
64
69
|
export type { ICommandFromClientType } from './ICommandFromClientType';
|
65
70
|
export type ICommandCategoryType = t.TypeOf<typeof CommandCategoryV> & unknown;
|
66
|
-
export type IGuideType = t.TypeOf<typeof GuideV> & {
|
67
|
-
preview?: boolean;
|
68
|
-
} & unknown;
|
69
71
|
export type IHistoryEventType = t.TypeOf<typeof HistoryEventV> & unknown;
|
70
72
|
export type IEntityChangeType = t.TypeOf<typeof EntityChangeV> & unknown;
|
71
73
|
export type IHelpDocsSyncType = t.TypeOf<typeof HelpDocsSyncV> & unknown;
|
72
74
|
export type IHelpDocsSyncLogMessageType = t.TypeOf<typeof HelpDocSyncLogMessageV> & unknown;
|
73
75
|
export type IHelpDocsIntegrationType = t.TypeOf<typeof HelpDocsIntegrationV> & unknown;
|
74
76
|
export type IHelpHubLauncherSettingsType = t.TypeOf<typeof HelpHubLauncherSettingsV> & unknown;
|
77
|
+
export type IHelpHubSearchActionsType = t.TypeOf<typeof HelpHubSearchActionsV> & unknown;
|
75
78
|
export type IOrganizationType = t.TypeOf<typeof OrganizationV> & unknown;
|
76
79
|
export type IOrganizationStatusType = t.TypeOf<typeof OrganizationStatusV> & unknown;
|
77
80
|
export type IInternalSettingsType = t.TypeOf<typeof InternalSettingsV> & unknown;
|
@@ -124,6 +127,12 @@ export type INudgeTooltipStepType = INudgeStepType & {
|
|
124
127
|
type: 'tooltip';
|
125
128
|
};
|
126
129
|
};
|
130
|
+
export type INudgePinStepType = INudgeStepType & {
|
131
|
+
form_factor: {
|
132
|
+
type: 'pin';
|
133
|
+
};
|
134
|
+
};
|
135
|
+
export type INudgeAnchorableStepType = INudgeTooltipStepType | INudgePinStepType;
|
127
136
|
export type INudgeStepContentBlockType = t.TypeOf<typeof NudgeContentBlockV> & unknown;
|
128
137
|
export type INudgeStepContentMarkdownBlockType = t.TypeOf<typeof NudgeContentMarkdownBlockV> & unknown;
|
129
138
|
export type INudgeStepContentImageBlockType = t.TypeOf<typeof NudgeContentImageBlockV> & unknown;
|
@@ -167,6 +176,7 @@ export type NudgeInteractions = t.TypeOf<typeof NudgeInteractionsV> & unknown;
|
|
167
176
|
export type IMessageType = t.TypeOf<typeof MessageV> & unknown;
|
168
177
|
export type IUserMessageType = t.TypeOf<typeof UserMessageV> & unknown;
|
169
178
|
export type IAIMessageType = t.TypeOf<typeof AIMessageV> & unknown;
|
179
|
+
export type IAIMessageExtraType = t.TypeOf<typeof AIMessageExtraV> & unknown;
|
170
180
|
export type IQuestionSuggestionsType = t.TypeOf<typeof QuestionSuggestionsV> & unknown;
|
171
181
|
export type IQuestionSuggestionsPayloadType = t.TypeOf<typeof QuestionSuggestionsPayloadV> & unknown;
|
172
182
|
export type ICreateChatPayloadType = t.TypeOf<typeof CreateChatPayloadV> & unknown;
|
@@ -175,6 +185,9 @@ export type IExperienceType = t.TypeOf<typeof ExperienceV> & unknown;
|
|
175
185
|
export type IContinuationsPayloadType = t.TypeOf<typeof ContinuationsPayloadV> & unknown;
|
176
186
|
export type IAIAnswerType = t.TypeOf<typeof AIAnswerV> & unknown;
|
177
187
|
export type IAIAnswerPayloadType = t.TypeOf<typeof AIAnswerPayloadV> & unknown;
|
188
|
+
export type IHandoffPayloadType = t.TypeOf<typeof HandoffPayloadV> & unknown;
|
189
|
+
export type IExternalChatPayloadType = t.TypeOf<typeof ExternalChatPayloadV> & unknown;
|
190
|
+
export type IExternalChatHistoryType = t.TypeOf<typeof ExternalChatHistoryV> & unknown;
|
178
191
|
export type ICreateAnswerFeedbackPayloadType = t.TypeOf<typeof CreateAnswerFeedbackPayloadV> & unknown;
|
179
192
|
export type ISearchHelpDocsPayloadType = t.TypeOf<typeof SearchHelpDocsPayloadV> & unknown;
|
180
193
|
export type ISearchHelpDocsResponseType = t.TypeOf<typeof SearchHelpDocsResponseV> & unknown;
|
@@ -230,6 +243,10 @@ export interface IResourceType extends IUserContext {
|
|
230
243
|
}
|
231
244
|
export type IAdditionalResource = t.TypeOf<typeof AdditionalResourceV> & unknown;
|
232
245
|
export type IRecommendationSet = t.TypeOf<typeof RecommendationSetV> & unknown;
|
246
|
+
export type ILocalizedMessage = t.TypeOf<typeof LocalizedMessageV> & unknown;
|
247
|
+
export type ILocalizedMessagePatch = t.TypeOf<typeof LocalizedMessagePatchV> & unknown;
|
248
|
+
export type IAPI = t.TypeOf<typeof APIV> & unknown;
|
249
|
+
export type IWorkflow = t.TypeOf<typeof WorkflowV> & unknown;
|
233
250
|
export type IConfigEndpointResponse = {
|
234
251
|
commands: any[];
|
235
252
|
categories: any[];
|
@@ -245,6 +262,8 @@ export type IConfigEndpointResponse = {
|
|
245
262
|
__meta__?: {
|
246
263
|
latest_foobar_version?: string;
|
247
264
|
};
|
265
|
+
localized_messages: LocalizedMessages;
|
266
|
+
themes?: IThemeType[];
|
248
267
|
};
|
249
268
|
export type IConfigType = {
|
250
269
|
commands: ICommandType[];
|
@@ -261,6 +280,8 @@ export type IConfigType = {
|
|
261
280
|
latest_foobar_version?: string;
|
262
281
|
};
|
263
282
|
flags: Flags;
|
283
|
+
localized_messages: LocalizedMessages;
|
284
|
+
themes: IThemeType[];
|
264
285
|
};
|
265
286
|
export type { IRecordSettings } from './IRecordSettings';
|
266
287
|
export type IRecordSettingsByContextKey = t.TypeOf<typeof RecordSettingsByContextKeyV> & unknown;
|
@@ -7,7 +7,15 @@ export declare const UserV: t.IntersectionC<[t.TypeC<{
|
|
7
7
|
organization: t.StringC;
|
8
8
|
organization_name: t.StringC;
|
9
9
|
api_token: t.UnionC<[t.StringC, t.NullC]>;
|
10
|
-
profile: t.
|
10
|
+
profile: t.TypeC<{
|
11
|
+
user: t.StringC;
|
12
|
+
organization: t.StringC;
|
13
|
+
is_active: t.BooleanC;
|
14
|
+
role: t.UnionC<[t.LiteralC<"admin">, t.LiteralC<"editor">, t.LiteralC<"contributor">, t.LiteralC<"viewer">]>;
|
15
|
+
first_name: t.StringC;
|
16
|
+
last_name: t.StringC;
|
17
|
+
email: t.StringC;
|
18
|
+
}>;
|
11
19
|
has_updated_password: t.BooleanC;
|
12
20
|
is_active: t.BooleanC;
|
13
21
|
is_hijacked: t.BooleanC;
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import * as t from 'io-ts';
|
2
|
+
export declare const WorkflowV: t.TypeC<{
|
3
|
+
id: t.NumberC;
|
4
|
+
archived: t.BooleanC;
|
5
|
+
is_live: t.BooleanC;
|
6
|
+
title: t.StringC;
|
7
|
+
prompt: t.StringC;
|
8
|
+
trigger: t.AnyC;
|
9
|
+
allow_docs_search: t.BooleanC;
|
10
|
+
automatic_handoff: t.BooleanC;
|
11
|
+
}>;
|
12
|
+
export declare class Workflow {
|
13
|
+
static decode: (data: any) => {
|
14
|
+
id: number;
|
15
|
+
archived: boolean;
|
16
|
+
is_live: boolean;
|
17
|
+
title: string;
|
18
|
+
prompt: string;
|
19
|
+
trigger: any;
|
20
|
+
allow_docs_search: boolean;
|
21
|
+
automatic_handoff: boolean;
|
22
|
+
};
|
23
|
+
static create: (object: {
|
24
|
+
id: number;
|
25
|
+
archived: boolean;
|
26
|
+
is_live: boolean;
|
27
|
+
title: string;
|
28
|
+
prompt: string;
|
29
|
+
trigger: any;
|
30
|
+
allow_docs_search: boolean;
|
31
|
+
automatic_handoff: boolean;
|
32
|
+
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
33
|
+
id: number;
|
34
|
+
archived: boolean;
|
35
|
+
is_live: boolean;
|
36
|
+
title: string;
|
37
|
+
prompt: string;
|
38
|
+
trigger: any;
|
39
|
+
allow_docs_search: boolean;
|
40
|
+
automatic_handoff: boolean;
|
41
|
+
}>;
|
42
|
+
static update: (object: {
|
43
|
+
id: number;
|
44
|
+
archived: boolean;
|
45
|
+
is_live: boolean;
|
46
|
+
title: string;
|
47
|
+
prompt: string;
|
48
|
+
trigger: any;
|
49
|
+
allow_docs_search: boolean;
|
50
|
+
automatic_handoff: boolean;
|
51
|
+
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
52
|
+
id: number;
|
53
|
+
archived: boolean;
|
54
|
+
is_live: boolean;
|
55
|
+
title: string;
|
56
|
+
prompt: string;
|
57
|
+
trigger: any;
|
58
|
+
allow_docs_search: boolean;
|
59
|
+
automatic_handoff: boolean;
|
60
|
+
}>;
|
61
|
+
static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
62
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
63
|
+
id: number;
|
64
|
+
archived: boolean;
|
65
|
+
is_live: boolean;
|
66
|
+
title: string;
|
67
|
+
prompt: string;
|
68
|
+
trigger: any;
|
69
|
+
allow_docs_search: boolean;
|
70
|
+
automatic_handoff: boolean;
|
71
|
+
}[]>;
|
72
|
+
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
73
|
+
onSuccess?: (() => void) | undefined;
|
74
|
+
onError?: ((err: string) => void) | undefined;
|
75
|
+
} | undefined) => Promise<{
|
76
|
+
id: number;
|
77
|
+
archived: boolean;
|
78
|
+
is_live: boolean;
|
79
|
+
title: string;
|
80
|
+
prompt: string;
|
81
|
+
trigger: any;
|
82
|
+
allow_docs_search: boolean;
|
83
|
+
automatic_handoff: boolean;
|
84
|
+
}>;
|
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;
|