commandbar 1.13.0 → 1.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +2 -0
  2. package/build/commandbar-js/src/index.js +1 -1
  3. package/build/commandbar-js/src/init.d.ts +10 -1
  4. package/build/internal/src/client/CommandBarClientSDK.d.ts +4 -0
  5. package/build/internal/src/client/CommandBarProxySDK.d.ts +2 -3
  6. package/build/internal/src/client/SDKConfig.d.ts +1 -0
  7. package/build/internal/src/client/symbols.d.ts +2 -0
  8. package/build/internal/src/middleware/CommandFromClientV.d.ts +4 -0
  9. package/build/internal/src/middleware/OrganizationV.d.ts +56 -8
  10. package/build/internal/src/middleware/additionalResource.d.ts +200 -137
  11. package/build/internal/src/middleware/api.d.ts +7 -7
  12. package/build/internal/src/middleware/chat.d.ts +22868 -11601
  13. package/build/internal/src/middleware/checklist.d.ts +209 -139
  14. package/build/internal/src/middleware/command.d.ts +2547 -2170
  15. package/build/internal/src/middleware/endUser.d.ts +0 -32
  16. package/build/internal/src/middleware/experienceTemplate.d.ts +399 -263
  17. package/build/internal/src/middleware/experiencesSearch.d.ts +816 -718
  18. package/build/internal/src/middleware/flags.d.ts +6 -3
  19. package/build/internal/src/middleware/helpDocsSearch.d.ts +584 -514
  20. package/build/internal/src/middleware/helpers/actions.d.ts +66 -28
  21. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +18 -4
  22. package/build/internal/src/middleware/helpers/rules.d.ts +19 -4
  23. package/build/internal/src/middleware/nudge.d.ts +482 -281
  24. package/build/internal/src/middleware/organization.d.ts +825 -670
  25. package/build/internal/src/middleware/organizationSettings.d.ts +210 -130
  26. package/build/internal/src/middleware/profile.d.ts +1 -1
  27. package/build/internal/src/middleware/recommendationSet.d.ts +200 -137
  28. package/build/internal/src/middleware/theme.d.ts +7 -0
  29. package/build/internal/src/middleware/types.d.ts +16 -20
  30. package/package.json +1 -1
  31. package/src/init.ts +13 -2
  32. package/build/commandbar/src/shared/services/analytics/event-queue.d.ts +0 -13
  33. package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +0 -53
  34. package/build/commandbar/src/shared/services/analytics/v2/helpers.d.ts +0 -6
  35. package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +0 -152
  36. package/build/commandbar/src/shared/services/analytics/v2/types.d.ts +0 -4
  37. package/build/internal/src/client/CommandBarSDK.d.ts +0 -99
  38. package/build/internal/src/client/globals.d.ts +0 -27
  39. package/build/internal/src/util/dispatchCustomEvent.d.ts +0 -14
  40. package/build/internal/src/util/sentry.d.ts +0 -23
@@ -36,6 +36,11 @@ export declare const AdditionalResourceV: t.IntersectionC<[t.TypeC<{}>, t.Inters
36
36
  meta: t.TypeC<{
37
37
  type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
38
38
  }>;
39
+ }>, t.TypeC<{
40
+ type: t.LiteralC<"chat_handoff">;
41
+ meta: t.TypeC<{
42
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
43
+ }>;
39
44
  }>, t.TypeC<{
40
45
  type: t.LiteralC<"dismiss">;
41
46
  }>, t.TypeC<{
@@ -58,9 +63,11 @@ export declare const AdditionalResourceV: t.IntersectionC<[t.TypeC<{}>, t.Inters
58
63
  categoryFilter: t.NumberC;
59
64
  }>]>, t.TypeC<{
60
65
  type: t.LiteralC<"open_helphub">;
61
- }>, t.TypeC<{
66
+ }>, t.IntersectionC<[t.TypeC<{
62
67
  type: t.LiteralC<"open_copilot">;
63
- }>]>;
68
+ }>, t.PartialC<{
69
+ query: t.StringC;
70
+ }>]>]>;
64
71
  show_as_primary_cta: t.BooleanC;
65
72
  }>, t.PartialC<{}>]>]>;
