commandbar 1.8.4 → 1.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/internal/src/client/AddContextOptions.d.ts +141 -0
  3. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  4. package/build/internal/src/client/CommandBarClientSDK.d.ts +403 -0
  5. package/build/internal/src/client/CommandBarProxySDK.d.ts +49 -0
  6. package/build/internal/src/client/CommandBarSDK.d.ts +79 -0
  7. package/build/internal/src/client/EventHandler.d.ts +282 -0
  8. package/build/internal/src/client/OrgConfig.d.ts +5 -0
  9. package/build/internal/src/client/SDKConfig.d.ts +13 -0
  10. package/build/internal/src/client/SentryReporter.d.ts +63 -0
  11. package/build/internal/src/client/globals.d.ts +20 -0
  12. package/build/internal/src/client/proxy.d.ts +15 -0
  13. package/build/internal/src/client/symbols.d.ts +50 -0
  14. package/build/internal/src/middleware/CommandFromClientV.d.ts +283 -0
  15. package/build/internal/src/middleware/ICommandFromClientType.d.ts +5 -0
  16. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  17. package/build/internal/src/middleware/OrganizationV.d.ts +329 -0
  18. package/build/internal/src/middleware/ResourceSettingsV.d.ts +119 -0
  19. package/build/internal/src/middleware/additionalResource.d.ts +302 -0
  20. package/build/internal/src/middleware/billing.d.ts +41 -0
  21. package/build/internal/src/middleware/chatAnalytics.d.ts +2601 -0
  22. package/build/internal/src/middleware/checklist.d.ts +1014 -0
  23. package/build/internal/src/middleware/command.d.ts +8908 -0
  24. package/build/internal/src/middleware/commandCategory.d.ts +192 -0
  25. package/build/internal/src/middleware/confetti.d.ts +16 -0
  26. package/build/internal/src/middleware/context.d.ts +40 -0
  27. package/build/internal/src/middleware/dashboardFlags.d.ts +9 -0
  28. package/build/internal/src/middleware/detailPreview.d.ts +24 -0
  29. package/build/internal/src/middleware/environment.d.ts +11 -0
  30. package/build/internal/src/middleware/generics.d.ts +42 -0
  31. package/build/internal/src/middleware/guide.d.ts +37 -0
  32. package/build/internal/src/middleware/helpDocsIntegration.d.ts +72 -0
  33. package/build/internal/src/middleware/helpDocsSync.d.ts +63 -0
  34. package/build/internal/src/middleware/helpers/actions.d.ts +184 -0
  35. package/build/internal/src/middleware/helpers/argument.d.ts +318 -0
  36. package/build/internal/src/middleware/helpers/audience.d.ts +15 -0
  37. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +252 -0
  38. package/build/internal/src/middleware/helpers/endUser.d.ts +11 -0
  39. package/build/internal/src/middleware/helpers/frequencyLimit.d.ts +2 -0
  40. package/build/internal/src/middleware/helpers/goals.d.ts +26 -0
  41. package/build/internal/src/middleware/helpers/optionGroup.d.ts +2 -0
  42. package/build/internal/src/middleware/helpers/pushTrigger.d.ts +26 -0
  43. package/build/internal/src/middleware/helpers/rules.d.ts +289 -0
  44. package/build/internal/src/middleware/helpers/tags.d.ts +7 -0
  45. package/build/internal/src/middleware/historyEvent.d.ts +21 -0
  46. package/build/internal/src/middleware/network.d.ts +3 -0
  47. package/build/internal/src/middleware/nudge.d.ts +1669 -0
  48. package/build/internal/src/middleware/organization.d.ts +1540 -0
  49. package/build/internal/src/middleware/organizationSettings.d.ts +330 -0
  50. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  51. package/build/internal/src/middleware/profile.d.ts +11 -0
  52. package/build/internal/src/middleware/qaPair.d.ts +676 -0
  53. package/build/internal/src/middleware/recommendationSet.d.ts +1199 -0
  54. package/build/internal/src/middleware/releases.d.ts +261 -0
  55. package/build/internal/src/middleware/skin.d.ts +102 -0
  56. package/build/internal/src/middleware/tab.d.ts +27 -0
  57. package/build/internal/src/middleware/types.d.ts +218 -0
  58. package/build/internal/src/middleware/user.d.ts +15 -0
  59. package/build/internal/src/middleware/utils.d.ts +11 -0
  60. package/build/internal/src/util/Disposable.d.ts +17 -0
  61. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  62. package/build/internal/src/util/Logger.d.ts +18 -0
  63. package/build/internal/src/util/dispatchCustomEvent.d.ts +12 -0
  64. package/build/internal/src/util/integrations.d.ts +1 -0
  65. package/package.json +2 -2
  66. package/jest.config.js +0 -4
  67. package/scripts/minify-snippet.ts +0 -36
  68. package/scripts/watch.ts +0 -5
  69. package/test/init.test.ts +0 -3
  70. package/tsconfig.json +0 -24
  71. package/webpack.config.js +0 -35
