@ezychat/web 0.1.86 → 0.1.88
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.
- package/dist-lib/chunks/{admin-n8lWCbmd.js → admin-DA-ZeETJ.js} +111 -14
- package/dist-lib/chunks/{admin-CGWT-MJA.js → admin-PCeCUotx.js} +111 -14
- package/dist-lib/chunks/{auth-CQo75iLg.js → auth-DfAHhbd8.js} +10 -1
- package/dist-lib/chunks/{auth-Bc0bOKPN.js → auth-y6WyLxWX.js} +10 -1
- package/dist-lib/chunks/{common-jotvJJL9.js → common-5l92M5hP.js} +6 -1
- package/dist-lib/chunks/{common-BeKNf4n-.js → common-BjtNhvrz.js} +6 -1
- package/dist-lib/chunks/{inbox-_dK6whtW.js → inbox-DpnmsGVa.js} +1 -0
- package/dist-lib/chunks/{inbox-D4VV1Cmg.js → inbox-NBT3qYF9.js} +1 -0
- package/dist-lib/ezychat-web.css +1 -1
- package/dist-lib/index.js +8065 -7431
- package/dist-lib/types/admin/AiModelsSection.d.ts +6 -0
- package/dist-lib/types/admin/HiddenChats.d.ts +1 -1
- package/dist-lib/types/admin/ReplySuggestionsSection.d.ts +2 -1
- package/dist-lib/types/admin/SendPermissionFields.d.ts +8 -1
- package/dist-lib/types/admin/TokenPermissionsDialog.d.ts +5 -1
- package/dist-lib/types/admin/connectors/AgentPicker.d.ts +7 -0
- package/dist-lib/types/admin/connectors/GitHubAccountCard.d.ts +1 -1
- package/dist-lib/types/api/ai-models.d.ts +50 -0
- package/dist-lib/types/api/ai.d.ts +1 -1
- package/dist-lib/types/api/chat-delete.d.ts +1 -1
- package/dist-lib/types/api/chat-hide.d.ts +1 -1
- package/dist-lib/types/api/queries.d.ts +12 -1
- package/dist-lib/types/api/reply-suggestions.d.ts +0 -9
- package/dist-lib/types/auth/OAuthConsentPage.d.ts +5 -3
- package/dist-lib/types/i18n/resources.d.ts +118 -4
- package/dist-lib/types/inbox/DeleteChatDialog.d.ts +1 -1
- package/dist-lib/types/inbox/MessageBubble.d.ts +5 -1
- package/dist-lib/types/lib/tips.d.ts +1 -1
- package/dist-lib/types/nav/MemberAssistantCard.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings → AI → AI models (docs/ai-models.md, confirmed mock docs/features/ai-models-per-task/mock). One row per
|
|
3
|
+
* job an owner recognises; each picks Fast, Main model or a model the current connection lists, plus "Speed and
|
|
4
|
+
* quality" (Faster · Balanced · Smarter) when the model has a level. Each connection keeps its own choices.
|
|
5
|
+
*/
|
|
6
|
+
export declare function AiModelsSection(): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HiddenChatsInfo } from '@ezychat/shared';
|
|
2
2
|
/**
|
|
3
|
-
* Hide chats on Log out (docs/
|
|
3
|
+
* Hide chats on Log out (docs/chat-hide-delete.md Part A): the texts Admin → WhatsApp
|
|
4
4
|
* and Admin → Inboxes show around a Log out.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Settings → AI: the team-wide switch for AI reply suggestions. On by default on a new install with
|
|
3
|
-
* an AI connection, off after an update (a note says so); disabled without a connection.
|
|
3
|
+
* an AI connection, off after an update (a note says so); disabled without a connection. Which model
|
|
4
|
+
* writes them is AI models → Writing help (docs/ai-models.md).
|
|
4
5
|
*/
|
|
5
6
|
export declare function ReplySuggestionsSection(): import("react").JSX.Element;
|
|
@@ -10,8 +10,15 @@ export interface SendPermissions {
|
|
|
10
10
|
* then "Can resolve chats". Shared by Create token and the Permissions dialog, so both show the same
|
|
11
11
|
* rules and texts.
|
|
12
12
|
*/
|
|
13
|
-
export declare function SendPermissionFields({ value, onChange, disabled, }: Readonly<{
|
|
13
|
+
export declare function SendPermissionFields({ value, onChange, disabled, newChatsBlocked, showResolve, }: Readonly<{
|
|
14
14
|
value: SendPermissions;
|
|
15
15
|
onChange: (next: SendPermissions) => void;
|
|
16
16
|
disabled: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* A team member who cannot start new chats in the app (mcp-for-members): "message new numbers" shows
|
|
19
|
+
* greyed with a tip, since the server refuses it for them anyway.
|
|
20
|
+
*/
|
|
21
|
+
newChatsBlocked?: boolean;
|
|
22
|
+
/** A team member's token never resolves chats (`inbox:manage` is admin-only), so the box is hidden. */
|
|
23
|
+
showResolve?: boolean;
|
|
17
24
|
}>): import("react").JSX.Element;
|
|
@@ -3,7 +3,11 @@ import type { ApiToken } from '@ezychat/shared';
|
|
|
3
3
|
* The owner of a token changes whether its AI assistant may send, message new numbers and resolve
|
|
4
4
|
* chats, without a new token. The same options and warnings as Create token.
|
|
5
5
|
*/
|
|
6
|
-
export declare function TokenPermissionsDialog({ token, onClose, }: Readonly<{
|
|
6
|
+
export declare function TokenPermissionsDialog({ token, onClose, member, }: Readonly<{
|
|
7
7
|
token: ApiToken | null;
|
|
8
8
|
onClose: () => void;
|
|
9
|
+
/** A team member's own connected app (My AI assistants): their wording and new-chat rule. */
|
|
10
|
+
member?: {
|
|
11
|
+
canStartNewChats: boolean;
|
|
12
|
+
};
|
|
9
13
|
}>): import("react").JSX.Element;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { AiAgentSummary } from '@ezychat/shared';
|
|
3
|
+
/**
|
|
4
|
+
* The agent a connector page was opened from (Agent page → Connectors card), for "Back to AI agent".
|
|
5
|
+
* `from=agent` = the agent in `&agent=`; `from=agent:<id>` = the one it was opened from, kept when
|
|
6
|
+
* another agent is picked. Only an agent that still exists counts: a stale id gives null, so the
|
|
7
|
+
* breadcrumb and the picker never point back to an agent the page does not show.
|
|
8
|
+
*/
|
|
9
|
+
export declare function wayBackAgent(params: URLSearchParams, agents: readonly Pick<AiAgentSummary, 'id'>[] | undefined): number | null;
|
|
3
10
|
/**
|
|
4
11
|
* A connector's Settings tab: one AI agent at a time (`&agent=<id>` picks it; a picker shows with
|
|
5
12
|
* 2+ agents). `render` draws the chosen agent's settings.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The GitHub sign-in (one per install, design docs/
|
|
2
|
+
* The GitHub sign-in (one per install, design docs/github.md): Sign in with
|
|
3
3
|
* GitHub (Anchor Sprint's GitHub App, through GitHub's device flow) or a fine-grained token; the
|
|
4
4
|
* install step, the token expiry, problems and Disconnect. Repositories per agent are on Settings.
|
|
5
5
|
*/
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** Settings → AI → AI models (docs/ai-models.md): the current connection's rows. Admins only. */
|
|
2
|
+
export declare const taskModelsKey: readonly ["ai", "taskModels"];
|
|
3
|
+
export declare function useTaskModels(enabled?: boolean): import("@tanstack/react-query").UseQueryResult<{
|
|
4
|
+
mode: "api" | "chatgpt" | "claude";
|
|
5
|
+
mainModel: string;
|
|
6
|
+
fastModel: string;
|
|
7
|
+
models: {
|
|
8
|
+
id: string;
|
|
9
|
+
thinking: boolean;
|
|
10
|
+
tier: "balanced" | "fast" | "smart" | null;
|
|
11
|
+
}[];
|
|
12
|
+
tasks: Record<"translate" | "agentReplies" | "askEzy" | "writing" | "background", {
|
|
13
|
+
choice: string;
|
|
14
|
+
thinking: "high" | "medium" | "low" | null;
|
|
15
|
+
model: string;
|
|
16
|
+
effectiveThinking: "high" | "medium" | "low" | null;
|
|
17
|
+
unavailable: string | null;
|
|
18
|
+
isDefault: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
defaults: Record<"translate" | "agentReplies" | "askEzy" | "writing" | "background", {
|
|
21
|
+
choice: "main" | "fast";
|
|
22
|
+
}>;
|
|
23
|
+
}, Error>;
|
|
24
|
+
/** Saves the changed rows (null = back to the default); the current connection only. */
|
|
25
|
+
export declare function useSaveTaskModels(): import("@tanstack/react-query").UseMutationResult<{
|
|
26
|
+
mode: "api" | "chatgpt" | "claude";
|
|
27
|
+
mainModel: string;
|
|
28
|
+
fastModel: string;
|
|
29
|
+
models: {
|
|
30
|
+
id: string;
|
|
31
|
+
thinking: boolean;
|
|
32
|
+
tier: "balanced" | "fast" | "smart" | null;
|
|
33
|
+
}[];
|
|
34
|
+
tasks: Record<"translate" | "agentReplies" | "askEzy" | "writing" | "background", {
|
|
35
|
+
choice: string;
|
|
36
|
+
thinking: "high" | "medium" | "low" | null;
|
|
37
|
+
model: string;
|
|
38
|
+
effectiveThinking: "high" | "medium" | "low" | null;
|
|
39
|
+
unavailable: string | null;
|
|
40
|
+
isDefault: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
defaults: Record<"translate" | "agentReplies" | "askEzy" | "writing" | "background", {
|
|
43
|
+
choice: "main" | "fast";
|
|
44
|
+
}>;
|
|
45
|
+
}, Error, {
|
|
46
|
+
tasks: Partial<Record<"translate" | "agentReplies" | "askEzy" | "writing" | "background", {
|
|
47
|
+
choice: string;
|
|
48
|
+
thinking?: "high" | "medium" | "low" | undefined;
|
|
49
|
+
} | null>>;
|
|
50
|
+
}, unknown>;
|
|
@@ -268,7 +268,7 @@ export declare const aiAgentsKey: readonly ["ai-agents"];
|
|
|
268
268
|
export declare const aiAgentKey: (agentId: number) => readonly ["ai-agent", number];
|
|
269
269
|
/** One item with its text, under its agent (the agent is part of the key and of the path). */
|
|
270
270
|
export declare const aiAgentDocumentKey: (agentId: number, id: number) => readonly ["ai-document", number, number];
|
|
271
|
-
export declare function useAiAgents(): import("@tanstack/react-query").UseQueryResult<{
|
|
271
|
+
export declare function useAiAgents(enabled?: boolean): import("@tanstack/react-query").UseQueryResult<{
|
|
272
272
|
agents: {
|
|
273
273
|
id: number;
|
|
274
274
|
userId: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type QueryClient } from '@tanstack/react-query';
|
|
2
2
|
/**
|
|
3
|
-
* Delete chat (admins, docs/
|
|
3
|
+
* Delete chat (admins, docs/chat-hide-delete.md Part B): the chat, its messages,
|
|
4
4
|
* notes and files go for good in EzyChat; the WhatsApp phone keeps its copy.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type QueryClient } from '@tanstack/react-query';
|
|
2
2
|
/**
|
|
3
|
-
* Hide chats on Log out (docs/
|
|
3
|
+
* Hide chats on Log out (docs/chat-hide-delete.md Part A): when a linked phone logs
|
|
4
4
|
* out, every chat of its inbox is hidden (never deleted) until the same number links again.
|
|
5
5
|
*/
|
|
6
6
|
/** Every read of one inbox's hidden-chat counts (any connection state). */
|
|
@@ -1068,14 +1068,21 @@ export declare function useMcpSettings(): import("@tanstack/react-query").UseQue
|
|
|
1068
1068
|
endpointPath: string;
|
|
1069
1069
|
publicUrl: string | null;
|
|
1070
1070
|
localUrl: string;
|
|
1071
|
+
membersEnabled: boolean;
|
|
1072
|
+
canConnect: boolean;
|
|
1073
|
+
canMessageNewNumbers: boolean;
|
|
1071
1074
|
}, Error>;
|
|
1072
1075
|
export declare function usePatchMcpSettings(): import("@tanstack/react-query").UseMutationResult<{
|
|
1073
1076
|
enabled: boolean;
|
|
1074
1077
|
endpointPath: string;
|
|
1075
1078
|
publicUrl: string | null;
|
|
1076
1079
|
localUrl: string;
|
|
1080
|
+
membersEnabled: boolean;
|
|
1081
|
+
canConnect: boolean;
|
|
1082
|
+
canMessageNewNumbers: boolean;
|
|
1077
1083
|
}, Error, {
|
|
1078
|
-
enabled
|
|
1084
|
+
enabled?: boolean | undefined;
|
|
1085
|
+
membersEnabled?: boolean | undefined;
|
|
1079
1086
|
}, unknown>;
|
|
1080
1087
|
/** The approval page of the MCP sign-in: which app asks, and where it returns to. */
|
|
1081
1088
|
export declare function useOAuthRequest(search: string): import("@tanstack/react-query").UseQueryResult<{
|
|
@@ -1095,6 +1102,7 @@ export declare function useOAuthDecision(): import("@tanstack/react-query").UseM
|
|
|
1095
1102
|
state?: string | undefined;
|
|
1096
1103
|
scope?: string | undefined;
|
|
1097
1104
|
resource?: string | undefined;
|
|
1105
|
+
canSend?: boolean | undefined;
|
|
1098
1106
|
}, unknown>;
|
|
1099
1107
|
export declare function useApiTokens(): import("@tanstack/react-query").UseQueryResult<{
|
|
1100
1108
|
id: number;
|
|
@@ -1109,6 +1117,7 @@ export declare function useApiTokens(): import("@tanstack/react-query").UseQuery
|
|
|
1109
1117
|
canMessageNewNumbers: boolean;
|
|
1110
1118
|
canResolveChats: boolean;
|
|
1111
1119
|
connectedApp: boolean;
|
|
1120
|
+
memberToken: boolean;
|
|
1112
1121
|
}[], Error>;
|
|
1113
1122
|
export interface CreateApiTokenVars {
|
|
1114
1123
|
body: CreateApiTokenBodyInput;
|
|
@@ -1132,6 +1141,7 @@ export declare function useCreateApiToken(): import("@tanstack/react-query").Use
|
|
|
1132
1141
|
canMessageNewNumbers: boolean;
|
|
1133
1142
|
canResolveChats: boolean;
|
|
1134
1143
|
connectedApp: boolean;
|
|
1144
|
+
memberToken: boolean;
|
|
1135
1145
|
}, Error, CreateApiTokenVars, unknown>;
|
|
1136
1146
|
/** Changes whether a token may send (and message new numbers); only its owner may. */
|
|
1137
1147
|
export declare function useUpdateApiToken(): import("@tanstack/react-query").UseMutationResult<{
|
|
@@ -1147,6 +1157,7 @@ export declare function useUpdateApiToken(): import("@tanstack/react-query").Use
|
|
|
1147
1157
|
canMessageNewNumbers: boolean;
|
|
1148
1158
|
canResolveChats: boolean;
|
|
1149
1159
|
connectedApp: boolean;
|
|
1160
|
+
memberToken: boolean;
|
|
1150
1161
|
}, Error, {
|
|
1151
1162
|
id: number;
|
|
1152
1163
|
body: UpdateApiTokenBody;
|
|
@@ -52,15 +52,6 @@ export declare function usePhrasesAdmin(agentId: number | null): import("@tansta
|
|
|
52
52
|
fact: boolean;
|
|
53
53
|
}[];
|
|
54
54
|
}, Error>;
|
|
55
|
-
export declare const suggestModelKey: readonly ["ai", "suggestModel"];
|
|
56
|
-
/** Admins: the model for suggestions, its choices and what calls use now. */
|
|
57
|
-
export declare function useSuggestModel(enabled: boolean): import("@tanstack/react-query").UseQueryResult<{
|
|
58
|
-
model: string;
|
|
59
|
-
fastModel: string;
|
|
60
|
-
agentModel: string;
|
|
61
|
-
models: string[];
|
|
62
|
-
resolved: string;
|
|
63
|
-
}, Error>;
|
|
64
55
|
/** The rest of the sentence being typed, or null. */
|
|
65
56
|
export declare function fetchCompletion(jid: string, text: string, signal: AbortSignal): Promise<{
|
|
66
57
|
completion: string | null;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* /oauth/authorize: an AI assistant app (claude.ai, ChatGPT, …) sent the
|
|
3
|
-
* connection to the inbox. Approve sends the browser back to the
|
|
4
|
-
* server never redirects an unchecked request (bad requests stay on this
|
|
2
|
+
* /oauth/authorize: an AI assistant app (claude.ai, ChatGPT, …) sent the signed-in person here to
|
|
3
|
+
* approve its connection to the inbox, always for themselves. Approve sends the browser back to the
|
|
4
|
+
* app with a one-time code; the server never redirects an unchecked request (bad requests stay on this
|
|
5
|
+
* page). A team member (while the admin lets members connect, docs/features/mcp-for-members) sees what
|
|
6
|
+
* the assistant reaches as them and may tick "Let it send" (off by default); admins keep their page.
|
|
5
7
|
*/
|
|
6
8
|
export declare function OAuthConsentPage(): import("react").JSX.Element;
|
|
@@ -66,6 +66,7 @@ export declare const enResources: {
|
|
|
66
66
|
emailSupport: string;
|
|
67
67
|
signingOut: string;
|
|
68
68
|
signOutFailed: string;
|
|
69
|
+
aiAssistants: string;
|
|
69
70
|
};
|
|
70
71
|
errorBoundary: {
|
|
71
72
|
title: string;
|
|
@@ -244,6 +245,10 @@ export declare const enResources: {
|
|
|
244
245
|
body: string;
|
|
245
246
|
action: string;
|
|
246
247
|
};
|
|
248
|
+
memberNewChats: {
|
|
249
|
+
title: string;
|
|
250
|
+
body: string;
|
|
251
|
+
};
|
|
247
252
|
};
|
|
248
253
|
appNav: {
|
|
249
254
|
main: string;
|
|
@@ -645,6 +650,15 @@ export declare const enResources: {
|
|
|
645
650
|
accessOff: string;
|
|
646
651
|
badRequest: string;
|
|
647
652
|
backToInbox: string;
|
|
653
|
+
member: {
|
|
654
|
+
title: string;
|
|
655
|
+
body: string;
|
|
656
|
+
signedInAs: string;
|
|
657
|
+
sendLabel: string;
|
|
658
|
+
sendHint: string;
|
|
659
|
+
off: string;
|
|
660
|
+
offTitle: string;
|
|
661
|
+
};
|
|
648
662
|
};
|
|
649
663
|
};
|
|
650
664
|
inbox: {
|
|
@@ -978,6 +992,7 @@ export declare const enResources: {
|
|
|
978
992
|
jumpToLatest: string;
|
|
979
993
|
};
|
|
980
994
|
message: {
|
|
995
|
+
openAgent: string;
|
|
981
996
|
status: {
|
|
982
997
|
pending: string;
|
|
983
998
|
sent: string;
|
|
@@ -2242,6 +2257,7 @@ export declare const enResources: {
|
|
|
2242
2257
|
chatNewNumber: string;
|
|
2243
2258
|
settingsNewChatStaff: string;
|
|
2244
2259
|
settingsNewChatDailyLimit: string;
|
|
2260
|
+
settingsMcpMembers: string;
|
|
2245
2261
|
};
|
|
2246
2262
|
fields: {
|
|
2247
2263
|
chat: string;
|
|
@@ -2301,6 +2317,8 @@ export declare const enResources: {
|
|
|
2301
2317
|
userInactive: string;
|
|
2302
2318
|
notAdmin: string;
|
|
2303
2319
|
mustChangePassword: string;
|
|
2320
|
+
membersOff: string;
|
|
2321
|
+
notAllowed: string;
|
|
2304
2322
|
};
|
|
2305
2323
|
yes: string;
|
|
2306
2324
|
no: string;
|
|
@@ -2375,6 +2393,7 @@ export declare const enResources: {
|
|
|
2375
2393
|
canResolveBadge: string;
|
|
2376
2394
|
signedInBadge: string;
|
|
2377
2395
|
tokenBadge: string;
|
|
2396
|
+
memberBadge: string;
|
|
2378
2397
|
};
|
|
2379
2398
|
create: {
|
|
2380
2399
|
title: string;
|
|
@@ -2430,6 +2449,18 @@ export declare const enResources: {
|
|
|
2430
2449
|
save: string;
|
|
2431
2450
|
saved: string;
|
|
2432
2451
|
};
|
|
2452
|
+
members: {
|
|
2453
|
+
label: string;
|
|
2454
|
+
hint: string;
|
|
2455
|
+
needsAccess: string;
|
|
2456
|
+
turnedOn: string;
|
|
2457
|
+
turnedOff_one: string;
|
|
2458
|
+
turnedOff_other: string;
|
|
2459
|
+
offTitle: string;
|
|
2460
|
+
offBody_one: string;
|
|
2461
|
+
offBody_other: string;
|
|
2462
|
+
offConfirm: string;
|
|
2463
|
+
};
|
|
2433
2464
|
};
|
|
2434
2465
|
settings: {
|
|
2435
2466
|
title: string;
|
|
@@ -2486,11 +2517,72 @@ export declare const enResources: {
|
|
|
2486
2517
|
cost: string;
|
|
2487
2518
|
noConnection: string;
|
|
2488
2519
|
upgraded: string;
|
|
2520
|
+
modelNote: string;
|
|
2521
|
+
};
|
|
2522
|
+
aiModels: {
|
|
2523
|
+
title: string;
|
|
2524
|
+
description: string;
|
|
2525
|
+
connection: string;
|
|
2526
|
+
perConnection: string;
|
|
2527
|
+
mode: {
|
|
2528
|
+
chatgpt: string;
|
|
2529
|
+
api: string;
|
|
2530
|
+
claude: string;
|
|
2531
|
+
};
|
|
2489
2532
|
model: string;
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2533
|
+
fast: string;
|
|
2534
|
+
main: string;
|
|
2535
|
+
recommended: string;
|
|
2536
|
+
fastShort: string;
|
|
2537
|
+
mainShort: string;
|
|
2538
|
+
notOffered: string;
|
|
2539
|
+
useDefault: string;
|
|
2540
|
+
tier: {
|
|
2541
|
+
fast: string;
|
|
2542
|
+
balanced: string;
|
|
2543
|
+
smart: string;
|
|
2544
|
+
};
|
|
2545
|
+
tierShort: {
|
|
2546
|
+
fast: string;
|
|
2547
|
+
balanced: string;
|
|
2548
|
+
smart: string;
|
|
2549
|
+
};
|
|
2550
|
+
thinking: string;
|
|
2551
|
+
thinkingLevel: {
|
|
2552
|
+
low: string;
|
|
2553
|
+
medium: string;
|
|
2554
|
+
high: string;
|
|
2555
|
+
};
|
|
2556
|
+
thinkingHint: {
|
|
2557
|
+
low: string;
|
|
2558
|
+
medium: string;
|
|
2559
|
+
high: string;
|
|
2560
|
+
};
|
|
2561
|
+
unavailable: string;
|
|
2562
|
+
alwaysMain: string;
|
|
2563
|
+
tasks: {
|
|
2564
|
+
agentReplies: {
|
|
2565
|
+
title: string;
|
|
2566
|
+
what: string;
|
|
2567
|
+
};
|
|
2568
|
+
askEzy: {
|
|
2569
|
+
title: string;
|
|
2570
|
+
what: string;
|
|
2571
|
+
};
|
|
2572
|
+
translate: {
|
|
2573
|
+
title: string;
|
|
2574
|
+
what: string;
|
|
2575
|
+
};
|
|
2576
|
+
writing: {
|
|
2577
|
+
title: string;
|
|
2578
|
+
what: string;
|
|
2579
|
+
};
|
|
2580
|
+
background: {
|
|
2581
|
+
title: string;
|
|
2582
|
+
what: string;
|
|
2583
|
+
};
|
|
2584
|
+
};
|
|
2585
|
+
writingSlow: string;
|
|
2494
2586
|
};
|
|
2495
2587
|
askEzy: {
|
|
2496
2588
|
title: string;
|
|
@@ -3764,6 +3856,7 @@ export declare const enResources: {
|
|
|
3764
3856
|
requestMessage: string;
|
|
3765
3857
|
breadcrumb: string;
|
|
3766
3858
|
notFound: string;
|
|
3859
|
+
backToAgent: string;
|
|
3767
3860
|
backToGallery: string;
|
|
3768
3861
|
byCore: string;
|
|
3769
3862
|
byEnterprise: string;
|
|
@@ -3800,6 +3893,7 @@ export declare const enResources: {
|
|
|
3800
3893
|
checkAndBook: string;
|
|
3801
3894
|
checkOnly: string;
|
|
3802
3895
|
off: string;
|
|
3896
|
+
setUp: string;
|
|
3803
3897
|
none: string;
|
|
3804
3898
|
browse: string;
|
|
3805
3899
|
sheetsReads: string;
|
|
@@ -5302,6 +5396,26 @@ export declare const enResources: {
|
|
|
5302
5396
|
limitBanTitle: string;
|
|
5303
5397
|
limitBanBody: string;
|
|
5304
5398
|
};
|
|
5399
|
+
memberAssistants: {
|
|
5400
|
+
title: string;
|
|
5401
|
+
description: string;
|
|
5402
|
+
off: string;
|
|
5403
|
+
reach: string;
|
|
5404
|
+
reachLimited: string;
|
|
5405
|
+
howTo: string;
|
|
5406
|
+
apps: string;
|
|
5407
|
+
empty: string;
|
|
5408
|
+
sendNote: string;
|
|
5409
|
+
connectedOn: string;
|
|
5410
|
+
disconnect: string;
|
|
5411
|
+
disconnectLabel: string;
|
|
5412
|
+
disconnectTitle: string;
|
|
5413
|
+
disconnectBody: string;
|
|
5414
|
+
disconnected: string;
|
|
5415
|
+
newBlocked: string;
|
|
5416
|
+
permsDescription: string;
|
|
5417
|
+
takesEffect: string;
|
|
5418
|
+
};
|
|
5305
5419
|
liveTranslate: {
|
|
5306
5420
|
title: string;
|
|
5307
5421
|
description: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Delete chat (admins; docs/
|
|
2
|
+
* Delete chat (admins; docs/chat-hide-delete.md Part B): the chat's name, what goes
|
|
3
3
|
* (messages and files) and that the WhatsApp phone keeps its copy. Stays open until the server
|
|
4
4
|
* answers; on success the chat leaves every list and `onDeleted` takes the page back to the inbox.
|
|
5
5
|
*/
|
|
@@ -29,6 +29,10 @@ export interface MessageBubbleProps {
|
|
|
29
29
|
highlighted?: boolean;
|
|
30
30
|
/** Edit and delete (⋮ menu; under Reply in the press-and-hold bar on touch). */
|
|
31
31
|
changes?: MessageChangeProps;
|
|
32
|
+
/** Admins: the AI agent's setup page, so its name above its message is a link there. */
|
|
33
|
+
outboundHref?: string | null;
|
|
34
|
+
/** The agent's own name (without the "(AI)" mark), for the link's screen-reader label. */
|
|
35
|
+
outboundName?: string | null;
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
38
|
* Who wrote a quoted message. In a direct chat the customer is named like the chat header
|
|
@@ -39,7 +43,7 @@ export declare function quotedPreview(q: Message, t: TFunction<'inbox'>): string
|
|
|
39
43
|
export declare function StatusTicks({ status }: {
|
|
40
44
|
status: Message['status'];
|
|
41
45
|
}): React.JSX.Element;
|
|
42
|
-
export declare function MessageBubble({ message: m, showSender, outboundLabel, quoted, onRetry, retrying, onMediaLoad, directory, onReply, onReact, reactDisabledReason, contactName, changes, onOpenQuote, highlighted, }: MessageBubbleProps): React.JSX.Element;
|
|
46
|
+
export declare function MessageBubble({ message: m, showSender, outboundLabel, quoted, onRetry, retrying, onMediaLoad, directory, onReply, onReact, reactDisabledReason, contactName, changes, onOpenQuote, highlighted, outboundHref, outboundName, }: MessageBubbleProps): React.JSX.Element;
|
|
43
47
|
/** From this size a file shows that it is still uploading, and Forward warns before sending it. */
|
|
44
48
|
export declare const LARGE_FILE_BYTES: number;
|
|
45
49
|
/** Why a message was not sent, in plain words. */
|
|
@@ -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", "githubApp", "githubToken"];
|
|
6
|
+
export declare const TIP_TOPICS: readonly ["whatsappLink", "aiConnection", "apiKey", "claudeKey", "aiModel", "businessContext", "instructions", "handoff", "tryIt", "voice", "tunnel", "lan", "mcp", "accessToken", "memberNewChats", "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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function MemberAssistantCard(): import("react").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezychat/web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.88",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "EzyChat core: the team inbox web app (React) as a library, with createInboxApp and its extension API.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"build:lib": "node ../../scripts/build-web-lib.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@ezychat/shared": "0.1.
|
|
43
|
+
"@ezychat/shared": "0.1.88",
|
|
44
44
|
"@fontsource-variable/inter": "^5.3.0",
|
|
45
45
|
"@tanstack/react-query": "^5.107.1",
|
|
46
46
|
"@types/react": "^19.3.0",
|