66
73
  export declare const BatchAdditionalResourceResponseV: t.TypeC<{
@@ -100,6 +107,11 @@ export declare const BatchAdditionalResourceResponseV: t.TypeC<{
100
107
  meta: t.TypeC<{
101
108
  type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"freshchat">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"pylon">, t.LiteralC<"zendesk_handoff">, t.LiteralC<"">]>;
102
109
  }>;
110
+ }>, t.TypeC<{
111
+ type: t.LiteralC<"chat_handoff">;
112
+ meta: t.TypeC<{
113
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
114
+ }>;
103
115
  }>, t.TypeC<{
104
116
  type: t.LiteralC<"dismiss">;
105
117
  }>, t.TypeC<{
@@ -122,9 +134,11 @@ export declare const BatchAdditionalResourceResponseV: t.TypeC<{
122
134
  categoryFilter: t.NumberC;
123
135
  }>]>, t.TypeC<{
124
136
  type: t.LiteralC<"open_helphub">;
125
- }>, t.TypeC<{
137
+ }>, t.IntersectionC<[t.TypeC<{
126
138
  type: t.LiteralC<"open_copilot">;
127
- }>]>;
139
+ }>, t.PartialC<{
140
+ query: t.StringC;
141
+ }>]>]>;
128
142
  show_as_primary_cta: t.BooleanC;
129
143
  }>, t.PartialC<{}>]>]>>;
130
144
  }>;
