commandbar 1.10.2 → 1.11.0

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 (52) hide show
  1. package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +7 -2
  2. package/build/commandbar/src/shared/services/analytics/event-queue.d.ts +13 -0
  3. package/build/commandbar/src/shared/services/analytics/types.d.ts +1 -1
  4. package/build/commandbar/src/shared/services/analytics/v2/client.d.ts +54 -0
  5. package/build/commandbar/src/shared/services/analytics/v2/helpers.d.ts +6 -0
  6. package/build/commandbar/src/shared/services/analytics/v2/schema.d.ts +152 -0
  7. package/build/commandbar/src/shared/services/analytics/v2/types.d.ts +4 -0
  8. package/build/commandbar-js/src/index.d.ts +0 -1
  9. package/build/commandbar-js/src/index.js +1 -1
  10. package/build/commandbar-js/src/snippet.d.ts +7 -1
  11. package/build/internal/src/client/CommandBarClientSDK.d.ts +12 -0
  12. package/build/internal/src/client/CommandBarProxySDK.d.ts +1 -4
  13. package/build/internal/src/client/CommandBarSDK.d.ts +5 -3
  14. package/build/internal/src/client/SDKConfig.d.ts +3 -1
  15. package/build/internal/src/client/globals.d.ts +1 -0
  16. package/build/internal/src/client/symbols.d.ts +3 -1
  17. package/build/internal/src/middleware/CommandFromClientV.d.ts +16 -2
  18. package/build/internal/src/middleware/OrganizationV.d.ts +34 -8
  19. package/build/internal/src/middleware/additionalResource.d.ts +9 -9
  20. package/build/internal/src/middleware/api.d.ts +173 -0
  21. package/build/internal/src/middleware/billing.d.ts +10 -0
  22. package/build/internal/src/middleware/chat.d.ts +3662 -172
  23. package/build/internal/src/middleware/checklist.d.ts +18 -10
  24. package/build/internal/src/middleware/command.d.ts +540 -140
  25. package/build/internal/src/middleware/endUser.d.ts +2 -0
  26. package/build/internal/src/middleware/experienceTemplate.d.ts +2874 -8
  27. package/build/internal/src/middleware/experiencesSearch.d.ts +233 -28
  28. package/build/internal/src/middleware/flags.d.ts +14 -1
  29. package/build/internal/src/middleware/generics.d.ts +1 -0
  30. package/build/internal/src/middleware/helpDocsIntegration.d.ts +98 -0
  31. package/build/internal/src/middleware/helpDocsSearch.d.ts +165 -20
  32. package/build/internal/src/middleware/helpDocsSync.d.ts +4 -0
  33. package/build/internal/src/middleware/helpers/actions.d.ts +6 -6
  34. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +2 -2
  35. package/build/internal/src/middleware/helpers/rules.d.ts +7 -7
  36. package/build/internal/src/middleware/localizedMessage.d.ts +50 -0
  37. package/build/internal/src/middleware/network.d.ts +1 -0
  38. package/build/internal/src/middleware/nudge.d.ts +96 -24
  39. package/build/internal/src/middleware/organization.d.ts +180 -62
  40. package/build/internal/src/middleware/organizationSettings.d.ts +8 -8
  41. package/build/internal/src/middleware/profile.d.ts +8 -0
  42. package/build/internal/src/middleware/recommendationSet.d.ts +18 -9
  43. package/build/internal/src/middleware/theme.d.ts +7 -0
  44. package/build/internal/src/middleware/types.d.ts +23 -5
  45. package/build/internal/src/middleware/user.d.ts +9 -1
  46. package/build/internal/src/middleware/workflow.d.ts +69 -0
  47. package/package.json +5 -2
  48. package/src/index.ts +0 -1
  49. package/src/init.ts +27 -13
  50. package/src/snippet.ts +79 -74
  51. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  52. package/build/internal/src/middleware/guide.d.ts +0 -37
@@ -197,7 +197,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
197
197
  random: t.AnyC;
198
198
  }>, t.NullC]>;
199
199
  availability_rules: t.ArrayC<t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
200
- type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
200
+ type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"amplitude">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
201
201
  operator: t.KeyofC<{
202
202
  includes: null;
203
203
  endsWith: null;
@@ -265,7 +265,7 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
265
265
  reason: t.UnionC<[t.UndefinedC, t.NullC]>;
266
266
  rule_id: t.UnionC<[t.NumberC, t.StringC]>;
267
267
  }>]>, t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