@@ -0,0 +1,330 @@
1
+ import * as t from 'io-ts';
2
+ export declare const OrganizationSettingsV: t.TypeC<{
3
+ end_user_limit: t.NumberC;
4
+ user_seat_limit: t.NumberC;
5
+ analytics_dashboard_execution_limit: t.NumberC;
6
+ analytics_dashboard_deadend_limit: t.NumberC;
7
+ silent_mode: t.BooleanC;
8
+ allow_event_handlers: t.BooleanC;
9
+ event_attribute_block_list: t.ArrayC<t.StringC>;
10
+ skins_limit: t.NumberC;
11
+ skins_field_set: t.UnionC<[t.LiteralC<"pro">, t.LiteralC<"basic">, t.LiteralC<"none">]>;
12
+ show_countdown_banner: t.BooleanC;
13
+ can_install_foobar: t.BooleanC;
14
+ releases_available: t.BooleanC;
15
+ releases_enabled: t.BooleanC;
16
+ releases_environments: t.ArrayC<t.StringC>;
17
+ in_bar_feedback: t.BooleanC;
18
+ force_end_user_identity_verification: t.BooleanC;
19
+ force_end_user_identity_verification_for_helphub: t.BooleanC;
20
+ summon_hotkey_override: t.UnionC<[t.StringC, t.NullC]>;
21
+ end_user_shortcuts_enabled: t.BooleanC;
22
+ fallback_commands: t.ArrayC<t.NumberC>;
23
+ end_user_recents_enabled: t.BooleanC;
24
+ tab_direction: t.UnionC<[t.LiteralC<"horizontal">, t.LiteralC<"vertical">]>;
25
+ recommended_tab_enabled: t.BooleanC;
26
+ recents_tab_enabled: t.BooleanC;
27
+ recommended_tab_instruction: t.StringC;
28
+ recents_tab_instruction: t.StringC;
29
+ hotload_help_docs: t.BooleanC;
30
+ slash_filters_enabled: t.BooleanC;
31
+ recents_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
32
+ recommended_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
33
+ num_live_commands: t.NumberC;
34
+ help_center_sync: t.UnionC<[t.LiteralC<"upload-once">, t.LiteralC<"manual">, t.LiteralC<"automatic">]>;
35
+ show_suggested_synonyms: t.BooleanC;
36
+ bar_enabled: t.BooleanC;
37
+ in_bar_doc_search: t.BooleanC;
38
+ featured_item_cards: t.BooleanC;
39
+ helphub_ai_enabled: t.BooleanC;
40
+ chat_system_prompt_modifier: t.StringC;
41
+ helphub_chat_welcome_message: t.StringC;
42
+ helphub_suggested_queries_enabled: t.BooleanC;
43
+ helphub_continuations_enabled: t.BooleanC;
44
+ helphub_manual_suggested_queries: t.ArrayC<t.StringC>;
45
+ helphub_chat_only_mode: t.BooleanC;
46
+ helphub_enabled: t.BooleanC;
47
+ helphub_launcher_type: t.UnionC<[t.LiteralC<"bookOpen">, t.LiteralC<"graduationHat">, t.LiteralC<"bookClosed">, t.LiteralC<"bookmark">, t.LiteralC<"chatCircle">, t.LiteralC<"custom">, t.LiteralC<"none">]>;
48
+ helphub_launcher_position: t.UnionC<[t.LiteralC<"topRight">, t.LiteralC<"topLeft">, t.LiteralC<"bottomRight">, t.LiteralC<"bottomLeft">]>;
49
+ helphub_launcher_offset_x: t.NumberC;
50
+ helphub_launcher_offset_y: t.NumberC;
51
+ helphub_launcher_anchor: t.StringC;
52
+ helphub_chat_fallback_message: t.StringC;
53
+ helphub_chat_fallback_actions: t.ArrayC<t.TypeC<{
54
+ cta: t.StringC;
55
+ action: t.UnionC<[t.TypeC<{
56
+ type: t.LiteralC<"execute_command">;
57
+ meta: t.TypeC<{
58
+ command: t.StringC;
59
+ }>;
60
+ }>, t.TypeC<{
61
+ type: t.LiteralC<"no_action">;
62
+ }>, t.TypeC<{
63
+ type: t.LiteralC<"click">;
64
+ value: t.StringC;
65
+ }>, t.IntersectionC<[t.TypeC<{
66
+ type: t.LiteralC<"link">;
67
+ value: t.StringC;
68
+ }>, t.PartialC<{
69
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
70
+ }>]>, t.TypeC<{
71
+ type: t.LiteralC<"open_chat">;
72
+ meta: t.TypeC<{
73
+ type: t.StringC;
74
+ }>;
75
+ }>, t.TypeC<{
76
+ type: t.LiteralC<"dismiss">;
77
+ }>]>;
78
+ }>>;
79
+ nudge_rate_limit: t.UnionC<[t.NullC, t.NumberC]>;
80
+ bar_hide_completed_nudges_questlists: t.BooleanC;
81
+ nudge_rate_period: t.UnionC<[t.LiteralC<"day">, t.LiteralC<"week">, t.LiteralC<"session">]>;
82
+ }>;
83
+ export declare const read: (params?: Record<string, string> | undefined, callbacks?: {
84
+ onSuccess?: (() => void) | undefined;
85
+ onError?: ((err: string) => void) | undefined;
86
+ } | undefined) => Promise<{
87
+ end_user_limit: number;
88
+ user_seat_limit: number;
89
+ analytics_dashboard_execution_limit: number;
90
+ analytics_dashboard_deadend_limit: number;
91
+ silent_mode: boolean;
92
+ allow_event_handlers: boolean;
93
+ event_attribute_block_list: string[];
94
+ skins_limit: number;
95
+ skins_field_set: "basic" | "none" | "pro";
96
+ show_countdown_banner: boolean;
97
+ can_install_foobar: boolean;
98
+ releases_available: boolean;
99
+ releases_enabled: boolean;
100
+ releases_environments: string[];
101
+ in_bar_feedback: boolean;
102
+ force_end_user_identity_verification: boolean;
103
+ force_end_user_identity_verification_for_helphub: boolean;
104
+ summon_hotkey_override: string | null;
105
+ end_user_shortcuts_enabled: boolean;
106
+ fallback_commands: number[];
107
+ end_user_recents_enabled: boolean;
108
+ tab_direction: "horizontal" | "vertical";
109
+ recommended_tab_enabled: boolean;
110
+ recents_tab_enabled: boolean;
111
+ recommended_tab_instruction: string;
112
+ recents_tab_instruction: string;
113
+ hotload_help_docs: boolean;
114
+ slash_filters_enabled: boolean;
115
+ recents_sort_key: number | null;
116
+ recommended_sort_key: number | null;
117
+ num_live_commands: number;
118
+ help_center_sync: "manual" | "upload-once" | "automatic";
119
+ show_suggested_synonyms: boolean;
120
+ bar_enabled: boolean;
121
+ in_bar_doc_search: boolean;
122
+ featured_item_cards: boolean;
123
+ helphub_ai_enabled: boolean;
124
+ chat_system_prompt_modifier: string;
125
+ helphub_chat_welcome_message: string;
126
+ helphub_suggested_queries_enabled: boolean;
127
+ helphub_continuations_enabled: boolean;
128
+ helphub_manual_suggested_queries: string[];
129
+ helphub_chat_only_mode: boolean;
130
+ helphub_enabled: boolean;
131
+ helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle";
132
+ helphub_launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
133
+ helphub_launcher_offset_x: number;
134
+ helphub_launcher_offset_y: number;
135
+ helphub_launcher_anchor: string;
136
+ helphub_chat_fallback_message: string;
137
+ helphub_chat_fallback_actions: {
138
+ cta: string;
139
+ action: {
140
+ type: "execute_command";
141
+ meta: {
142
+ command: string;
143
+ };
144
+ } | {
145
+ type: "no_action";
146
+ } | {
147
+ type: "click";
148
+ value: string;
149
+ } | ({
150
+ type: "link";
151
+ value: string;
152
+ } & {
153
+ operation?: "self" | "router" | "blank" | undefined;
154
+ }) | {
155
+ type: "open_chat";
156
+ meta: {
157
+ type: string;
158
+ };
159
+ } | {
160
+ type: "dismiss";
161
+ };
162
+ }[];
163
+ nudge_rate_limit: number | null;
164
+ bar_hide_completed_nudges_questlists: boolean;
165
+ nudge_rate_period: "day" | "week" | "session";
166
+ }>;
167
+ export declare const update: (object: {
168
+ end_user_limit?: number | undefined;
169
+ user_seat_limit?: number | undefined;
170
+ analytics_dashboard_execution_limit?: number | undefined;
171
+ analytics_dashboard_deadend_limit?: number | undefined;
172
+ silent_mode?: boolean | undefined;
173
+ allow_event_handlers?: boolean | undefined;
174
+ event_attribute_block_list?: string[] | undefined;
175
+ skins_limit?: number | undefined;
176
+ skins_field_set?: "basic" | "none" | "pro" | undefined;
177
+ show_countdown_banner?: boolean | undefined;
178
+ can_install_foobar?: boolean | undefined;
179
+ releases_available?: boolean | undefined;
180
+ releases_enabled?: boolean | undefined;
181
+ releases_environments?: string[] | undefined;
182
+ in_bar_feedback?: boolean | undefined;
183
+ force_end_user_identity_verification?: boolean | undefined;
184
+ force_end_user_identity_verification_for_helphub?: boolean | undefined;
185
+ summon_hotkey_override?: string | null | undefined;
186
+ end_user_shortcuts_enabled?: boolean | undefined;
187
+ fallback_commands?: number[] | undefined;
188
+ end_user_recents_enabled?: boolean | undefined;
189
+ tab_direction?: "horizontal" | "vertical" | undefined;
190
+ recommended_tab_enabled?: boolean | undefined;
191
+ recents_tab_enabled?: boolean | undefined;
192
+ recommended_tab_instruction?: string | undefined;
193
+ recents_tab_instruction?: string | undefined;
194
+ hotload_help_docs?: boolean | undefined;
195
+ slash_filters_enabled?: boolean | undefined;
196
+ recents_sort_key?: number | null | undefined;
197
+ recommended_sort_key?: number | null | undefined;
198
+ num_live_commands?: number | undefined;
199
+ help_center_sync?: "manual" | "upload-once" | "automatic" | undefined;
200
+ show_suggested_synonyms?: boolean | undefined;
201
+ bar_enabled?: boolean | undefined;
202
+ in_bar_doc_search?: boolean | undefined;
203
+ featured_item_cards?: boolean | undefined;
204
+ helphub_ai_enabled?: boolean | undefined;
205
+ chat_system_prompt_modifier?: string | undefined;
206
+ helphub_chat_welcome_message?: string | undefined;
207
+ helphub_suggested_queries_enabled?: boolean | undefined;
208
+ helphub_continuations_enabled?: boolean | undefined;
209
+ helphub_manual_suggested_queries?: string[] | undefined;
210
+ helphub_chat_only_mode?: boolean | undefined;
211
+ helphub_enabled?: boolean | undefined;
212
+ helphub_launcher_type?: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle" | undefined;
213
+ helphub_launcher_position?: "topRight" | "topLeft" | "bottomRight" | "bottomLeft" | undefined;
214
+ helphub_launcher_offset_x?: number | undefined;
215
+ helphub_launcher_offset_y?: number | undefined;
216
+ helphub_launcher_anchor?: string | undefined;
217
+ helphub_chat_fallback_message?: string | undefined;
218
+ helphub_chat_fallback_actions?: {
219
+ cta: string;
220
+ action: {
221
+ type: "execute_command";
222
+ meta: {
223
+ command: string;
224
+ };
225
+ } | {
226
+ type: "no_action";
227
+ } | {
228
+ type: "click";
229
+ value: string;
230
+ } | ({
231
+ type: "link";
232
+ value: string;
233
+ } & {
234
+ operation?: "self" | "router" | "blank" | undefined;
235
+ }) | {
236
+ type: "open_chat";
237
+ meta: {
238
+ type: string;
239
+ };
240
+ } | {
241
+ type: "dismiss";
242
+ };
243
+ }[] | undefined;
244
+ nudge_rate_limit?: number | null | undefined;
245
+ bar_hide_completed_nudges_questlists?: boolean | undefined;
246
+ nudge_rate_period?: "day" | "week" | "session" | undefined;
247
+ }, params?: Record<string, string> | undefined, callbacks?: {
248
+ onSuccess?: (() => void) | undefined;
249
+ onError?: ((err: string) => void) | undefined;
250
+ } | undefined) => Promise<{
251
+ end_user_limit: number;
252
+ user_seat_limit: number;
253
+ analytics_dashboard_execution_limit: number;
254
+ analytics_dashboard_deadend_limit: number;
255
+ silent_mode: boolean;
256
+ allow_event_handlers: boolean;
257
+ event_attribute_block_list: string[];
258
+ skins_limit: number;
259
+ skins_field_set: "basic" | "none" | "pro";
260
+ show_countdown_banner: boolean;
261
+ can_install_foobar: boolean;
262
+ releases_available: boolean;
263
+ releases_enabled: boolean;
264
+ releases_environments: string[];
265
+ in_bar_feedback: boolean;
266
+ force_end_user_identity_verification: boolean;
267
+ force_end_user_identity_verification_for_helphub: boolean;
268
+ summon_hotkey_override: string | null;
269
+ end_user_shortcuts_enabled: boolean;
270
+ fallback_commands: number[];
271
+ end_user_recents_enabled: boolean;
272
+ tab_direction: "horizontal" | "vertical";
273
+ recommended_tab_enabled: boolean;
274
+ recents_tab_enabled: boolean;
275
+ recommended_tab_instruction: string;
276
+ recents_tab_instruction: string;
277
+ hotload_help_docs: boolean;
278
+ slash_filters_enabled: boolean;
279
+ recents_sort_key: number | null;
280
+ recommended_sort_key: number | null;
281
+ num_live_commands: number;
282
+ help_center_sync: "manual" | "upload-once" | "automatic";
283
+ show_suggested_synonyms: boolean;
284
+ bar_enabled: boolean;
285
+ in_bar_doc_search: boolean;
286
+ featured_item_cards: boolean;
287
+ helphub_ai_enabled: boolean;
288
+ chat_system_prompt_modifier: string;
289
+ helphub_chat_welcome_message: string;
290
+ helphub_suggested_queries_enabled: boolean;
291
+ helphub_continuations_enabled: boolean;
292
+ helphub_manual_suggested_queries: string[];
293
+ helphub_chat_only_mode: boolean;
294
+ helphub_enabled: boolean;
295
+ helphub_launcher_type: "none" | "custom" | "bookOpen" | "graduationHat" | "bookClosed" | "bookmark" | "chatCircle";
296
+ helphub_launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
297
+ helphub_launcher_offset_x: number;
298
+ helphub_launcher_offset_y: number;
299
+ helphub_launcher_anchor: string;
300
+ helphub_chat_fallback_message: string;
301
+ helphub_chat_fallback_actions: {
302
+ cta: string;
303
+ action: {
304
+ type: "execute_command";
305
+ meta: {
306
+ command: string;
307
+ };
308
+ } | {
309
+ type: "no_action";
310
+ } | {
311
+ type: "click";
312
+ value: string;
313
+ } | ({
314
+ type: "link";
315
+ value: string;
316
+ } & {
317
+ operation?: "self" | "router" | "blank" | undefined;
318
+ }) | {
319
+ type: "open_chat";
320
+ meta: {
321
+ type: string;
322
+ };
323
+ } | {
324
+ type: "dismiss";
325
+ };
326
+ }[];
327
+ nudge_rate_limit: number | null;
328
+ bar_hide_completed_nudges_questlists: boolean;
329
+ nudge_rate_period: "day" | "week" | "session";
330
+ }>;
@@ -0,0 +1,47 @@
1
+ import * as t from 'io-ts';
2
+ export declare const PlaceholderV: t.IntersectionC<[t.TypeC<{
3
+ id: t.NumberC;
4
+ organization: t.StringC;
5
+ slug: t.StringC;
6
+ text: t.StringC;
7
+ }>, t.PartialC<{}>]>;
8
+ export declare class Placeholder {
9
+ static create: (object: {
10
+ id: number;
11
+ organization: string;
12
+ slug: string;
13
+ text: string;
14
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
15
+ id: number;
16
+ organization: string;
17
+ slug: string;
18
+ text: string;
19
+ } & {}>;
20
+ static update: (object: {
21
+ id: number;
22
+ organization: string;
23
+ slug: string;
24
+ text: string;
25
+ } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
26
+ id: number;
27
+ organization: string;
28
+ slug: string;
29
+ text: string;
30
+ } & {}>;
31
+ static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
32
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
33
+ id: number;
34
+ organization: string;
35
+ slug: string;
36
+ text: string;
37
+ } & {})[]>;
38
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
39
+ onSuccess?: (() => void) | undefined;
40
+ onError?: ((err: string) => void) | undefined;
41
+ } | undefined) => Promise<{
42
+ id: number;
43
+ organization: string;
44
+ slug: string;
45
+ text: string;
46
+ } & {}>;
47
+ }
@@ -0,0 +1,11 @@
1
+ import * as t from 'io-ts';
2
+ export declare const ProfileV: t.TypeC<{
3
+ user: t.StringC;
4
+ organization: t.StringC;
5
+ }>;
6
+ export declare class Profile {
7
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
8
+ user: string;
9
+ organization: string;
10
+ }[]>;
11
+ }