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
@@ -1,5 +1,5 @@
1
1
  import * as t from 'io-ts';
2
- import { LabeledAction } from '../types';
2
+ import { ChatHandoffActionType, IOrganizationType, LabeledAction } from '../types';
3
3
  export declare const AdminAction: t.TypeC<{
4
4
  type: t.LiteralC<"admin">;
5
5
  value: t.StringC;
@@ -17,22 +17,35 @@ export declare const OpenBarAction: t.IntersectionC<[t.TypeC<{
17
17
  export declare const OpenHelpHubAction: t.TypeC<{
18
18
  type: t.LiteralC<"open_helphub">;
19
19
  }>;
20
- export declare const OpenCopilotAction: t.TypeC<{
20
+ export declare const OpenCopilotAction: t.IntersectionC<[t.TypeC<{
21
21
  type: t.LiteralC<"open_copilot">;
22
- }>;
22
+ }>, t.PartialC<{
23
+ query: t.StringC;
24
+ }>]>;
23
25
  export declare const LinkAction: t.IntersectionC<[t.TypeC<{
24
26
  type: t.LiteralC<"link">;
25
27
  value: t.StringC;
26
28
  }>, t.PartialC<{
27
29
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
30
+ meta: t.TypeC<{
31
+ command: t.StringC;
32
+ }>;
28
33
  }>]>;
29
- export declare const OpenChatActionTypeV: 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<"">]>;
34
+ export declare const OpenChatActionTypeV: 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<"">]>;
30
35
  export declare const OpenChatActionV: t.TypeC<{
31
36
  type: t.LiteralC<"open_chat">;
32
37
  meta: t.TypeC<{
33
- 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<"">]>;
38
+ 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<"">]>;
39
+ }>;
40
+ }>;
41
+ export declare const ChatHandoffActionTypeV: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
42
+ export declare const ChatHandoffActionV: t.TypeC<{
43
+ type: t.LiteralC<"chat_handoff">;
44
+ meta: t.TypeC<{
45
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
34
46
  }>;
35
47
  }>;
48
+ export declare const handoffNameToOrgKey: Record<Exclude<ChatHandoffActionType, ''>, keyof IOrganizationType['integrations']>;
36
49
  export declare const DismissAction: t.TypeC<{
37
50
  type: t.LiteralC<"dismiss">;
38
51
  }>;
@@ -128,10 +141,18 @@ export declare const ActionV: t.UnionC<[t.TypeC<{
128
141
  value: t.StringC;
129
142
  }>, t.PartialC<{
130
143
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
144
+ meta: t.TypeC<{
145
+ command: t.StringC;
146
+ }>;
131
147
  }>]>, t.TypeC<{
132
148
  type: t.LiteralC<"open_chat">;
133
149
  meta: t.TypeC<{
134
- 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<"">]>;
150
+ 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<"">]>;
151
+ }>;
152
+ }>, t.TypeC<{
153
+ type: t.LiteralC<"chat_handoff">;
154
+ meta: t.TypeC<{
155
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
135
156
  }>;
136
157
  }>, t.TypeC<{
137
158
  type: t.LiteralC<"dismiss">;
@@ -155,9 +176,11 @@ export declare const ActionV: t.UnionC<[t.TypeC<{
155
176
  categoryFilter: t.NumberC;
156
177
  }>]>, t.TypeC<{
157
178
  type: t.LiteralC<"open_helphub">;
158
- }>, t.TypeC<{
179
+ }>, t.IntersectionC<[t.TypeC<{
159
180
  type: t.LiteralC<"open_copilot">;
160
- }>]>;
181
+ }>, t.PartialC<{
182
+ query: t.StringC;
183
+ }>]>]>;
161
184
  export declare const LabeledActionV: t.TypeC<{
162
185
  cta: t.StringC;
163
186
  action: t.UnionC<[t.TypeC<{
@@ -180,10 +203,18 @@ export declare const LabeledActionV: t.TypeC<{
180
203
  value: t.StringC;
181
204
  }>, t.PartialC<{
182
205
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
206
+ meta: t.TypeC<{
207
+ command: t.StringC;
208
+ }>;
183
209
  }>]>, t.TypeC<{
184
210
  type: t.LiteralC<"open_chat">;
185
211
  meta: t.TypeC<{
186
- 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<"">]>;
212
+ 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<"">]>;
213
+ }>;
214
+ }>, t.TypeC<{
215
+ type: t.LiteralC<"chat_handoff">;
216
+ meta: t.TypeC<{
217
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
187
218
  }>;
188
219
  }>, t.TypeC<{
189
220
  type: t.LiteralC<"dismiss">;
@@ -207,34 +238,46 @@ export declare const LabeledActionV: t.TypeC<{
207
238
  categoryFilter: t.NumberC;
208
239
  }>]>, t.TypeC<{
209
240
  type: t.LiteralC<"open_helphub">;
210
- }>, t.TypeC<{
241
+ }>, t.IntersectionC<[t.TypeC<{
211
242
  type: t.LiteralC<"open_copilot">;
212
- }>]>;
243
+ }>, t.PartialC<{
244
+ query: t.StringC;
245
+ }>]>]>;
213
246
  }>;
