@sentry/junior-dashboard 0.237.0 → 0.238.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.
- package/dist/app.js +24 -8
- package/dist/client.js +34 -33
- package/dist/index.d.ts +3 -3
- package/dist/index.js +24 -8
- package/package.json +3 -3
- package/src/api/schema.ts +19 -5
- package/src/app.ts +10 -1
- package/src/auth.ts +5 -5
- package/src/client/App.tsx +13 -0
- package/src/client/components/ProfileMenu.tsx +22 -3
- package/src/client/pages/admin/AdminPage.tsx +77 -0
- package/src/client/pages/user/PluginUserPage.tsx +33 -21
- package/src/client/primaryNav.ts +1 -0
- package/src/shell.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ import { ConversationWorkQueue, JuniorApiVariables } from '@sentry/junior/api';
|
|
|
3
3
|
import { User, PluginRouteMethod, PluginRouteApp } from '@sentry/junior-plugin-api';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/** Sanitized sign-in session. It never carries Junior roles. */
|
|
7
|
+
declare const dashboardSessionSchema: z.ZodObject<{
|
|
7
8
|
user: z.ZodObject<{
|
|
8
9
|
email: z.ZodString;
|
|
9
10
|
emailVerified: z.ZodOptional<z.ZodBoolean>;
|
|
10
11
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
12
|
}, z.core.$strict>;
|
|
12
13
|
}, z.core.$strict>;
|
|
13
|
-
type
|
|
14
|
+
type DashboardSession = z.infer<typeof dashboardSessionSchema>;
|
|
14
15
|
|
|
15
|
-
type DashboardSession = DashboardIdentity;
|
|
16
16
|
interface DashboardAuth {
|
|
17
17
|
handler(request: Request): Promise<Response>;
|
|
18
18
|
getSession(request: Request): Promise<DashboardSession | null>;
|