commandbar 1.12.0 → 1.13.1

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