gomtm 0.0.204 → 0.0.206

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 (45) hide show
  1. package/dist/esm/curd/CommonListViewV2.d.ts +1 -0
  2. package/dist/esm/curd/CommonListViewV2.js +62 -5
  3. package/dist/esm/curd/CurdAtomsDebug.d.ts +2 -0
  4. package/dist/esm/curd/CurdAtomsDebug.js +13 -0
  5. package/dist/esm/curd/curd.atoms.d.ts +6 -1
  6. package/dist/esm/curd/curd.atoms.js +18 -2
  7. package/dist/esm/curd/list-item/PostCardListItem.js +24 -4
  8. package/dist/esm/lzBizComponents.d.ts +5 -0
  9. package/dist/esm/lzBizComponents.js +15 -0
  10. package/dist/esm/mtmFetcher.js +1 -1
  11. package/dist/esm/providers/logger.context.d.ts +0 -2
  12. package/dist/esm/store/auth.js +1 -33
  13. package/dist/esm/validations/env.d.ts +2 -2
  14. package/dist/esm/validations/spContentModi.d.ts +4 -4
  15. package/dist/esm/validations/spRoute.d.ts +4 -4
  16. package/dist/esm/validations/user.d.ts +4 -4
  17. package/dist/tsconfig.type.tsbuildinfo +1 -1
  18. package/package.json +2 -2
  19. package/dist/esm/components/blog/BlogPostActions.d.ts +0 -4
  20. package/dist/esm/components/blog/BlogPostActions.js +0 -39
  21. package/dist/esm/components/blog/PostCard.d.ts +0 -5
  22. package/dist/esm/components/blog/PostCard.js +0 -62
  23. package/dist/esm/curd/CurdListView.d.ts +0 -13
  24. package/dist/esm/curd/CurdListView.js +0 -97
  25. package/dist/esm/curd/CurdListViewAuto.d.ts +0 -3
  26. package/dist/esm/curd/CurdListViewAuto.js +0 -15
  27. package/dist/esm/curd/CurdListViewV2.d.ts +0 -5
  28. package/dist/esm/curd/CurdListViewV2.js +0 -43
  29. package/dist/esm/curd/toolbar-buttons.d.ts +0 -3
  30. package/dist/esm/curd/toolbar-buttons.js +0 -12
  31. package/dist/esm/gomtm-clients-ss.d.ts +0 -9
  32. package/dist/esm/gomtm-clients-ss.js +0 -137
  33. package/dist/esm/gomtmcurd/gomtmcurd-detailview.d.ts +0 -2
  34. package/dist/esm/gomtmcurd/gomtmcurd-detailview.js +0 -19
  35. package/dist/esm/gomtmcurd/gomtmcurd-listview.d.ts +0 -2
  36. package/dist/esm/gomtmcurd/gomtmcurd-listview.js +0 -24
  37. package/dist/esm/gomtmcurd/hooks.d.ts +0 -1
  38. package/dist/esm/gomtmcurd/hooks.js +0 -16
  39. package/dist/esm/hooks/useAuth.d.ts +0 -5
  40. package/dist/esm/hooks/useAuth.js +0 -43
  41. package/dist/esm/sscore.d.ts +0 -0
  42. package/dist/esm/sscore.js +0 -0
  43. package/dist/esm/store/auth.atoms.d.ts +0 -5
  44. package/dist/esm/store/auth.atoms.js +0 -27
  45. package/dist/gomtm +0 -0
@@ -9,6 +9,7 @@ export declare const exampleListItemComponent: import("jotai").Atom<any>;
9
9
  export declare function CommonListViewProvider<I extends Message<I>, O extends Message<O>>(props: {
10
10
  methodList: MethodUnaryDescriptor<I, any>;
11
11
  methodDelete: MethodUnaryDescriptor<any, any>;
12
+ methodCreate?: MethodUnaryDescriptor<any, any>;
12
13
  slugPath?: string;
13
14
  } & PropsWithChildren): import("react").JSX.Element;
