commandbar 1.10.2 → 1.12.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 (54) hide show
  1. package/build/commandbar/src/shared/services/analytics/EventHandler.d.ts +9 -4
  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 +3 -3
  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 +2 -3
  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 +13 -1
  12. package/build/internal/src/client/CommandBarProxySDK.d.ts +1 -4
  13. package/build/internal/src/client/CommandBarSDK.d.ts +7 -5
  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 +44 -8
  19. package/build/internal/src/middleware/additionalResource.d.ts +9 -9
  20. package/build/internal/src/middleware/api.d.ts +181 -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 +26 -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 +2882 -8
  27. package/build/internal/src/middleware/experiencesSearch.d.ts +233 -28
  28. package/build/internal/src/middleware/flags.d.ts +15 -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/helpHub.d.ts +1 -0
  34. package/build/internal/src/middleware/helpers/actions.d.ts +6 -6
  35. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +2 -2
  36. package/build/internal/src/middleware/helpers/rules.d.ts +9 -7
  37. package/build/internal/src/middleware/localizedMessage.d.ts +50 -0
  38. package/build/internal/src/middleware/network.d.ts +1 -0
  39. package/build/internal/src/middleware/nudge.d.ts +104 -24
  40. package/build/internal/src/middleware/organization.d.ts +201 -62
  41. package/build/internal/src/middleware/organizationSettings.d.ts +12 -8
  42. package/build/internal/src/middleware/profile.d.ts +8 -0
  43. package/build/internal/src/middleware/recommendationSet.d.ts +18 -9
  44. package/build/internal/src/middleware/theme.d.ts +81 -0
  45. package/build/internal/src/middleware/types.d.ts +27 -6
  46. package/build/internal/src/middleware/user.d.ts +9 -1
  47. package/build/internal/src/middleware/workflow.d.ts +85 -0
  48. package/build/internal/src/util/sentry.d.ts +2 -2
  49. package/package.json +8 -3
  50. package/src/index.ts +2 -3
  51. package/src/init.ts +32 -14
  52. package/src/snippet.ts +84 -74
  53. package/build/internal/src/client/OrgConfig.d.ts +0 -5
  54. package/build/internal/src/middleware/guide.d.ts +0 -37
@@ -1,3 +1,4 @@
1
+ export declare const _analytics: unique symbol;
1
2
  export declare const _configuration: unique symbol;
2
3
  export declare const _configure: unique symbol;
3
4
  export declare const _configUser: unique symbol;
@@ -11,7 +12,6 @@ export declare const _onEditorPathChange: unique symbol;
11
12
  export declare const _shareEditorRouteWithBar: unique symbol;
12
13
  export declare const _updateEditorPreviewDevice: unique symbol;
13
14
  export declare const _getEditorPreviewDevice: unique symbol;
14
- export declare const _orgConfig: unique symbol;
15
15
  export declare const _perf: unique symbol;
16
16
  export declare const _programmaticTheme: unique symbol;
17
17
  export declare const _queue: unique symbol;
@@ -57,3 +57,5 @@ export declare const _stopDebug: unique symbol;
57
57
  export declare const _shareTrackedEvents: unique symbol;
58
58
  export declare const _setThemeV2: unique symbol;
59
59
  export declare const _showWidgetTableau: unique symbol;
60
+ export declare const _setActiveChat: unique symbol;
61
+ export declare const _getActiveChat: unique symbol;
@@ -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">;
@@ -179,6 +180,7 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
179
180
  type: t.LiteralC<"open_copilot">;
180
181
  }>]>;
181
182
  }>>;
183
+ helphub_search_action: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
182
184
  copilot_negative_feedback_fallback_enabled: t.BooleanC;
183
185
  copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>;
184
186
  copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{
@@ -206,7 +208,7 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
206
208
  }>]>, t.TypeC<{
207
209
  type: t.LiteralC<"open_chat">;
208
210
  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<"">]>;
211
+ 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
212
  }>;
211
213
  }>, t.TypeC<{
212
214
  type: t.LiteralC<"dismiss">;
@@ -260,9 +262,12 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
260
262
  segments: t.RecordC<t.StringC, t.StringC>;
261
263
  send_events_to_heap: t.BooleanC;
262
264
  }>;
263
- amplitude: t.TypeC<{
265
+ amplitude: t.IntersectionC<[t.TypeC<{
264
266
  enabled: t.BooleanC;
265
- }>;
267
+ }>, t.PartialC<{
268
+ cohorts: t.RecordC<t.StringC, t.StringC>;
269
+ api_key: t.StringC;
270
+ }>]>;
266
271
  logrocket: t.TypeC<{
267
272
  enabled: t.BooleanC;
268
273
  }>;
