@ezychat/web 0.1.84 → 0.1.86

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 (53) hide show
  1. package/dist-lib/assets/font-9f04f14429bb.woff2 +0 -0
  2. package/dist-lib/chunks/{admin-T9Qs91WR.js → admin-CGWT-MJA.js} +71 -59
  3. package/dist-lib/chunks/{admin-BSIc8-DD.js → admin-n8lWCbmd.js} +71 -59
  4. package/dist-lib/chunks/{common-BE996sRJ.js → common-BeKNf4n-.js} +43 -3
  5. package/dist-lib/chunks/{common-CBTam36M.js → common-jotvJJL9.js} +43 -3
  6. package/dist-lib/chunks/{inbox-C2IIv9Z3.js → inbox-D4VV1Cmg.js} +164 -59
  7. package/dist-lib/chunks/{inbox-BRsRaRZn.js → inbox-_dK6whtW.js} +164 -59
  8. package/dist-lib/ezychat-web.css +1 -1
  9. package/dist-lib/index.js +12065 -8683
  10. package/dist-lib/types/admin/AdminLayout.d.ts +21 -5
  11. package/dist-lib/types/admin/AgentDreamCard.d.ts +9 -0
  12. package/dist-lib/types/admin/AgentResolutionCard.d.ts +1 -1
  13. package/dist-lib/types/admin/DreamChangeDialog.d.ts +14 -0
  14. package/dist-lib/types/admin/HiddenChats.d.ts +16 -0
  15. package/dist-lib/types/admin/LiveTranslateSection.d.ts +6 -0
  16. package/dist-lib/types/admin/SendPermissionFields.d.ts +5 -2
  17. package/dist-lib/types/admin/TokenPermissionsDialog.d.ts +2 -2
  18. package/dist-lib/types/admin/connectors/ConnectorDetailPage.d.ts +1 -1
  19. package/dist-lib/types/admin/connectors/GitHubAccountCard.d.ts +8 -0
  20. package/dist-lib/types/admin/connectors/GitHubSettingsCard.d.ts +4 -0
  21. package/dist-lib/types/admin/connectors/catalog.d.ts +6 -6
  22. package/dist-lib/types/admin/connectors/connector-ui.d.ts +8 -0
  23. package/dist-lib/types/admin/connectors/google-connect.d.ts +1 -0
  24. package/dist-lib/types/api/chat-delete.d.ts +16 -0
  25. package/dist-lib/types/api/chat-hide.d.ts +21 -0
  26. package/dist-lib/types/api/connectors.d.ts +131 -0
  27. package/dist-lib/types/api/dream.d.ts +91 -0
  28. package/dist-lib/types/api/forward.d.ts +7 -0
  29. package/dist-lib/types/api/live-translate.d.ts +125 -0
  30. package/dist-lib/types/api/message-changes.d.ts +14 -0
  31. package/dist-lib/types/api/queries.d.ts +45 -1
  32. package/dist-lib/types/api/scheduled-tasks.d.ts +6 -6
  33. package/dist-lib/types/api/templates.d.ts +7 -0
  34. package/dist-lib/types/askezy/api.d.ts +2 -2
  35. package/dist-lib/types/auth/LoginPage.d.ts +1 -0
  36. package/dist-lib/types/auth/UserMenu.d.ts +2 -0
  37. package/dist-lib/types/extensions/index.d.ts +1 -1
  38. package/dist-lib/types/extensions/routes.d.ts +3 -1
  39. package/dist-lib/types/i18n/resources.d.ts +399 -8
  40. package/dist-lib/types/inbox/ChatListItem.d.ts +3 -1
  41. package/dist-lib/types/inbox/ConversationHeader.d.ts +6 -1
  42. package/dist-lib/types/inbox/DeleteChatDialog.d.ts +12 -0
  43. package/dist-lib/types/inbox/LiveTranslate.d.ts +54 -0
  44. package/dist-lib/types/lib/tips.d.ts +1 -1
  45. package/dist-lib/types/lib/version.d.ts +4 -0
  46. package/dist-lib/types/lite-import/steps.d.ts +7 -2
  47. package/dist-lib/types/nav/AccountPage.d.ts +2 -0
  48. package/dist-lib/types/nav/AppNav.d.ts +10 -0
  49. package/dist-lib/types/nav/MyLanguageField.d.ts +5 -0
  50. package/dist-lib/types/nav/PhoneBar.d.ts +14 -0
  51. package/dist-lib/types/nav/attention.d.ts +4 -0
  52. package/package.json +11 -10
  53. package/dist-lib/types/askezy/AskEzyButton.d.ts +0 -8
