evo360-types 1.3.162 → 1.3.163

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.
@@ -14,14 +14,30 @@ 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 RbacPermValue: {
18
+ readonly Allow: "allow";
19
+ readonly Deny: "deny";
20
+ readonly Forbid: "forbid";
21
+ };
17
22
  export type RbacPermValue = "allow" | "deny" | "forbid";
18
23
  /**
19
24
  * Membership status for a user in a tenant.
20
25
  */
26
+ export declare const TenantUserStatus: {
27
+ readonly Active: "active";
28
+ readonly Invited: "invited";
29
+ readonly Disabled: "disabled";
30
+ readonly Removed: "removed";
31
+ };
21
32
  export type TenantUserStatus = "active" | "invited" | "disabled" | "removed";
22
33
  /**
23
34
  * Status for user tenant index (simplified, no 'removed').
24
35
  */
36
+ export declare const UserTenantIndexStatus: {
37
+ readonly Active: "active";
38
+ readonly Invited: "invited";
39
+ readonly Disabled: "disabled";
40
+ };
25
41
  export type UserTenantIndexStatus = "active" | "invited" | "disabled";
26
42
  /**
27
43
  * Membership document representing a user's access to a 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.CoreRbacPermissions = void 0;
17
+ exports.UserTenantIndexStatus = exports.TenantUserStatus = exports.RbacPermValue = exports.CoreRbacPermissions = void 0;
18
18
  __exportStar(require("./fb_collections"), exports);
19
19
  // Permissões para o core rbac
20
20
  exports.CoreRbacPermissions = {
@@ -24,3 +24,32 @@ exports.CoreRbacPermissions = {
24
24
  Update: "core_rbac_write",
25
25
  Delete: "core_rbac_write",
26
26
  };
27
+ // ----- RBAC Types
28
+ /**
29
+ * Tri-state permission value for role definitions.
30
+ * - 'allow': grants the permission
31
+ * - 'deny': does not grant (can be overridden by another role with 'allow')
32
+ * - 'forbid': explicitly denies and overrides any 'allow'
33
+ */
34
+ exports.RbacPermValue = {
35
+ Allow: "allow",
36
+ Deny: "deny",
37
+ Forbid: "forbid",
38
+ };
39
+ /**
40
+ * Membership status for a user in a tenant.
41
+ */
42
+ exports.TenantUserStatus = {
43
+ Active: "active",
44
+ Invited: "invited",
45
+ Disabled: "disabled",
46
+ Removed: "removed",
47
+ };
48
+ /**
49
+ * Status for user tenant index (simplified, no 'removed').
50
+ */
51
+ exports.UserTenantIndexStatus = {
52
+ Active: "active",
53
+ Invited: "invited",
54
+ Disabled: "disabled",
55
+ };
@@ -21,16 +21,32 @@ 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 RbacPermValue = {
25
+ Allow: "allow",
26
+ Deny: "deny",
27
+ Forbid: "forbid",
28
+ } as const;
24
29
  export type RbacPermValue = "allow" | "deny" | "forbid";
25
30
 
26
31
  /**
27
32
  * Membership status for a user in a tenant.
28
33
  */
34
+ export const TenantUserStatus = {
35
+ Active: "active",
36
+ Invited: "invited",
37
+ Disabled: "disabled",
38
+ Removed: "removed",
39
+ } as const;
29
40
  export type TenantUserStatus = "active" | "invited" | "disabled" | "removed";
30
41
 
31
42
  /**
32
43
  * Status for user tenant index (simplified, no 'removed').
33
44
  */
45
+ export const UserTenantIndexStatus = {
46
+ Active: "active",
47
+ Invited: "invited",
48
+ Disabled: "disabled",
49
+ } as const;
34
50
  export type UserTenantIndexStatus = "active" | "invited" | "disabled";
35
51
 
36
52
  // ----- Tenant User Membership (AUTORIZAÇÃO PRINCIPAL)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.162",
3
+ "version": "1.3.163",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",