@esb-market-contracts/admin-backend 1.1.10 → 1.1.11

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 (3) hide show
  1. package/api.d.ts +6 -6
  2. package/package.json +1 -1
  3. package/types.d.ts +10 -9
package/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- declare const authRouter: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
4
- "/iam/auth/session": {
3
+ declare const authenticationRouter: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
4
+ "/iam/authentication/session": {
5
5
  $get: {
6
6
  input: {};
7
7
  output: {
@@ -31,7 +31,7 @@ declare const authRouter: import("hono/hono-base").HonoBase<import("hono/types")
31
31
  };
32
32
  };
33
33
  } & {
34
- "/iam/auth/login": {
34
+ "/iam/authentication/login": {
35
35
  $post: {
36
36
  input: {
37
37
  json: {
@@ -66,7 +66,7 @@ declare const authRouter: import("hono/hono-base").HonoBase<import("hono/types")
66
66
  };
67
67
  };
68
68
  } & {
69
- "/iam/auth/logout": {
69
+ "/iam/authentication/logout": {
70
70
  $post: {
71
71
  input: {};
72
72
  output: {
@@ -81,7 +81,7 @@ declare const authRouter: import("hono/hono-base").HonoBase<import("hono/types")
81
81
  status: 400 | 401 | 403 | 404 | 405 | 409 | 500 | 200 | 201 | 202 | 307;
82
82
  };
83
83
  };
84
- }, "/iam/auth", "/iam/auth/logout">;
85
- export type AuthRouter = typeof authRouter;
84
+ }, "/iam/authentication", "/iam/authentication/logout">;
85
+ export type AuthenticationRouter = typeof authenticationRouter;
86
86
 
87
87
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esb-market-contracts/admin-backend",
3
3
  "description": "Shared TypeScript contract definitions for admin-backend.",
4
- "version": "1.1.10",
4
+ "version": "1.1.11",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  import { z } from 'zod';
4
4
 
5
- declare const AuthLoginSchema: z.ZodObject<{
5
+ declare const AuthenticationLoginSchema: z.ZodObject<{
6
6
  email: z.ZodEmail;
7
7
  password: z.ZodString;
8
8
  }, z.core.$strict>;
9
- export type AuthLogin = z.infer<typeof AuthLoginSchema>;
10
- declare const AuthSessionSchema: z.ZodObject<{
9
+ export type AuthenticationLogin = z.infer<typeof AuthenticationLoginSchema>;
10
+ declare const AuthenticationSessionSchema: z.ZodObject<{
11
11
  expiresAt: z.ZodDate;
12
12
  user: z.ZodObject<{
13
13
  id: z.ZodInt;
@@ -34,7 +34,7 @@ declare const AuthSessionSchema: z.ZodObject<{
34
34
  out: {};
35
35
  in: {};
36
36
  }>;
37
- export type AuthSession = z.infer<typeof AuthSessionSchema>;
37
+ export type AuthenticationSession = z.infer<typeof AuthenticationSessionSchema>;
38
38
  /**
39
39
  * Type utility that recursively transforms all Date fields to string, as well as handling arrays and objects.
40
40
  * This is necessary for proper typing when working with RPC, as JSON does not support the Date type directly.
@@ -44,10 +44,11 @@ export type AuthSession = z.infer<typeof AuthSessionSchema>;
44
44
  export type SerializeDates<T> = T extends Date ? string : T extends (infer U)[] ? SerializeDates<U>[] : T extends readonly (infer U)[] ? readonly SerializeDates<U>[] : T extends object ? {
45
45
  [K in keyof T]: SerializeDates<T[K]>;
46
46
  } : T;
47
- export type AuthLoginRequest = AuthLogin;
48
- export type AuthSessionRequest = Record<string, never>;
49
- export type AuthSessionResponse = SerializeDates<AuthSession>;
50
- export type AuthLogoutRequest = Record<string, never>;
51
- export type AuthLogoutResponse = Record<string, never>;
47
+ export type AuthenticationLoginRequest = AuthenticationLogin;
48
+ export type AuthenticationSessionRequest = Record<string, never>;
49
+ export type AuthenticationClientSession = SerializeDates<AuthenticationSession>;
50
+ export type AuthenticationSessionResponse = AuthenticationClientSession;
51
+ export type AuthenticationLogoutRequest = Record<string, never>;
52
+ export type AuthenticationLogoutResponse = Record<string, never>;
52
53
 
53
54
  export {};