@@ -64,6 +64,8 @@ export declare const enResources: {
64
64
  signOut: string;
65
65
  sendFeedback: string;
66
66
  emailSupport: string;
67
+ signingOut: string;
68
+ signOutFailed: string;
67
69
  };
68
70
  errorBoundary: {
69
71
  title: string;
@@ -233,6 +235,44 @@ export declare const enResources: {
233
235
  step2: string;
234
236
  step3: string;
235
237
  };
238
+ githubApp: {
239
+ title: string;
240
+ body: string;
241
+ };
242
+ githubToken: {
243
+ title: string;
244
+ body: string;
245
+ action: string;
246
+ };
247
+ };
248
+ appNav: {
249
+ main: string;
250
+ chats: string;
251
+ reports: string;
252
+ askEzy: string;
253
+ members: string;
254
+ settings: string;
255
+ account: string;
256
+ unread_one: string;
257
+ unread_other: string;
258
+ attention: string;
259
+ settingsTitle: string;
260
+ team: string;
261
+ business: string;
262
+ app: string;
263
+ yourAccount: string;
264
+ accountTitle: string;
265
+ accountDescription: string;
266
+ attentionRow: string;
267
+ backTo: string;
268
+ more: string;
269
+ };
270
+ liveTranslate: {
271
+ label: string;
272
+ help: string;
273
+ default: string;
274
+ skipPreview: string;
275
+ skipPreviewHelp: string;
236
276
  };
237
277
  };
