@esb-market-contracts/admin-backend 1.1.0 → 1.1.2

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 +0 -2
  2. package/package.json +1 -1
  3. package/types.d.ts +20 -0
package/api.d.ts CHANGED
@@ -7,7 +7,6 @@ declare const sessionsRouter: import("hono/hono-base").HonoBase<import("hono/typ
7
7
  json: {
8
8
  userId: number;
9
9
  tokenHash: string;
10
- expiresAt: unknown;
11
10
  ipAddress?: string | null | undefined;
12
11
  };
13
12
  };
@@ -23,7 +22,6 @@ declare const sessionsRouter: import("hono/hono-base").HonoBase<import("hono/typ
23
22
  json: {
24
23
  userId: number;
25
24
  tokenHash: string;
26
- expiresAt: unknown;
27
25
  ipAddress?: string | null | undefined;
28
26
  };
29
27
  };
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.0",
4
+ "version": "1.1.2",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -1,3 +1,23 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
+ import { z } from 'zod';
4
+
5
+ declare const CreateSessionSchema: z.ZodObject<{
6
+ userId: z.ZodInt;
7
+ tokenHash: z.ZodString;
8
+ ipAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ }, z.core.$strict>;
10
+ export type CreateSession = z.infer<typeof CreateSessionSchema>;
11
+ export type SessionsCreateRequest = CreateSession;
12
+ declare const SelectSessionByTokenHashSchema: z.ZodObject<{
13
+ tokenHash: z.ZodString;
14
+ }, z.core.$strict>;
15
+ export type SelectSessionByTokenHash = z.infer<typeof SelectSessionByTokenHashSchema>;
16
+ export type SessionsFindByTokenRequest = SelectSessionByTokenHash;
17
+ declare const RevokeSessionSchema: z.ZodObject<{
18
+ id: z.ZodInt;
19
+ }, z.core.$strict>;
20
+ export type RevokeSession = z.infer<typeof RevokeSessionSchema>;
21
+ export type SessionsRevokeRequest = RevokeSession;
22
+
3
23
  export {};