@@ -285,6 +290,19 @@ declare const OrganizationAdditionalV: t.IntersectionC<[t.TypeC<{
285
290
  send_events_to_hubspot: t.BooleanC;
286
291
  lists: t.RecordC<t.StringC, t.StringC>;
287
292
  }>;
293
+ sunshine: t.PartialC<{
294
+ enabled: t.BooleanC;
295
+ app_id: t.StringC;
296
+ key_id: t.StringC;
297
+ secret_key: t.StringC;
298
+ integration_id: t.StringC;
299
+ webhook_shared_secret: t.StringC;
300
+ switchboard_id: t.StringC;
301
+ }>;
302
+ freshchat: t.PartialC<{
303
+ topic_name: t.UnionC<[t.StringC, t.NullC]>;
304
+ conversation_property_name: t.UnionC<[t.StringC, t.NullC]>;
305
+ }>;
288
306
  }>;
289
307
  copilot_enabled: t.BooleanC;
290
308
  user_property_targeting: t.BooleanC;
@@ -342,6 +360,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
342
360
  icon_suggest: t.StringC;
343
361
  icon_tutorial: t.StringC;
344
362
  icon_go_forward: t.StringC;
363
+ logo_spotlight: t.UnionC<[t.StringC, t.NullC]>;
345
364
  chat_system_prompt_modifier: t.StringC;
346
365
  helphub_chat_welcome_message: t.StringC;
347
366
  helphub_chat_avatar: t.StringC;
@@ -465,7 +484,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
465
484
  }>]>, t.TypeC<{
466
485
  type: t.LiteralC<"open_chat">;
467
486
  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<"">]>;
487
+ 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
488
  }>;
470
489
  }>, t.TypeC<{
471
490
  type: t.LiteralC<"dismiss">;
@@ -493,6 +512,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
493
512
  type: t.LiteralC<"open_copilot">;
494
513
  }>]>;
495
514
  }>>;
515
+ helphub_search_action: t.UnionC<[t.LiteralC<"search">, t.LiteralC<"ask">]>;
496
516
  copilot_negative_feedback_fallback_enabled: t.BooleanC;
497
517
  copilot_negative_feedback_fallback_message: t.UnionC<[t.StringC, t.NullC]>;
498
518
  copilot_negative_feedback_fallback_actions: t.ArrayC<t.TypeC<{
@@ -520,7 +540,7 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
520
540
  }>]>, t.TypeC<{
521
541
  type: t.LiteralC<"open_chat">;
522
542
  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<"">]>;
543
+ 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
544
  }>;
525
545
  }>, t.TypeC<{
526
546
  type: t.LiteralC<"dismiss">;
@@ -574,9 +594,12 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
574
594
  segments: t.RecordC<t.StringC, t.StringC>;
575
595
  send_events_to_heap: t.BooleanC;
576
596
  }>;
577
- amplitude: t.TypeC<{
597
+ amplitude: t.IntersectionC<[t.TypeC<{
578
598
  enabled: t.BooleanC;
579
- }>;
599
+ }>, t.PartialC<{
600
+ cohorts: t.RecordC<t.StringC, t.StringC>;
601
+ api_key: t.StringC;
602
+ }>]>;
580
603
  logrocket: t.TypeC<{
581
604
  enabled: t.BooleanC;
582
605
  }>;
@@ -599,6 +622,19 @@ export declare const OrganizationV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
599
622
  send_events_to_hubspot: t.BooleanC;
600
623
  lists: t.RecordC<t.StringC, t.StringC>;
601
624
  }>;
625
+ sunshine: t.PartialC<{
626
+ enabled: t.BooleanC;
627
+ app_id: t.StringC;
628
+ key_id: t.StringC;
629
+ secret_key: t.StringC;
630
+ integration_id: t.StringC;
631
+ webhook_shared_secret: t.StringC;
632
+ switchboard_id: t.StringC;
633
+ }>;
634
+ freshchat: t.PartialC<{
635
+ topic_name: t.UnionC<[t.StringC, t.NullC]>;
636
+ conversation_property_name: t.UnionC<[t.StringC, t.NullC]>;
637
+ }>;
602
638
  }>;
603
639
  copilot_enabled: t.BooleanC;