238
278
  app: {
@@ -617,7 +657,6 @@ export declare const enResources: {
617
657
  page: {
618
658
  chats: string;
619
659
  title: string;
620
- admin: string;
621
660
  version: string;
622
661
  selectTitle: string;
623
662
  selectDescription: string;
@@ -697,6 +736,19 @@ export declare const enResources: {
697
736
  openGroupInfo: string;
698
737
  openCustomer: string;
699
738
  };
739
+ deleteChat: {
740
+ more: string;
741
+ action: string;
742
+ title: string;
743
+ messages_one: string;
744
+ messages_other: string;
745
+ files_one: string;
746
+ files_other: string;
747
+ body: string;
748
+ confirm: string;
749
+ done: string;
750
+ failed: string;
751
+ };
700
752
  conversation: {
701
753
  loading: string;
702
754
  notFound: string;
@@ -1880,10 +1932,102 @@ export declare const enResources: {
1880
1932
  done: string;
1881
1933
  isBlocked: string;
1882
1934
  };
1935
+ liveTranslate: {
1936
+ button: string;
1937
+ buttonShort: string;
1938
+ buttonOn: string;
1939
+ buttonOff: string;
1940
+ composer: {
1941
+ placeholder: string;
1942
+ placeholderShort: string;
1943
+ };
1944
+ hint: {
1945
+ text: string;
1946
+ dismiss: string;
1947
+ };
1948
+ bar: {
1949
+ label: string;
1950
+ pair: string;
1951
+ groupPair: string;
1952
+ unknown: string;
1953
+ detected: string;
1954
+ showOriginals: string;
1955
+ languages: string;
1956
+ languagesTitle: string;
1957
+ customerWrites: string;
1958
+ auto: string;
1959
+ autoDetected: string;
1960
+ autoCommon: string;
1961
+ customerHelp: string;
1962
+ groupGets: string;
1963
+ groupHelp: string;
1964
+ youWrite: string;
1965
+ youHelp: string;
1966
+ usage: string;
1967
+ usageNoLimit: string;
1968
+ turnOff: string;
1969
+ noConnection: string;
1970
+ limit: string;
1971
+ same: string;
1972
+ notDetected: string;
1973
+ groupNote: string;
1974
+ offline: string;
1975
+ };
1976
+ bubble: {
1977
+ translatedFrom: string;
1978
+ showOriginal: string;
1979
+ hide: string;
1980
+ originalLabel: string;
1981
+ translating: string;
1982
+ retry: string;
1983
+ failed: {
1984
+ error: string;
1985
+ unsafe: string;
1986
+ limit: string;
1987
+ ai: string;
1988
+ offline: string;
1989
+ };
1990
+ sentIn: string;
1991
+ showSent: string;
1992
+ sentLabel: string;
1993
+ writtenIn: string;
1994
+ showTyped: string;
1995
+ typedLabel: string;
1996
+ typedEdited: string;
1997
+ sentOriginal: string;
1998
+ };
1999
+ preview: {
2000
+ title: string;
2001
+ close: string;
2002
+ youWrote: string;
2003
+ editMine: string;
2004
+ translateAgain: string;
2005
+ translating: string;
2006
+ sending: string;
2007
+ edit: string;
2008
+ done: string;
2009
+ editLabel: string;
2010
+ edited: string;
2011
+ kept: string;
2012
+ refusedTitle: string;
2013
+ refused: string;
2014
+ errors: {
2015
+ offline: string;
2016
+ noAi: string;
2017
+ limit: string;
2018
+ off: string;
2019
+ error: string;
2020
+ changed: string;
2021
+ expired: string;
2022
+ };
2023
+ retry: string;
2024
+ sendOriginal: string;
2025
+ send: string;
2026
+ };
2027
+ };
1883
2028
  };
1884
2029
  admin: {
1885
2030
  title: string;
1886
- titleWithSection: string;
1887
2031
  nav: {
1888
2032
  label: string;
1889
2033
  members: string;
@@ -1897,13 +2041,7 @@ export declare const enResources: {
1897
2041
  safety: string;
1898
2042
  };
1899
2043
  layout: {
1900
- inbox: string;
1901
- menu: string;
1902
2044
  footer: string;
1903
- backToInbox: string;
1904
- logOut: string;
1905
- loggingOut: string;
1906
- logOutFailed: string;
1907
2045
  loading: string;
1908
2046
  };
1909
2047
  ui: {
@@ -2234,6 +2372,7 @@ export declare const enResources: {
2234
2372
  revoked: string;
2235
2373
  canSendBadge: string;
2236
2374
  canNewBadge: string;
2375
+ canResolveBadge: string;
2237
2376
  signedInBadge: string;
2238
2377
  tokenBadge: string;
2239
2378
  };
@@ -2257,6 +2396,8 @@ export declare const enResources: {
2257
2396
  canNewHint: string;
2258
2397
  canNewWarningTitle: string;
2259
2398
  canNewWarning: string;
2399
+ canResolve: string;
2400
+ canResolveHint: string;
2260
2401
  };
2261
2402
  created: {
2262
2403
  title: string;
@@ -2477,6 +2618,11 @@ export declare const enResources: {
2477
2618
  phoneHint: string;
2478
2619
  linkTitle: string;
2479
2620
  linkBody: string;
2621
+ hides_one: string;
2622
+ hides_other: string;
2623
+ hidesUnknown: string;
2624
+ hiddenNote_one: string;
2625
+ hiddenNote_other: string;
2480
2626
  actionsTitle: string;
2481
2627
  actions: {
2482
2628
  logout: {
@@ -3282,6 +3428,74 @@ export declare const enResources: {
3282
3428
  offHint: string;
3283
3429
  saveFailed: string;
3284
3430
  };
3431
+ dream: {
3432
+ title: string;
3433
+ description: string;
3434
+ switch: string;
3435
+ on: string;
3436
+ off: string;
3437
+ runAt: string;
3438
+ runAtHint: string;
3439
+ autoApply: string;
3440
+ autoApplyOn: string;
3441
+ autoApplyOff: string;
3442
+ paused: string;
3443
+ history: string;
3444
+ historyEmpty: string;
3445
+ more: string;
3446
+ runStats: string;
3447
+ dropped: string;
3448
+ run: {
3449
+ running: string;
3450
+ nothing: string;
3451
+ missed: string;
3452
+ failed: string;
3453
+ ai_unavailable: string;
3454
+ access_closed: string;
3455
+ agent_off: string;
3456
+ };
3457
+ status: {
3458
+ waiting: string;
3459
+ applied: string;
3460
+ dismissed: string;
3461
+ undone: string;
3462
+ stale: string;
3463
+ expired: string;
3464
+ };
3465
+ target: {
3466
+ context_text: string;
3467
+ instructions: string;
3468
+ handoff_rules: string;
3469
+ };
3470
+ appliedByItself: string;
3471
+ sources: string;
3472
+ apply: string;
3473
+ dismiss: string;
3474
+ undo: string;
3475
+ seeChange: string;
3476
+ change: {
3477
+ title: string;
3478
+ body: string;
3479
+ before: string;
3480
+ after: string;
3481
+ newItem: string;
3482
+ why: string;
3483
+ whyEmpty: string;
3484
+ customer: string;
3485
+ team: string;
3486
+ checks: string;
3487
+ };
3488
+ check: {
3489
+ privacy: string;
3490
+ leak: string;
3491
+ grounding: string;
3492
+ replay: string;
3493
+ regression: string;
3494
+ };
3495
+ saveFailed: string;
3496
+ actionFailed: string;
3497
+ outdated: string;
3498
+ };
3285
3499
  scheduled: {
3286
3500
  title: string;
3287
3501
  description: string;
@@ -3334,6 +3548,7 @@ export declare const enResources: {
3334
3548
  window_closed: string;
3335
3549
  missed: string;
3336
3550
  chat_gone: string;
3551
+ chat_hidden: string;
3337
3552
  confidential_leak: string;
3338
3553
  ai_unavailable: string;
3339
3554
  lookup_failed: string;
@@ -3613,6 +3828,14 @@ export declare const enResources: {
3613
3828
  findHint: string;
3614
3829
  read: string;
3615
3830
  readHint: string;
3831
+ searchIssues: string;
3832
+ searchIssuesHint: string;
3833
+ listIssues: string;
3834
+ listIssuesHint: string;
3835
+ readIssue: string;
3836
+ readIssueHint: string;
3837
+ searchPulls: string;
3838
+ searchPullsHint: string;
3616
3839
  };
3617
3840
  items: {
3618
3841
  "google-calendar": {
@@ -3647,6 +3870,14 @@ export declare const enResources: {
3647
3870
  long: string;
3648
3871
  privacy: string;
3649
3872
  };
3873
+ github: {
3874
+ name: string;
3875
+ short: string;
3876
+ long: string;
3877
+ privacy: string;
3878
+ privacy2: string;
3879
+ privacy3: string;
3880
+ };
3650
3881
  };
3651
3882
  gc: {
3652
3883
  accountTitle: string;
@@ -3664,6 +3895,7 @@ export declare const enResources: {
3664
3895
  blocked: string;
3665
3896
  openSignIn: string;
3666
3897
  sameComputer: string;
3898
+ remoteSignIn: string;
3667
3899
  cancelSignIn: string;
3668
3900
  failed: {
3669
3901
  denied: string;
@@ -3976,6 +4208,7 @@ export declare const enResources: {
3976
4208
  expired: string;
3977
4209
  };
3978
4210
  pickSameComputer: string;
4211
+ remotePick: string;
3979
4212
  tabsTitle: string;
3980
4213
  tabsHint: string;
3981
4214
  refresh: string;
@@ -4114,6 +4347,7 @@ export declare const enResources: {
4114
4347
  pickBlocked: string;
4115
4348
  openPicker: string;
4116
4349
  pickSameComputer: string;
4350
+ remotePick: string;
4117
4351
  pickError: {
4118
4352
  cancelled: string;
4119
4353
  failed: string;
@@ -4348,6 +4582,150 @@ export declare const enResources: {
4348
4582
  };
4349
4583
  agentCard: string;
4350
4584
  };
4585
+ github: {
4586
+ accountTitle: string;
4587
+ accountDescription: string;
4588
+ what1: string;
4589
+ what2: string;
4590
+ what3: string;
4591
+ signIn: string;
4592
+ useToken: string;
4593
+ signInHint: string;
4594
+ signedIn: string;
4595
+ viaApp: string;
4596
+ viaToken: string;
4597
+ tokenExpires: string;
4598
+ tokenExpired: string;
4599
+ state: {
4600
+ connected: string;
4601
+ expiring: string;
4602
+ expired: string;
4603
+ unavailable: string;
4604
+ no_installation: string;
4605
+ };
4606
+ install: {
4607
+ title: string;
4608
+ body: string;
4609
+ button: string;
4610
+ check: string;
4611
+ orgNote: string;
4612
+ };
4613
+ expiringTitle: string;
4614
+ expiringBody: string;
4615
+ newToken: string;
4616
+ expiredTitle: string;
4617
+ expiredTokenTitle: string;
4618
+ expiredBody: string;
4619
+ signInAgain: string;
4620
+ unavailableTitle: string;
4621
+ unavailableBody: string;
4622
+ reposShared_one: string;
4623
+ reposShared_other: string;
4624
+ changeOnGitHub: string;
4625
+ perAgent: string;
4626
+ disconnectTitle: string;
4627
+ disconnectApp: string;
4628
+ disconnectToken: string;
4629
+ disconnected: string;
4630
+ neverChanges: string;
4631
+ device: {
4632
+ title: string;
4633
+ description: string;
4634
+ step1: string;
4635
+ copy: string;
4636
+ copied: string;
4637
+ step2: string;
4638
+ open: string;
4639
+ waiting: string;
4640
+ deniedTitle: string;
4641
+ deniedBody: string;
4642
+ expiredTitle: string;
4643
+ expiredBody: string;
4644
+ again: string;
4645
+ failedTitle: string;
4646
+ failedBody: string;
4647
+ };
4648
+ token: {
4649
+ title: string;
4650
+ description: string;
4651
+ step1: string;
4652
+ step2: string;
4653
+ step3: string;
4654
+ step4: string;
4655
+ label: string;
4656
+ readOnly: string;
4657
+ save: string;
4658
+ error: {
4659
+ classic: string;
4660
+ invalid: string;
4661
+ no_repos: string;
4662
+ };
4663
+ };
4664
+ notConnected: string;
4665
+ notConnectedHint: string;
4666
+ pausedTitle: string;
4667
+ pausedExpired: string;
4668
+ pausedDown: string;
4669
+ repos: {
4670
+ title: string;
4671
+ description: string;
4672
+ none: string;
4673
+ choose: string;
4674
+ remove: string;
4675
+ private: string;
4676
+ public: string;
4677
+ gone: string;
4678
+ hint: string;
4679
+ whoTitle: string;
4680
+ whoBody: string;
4681
+ notAccessible: string;
4682
+ };
4683
+ access: {
4684
+ title: string;
4685
+ description: string;
4686
+ issues: string;
4687
+ issuesHint: string;
4688
+ pulls: string;
4689
+ pullsHint: string;
4690
+ };
4691
+ needRepo: string;
4692
+ when: {
4693
+ note: string;
4694
+ open: string;
4695
+ };
4696
+ picker: {
4697
+ title: string;
4698
+ description: string;
4699
+ search: string;
4700
+ refresh: string;
4701
+ refreshed: string;
4702
+ add_one: string;
4703
+ add_other: string;
4704
+ noMatch: string;
4705
+ allAdded: string;
4706
+ missing: string;
4707
+ editApp: string;
4708
+ editToken: string;
4709
+ };
4710
+ saved: string;
4711
+ agentCard: {
4712
+ noRepos: string;
4713
+ both_one: string;
4714
+ both_other: string;
4715
+ issues_one: string;
4716
+ issues_other: string;
4717
+ pulls_one: string;
4718
+ pulls_other: string;
4719
+ };
4720
+ act: {
4721
+ searched: string;
4722
+ read: string;
4723
+ refused: string;
4724
+ failed: string;
4725
+ hint: string;
4726
+ emptyHint: string;
4727
+ };
4728
+ };
4351
4729
  };
4352
4730
  reports: {
4353
4731
  title: string;
@@ -4924,6 +5302,19 @@ export declare const enResources: {
4924
5302
  limitBanTitle: string;
4925
5303
  limitBanBody: string;
4926
5304
  };
5305
+ liveTranslate: {
5306
+ title: string;
5307
+ description: string;
5308
+ enable: string;
5309
+ enableHelp: string;
5310
+ limit: string;
5311
+ limitHelp: string;
5312
+ privacy: string;
5313
+ usage_one: string;
5314
+ usage_other: string;
5315
+ noConnection: string;
5316
+ languages: string;
5317
+ };
4927
5318
  };
4928
5319
  errors: {
4929
5320
  generic: string;
@@ -10,8 +10,10 @@ export interface ChatListItemProps {
10
10
  inbox?: Pick<Inbox, 'name' | 'tone'>;
11
11
  /** The chat's reply window has closed (WhatsApp Business API): only a template may be sent. */
12
12
  windowClosed?: boolean;
13
+ /** Live translate on in this chat: the cached translation of the last message (the list never asks the AI). */
14
+ translatedPreview?: string | null;
13
15
  }
14
16
  export declare function GroupIcon({ className }: {
15
17
  className?: string;
16
18
  }): import("react").JSX.Element;
17
- export declare function ChatListItem({ chat, active, assigneeName, assignedToMe, inbox, windowClosed, }: ChatListItemProps): import("react").JSX.Element;
19
+ export declare function ChatListItem({ chat, active, assigneeName, assignedToMe, inbox, windowClosed, translatedPreview, }: ChatListItemProps): import("react").JSX.Element;
@@ -1,6 +1,9 @@
1
1
  import type { AiGroupChat, Chat, Inbox } from '@ezychat/shared';
2
2
  import type { Directory } from './useDirectory';
3
3
  export interface ConversationHeaderProps {
4
+ /** Live translate's button, once for a narrow header (beside the name) and once for a wide one (action row). */
5
+ translateNarrow?: React.ReactNode;
6
+ translateWide?: React.ReactNode;
4
7
  chat: Chat;
5
8
  directory: Directory;
6
9
  onBack(): void;
@@ -25,5 +28,7 @@ export interface ConversationHeaderProps {
25
28
  /** Group chats: whether the AI agent answers when tagged or quoted (the header badge). */
26
29
  groupAi?: AiGroupChat | null;
27
30
  busy?: boolean;
31
+ /** Admins only: the ⋮ menu with Delete chat (no menu without it). */
32
+ onDelete?(): void;
28
33
  }
29
- export declare function ConversationHeader({ chat, directory, onBack, onAssign, onToggleStatus, notesOpen, notesCount, onToggleNotes, showCustomer, customerOpen, onToggleCustomer, onOpenInfo, memberCount, inbox, groupAi, busy, }: ConversationHeaderProps): import("react").JSX.Element;
34
+ export declare function ConversationHeader({ translateNarrow, translateWide, chat, directory, onBack, onAssign, onToggleStatus, notesOpen, notesCount, onToggleNotes, showCustomer, customerOpen, onToggleCustomer, onOpenInfo, memberCount, inbox, groupAi, busy, onDelete, }: ConversationHeaderProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Delete chat (admins; docs/features/chat-hide-delete/design.md Part B): the chat's name, what goes
3
+ * (messages and files) and that the WhatsApp phone keeps its copy. Stays open until the server
4
+ * answers; on success the chat leaves every list and `onDeleted` takes the page back to the inbox.
5
+ */
6
+ export declare function DeleteChatDialog({ jid, name, open, onClose, onDeleted, }: {
7
+ jid: string;
8
+ name: string;
9
+ open: boolean;
10
+ onClose(): void;
11
+ onDeleted(): void;
12
+ }): import("react").JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { type TranslateLanguage as Lang } from '../api/live-translate';
2
+ import type { Message } from '@ezychat/shared';
3
+ /** Header button: turns Live translate on or off for this chat, for me only. Hidden while an admin has it off. */
4
+ export declare function TranslateHeaderButton({ jid, className }: {
5
+ jid: string;
6
+ className?: string;
7
+ }): import("react").JSX.Element | null;
8
+ /** The slim bar under the header while Live translate is on in this chat. */
9
+ export declare function TranslateBar({ jid, isGroup, showOriginals, onShowOriginals, }: {
10
+ jid: string;
11
+ isGroup: boolean;
12
+ showOriginals: boolean;
13
+ onShowOriginals(v: boolean): void;
14
+ }): import("react").JSX.Element | null;
15
+ /**
16
+ * Off, in a direct chat whose customer writes another language: a one-line hint above the composer. A hint only;
17
+ * Live translate never turns itself on.
18
+ */
19
+ export declare function TranslateHint({ jid, isGroup }: {
20
+ jid: string;
21
+ isGroup: boolean;
22
+ }): import("react").JSX.Element | null;
23
+ /**
24
+ * The text of a bubble. On: the message in my language (what I typed for my own replies), with the other version
25
+ * one tap away. Off: the real message, plus "Written in …" on a reply that went through Live translate.
26
+ */
27
+ export declare function BubbleText({ m, render, className, }: {
28
+ m: Message;
29
+ render(text: string): React.ReactNode;
30
+ className?: string;
31
+ }): import("react").JSX.Element;
32
+ /** What "Send" hands to the conversation: the checked text and the record the server keeps beside it. */
33
+ export interface PreviewSend {
34
+ text: string;
35
+ typedText: string;
36
+ edited: boolean;
37
+ draftId: string;
38
+ }
39
+ /**
40
+ * "Customer will get · 中文": the translation, the protected items kept, Send / Edit translation / Send original
41
+ * instead. With "Send without preview" on it sends as soon as the translation passes the check, and stays only when
42
+ * something went wrong. Nothing is sent until the person presses a send button (or chose to skip the preview).
43
+ */
44
+ export declare function SendPreview({ jid, typed, my, customer, dailyLimit, autoSend, onSend, onSendOriginal, onDiscard, }: {
45
+ jid: string;
46
+ typed: string;
47
+ my: Lang;
48
+ customer: Lang;
49
+ dailyLimit: number;
50
+ autoSend: boolean;
51
+ onSend(send: PreviewSend): void;
52
+ onSendOriginal(text: string): void;
53
+ onDiscard(): void;
54
+ }): import("react").JSX.Element;
@@ -3,7 +3,7 @@
3
3
  * under `tips.<topic>` (`title`, `body`, `step1`…`stepN`, `action`); this file holds each tip's shape.
4
4
  * Design: docs/features/concept-tips/design.md.
5
5
  */
6
- export declare const TIP_TOPICS: readonly ["whatsappLink", "aiConnection", "apiKey", "claudeKey", "aiModel", "businessContext", "instructions", "handoff", "tryIt", "voice", "tunnel", "lan", "mcp", "accessToken", "connectors", "safetyAi", "autoBlock", "lockedFiles", "driveFiles", "reportNumber", "sqlApiService", "sqlKeys", "sqlCustomerCode", "usageStats"];
6
+ export declare const TIP_TOPICS: readonly ["whatsappLink", "aiConnection", "apiKey", "claudeKey", "aiModel", "businessContext", "instructions", "handoff", "tryIt", "voice", "tunnel", "lan", "mcp", "accessToken", "connectors", "safetyAi", "autoBlock", "lockedFiles", "driveFiles", "reportNumber", "sqlApiService", "sqlKeys", "sqlCustomerCode", "usageStats", "githubApp", "githubToken"];
7
7
  export type TipTopic = (typeof TIP_TOPICS)[number];
8
8
  /** The ezychat.ai guides a tip can link to (each exists in en, ms and zh). */
9
9
  export type TipGuide = 'getting-started' | 'set-up-ai-agent' | 'connect-cloudflare' | 'connect-ai-assistant';
@@ -3,6 +3,8 @@ export interface HealthInfo {
3
3
  app: string;
4
4
  version: string;
5
5
  mode: string;
6
+ /** 'lite', 'enterprise', …; older servers omit it (Lite). */
7
+ edition?: string;
6
8
  }
7
9
  export declare const healthQueryKey: readonly ["health"];
8
10
  /** Version baked into the web bundle at build time (root package.json), or null if not defined. */
@@ -10,3 +12,5 @@ export declare const BUILD_VERSION: string | null;
10
12
  export declare function useAppVersion(): string | null;
11
13
  /** The server's run mode from GET /api/health ('dev' for local and test servers), or null while unknown. */
12
14
  export declare function useServerMode(): string | null;
15
+ /** The product edition from GET /api/health ('lite' when the server omits it), or null while unknown. */
16
+ export declare function useEdition(): string | null;
@@ -29,9 +29,14 @@ export declare function ChecksStep({ state, bridge, act, busy, continueLabel, on
29
29
  }): import("react").JSX.Element;
30
30
  /** Default for each Lite user: the same username here → same person, else add with Lite's role. */
31
31
  export declare function defaultTeam(liteUsers: LiteUser[], people: User[]): LiteTeamChoice[];
32
- /** Merge review: what comes over, who is who, what stays Enterprise's, what to set up again. */
33
- export declare function ReviewStep({ state, bridge, act, busy, people }: StepProps & {
32
+ /**
33
+ * Merge review: what comes over, who is who, what stays Enterprise's, what to set up again.
34
+ * `ownAddress`: this install already has its own address. Without one, Lite's app-managed address
35
+ * comes over (server `merge-address.ts`) instead of being set up again.
36
+ */
37
+ export declare function ReviewStep({ state, bridge, act, busy, people, ownAddress, }: StepProps & {
34
38
  people: User[];
39
+ ownAddress: boolean;
35
40
  }): import("react").JSX.Element;
36
41
  export declare function RunningStep({ state }: {
37
42
  state: LiteImportState;
@@ -0,0 +1,2 @@
1
+ export declare function AccountPage(): import("react").JSX.Element | null;
2
+ export default AccountPage;
@@ -0,0 +1,10 @@
1
+ import { type WebExtensionAdminSection } from '../extensions';
2
+ type Place = 'chats' | 'reports' | 'members' | 'settings' | 'account' | null;
3
+ /** The rail place of a path; `section` is the core section an extension admin page sits under. */
4
+ export declare function placeOf(pathname: string, isAdmin: boolean, section?: WebExtensionAdminSection): Place;
5
+ /**
6
+ * Signed-in shell: rail + page + tabs. No tab bar inside an open chat: the composer owns the bottom of the
7
+ * screen. The Ask Ezy panel stays in App (a sheet in a portal, docked beside the page from 1280 px).
8
+ */
9
+ export declare function AppShell(): import("react").JSX.Element;
10
+ export {};