268
- type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
268
+ type: t.UnionC<[t.LiteralC<"user_property">, t.LiteralC<"event_property">, t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"hostname">, t.LiteralC<"element">, t.LiteralC<"executions">, t.LiteralC<"shortcuts">, t.LiteralC<"last_seen">, t.LiteralC<"first_seen">, t.LiteralC<"sessions">, t.LiteralC<"opens">, t.LiteralC<"deadends">, t.LiteralC<"heap">, t.LiteralC<"hubspot">, t.LiteralC<"amplitude">, t.LiteralC<"device_type">, t.LiteralC<"ab_test">, t.LiteralC<"intent">, t.LiteralC<"help_doc_interaction">, t.LiteralC<"video_interaction">, t.LiteralC<"survey_response">]>;
269
269
  operator: t.KeyofC<{
270
270
  includes: null;
271
271
  endsWith: null;
@@ -326,6 +326,20 @@ export declare const CommandFromClientV: t.IntersectionC<[t.TypeC<{
326
326
  }>]>]>]>>;
327
327
  availability_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;
328
328
  recommend_expression: t.ArrayC<t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>>;
329
+ audience: t.UnionC<[t.TypeC<{
330
+ type: t.LiteralC<"all_users">;
331
+ }>, t.TypeC<{
332
+ type: t.LiteralC<"rule_expression">;
333
+ expression: t.Type<import("./helpers/rules").RuleExpression, import("./helpers/rules").RuleExpression, unknown>;
334
+ }>, t.TypeC<{
335
+ type: t.LiteralC<"named_rule_reference">;
336
+ rule_reference: t.IntersectionC<[t.TypeC<{
337
+ type: t.LiteralC<"named_rule">;
338
+ rule_id: t.UnionC<[t.NumberC, t.StringC]>;
339
+ }>, t.PartialC<{
340
+ reason: t.StringC;
341
+ }>]>;
342
+ }>]>;
329
343
  detail: t.UnionC<[t.StringC, t.IntersectionC<[t.TypeC<{
330
344
  type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.LiteralC<"component">]>;
331
345
  value: t.StringC;
@@ -28,6 +28,7 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
28
28
  icon_suggest: t.StringC;
29
29
  icon_tutorial: t.StringC;
30
30
  icon_go_forward: t.StringC;
31
+ logo_spotlight: t.UnionC<[t.StringC, t.NullC]>;
31
32
  chat_system_prompt_modifier: t.StringC;
32
33
  helphub_chat_welcome_message: t.StringC;
33
34
  helphub_chat_avatar: t.StringC;
@@ -151,7 +152,7 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
151
152
  }>]>, t.TypeC<{
152
153
  type: t.LiteralC<"open_chat">;
153
154
  meta: t.TypeC<{
154
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
155
+ 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<"">]>;
155
156
  }>;
156
157
  }>, t.TypeC<{
157
158
  type: t.LiteralC<"dismiss">;
@@ -206,7 +207,7 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
206
207
  }>]>, t.TypeC<{
207
208
  type: t.LiteralC<"open_chat">;
208
209
  meta: t.TypeC<{
209
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
210
+ 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<"">]>;
210
211
  }>;
211
212
  }>, t.TypeC<{
212
213
  type: t.LiteralC<"dismiss">;
@@ -260,9 +261,12 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
260
261
  segments: t.RecordC<t.StringC, t.StringC>;
261
262
  send_events_to_heap: t.BooleanC;
262
263
  }>;
263
- amplitude: t.TypeC<{
264
+ amplitude: t.IntersectionC<[t.TypeC<{
264
265
  enabled: t.BooleanC;
265
- }>;
266
+ }>, t.PartialC<{
267
+ cohorts: t.RecordC<t.StringC, t.StringC>;
268
+ api_key: t.StringC;
269
+ }>]>;
266
270
  logrocket: t.TypeC<{
267
271
  enabled: t.BooleanC;
268
272
  }>;
@@ -285,6 +289,15 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
285
289
  send_events_to_hubspot: t.BooleanC;
286
290
  lists: t.RecordC<t.StringC, t.StringC>;
287
291
  }>;
292
+ sunshine: t.PartialC<{
293
+ enabled: t.BooleanC;
294
+ app_id: t.StringC;
295
+ key_id: t.StringC;
296
+ secret_key: t.StringC;
297
+ integration_id: t.StringC;
298
+ webhook_shared_secret: t.StringC;
299
+ switchboard_id: t.StringC;
300
+ }>;
288
301
  }>;
