@esb-market-contracts/admin-backend 1.4.4 → 1.4.6

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 CHANGED
@@ -3,7 +3,12 @@
3
3
  declare const authRouter: import("hono/hono-base").HonoBase<{}, {
4
4
  "/iam/authentication/signin": {
5
5
  $post: {
6
- input: {};
6
+ input: {
7
+ json: {
8
+ email: string;
9
+ password: string;
10
+ };
11
+ };
7
12
  output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
8
13
  [x: string]: never;
9
14
  }>;
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.4.4",
4
+ "version": "1.4.6",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/schemas.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { z } from 'zod';
4
4
 
5
- /** Schema for the payload of an authentication token. */
6
- export declare const authPayloadSchema: z.ZodObject<{
5
+ /** Schema for the payload of an access token. */
6
+ export declare const accessTokenPayloadSchema: z.ZodObject<{
7
7
  employee: z.ZodObject<{
8
8
  id: z.ZodInt;
9
9
  email: z.ZodString;
@@ -18,6 +18,6 @@ export declare const authPayloadSchema: z.ZodObject<{
18
18
  "employee.update": "employee.update";
19
19
  }>>;
20
20
  }, z.core.$strip>;
21
- export type AuthPayload = z.infer<typeof authPayloadSchema>;
21
+ export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;
22
22
 
23
23
  export {};
package/schemas.js CHANGED
@@ -234,10 +234,10 @@ var authorizeRequestSchema = z5.object({
234
234
  email: z5.email().min(8).max(128),
235
235
  password: z5.string().min(8).max(128)
236
236
  });
237
- var authPayloadSchema = z5.object({
237
+ var accessTokenPayloadSchema = z5.object({
238
238
  employee: employeeSchema.pick({ id: true, email: true, fullName: true }),
239
239
  permissions: z5.array(z5.enum(PBACPermissionItems))
240
240
  });
241
241
  export {
242
- authPayloadSchema
242
+ accessTokenPayloadSchema
243
243
  };