commandbar 1.8.7 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/internal/src/client/AddContextOptions.d.ts +4 -0
  3. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -1
  4. package/build/internal/src/client/CommandBarClientSDK.d.ts +25 -7
  5. package/build/internal/src/client/CommandBarProxySDK.d.ts +3 -3
  6. package/build/internal/src/client/CommandBarSDK.d.ts +23 -12
  7. package/build/internal/src/client/EventHandler.d.ts +19 -5
  8. package/build/internal/src/client/globals.d.ts +6 -0
  9. package/build/internal/src/client/symbols.d.ts +11 -6
  10. package/build/internal/src/middleware/CommandFromClientV.d.ts +68 -10
  11. package/build/internal/src/middleware/OrganizationV.d.ts +124 -20
  12. package/build/internal/src/middleware/additionalResource.d.ts +178 -16
  13. package/build/internal/src/middleware/billing.d.ts +33 -0
  14. package/build/internal/src/middleware/chat.d.ts +10913 -0
  15. package/build/internal/src/middleware/checklist.d.ts +106 -28
  16. package/build/internal/src/middleware/command.d.ts +3778 -446
  17. package/build/internal/src/middleware/detailPreview.d.ts +12 -1
  18. package/build/internal/src/middleware/endUser.d.ts +104 -0
  19. package/build/internal/src/middleware/generics.d.ts +12 -11
  20. package/build/internal/src/middleware/helpDocsIntegration.d.ts +54 -8
  21. package/build/internal/src/middleware/helpDocsSearch.d.ts +2204 -0
  22. package/build/internal/src/middleware/helpHub.d.ts +26 -0
  23. package/build/internal/src/middleware/helpers/actions.d.ts +116 -8
  24. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +82 -2
  25. package/build/internal/src/middleware/helpers/pushTrigger.d.ts +6 -0
  26. package/build/internal/src/middleware/helpers/rules.d.ts +285 -26
  27. package/build/internal/src/middleware/network.d.ts +18 -3
  28. package/build/internal/src/middleware/nudge.d.ts +1193 -43
  29. package/build/internal/src/middleware/organization.d.ts +1051 -141
  30. package/build/internal/src/middleware/organizationSettings.d.ts +129 -22
  31. package/build/internal/src/middleware/recommendationSet.d.ts +408 -1007
  32. package/build/internal/src/middleware/types.d.ts +43 -25
  33. package/build/internal/src/util/dispatchCustomEvent.d.ts +3 -1
  34. package/build/internal/src/util/operatingSystem.d.ts +13 -0
  35. package/build/internal/src/util/sentry.d.ts +23 -0
  36. package/package.json +3 -3
  37. package/build/internal/src/client/SentryReporter.d.ts +0 -63
  38. package/build/internal/src/middleware/chatAnalytics.d.ts +0 -2601
  39. package/build/internal/src/middleware/helpers/endUser.d.ts +0 -11
  40. package/build/internal/src/middleware/qaPair.d.ts +0 -676
  41. package/build/internal/src/util/integrations.d.ts +0 -1