289
302
  copilot_enabled: t.BooleanC;
290
303
  user_property_targeting: t.BooleanC;
@@ -342,6 +355,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
342
355
  icon_suggest: t.StringC;
343
356
  icon_tutorial: t.StringC;
344
357
  icon_go_forward: t.StringC;
358
+ logo_spotlight: t.UnionC<[t.StringC, t.NullC]>;
345
359
  chat_system_prompt_modifier: t.StringC;
346
360
  helphub_chat_welcome_message: t.StringC;
347
361
  helphub_chat_avatar: t.StringC;
@@ -465,7 +479,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
465
479
  }>]>, t.TypeC<{
466
480
  type: t.LiteralC<"open_chat">;
467
481
  meta: t.TypeC<{
468
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
482
+ 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<"">]>;
469
483
  }>;
470
484
  }>, t.TypeC<{
471
485
  type: t.LiteralC<"dismiss">;
@@ -520,7 +534,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
520
534
  }>]>, t.TypeC<{
521
535
  type: t.LiteralC<"open_chat">;
522
536
  meta: t.TypeC<{
523
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
537
+ 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<"">]>;
524
538
  }>;
525
539
  }>, t.TypeC<{
526
540
  type: t.LiteralC<"dismiss">;
@@ -574,9 +588,12 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
574
588
  segments: t.RecordC<t.StringC, t.StringC>;
575
589
  send_events_to_heap: t.BooleanC;
576
590
  }>;
577
- amplitude: t.TypeC<{
591
+ amplitude: t.IntersectionC<[t.TypeC<{
578
592
  enabled: t.BooleanC;
579
- }>;
593
+ }>, t.PartialC<{
594
+ cohorts: t.RecordC<t.StringC, t.StringC>;
595
+ api_key: t.StringC;
596
+ }>]>;
580
597
  logrocket: t.TypeC<{
581
598
  enabled: t.BooleanC;
582
599
  }>;
@@ -599,6 +616,15 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
599
616
  send_events_to_hubspot: t.BooleanC;
600
617
  lists: t.RecordC<t.StringC, t.StringC>;
601
618
  }>;
619
+ sunshine: t.PartialC<{
620
+ enabled: t.BooleanC;
621
+ app_id: t.StringC;
622
+ key_id: t.StringC;
623
+ secret_key: t.StringC;
624
+ integration_id: t.StringC;
625
+ webhook_shared_secret: t.StringC;
626
+ switchboard_id: t.StringC;
627
+ }>;
602
628
  }>;
603
629
  copilot_enabled: t.BooleanC;
604
630
  user_property_targeting: t.BooleanC;
@@ -31,7 +31,7 @@ export declare const AdditionalResourceV: t.IntersectionC<[t.TypeC<{}>, t.Inters
31
31
  }>]>, t.TypeC<{
32
32
  type: t.LiteralC<"open_chat">;
33
33
  meta: t.TypeC<{
34
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
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<"">]>;
35
35
  }>;
36
36
  }>, t.TypeC<{
37
37
  type: t.LiteralC<"dismiss">;
@@ -92,7 +92,7 @@ export declare const BatchAdditionalResourceResponseV: t.TypeC<{
92
92
  }>]>, t.TypeC<{
93
93
  type: t.LiteralC<"open_chat">;
94
94
  meta: t.TypeC<{
95
- type: t.UnionC<[t.LiteralC<"intercom">, t.LiteralC<"helpscout">, t.LiteralC<"freshdesk">, t.LiteralC<"crisp">, t.LiteralC<"zendesk">, t.LiteralC<"liveChat">, t.LiteralC<"gist">, t.LiteralC<"olark">, t.LiteralC<"hubspot">, t.LiteralC<"drift">, t.LiteralC<"">]>;
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<"">]>;
96
96
  }>;
