@ezychat/web 0.1.52 → 0.1.54
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-Dr2p0vo4.js → admin-8p_RQIvq.js} +26 -11
- package/dist-lib/chunks/{admin-D4sSm-0v.js → admin-Bsz90faH.js} +26 -11
- package/dist-lib/chunks/{auth-DVxOXQ8z.js → auth-BZaZVdYG.js} +20 -2
- package/dist-lib/chunks/{auth-C43vQHqn.js → auth-DYIZVf-5.js} +20 -2
- package/dist-lib/ezychat-web.css +1 -1
- package/dist-lib/index.js +3861 -3613
- package/dist-lib/types/api/queries.d.ts +22 -0
- package/dist-lib/types/auth/OAuthConsentPage.d.ts +6 -0
- package/dist-lib/types/i18n/resources.d.ts +33 -0
- package/package.json +2 -2
|
@@ -762,6 +762,25 @@ export declare function usePatchMcpSettings(): import("@tanstack/react-query").U
|
|
|
762
762
|
}, Error, {
|
|
763
763
|
enabled: boolean;
|
|
764
764
|
}, unknown>;
|
|
765
|
+
/** The approval page of the MCP sign-in: which app asks, and where it returns to. */
|
|
766
|
+
export declare function useOAuthRequest(search: string): import("@tanstack/react-query").UseQueryResult<{
|
|
767
|
+
clientName: string;
|
|
768
|
+
redirectHost: string;
|
|
769
|
+
}, Error>;
|
|
770
|
+
/** Approve or decline; the response says where to send the browser (back to the app). */
|
|
771
|
+
export declare function useOAuthDecision(): import("@tanstack/react-query").UseMutationResult<{
|
|
772
|
+
redirectTo: string;
|
|
773
|
+
}, Error, {
|
|
774
|
+
response_type: string;
|
|
775
|
+
client_id: string;
|
|
776
|
+
approve: boolean;
|
|
777
|
+
redirect_uri?: string | undefined;
|
|
778
|
+
code_challenge?: string | undefined;
|
|
779
|
+
code_challenge_method?: string | undefined;
|
|
780
|
+
state?: string | undefined;
|
|
781
|
+
scope?: string | undefined;
|
|
782
|
+
resource?: string | undefined;
|
|
783
|
+
}, unknown>;
|
|
765
784
|
export declare function useApiTokens(): import("@tanstack/react-query").UseQueryResult<{
|
|
766
785
|
id: number;
|
|
767
786
|
userId: number;
|
|
@@ -773,6 +792,7 @@ export declare function useApiTokens(): import("@tanstack/react-query").UseQuery
|
|
|
773
792
|
expiresAt: number | null;
|
|
774
793
|
canSend: boolean;
|
|
775
794
|
canMessageNewNumbers: boolean;
|
|
795
|
+
connectedApp: boolean;
|
|
776
796
|
}[], Error>;
|
|
777
797
|
export interface CreateApiTokenVars {
|
|
778
798
|
body: CreateApiTokenBodyInput;
|
|
@@ -794,6 +814,7 @@ export declare function useCreateApiToken(): import("@tanstack/react-query").Use
|
|
|
794
814
|
expiresAt: number | null;
|
|
795
815
|
canSend: boolean;
|
|
796
816
|
canMessageNewNumbers: boolean;
|
|
817
|
+
connectedApp: boolean;
|
|
797
818
|
}, Error, CreateApiTokenVars, unknown>;
|
|
798
819
|
/** Changes whether a token may send (and message new numbers); only its owner may. */
|
|
799
820
|
export declare function useUpdateApiToken(): import("@tanstack/react-query").UseMutationResult<{
|
|
@@ -807,6 +828,7 @@ export declare function useUpdateApiToken(): import("@tanstack/react-query").Use
|
|
|
807
828
|
expiresAt: number | null;
|
|
808
829
|
canSend: boolean;
|
|
809
830
|
canMessageNewNumbers: boolean;
|
|
831
|
+
connectedApp: boolean;
|
|
810
832
|
}, Error, {
|
|
811
833
|
id: number;
|
|
812
834
|
body: UpdateApiTokenBody;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* /oauth/authorize: an AI assistant app (claude.ai, ChatGPT, …) sent the admin here to approve its
|
|
3
|
+
* connection to the inbox. Approve sends the browser back to the app with a one-time code; the
|
|
4
|
+
* server never redirects an unchecked request (bad requests stay on this page).
|
|
5
|
+
*/
|
|
6
|
+
export declare function OAuthConsentPage(): import("react").JSX.Element;
|
|
@@ -309,6 +309,24 @@ export declare const enResources: {
|
|
|
309
309
|
show: string;
|
|
310
310
|
hide: string;
|
|
311
311
|
};
|
|
312
|
+
oauth: {
|
|
313
|
+
title: string;
|
|
314
|
+
subtitle: string;
|
|
315
|
+
returnsTo: string;
|
|
316
|
+
canTitle: string;
|
|
317
|
+
canRead: string;
|
|
318
|
+
canSetup: string;
|
|
319
|
+
sendLater: string;
|
|
320
|
+
trust: string;
|
|
321
|
+
approve: string;
|
|
322
|
+
deny: string;
|
|
323
|
+
unnamedApp: string;
|
|
324
|
+
errorTitle: string;
|
|
325
|
+
adminOnly: string;
|
|
326
|
+
accessOff: string;
|
|
327
|
+
badRequest: string;
|
|
328
|
+
backToInbox: string;
|
|
329
|
+
};
|
|
312
330
|
};
|
|
313
331
|
inbox: {
|
|
314
332
|
retrying: string;
|
|
@@ -1133,6 +1151,19 @@ export declare const enResources: {
|
|
|
1133
1151
|
turnedOn: string;
|
|
1134
1152
|
turnedOff: string;
|
|
1135
1153
|
};
|
|
1154
|
+
connectApp: {
|
|
1155
|
+
title: string;
|
|
1156
|
+
recommended: string;
|
|
1157
|
+
apps: string;
|
|
1158
|
+
step1: string;
|
|
1159
|
+
step2: string;
|
|
1160
|
+
step3: string;
|
|
1161
|
+
noToken: string;
|
|
1162
|
+
copy: string;
|
|
1163
|
+
needsTunnel: string;
|
|
1164
|
+
developerToggle: string;
|
|
1165
|
+
developerBody: string;
|
|
1166
|
+
};
|
|
1136
1167
|
noTunnel: {
|
|
1137
1168
|
title: string;
|
|
1138
1169
|
body: string;
|
|
@@ -1157,6 +1188,8 @@ export declare const enResources: {
|
|
|
1157
1188
|
revoked: string;
|
|
1158
1189
|
canSendBadge: string;
|
|
1159
1190
|
canNewBadge: string;
|
|
1191
|
+
signedInBadge: string;
|
|
1192
|
+
tokenBadge: string;
|
|
1160
1193
|
};
|
|
1161
1194
|
create: {
|
|
1162
1195
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ezychat/web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.54",
|
|
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.54",
|
|
44
44
|
"@fontsource-variable/inter": "^5.3.0",
|
|
45
45
|
"@tanstack/react-query": "^5.104.5",
|
|
46
46
|
"@types/react": "^19.3.0",
|