14
15
  export declare function CommonListView<I extends Message<I>, O extends Message<O>>(): import("react").JSX.Element | null;
@@ -1,12 +1,35 @@
1
1
  "use client";
2
+ var __async = (__this, __arguments, generator) => {
3
+ return new Promise((resolve, reject) => {
4
+ var fulfilled = (value) => {
5
+ try {
6
+ step(generator.next(value));
7
+ } catch (e) {
8
+ reject(e);
9
+ }
10
+ };
11
+ var rejected = (value) => {
12
+ try {
13
+ step(generator.throw(value));
14
+ } catch (e) {
15
+ reject(e);
16
+ }
17
+ };
18
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
19
+ step((generator = generator.apply(__this, __arguments)).next());
20
+ });
21
+ };
2
22
  import { jsx, jsxs } from "react/jsx-runtime";
3
23
  import { atom, useAtom } from "jotai";
4
24
  import { ScopeAtomsHydrator } from "mtxlib/jotai/jotai-helper";
25
+ import { DebugAtomValue } from "mtxuilib/common/devtools/DebugAtomValue";
5
26
  import { cn } from "mtxuilib/lib/utils";
27
+ import { Dialog, DialogContent, DialogTitle } from "mtxuilib/ui/dialog";
6
28
  import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "mtxuilib/ui/pagination";
29
+ import { MtButton } from "mtxuilib/ui/ui-mt/Button";
7
30
  import { MtUnaryCallErrorView } from "../components/MtUnaryCallErrorView";
8
- import { useSuspenseInfiniteQuery } from "../connectquery";
9
- import { removeMeghodSigAtom } from "./curd.atoms";
31
+ import { useMutation, useSuspenseInfiniteQuery } from "../connectquery";
32
+ import { activateItemAtom, createMethodSigAtom, openCreatePanelAtom, openRemovePanelAtom, removeMethodSigAtom } from "./curd.atoms";
10
33
  import { ListItemView } from "./list-item/ListItem";
11
34
  import { ListLayout } from "./list-item/ListLayout";
12
35
  const listQueryAtom = atom(null);
@@ -29,7 +52,7 @@ const exampleListItemComponent = atom((get) => {
29
52
  };
30
53
  });
31
54
  function CommonListViewProvider(props) {
32
- const { children, methodList, methodDelete, slugPath } = props;
55
+ const { children, methodList, methodDelete, slugPath, methodCreate } = props;
33
56
  const listquery = useSuspenseInfiniteQuery(methodList, {
34
57
  //@ts-expect-error
35
58
  page: 1
@@ -45,7 +68,10 @@ function CommonListViewProvider(props) {
45
68
  return /* @__PURE__ */ jsx(ScopeAtomsHydrator, { atomValues: [
46
69
  [listQueryAtom, listquery],
47
70
  [curdSlugPathValueAtom, slugPath],
48
- [removeMeghodSigAtom, methodDelete]
71
+ [removeMethodSigAtom, methodDelete],
72
+ [createMethodSigAtom, methodCreate],
73
+ [openRemovePanelAtom, false],
74
+ [openCreatePanelAtom, false]
49
75
  ], children });
50
76
  }
51
77
  function CommonListView() {
@@ -80,9 +106,40 @@ function CommonListView() {
80
106
  /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationEllipsis, {}) }),
81
107
  /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationNext, { href: "#" }) })
82
108
  ] }) }),
83
- /* @__PURE__ */ jsx("div", { className: "absolute right-1 top-1" })
109
+ /* @__PURE__ */ jsx("div", { className: "absolute right-1 top-1" }),
110
+ /* @__PURE__ */ jsx(PanelRemove, {}),
111
+ /* @__PURE__ */ jsx(PanelCreate, {})
84
112
  ] });
85
113
  }