97
97
  }>, t.TypeC<{
98
98
  type: t.LiteralC<"dismiss">;
@@ -151,7 +151,7 @@ export declare const decode: (data: any) => {} & {
151
151
  }) | {
152
152
  type: "open_chat";
153
153
  meta: {
154
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
154
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
155
155
  };
156
156
  } | {
157
157
  type: "dismiss";
@@ -211,7 +211,7 @@ export declare const list: (onSuccess?: (() => void) | undefined, onError?: ((er
211
211
  }) | {
212
212
  type: "open_chat";
213
213
  meta: {
214
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
214
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
215
215
  };
216
216
  } | {
217
217
  type: "dismiss";
@@ -271,7 +271,7 @@ export declare const create: (object: {} & {
271
271
  }) | {
272
272
  type: "open_chat";
273
273
  meta: {
274
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
274
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
275
275
  };
276
276
  } | {
277
277
  type: "dismiss";
@@ -330,7 +330,7 @@ export declare const create: (object: {} & {
330
330
  }) | {
331
331
  type: "open_chat";
332
332
  meta: {
333
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
333
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
334
334
  };
335
335
  } | {
336
336
  type: "dismiss";
@@ -391,7 +391,7 @@ export declare const update: (object: {} & {
391
391
  }) | {
392
392
  type: "open_chat";
393
393
  meta: {
394
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
394
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
395
395
  };
396
396
  } | {
397
397
  type: "dismiss";
@@ -450,7 +450,7 @@ export declare const update: (object: {} & {
450
450
  }) | {
451
451
  type: "open_chat";
452
452
  meta: {
453
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
453
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
454
454
  };
455
455
  } | {
456
456
  type: "dismiss";
@@ -511,7 +511,7 @@ export declare const batch: (request: t.TypeOf<typeof GenericBatchRequest>) => P
511
511
  }) | {
512
512
  type: "open_chat";
513
513
  meta: {
514
- type: "" | "intercom" | "helpscout" | "freshdesk" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift";
514
+ type: "" | "intercom" | "helpscout" | "freshdesk" | "freshchat" | "crisp" | "zendesk" | "liveChat" | "gist" | "olark" | "hubspot" | "drift" | "zendesk_handoff";
515
515
  };
516
516
  } | {
517
517
  type: "dismiss";
@@ -0,0 +1,173 @@
1
+ import * as t from 'io-ts';
2
+ export declare const APIV: t.TypeC<{
3
+ id: t.NumberC;
4
+ archived: t.BooleanC;
5
+ is_live: t.BooleanC;
6
+ title: t.StringC;
7
+ description: t.StringC;
8
+ method: t.UnionC<[t.LiteralC<"GET">, t.LiteralC<"POST">, t.LiteralC<"PUT">, t.LiteralC<"PATCH">, t.LiteralC<"DELETE">]>;
9
+ url: t.StringC;
10
+ body: t.StringC;
11
+ headers: t.StringC;
12
+ require_confirmation: t.BooleanC;
13
+ confirm_cta: t.StringC;
14
+ cancel_cta: t.StringC;
15
+ parameters: t.ArrayC<t.TypeC<{
16
+ archived: t.BooleanC;
17
+ name: t.StringC;
18
+ description: t.StringC;
19
+ type: t.UnionC<[t.LiteralC<"string">, t.LiteralC<"number">, t.LiteralC<"boolean">]>;
20
+ required: t.BooleanC;
21
+ }>>;
22
+ }>;
23
+ export declare class API {
24
+ static decode: (data: any) => {
25
+ id: number;
26
+ archived: boolean;
27
+ is_live: boolean;
28
+ title: string;
29
+ description: string;
30
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
31
+ url: string;
32
+ body: string;
33
+ headers: string;
34
+ require_confirmation: boolean;
35
+ confirm_cta: string;
36
+ cancel_cta: string;
37
+ parameters: {
38
+ archived: boolean;
39
+ name: string;
40
+ description: string;
41
+ type: "string" | "number" | "boolean";
42
+ required: boolean;
43
+ }[];
44
+ };
45
+ static create: (object: {
46
+ id: number;
47
+ archived: boolean;
48
+ is_live: boolean;
49
+ title: string;
50
+ description: string;
51
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
52
+ url: string;
53
+ body: string;
54
+ headers: string;
55
+ require_confirmation: boolean;
56
+ confirm_cta: string;
57
+ cancel_cta: string;
58
+ parameters: {
59
+ archived: boolean;
60
+ name: string;
61
+ description: string;
62
+ type: "string" | "number" | "boolean";
63
+ required: boolean;
64
+ }[];
65
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
66
+ id: number;
67
+ archived: boolean;
68
+ is_live: boolean;
69
+ title: string;
70
+ description: string;
71
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
72
+ url: string;
73
+ body: string;
74
+ headers: string;
75
+ require_confirmation: boolean;
76
+ confirm_cta: string;
77
+ cancel_cta: string;
78
+ parameters: {
79
+ archived: boolean;
80
+ name: string;
81
+ description: string;
82
+ type: "string" | "number" | "boolean";
83
+ required: boolean;
84
+ }[];
85
+ }>;
86
+ static update: (object: {
87
+ id: number;
88
+ archived: boolean;
89
+ is_live: boolean;
90
+ title: string;
91
+ description: string;
92
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
93
+ url: string;
94
+ body: string;
95
+ headers: string;
96
+ require_confirmation: boolean;
97
+ confirm_cta: string;
98
+ cancel_cta: string;
99
+ parameters: {
100
+ archived: boolean;
101
+ name: string;
102
+ description: string;
103
+ type: "string" | "number" | "boolean";
104
+ required: boolean;
105
+ }[];
106
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
107
+ id: number;
108
+ archived: boolean;
109
+ is_live: boolean;
110
+ title: string;
111
+ description: string;
112
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
113
+ url: string;
114
+ body: string;
115
+ headers: string;
116
+ require_confirmation: boolean;
117
+ confirm_cta: string;
118
+ cancel_cta: string;
119
+ parameters: {
120
+ archived: boolean;
121
+ name: string;
122
+ description: string;
123
+ type: "string" | "number" | "boolean";
124
+ required: boolean;
125
+ }[];
126
+ }>;
127
+ static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
128
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
129
+ id: number;
130
+ archived: boolean;
131
+ is_live: boolean;
132
+ title: string;
133
+ description: string;
134
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
135
+ url: string;
136
+ body: string;
137
+ headers: string;
138
+ require_confirmation: boolean;
139
+ confirm_cta: string;
140
+ cancel_cta: string;
141
+ parameters: {
142
+ archived: boolean;
143
+ name: string;
144
+ description: string;
145
+ type: "string" | "number" | "boolean";
146
+ required: boolean;
147
+ }[];
148
+ }[]>;
149
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
150
+ onSuccess?: (() => void) | undefined;
151
+ onError?: ((err: string) => void) | undefined;
152
+ } | undefined) => Promise<{
153
+ id: number;
154
+ archived: boolean;
155
+ is_live: boolean;
156
+ title: string;
157
+ description: string;
158
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
159
+ url: string;
160
+ body: string;
161
+ headers: string;
162
+ require_confirmation: boolean;
163
+ confirm_cta: string;
164
+ cancel_cta: string;
165
+ parameters: {
166
+ archived: boolean;
167
+ name: string;
168
+ description: string;
169
+ type: "string" | "number" | "boolean";
170
+ required: boolean;
171
+ }[];
172
+ }>;
173
+ }
@@ -18,6 +18,8 @@ export declare const StripInfoV: t.IntersectionC<[t.TypeC<{
18
18
  invoice_date_end: t.UnionC<[t.StringC, t.NullC]>;
19
19
  }>, t.PartialC<{}>]>;
20
20
  export declare const UsageV: t.IntersectionC<[t.TypeC<{
21
+ end_user_limit: t.NumberC;
22
+ user_seat_limit: t.NumberC;
21
23
  helphub_docs_limit: t.NumberC;
22
24
  helphub_docs_usage: t.NumberC;
23
25
  helphub_message_limit: t.NumberC;
@@ -28,6 +30,9 @@ export declare const UsageV: t.IntersectionC<[t.TypeC<{
28
30
  nudges_live_usage: t.NumberC;
29
31
  questlists_live_limit: t.NumberC;
30
32
  questlists_live_usage: t.NumberC;
33
+ skins_limit: t.NumberC;
34
+ branding: t.StringC;
35
+ help_center_sync: t.StringC;
31
36
  }>, t.PartialC<{}>]>;
32
37
  export declare class Billing {
33
38
  static readStripeInfo: (params?: Record<string, string> | undefined, callbacks?: {
@@ -41,6 +46,8 @@ export declare class Billing {
41
46
  onSuccess?: (() => void) | undefined;
42
47
  onError?: ((err: string) => void) | undefined;
43
48
  } | undefined) => Promise<{
49
+ end_user_limit: number;
50
+ user_seat_limit: number;
44
51
  helphub_docs_limit: number;
45
52
  helphub_docs_usage: number;
46
53
  helphub_message_limit: number;
@@ -51,6 +58,9 @@ export declare class Billing {
51
58
  nudges_live_usage: number;
52
59
  questlists_live_limit: number;
53
60
  questlists_live_usage: number;
61
+ skins_limit: number;
62
+ branding: string;
63
+ help_center_sync: string;
54
64
  } & {}>;
55
65
  static readProfile: (params?: Record<string, string> | undefined, callbacks?: {
56
66
  onSuccess?: (() => void) | undefined;