@drax/identity-back 0.33.1 → 0.34.0
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/dist/config/IdentityConfig.js +0 -0
- package/dist/controllers/RoleController.js +0 -0
- package/dist/controllers/TenantController.js +0 -0
- package/dist/controllers/UserApiKeyController.js +0 -0
- package/dist/controllers/UserController.js +1 -1
- package/dist/errors/BadCredentialsError.js +0 -0
- package/dist/factory/RoleServiceFactory.js +0 -0
- package/dist/factory/TenantServiceFactory.js +0 -0
- package/dist/factory/UserApiKeyServiceFactory.js +0 -0
- package/dist/factory/UserRegistryServiceFactory.js +24 -0
- package/dist/factory/UserServiceFactory.js +0 -0
- package/dist/graphql/index.js +0 -0
- package/dist/graphql/resolvers/role.resolvers.js +0 -0
- package/dist/graphql/resolvers/tenant.resolvers.js +0 -0
- package/dist/graphql/resolvers/user-api-key.resolvers.js +0 -0
- package/dist/graphql/resolvers/user.resolvers.js +0 -0
- package/dist/index.js +0 -0
- package/dist/interfaces/IRbac.js +1 -0
- package/dist/interfaces/IRoleRepository.js +0 -0
- package/dist/interfaces/ITenantRepository.js +0 -0
- package/dist/interfaces/IUserApiKeyRepository.js +0 -0
- package/dist/interfaces/IUserRepository.js +0 -0
- package/dist/middleware/apiKeyMiddleware.js +0 -0
- package/dist/middleware/jwtMiddleware.js +0 -0
- package/dist/middleware/rbacMiddleware.js +0 -0
- package/dist/models/RoleModel.js +0 -0
- package/dist/models/TenantModel.js +0 -0
- package/dist/models/UserApiKeyModel.js +0 -0
- package/dist/models/UserGroupModel.js +0 -0
- package/dist/models/UserModel.js +0 -0
- package/dist/permissions/IdentityPermissions.js +0 -0
- package/dist/permissions/RolePermissions.js +0 -0
- package/dist/permissions/TenantPermissions.js +0 -0
- package/dist/permissions/UserApiKeyPermissions.js +0 -0
- package/dist/permissions/UserPermissions.js +0 -0
- package/dist/permissions/index.js +0 -0
- package/dist/rbac/Rbac.js +0 -0
- package/dist/repository/mongo/RoleMongoRepository.js +0 -0
- package/dist/repository/mongo/TenantMongoRepository.js +0 -0
- package/dist/repository/mongo/UserApiKeyMongoRepository.js +0 -0
- package/dist/repository/mongo/UserMongoRepository.js +0 -0
- package/dist/repository/sqlite/RoleSqliteRepository.js +0 -0
- package/dist/repository/sqlite/TenantSqliteRepository.js +0 -0
- package/dist/repository/sqlite/UserApiKeySqliteRepository.js +0 -0
- package/dist/repository/sqlite/UserSqliteRepository.js +0 -0
- package/dist/routes/RoleRoutes.js +0 -0
- package/dist/routes/TenantRoutes.js +0 -0
- package/dist/routes/UserApiKeyRoutes.js +0 -0
- package/dist/routes/UserAvatarRoutes.js +70 -0
- package/dist/routes/UserRoutes.js +0 -0
- package/dist/schemas/TenantSchema.js +1 -1
- package/dist/services/PermissionService.js +0 -0
- package/dist/services/RoleService.js +0 -0
- package/dist/services/TenantService.js +0 -0
- package/dist/services/UserApiKeyService.js +0 -0
- package/dist/services/UserService.js +0 -0
- package/dist/setup/CreateOrUpdateRole.js +0 -0
- package/dist/setup/CreateUserIfNotExist.js +0 -0
- package/dist/setup/LoadIdentityConfigFromEnv.js +0 -0
- package/dist/setup/LoadPermissions.js +0 -0
- package/dist/setup/RecoveryUserPassword.js +0 -0
- package/dist/utils/AuthUtils.js +0 -0
- package/dist/zod/EndpointZod.js +9 -0
- package/dist/zod/RoleZod.js +8 -0
- package/dist/zod/TenantSchema.js +12 -0
- package/dist/zod/TenantZod.js +10 -0
- package/dist/zod/UserApiKeyZod.js +13 -0
- package/dist/zod/UserZod.js +18 -0
- package/package.json +7 -7
- package/src/controllers/UserController.ts +1 -1
- package/src/schemas/TenantSchema.ts +1 -1
- package/test.db +0 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/types/config/IdentityConfig.d.ts +0 -0
- package/types/config/IdentityConfig.d.ts.map +0 -0
- package/types/controllers/RoleController.d.ts +0 -0
- package/types/controllers/RoleController.d.ts.map +0 -0
- package/types/controllers/TenantController.d.ts +0 -0
- package/types/controllers/TenantController.d.ts.map +0 -0
- package/types/controllers/UserApiKeyController.d.ts +0 -0
- package/types/controllers/UserApiKeyController.d.ts.map +0 -0
- package/types/controllers/UserController.d.ts +0 -0
- package/types/controllers/UserController.d.ts.map +0 -0
- package/types/errors/BadCredentialsError.d.ts +0 -0
- package/types/errors/BadCredentialsError.d.ts.map +0 -0
- package/types/factory/RoleServiceFactory.d.ts +0 -0
- package/types/factory/RoleServiceFactory.d.ts.map +0 -0
- package/types/factory/TenantServiceFactory.d.ts +0 -0
- package/types/factory/TenantServiceFactory.d.ts.map +0 -0
- package/types/factory/UserApiKeyServiceFactory.d.ts +1 -1
- package/types/factory/UserApiKeyServiceFactory.d.ts.map +0 -0
- package/types/factory/UserRegistryServiceFactory.d.ts +4 -0
- package/types/factory/UserRegistryServiceFactory.d.ts.map +1 -0
- package/types/factory/UserServiceFactory.d.ts +0 -0
- package/types/factory/UserServiceFactory.d.ts.map +0 -0
- package/types/graphql/index.d.ts +0 -0
- package/types/graphql/index.d.ts.map +0 -0
- package/types/graphql/resolvers/role.resolvers.d.ts +0 -0
- package/types/graphql/resolvers/role.resolvers.d.ts.map +0 -0
- package/types/graphql/resolvers/tenant.resolvers.d.ts +0 -0
- package/types/graphql/resolvers/tenant.resolvers.d.ts.map +0 -0
- package/types/graphql/resolvers/user-api-key.resolvers.d.ts +0 -0
- package/types/graphql/resolvers/user-api-key.resolvers.d.ts.map +0 -0
- package/types/graphql/resolvers/user.resolvers.d.ts +0 -0
- package/types/graphql/resolvers/user.resolvers.d.ts.map +0 -0
- package/types/index.d.ts +0 -0
- package/types/index.d.ts.map +0 -0
- package/types/interfaces/IRbac.d.ts +16 -0
- package/types/interfaces/IRbac.d.ts.map +1 -0
- package/types/interfaces/IRoleRepository.d.ts +0 -0
- package/types/interfaces/IRoleRepository.d.ts.map +0 -0
- package/types/interfaces/ITenantRepository.d.ts +0 -0
- package/types/interfaces/ITenantRepository.d.ts.map +0 -0
- package/types/interfaces/IUserApiKeyRepository.d.ts +0 -0
- package/types/interfaces/IUserApiKeyRepository.d.ts.map +0 -0
- package/types/interfaces/IUserRepository.d.ts +0 -0
- package/types/interfaces/IUserRepository.d.ts.map +0 -0
- package/types/middleware/apiKeyMiddleware.d.ts +0 -0
- package/types/middleware/apiKeyMiddleware.d.ts.map +0 -0
- package/types/middleware/jwtMiddleware.d.ts +0 -0
- package/types/middleware/jwtMiddleware.d.ts.map +0 -0
- package/types/middleware/rbacMiddleware.d.ts +0 -0
- package/types/middleware/rbacMiddleware.d.ts.map +0 -0
- package/types/models/RoleModel.d.ts +0 -0
- package/types/models/RoleModel.d.ts.map +0 -0
- package/types/models/TenantModel.d.ts +0 -0
- package/types/models/TenantModel.d.ts.map +0 -0
- package/types/models/UserApiKeyModel.d.ts +0 -0
- package/types/models/UserApiKeyModel.d.ts.map +0 -0
- package/types/models/UserGroupModel.d.ts +0 -0
- package/types/models/UserGroupModel.d.ts.map +0 -0
- package/types/models/UserModel.d.ts +0 -0
- package/types/models/UserModel.d.ts.map +0 -0
- package/types/permissions/IdentityPermissions.d.ts +0 -0
- package/types/permissions/IdentityPermissions.d.ts.map +0 -0
- package/types/permissions/RolePermissions.d.ts +0 -0
- package/types/permissions/RolePermissions.d.ts.map +0 -0
- package/types/permissions/TenantPermissions.d.ts +0 -0
- package/types/permissions/TenantPermissions.d.ts.map +0 -0
- package/types/permissions/UserApiKeyPermissions.d.ts +0 -0
- package/types/permissions/UserApiKeyPermissions.d.ts.map +0 -0
- package/types/permissions/UserPermissions.d.ts +0 -0
- package/types/permissions/UserPermissions.d.ts.map +0 -0
- package/types/permissions/index.d.ts +0 -0
- package/types/permissions/index.d.ts.map +0 -0
- package/types/rbac/Rbac.d.ts +0 -0
- package/types/rbac/Rbac.d.ts.map +0 -0
- package/types/repository/mongo/RoleMongoRepository.d.ts +0 -0
- package/types/repository/mongo/RoleMongoRepository.d.ts.map +0 -0
- package/types/repository/mongo/TenantMongoRepository.d.ts +0 -0
- package/types/repository/mongo/TenantMongoRepository.d.ts.map +0 -0
- package/types/repository/mongo/UserApiKeyMongoRepository.d.ts +0 -0
- package/types/repository/mongo/UserApiKeyMongoRepository.d.ts.map +0 -0
- package/types/repository/mongo/UserMongoRepository.d.ts +0 -0
- package/types/repository/mongo/UserMongoRepository.d.ts.map +0 -0
- package/types/repository/sqlite/RoleSqliteRepository.d.ts +0 -0
- package/types/repository/sqlite/RoleSqliteRepository.d.ts.map +0 -0
- package/types/repository/sqlite/TenantSqliteRepository.d.ts +0 -0
- package/types/repository/sqlite/TenantSqliteRepository.d.ts.map +0 -0
- package/types/repository/sqlite/UserApiKeySqliteRepository.d.ts +0 -0
- package/types/repository/sqlite/UserApiKeySqliteRepository.d.ts.map +0 -0
- package/types/repository/sqlite/UserSqliteRepository.d.ts +0 -0
- package/types/repository/sqlite/UserSqliteRepository.d.ts.map +0 -0
- package/types/routes/RoleRoutes.d.ts +0 -0
- package/types/routes/RoleRoutes.d.ts.map +0 -0
- package/types/routes/TenantRoutes.d.ts +0 -0
- package/types/routes/TenantRoutes.d.ts.map +0 -0
- package/types/routes/UserApiKeyRoutes.d.ts +0 -0
- package/types/routes/UserApiKeyRoutes.d.ts.map +0 -0
- package/types/routes/UserAvatarRoutes.d.ts +4 -0
- package/types/routes/UserAvatarRoutes.d.ts.map +1 -0
- package/types/routes/UserRoutes.d.ts +0 -0
- package/types/routes/UserRoutes.d.ts.map +0 -0
- package/types/schemas/RegisterSchema.d.ts +4 -4
- package/types/schemas/RoleSchema.d.ts +6 -6
- package/types/schemas/TenantSchema.d.ts +4 -4
- package/types/schemas/UserApiKeySchema.d.ts +4 -4
- package/types/schemas/UserSchema.d.ts +21 -21
- package/types/services/PermissionService.d.ts +0 -0
- package/types/services/PermissionService.d.ts.map +0 -0
- package/types/services/RoleService.d.ts +0 -0
- package/types/services/RoleService.d.ts.map +0 -0
- package/types/services/TenantService.d.ts +0 -0
- package/types/services/TenantService.d.ts.map +0 -0
- package/types/services/UserApiKeyService.d.ts +0 -0
- package/types/services/UserApiKeyService.d.ts.map +0 -0
- package/types/services/UserService.d.ts +0 -0
- package/types/services/UserService.d.ts.map +0 -0
- package/types/setup/CreateOrUpdateRole.d.ts +0 -0
- package/types/setup/CreateOrUpdateRole.d.ts.map +0 -0
- package/types/setup/CreateUserIfNotExist.d.ts +0 -0
- package/types/setup/CreateUserIfNotExist.d.ts.map +0 -0
- package/types/setup/LoadIdentityConfigFromEnv.d.ts +0 -0
- package/types/setup/LoadIdentityConfigFromEnv.d.ts.map +0 -0
- package/types/setup/LoadPermissions.d.ts +0 -0
- package/types/setup/LoadPermissions.d.ts.map +0 -0
- package/types/setup/RecoveryUserPassword.d.ts +0 -0
- package/types/setup/RecoveryUserPassword.d.ts.map +0 -0
- package/types/utils/AuthUtils.d.ts +0 -0
- package/types/utils/AuthUtils.d.ts.map +0 -0
- package/types/zod/EndpointZod.d.ts +20 -0
- package/types/zod/EndpointZod.d.ts.map +1 -0
- package/types/zod/RoleZod.d.ts +10 -0
- package/types/zod/RoleZod.d.ts.map +1 -0
- package/types/zod/TenantSchema.d.ts +26 -0
- package/types/zod/TenantSchema.d.ts.map +1 -0
- package/types/zod/TenantZod.d.ts +20 -0
- package/types/zod/TenantZod.d.ts.map +1 -0
- package/types/zod/UserApiKeyZod.d.ts +36 -0
- package/types/zod/UserApiKeyZod.d.ts.map +1 -0
- package/types/zod/UserZod.d.ts +53 -0
- package/types/zod/UserZod.d.ts.map +1 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import UserApiKeyService from "../services/UserApiKeyService.js";
|
|
2
2
|
declare const UserApiKeyServiceFactory: (verbose?: boolean) => UserApiKeyService;
|
|
3
3
|
export default UserApiKeyServiceFactory;
|
|
4
|
-
//# sourceMappingURL=
|
|
4
|
+
//# sourceMappingURL=UserRegistryServiceFactory.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserRegistryServiceFactory.d.ts","sourceRoot":"","sources":["../../src/factory/UserRegistryServiceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AAQrE,QAAA,MAAM,0BAA0B,aAAa,OAAO,KAAW,mBAmB9D,CAAA;AAED,eAAe,0BAA0B,CAAA"}
|
|
File without changes
|
|
File without changes
|
package/types/graphql/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/index.d.ts
CHANGED
|
File without changes
|
package/types/index.d.ts.map
CHANGED
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IJwtUser, IRole } from "@drax/identity-share";
|
|
2
|
+
interface IRbac {
|
|
3
|
+
readonly getRole: IRole;
|
|
4
|
+
readonly getAuthUser: IJwtUser;
|
|
5
|
+
readonly userId: string;
|
|
6
|
+
readonly tenantId: string | undefined;
|
|
7
|
+
hasPermission(requiredPermission: string): boolean;
|
|
8
|
+
assertPermission(requiredPermission: string): void;
|
|
9
|
+
assertOrPermissions(requiredPermissions: string[]): boolean;
|
|
10
|
+
assertAuthenticated(): void;
|
|
11
|
+
assertUserId(userId: string): void;
|
|
12
|
+
assertTenantId(tenantId: string): void;
|
|
13
|
+
}
|
|
14
|
+
export default IRbac;
|
|
15
|
+
export { IRbac };
|
|
16
|
+
//# sourceMappingURL=IRbac.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRbac.d.ts","sourceRoot":"","sources":["../../src/interfaces/IRbac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEvD,UAAU,KAAK;IACX,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAEtC,aAAa,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC;IACnD,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnD,mBAAmB,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC5D,mBAAmB,IAAI,IAAI,CAAC;IAC5B,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1C;AAED,eAAe,KAAK,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/rbac/Rbac.d.ts
CHANGED
|
File without changes
|
package/types/rbac/Rbac.d.ts.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserAvatarRoutes.d.ts","sourceRoot":"","sources":["../../src/routes/UserAvatarRoutes.ts"],"names":[],"mappings":"AAUA,iBAAe,gBAAgB,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA,iBAoE/C;AAED,eAAe,gBAAgB,CAAC;AAChC,OAAO,EAAC,gBAAgB,EAAC,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
@@ -6,17 +6,17 @@ declare const RegisterBodyRequestSchema: z.ZodObject<{
|
|
|
6
6
|
phone: z.ZodOptional<z.ZodString>;
|
|
7
7
|
password: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name?: string;
|
|
9
10
|
username?: string;
|
|
10
11
|
email?: string;
|
|
11
|
-
password?: string;
|
|
12
|
-
name?: string;
|
|
13
12
|
phone?: string;
|
|
13
|
+
password?: string;
|
|
14
14
|
}, {
|
|
15
|
+
name?: string;
|
|
15
16
|
username?: string;
|
|
16
17
|
email?: string;
|
|
17
|
-
password?: string;
|
|
18
|
-
name?: string;
|
|
19
18
|
phone?: string;
|
|
19
|
+
password?: string;
|
|
20
20
|
}>;
|
|
21
21
|
declare const RegisterBodyResponseSchema: z.ZodObject<{
|
|
22
22
|
success: z.ZodBoolean;
|
|
@@ -25,40 +25,40 @@ declare const RoleSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
25
25
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
26
|
name: import("zod").ZodString;
|
|
27
27
|
}, "strip", import("zod").ZodTypeAny, {
|
|
28
|
+
name?: string;
|
|
28
29
|
_id?: string;
|
|
29
30
|
id?: string;
|
|
30
|
-
name?: string;
|
|
31
31
|
}, {
|
|
32
|
+
name?: string;
|
|
32
33
|
_id?: string;
|
|
33
34
|
id?: string;
|
|
34
|
-
name?: string;
|
|
35
35
|
}>, "many">>;
|
|
36
36
|
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
37
37
|
updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
38
38
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
39
|
+
name?: string;
|
|
39
40
|
_id?: string;
|
|
40
41
|
id?: string;
|
|
41
|
-
name?: string;
|
|
42
42
|
createdAt?: Date;
|
|
43
43
|
updatedAt?: Date;
|
|
44
44
|
permissions?: string[];
|
|
45
45
|
childRoles?: {
|
|
46
|
+
name?: string;
|
|
46
47
|
_id?: string;
|
|
47
48
|
id?: string;
|
|
48
|
-
name?: string;
|
|
49
49
|
}[];
|
|
50
50
|
readonly?: boolean;
|
|
51
51
|
}, {
|
|
52
|
+
name?: string;
|
|
52
53
|
_id?: string;
|
|
53
54
|
id?: string;
|
|
54
|
-
name?: string;
|
|
55
55
|
createdAt?: Date;
|
|
56
56
|
updatedAt?: Date;
|
|
57
57
|
permissions?: string[];
|
|
58
58
|
childRoles?: {
|
|
59
|
+
name?: string;
|
|
59
60
|
_id?: string;
|
|
60
61
|
id?: string;
|
|
61
|
-
name?: string;
|
|
62
62
|
}[];
|
|
63
63
|
readonly?: boolean;
|
|
64
64
|
}>;
|
|
@@ -14,19 +14,19 @@ declare const TenantSchema: import("zod").ZodObject<import("zod").objectUtil.ext
|
|
|
14
14
|
createdAt: import("zod").ZodDate;
|
|
15
15
|
updatedAt: import("zod").ZodDate;
|
|
16
16
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
17
|
+
name?: string;
|
|
17
18
|
_id?: string;
|
|
18
19
|
id?: string;
|
|
19
|
-
|
|
20
|
+
custom?: Record<string, any>;
|
|
20
21
|
createdAt?: Date;
|
|
21
22
|
updatedAt?: Date;
|
|
22
|
-
custom?: Record<string, any>;
|
|
23
23
|
}, {
|
|
24
|
+
name?: string;
|
|
24
25
|
_id?: string;
|
|
25
26
|
id?: string;
|
|
26
|
-
|
|
27
|
+
custom?: Record<string, any>;
|
|
27
28
|
createdAt?: Date;
|
|
28
29
|
updatedAt?: Date;
|
|
29
|
-
custom?: Record<string, any>;
|
|
30
30
|
}>;
|
|
31
31
|
export { TenantSchema, TenantBaseSchema };
|
|
32
32
|
//# sourceMappingURL=TenantSchema.d.ts.map
|
|
@@ -20,18 +20,18 @@ declare const UserApiKeySchema: import("zod").ZodObject<import("zod").objectUtil
|
|
|
20
20
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
21
|
createdBy: import("zod").ZodString;
|
|
22
22
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
23
|
-
_id?: string;
|
|
24
|
-
id?: string;
|
|
25
23
|
name?: string;
|
|
26
24
|
ipv4?: string[];
|
|
27
25
|
ipv6?: string[];
|
|
28
|
-
createdBy?: string;
|
|
29
|
-
}, {
|
|
30
26
|
_id?: string;
|
|
31
27
|
id?: string;
|
|
28
|
+
createdBy?: string;
|
|
29
|
+
}, {
|
|
32
30
|
name?: string;
|
|
33
31
|
ipv4?: string[];
|
|
34
32
|
ipv6?: string[];
|
|
33
|
+
_id?: string;
|
|
34
|
+
id?: string;
|
|
35
35
|
createdBy?: string;
|
|
36
36
|
}>;
|
|
37
37
|
export default UserApiKeyBaseSchema;
|
|
@@ -11,17 +11,17 @@ declare const UserBaseSchema: import("zod").ZodObject<{
|
|
|
11
11
|
username?: string;
|
|
12
12
|
email?: string;
|
|
13
13
|
phone?: string;
|
|
14
|
-
active?: boolean;
|
|
15
14
|
role?: string;
|
|
16
15
|
tenant?: string;
|
|
16
|
+
active?: boolean;
|
|
17
17
|
}, {
|
|
18
18
|
name?: string;
|
|
19
19
|
username?: string;
|
|
20
20
|
email?: string;
|
|
21
21
|
phone?: string;
|
|
22
|
-
active?: boolean;
|
|
23
22
|
role?: string;
|
|
24
23
|
tenant?: string;
|
|
24
|
+
active?: boolean;
|
|
25
25
|
}>;
|
|
26
26
|
declare const UserCreateSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
27
27
|
name: import("zod").ZodString;
|
|
@@ -38,19 +38,19 @@ declare const UserCreateSchema: import("zod").ZodObject<import("zod").objectUtil
|
|
|
38
38
|
username?: string;
|
|
39
39
|
email?: string;
|
|
40
40
|
phone?: string;
|
|
41
|
-
active?: boolean;
|
|
42
41
|
role?: string;
|
|
43
42
|
tenant?: string;
|
|
44
43
|
password?: string;
|
|
44
|
+
active?: boolean;
|
|
45
45
|
}, {
|
|
46
46
|
name?: string;
|
|
47
47
|
username?: string;
|
|
48
48
|
email?: string;
|
|
49
49
|
phone?: string;
|
|
50
|
-
active?: boolean;
|
|
51
50
|
role?: string;
|
|
52
51
|
tenant?: string;
|
|
53
52
|
password?: string;
|
|
53
|
+
active?: boolean;
|
|
54
54
|
}>;
|
|
55
55
|
declare const UserUpdateSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
56
56
|
name: import("zod").ZodString;
|
|
@@ -65,17 +65,17 @@ declare const UserUpdateSchema: import("zod").ZodObject<import("zod").objectUtil
|
|
|
65
65
|
username?: string;
|
|
66
66
|
email?: string;
|
|
67
67
|
phone?: string;
|
|
68
|
-
active?: boolean;
|
|
69
68
|
role?: string;
|
|
70
69
|
tenant?: string;
|
|
70
|
+
active?: boolean;
|
|
71
71
|
}, {
|
|
72
72
|
name?: string;
|
|
73
73
|
username?: string;
|
|
74
74
|
email?: string;
|
|
75
75
|
phone?: string;
|
|
76
|
-
active?: boolean;
|
|
77
76
|
role?: string;
|
|
78
77
|
tenant?: string;
|
|
78
|
+
active?: boolean;
|
|
79
79
|
}>;
|
|
80
80
|
declare const UserSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
81
81
|
name: import("zod").ZodString;
|
|
@@ -104,22 +104,22 @@ declare const UserSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
104
104
|
}>, "many">>;
|
|
105
105
|
}, "strip", import("zod").ZodTypeAny, {
|
|
106
106
|
name?: string;
|
|
107
|
-
_id?: string;
|
|
108
|
-
id?: string;
|
|
109
|
-
permissions?: string[];
|
|
110
107
|
childRoles?: {
|
|
111
108
|
name?: string;
|
|
112
109
|
_id?: string;
|
|
113
110
|
}[];
|
|
114
|
-
}, {
|
|
115
|
-
name?: string;
|
|
116
111
|
_id?: string;
|
|
117
112
|
id?: string;
|
|
118
113
|
permissions?: string[];
|
|
114
|
+
}, {
|
|
115
|
+
name?: string;
|
|
119
116
|
childRoles?: {
|
|
120
117
|
name?: string;
|
|
121
118
|
_id?: string;
|
|
122
119
|
}[];
|
|
120
|
+
_id?: string;
|
|
121
|
+
id?: string;
|
|
122
|
+
permissions?: string[];
|
|
123
123
|
}>>;
|
|
124
124
|
active: import("zod").ZodBoolean;
|
|
125
125
|
tenant: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
@@ -145,16 +145,15 @@ declare const UserSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
145
145
|
username?: string;
|
|
146
146
|
email?: string;
|
|
147
147
|
phone?: string;
|
|
148
|
-
active?: boolean;
|
|
149
148
|
role?: {
|
|
150
149
|
name?: string;
|
|
151
|
-
_id?: string;
|
|
152
|
-
id?: string;
|
|
153
|
-
permissions?: string[];
|
|
154
150
|
childRoles?: {
|
|
155
151
|
name?: string;
|
|
156
152
|
_id?: string;
|
|
157
153
|
}[];
|
|
154
|
+
_id?: string;
|
|
155
|
+
id?: string;
|
|
156
|
+
permissions?: string[];
|
|
158
157
|
};
|
|
159
158
|
tenant?: {
|
|
160
159
|
name?: string;
|
|
@@ -163,23 +162,23 @@ declare const UserSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
163
162
|
custom?: Record<string, any>;
|
|
164
163
|
};
|
|
165
164
|
_id?: string;
|
|
166
|
-
|
|
165
|
+
active?: boolean;
|
|
167
166
|
avatar?: string;
|
|
167
|
+
createdAt?: Date;
|
|
168
168
|
}, {
|
|
169
169
|
name?: string;
|
|
170
170
|
username?: string;
|
|
171
171
|
email?: string;
|
|
172
172
|
phone?: string;
|
|
173
|
-
active?: boolean;
|
|
174
173
|
role?: {
|
|
175
174
|
name?: string;
|
|
176
|
-
_id?: string;
|
|
177
|
-
id?: string;
|
|
178
|
-
permissions?: string[];
|
|
179
175
|
childRoles?: {
|
|
180
176
|
name?: string;
|
|
181
177
|
_id?: string;
|
|
182
178
|
}[];
|
|
179
|
+
_id?: string;
|
|
180
|
+
id?: string;
|
|
181
|
+
permissions?: string[];
|
|
183
182
|
};
|
|
184
183
|
tenant?: {
|
|
185
184
|
name?: string;
|
|
@@ -188,8 +187,9 @@ declare const UserSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
188
187
|
custom?: Record<string, any>;
|
|
189
188
|
};
|
|
190
189
|
_id?: string;
|
|
191
|
-
|
|
190
|
+
active?: boolean;
|
|
192
191
|
avatar?: string;
|
|
192
|
+
createdAt?: Date;
|
|
193
193
|
}>;
|
|
194
194
|
export { UserBaseSchema, UserSchema, UserCreateSchema, UserUpdateSchema, };
|
|
195
195
|
//# sourceMappingURL=UserSchema.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
declare const loginBodyRequestSchema: z.ZodObject<{
|
|
3
|
+
username: z.ZodString;
|
|
4
|
+
password: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
username?: string;
|
|
7
|
+
password?: string;
|
|
8
|
+
}, {
|
|
9
|
+
username?: string;
|
|
10
|
+
password?: string;
|
|
11
|
+
}>;
|
|
12
|
+
declare const loginBodyResponseSchema: z.ZodObject<{
|
|
13
|
+
accessToken: z.ZodString;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
accessToken?: string;
|
|
16
|
+
}, {
|
|
17
|
+
accessToken?: string;
|
|
18
|
+
}>;
|
|
19
|
+
export { loginBodyRequestSchema, loginBodyResponseSchema };
|
|
20
|
+
//# sourceMappingURL=EndpointZod.d.ts.map
|