214
247
  export declare const isAction: (o: string | number | LabeledAction) => o is {
215
248
  cta: string;
216
- action: {
249
+ action: ({
250
+ type: "link";
251
+ value: string;
252
+ } & {
253
+ operation?: "self" | "router" | "blank" | undefined;
254
+ meta?: {
255
+ command: string;
256
+ } | undefined;
257
+ }) | {
258
+ type: "click" | "clickBySelector" | "clickByXpath";
259
+ value: string[];
260
+ } | {
217
261
  type: "execute_command";
218
262
  meta: {
219
263
  command: string;
220
264
  } & {
221
265
  type?: "link" | "video" | "action" | "helpdoc" | undefined;
222
266
  };
267
+ } | {
268
+ type: "no_action";
223
269
  } | {
224
270
  type: "click";
225
271
  value: string;
226
272
  } | {
227
- type: "click" | "clickBySelector" | "clickByXpath";
228
- value: string[];
229
- } | ({
230
- type: "link";
231
- value: string;
232
- } & {
233
- operation?: "self" | "router" | "blank" | undefined;
234
- }) | {
235
273
  type: "open_chat";
236
274
  meta: {
237
- type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
275
+ type: "" | "hubspot" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "drift" | "pylon" | "zendesk_handoff";
276
+ };
277
+ } | {
278
+ type: "chat_handoff";
279
+ meta: {
280
+ type: "" | "intercom" | "freshchat" | "zendesk";
238
281
  };
239
282
  } | {
240
283
  type: "dismiss";
@@ -243,14 +286,14 @@ export declare const isAction: (o: string | number | LabeledAction) => o is {
243
286
  } | {
244
287
  type: "questlist";
245
288
  value: number;
246
- } | {
247
- type: "step_back";
248
289
  } | {
249
290
  type: "nudge";
250
291
  value: number;
251
292
  } | {
252
293
  type: "go_to_step";
253
294
  value: number;
295
+ } | {
296
+ type: "step_back";
254
297
  } | ({
255
298
  type: "open_bar";
256
299
  } & {
@@ -258,11 +301,11 @@ export declare const isAction: (o: string | number | LabeledAction) => o is {
258
301
  categoryFilter?: number | undefined;
259
302
  }) | {
260
303
  type: "open_helphub";
261
- } | {
304
+ } | ({
262
305
  type: "open_copilot";
263
- } | {
264
- type: "no_action";
265
- };
306
+ } & {
307
+ query?: string | undefined;
308
+ });
266
309
  };
267
310
  export declare const RequestV: t.IntersectionC<[t.TypeC<{
268
311
  method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
@@ -309,10 +352,18 @@ export declare const TriggerAction: t.TypeC<{
309
352
  value: t.StringC;
310
353
  }>, t.PartialC<{
311
354
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
355
+ meta: t.TypeC<{
356
+ command: t.StringC;
357
+ }>;
312
358
  }>]>, t.TypeC<{
313
359
  type: t.LiteralC<"open_chat">;
314
360
  meta: t.TypeC<{
315
- 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<"">]>;
361
+ 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<"">]>;
362
+ }>;
363
+ }>, t.TypeC<{
364
+ type: t.LiteralC<"chat_handoff">;
365
+ meta: t.TypeC<{
366
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
316
367
  }>;
317
368
  }>, t.TypeC<{
318
369
  type: t.LiteralC<"dismiss">;
@@ -336,7 +387,9 @@ export declare const TriggerAction: t.TypeC<{
336
387
  categoryFilter: t.NumberC;
337
388
  }>]>, t.TypeC<{
338
389
  type: t.LiteralC<"open_helphub">;
339
- }>, t.TypeC<{
390
+ }>, t.IntersectionC<[t.TypeC<{
340
391
  type: t.LiteralC<"open_copilot">;
341
- }>]>;
392
+ }>, t.PartialC<{
393
+ query: t.StringC;
394
+ }>]>]>;
342
395
  }>;