114
+ const PanelRemove = () => {
115
+ const [activateItem] = useAtom(activateItemAtom);
116
+ const [removeMeghodSig] = useAtom(removeMethodSigAtom);
117
+ const [openRemovePanel, setOpenRemovePanel] = useAtom(openRemovePanelAtom);
118
+ const mutation = useMutation(removeMeghodSig);
119
+ return /* @__PURE__ */ jsx(Dialog, { open: openRemovePanel, onOpenChange: setOpenRemovePanel, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
120
+ /* @__PURE__ */ jsx(DialogTitle, { children: "remove item" }),
121
+ /* @__PURE__ */ jsx(MtButton, { onClick: () => __async(void 0, null, function* () {
122
+ yield mutation.mutateAsync({
123
+ id: activateItem.id
124
+ });
125
+ setOpenRemovePanel(false);
126
+ }), children: "ok" }),
127
+ /* @__PURE__ */ jsx(DebugAtomValue, { title: "removeMeghodSigAtom", atom: removeMethodSigAtom }),
128
+ /* @__PURE__ */ jsx(DebugAtomValue, { title: "activateItemAtom", atom: activateItemAtom })
129
+ ] }) });
130
+ };
131
+ const PanelCreate = () => {
132
+ const [activateItem] = useAtom(activateItemAtom);
133
+ const [removeMeghodSig] = useAtom(removeMethodSigAtom);
134
+ const [openCreatePanel, setOpenCreatePanel] = useAtom(openCreatePanelAtom);
135
+ const mutation = useMutation(removeMeghodSig);
136
+ return /* @__PURE__ */ jsx(Dialog, { open: openCreatePanel, onOpenChange: setOpenCreatePanel, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
137
+ /* @__PURE__ */ jsx(DialogTitle, { children: "TODO create item Dlg" }),
138
+ /* @__PURE__ */ jsx(MtButton, { onClick: () => __async(void 0, null, function* () {
139
+ setOpenCreatePanel(false);
140
+ }), children: "ok" })
141
+ ] }) });
142
+ };
86
143
  export {
87
144
  CommonListView,
88
145
  CommonListViewProvider,
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CurdAtomsDebug: () => import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { DebugAtomValue } from "mtxuilib/common/devtools/DebugAtomValue";
4
+ import { createMethodSigAtom, removeMethodSigAtom } from "./curd.atoms";
5
+ const CurdAtomsDebug = () => {
6
+ return /* @__PURE__ */ jsxs("div", { children: [
7
+ /* @__PURE__ */ jsx(DebugAtomValue, { title: "removeMethodSigAtom", atom: removeMethodSigAtom }),
8
+ /* @__PURE__ */ jsx(DebugAtomValue, { title: "createMethodSigAtom", atom: createMethodSigAtom })
9
+ ] });
10
+ };
11
+ export {
12
+ CurdAtomsDebug
13
+ };
@@ -11,9 +11,14 @@ export declare const activateItemValueAtom: import("jotai").PrimitiveAtom<any> &
11
11
  };
12
12
  export declare const activateItemAtom: import("jotai").WritableAtom<any, [value: any], void>;
13
13
  export declare const paramsAtom: import("jotai").Atom<any>;
