@esb-market-contracts/admin-backend 1.1.5 → 1.1.7
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/api.d.ts +2 -24
- package/package.json +1 -1
- package/types.d.ts +2 -10
package/api.d.ts
CHANGED
|
@@ -28,12 +28,8 @@ declare const authRouter: import("hono/hono-base").HonoBase<import("hono/types")
|
|
|
28
28
|
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
29
29
|
error: string;
|
|
30
30
|
} | {
|
|
31
|
-
kind: "
|
|
31
|
+
kind: "void";
|
|
32
32
|
status: import("@esb-market-contracts/core").SuccessStatusCode;
|
|
33
|
-
data: {
|
|
34
|
-
tokenHash: string;
|
|
35
|
-
expiresAt: string;
|
|
36
|
-
};
|
|
37
33
|
};
|
|
38
34
|
outputFormat: "json";
|
|
39
35
|
status: 400 | 401 | 403 | 404 | 405 | 409 | 500 | 200 | 201 | 202 | 307;
|
|
@@ -42,24 +38,7 @@ declare const authRouter: import("hono/hono-base").HonoBase<import("hono/types")
|
|
|
42
38
|
} & {
|
|
43
39
|
"/iam/auth/session": {
|
|
44
40
|
$get: {
|
|
45
|
-
input: {
|
|
46
|
-
header: {
|
|
47
|
-
"x-session-token-hash": string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
output: {
|
|
51
|
-
kind: "error";
|
|
52
|
-
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
53
|
-
error: string;
|
|
54
|
-
};
|
|
55
|
-
outputFormat: "json";
|
|
56
|
-
status: 400;
|
|
57
|
-
} | {
|
|
58
|
-
input: {
|
|
59
|
-
header: {
|
|
60
|
-
"x-session-token-hash": string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
41
|
+
input: {};
|
|
63
42
|
output: {
|
|
64
43
|
kind: "error";
|
|
65
44
|
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
@@ -68,7 +47,6 @@ declare const authRouter: import("hono/hono-base").HonoBase<import("hono/types")
|
|
|
68
47
|
kind: "data";
|
|
69
48
|
status: import("@esb-market-contracts/core").SuccessStatusCode;
|
|
70
49
|
data: {
|
|
71
|
-
tokenHash: string;
|
|
72
50
|
expiresAt: string;
|
|
73
51
|
user: {
|
|
74
52
|
id: number;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -7,17 +7,9 @@ declare const AuthLoginSchema: z.ZodObject<{
|
|
|
7
7
|
password: z.ZodString;
|
|
8
8
|
}, z.core.$strict>;
|
|
9
9
|
export type AuthLogin = z.infer<typeof AuthLoginSchema>;
|
|
10
|
-
declare const AuthLoginResultSchema: z.ZodObject<{
|
|
11
|
-
tokenHash: z.ZodString;
|
|
12
|
-
expiresAt: z.ZodDate;
|
|
13
|
-
}, z.core.$strict>;
|
|
10
|
+
declare const AuthLoginResultSchema: z.ZodObject<{}, z.core.$strict>;
|
|
14
11
|
export type AuthLoginResult = z.infer<typeof AuthLoginResultSchema>;
|
|
15
|
-
declare const AuthSessionHeaderSchema: z.ZodObject<{
|
|
16
|
-
"x-session-token-hash": z.ZodString;
|
|
17
|
-
}, z.core.$strict>;
|
|
18
|
-
export type AuthSessionHeader = z.infer<typeof AuthSessionHeaderSchema>;
|
|
19
12
|
declare const AuthSessionSchema: z.ZodObject<{
|
|
20
|
-
tokenHash: z.ZodString;
|
|
21
13
|
expiresAt: z.ZodDate;
|
|
22
14
|
user: z.ZodObject<{
|
|
23
15
|
id: z.ZodInt;
|
|
@@ -47,7 +39,7 @@ export type SerializeDates<T> = T extends Date ? string : T extends (infer U)[]
|
|
|
47
39
|
} : T;
|
|
48
40
|
export type AuthLoginRequest = AuthLogin;
|
|
49
41
|
export type AuthLoginResponse = SerializeDates<AuthLoginResult>;
|
|
50
|
-
export type AuthSessionRequest =
|
|
42
|
+
export type AuthSessionRequest = Record<string, never>;
|
|
51
43
|
export type AuthSessionResponse = SerializeDates<AuthSession>;
|
|
52
44
|
|
|
53
45
|
export {};
|