@@ -33,6 +33,9 @@ export declare const LinkTemplateV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
33
33
  value: t.StringC;
34
34
  }>, t.PartialC<{
35
35
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
36
+ meta: t.TypeC<{
37
+ command: t.StringC;
38
+ }>;
36
39
  }>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
37
40
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
38
41
  object: t.StringC;
@@ -169,10 +172,18 @@ export declare const TriggerTemplateV: t.IntersectionC<[t.TypeC<{
169
172
  value: t.StringC;
170
173
  }>, t.PartialC<{
171
174
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
175
+ meta: t.TypeC<{
176
+ command: t.StringC;
177
+ }>;
172
178
  }>]>, t.TypeC<{
173
179
  type: t.LiteralC<"open_chat">;
174
180
  meta: t.TypeC<{
175
- 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<"">]>;
181
+ 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<"">]>;
182
+ }>;
183
+ }>, t.TypeC<{
184
+ type: t.LiteralC<"chat_handoff">;
185
+ meta: t.TypeC<{
186
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
176
187
  }>;
177
188
  }>, t.TypeC<{
178
189
  type: t.LiteralC<"dismiss">;
@@ -196,9 +207,11 @@ export declare const TriggerTemplateV: t.IntersectionC<[t.TypeC<{
196
207
  categoryFilter: t.NumberC;
197
208
  }>]>, t.TypeC<{
198
209
  type: t.LiteralC<"open_helphub">;
199
- }>, t.TypeC<{
210
+ }>, t.IntersectionC<[t.TypeC<{
200
211
  type: t.LiteralC<"open_copilot">;
201
- }>]>;
212
+ }>, t.PartialC<{
213
+ query: t.StringC;
214
+ }>]>]>;
202
215
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
203
216
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
204
217
  object: t.StringC;
@@ -229,6 +242,9 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
229
242
  value: t.StringC;
230
243
  }>, t.PartialC<{
231
244
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
245
+ meta: t.TypeC<{
246
+ command: t.StringC;
247
+ }>;
232
248
  }>]>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
233
249
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
234
250
  object: t.StringC;
@@ -355,10 +371,18 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
355
371
  value: t.StringC;
356
372
  }>, t.PartialC<{
357
373
  operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
374
+ meta: t.TypeC<{
375
+ command: t.StringC;
376
+ }>;
358
377
  }>]>, t.TypeC<{
359
378
  type: t.LiteralC<"open_chat">;
360
379
  meta: t.TypeC<{
361
- 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<"">]>;
380
+ 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<"">]>;
381
+ }>;
382
+ }>, t.TypeC<{
383
+ type: t.LiteralC<"chat_handoff">;
384
+ meta: t.TypeC<{
385
+ type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"freshchat">, t.LiteralC<"zendesk">, t.LiteralC<"">]>;
362
386
  }>;
363
387
  }>, t.TypeC<{
364
388
  type: t.LiteralC<"dismiss">;
@@ -382,9 +406,11 @@ export declare const TemplateV: t.UnionC<[t.IntersectionC<[t.TypeC<{
382
406
  categoryFilter: t.NumberC;
383
407
  }>]>, t.TypeC<{
384
408
  type: t.LiteralC<"open_helphub">;
385
- }>, t.TypeC<{
409
+ }>, t.IntersectionC<[t.TypeC<{
386
410
  type: t.LiteralC<"open_copilot">;
387
- }>]>;
411
+ }>, t.PartialC<{
412
+ query: t.StringC;
413
+ }>]>]>;
388
414
  }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
389
415
  commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
390
416
  object: t.StringC;
@@ -1,14 +1,17 @@
1
1
  import * as t from 'io-ts';
2
2
  import { IRecommendationSet } from '../types';