14
- export declare const removeMeghodSigAtom: import("jotai").PrimitiveAtom<any> & {
14
+ export declare const removeMethodSigAtom: import("jotai").PrimitiveAtom<any> & {
15
15
  init: any;
16
16
  };
17
+ export declare const openRemovePanelAtom: import("jotai").WritableAtom<boolean, [value: boolean], void>;
18
+ export declare const createMethodSigAtom: import("jotai").PrimitiveAtom<any> & {
19
+ init: any;
20
+ };
21
+ export declare const openCreatePanelAtom: import("jotai").WritableAtom<boolean, [value: boolean], void>;
17
22
  export declare const curdPathAtom: import("jotai").PrimitiveAtom<string> & {
18
23
  init: string;
19
24
  };
@@ -41,7 +41,20 @@ const paramsAtom = atom((get) => {
41
41
  const v = get(paramsValueAtom);
42
42
  return v;
43
43
  });
44
- const removeMeghodSigAtom = atom(void 0);
44
+ const removeMethodSigAtom = atom(void 0);
45
+ const openRemovePanelValueAtom = atom(false);
46
+ const openRemovePanelAtom = atom((get) => {
47
+ return get(openRemovePanelValueAtom);
48
+ }, (_, set, value) => {
49
+ set(openRemovePanelValueAtom, value);
50
+ });
51
+ const createMethodSigAtom = atom(void 0);
52
+ const openCreatePanelValueAtom = atom(false);
53
+ const openCreatePanelAtom = atom((get) => {
54
+ return get(openCreatePanelValueAtom);
55
+ }, (_, set, value) => {
56
+ set(openCreatePanelValueAtom, value);
57
+ });
45
58
  const curdPathAtom = atom("");
46
59
  const curd3ItemsV2Atom = atom((get) => __async(void 0, null, function* () {
47
60
  const slugPath = get(curdPathAtom);
@@ -66,11 +79,14 @@ const useCurdSlugName = () => {
66
79
  export {
67
80
  activateItemAtom,
68
81
  activateItemValueAtom,
82
+ createMethodSigAtom,
69
83
  curd3ItemsV2Atom,
70
84
  curd3ListParamsAtom,
71
85
  curdActivateIdAtom,
72
86
  curdPathAtom,
87
+ openCreatePanelAtom,
88
+ openRemovePanelAtom,
73
89
  paramsAtom,
74
- removeMeghodSigAtom,
90
+ removeMethodSigAtom,
75
91
  useCurdSlugName
76
92
  };
@@ -5,10 +5,10 @@ import { MtLink } from "mtxuilib/common/mtlink";
5
5
  import { cn } from "mtxuilib/lib/utils";
6
6
  import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "mtxuilib/ui/card";
7
7
  import { Icons } from "mtxuilib/icons/icons";
8
- import { DropdownMenu, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
8
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
9
9
  import { DropdownMenuItemLink } from "mtxuilib/ui/ui-mt/DropdownMenuItemLink";
10
10
  import { curdSlugPathAtom } from "../CommonListViewV2";
11
- import { activateItemAtom } from "../curd.atoms";
11
+ import { activateItemAtom, openCreatePanelAtom, openRemovePanelAtom, removeMethodSigAtom } from "../curd.atoms";
12
12
  const PostCardListItem = (props) => {
13
13
  const { item } = props;
14
14
  const [activateItem, setActivateItem] = useAtom(activateItemAtom);
@@ -56,6 +56,9 @@ const PostCardListItem = (props) => {
56
56
  const PostCardItemActions = (props) => {
57
57
  const { id } = props;
58
58
  const [curdSlugPath] = useAtom(curdSlugPathAtom);
59
+ const [deleteMethod] = useAtom(removeMethodSigAtom);
60
+ const [openRemovePanel, setOpenRemovePanel] = useAtom(openRemovePanelAtom);
61
+ const [openCreatePanel, setOpenCreatePanel] = useAtom(openCreatePanelAtom);
59
62
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
60
63
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
61
64
  MtLink,
@@ -70,9 +73,26 @@ const PostCardItemActions = (props) => {
70
73
  }
71
74
  ) }),
72
75
  /* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "w-[160px]", children: [
73
- /* @__PURE__ */ jsx(DropdownMenuItemLink, { href: `${curdSlugPath}/create/${id}`, children: "create" }),
76
+ /* @__PURE__ */ jsx(
77
+ DropdownMenuItem,
78
+ {
79
+ onClick: () => {
80
+ setOpenCreatePanel(true);
81
+ },
82
+ children: "create"
83
+ }
84
+ ),
85
+ /* @__PURE__ */ jsx(DropdownMenuItemLink, { href: `${curdSlugPath}/create`, children: "create" }),
74
86
  /* @__PURE__ */ jsx(DropdownMenuItemLink, { href: `${curdSlugPath}/edit/${id}`, children: "edit" }),
75
- /* @__PURE__ */ jsx(DropdownMenuItemLink, { href: `/remove`, children: "remove" }),
87
+ /* @__PURE__ */ jsx(
88
+ DropdownMenuItem,
89
+ {
90
+ onClick: () => {
91
+ setOpenRemovePanel(true);
92
+ },
93
+ children: "remove"
94
+ }
95
+ ),
76
96
  /* @__PURE__ */ jsx(DropdownMenuSeparator, {})
77
97
  ] })
78
98
  ] });
