evo360-types 1.3.163 → 1.3.165
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/apps/evo-core/zod-schemas.d.ts +3 -0
- package/dist/apps/evo-core/zod-schemas.js +1 -0
- package/dist/apps/evo-core/zod-schemas.ts +1 -0
- package/dist/types/evo-core/rbac/index.d.ts +7 -6
- package/dist/types/evo-core/rbac/index.js +4 -4
- package/dist/types/evo-core/rbac/index.ts +10 -6
- package/package.json +1 -1
|
@@ -37,6 +37,7 @@ export declare const zTenantUserSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
37
37
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
38
38
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
39
39
|
}, {
|
|
40
|
+
display_name: z.ZodString;
|
|
40
41
|
status: z.ZodEnum<["active", "invited", "disabled", "removed"]>;
|
|
41
42
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
42
43
|
perms: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
@@ -49,6 +50,7 @@ export declare const zTenantUserSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
49
50
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
50
51
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
51
52
|
}, {
|
|
53
|
+
display_name: z.ZodString;
|
|
52
54
|
status: z.ZodEnum<["active", "invited", "disabled", "removed"]>;
|
|
53
55
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
54
56
|
perms: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
@@ -61,6 +63,7 @@ export declare const zTenantUserSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
61
63
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
62
64
|
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
63
65
|
}, {
|
|
66
|
+
display_name: z.ZodString;
|
|
64
67
|
status: z.ZodEnum<["active", "invited", "disabled", "removed"]>;
|
|
65
68
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
66
69
|
perms: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
@@ -36,6 +36,7 @@ exports.zUserTenantIndexStatusSchema = zod_1.z.enum([
|
|
|
36
36
|
*/
|
|
37
37
|
exports.zTenantUserSchema = zod_schemas_1.zFireDocSchema
|
|
38
38
|
.extend({
|
|
39
|
+
display_name: zod_1.z.string(),
|
|
39
40
|
status: exports.zTenantUserStatusSchema,
|
|
40
41
|
roles: zod_1.z.array(zod_1.z.string()),
|
|
41
42
|
perms: zod_1.z.record(zod_1.z.boolean()),
|
|
@@ -14,31 +14,31 @@ export type CoreRbacPermissions = (typeof CoreRbacPermissions)[keyof typeof Core
|
|
|
14
14
|
* - 'deny': does not grant (can be overridden by another role with 'allow')
|
|
15
15
|
* - 'forbid': explicitly denies and overrides any 'allow'
|
|
16
16
|
*/
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const RbacPermValueEnum: {
|
|
18
18
|
readonly Allow: "allow";
|
|
19
19
|
readonly Deny: "deny";
|
|
20
20
|
readonly Forbid: "forbid";
|
|
21
21
|
};
|
|
22
|
-
export type RbacPermValue =
|
|
22
|
+
export type RbacPermValue = (typeof RbacPermValueEnum)[keyof typeof RbacPermValueEnum];
|
|
23
23
|
/**
|
|
24
24
|
* Membership status for a user in a tenant.
|
|
25
25
|
*/
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const TenantUserStatusEnum: {
|
|
27
27
|
readonly Active: "active";
|
|
28
28
|
readonly Invited: "invited";
|
|
29
29
|
readonly Disabled: "disabled";
|
|
30
30
|
readonly Removed: "removed";
|
|
31
31
|
};
|
|
32
|
-
export type TenantUserStatus =
|
|
32
|
+
export type TenantUserStatus = (typeof TenantUserStatusEnum)[keyof typeof TenantUserStatusEnum];
|
|
33
33
|
/**
|
|
34
34
|
* Status for user tenant index (simplified, no 'removed').
|
|
35
35
|
*/
|
|
36
|
-
export declare const
|
|
36
|
+
export declare const UserTenantIndexStatusEnum: {
|
|
37
37
|
readonly Active: "active";
|
|
38
38
|
readonly Invited: "invited";
|
|
39
39
|
readonly Disabled: "disabled";
|
|
40
40
|
};
|
|
41
|
-
export type UserTenantIndexStatus =
|
|
41
|
+
export type UserTenantIndexStatus = (typeof UserTenantIndexStatusEnum)[keyof typeof UserTenantIndexStatusEnum];
|
|
42
42
|
/**
|
|
43
43
|
* Membership document representing a user's access to a tenant.
|
|
44
44
|
* This is the PRIMARY authorization document for the system.
|
|
@@ -46,6 +46,7 @@ export type UserTenantIndexStatus = "active" | "invited" | "disabled";
|
|
|
46
46
|
* Path: /tenants/{tenant}/users/{userId}
|
|
47
47
|
*/
|
|
48
48
|
export interface ITenantUser extends IFireDoc {
|
|
49
|
+
display_name: string;
|
|
49
50
|
status: TenantUserStatus;
|
|
50
51
|
/**
|
|
51
52
|
* Array of role IDs assigned to the user in this tenant.
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.UserTenantIndexStatusEnum = exports.TenantUserStatusEnum = exports.RbacPermValueEnum = exports.CoreRbacPermissions = void 0;
|
|
18
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
19
|
// Permissões para o core rbac
|
|
20
20
|
exports.CoreRbacPermissions = {
|
|
@@ -31,7 +31,7 @@ exports.CoreRbacPermissions = {
|
|
|
31
31
|
* - 'deny': does not grant (can be overridden by another role with 'allow')
|
|
32
32
|
* - 'forbid': explicitly denies and overrides any 'allow'
|
|
33
33
|
*/
|
|
34
|
-
exports.
|
|
34
|
+
exports.RbacPermValueEnum = {
|
|
35
35
|
Allow: "allow",
|
|
36
36
|
Deny: "deny",
|
|
37
37
|
Forbid: "forbid",
|
|
@@ -39,7 +39,7 @@ exports.RbacPermValue = {
|
|
|
39
39
|
/**
|
|
40
40
|
* Membership status for a user in a tenant.
|
|
41
41
|
*/
|
|
42
|
-
exports.
|
|
42
|
+
exports.TenantUserStatusEnum = {
|
|
43
43
|
Active: "active",
|
|
44
44
|
Invited: "invited",
|
|
45
45
|
Disabled: "disabled",
|
|
@@ -48,7 +48,7 @@ exports.TenantUserStatus = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Status for user tenant index (simplified, no 'removed').
|
|
50
50
|
*/
|
|
51
|
-
exports.
|
|
51
|
+
exports.UserTenantIndexStatusEnum = {
|
|
52
52
|
Active: "active",
|
|
53
53
|
Invited: "invited",
|
|
54
54
|
Disabled: "disabled",
|
|
@@ -21,33 +21,36 @@ export type CoreRbacPermissions =
|
|
|
21
21
|
* - 'deny': does not grant (can be overridden by another role with 'allow')
|
|
22
22
|
* - 'forbid': explicitly denies and overrides any 'allow'
|
|
23
23
|
*/
|
|
24
|
-
export const
|
|
24
|
+
export const RbacPermValueEnum = {
|
|
25
25
|
Allow: "allow",
|
|
26
26
|
Deny: "deny",
|
|
27
27
|
Forbid: "forbid",
|
|
28
28
|
} as const;
|
|
29
|
-
export type RbacPermValue =
|
|
29
|
+
export type RbacPermValue =
|
|
30
|
+
(typeof RbacPermValueEnum)[keyof typeof RbacPermValueEnum];
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* Membership status for a user in a tenant.
|
|
33
34
|
*/
|
|
34
|
-
export const
|
|
35
|
+
export const TenantUserStatusEnum = {
|
|
35
36
|
Active: "active",
|
|
36
37
|
Invited: "invited",
|
|
37
38
|
Disabled: "disabled",
|
|
38
39
|
Removed: "removed",
|
|
39
40
|
} as const;
|
|
40
|
-
export type TenantUserStatus =
|
|
41
|
+
export type TenantUserStatus =
|
|
42
|
+
(typeof TenantUserStatusEnum)[keyof typeof TenantUserStatusEnum];
|
|
41
43
|
|
|
42
44
|
/**
|
|
43
45
|
* Status for user tenant index (simplified, no 'removed').
|
|
44
46
|
*/
|
|
45
|
-
export const
|
|
47
|
+
export const UserTenantIndexStatusEnum = {
|
|
46
48
|
Active: "active",
|
|
47
49
|
Invited: "invited",
|
|
48
50
|
Disabled: "disabled",
|
|
49
51
|
} as const;
|
|
50
|
-
export type UserTenantIndexStatus =
|
|
52
|
+
export type UserTenantIndexStatus =
|
|
53
|
+
(typeof UserTenantIndexStatusEnum)[keyof typeof UserTenantIndexStatusEnum];
|
|
51
54
|
|
|
52
55
|
// ----- Tenant User Membership (AUTORIZAÇÃO PRINCIPAL)
|
|
53
56
|
// Path: /tenants/{tenant}/users/{userId}
|
|
@@ -59,6 +62,7 @@ export type UserTenantIndexStatus = "active" | "invited" | "disabled";
|
|
|
59
62
|
* Path: /tenants/{tenant}/users/{userId}
|
|
60
63
|
*/
|
|
61
64
|
export interface ITenantUser extends IFireDoc {
|
|
65
|
+
display_name: string;
|
|
62
66
|
status: TenantUserStatus;
|
|
63
67
|
// tenant field from IFireDoc represents the tenant
|
|
64
68
|
|