3
- export declare const listOperators: readonly ["includes", "doesNotInclude"];
3
+ export declare const listOperators: readonly ["isInList", "isNotInList"];
4
+ export declare const legacyListOperators: readonly ["includes", "doesNotInclude"];
4
5
  export declare const equalityOperators: readonly ["is", "isNot"];
5
6
  export declare const numericOperators: readonly ["isGreaterThan", "isLessThan"];
6
- export declare const operators: readonly ["isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "matchesRegex", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage", "classnameNotOnPage", "idNotOnPage", "selectorNotOnPage", "includes", "doesNotInclude", "is", "isNot", "isGreaterThan", "isLessThan"];
7
+ export declare const operators: readonly ["isInList", "isNotInList", "isTrue", "isFalse", "isTruthy", "isFalsy", "startsWith", "endsWith", "matchesRegex", "isDefined", "isNotDefined", "classnameOnPage", "idOnPage", "selectorOnPage", "classnameNotOnPage", "idNotOnPage", "selectorNotOnPage", "includes", "doesNotInclude", "is", "isNot", "isGreaterThan", "isLessThan"];
7
8
  export declare const OperatorV: t.KeyofC<{
8
9
  includes: null;
9
10
  endsWith: null;
10
11
  startsWith: null;
11
12
  is: null;
13
+ isInList: null;
14
+ isNotInList: null;
12
15
  isTrue: null;
13
16
  isFalse: null;
14
17
  isTruthy: null;
@@ -87,6 +90,8 @@ export declare const SingleValueConditionV: t.UnionC<[t.IntersectionC<[t.TypeC<{
87
90
  endsWith: null;
88
91
  startsWith: null;
89
92
  is: null;
93
+ isInList: null;
94
+ isNotInList: null;
90
95
  isTrue: null;
91
96
  isFalse: null;
92
97
  isTruthy: null;
@@ -138,6 +143,8 @@ export declare const ConditionV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
138
143
  endsWith: null;
139
144
  startsWith: null;
140
145
  is: null;
146
+ isInList: null;
147
+ isNotInList: null;
141
148
  isTrue: null;
142
149
  isFalse: null;
143
150
  isTruthy: null;
@@ -241,6 +248,8 @@ export declare const AvailabilityRuleV: t.UnionC<[t.UnionC<[t.IntersectionC<[t.T
241
248
  endsWith: null;
242
249
  startsWith: null;
243
250
  is: null;
251
+ isInList: null;
252
+ isNotInList: null;
244
253
  isTrue: null;
245
254
  isFalse: null;
246
255
  isTruthy: null;
@@ -309,6 +318,8 @@ export declare const RecommendationRuleV: t.UnionC<[t.IntersectionC<[t.TypeC<{
309
318
  endsWith: null;
310
319
  startsWith: null;
311
320
  is: null;
321
+ isInList: null;
322
+ isNotInList: null;
312
323
  isTrue: null;
313
324
  isFalse: null;
314
325
  isTruthy: null;
@@ -369,6 +380,8 @@ export declare const EditorAvailabilityRuleV: t.UnionC<[t.UnionC<[t.UnionC<[t.In
369
380
  endsWith: null;
370
381
  startsWith: null;
371
382
  is: null;
383
+ isInList: null;
384
+ isNotInList: null;
372
385
  isTrue: null;
373
386
  isFalse: null;
374
387
  isTruthy: null;
@@ -442,6 +455,8 @@ export declare const EditorRecommendationRuleV: t.UnionC<[t.UnionC<[t.Intersecti
442
455
  endsWith: null;
443
456
  startsWith: null;
444
457
  is: null;
458
+ isInList: null;
459
+ isNotInList: null;
445
460
  isTrue: null;
446
461
  isFalse: null;
447
462
  isTruthy: null;
@@ -542,8 +557,8 @@ export type ABTestCondition = ExpressionCondition & {
542
557
  value: string;
543
558
  };
544
559
  export declare const isABTestCondition: (condition: ExpressionCondition) => condition is {
545
- type: "url" | "element" | "amplitude" | "context" | "hubspot" | "device_type" | "sessions" | "survey_response" | "user_property" | "event_property" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "opens" | "deadends" | "heap" | "ab_test" | "intent" | "help_doc_interaction" | "video_interaction";
546
- operator: "includes" | "endsWith" | "startsWith" | "is" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot" | "isGreaterThan" | "isLessThan";
560
+ type: "url" | "element" | "amplitude" | "context" | "user_property" | "event_property" | "hostname" | "executions" | "shortcuts" | "last_seen" | "first_seen" | "sessions" | "opens" | "deadends" | "heap" | "hubspot" | "device_type" | "ab_test" | "intent" | "help_doc_interaction" | "video_interaction" | "survey_response";
561
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isInList" | "isNotInList" | "isTrue" | "isFalse" | "isTruthy" | "isFalsy" | "matchesRegex" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage" | "selectorOnPage" | "classnameNotOnPage" | "idNotOnPage" | "selectorNotOnPage" | "doesNotInclude" | "isNot" | "isGreaterThan" | "isLessThan";
547
562
  } & {
548
563
  field?: string | undefined;
549
564
  value?: string | undefined;
@@ -0,0 +1,82 @@
1
+ import * as t from 'io-ts';
2
+ import { GenericBatchRequest } from './generics';
3
+ export declare const KeywordV: t.IntersectionC<[t.TypeC<{
4
+ id: t.NumberC;
5
+ keyword: t.StringC;
6
+ definition: t.StringC;
7
+ is_live: t.BooleanC;
8
+ }>, t.PartialC<{
9
+ modified: t.StringC;
10
+ }>]>;
11
+ export declare const BatchEditorKeywordResponseV: t.TypeC<{
12
+ batch: t.ArrayC<t.IntersectionC<[t.TypeC<{
13
+ id: t.NumberC;
14
+ keyword: t.StringC;
15
+ definition: t.StringC;
16
+ is_live: t.BooleanC;
17
+ }>, t.PartialC<{
18
+ modified: t.StringC;
19
+ }>]>>;
20
+ }>;
21
+ export declare class Keyword {
22
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
23
+ id: number;
24
+ keyword: string;
25
+ definition: string;
26
+ is_live: boolean;
27
+ } & {
28
+ modified?: string | undefined;
29
+ })[]>;
30
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
31
+ onSuccess?: (() => void) | undefined;
32
+ onError?: ((err: string) => void) | undefined;
33
+ } | undefined) => Promise<{
34
+ id: number;
35
+ keyword: string;
36
+ definition: string;
37
+ is_live: boolean;
38
+ } & {
39
+ modified?: string | undefined;
40
+ }>;
41
+ static update: (object: {
42
+ id: number;
43
+ keyword: string;
44
+ definition: string;
45
+ is_live: boolean;
46
+ } & {
47
+ modified?: string | undefined;
48
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
49
+ id: number;
50
+ keyword: string;
51
+ definition: string;
52
+ is_live: boolean;
53
+ } & {
54
+ modified?: string | undefined;
55
+ }>;
56
+ static create: (object: {
57
+ id: number;
58
+ keyword: string;
59
+ definition: string;
60
+ is_live: boolean;
61
+ } & {
62
+ modified?: string | undefined;
63
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
64
+ id: number;
65
+ keyword: string;
66
+ definition: string;
67
+ is_live: boolean;
68
+ } & {
69
+ modified?: string | undefined;
70
+ }>;
71
+ static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
72
+ static batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
73
+ batch: ({
74
+ id: number;
75
+ keyword: string;
76
+ definition: string;
77
+ is_live: boolean;
78
+ } & {
79
+ modified?: string | undefined;
80
+ })[];
81
+ }>;
82
+ }
@@ -12,8 +12,8 @@ export type Response<T> = {
12
12
  statusText: string;
13
13
  headers: Record<string, string>;
14
14
  };
15
- export declare const put: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
16
- export declare const post: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
15
+ export declare const put: <T = any>(url: string, data?: string | object | Blob | undefined, options?: FetchOptions) => Promise<Response<T>>;
16
+ export declare const post: <T = any>(url: string, data?: string | object | Blob | undefined, options?: FetchOptions) => Promise<Response<T>>;
17
17
  export declare const get: <T = any>(url: string, options?: FetchOptions) => Promise<Response<T>>;
18
18
  export declare const patch: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;
19
19
  export declare const del: <T = any>(url: string, data?: string | object | undefined, options?: FetchOptions) => Promise<Response<T>>;