@ezychat/web 0.1.52 → 0.1.53

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.
@@ -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;
@@ -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,13 @@ export declare const enResources: {
1133
1151
  turnedOn: string;
1134
1152
  turnedOff: string;
1135
1153
  };
1154
+ connectApp: {
1155
+ title: string;
1156
+ description: string;
1157
+ address: string;
1158
+ copy: string;
1159
+ needsTunnel: string;
1160
+ };
1136
1161
  noTunnel: {
1137
1162
  title: string;
1138
1163
  body: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezychat/web",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
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.52",
43
+ "@ezychat/shared": "0.1.53",
44
44
  "@fontsource-variable/inter": "^5.3.0",
45
45
  "@tanstack/react-query": "^5.104.5",
46
46
  "@types/react": "^19.3.0",