@@ -136,31 +150,38 @@ export declare const decode: (data: any) => {} & {
136
150
  icon: string | null;
137
151
  icon_color: string | null;
138
152
  label: string;
139
- action: {
153
+ action: ({
154
+ type: "link";
155
+ value: string;
156
+ } & {
157
+ operation?: "self" | "router" | "blank" | undefined;
158
+ meta?: {
159
+ command: string;
160
+ } | undefined;
161
+ }) | {
162
+ type: "click" | "clickBySelector" | "clickByXpath";
163
+ value: string[];
164
+ } | {
140
165
  type: "execute_command";
141
166
  meta: {
142
167
  command: string;
143
168
  } & {
144
169
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
145
170
  };
171
+ } | {
172
+ type: "no_action";
146
173
  } | {
147
174
  type: "click";
148
175
  value: string;
149
176
  } | {
150
- type: "click" | "clickBySelector" | "clickByXpath";
151
- value: string[];
152
- } | ({
153
- type: "link";
154
- value: string;
155
- } & {
156
- operation?: "self" | "router" | "blank" | undefined;
157
- meta?: {
158
- command: string;
159
- } | undefined;
160
- }) | {
161
177
  type: "open_chat";
162
178
  meta: {
163
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
179
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
180
+ };
181
+ } | {
182
+ type: "chat_handoff";
183
+ meta: {
184
+ type: "" | "intercom" | "freshchat" | "zendesk";
164
185
  };
165
186
  } | {
166
187
  type: "dismiss";
@@ -169,14 +190,14 @@ export declare const decode: (data: any) => {} & {
169
190
  } | {
170
191
  type: "questlist";
171
192
  value: number;
172
- } | {
173
- type: "step_back";
174
193
  } | {
175
194
  type: "nudge";
176
195
  value: number;
177
196
  } | {
178
197
  type: "go_to_step";
179
198
  value: number;
199
+ } | {
200
+ type: "step_back";
180
201
  } | ({
181
202
  type: "open_bar";
182
203
  } & {
@@ -184,11 +205,11 @@ export declare const decode: (data: any) => {} & {
184
205
  categoryFilter?: number | undefined;
185
206
  }) | {
186
207
  type: "open_helphub";
187
- } | {
208
+ } | ({
188
209
  type: "open_copilot";
189
- } | {
190
- type: "no_action";
191
- };
210
+ } & {
211
+ query?: string | undefined;
212
+ });
192
213
  show_as_primary_cta: boolean;
193
214
  } & {};
194
215
  export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({} & {
@@ -199,31 +220,38 @@ export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((er
199
220
  icon: string | null;
200
221
  icon_color: string | null;
201
222
  label: string;
202
- action: {
223
+ action: ({
224
+ type: "link";
225
+ value: string;
226
+ } & {
227
+ operation?: "self" | "router" | "blank" | undefined;
228
+ meta?: {
229
+ command: string;
230
+ } | undefined;
231
+ }) | {
232
+ type: "click" | "clickBySelector" | "clickByXpath";
233
+ value: string[];
234
+ } | {
203
235
  type: "execute_command";
204
236
  meta: {
205
237
  command: string;
206
238
  } & {
207
239
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
208
240
  };
241
+ } | {
242
+ type: "no_action";
209
243
  } | {
210
244
  type: "click";
211
245
  value: string;
212
246
  } | {
213
- type: "click" | "clickBySelector" | "clickByXpath";
214
- value: string[];
215
- } | ({
216
- type: "link";
217
- value: string;
218
- } & {
219
- operation?: "self" | "router" | "blank" | undefined;
220
- meta?: {
221
- command: string;
222
- } | undefined;
223
- }) | {
224
247
  type: "open_chat";
225
248
  meta: {
226
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
249
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
250
+ };
251
+ } | {
252
+ type: "chat_handoff";
253
+ meta: {
254
+ type: "" | "intercom" | "freshchat" | "zendesk";
227
255
  };
228
256
  } | {
229
257
  type: "dismiss";
@@ -232,14 +260,14 @@ export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((er
232
260
  } | {
233
261
  type: "questlist";
234
262
  value: number;
235
- } | {
236
- type: "step_back";
237
263
  } | {
238
264
  type: "nudge";
239
265
  value: number;
240
266
  } | {
241
267
  type: "go_to_step";
242
268
  value: number;
269
+ } | {
270
+ type: "step_back";
243
271
  } | ({
244
272
  type: "open_bar";
245
273
  } & {
@@ -247,11 +275,11 @@ export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((er
247
275
  categoryFilter?: number | undefined;
248
276
  }) | {
249
277
  type: "open_helphub";
250
- } | {
278
+ } | ({
251
279
  type: "open_copilot";
252
- } | {
253
- type: "no_action";
254
- };
280
+ } & {
281
+ query?: string | undefined;
282
+ });
255
283
  show_as_primary_cta: boolean;
256
284
  } & {})[]>;
257
285
  export declare const create: (object: {} & {
@@ -262,31 +290,38 @@ export declare const create: (object: {} & {
262
290
  icon: string | null;
263
291
  icon_color: string | null;
264
292
  label: string;
265
- action: {
293
+ action: ({
294
+ type: "link";
295
+ value: string;
296
+ } & {
297
+ operation?: "self" | "router" | "blank" | undefined;
298
+ meta?: {
299
+ command: string;
300
+ } | undefined;
301
+ }) | {
302
+ type: "click" | "clickBySelector" | "clickByXpath";
303
+ value: string[];
304
+ } | {
266
305
  type: "execute_command";
267
306
  meta: {
268
307
  command: string;
269
308
  } & {
270
309
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
271
310
  };
311
+ } | {
312
+ type: "no_action";
272
313
  } | {
273
314
  type: "click";
274
315
  value: string;
275
316
  } | {
276
- type: "click" | "clickBySelector" | "clickByXpath";
277
- value: string[];
278
- } | ({
279
- type: "link";
280
- value: string;
281
- } & {
282
- operation?: "self" | "router" | "blank" | undefined;
283
- meta?: {
284
- command: string;
285
- } | undefined;
286
- }) | {
287
317
  type: "open_chat";
288
318
  meta: {
289
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
319
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
320
+ };
321
+ } | {
322
+ type: "chat_handoff";
323
+ meta: {
324
+ type: "" | "intercom" | "freshchat" | "zendesk";
290
325
  };
291
326
  } | {
292
327
  type: "dismiss";
@@ -295,14 +330,14 @@ export declare const create: (object: {} & {
295
330
  } | {
296
331
  type: "questlist";
297
332
  value: number;
298
- } | {
299
- type: "step_back";
300
333
  } | {
301
334
  type: "nudge";
302
335
  value: number;
303
336
  } | {
304
337
  type: "go_to_step";
305
338
  value: number;
339
+ } | {
340
+ type: "step_back";
306
341
  } | ({
307
342
  type: "open_bar";
308
343
  } & {
@@ -310,11 +345,11 @@ export declare const create: (object: {} & {
310
345
  categoryFilter?: number | undefined;
311
346
  }) | {
312
347
  type: "open_helphub";
313
- } | {
348
+ } | ({
314
349
  type: "open_copilot";
315
- } | {
316
- type: "no_action";
317
- };
350
+ } & {
351
+ query?: string | undefined;
352
+ });
318
353
  show_as_primary_cta: boolean;
319
354
  } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
320
355
  id: number;
@@ -324,31 +359,38 @@ export declare const create: (object: {} & {
324
359
  icon: string | null;
325
360
  icon_color: string | null;
326
361
  label: string;
327
- action: {
362
+ action: ({
363
+ type: "link";
364
+ value: string;
365
+ } & {
366
+ operation?: "self" | "router" | "blank" | undefined;
367
+ meta?: {
368
+ command: string;
369
+ } | undefined;
370
+ }) | {
371
+ type: "click" | "clickBySelector" | "clickByXpath";
372
+ value: string[];
373
+ } | {
328
374
  type: "execute_command";
329
375
  meta: {
330
376
  command: string;
331
377
  } & {
332
378
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
333
379
  };
380
+ } | {
381
+ type: "no_action";
334
382
  } | {
335
383
  type: "click";
336
384
  value: string;
337
385
  } | {
338
- type: "click" | "clickBySelector" | "clickByXpath";
339
- value: string[];
340
- } | ({
341
- type: "link";
342
- value: string;
343
- } & {
344
- operation?: "self" | "router" | "blank" | undefined;
345
- meta?: {
346
- command: string;
347
- } | undefined;
348
- }) | {
349
386
  type: "open_chat";
350
387
  meta: {
351
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
388
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
389
+ };
390
+ } | {
391
+ type: "chat_handoff";
392
+ meta: {
393
+ type: "" | "intercom" | "freshchat" | "zendesk";
352
394
  };
353
395
  } | {
354
396
  type: "dismiss";
@@ -357,14 +399,14 @@ export declare const create: (object: {} & {
357
399
  } | {
358
400
  type: "questlist";
359
401
  value: number;
360
- } | {
361
- type: "step_back";
362
402
  } | {
363
403
  type: "nudge";
364
404
  value: number;
365
405
  } | {
366
406
  type: "go_to_step";
367
407
  value: number;
408
+ } | {
409
+ type: "step_back";
368
410
  } | ({
369
411
  type: "open_bar";
370
412
  } & {
@@ -372,11 +414,11 @@ export declare const create: (object: {} & {
372
414
  categoryFilter?: number | undefined;
373
415
  }) | {
374
416
  type: "open_helphub";
375
- } | {
417
+ } | ({
376
418
  type: "open_copilot";
377
- } | {
378
- type: "no_action";
379
- };
419
+ } & {
420
+ query?: string | undefined;
421
+ });
380
422
  show_as_primary_cta: boolean;
381
423
  } & {}>;
382
424
  export declare const del: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
@@ -388,31 +430,38 @@ export declare const update: (object: {} & {
388
430
  icon: string | null;
389
431
  icon_color: string | null;
390
432
  label: string;
391
- action: {
433
+ action: ({
434
+ type: "link";
435
+ value: string;
436
+ } & {
437
+ operation?: "self" | "router" | "blank" | undefined;
438
+ meta?: {
439
+ command: string;
440
+ } | undefined;
441
+ }) | {
442
+ type: "click" | "clickBySelector" | "clickByXpath";
443
+ value: string[];
444
+ } | {
392
445
  type: "execute_command";
393
446
  meta: {
394
447
  command: string;
395
448
  } & {
396
449
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
397
450
  };
451
+ } | {
452
+ type: "no_action";
398
453
  } | {
399
454
  type: "click";
400
455
  value: string;
401
456
  } | {
402
- type: "click" | "clickBySelector" | "clickByXpath";
403
- value: string[];
404
- } | ({
405
- type: "link";
406
- value: string;
407
- } & {
408
- operation?: "self" | "router" | "blank" | undefined;
409
- meta?: {
410
- command: string;
411
- } | undefined;
412
- }) | {
413
457
  type: "open_chat";
414
458
  meta: {
415
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
459
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
460
+ };
461
+ } | {
462
+ type: "chat_handoff";
463
+ meta: {
464
+ type: "" | "intercom" | "freshchat" | "zendesk";
416
465
  };
417
466
  } | {
418
467
  type: "dismiss";
@@ -421,14 +470,14 @@ export declare const update: (object: {} & {
421
470
  } | {
422
471
  type: "questlist";
423
472
  value: number;
424
- } | {
425
- type: "step_back";
426
473
  } | {
427
474
  type: "nudge";
428
475
  value: number;
429
476
  } | {
430
477
  type: "go_to_step";
431
478
  value: number;
479
+ } | {
480
+ type: "step_back";
432
481
  } | ({
433
482
  type: "open_bar";
434
483
  } & {
@@ -436,11 +485,11 @@ export declare const update: (object: {} & {
436
485
  categoryFilter?: number | undefined;
437
486
  }) | {
438
487
  type: "open_helphub";
439
- } | {
488
+ } | ({
440
489
  type: "open_copilot";
441
- } | {
442
- type: "no_action";
443
- };
490
+ } & {
491
+ query?: string | undefined;
492
+ });
444
493
  show_as_primary_cta: boolean;
445
494
  } & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{} & {
446
495
  id: number;
@@ -450,31 +499,38 @@ export declare const update: (object: {} & {
450
499
  icon: string | null;
451
500
  icon_color: string | null;
452
501
  label: string;
453
- action: {
502
+ action: ({
503
+ type: "link";
504
+ value: string;
505
+ } & {
506
+ operation?: "self" | "router" | "blank" | undefined;
507
+ meta?: {
508
+ command: string;
509
+ } | undefined;
510
+ }) | {
511
+ type: "click" | "clickBySelector" | "clickByXpath";
512
+ value: string[];
513
+ } | {
454
514
  type: "execute_command";
455
515
  meta: {
456
516
  command: string;
457
517
  } & {
458
518
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
459
519
  };
520
+ } | {
521
+ type: "no_action";
460
522
  } | {
461
523
  type: "click";
462
524
  value: string;
463
525
  } | {
464
- type: "click" | "clickBySelector" | "clickByXpath";
465
- value: string[];
466
- } | ({
467
- type: "link";
468
- value: string;
469
- } & {
470
- operation?: "self" | "router" | "blank" | undefined;
471
- meta?: {
472
- command: string;
473
- } | undefined;
474
- }) | {
475
526
  type: "open_chat";
476
527
  meta: {
477
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
528
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
529
+ };
530
+ } | {
531
+ type: "chat_handoff";
532
+ meta: {
533
+ type: "" | "intercom" | "freshchat" | "zendesk";
478
534
  };
479
535
  } | {
480
536
  type: "dismiss";
@@ -483,14 +539,14 @@ export declare const update: (object: {} & {
483
539
  } | {
484
540
  type: "questlist";
485
541
  value: number;
486
- } | {
487
- type: "step_back";
488
542
  } | {
489
543
  type: "nudge";
490
544
  value: number;
491
545
  } | {
492
546
  type: "go_to_step";
493
547
  value: number;
548
+ } | {
549
+ type: "step_back";
494
550
  } | ({
495
551
  type: "open_bar";
496
552
  } & {
@@ -498,11 +554,11 @@ export declare const update: (object: {} & {
498
554
  categoryFilter?: number | undefined;
499
555
  }) | {
500
556
  type: "open_helphub";
501
- } | {
557
+ } | ({
502
558
  type: "open_copilot";
503
- } | {
504
- type: "no_action";
505
- };
559
+ } & {
560
+ query?: string | undefined;
561
+ });
506
562
  show_as_primary_cta: boolean;
507
563
  } & {}>;
508
564
  export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
@@ -514,31 +570,38 @@ export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => P
514
570
  icon: string | null;
515
571
  icon_color: string | null;
516
572
  label: string;
517
- action: {
573
+ action: ({
574
+ type: "link";
575
+ value: string;
576
+ } & {
577
+ operation?: "self" | "router" | "blank" | undefined;
578
+ meta?: {
579
+ command: string;
580
+ } | undefined;
581
+ }) | {
582
+ type: "click" | "clickBySelector" | "clickByXpath";
583
+ value: string[];
584
+ } | {
518
585
  type: "execute_command";
519
586
  meta: {
520
587
  command: string;
521
588
  } & {
522
589
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
523
590
  };
591
+ } | {
592
+ type: "no_action";
524
593
  } | {
525
594
  type: "click";
526
595
  value: string;
527
596
  } | {
528
- type: "click" | "clickBySelector" | "clickByXpath";
529
- value: string[];
530
- } | ({
531
- type: "link";
532
- value: string;
533
- } & {
534
- operation?: "self" | "router" | "blank" | undefined;
535
- meta?: {
536
- command: string;
537
- } | undefined;
538
- }) | {
539
597
  type: "open_chat";
540
598
  meta: {
541
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "pylon" | "zendesk_handoff";
599
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
600
+ };
601
+ } | {
602
+ type: "chat_handoff";
603
+ meta: {
604
+ type: "" | "intercom" | "freshchat" | "zendesk";
542
605
  };
543
606
  } | {
544
607
  type: "dismiss";
@@ -547,14 +610,14 @@ export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => P
547
610
  } | {
548
611
  type: "questlist";
549
612
  value: number;
550
- } | {
551
- type: "step_back";
552
613
  } | {
553
614
  type: "nudge";
554
615
  value: number;
555
616
  } | {
556
617
  type: "go_to_step";
557
618
  value: number;
619
+ } | {
620
+ type: "step_back";
558
621
  } | ({
559
622
  type: "open_bar";
560
623
  } & {
@@ -562,11 +625,11 @@ export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => P
562
625
  categoryFilter?: number | undefined;
563
626
  }) | {
564
627
  type: "open_helphub";
565
- } | {
628
+ } | ({
566
629
  type: "open_copilot";
567
- } | {
568
- type: "no_action";
569
- };
630
+ } & {
631
+ query?: string | undefined;
632
+ });
570
633
  show_as_primary_cta: boolean;
571
634
  } & {})[];
572
635
  }>;