604
640
  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,181 @@
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
+ workflows_only: t.BooleanC;
16
+ parameters: t.ArrayC<t.TypeC<{
17
+ archived: t.BooleanC;
18
+ name: t.StringC;
19
+ description: t.StringC;
20
+ type: t.UnionC<[t.LiteralC<"string">, t.LiteralC<"number">, t.LiteralC<"boolean">]>;
21
+ required: t.BooleanC;
22
+ }>>;
23
+ }>;
24
+ export declare class API {
25
+ static decode: (data: any) => {
26
+ id: number;
27
+ archived: boolean;
28
+ is_live: boolean;
29
+ title: string;
30
+ description: string;
31
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
32
+ url: string;
33
+ body: string;
34
+ headers: string;
35
+ require_confirmation: boolean;
36
+ confirm_cta: string;
37
+ cancel_cta: string;
38
+ workflows_only: boolean;
39
+ parameters: {
40
+ archived: boolean;
41
+ name: string;
42
+ description: string;
43
+ type: "string" | "number" | "boolean";
44
+ required: boolean;
45
+ }[];
46
+ };
47
+ static create: (object: {
48
+ id: number;
49
+ archived: boolean;
50
+ is_live: boolean;
51
+ title: string;
52
+ description: string;
53
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
54
+ url: string;
55
+ body: string;
56
+ headers: string;
57
+ require_confirmation: boolean;
58
+ confirm_cta: string;
59
+ cancel_cta: string;
60
+ workflows_only: boolean;
61
+ parameters: {
62
+ archived: boolean;
63
+ name: string;
64
+ description: string;
65
+ type: "string" | "number" | "boolean";
66
+ required: boolean;
67
+ }[];
68
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
69
+ id: number;
70
+ archived: boolean;
71
+ is_live: boolean;
72
+ title: string;
73
+ description: string;
74
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
75
+ url: string;
76
+ body: string;
77
+ headers: string;
78
+ require_confirmation: boolean;
79
+ confirm_cta: string;
80
+ cancel_cta: string;
81
+ workflows_only: boolean;
82
+ parameters: {
83
+ archived: boolean;
84
+ name: string;
85
+ description: string;
86
+ type: "string" | "number" | "boolean";
87
+ required: boolean;
88
+ }[];
89
+ }>;
90
+ static update: (object: {
91
+ id: number;
92
+ archived: boolean;
93
+ is_live: boolean;
94
+ title: string;
95
+ description: string;
96
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
97
+ url: string;
98
+ body: string;
99
+ headers: string;
100
+ require_confirmation: boolean;
101
+ confirm_cta: string;
102
+ cancel_cta: string;
103
+ workflows_only: boolean;
104
+ parameters: {
105
+ archived: boolean;
106
+ name: string;
107
+ description: string;
108
+ type: "string" | "number" | "boolean";
109
+ required: boolean;
110
+ }[];
111
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
112
+ id: number;
113
+ archived: boolean;
114
+ is_live: boolean;
115
+ title: string;
116
+ description: string;
117
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
118
+ url: string;
119
+ body: string;
120
+ headers: string;
121
+ require_confirmation: boolean;
122
+ confirm_cta: string;
123
+ cancel_cta: string;
124
+ workflows_only: boolean;
125
+ parameters: {
126
+ archived: boolean;
127
+ name: string;
128
+ description: string;
129
+ type: "string" | "number" | "boolean";
130
+ required: boolean;
131
+ }[];
132
+ }>;
133
+ static delete: (id: string | number, params?: Record<string, string> | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
134
+ static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
135
+ id: number;
136
+ archived: boolean;
137
+ is_live: boolean;
138
+ title: string;
139
+ description: string;
140
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
141
+ url: string;
142
+ body: string;
143
+ headers: string;
144
+ require_confirmation: boolean;
145
+ confirm_cta: string;
146
+ cancel_cta: string;
147
+ workflows_only: boolean;
148
+ parameters: {
149
+ archived: boolean;
150
+ name: string;
151
+ description: string;
152
+ type: "string" | "number" | "boolean";
153
+ required: boolean;
154
+ }[];
155
+ }[]>;
156
+ static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
157
+ onSuccess?: (() => void) | undefined;
158
+ onError?: ((err: string) => void) | undefined;
159
+ } | undefined) => Promise<{
160
+ id: number;
161
+ archived: boolean;
162
+ is_live: boolean;
163
+ title: string;
164
+ description: string;
165
+ method: "POST" | "PUT" | "GET" | "PATCH" | "DELETE";
166
+ url: string;
167
+ body: string;
168
+ headers: string;
169
+ require_confirmation: boolean;
170
+ confirm_cta: string;
171
+ cancel_cta: string;
172
+ workflows_only: boolean;
173
+ parameters: {
174
+ archived: boolean;
175
+ name: string;
176
+ description: string;
177
+ type: "string" | "number" | "boolean";
178
+ required: boolean;
179
+ }[];
180
+ }>;
181
+ }
@@ -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;