@@ -0,0 +1,5 @@
1
+ import { ComponentType } from "react";
2
+ export declare function registLazyComponent(name: string, comp: ComponentType<any>): void;
3
+ export declare const LzBizComponent: (props: {
4
+ name: string;
5
+ }) => import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { jsxs } from "react/jsx-runtime";
3
+ function registLazyComponent(name, comp) {
4
+ }
5
+ const LzBizComponent = (props) => {
6
+ const { name } = props;
7
+ return /* @__PURE__ */ jsxs("div", { className: "border bg-red-600 p-2 shadow-sm", children: [
8
+ "missing dyn biz component: ",
9
+ name
10
+ ] });
11
+ };
12
+ export {
13
+ LzBizComponent,
14
+ registLazyComponent
15
+ };
@@ -109,7 +109,7 @@ const gomtmFetcher = (initGlobal) => {
109
109
  fetcher = fetchMiddleWithCache(fetch);
110
110
  }
111
111
  try {
112
- console.error("[mtmfetch]", {
112
+ console.info("[mtmfetch]", {
113
113
  input,
114
114
  init
115
115
  });
@@ -2,8 +2,6 @@ import { PropsWithChildren } from 'react';
2
2
  export declare function LoggerProvider(props: {} & PropsWithChildren): import("react").JSX.Element;
3
3
  export declare function useLogger(): {
4
4
  info: {
5
- (...data: any[]): void;
6
- (...data: any[]): void;
7
5
  (...data: any[]): void;
8
6
  (message?: any, ...optionalParams: any[]): void;
9
7
  };
@@ -1,24 +1,4 @@
1
1
  "use client";
2
- var __async = (__this, __arguments, generator) => {
3
- return new Promise((resolve, reject) => {
4
- var fulfilled = (value) => {
5
- try {
6
- step(generator.next(value));
7
- } catch (e) {
8
- reject(e);
9
- }
10
- };
11
- var rejected = (value) => {
12
- try {
13
- step(generator.throw(value));
14
- } catch (e) {
15
- reject(e);
16
- }
17
- };
18
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
19
- step((generator = generator.apply(__this, __arguments)).next());
20
- });
21
- };
22
2
  import { atom, useAtom } from "jotai";
23
3
  const isAdminAtom = atom(false);
24
4
  const useIsAdmin = () => {
@@ -40,23 +20,11 @@ function isRoleMatch(currentRoles, allowRoles) {
40
20
  }
41
21
  return false;
42
22
  }
43
- import React, { useEffect, useMemo } from "react";
44
- import Cookies from "universal-cookie";
23
+ import React, { useMemo } from "react";
45
24
  import { useSuspenseQuery } from "../connectquery";
46
25
  import { userinfo } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
47
- import { verifyJwtToken } from "../lib/auth/jwt";
48
26
  function useAuth() {
49
27
  const [auth, setAuth] = React.useState(null);
50
- const getVerifiedtoken = () => __async(this, null, function* () {
51
- var _a;
52
- const cookies = new Cookies();
53
- const token = (_a = cookies.get("token")) != null ? _a : null;
54
- const verifiedToken = yield verifyJwtToken(token);
55
- setAuth(verifiedToken);
56
- });
57
- useEffect(() => {
58
- getVerifiedtoken();
59
- }, []);
60
28
  const isAdmin = useMemo(() => {
61
29
  return (auth == null ? void 0 : auth.role) == "admin";
62
30
  }, [auth]);
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
2
  export declare const env: z.SafeParseReturnType<{
3
- NODE_ENV: "production" | "development" | "test";
4
3
  DATABASE_URL: string;
4
+ NODE_ENV: "development" | "test" | "production";
5
5
  }, {
6
- NODE_ENV: "production" | "development" | "test";
7
6
  DATABASE_URL: string;
7
+ NODE_ENV: "development" | "test" | "production";
8
8
  }>;
@@ -21,15 +21,15 @@ export declare const spContentModiCreateInput: z.ZodObject<{
21
21
  action: z.ZodString;
22
22
  value: z.ZodString;
23
23
  }, "strip", z.ZodTypeAny, {
24
- value: string;
25
24
  action: string;
25
+ value: string;
26
26
  sel: string;
27
27
  spRouteId: string;
28
28
  matchContentType: string;
29
29
  title?: string | undefined;
30
30
  }, {
31
- value: string;
32
31
  action: string;
32
+ value: string;
33
33
  sel: string;
34
34
  spRouteId: string;
35
35
  matchContentType: string;
@@ -44,17 +44,17 @@ export declare const spContentModiSaveInput: z.ZodObject<{
44
44
  action: z.ZodString;
45
45
  value: z.ZodString;
46
46
  }, "strip", z.ZodTypeAny, {
47
- value: string;
48
47
  id: string;
49
48
  action: string;
49
+ value: string;
50
50
  sel: string;
51
51
  spRouteId: string;
52
52
  matchContentType: string;
53
53
  title?: string | undefined;
54
54
  }, {
55
- value: string;
56
55
  id: string;
57
56
  action: string;
57
+ value: string;
58
58
  sel: string;
59
59
  spRouteId: string;
60
60
  matchContentType: string;
@@ -20,17 +20,17 @@ export declare const spRouteCreateInput: z.ZodObject<{
20
20
  pathPattern: z.ZodString;
21
21
  value: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
- value: string;
24
23
  title: string;
25
24
  spProjectId: string;
26
25
  hostPattern: string;
27
26
  pathPattern: string;
28
- }, {
29
27
  value: string;
28
+ }, {
30
29
  title: string;
31
30
  spProjectId: string;
32
31
  hostPattern: string;
33
32
  pathPattern: string;
33
+ value: string;
34
34
  }>;
35
35
  export type SpRouteSaveInput = z.infer<typeof SpRouteSaveInput>;
36
36
  export declare const SpRouteSaveInput: z.ZodObject<{
@@ -41,17 +41,17 @@ export declare const SpRouteSaveInput: z.ZodObject<{
41
41
  pathPattern: z.ZodString;
42
42
  value: z.ZodString;
43
43
  }, "strip", z.ZodTypeAny, {
44
- value: string;
45
44
  id: string;
46
45
  title: string;
47
46
  spProjectId: string;
48
47
  hostPattern: string;
49
48
  pathPattern: string;
50
- }, {
51
49
  value: string;
50
+ }, {
52
51
  id: string;
53
52
  title: string;
54
53
  spProjectId: string;
55
54
  hostPattern: string;
56
55
  pathPattern: string;
56
+ value: string;
57
57
  }>;
@@ -42,23 +42,23 @@ export declare const Oauth2LoginResponseSchema: z.ZodObject<{
42
42
  }, "strip", z.ZodTypeAny, {
43
43
  accessToken: string;
44
44
  id: string;
45
- roles: string[];
46
45
  userName: string;
46
+ roles: string[];
47
47
  }, {
48
48
  accessToken: string;
49
49
  id: string;
50
- roles: string[];
51
50
  userName: string;
51
+ roles: string[];
52
52
  }>;
53
53
  export type Oauth2LoginResponse = z.infer<typeof Oauth2LoginResponseSchema>;
54
54
  export declare const MeResponseSchema: z.ZodObject<{
55
55
  userName: z.ZodString;
56
56
  roles: z.ZodArray<z.ZodString, "many">;
57
57
  }, "strip", z.ZodTypeAny, {
58
- roles: string[];
59
58
  userName: string;
60
- }, {
61
59
  roles: string[];
60
+ }, {
62
61
  userName: string;
62
+ roles: string[];
63
63
  }>;
64
64
  export type MeResponse = z.infer<typeof MeResponseSchema>;