@@ -0,0 +1,2204 @@
1
+ import * as t from 'io-ts';
2
+ import * as axiosInstance from './network';
3
+ import { IOrganizationType, ISearchHelpDocsPayloadType } from './types';
4
+ export declare const FilterV: t.UnionC<[t.PartialC<{
5
+ labels: t.ArrayC<t.StringC>;
6
+ }>, t.NullC]>;
7
+ export declare const HelpDocHitV: t.TypeC<{
8
+ score: t.ArrayC<t.NumberC>;
9
+ command: t.Type<{
10
+ id: number;
11
+ text: string;
12
+ template: ({
13
+ type: "admin";
14
+ value: string;
15
+ } & {} & {
16
+ commandType?: "object" | "help" | "independent" | undefined;
17
+ object?: string | undefined;
18
+ hoverTooltip?: boolean | undefined;
19
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
20
+ }) | ({
21
+ type: "callback";
22
+ value: string;
23
+ } & {} & {
24
+ commandType?: "object" | "help" | "independent" | undefined;
25
+ object?: string | undefined;
26
+ hoverTooltip?: boolean | undefined;
27
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
28
+ }) | ({
29
+ type: "link";
30
+ value: string;
31
+ } & {
32
+ operation?: "self" | "router" | "blank" | undefined;
33
+ } & {} & {
34
+ commandType?: "object" | "help" | "independent" | undefined;
35
+ object?: string | undefined;
36
+ hoverTooltip?: boolean | undefined;
37
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
38
+ }) | ({
39
+ type: "click" | "clickByXpath" | "clickBySelector";
40
+ value: string[];
41
+ } & {} & {
42
+ commandType?: "object" | "help" | "independent" | undefined;
43
+ object?: string | undefined;
44
+ hoverTooltip?: boolean | undefined;
45
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
46
+ }) | ({
47
+ type: "builtin";
48
+ value: string;
49
+ } & {} & {
50
+ commandType?: "object" | "help" | "independent" | undefined;
51
+ object?: string | undefined;
52
+ hoverTooltip?: boolean | undefined;
53
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
54
+ }) | ({
55
+ type: "webhook";
56
+ value: string;
57
+ } & {} & {
58
+ commandType?: "object" | "help" | "independent" | undefined;
59
+ object?: string | undefined;
60
+ hoverTooltip?: boolean | undefined;
61
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
62
+ }) | ({
63
+ type: "script";
64
+ value: string;
65
+ } & {} & {
66
+ commandType?: "object" | "help" | "independent" | undefined;
67
+ object?: string | undefined;
68
+ hoverTooltip?: boolean | undefined;
69
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
70
+ }) | ({
71
+ type: "request";
72
+ value: {
73
+ method: "head" | "options" | "get" | "post" | "put" | "delete" | "patch";
74
+ url: string;
75
+ } & {
76
+ headers?: {
77
+ [key: string]: unknown;
78
+ } | undefined;
79
+ body?: {
80
+ [key: string]: unknown;
81
+ } | undefined;
82
+ onSend?: string | undefined;
83
+ onSuccess?: string | undefined;
84
+ onError?: string | undefined;
85
+ };
86
+ } & {} & {
87
+ commandType?: "object" | "help" | "independent" | undefined;
88
+ object?: string | undefined;
89
+ hoverTooltip?: boolean | undefined;
90
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
91
+ }) | ({
92
+ type: "appcues";
93
+ value: string;
94
+ } & {} & {
95
+ commandType?: "object" | "help" | "independent" | undefined;
96
+ object?: string | undefined;
97
+ hoverTooltip?: boolean | undefined;
98
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
99
+ }) | ({
100
+ type: "video";
101
+ value: string;
102
+ } & {} & {
103
+ commandType?: "object" | "help" | "independent" | undefined;
104
+ object?: string | undefined;
105
+ hoverTooltip?: boolean | undefined;
106
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
107
+ }) | ({
108
+ type: "helpdoc";
109
+ value: string;
110
+ } & {
111
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
112
+ doc_metadata?: {
113
+ content_type?: string | undefined;
114
+ date?: string | undefined;
115
+ } | undefined;
116
+ } & {
117
+ doc_type?: "answer" | "doc" | undefined;
118
+ } & {} & {
119
+ commandType?: "object" | "help" | "independent" | undefined;
120
+ object?: string | undefined;
121
+ hoverTooltip?: boolean | undefined;
122
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
123
+ }) | ({
124
+ type: "trigger";
125
+ value: {
126
+ type: "execute_command";
127
+ meta: {
128
+ command: string;
129
+ };
130
+ } | {
131
+ type: "click";
132
+ value: string;
133
+ } | ({
134
+ type: "link";
135
+ value: string;
136
+ } & {
137
+ operation?: "self" | "router" | "blank" | undefined;
138
+ }) | {
139
+ type: "open_chat";
140
+ meta: {
141
+ type: string;
142
+ };
143
+ } | {
144
+ type: "dismiss";
145
+ } | {
146
+ type: "snooze";
147
+ } | {
148
+ type: "questlist";
149
+ value: number;
150
+ } | {
151
+ type: "step_back";
152
+ } | {
153
+ type: "nudge";
154
+ value: number;
155
+ } | {
156
+ type: "go_to_step";
157
+ value: number;
158
+ } | ({
159
+ type: "open_bar";
160
+ } & {
161
+ value?: string | undefined;
162
+ categoryFilter?: number | undefined;
163
+ }) | {
164
+ type: "no_action";
165
+ };
166
+ } & {} & {
167
+ commandType?: "object" | "help" | "independent" | undefined;
168
+ object?: string | undefined;
169
+ hoverTooltip?: boolean | undefined;
170
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
171
+ });
172
+ } & {
173
+ disabledReason?: string | undefined;
174
+ source?: string | undefined;
175
+ name?: string | undefined;
176
+ last_available?: string | null | undefined;
177
+ modified?: string | undefined;
178
+ isAsync?: boolean | undefined;
179
+ } & {
180
+ arguments: {
181
+ [x: string]: ({
182
+ type: "context";
183
+ value: string;
184
+ order_key: number;
185
+ } & {
186
+ label?: string | undefined;
187
+ chosen?: string | number | undefined;
188
+ selected?: any[] | undefined;
189
+ input_type?: string | undefined;
190
+ preselected_key?: string | undefined;
191
+ label_field?: string | undefined;
192
+ loaded?: any[] | undefined;
193
+ allow_create?: boolean | undefined;
194
+ allow_create_label?: string | undefined;
195
+ show_in_record_action_list?: boolean | undefined;
196
+ show_in_default_list?: boolean | undefined;
197
+ auto_choose?: boolean | undefined;
198
+ is_private?: boolean | undefined;
199
+ }) | ({
200
+ type: "set";
201
+ value: string[] | number[] | {
202
+ [key: string]: unknown;
203
+ }[];
204
+ order_key: number;
205
+ } & {
206
+ label?: string | undefined;
207
+ chosen?: string | number | undefined;
208
+ selected?: any[] | undefined;
209
+ input_type?: string | undefined;
210
+ preselected_key?: string | undefined;
211
+ label_field?: string | undefined;
212
+ loaded?: any[] | undefined;
213
+ allow_create?: boolean | undefined;
214
+ allow_create_label?: string | undefined;
215
+ auto_choose?: boolean | undefined;
216
+ is_private?: boolean | undefined;
217
+ }) | ({
218
+ type: "provided";
219
+ value: "time" | "text";
220
+ order_key: number;
221
+ } & {
222
+ label?: string | undefined;
223
+ chosen?: string | number | undefined;
224
+ selected?: any[] | undefined;
225
+ input_type?: string | undefined;
226
+ preselected_key?: string | undefined;
227
+ label_field?: string | undefined;
228
+ loaded?: any[] | undefined;
229
+ dateTimeArgumentTypeId?: number | undefined;
230
+ allow_create?: boolean | undefined;
231
+ allow_create_label?: string | undefined;
232
+ auto_choose?: boolean | undefined;
233
+ is_private?: boolean | undefined;
234
+ }) | ({
235
+ type: "html" | "video";
236
+ value: {
237
+ source: string;
238
+ } & {
239
+ title?: string | undefined;
240
+ description?: string | undefined;
241
+ url?: string | undefined;
242
+ };
243
+ order_key: number;
244
+ } & {
245
+ label?: string | undefined;
246
+ chosen?: string | number | undefined;
247
+ selected?: any[] | undefined;
248
+ input_type?: string | undefined;
249
+ preselected_key?: string | undefined;
250
+ label_field?: string | undefined;
251
+ loaded?: any[] | undefined;
252
+ allow_create?: boolean | undefined;
253
+ allow_create_label?: string | undefined;
254
+ is_private?: boolean | undefined;
255
+ auto_choose?: boolean | undefined;
256
+ });
257
+ };
258
+ tags: string[];
259
+ availability_rules: (({
260
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
261
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
262
+ } & {
263
+ field?: string | undefined;
264
+ value?: string | undefined;
265
+ reason?: string | undefined;
266
+ rule_id?: string | number | undefined;
267
+ }) | ({
268
+ type: "nudge_interaction";
269
+ operator: "is" | "isNot";
270
+ value: "completed" | "dismissed" | "viewed";
271
+ nudge_id: number;
272
+ } & {
273
+ reason?: string | undefined;
274
+ }) | ({
275
+ type: "questlist_interaction";
276
+ operator: "is" | "isNot";
277
+ value: "completed" | "dismissed" | "viewed";
278
+ questlist_id: number;
279
+ } & {
280
+ reason?: string | undefined;
281
+ }) | ({
282
+ type: "browser" | "language" | "os";
283
+ operator: "includes" | "doesNotInclude";
284
+ values: string[];
285
+ } & {
286
+ reason?: string | undefined;
287
+ }))[];
288
+ recommend_rules: (({
289
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
290
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
291
+ } & {
292
+ field?: string | undefined;
293
+ value?: string | undefined;
294
+ reason?: string | undefined;
295
+ rule_id?: string | number | undefined;
296
+ }) | ({
297
+ type: "nudge_interaction";
298
+ operator: "is" | "isNot";
299
+ value: "completed" | "dismissed" | "viewed";
300
+ nudge_id: number;
301
+ } & {
302
+ reason?: string | undefined;
303
+ }) | ({
304
+ type: "questlist_interaction";
305
+ operator: "is" | "isNot";
306
+ value: "completed" | "dismissed" | "viewed";
307
+ questlist_id: number;
308
+ } & {
309
+ reason?: string | undefined;
310
+ }) | ({
311
+ type: "browser" | "language" | "os";
312
+ operator: "includes" | "doesNotInclude";
313
+ values: string[];
314
+ } & {
315
+ reason?: string | undefined;
316
+ }) | ({
317
+ type: "always";
318
+ } & {
319
+ operator?: null | undefined;
320
+ field?: null | undefined;
321
+ value?: null | undefined;
322
+ reason?: null | undefined;
323
+ rule_id?: string | number | undefined;
324
+ }))[];
325
+ availability_expression: import("./helpers/rules").RuleExpression | null;
326
+ recommend_expression: import("./helpers/rules").RuleExpression | null;
327
+ always_recommend: boolean;
328
+ confirm: string;
329
+ shortcut: string[];
330
+ explanation: string;
331
+ heading: string;
332
+ is_live: boolean;
333
+ category: number | null;
334
+ sort_key: number | null;
335
+ icon: string | null;
336
+ icon_color: string | null;
337
+ image_color: string | null;
338
+ image: string | null;
339
+ celebrate: boolean | {
340
+ angle?: number | undefined;
341
+ spread?: number | undefined;
342
+ width?: string | undefined;
343
+ height?: string | undefined;
344
+ duration?: number | undefined;
345
+ dragFriction?: number | undefined;
346
+ stagger?: number | undefined;
347
+ startVelocity?: number | undefined;
348
+ elementCount?: number | undefined;
349
+ decay?: number | undefined;
350
+ colors?: string[] | undefined;
351
+ random?: any;
352
+ } | null;
353
+ recommend_sort_key: number | null;
354
+ shortcut_mac: string[];
355
+ shortcut_win: string[];
356
+ hotkey_mac: string;
357
+ hotkey_win: string;
358
+ detail: string | ({
359
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
360
+ value: string;
361
+ } & {
362
+ position?: "inline" | "popover" | undefined;
363
+ }) | (string | ({
364
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
365
+ value: string;
366
+ } & {
367
+ position?: "inline" | "popover" | undefined;
368
+ }))[] | null;
369
+ content: string | ({
370
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
371
+ value: string;
372
+ } & {
373
+ position?: "inline" | "popover" | undefined;
374
+ }) | (string | ({
375
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
376
+ value: string;
377
+ } & {
378
+ position?: "inline" | "popover" | undefined;
379
+ }))[] | null;
380
+ show_preview: boolean;
381
+ next_steps: (string | number | {
382
+ cta: string;
383
+ action: {
384
+ type: "execute_command";
385
+ meta: {
386
+ command: string;
387
+ };
388
+ } | {
389
+ type: "click";
390
+ value: string;
391
+ } | ({
392
+ type: "link";
393
+ value: string;
394
+ } & {
395
+ operation?: "self" | "router" | "blank" | undefined;
396
+ }) | {
397
+ type: "open_chat";
398
+ meta: {
399
+ type: string;
400
+ };
401
+ } | {
402
+ type: "dismiss";
403
+ } | {
404
+ type: "snooze";
405
+ } | {
406
+ type: "questlist";
407
+ value: number;
408
+ } | {
409
+ type: "step_back";
410
+ } | {
411
+ type: "nudge";
412
+ value: number;
413
+ } | {
414
+ type: "go_to_step";
415
+ value: number;
416
+ } | ({
417
+ type: "open_bar";
418
+ } & {
419
+ value?: string | undefined;
420
+ categoryFilter?: number | undefined;
421
+ }) | {
422
+ type: "no_action";
423
+ };
424
+ })[];
425
+ extra: string | null;
426
+ thumbnail: {
427
+ src: string;
428
+ file_name: string;
429
+ size: string;
430
+ } | null;
431
+ copilot_suggest: boolean;
432
+ copilot_cta_label: string;
433
+ copilot_description: string;
434
+ } & {
435
+ third_party_source?: string | null | undefined;
436
+ third_party_id?: string | null | undefined;
437
+ training_only?: boolean | undefined;
438
+ integration?: {
439
+ id: number;
440
+ helphub_view_article_button_hidden: boolean | undefined;
441
+ } | null | undefined;
442
+ }, {
443
+ id: number;
444
+ text: string;
445
+ template: ({
446
+ type: "admin";
447
+ value: string;
448
+ } & {} & {
449
+ commandType?: "object" | "help" | "independent" | undefined;
450
+ object?: string | undefined;
451
+ hoverTooltip?: boolean | undefined;
452
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
453
+ }) | ({
454
+ type: "callback";
455
+ value: string;
456
+ } & {} & {
457
+ commandType?: "object" | "help" | "independent" | undefined;
458
+ object?: string | undefined;
459
+ hoverTooltip?: boolean | undefined;
460
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
461
+ }) | ({
462
+ type: "link";
463
+ value: string;
464
+ } & {
465
+ operation?: "self" | "router" | "blank" | undefined;
466
+ } & {} & {
467
+ commandType?: "object" | "help" | "independent" | undefined;
468
+ object?: string | undefined;
469
+ hoverTooltip?: boolean | undefined;
470
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
471
+ }) | ({
472
+ type: "click" | "clickByXpath" | "clickBySelector";
473
+ value: string[];
474
+ } & {} & {
475
+ commandType?: "object" | "help" | "independent" | undefined;
476
+ object?: string | undefined;
477
+ hoverTooltip?: boolean | undefined;
478
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
479
+ }) | ({
480
+ type: "builtin";
481
+ value: string;
482
+ } & {} & {
483
+ commandType?: "object" | "help" | "independent" | undefined;
484
+ object?: string | undefined;
485
+ hoverTooltip?: boolean | undefined;
486
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
487
+ }) | ({
488
+ type: "webhook";
489
+ value: string;
490
+ } & {} & {
491
+ commandType?: "object" | "help" | "independent" | undefined;
492
+ object?: string | undefined;
493
+ hoverTooltip?: boolean | undefined;
494
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
495
+ }) | ({
496
+ type: "script";
497
+ value: string;
498
+ } & {} & {
499
+ commandType?: "object" | "help" | "independent" | undefined;
500
+ object?: string | undefined;
501
+ hoverTooltip?: boolean | undefined;
502
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
503
+ }) | ({
504
+ type: "request";
505
+ value: {
506
+ method: "head" | "options" | "get" | "post" | "put" | "delete" | "patch";
507
+ url: string;
508
+ } & {
509
+ headers?: {
510
+ [key: string]: unknown;
511
+ } | undefined;
512
+ body?: {
513
+ [key: string]: unknown;
514
+ } | undefined;
515
+ onSend?: string | undefined;
516
+ onSuccess?: string | undefined;
517
+ onError?: string | undefined;
518
+ };
519
+ } & {} & {
520
+ commandType?: "object" | "help" | "independent" | undefined;
521
+ object?: string | undefined;
522
+ hoverTooltip?: boolean | undefined;
523
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
524
+ }) | ({
525
+ type: "appcues";
526
+ value: string;
527
+ } & {} & {
528
+ commandType?: "object" | "help" | "independent" | undefined;
529
+ object?: string | undefined;
530
+ hoverTooltip?: boolean | undefined;
531
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
532
+ }) | ({
533
+ type: "video";
534
+ value: string;
535
+ } & {} & {
536
+ commandType?: "object" | "help" | "independent" | undefined;
537
+ object?: string | undefined;
538
+ hoverTooltip?: boolean | undefined;
539
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
540
+ }) | ({
541
+ type: "helpdoc";
542
+ value: string;
543
+ } & {
544
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
545
+ doc_metadata?: {
546
+ content_type?: string | undefined;
547
+ date?: string | undefined;
548
+ } | undefined;
549
+ } & {
550
+ doc_type?: "answer" | "doc" | undefined;
551
+ } & {} & {
552
+ commandType?: "object" | "help" | "independent" | undefined;
553
+ object?: string | undefined;
554
+ hoverTooltip?: boolean | undefined;
555
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
556
+ }) | ({
557
+ type: "trigger";
558
+ value: {
559
+ type: "execute_command";
560
+ meta: {
561
+ command: string;
562
+ };
563
+ } | {
564
+ type: "click";
565
+ value: string;
566
+ } | ({
567
+ type: "link";
568
+ value: string;
569
+ } & {
570
+ operation?: "self" | "router" | "blank" | undefined;
571
+ }) | {
572
+ type: "open_chat";
573
+ meta: {
574
+ type: string;
575
+ };
576
+ } | {
577
+ type: "dismiss";
578
+ } | {
579
+ type: "snooze";
580
+ } | {
581
+ type: "questlist";
582
+ value: number;
583
+ } | {
584
+ type: "step_back";
585
+ } | {
586
+ type: "nudge";
587
+ value: number;
588
+ } | {
589
+ type: "go_to_step";
590
+ value: number;
591
+ } | ({
592
+ type: "open_bar";
593
+ } & {
594
+ value?: string | undefined;
595
+ categoryFilter?: number | undefined;
596
+ }) | {
597
+ type: "no_action";
598
+ };
599
+ } & {} & {
600
+ commandType?: "object" | "help" | "independent" | undefined;
601
+ object?: string | undefined;
602
+ hoverTooltip?: boolean | undefined;
603
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
604
+ });
605
+ } & {
606
+ disabledReason?: string | undefined;
607
+ source?: string | undefined;
608
+ name?: string | undefined;
609
+ last_available?: string | null | undefined;
610
+ modified?: string | undefined;
611
+ isAsync?: boolean | undefined;
612
+ } & {
613
+ arguments: {
614
+ [x: string]: ({
615
+ type: "context";
616
+ value: string;
617
+ order_key: number;
618
+ } & {
619
+ label?: string | undefined;
620
+ chosen?: string | number | undefined;
621
+ selected?: any[] | undefined;
622
+ input_type?: string | undefined;
623
+ preselected_key?: string | undefined;
624
+ label_field?: string | undefined;
625
+ loaded?: any[] | undefined;
626
+ allow_create?: boolean | undefined;
627
+ allow_create_label?: string | undefined;
628
+ show_in_record_action_list?: boolean | undefined;
629
+ show_in_default_list?: boolean | undefined;
630
+ auto_choose?: boolean | undefined;
631
+ is_private?: boolean | undefined;
632
+ }) | ({
633
+ type: "set";
634
+ value: string[] | number[] | {
635
+ [key: string]: unknown;
636
+ }[];
637
+ order_key: number;
638
+ } & {
639
+ label?: string | undefined;
640
+ chosen?: string | number | undefined;
641
+ selected?: any[] | undefined;
642
+ input_type?: string | undefined;
643
+ preselected_key?: string | undefined;
644
+ label_field?: string | undefined;
645
+ loaded?: any[] | undefined;
646
+ allow_create?: boolean | undefined;
647
+ allow_create_label?: string | undefined;
648
+ auto_choose?: boolean | undefined;
649
+ is_private?: boolean | undefined;
650
+ }) | ({
651
+ type: "provided";
652
+ value: "time" | "text";
653
+ order_key: number;
654
+ } & {
655
+ label?: string | undefined;
656
+ chosen?: string | number | undefined;
657
+ selected?: any[] | undefined;
658
+ input_type?: string | undefined;
659
+ preselected_key?: string | undefined;
660
+ label_field?: string | undefined;
661
+ loaded?: any[] | undefined;
662
+ dateTimeArgumentTypeId?: number | undefined;
663
+ allow_create?: boolean | undefined;
664
+ allow_create_label?: string | undefined;
665
+ auto_choose?: boolean | undefined;
666
+ is_private?: boolean | undefined;
667
+ }) | ({
668
+ type: "html" | "video";
669
+ value: {
670
+ source: string;
671
+ } & {
672
+ title?: string | undefined;
673
+ description?: string | undefined;
674
+ url?: string | undefined;
675
+ };
676
+ order_key: number;
677
+ } & {
678
+ label?: string | undefined;
679
+ chosen?: string | number | undefined;
680
+ selected?: any[] | undefined;
681
+ input_type?: string | undefined;
682
+ preselected_key?: string | undefined;
683
+ label_field?: string | undefined;
684
+ loaded?: any[] | undefined;
685
+ allow_create?: boolean | undefined;
686
+ allow_create_label?: string | undefined;
687
+ is_private?: boolean | undefined;
688
+ auto_choose?: boolean | undefined;
689
+ });
690
+ };
691
+ tags: string[];
692
+ availability_rules: (({
693
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
694
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
695
+ } & {
696
+ field?: string | undefined;
697
+ value?: string | undefined;
698
+ reason?: string | undefined;
699
+ rule_id?: string | number | undefined;
700
+ }) | ({
701
+ type: "nudge_interaction";
702
+ operator: "is" | "isNot";
703
+ value: "completed" | "dismissed" | "viewed";
704
+ nudge_id: number;
705
+ } & {
706
+ reason?: string | undefined;
707
+ }) | ({
708
+ type: "questlist_interaction";
709
+ operator: "is" | "isNot";
710
+ value: "completed" | "dismissed" | "viewed";
711
+ questlist_id: number;
712
+ } & {
713
+ reason?: string | undefined;
714
+ }) | ({
715
+ type: "browser" | "language" | "os";
716
+ operator: "includes" | "doesNotInclude";
717
+ values: string[];
718
+ } & {
719
+ reason?: string | undefined;
720
+ }))[];
721
+ recommend_rules: (({
722
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
723
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
724
+ } & {
725
+ field?: string | undefined;
726
+ value?: string | undefined;
727
+ reason?: string | undefined;
728
+ rule_id?: string | number | undefined;
729
+ }) | ({
730
+ type: "nudge_interaction";
731
+ operator: "is" | "isNot";
732
+ value: "completed" | "dismissed" | "viewed";
733
+ nudge_id: number;
734
+ } & {
735
+ reason?: string | undefined;
736
+ }) | ({
737
+ type: "questlist_interaction";
738
+ operator: "is" | "isNot";
739
+ value: "completed" | "dismissed" | "viewed";
740
+ questlist_id: number;
741
+ } & {
742
+ reason?: string | undefined;
743
+ }) | ({
744
+ type: "browser" | "language" | "os";
745
+ operator: "includes" | "doesNotInclude";
746
+ values: string[];
747
+ } & {
748
+ reason?: string | undefined;
749
+ }) | ({
750
+ type: "always";
751
+ } & {
752
+ operator?: null | undefined;
753
+ field?: null | undefined;
754
+ value?: null | undefined;
755
+ reason?: null | undefined;
756
+ rule_id?: string | number | undefined;
757
+ }))[];
758
+ availability_expression: import("./helpers/rules").RuleExpression | null;
759
+ recommend_expression: import("./helpers/rules").RuleExpression | null;
760
+ always_recommend: boolean;
761
+ confirm: string;
762
+ shortcut: string[];
763
+ explanation: string;
764
+ heading: string;
765
+ is_live: boolean;
766
+ category: number | null;
767
+ sort_key: number | null;
768
+ icon: string | null;
769
+ icon_color: string | null;
770
+ image_color: string | null;
771
+ image: string | null;
772
+ celebrate: boolean | {
773
+ angle?: number | undefined;
774
+ spread?: number | undefined;
775
+ width?: string | undefined;
776
+ height?: string | undefined;
777
+ duration?: number | undefined;
778
+ dragFriction?: number | undefined;
779
+ stagger?: number | undefined;
780
+ startVelocity?: number | undefined;
781
+ elementCount?: number | undefined;
782
+ decay?: number | undefined;
783
+ colors?: string[] | undefined;
784
+ random?: any;
785
+ } | null;
786
+ recommend_sort_key: number | null;
787
+ shortcut_mac: string[];
788
+ shortcut_win: string[];
789
+ hotkey_mac: string;
790
+ hotkey_win: string;
791
+ detail: string | ({
792
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
793
+ value: string;
794
+ } & {
795
+ position?: "inline" | "popover" | undefined;
796
+ }) | (string | ({
797
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
798
+ value: string;
799
+ } & {
800
+ position?: "inline" | "popover" | undefined;
801
+ }))[] | null;
802
+ content: string | ({
803
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
804
+ value: string;
805
+ } & {
806
+ position?: "inline" | "popover" | undefined;
807
+ }) | (string | ({
808
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
809
+ value: string;
810
+ } & {
811
+ position?: "inline" | "popover" | undefined;
812
+ }))[] | null;
813
+ show_preview: boolean;
814
+ next_steps: (string | number | {
815
+ cta: string;
816
+ action: {
817
+ type: "execute_command";
818
+ meta: {
819
+ command: string;
820
+ };
821
+ } | {
822
+ type: "click";
823
+ value: string;
824
+ } | ({
825
+ type: "link";
826
+ value: string;
827
+ } & {
828
+ operation?: "self" | "router" | "blank" | undefined;
829
+ }) | {
830
+ type: "open_chat";
831
+ meta: {
832
+ type: string;
833
+ };
834
+ } | {
835
+ type: "dismiss";
836
+ } | {
837
+ type: "snooze";
838
+ } | {
839
+ type: "questlist";
840
+ value: number;
841
+ } | {
842
+ type: "step_back";
843
+ } | {
844
+ type: "nudge";
845
+ value: number;
846
+ } | {
847
+ type: "go_to_step";
848
+ value: number;
849
+ } | ({
850
+ type: "open_bar";
851
+ } & {
852
+ value?: string | undefined;
853
+ categoryFilter?: number | undefined;
854
+ }) | {
855
+ type: "no_action";
856
+ };
857
+ })[];
858
+ extra: string | null;
859
+ thumbnail: {
860
+ src: string;
861
+ file_name: string;
862
+ size: string;
863
+ } | null;
864
+ copilot_suggest: boolean;
865
+ copilot_cta_label: string;
866
+ copilot_description: string;
867
+ } & {
868
+ third_party_source?: string | null | undefined;
869
+ third_party_id?: string | null | undefined;
870
+ training_only?: boolean | undefined;
871
+ integration?: {
872
+ id: number;
873
+ helphub_view_article_button_hidden: boolean | undefined;
874
+ } | null | undefined;
875
+ }, any>;
876
+ excerpt: t.StringC;
877
+ }>;
878
+ export declare const SearchHelpDocsResponseV: t.TypeC<{
879
+ data: t.ArrayC<t.TypeC<{
880
+ hit: t.TypeC<{
881
+ score: t.ArrayC<t.NumberC>;
882
+ command: t.Type<{
883
+ id: number;
884
+ text: string;
885
+ template: ({
886
+ type: "admin";
887
+ value: string;
888
+ } & {} & {
889
+ commandType?: "object" | "help" | "independent" | undefined;
890
+ object?: string | undefined;
891
+ hoverTooltip?: boolean | undefined;
892
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
893
+ }) | ({
894
+ type: "callback";
895
+ value: string;
896
+ } & {} & {
897
+ commandType?: "object" | "help" | "independent" | undefined;
898
+ object?: string | undefined;
899
+ hoverTooltip?: boolean | undefined;
900
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
901
+ }) | ({
902
+ type: "link";
903
+ value: string;
904
+ } & {
905
+ operation?: "self" | "router" | "blank" | undefined;
906
+ } & {} & {
907
+ commandType?: "object" | "help" | "independent" | undefined;
908
+ object?: string | undefined;
909
+ hoverTooltip?: boolean | undefined;
910
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
911
+ }) | ({
912
+ type: "click" | "clickByXpath" | "clickBySelector";
913
+ value: string[];
914
+ } & {} & {
915
+ commandType?: "object" | "help" | "independent" | undefined;
916
+ object?: string | undefined;
917
+ hoverTooltip?: boolean | undefined;
918
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
919
+ }) | ({
920
+ type: "builtin";
921
+ value: string;
922
+ } & {} & {
923
+ commandType?: "object" | "help" | "independent" | undefined;
924
+ object?: string | undefined;
925
+ hoverTooltip?: boolean | undefined;
926
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
927
+ }) | ({
928
+ type: "webhook";
929
+ value: string;
930
+ } & {} & {
931
+ commandType?: "object" | "help" | "independent" | undefined;
932
+ object?: string | undefined;
933
+ hoverTooltip?: boolean | undefined;
934
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
935
+ }) | ({
936
+ type: "script";
937
+ value: string;
938
+ } & {} & {
939
+ commandType?: "object" | "help" | "independent" | undefined;
940
+ object?: string | undefined;
941
+ hoverTooltip?: boolean | undefined;
942
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
943
+ }) | ({
944
+ type: "request";
945
+ value: {
946
+ method: "head" | "options" | "get" | "post" | "put" | "delete" | "patch";
947
+ url: string;
948
+ } & {
949
+ headers?: {
950
+ [key: string]: unknown;
951
+ } | undefined;
952
+ body?: {
953
+ [key: string]: unknown;
954
+ } | undefined;
955
+ onSend?: string | undefined;
956
+ onSuccess?: string | undefined;
957
+ onError?: string | undefined;
958
+ };
959
+ } & {} & {
960
+ commandType?: "object" | "help" | "independent" | undefined;
961
+ object?: string | undefined;
962
+ hoverTooltip?: boolean | undefined;
963
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
964
+ }) | ({
965
+ type: "appcues";
966
+ value: string;
967
+ } & {} & {
968
+ commandType?: "object" | "help" | "independent" | undefined;
969
+ object?: string | undefined;
970
+ hoverTooltip?: boolean | undefined;
971
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
972
+ }) | ({
973
+ type: "video";
974
+ value: string;
975
+ } & {} & {
976
+ commandType?: "object" | "help" | "independent" | undefined;
977
+ object?: string | undefined;
978
+ hoverTooltip?: boolean | undefined;
979
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
980
+ }) | ({
981
+ type: "helpdoc";
982
+ value: string;
983
+ } & {
984
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
985
+ doc_metadata?: {
986
+ content_type?: string | undefined;
987
+ date?: string | undefined;
988
+ } | undefined;
989
+ } & {
990
+ doc_type?: "answer" | "doc" | undefined;
991
+ } & {} & {
992
+ commandType?: "object" | "help" | "independent" | undefined;
993
+ object?: string | undefined;
994
+ hoverTooltip?: boolean | undefined;
995
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
996
+ }) | ({
997
+ type: "trigger";
998
+ value: {
999
+ type: "execute_command";
1000
+ meta: {
1001
+ command: string;
1002
+ };
1003
+ } | {
1004
+ type: "click";
1005
+ value: string;
1006
+ } | ({
1007
+ type: "link";
1008
+ value: string;
1009
+ } & {
1010
+ operation?: "self" | "router" | "blank" | undefined;
1011
+ }) | {
1012
+ type: "open_chat";
1013
+ meta: {
1014
+ type: string;
1015
+ };
1016
+ } | {
1017
+ type: "dismiss";
1018
+ } | {
1019
+ type: "snooze";
1020
+ } | {
1021
+ type: "questlist";
1022
+ value: number;
1023
+ } | {
1024
+ type: "step_back";
1025
+ } | {
1026
+ type: "nudge";
1027
+ value: number;
1028
+ } | {
1029
+ type: "go_to_step";
1030
+ value: number;
1031
+ } | ({
1032
+ type: "open_bar";
1033
+ } & {
1034
+ value?: string | undefined;
1035
+ categoryFilter?: number | undefined;
1036
+ }) | {
1037
+ type: "no_action";
1038
+ };
1039
+ } & {} & {
1040
+ commandType?: "object" | "help" | "independent" | undefined;
1041
+ object?: string | undefined;
1042
+ hoverTooltip?: boolean | undefined;
1043
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1044
+ });
1045
+ } & {
1046
+ disabledReason?: string | undefined;
1047
+ source?: string | undefined;
1048
+ name?: string | undefined;
1049
+ last_available?: string | null | undefined;
1050
+ modified?: string | undefined;
1051
+ isAsync?: boolean | undefined;
1052
+ } & {
1053
+ arguments: {
1054
+ [x: string]: ({
1055
+ type: "context";
1056
+ value: string;
1057
+ order_key: number;
1058
+ } & {
1059
+ label?: string | undefined;
1060
+ chosen?: string | number | undefined;
1061
+ selected?: any[] | undefined;
1062
+ input_type?: string | undefined;
1063
+ preselected_key?: string | undefined;
1064
+ label_field?: string | undefined;
1065
+ loaded?: any[] | undefined;
1066
+ allow_create?: boolean | undefined;
1067
+ allow_create_label?: string | undefined;
1068
+ show_in_record_action_list?: boolean | undefined;
1069
+ show_in_default_list?: boolean | undefined;
1070
+ auto_choose?: boolean | undefined;
1071
+ is_private?: boolean | undefined;
1072
+ }) | ({
1073
+ type: "set";
1074
+ value: string[] | number[] | {
1075
+ [key: string]: unknown;
1076
+ }[];
1077
+ order_key: number;
1078
+ } & {
1079
+ label?: string | undefined;
1080
+ chosen?: string | number | undefined;
1081
+ selected?: any[] | undefined;
1082
+ input_type?: string | undefined;
1083
+ preselected_key?: string | undefined;
1084
+ label_field?: string | undefined;
1085
+ loaded?: any[] | undefined;
1086
+ allow_create?: boolean | undefined;
1087
+ allow_create_label?: string | undefined;
1088
+ auto_choose?: boolean | undefined;
1089
+ is_private?: boolean | undefined;
1090
+ }) | ({
1091
+ type: "provided";
1092
+ value: "time" | "text";
1093
+ order_key: number;
1094
+ } & {
1095
+ label?: string | undefined;
1096
+ chosen?: string | number | undefined;
1097
+ selected?: any[] | undefined;
1098
+ input_type?: string | undefined;
1099
+ preselected_key?: string | undefined;
1100
+ label_field?: string | undefined;
1101
+ loaded?: any[] | undefined;
1102
+ dateTimeArgumentTypeId?: number | undefined;
1103
+ allow_create?: boolean | undefined;
1104
+ allow_create_label?: string | undefined;
1105
+ auto_choose?: boolean | undefined;
1106
+ is_private?: boolean | undefined;
1107
+ }) | ({
1108
+ type: "html" | "video";
1109
+ value: {
1110
+ source: string;
1111
+ } & {
1112
+ title?: string | undefined;
1113
+ description?: string | undefined;
1114
+ url?: string | undefined;
1115
+ };
1116
+ order_key: number;
1117
+ } & {
1118
+ label?: string | undefined;
1119
+ chosen?: string | number | undefined;
1120
+ selected?: any[] | undefined;
1121
+ input_type?: string | undefined;
1122
+ preselected_key?: string | undefined;
1123
+ label_field?: string | undefined;
1124
+ loaded?: any[] | undefined;
1125
+ allow_create?: boolean | undefined;
1126
+ allow_create_label?: string | undefined;
1127
+ is_private?: boolean | undefined;
1128
+ auto_choose?: boolean | undefined;
1129
+ });
1130
+ };
1131
+ tags: string[];
1132
+ availability_rules: (({
1133
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
1134
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
1135
+ } & {
1136
+ field?: string | undefined;
1137
+ value?: string | undefined;
1138
+ reason?: string | undefined;
1139
+ rule_id?: string | number | undefined;
1140
+ }) | ({
1141
+ type: "nudge_interaction";
1142
+ operator: "is" | "isNot";
1143
+ value: "completed" | "dismissed" | "viewed";
1144
+ nudge_id: number;
1145
+ } & {
1146
+ reason?: string | undefined;
1147
+ }) | ({
1148
+ type: "questlist_interaction";
1149
+ operator: "is" | "isNot";
1150
+ value: "completed" | "dismissed" | "viewed";
1151
+ questlist_id: number;
1152
+ } & {
1153
+ reason?: string | undefined;
1154
+ }) | ({
1155
+ type: "browser" | "language" | "os";
1156
+ operator: "includes" | "doesNotInclude";
1157
+ values: string[];
1158
+ } & {
1159
+ reason?: string | undefined;
1160
+ }))[];
1161
+ recommend_rules: (({
1162
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
1163
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
1164
+ } & {
1165
+ field?: string | undefined;
1166
+ value?: string | undefined;
1167
+ reason?: string | undefined;
1168
+ rule_id?: string | number | undefined;
1169
+ }) | ({
1170
+ type: "nudge_interaction";
1171
+ operator: "is" | "isNot";
1172
+ value: "completed" | "dismissed" | "viewed";
1173
+ nudge_id: number;
1174
+ } & {
1175
+ reason?: string | undefined;
1176
+ }) | ({
1177
+ type: "questlist_interaction";
1178
+ operator: "is" | "isNot";
1179
+ value: "completed" | "dismissed" | "viewed";
1180
+ questlist_id: number;
1181
+ } & {
1182
+ reason?: string | undefined;
1183
+ }) | ({
1184
+ type: "browser" | "language" | "os";
1185
+ operator: "includes" | "doesNotInclude";
1186
+ values: string[];
1187
+ } & {
1188
+ reason?: string | undefined;
1189
+ }) | ({
1190
+ type: "always";
1191
+ } & {
1192
+ operator?: null | undefined;
1193
+ field?: null | undefined;
1194
+ value?: null | undefined;
1195
+ reason?: null | undefined;
1196
+ rule_id?: string | number | undefined;
1197
+ }))[];
1198
+ availability_expression: import("./helpers/rules").RuleExpression | null;
1199
+ recommend_expression: import("./helpers/rules").RuleExpression | null;
1200
+ always_recommend: boolean;
1201
+ confirm: string;
1202
+ shortcut: string[];
1203
+ explanation: string;
1204
+ heading: string;
1205
+ is_live: boolean;
1206
+ category: number | null;
1207
+ sort_key: number | null;
1208
+ icon: string | null;
1209
+ icon_color: string | null;
1210
+ image_color: string | null;
1211
+ image: string | null;
1212
+ celebrate: boolean | {
1213
+ angle?: number | undefined;
1214
+ spread?: number | undefined;
1215
+ width?: string | undefined;
1216
+ height?: string | undefined;
1217
+ duration?: number | undefined;
1218
+ dragFriction?: number | undefined;
1219
+ stagger?: number | undefined;
1220
+ startVelocity?: number | undefined;
1221
+ elementCount?: number | undefined;
1222
+ decay?: number | undefined;
1223
+ colors?: string[] | undefined;
1224
+ random?: any;
1225
+ } | null;
1226
+ recommend_sort_key: number | null;
1227
+ shortcut_mac: string[];
1228
+ shortcut_win: string[];
1229
+ hotkey_mac: string;
1230
+ hotkey_win: string;
1231
+ detail: string | ({
1232
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1233
+ value: string;
1234
+ } & {
1235
+ position?: "inline" | "popover" | undefined;
1236
+ }) | (string | ({
1237
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1238
+ value: string;
1239
+ } & {
1240
+ position?: "inline" | "popover" | undefined;
1241
+ }))[] | null;
1242
+ content: string | ({
1243
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1244
+ value: string;
1245
+ } & {
1246
+ position?: "inline" | "popover" | undefined;
1247
+ }) | (string | ({
1248
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1249
+ value: string;
1250
+ } & {
1251
+ position?: "inline" | "popover" | undefined;
1252
+ }))[] | null;
1253
+ show_preview: boolean;
1254
+ next_steps: (string | number | {
1255
+ cta: string;
1256
+ action: {
1257
+ type: "execute_command";
1258
+ meta: {
1259
+ command: string;
1260
+ };
1261
+ } | {
1262
+ type: "click";
1263
+ value: string;
1264
+ } | ({
1265
+ type: "link";
1266
+ value: string;
1267
+ } & {
1268
+ operation?: "self" | "router" | "blank" | undefined;
1269
+ }) | {
1270
+ type: "open_chat";
1271
+ meta: {
1272
+ type: string;
1273
+ };
1274
+ } | {
1275
+ type: "dismiss";
1276
+ } | {
1277
+ type: "snooze";
1278
+ } | {
1279
+ type: "questlist";
1280
+ value: number;
1281
+ } | {
1282
+ type: "step_back";
1283
+ } | {
1284
+ type: "nudge";
1285
+ value: number;
1286
+ } | {
1287
+ type: "go_to_step";
1288
+ value: number;
1289
+ } | ({
1290
+ type: "open_bar";
1291
+ } & {
1292
+ value?: string | undefined;
1293
+ categoryFilter?: number | undefined;
1294
+ }) | {
1295
+ type: "no_action";
1296
+ };
1297
+ })[];
1298
+ extra: string | null;
1299
+ thumbnail: {
1300
+ src: string;
1301
+ file_name: string;
1302
+ size: string;
1303
+ } | null;
1304
+ copilot_suggest: boolean;
1305
+ copilot_cta_label: string;
1306
+ copilot_description: string;
1307
+ } & {
1308
+ third_party_source?: string | null | undefined;
1309
+ third_party_id?: string | null | undefined;
1310
+ training_only?: boolean | undefined;
1311
+ integration?: {
1312
+ id: number;
1313
+ helphub_view_article_button_hidden: boolean | undefined;
1314
+ } | null | undefined;
1315
+ }, {
1316
+ id: number;
1317
+ text: string;
1318
+ template: ({
1319
+ type: "admin";
1320
+ value: string;
1321
+ } & {} & {
1322
+ commandType?: "object" | "help" | "independent" | undefined;
1323
+ object?: string | undefined;
1324
+ hoverTooltip?: boolean | undefined;
1325
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1326
+ }) | ({
1327
+ type: "callback";
1328
+ value: string;
1329
+ } & {} & {
1330
+ commandType?: "object" | "help" | "independent" | undefined;
1331
+ object?: string | undefined;
1332
+ hoverTooltip?: boolean | undefined;
1333
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1334
+ }) | ({
1335
+ type: "link";
1336
+ value: string;
1337
+ } & {
1338
+ operation?: "self" | "router" | "blank" | undefined;
1339
+ } & {} & {
1340
+ commandType?: "object" | "help" | "independent" | undefined;
1341
+ object?: string | undefined;
1342
+ hoverTooltip?: boolean | undefined;
1343
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1344
+ }) | ({
1345
+ type: "click" | "clickByXpath" | "clickBySelector";
1346
+ value: string[];
1347
+ } & {} & {
1348
+ commandType?: "object" | "help" | "independent" | undefined;
1349
+ object?: string | undefined;
1350
+ hoverTooltip?: boolean | undefined;
1351
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1352
+ }) | ({
1353
+ type: "builtin";
1354
+ value: string;
1355
+ } & {} & {
1356
+ commandType?: "object" | "help" | "independent" | undefined;
1357
+ object?: string | undefined;
1358
+ hoverTooltip?: boolean | undefined;
1359
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1360
+ }) | ({
1361
+ type: "webhook";
1362
+ value: string;
1363
+ } & {} & {
1364
+ commandType?: "object" | "help" | "independent" | undefined;
1365
+ object?: string | undefined;
1366
+ hoverTooltip?: boolean | undefined;
1367
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1368
+ }) | ({
1369
+ type: "script";
1370
+ value: string;
1371
+ } & {} & {
1372
+ commandType?: "object" | "help" | "independent" | undefined;
1373
+ object?: string | undefined;
1374
+ hoverTooltip?: boolean | undefined;
1375
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1376
+ }) | ({
1377
+ type: "request";
1378
+ value: {
1379
+ method: "head" | "options" | "get" | "post" | "put" | "delete" | "patch";
1380
+ url: string;
1381
+ } & {
1382
+ headers?: {
1383
+ [key: string]: unknown;
1384
+ } | undefined;
1385
+ body?: {
1386
+ [key: string]: unknown;
1387
+ } | undefined;
1388
+ onSend?: string | undefined;
1389
+ onSuccess?: string | undefined;
1390
+ onError?: string | undefined;
1391
+ };
1392
+ } & {} & {
1393
+ commandType?: "object" | "help" | "independent" | undefined;
1394
+ object?: string | undefined;
1395
+ hoverTooltip?: boolean | undefined;
1396
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1397
+ }) | ({
1398
+ type: "appcues";
1399
+ value: string;
1400
+ } & {} & {
1401
+ commandType?: "object" | "help" | "independent" | undefined;
1402
+ object?: string | undefined;
1403
+ hoverTooltip?: boolean | undefined;
1404
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1405
+ }) | ({
1406
+ type: "video";
1407
+ value: string;
1408
+ } & {} & {
1409
+ commandType?: "object" | "help" | "independent" | undefined;
1410
+ object?: string | undefined;
1411
+ hoverTooltip?: boolean | undefined;
1412
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1413
+ }) | ({
1414
+ type: "helpdoc";
1415
+ value: string;
1416
+ } & {
1417
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1418
+ doc_metadata?: {
1419
+ content_type?: string | undefined;
1420
+ date?: string | undefined;
1421
+ } | undefined;
1422
+ } & {
1423
+ doc_type?: "answer" | "doc" | undefined;
1424
+ } & {} & {
1425
+ commandType?: "object" | "help" | "independent" | undefined;
1426
+ object?: string | undefined;
1427
+ hoverTooltip?: boolean | undefined;
1428
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1429
+ }) | ({
1430
+ type: "trigger";
1431
+ value: {
1432
+ type: "execute_command";
1433
+ meta: {
1434
+ command: string;
1435
+ };
1436
+ } | {
1437
+ type: "click";
1438
+ value: string;
1439
+ } | ({
1440
+ type: "link";
1441
+ value: string;
1442
+ } & {
1443
+ operation?: "self" | "router" | "blank" | undefined;
1444
+ }) | {
1445
+ type: "open_chat";
1446
+ meta: {
1447
+ type: string;
1448
+ };
1449
+ } | {
1450
+ type: "dismiss";
1451
+ } | {
1452
+ type: "snooze";
1453
+ } | {
1454
+ type: "questlist";
1455
+ value: number;
1456
+ } | {
1457
+ type: "step_back";
1458
+ } | {
1459
+ type: "nudge";
1460
+ value: number;
1461
+ } | {
1462
+ type: "go_to_step";
1463
+ value: number;
1464
+ } | ({
1465
+ type: "open_bar";
1466
+ } & {
1467
+ value?: string | undefined;
1468
+ categoryFilter?: number | undefined;
1469
+ }) | {
1470
+ type: "no_action";
1471
+ };
1472
+ } & {} & {
1473
+ commandType?: "object" | "help" | "independent" | undefined;
1474
+ object?: string | undefined;
1475
+ hoverTooltip?: boolean | undefined;
1476
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1477
+ });
1478
+ } & {
1479
+ disabledReason?: string | undefined;
1480
+ source?: string | undefined;
1481
+ name?: string | undefined;
1482
+ last_available?: string | null | undefined;
1483
+ modified?: string | undefined;
1484
+ isAsync?: boolean | undefined;
1485
+ } & {
1486
+ arguments: {
1487
+ [x: string]: ({
1488
+ type: "context";
1489
+ value: string;
1490
+ order_key: number;
1491
+ } & {
1492
+ label?: string | undefined;
1493
+ chosen?: string | number | undefined;
1494
+ selected?: any[] | undefined;
1495
+ input_type?: string | undefined;
1496
+ preselected_key?: string | undefined;
1497
+ label_field?: string | undefined;
1498
+ loaded?: any[] | undefined;
1499
+ allow_create?: boolean | undefined;
1500
+ allow_create_label?: string | undefined;
1501
+ show_in_record_action_list?: boolean | undefined;
1502
+ show_in_default_list?: boolean | undefined;
1503
+ auto_choose?: boolean | undefined;
1504
+ is_private?: boolean | undefined;
1505
+ }) | ({
1506
+ type: "set";
1507
+ value: string[] | number[] | {
1508
+ [key: string]: unknown;
1509
+ }[];
1510
+ order_key: number;
1511
+ } & {
1512
+ label?: string | undefined;
1513
+ chosen?: string | number | undefined;
1514
+ selected?: any[] | undefined;
1515
+ input_type?: string | undefined;
1516
+ preselected_key?: string | undefined;
1517
+ label_field?: string | undefined;
1518
+ loaded?: any[] | undefined;
1519
+ allow_create?: boolean | undefined;
1520
+ allow_create_label?: string | undefined;
1521
+ auto_choose?: boolean | undefined;
1522
+ is_private?: boolean | undefined;
1523
+ }) | ({
1524
+ type: "provided";
1525
+ value: "time" | "text";
1526
+ order_key: number;
1527
+ } & {
1528
+ label?: string | undefined;
1529
+ chosen?: string | number | undefined;
1530
+ selected?: any[] | undefined;
1531
+ input_type?: string | undefined;
1532
+ preselected_key?: string | undefined;
1533
+ label_field?: string | undefined;
1534
+ loaded?: any[] | undefined;
1535
+ dateTimeArgumentTypeId?: number | undefined;
1536
+ allow_create?: boolean | undefined;
1537
+ allow_create_label?: string | undefined;
1538
+ auto_choose?: boolean | undefined;
1539
+ is_private?: boolean | undefined;
1540
+ }) | ({
1541
+ type: "html" | "video";
1542
+ value: {
1543
+ source: string;
1544
+ } & {
1545
+ title?: string | undefined;
1546
+ description?: string | undefined;
1547
+ url?: string | undefined;
1548
+ };
1549
+ order_key: number;
1550
+ } & {
1551
+ label?: string | undefined;
1552
+ chosen?: string | number | undefined;
1553
+ selected?: any[] | undefined;
1554
+ input_type?: string | undefined;
1555
+ preselected_key?: string | undefined;
1556
+ label_field?: string | undefined;
1557
+ loaded?: any[] | undefined;
1558
+ allow_create?: boolean | undefined;
1559
+ allow_create_label?: string | undefined;
1560
+ is_private?: boolean | undefined;
1561
+ auto_choose?: boolean | undefined;
1562
+ });
1563
+ };
1564
+ tags: string[];
1565
+ availability_rules: (({
1566
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
1567
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
1568
+ } & {
1569
+ field?: string | undefined;
1570
+ value?: string | undefined;
1571
+ reason?: string | undefined;
1572
+ rule_id?: string | number | undefined;
1573
+ }) | ({
1574
+ type: "nudge_interaction";
1575
+ operator: "is" | "isNot";
1576
+ value: "completed" | "dismissed" | "viewed";
1577
+ nudge_id: number;
1578
+ } & {
1579
+ reason?: string | undefined;
1580
+ }) | ({
1581
+ type: "questlist_interaction";
1582
+ operator: "is" | "isNot";
1583
+ value: "completed" | "dismissed" | "viewed";
1584
+ questlist_id: number;
1585
+ } & {
1586
+ reason?: string | undefined;
1587
+ }) | ({
1588
+ type: "browser" | "language" | "os";
1589
+ operator: "includes" | "doesNotInclude";
1590
+ values: string[];
1591
+ } & {
1592
+ reason?: string | undefined;
1593
+ }))[];
1594
+ recommend_rules: (({
1595
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
1596
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
1597
+ } & {
1598
+ field?: string | undefined;
1599
+ value?: string | undefined;
1600
+ reason?: string | undefined;
1601
+ rule_id?: string | number | undefined;
1602
+ }) | ({
1603
+ type: "nudge_interaction";
1604
+ operator: "is" | "isNot";
1605
+ value: "completed" | "dismissed" | "viewed";
1606
+ nudge_id: number;
1607
+ } & {
1608
+ reason?: string | undefined;
1609
+ }) | ({
1610
+ type: "questlist_interaction";
1611
+ operator: "is" | "isNot";
1612
+ value: "completed" | "dismissed" | "viewed";
1613
+ questlist_id: number;
1614
+ } & {
1615
+ reason?: string | undefined;
1616
+ }) | ({
1617
+ type: "browser" | "language" | "os";
1618
+ operator: "includes" | "doesNotInclude";
1619
+ values: string[];
1620
+ } & {
1621
+ reason?: string | undefined;
1622
+ }) | ({
1623
+ type: "always";
1624
+ } & {
1625
+ operator?: null | undefined;
1626
+ field?: null | undefined;
1627
+ value?: null | undefined;
1628
+ reason?: null | undefined;
1629
+ rule_id?: string | number | undefined;
1630
+ }))[];
1631
+ availability_expression: import("./helpers/rules").RuleExpression | null;
1632
+ recommend_expression: import("./helpers/rules").RuleExpression | null;
1633
+ always_recommend: boolean;
1634
+ confirm: string;
1635
+ shortcut: string[];
1636
+ explanation: string;
1637
+ heading: string;
1638
+ is_live: boolean;
1639
+ category: number | null;
1640
+ sort_key: number | null;
1641
+ icon: string | null;
1642
+ icon_color: string | null;
1643
+ image_color: string | null;
1644
+ image: string | null;
1645
+ celebrate: boolean | {
1646
+ angle?: number | undefined;
1647
+ spread?: number | undefined;
1648
+ width?: string | undefined;
1649
+ height?: string | undefined;
1650
+ duration?: number | undefined;
1651
+ dragFriction?: number | undefined;
1652
+ stagger?: number | undefined;
1653
+ startVelocity?: number | undefined;
1654
+ elementCount?: number | undefined;
1655
+ decay?: number | undefined;
1656
+ colors?: string[] | undefined;
1657
+ random?: any;
1658
+ } | null;
1659
+ recommend_sort_key: number | null;
1660
+ shortcut_mac: string[];
1661
+ shortcut_win: string[];
1662
+ hotkey_mac: string;
1663
+ hotkey_win: string;
1664
+ detail: string | ({
1665
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1666
+ value: string;
1667
+ } & {
1668
+ position?: "inline" | "popover" | undefined;
1669
+ }) | (string | ({
1670
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1671
+ value: string;
1672
+ } & {
1673
+ position?: "inline" | "popover" | undefined;
1674
+ }))[] | null;
1675
+ content: string | ({
1676
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1677
+ value: string;
1678
+ } & {
1679
+ position?: "inline" | "popover" | undefined;
1680
+ }) | (string | ({
1681
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
1682
+ value: string;
1683
+ } & {
1684
+ position?: "inline" | "popover" | undefined;
1685
+ }))[] | null;
1686
+ show_preview: boolean;
1687
+ next_steps: (string | number | {
1688
+ cta: string;
1689
+ action: {
1690
+ type: "execute_command";
1691
+ meta: {
1692
+ command: string;
1693
+ };
1694
+ } | {
1695
+ type: "click";
1696
+ value: string;
1697
+ } | ({
1698
+ type: "link";
1699
+ value: string;
1700
+ } & {
1701
+ operation?: "self" | "router" | "blank" | undefined;
1702
+ }) | {
1703
+ type: "open_chat";
1704
+ meta: {
1705
+ type: string;
1706
+ };
1707
+ } | {
1708
+ type: "dismiss";
1709
+ } | {
1710
+ type: "snooze";
1711
+ } | {
1712
+ type: "questlist";
1713
+ value: number;
1714
+ } | {
1715
+ type: "step_back";
1716
+ } | {
1717
+ type: "nudge";
1718
+ value: number;
1719
+ } | {
1720
+ type: "go_to_step";
1721
+ value: number;
1722
+ } | ({
1723
+ type: "open_bar";
1724
+ } & {
1725
+ value?: string | undefined;
1726
+ categoryFilter?: number | undefined;
1727
+ }) | {
1728
+ type: "no_action";
1729
+ };
1730
+ })[];
1731
+ extra: string | null;
1732
+ thumbnail: {
1733
+ src: string;
1734
+ file_name: string;
1735
+ size: string;
1736
+ } | null;
1737
+ copilot_suggest: boolean;
1738
+ copilot_cta_label: string;
1739
+ copilot_description: string;
1740
+ } & {
1741
+ third_party_source?: string | null | undefined;
1742
+ third_party_id?: string | null | undefined;
1743
+ training_only?: boolean | undefined;
1744
+ integration?: {
1745
+ id: number;
1746
+ helphub_view_article_button_hidden: boolean | undefined;
1747
+ } | null | undefined;
1748
+ }, any>;
1749
+ excerpt: t.StringC;
1750
+ }>;
1751
+ }>>;
1752
+ }>;
1753
+ export declare const SearchHelpDocsPayloadV: t.PartialC<{
1754
+ query: t.StringC;
1755
+ include_additional_docs: t.UnionC<[t.BooleanC, t.UndefinedC]>;
1756
+ doc_id: t.UnionC<[t.NumberC, t.StringC, t.UndefinedC]>;
1757
+ filter: t.UnionC<[t.PartialC<{
1758
+ labels: t.ArrayC<t.StringC>;
1759
+ }>, t.NullC]>;
1760
+ }>;
1761
+ export declare class HelpDocsSearch {
1762
+ static search: (orgUID: IOrganizationType['id'], payload: ISearchHelpDocsPayloadType, options?: axiosInstance.FetchOptions) => Promise<{
1763
+ data: {
1764
+ hit: {
1765
+ score: number[];
1766
+ command: {
1767
+ id: number;
1768
+ text: string;
1769
+ template: ({
1770
+ type: "admin";
1771
+ value: string;
1772
+ } & {} & {
1773
+ commandType?: "object" | "help" | "independent" | undefined;
1774
+ object?: string | undefined;
1775
+ hoverTooltip?: boolean | undefined;
1776
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1777
+ }) | ({
1778
+ type: "callback";
1779
+ value: string;
1780
+ } & {} & {
1781
+ commandType?: "object" | "help" | "independent" | undefined;
1782
+ object?: string | undefined;
1783
+ hoverTooltip?: boolean | undefined;
1784
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1785
+ }) | ({
1786
+ type: "link";
1787
+ value: string;
1788
+ } & {
1789
+ operation?: "self" | "router" | "blank" | undefined;
1790
+ } & {} & {
1791
+ commandType?: "object" | "help" | "independent" | undefined;
1792
+ object?: string | undefined;
1793
+ hoverTooltip?: boolean | undefined;
1794
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1795
+ }) | ({
1796
+ type: "click" | "clickByXpath" | "clickBySelector";
1797
+ value: string[];
1798
+ } & {} & {
1799
+ commandType?: "object" | "help" | "independent" | undefined;
1800
+ object?: string | undefined;
1801
+ hoverTooltip?: boolean | undefined;
1802
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1803
+ }) | ({
1804
+ type: "builtin";
1805
+ value: string;
1806
+ } & {} & {
1807
+ commandType?: "object" | "help" | "independent" | undefined;
1808
+ object?: string | undefined;
1809
+ hoverTooltip?: boolean | undefined;
1810
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1811
+ }) | ({
1812
+ type: "webhook";
1813
+ value: string;
1814
+ } & {} & {
1815
+ commandType?: "object" | "help" | "independent" | undefined;
1816
+ object?: string | undefined;
1817
+ hoverTooltip?: boolean | undefined;
1818
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1819
+ }) | ({
1820
+ type: "script";
1821
+ value: string;
1822
+ } & {} & {
1823
+ commandType?: "object" | "help" | "independent" | undefined;
1824
+ object?: string | undefined;
1825
+ hoverTooltip?: boolean | undefined;
1826
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1827
+ }) | ({
1828
+ type: "request";
1829
+ value: {
1830
+ method: "head" | "options" | "get" | "post" | "put" | "delete" | "patch";
1831
+ url: string;
1832
+ } & {
1833
+ headers?: {
1834
+ [key: string]: unknown;
1835
+ } | undefined;
1836
+ body?: {
1837
+ [key: string]: unknown;
1838
+ } | undefined;
1839
+ onSend?: string | undefined;
1840
+ onSuccess?: string | undefined;
1841
+ onError?: string | undefined;
1842
+ };
1843
+ } & {} & {
1844
+ commandType?: "object" | "help" | "independent" | undefined;
1845
+ object?: string | undefined;
1846
+ hoverTooltip?: boolean | undefined;
1847
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1848
+ }) | ({
1849
+ type: "appcues";
1850
+ value: string;
1851
+ } & {} & {
1852
+ commandType?: "object" | "help" | "independent" | undefined;
1853
+ object?: string | undefined;
1854
+ hoverTooltip?: boolean | undefined;
1855
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1856
+ }) | ({
1857
+ type: "video";
1858
+ value: string;
1859
+ } & {} & {
1860
+ commandType?: "object" | "help" | "independent" | undefined;
1861
+ object?: string | undefined;
1862
+ hoverTooltip?: boolean | undefined;
1863
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1864
+ }) | ({
1865
+ type: "helpdoc";
1866
+ value: string;
1867
+ } & {
1868
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1869
+ doc_metadata?: {
1870
+ content_type?: string | undefined;
1871
+ date?: string | undefined;
1872
+ } | undefined;
1873
+ } & {
1874
+ doc_type?: "answer" | "doc" | undefined;
1875
+ } & {} & {
1876
+ commandType?: "object" | "help" | "independent" | undefined;
1877
+ object?: string | undefined;
1878
+ hoverTooltip?: boolean | undefined;
1879
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1880
+ }) | ({
1881
+ type: "trigger";
1882
+ value: {
1883
+ type: "execute_command";
1884
+ meta: {
1885
+ command: string;
1886
+ };
1887
+ } | {
1888
+ type: "click";
1889
+ value: string;
1890
+ } | ({
1891
+ type: "link";
1892
+ value: string;
1893
+ } & {
1894
+ operation?: "self" | "router" | "blank" | undefined;
1895
+ }) | {
1896
+ type: "open_chat";
1897
+ meta: {
1898
+ type: string;
1899
+ };
1900
+ } | {
1901
+ type: "dismiss";
1902
+ } | {
1903
+ type: "snooze";
1904
+ } | {
1905
+ type: "questlist";
1906
+ value: number;
1907
+ } | {
1908
+ type: "step_back";
1909
+ } | {
1910
+ type: "nudge";
1911
+ value: number;
1912
+ } | {
1913
+ type: "go_to_step";
1914
+ value: number;
1915
+ } | ({
1916
+ type: "open_bar";
1917
+ } & {
1918
+ value?: string | undefined;
1919
+ categoryFilter?: number | undefined;
1920
+ }) | {
1921
+ type: "no_action";
1922
+ };
1923
+ } & {} & {
1924
+ commandType?: "object" | "help" | "independent" | undefined;
1925
+ object?: string | undefined;
1926
+ hoverTooltip?: boolean | undefined;
1927
+ operation?: "self" | "router" | "blank" | "help_hub" | undefined;
1928
+ });
1929
+ } & {
1930
+ disabledReason?: string | undefined;
1931
+ source?: string | undefined;
1932
+ name?: string | undefined;
1933
+ last_available?: string | null | undefined;
1934
+ modified?: string | undefined;
1935
+ isAsync?: boolean | undefined;
1936
+ } & {
1937
+ arguments: {
1938
+ [x: string]: ({
1939
+ type: "context";
1940
+ value: string;
1941
+ order_key: number;
1942
+ } & {
1943
+ label?: string | undefined;
1944
+ chosen?: string | number | undefined;
1945
+ selected?: any[] | undefined;
1946
+ input_type?: string | undefined;
1947
+ preselected_key?: string | undefined;
1948
+ label_field?: string | undefined;
1949
+ loaded?: any[] | undefined;
1950
+ allow_create?: boolean | undefined;
1951
+ allow_create_label?: string | undefined;
1952
+ show_in_record_action_list?: boolean | undefined;
1953
+ show_in_default_list?: boolean | undefined;
1954
+ auto_choose?: boolean | undefined;
1955
+ is_private?: boolean | undefined;
1956
+ }) | ({
1957
+ type: "set";
1958
+ value: string[] | number[] | {
1959
+ [key: string]: unknown;
1960
+ }[];
1961
+ order_key: number;
1962
+ } & {
1963
+ label?: string | undefined;
1964
+ chosen?: string | number | undefined;
1965
+ selected?: any[] | undefined;
1966
+ input_type?: string | undefined;
1967
+ preselected_key?: string | undefined;
1968
+ label_field?: string | undefined;
1969
+ loaded?: any[] | undefined;
1970
+ allow_create?: boolean | undefined;
1971
+ allow_create_label?: string | undefined;
1972
+ auto_choose?: boolean | undefined;
1973
+ is_private?: boolean | undefined;
1974
+ }) | ({
1975
+ type: "provided";
1976
+ value: "time" | "text";
1977
+ order_key: number;
1978
+ } & {
1979
+ label?: string | undefined;
1980
+ chosen?: string | number | undefined;
1981
+ selected?: any[] | undefined;
1982
+ input_type?: string | undefined;
1983
+ preselected_key?: string | undefined;
1984
+ label_field?: string | undefined;
1985
+ loaded?: any[] | undefined;
1986
+ dateTimeArgumentTypeId?: number | undefined;
1987
+ allow_create?: boolean | undefined;
1988
+ allow_create_label?: string | undefined;
1989
+ auto_choose?: boolean | undefined;
1990
+ is_private?: boolean | undefined;
1991
+ }) | ({
1992
+ type: "html" | "video";
1993
+ value: {
1994
+ source: string;
1995
+ } & {
1996
+ title?: string | undefined;
1997
+ description?: string | undefined;
1998
+ url?: string | undefined;
1999
+ };
2000
+ order_key: number;
2001
+ } & {
2002
+ label?: string | undefined;
2003
+ chosen?: string | number | undefined;
2004
+ selected?: any[] | undefined;
2005
+ input_type?: string | undefined;
2006
+ preselected_key?: string | undefined;
2007
+ label_field?: string | undefined;
2008
+ loaded?: any[] | undefined;
2009
+ allow_create?: boolean | undefined;
2010
+ allow_create_label?: string | undefined;
2011
+ is_private?: boolean | undefined;
2012
+ auto_choose?: boolean | undefined;
2013
+ });
2014
+ };
2015
+ tags: string[];
2016
+ availability_rules: (({
2017
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
2018
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
2019
+ } & {
2020
+ field?: string | undefined;
2021
+ value?: string | undefined;
2022
+ reason?: string | undefined;
2023
+ rule_id?: string | number | undefined;
2024
+ }) | ({
2025
+ type: "nudge_interaction";
2026
+ operator: "is" | "isNot";
2027
+ value: "completed" | "dismissed" | "viewed";
2028
+ nudge_id: number;
2029
+ } & {
2030
+ reason?: string | undefined;
2031
+ }) | ({
2032
+ type: "questlist_interaction";
2033
+ operator: "is" | "isNot";
2034
+ value: "completed" | "dismissed" | "viewed";
2035
+ questlist_id: number;
2036
+ } & {
2037
+ reason?: string | undefined;
2038
+ }) | ({
2039
+ type: "browser" | "language" | "os";
2040
+ operator: "includes" | "doesNotInclude";
2041
+ values: string[];
2042
+ } & {
2043
+ reason?: string | undefined;
2044
+ }))[];
2045
+ recommend_rules: (({
2046
+ type: "url" | "element" | "context" | "device_type" | "sessions" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "hubspot";
2047
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isBefore" | "isAfter" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot";
2048
+ } & {
2049
+ field?: string | undefined;
2050
+ value?: string | undefined;
2051
+ reason?: string | undefined;
2052
+ rule_id?: string | number | undefined;
2053
+ }) | ({
2054
+ type: "nudge_interaction";
2055
+ operator: "is" | "isNot";
2056
+ value: "completed" | "dismissed" | "viewed";
2057
+ nudge_id: number;
2058
+ } & {
2059
+ reason?: string | undefined;
2060
+ }) | ({
2061
+ type: "questlist_interaction";
2062
+ operator: "is" | "isNot";
2063
+ value: "completed" | "dismissed" | "viewed";
2064
+ questlist_id: number;
2065
+ } & {
2066
+ reason?: string | undefined;
2067
+ }) | ({
2068
+ type: "browser" | "language" | "os";
2069
+ operator: "includes" | "doesNotInclude";
2070
+ values: string[];
2071
+ } & {
2072
+ reason?: string | undefined;
2073
+ }) | ({
2074
+ type: "always";
2075
+ } & {
2076
+ operator?: null | undefined;
2077
+ field?: null | undefined;
2078
+ value?: null | undefined;
2079
+ reason?: null | undefined;
2080
+ rule_id?: string | number | undefined;
2081
+ }))[];
2082
+ availability_expression: import("./helpers/rules").RuleExpression | null;
2083
+ recommend_expression: import("./helpers/rules").RuleExpression | null;
2084
+ always_recommend: boolean;
2085
+ confirm: string;
2086
+ shortcut: string[];
2087
+ explanation: string;
2088
+ heading: string;
2089
+ is_live: boolean;
2090
+ category: number | null;
2091
+ sort_key: number | null;
2092
+ icon: string | null;
2093
+ icon_color: string | null;
2094
+ image_color: string | null;
2095
+ image: string | null;
2096
+ celebrate: boolean | {
2097
+ angle?: number | undefined;
2098
+ spread?: number | undefined;
2099
+ width?: string | undefined;
2100
+ height?: string | undefined;
2101
+ duration?: number | undefined;
2102
+ dragFriction?: number | undefined;
2103
+ stagger?: number | undefined;
2104
+ startVelocity?: number | undefined;
2105
+ elementCount?: number | undefined;
2106
+ decay?: number | undefined;
2107
+ colors?: string[] | undefined;
2108
+ random?: any;
2109
+ } | null;
2110
+ recommend_sort_key: number | null;
2111
+ shortcut_mac: string[];
2112
+ shortcut_win: string[];
2113
+ hotkey_mac: string;
2114
+ hotkey_win: string;
2115
+ detail: string | ({
2116
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
2117
+ value: string;
2118
+ } & {
2119
+ position?: "inline" | "popover" | undefined;
2120
+ }) | (string | ({
2121
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
2122
+ value: string;
2123
+ } & {
2124
+ position?: "inline" | "popover" | undefined;
2125
+ }))[] | null;
2126
+ content: string | ({
2127
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
2128
+ value: string;
2129
+ } & {
2130
+ position?: "inline" | "popover" | undefined;
2131
+ }) | (string | ({
2132
+ type: "html" | "video" | "plaintext" | "markdown" | "component" | "react";
2133
+ value: string;
2134
+ } & {
2135
+ position?: "inline" | "popover" | undefined;
2136
+ }))[] | null;
2137
+ show_preview: boolean;
2138
+ next_steps: (string | number | {
2139
+ cta: string;
2140
+ action: {
2141
+ type: "execute_command";
2142
+ meta: {
2143
+ command: string;
2144
+ };
2145
+ } | {
2146
+ type: "click";
2147
+ value: string;
2148
+ } | ({
2149
+ type: "link";
2150
+ value: string;
2151
+ } & {
2152
+ operation?: "self" | "router" | "blank" | undefined;
2153
+ }) | {
2154
+ type: "open_chat";
2155
+ meta: {
2156
+ type: string;
2157
+ };
2158
+ } | {
2159
+ type: "dismiss";
2160
+ } | {
2161
+ type: "snooze";
2162
+ } | {
2163
+ type: "questlist";
2164
+ value: number;
2165
+ } | {
2166
+ type: "step_back";
2167
+ } | {
2168
+ type: "nudge";
2169
+ value: number;
2170
+ } | {
2171
+ type: "go_to_step";
2172
+ value: number;
2173
+ } | ({
2174
+ type: "open_bar";
2175
+ } & {
2176
+ value?: string | undefined;
2177
+ categoryFilter?: number | undefined;
2178
+ }) | {
2179
+ type: "no_action";
2180
+ };
2181
+ })[];
2182
+ extra: string | null;
2183
+ thumbnail: {
2184
+ src: string;
2185
+ file_name: string;
2186
+ size: string;
2187
+ } | null;
2188
+ copilot_suggest: boolean;
2189
+ copilot_cta_label: string;
2190
+ copilot_description: string;
2191
+ } & {
2192
+ third_party_source?: string | null | undefined;
2193
+ third_party_id?: string | null | undefined;
2194
+ training_only?: boolean | undefined;
2195
+ integration?: {
2196
+ id: number;
2197
+ helphub_view_article_button_hidden: boolean | undefined;
2198
+ } | null | undefined;
2199
+ };
2200
+ excerpt: string;
2201
+ };
2202
+ }[];
2203
+ }>;
2204
+ }