@elevasis/ui 2.21.0 → 2.22.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.
Files changed (81) hide show
  1. package/dist/app/index.js +2 -2
  2. package/dist/{chunk-DMYELNGA.js → chunk-3HEUGBOT.js} +1 -1
  3. package/dist/{chunk-KVW56ERD.js → chunk-AXXTN44Z.js} +5 -3
  4. package/dist/{chunk-7GG6OSD7.js → chunk-B4FHWKEF.js} +3354 -2918
  5. package/dist/{chunk-XLZZOFGM.js → chunk-BSZRKBAW.js} +275 -76
  6. package/dist/{chunk-CZK67OHH.js → chunk-COG4ABRI.js} +3 -3
  7. package/dist/{chunk-S7RL77QS.js → chunk-DDZOHLHB.js} +1 -1
  8. package/dist/{chunk-I5WRKH25.js → chunk-GJ7EIABJ.js} +1 -1
  9. package/dist/{chunk-LQU62KHD.js → chunk-IBUYJXA3.js} +1209 -705
  10. package/dist/{chunk-EDX6WIN3.js → chunk-IOTLB6ND.js} +3 -3
  11. package/dist/{chunk-GBMNCNHX.js → chunk-KVJ3LFH2.js} +3 -1
  12. package/dist/{chunk-VQESMHQV.js → chunk-LJWV4TWV.js} +1 -2
  13. package/dist/{chunk-EGKNRM6P.js → chunk-LKVBEE63.js} +2 -2
  14. package/dist/{chunk-BJWIKEQG.js → chunk-LVJGPE6H.js} +6 -14
  15. package/dist/{chunk-TIIPYB2Z.js → chunk-QZJM3RYI.js} +1 -1
  16. package/dist/{chunk-7YQKVWSD.js → chunk-SQ5JGELM.js} +25 -5
  17. package/dist/{chunk-RX4UWZZR.js → chunk-TKAYX2SP.js} +8 -3
  18. package/dist/{chunk-ATEHYDL3.js → chunk-WWJ6S2HQ.js} +6 -2
  19. package/dist/{chunk-Q5HC6ENG.js → chunk-XOTJNW4Q.js} +1 -1
  20. package/dist/{chunk-ULZ2B3NC.js → chunk-ZBCTB5CA.js} +1 -1
  21. package/dist/components/index.css +85 -85
  22. package/dist/components/index.d.ts +1646 -1381
  23. package/dist/components/index.js +236 -30
  24. package/dist/components/navigation/index.css +589 -0
  25. package/dist/components/navigation/index.js +3 -3
  26. package/dist/features/auth/index.css +2 -2
  27. package/dist/features/auth/index.d.ts +184 -3
  28. package/dist/features/crm/index.css +2 -2
  29. package/dist/features/crm/index.d.ts +189 -3
  30. package/dist/features/crm/index.js +10 -10
  31. package/dist/features/dashboard/index.css +2 -2
  32. package/dist/features/dashboard/index.js +9 -9
  33. package/dist/features/delivery/index.css +85 -85
  34. package/dist/features/delivery/index.d.ts +189 -3
  35. package/dist/features/delivery/index.js +10 -10
  36. package/dist/features/lead-gen/index.css +2 -2
  37. package/dist/features/lead-gen/index.d.ts +5 -0
  38. package/dist/features/lead-gen/index.js +10 -10
  39. package/dist/features/monitoring/index.css +85 -85
  40. package/dist/features/monitoring/index.d.ts +6 -1
  41. package/dist/features/monitoring/index.js +11 -11
  42. package/dist/features/monitoring/requests/index.css +2 -2
  43. package/dist/features/monitoring/requests/index.d.ts +5 -0
  44. package/dist/features/monitoring/requests/index.js +9 -9
  45. package/dist/features/operations/index.css +2 -2
  46. package/dist/features/operations/index.d.ts +7 -4
  47. package/dist/features/operations/index.js +12 -12
  48. package/dist/features/seo/index.d.ts +5 -0
  49. package/dist/features/settings/index.css +2 -2
  50. package/dist/features/settings/index.d.ts +210 -9
  51. package/dist/features/settings/index.js +11 -11
  52. package/dist/graph/index.css +2 -2
  53. package/dist/hooks/delivery/index.css +2 -2
  54. package/dist/hooks/delivery/index.d.ts +184 -3
  55. package/dist/hooks/index.css +85 -85
  56. package/dist/hooks/index.d.ts +1815 -1515
  57. package/dist/hooks/index.js +8 -8
  58. package/dist/hooks/published.css +85 -85
  59. package/dist/hooks/published.d.ts +1815 -1515
  60. package/dist/hooks/published.js +8 -8
  61. package/dist/index.css +12 -12
  62. package/dist/index.d.ts +322 -16
  63. package/dist/index.js +9 -9
  64. package/dist/initialization/index.d.ts +184 -3
  65. package/dist/layout/index.js +2 -2
  66. package/dist/organization/index.css +589 -0
  67. package/dist/organization/index.js +1 -1
  68. package/dist/profile/index.d.ts +184 -3
  69. package/dist/provider/index.css +384 -0
  70. package/dist/provider/index.d.ts +6 -0
  71. package/dist/provider/index.js +7 -7
  72. package/dist/provider/published.css +463 -0
  73. package/dist/provider/published.d.ts +6 -0
  74. package/dist/provider/published.js +4 -4
  75. package/dist/supabase/index.d.ts +359 -6
  76. package/dist/test-utils/index.d.ts +46 -2
  77. package/dist/test-utils/index.js +102 -1
  78. package/dist/theme/index.js +2 -2
  79. package/dist/types/index.d.ts +195 -6
  80. package/package.json +2 -2
  81. /package/dist/{chunk-6GUW5GGF.js → chunk-6Z3G4U2R.js} +0 -0
@@ -1673,6 +1673,7 @@ type Database = {
1673
1673
  Row: {
1674
1674
  config: Json;
1675
1675
  created_at: string | null;
1676
+ effective_permissions: string[];
1676
1677
  id: string;
1677
1678
  membership_status: string | null;
1678
1679
  organization_id: string;
@@ -1684,6 +1685,7 @@ type Database = {
1684
1685
  Insert: {
1685
1686
  config?: Json;
1686
1687
  created_at?: string | null;
1688
+ effective_permissions?: string[];
1687
1689
  id?: string;
1688
1690
  membership_status?: string | null;
1689
1691
  organization_id: string;
@@ -1695,6 +1697,7 @@ type Database = {
1695
1697
  Update: {
1696
1698
  config?: Json;
1697
1699
  created_at?: string | null;
1700
+ effective_permissions?: string[];
1698
1701
  id?: string;
1699
1702
  membership_status?: string | null;
1700
1703
  organization_id?: string;
@@ -1720,6 +1723,147 @@ type Database = {
1720
1723
  }
1721
1724
  ];
1722
1725
  };
1726
+ org_rol_assignments: {
1727
+ Row: {
1728
+ granted_at: string;
1729
+ granted_by: string | null;
1730
+ membership_id: string;
1731
+ role_id: string;
1732
+ };
1733
+ Insert: {
1734
+ granted_at?: string;
1735
+ granted_by?: string | null;
1736
+ membership_id: string;
1737
+ role_id: string;
1738
+ };
1739
+ Update: {
1740
+ granted_at?: string;
1741
+ granted_by?: string | null;
1742
+ membership_id?: string;
1743
+ role_id?: string;
1744
+ };
1745
+ Relationships: [
1746
+ {
1747
+ foreignKeyName: "org_rol_assignments_granted_by_fkey";
1748
+ columns: ["granted_by"];
1749
+ isOneToOne: false;
1750
+ referencedRelation: "users";
1751
+ referencedColumns: ["id"];
1752
+ },
1753
+ {
1754
+ foreignKeyName: "org_rol_assignments_membership_id_fkey";
1755
+ columns: ["membership_id"];
1756
+ isOneToOne: false;
1757
+ referencedRelation: "org_memberships";
1758
+ referencedColumns: ["id"];
1759
+ },
1760
+ {
1761
+ foreignKeyName: "org_rol_assignments_role_id_fkey";
1762
+ columns: ["role_id"];
1763
+ isOneToOne: false;
1764
+ referencedRelation: "org_rol_definitions";
1765
+ referencedColumns: ["id"];
1766
+ }
1767
+ ];
1768
+ };
1769
+ org_rol_definitions: {
1770
+ Row: {
1771
+ created_at: string;
1772
+ description: string | null;
1773
+ id: string;
1774
+ is_system: boolean;
1775
+ name: string;
1776
+ organization_id: string | null;
1777
+ slug: string;
1778
+ updated_at: string;
1779
+ };
1780
+ Insert: {
1781
+ created_at?: string;
1782
+ description?: string | null;
1783
+ id?: string;
1784
+ is_system?: boolean;
1785
+ name: string;
1786
+ organization_id?: string | null;
1787
+ slug: string;
1788
+ updated_at?: string;
1789
+ };
1790
+ Update: {
1791
+ created_at?: string;
1792
+ description?: string | null;
1793
+ id?: string;
1794
+ is_system?: boolean;
1795
+ name?: string;
1796
+ organization_id?: string | null;
1797
+ slug?: string;
1798
+ updated_at?: string;
1799
+ };
1800
+ Relationships: [
1801
+ {
1802
+ foreignKeyName: "org_rol_definitions_organization_id_fkey";
1803
+ columns: ["organization_id"];
1804
+ isOneToOne: false;
1805
+ referencedRelation: "organizations";
1806
+ referencedColumns: ["id"];
1807
+ }
1808
+ ];
1809
+ };
1810
+ org_rol_grants: {
1811
+ Row: {
1812
+ granted_at: string;
1813
+ permission_key: string;
1814
+ role_id: string;
1815
+ };
1816
+ Insert: {
1817
+ granted_at?: string;
1818
+ permission_key: string;
1819
+ role_id: string;
1820
+ };
1821
+ Update: {
1822
+ granted_at?: string;
1823
+ permission_key?: string;
1824
+ role_id?: string;
1825
+ };
1826
+ Relationships: [
1827
+ {
1828
+ foreignKeyName: "org_rol_grants_permission_key_fkey";
1829
+ columns: ["permission_key"];
1830
+ isOneToOne: false;
1831
+ referencedRelation: "org_rol_permissions";
1832
+ referencedColumns: ["key"];
1833
+ },
1834
+ {
1835
+ foreignKeyName: "org_rol_grants_role_id_fkey";
1836
+ columns: ["role_id"];
1837
+ isOneToOne: false;
1838
+ referencedRelation: "org_rol_definitions";
1839
+ referencedColumns: ["id"];
1840
+ }
1841
+ ];
1842
+ };
1843
+ org_rol_permissions: {
1844
+ Row: {
1845
+ created_at: string;
1846
+ description: string;
1847
+ is_org_grantable: boolean;
1848
+ key: string;
1849
+ updated_at: string;
1850
+ };
1851
+ Insert: {
1852
+ created_at?: string;
1853
+ description: string;
1854
+ is_org_grantable?: boolean;
1855
+ key: string;
1856
+ updated_at?: string;
1857
+ };
1858
+ Update: {
1859
+ created_at?: string;
1860
+ description?: string;
1861
+ is_org_grantable?: boolean;
1862
+ key?: string;
1863
+ updated_at?: string;
1864
+ };
1865
+ Relationships: [];
1866
+ };
1723
1867
  organizations: {
1724
1868
  Row: {
1725
1869
  config: Json;
@@ -2477,7 +2621,8 @@ type Database = {
2477
2621
  created_at: string;
2478
2622
  description: string | null;
2479
2623
  id: string;
2480
- key: string;
2624
+ key_hash: string;
2625
+ key_prefix: string | null;
2481
2626
  last_triggered_at: string | null;
2482
2627
  name: string;
2483
2628
  organization_id: string;
@@ -2490,7 +2635,8 @@ type Database = {
2490
2635
  created_at?: string;
2491
2636
  description?: string | null;
2492
2637
  id?: string;
2493
- key: string;
2638
+ key_hash: string;
2639
+ key_prefix?: string | null;
2494
2640
  last_triggered_at?: string | null;
2495
2641
  name: string;
2496
2642
  organization_id: string;
@@ -2503,7 +2649,8 @@ type Database = {
2503
2649
  created_at?: string;
2504
2650
  description?: string | null;
2505
2651
  id?: string;
2506
- key?: string;
2652
+ key_hash?: string;
2653
+ key_prefix?: string | null;
2507
2654
  last_triggered_at?: string | null;
2508
2655
  name?: string;
2509
2656
  organization_id?: string;
@@ -2549,6 +2696,13 @@ type Database = {
2549
2696
  Args: never;
2550
2697
  Returns: string;
2551
2698
  };
2699
+ can_assign_role_in_org: {
2700
+ Args: {
2701
+ p_role_id: string;
2702
+ p_target_membership_id: string;
2703
+ };
2704
+ Returns: boolean;
2705
+ };
2552
2706
  current_user_is_platform_admin: {
2553
2707
  Args: never;
2554
2708
  Returns: boolean;
@@ -2578,6 +2732,10 @@ type Database = {
2578
2732
  user_id: string;
2579
2733
  }[];
2580
2734
  };
2735
+ get_platform_credential_kek: {
2736
+ Args: never;
2737
+ Returns: string;
2738
+ };
2581
2739
  get_storage_org_id: {
2582
2740
  Args: {
2583
2741
  file_path: string;
@@ -2588,6 +2746,13 @@ type Database = {
2588
2746
  Args: never;
2589
2747
  Returns: string;
2590
2748
  };
2749
+ has_org_permission: {
2750
+ Args: {
2751
+ org_id: string;
2752
+ perm_key: string;
2753
+ };
2754
+ Returns: boolean;
2755
+ };
2591
2756
  is_org_admin: {
2592
2757
  Args: {
2593
2758
  org_id: string;
@@ -2620,6 +2785,22 @@ type Database = {
2620
2785
  Args: never;
2621
2786
  Returns: Json;
2622
2787
  };
2788
+ recompute_all_memberships: {
2789
+ Args: never;
2790
+ Returns: undefined;
2791
+ };
2792
+ sync_all_memberships_with_role: {
2793
+ Args: {
2794
+ p_role_id: string;
2795
+ };
2796
+ Returns: undefined;
2797
+ };
2798
+ sync_one_membership: {
2799
+ Args: {
2800
+ p_membership_id: string;
2801
+ };
2802
+ Returns: undefined;
2803
+ };
2623
2804
  upsert_user_profile: {
2624
2805
  Args: never;
2625
2806
  Returns: {
@@ -2749,7 +2930,8 @@ declare function WebhookEndpointSettings({ apiUrl }: WebhookEndpointSettingsProp
2749
2930
  declare const WebhookEndpointResponseSchema: z.ZodObject<{
2750
2931
  id: z.ZodString;
2751
2932
  organizationId: z.ZodString;
2752
- key: z.ZodString;
2933
+ key: z.ZodOptional<z.ZodString>;
2934
+ keyPrefix: z.ZodNullable<z.ZodString>;
2753
2935
  name: z.ZodString;
2754
2936
  description: z.ZodNullable<z.ZodString>;
2755
2937
  resourceId: z.ZodNullable<z.ZodString>;
@@ -2767,10 +2949,8 @@ type WebhookEndpointResponse = z.infer<typeof WebhookEndpointResponseSchema>;
2767
2949
  interface WebhookEndpointListProps {
2768
2950
  endpoints: WebhookEndpointResponse[];
2769
2951
  isLoading: boolean;
2770
- /** Base API URL used to construct inbound webhook URLs (e.g., 'https://api.elevasis.io') */
2771
- apiUrl: string;
2772
2952
  }
2773
- declare function WebhookEndpointList({ endpoints, isLoading, apiUrl }: WebhookEndpointListProps): react_jsx_runtime.JSX.Element;
2953
+ declare function WebhookEndpointList({ endpoints, isLoading }: WebhookEndpointListProps): react_jsx_runtime.JSX.Element;
2774
2954
 
2775
2955
  interface CreateWebhookEndpointModalProps {
2776
2956
  opened: boolean;
@@ -2834,6 +3014,22 @@ interface MemberConfigModalProps {
2834
3014
  }
2835
3015
  declare function MemberConfigModal({ opened, onClose, member }: MemberConfigModalProps): react_jsx_runtime.JSX.Element | null;
2836
3016
 
3017
+ interface MemberAccessModalProps {
3018
+ opened: boolean;
3019
+ onClose: () => void;
3020
+ orgId: string | null;
3021
+ member: {
3022
+ id: string;
3023
+ name: string;
3024
+ email: string;
3025
+ role: string;
3026
+ config?: MembershipFeatureConfig;
3027
+ } | null;
3028
+ defaultTab?: MemberAccessTab;
3029
+ }
3030
+ type MemberAccessTab = 'roles' | 'features';
3031
+ declare function MemberAccessModal({ opened, onClose, orgId, member, defaultTab }: MemberAccessModalProps): react_jsx_runtime.JSX.Element | null;
3032
+
2837
3033
  interface EditCredentialModalProps {
2838
3034
  /** Base API URL used to construct the OAuth authorize endpoint. */
2839
3035
  apiUrl: string;
@@ -2853,6 +3049,9 @@ type FeatureIconComponent = ComponentType<{
2853
3049
  size?: number;
2854
3050
  stroke?: number;
2855
3051
  }>;
3052
+ type FeatureSidebarWidthResolver = number | ((context: {
3053
+ currentPath: string;
3054
+ }) => number);
2856
3055
  interface FeatureModule {
2857
3056
  /** Unique stable identifier for this feature module. */
2858
3057
  key: string;
@@ -2864,6 +3063,8 @@ interface FeatureModule {
2864
3063
  icon?: FeatureIconComponent;
2865
3064
  /** Sidebar component rendered when this feature's subtree route is active. */
2866
3065
  sidebar?: FeatureSidebarComponent;
3066
+ /** Optional shell sidebar width override. Defaults to 250px. */
3067
+ sidebarWidth?: FeatureSidebarWidthResolver;
2867
3068
  /** Operations-only bridge connecting this feature to the organization graph node. */
2868
3069
  organizationGraph?: OrganizationGraphFeatureBridge;
2869
3070
  }
@@ -2873,5 +3074,5 @@ interface OrganizationGraphFeatureBridge {
2873
3074
 
2874
3075
  declare const settingsManifest: FeatureModule;
2875
3076
 
2876
- export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberConfigModal, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest };
2877
- export type { AccountSettingsProps, AccountSettingsUser, AppearanceSettingsProps, CreateWebhookEndpointModalProps, EditCredentialModalProps, EditWebhookEndpointModalProps, MemberConfigModalProps, OAuthIntegrationsCardProps, OrgMembersListProps, OrganizationSettingsMembership, OrganizationSettingsProps, OrganizationSettingsUser, WebhookEndpointListProps, WebhookEndpointSettingsProps };
3077
+ export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberAccessModal, MemberConfigModal, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest };
3078
+ export type { AccountSettingsProps, AccountSettingsUser, AppearanceSettingsProps, CreateWebhookEndpointModalProps, EditCredentialModalProps, EditWebhookEndpointModalProps, MemberAccessModalProps, MemberAccessTab, MemberConfigModalProps, OAuthIntegrationsCardProps, OrgMembersListProps, OrganizationSettingsMembership, OrganizationSettingsProps, OrganizationSettingsUser, WebhookEndpointListProps, WebhookEndpointSettingsProps };
@@ -1,23 +1,23 @@
1
- export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberConfigModal, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest } from '../../chunk-XLZZOFGM.js';
1
+ export { AccountSettings, AppearanceSettings, CreateWebhookEndpointModal, EditCredentialModal, EditWebhookEndpointModal, MemberAccessModal, MemberConfigModal, OAuthIntegrationsCard, OrgMembersList, OrganizationSettings, WebhookEndpointList, WebhookEndpointSettings, settingsManifest } from '../../chunk-BSZRKBAW.js';
2
2
  import '../../chunk-M25JL54Z.js';
3
3
  import '../../chunk-PDHTXPSF.js';
4
- import '../../chunk-GBMNCNHX.js';
5
- import '../../chunk-TIIPYB2Z.js';
4
+ import '../../chunk-KVJ3LFH2.js';
5
+ import '../../chunk-QZJM3RYI.js';
6
6
  import '../../chunk-7M2VOCYN.js';
7
- import '../../chunk-7GG6OSD7.js';
7
+ import '../../chunk-B4FHWKEF.js';
8
8
  import '../../chunk-BRXELOHC.js';
9
9
  import '../../chunk-QSTH6T77.js';
10
10
  import '../../chunk-Z6FAH4XV.js';
11
11
  import '../../chunk-22UVE3RA.js';
12
12
  import '../../chunk-3ZMAGTWF.js';
13
- import '../../chunk-ULZ2B3NC.js';
14
- import '../../chunk-DMYELNGA.js';
15
- import '../../chunk-Q5HC6ENG.js';
13
+ import '../../chunk-ZBCTB5CA.js';
14
+ import '../../chunk-3HEUGBOT.js';
15
+ import '../../chunk-XOTJNW4Q.js';
16
16
  import '../../chunk-WLOQ4IBG.js';
17
- import '../../chunk-KVW56ERD.js';
17
+ import '../../chunk-AXXTN44Z.js';
18
18
  import '../../chunk-LVUCBY7X.js';
19
- import '../../chunk-VQESMHQV.js';
20
- import '../../chunk-RX4UWZZR.js';
19
+ import '../../chunk-LJWV4TWV.js';
20
+ import '../../chunk-TKAYX2SP.js';
21
21
  import '../../chunk-XUYBOO32.js';
22
22
  import '../../chunk-SZHARWKU.js';
23
23
  import '../../chunk-3KMDHCAR.js';
@@ -25,7 +25,7 @@ import '../../chunk-NYBEU5TE.js';
25
25
  import '../../chunk-T6INEVX6.js';
26
26
  import '../../chunk-2IFYDILW.js';
27
27
  import '../../chunk-Q7DJKLEN.js';
28
- import '../../chunk-7YQKVWSD.js';
28
+ import '../../chunk-SQ5JGELM.js';
29
29
  import '../../chunk-6IA2OMAE.js';
30
30
  import '../../chunk-QJ2KCHKX.js';
31
31
  import '../../chunk-HQ7M6PBW.js';
@@ -103,7 +103,7 @@
103
103
  transparent 1px),
104
104
  radial-gradient(
105
105
  ellipse at 50% 50%,
106
- color-mix(in srgb, var(--color-primary) 5%, transparent) 0%,
106
+ color-mix(in srgb, var(--color-primary) 1.25%, transparent) 0%,
107
107
  transparent 70%);
108
108
  background-color: color-mix(in srgb, var(--color-background) 50%, var(--glass-background));
109
109
  backdrop-filter: var(--glass-blur);
@@ -122,7 +122,7 @@
122
122
  transparent 1px),
123
123
  radial-gradient(
124
124
  ellipse at 50% 50%,
125
- color-mix(in srgb, var(--color-primary) 9%, transparent) 0%,
125
+ color-mix(in srgb, var(--color-primary) 2.25%, transparent) 0%,
126
126
  transparent 70%);
127
127
  background-size:
128
128
  40px 40px,
@@ -309,7 +309,7 @@
309
309
  transparent 1px),
310
310
  radial-gradient(
311
311
  ellipse at 50% 50%,
312
- color-mix(in srgb, var(--color-primary) 5%, transparent) 0%,
312
+ color-mix(in srgb, var(--color-primary) 1.25%, transparent) 0%,
313
313
  transparent 70%);
314
314
  background-color: color-mix(in srgb, var(--color-background) 50%, var(--glass-background));
315
315
  backdrop-filter: var(--glass-blur);
@@ -328,7 +328,7 @@
328
328
  transparent 1px),
329
329
  radial-gradient(
330
330
  ellipse at 50% 50%,
331
- color-mix(in srgb, var(--color-primary) 9%, transparent) 0%,
331
+ color-mix(in srgb, var(--color-primary) 2.25%, transparent) 0%,
332
332
  transparent 70%);
333
333
  background-size:
334
334
  40px 40px,
@@ -1671,6 +1671,7 @@ type Database = {
1671
1671
  Row: {
1672
1672
  config: Json;
1673
1673
  created_at: string | null;
1674
+ effective_permissions: string[];
1674
1675
  id: string;
1675
1676
  membership_status: string | null;
1676
1677
  organization_id: string;
@@ -1682,6 +1683,7 @@ type Database = {
1682
1683
  Insert: {
1683
1684
  config?: Json;
1684
1685
  created_at?: string | null;
1686
+ effective_permissions?: string[];
1685
1687
  id?: string;
1686
1688
  membership_status?: string | null;
1687
1689
  organization_id: string;
@@ -1693,6 +1695,7 @@ type Database = {
1693
1695
  Update: {
1694
1696
  config?: Json;
1695
1697
  created_at?: string | null;
1698
+ effective_permissions?: string[];
1696
1699
  id?: string;
1697
1700
  membership_status?: string | null;
1698
1701
  organization_id?: string;
@@ -1718,6 +1721,147 @@ type Database = {
1718
1721
  }
1719
1722
  ];
1720
1723
  };
1724
+ org_rol_assignments: {
1725
+ Row: {
1726
+ granted_at: string;
1727
+ granted_by: string | null;
1728
+ membership_id: string;
1729
+ role_id: string;
1730
+ };
1731
+ Insert: {
1732
+ granted_at?: string;
1733
+ granted_by?: string | null;
1734
+ membership_id: string;
1735
+ role_id: string;
1736
+ };
1737
+ Update: {
1738
+ granted_at?: string;
1739
+ granted_by?: string | null;
1740
+ membership_id?: string;
1741
+ role_id?: string;
1742
+ };
1743
+ Relationships: [
1744
+ {
1745
+ foreignKeyName: "org_rol_assignments_granted_by_fkey";
1746
+ columns: ["granted_by"];
1747
+ isOneToOne: false;
1748
+ referencedRelation: "users";
1749
+ referencedColumns: ["id"];
1750
+ },
1751
+ {
1752
+ foreignKeyName: "org_rol_assignments_membership_id_fkey";
1753
+ columns: ["membership_id"];
1754
+ isOneToOne: false;
1755
+ referencedRelation: "org_memberships";
1756
+ referencedColumns: ["id"];
1757
+ },
1758
+ {
1759
+ foreignKeyName: "org_rol_assignments_role_id_fkey";
1760
+ columns: ["role_id"];
1761
+ isOneToOne: false;
1762
+ referencedRelation: "org_rol_definitions";
1763
+ referencedColumns: ["id"];
1764
+ }
1765
+ ];
1766
+ };
1767
+ org_rol_definitions: {
1768
+ Row: {
1769
+ created_at: string;
1770
+ description: string | null;
1771
+ id: string;
1772
+ is_system: boolean;
1773
+ name: string;
1774
+ organization_id: string | null;
1775
+ slug: string;
1776
+ updated_at: string;
1777
+ };
1778
+ Insert: {
1779
+ created_at?: string;
1780
+ description?: string | null;
1781
+ id?: string;
1782
+ is_system?: boolean;
1783
+ name: string;
1784
+ organization_id?: string | null;
1785
+ slug: string;
1786
+ updated_at?: string;
1787
+ };
1788
+ Update: {
1789
+ created_at?: string;
1790
+ description?: string | null;
1791
+ id?: string;
1792
+ is_system?: boolean;
1793
+ name?: string;
1794
+ organization_id?: string | null;
1795
+ slug?: string;
1796
+ updated_at?: string;
1797
+ };
1798
+ Relationships: [
1799
+ {
1800
+ foreignKeyName: "org_rol_definitions_organization_id_fkey";
1801
+ columns: ["organization_id"];
1802
+ isOneToOne: false;
1803
+ referencedRelation: "organizations";
1804
+ referencedColumns: ["id"];
1805
+ }
1806
+ ];
1807
+ };
1808
+ org_rol_grants: {
1809
+ Row: {
1810
+ granted_at: string;
1811
+ permission_key: string;
1812
+ role_id: string;
1813
+ };
1814
+ Insert: {
1815
+ granted_at?: string;
1816
+ permission_key: string;
1817
+ role_id: string;
1818
+ };
1819
+ Update: {
1820
+ granted_at?: string;
1821
+ permission_key?: string;
1822
+ role_id?: string;
1823
+ };
1824
+ Relationships: [
1825
+ {
1826
+ foreignKeyName: "org_rol_grants_permission_key_fkey";
1827
+ columns: ["permission_key"];
1828
+ isOneToOne: false;
1829
+ referencedRelation: "org_rol_permissions";
1830
+ referencedColumns: ["key"];
1831
+ },
1832
+ {
1833
+ foreignKeyName: "org_rol_grants_role_id_fkey";
1834
+ columns: ["role_id"];
1835
+ isOneToOne: false;
1836
+ referencedRelation: "org_rol_definitions";
1837
+ referencedColumns: ["id"];
1838
+ }
1839
+ ];
1840
+ };
1841
+ org_rol_permissions: {
1842
+ Row: {
1843
+ created_at: string;
1844
+ description: string;
1845
+ is_org_grantable: boolean;
1846
+ key: string;
1847
+ updated_at: string;
1848
+ };
1849
+ Insert: {
1850
+ created_at?: string;
1851
+ description: string;
1852
+ is_org_grantable?: boolean;
1853
+ key: string;
1854
+ updated_at?: string;
1855
+ };
1856
+ Update: {
1857
+ created_at?: string;
1858
+ description?: string;
1859
+ is_org_grantable?: boolean;
1860
+ key?: string;
1861
+ updated_at?: string;
1862
+ };
1863
+ Relationships: [];
1864
+ };
1721
1865
  organizations: {
1722
1866
  Row: {
1723
1867
  config: Json;
@@ -2475,7 +2619,8 @@ type Database = {
2475
2619
  created_at: string;
2476
2620
  description: string | null;
2477
2621
  id: string;
2478
- key: string;
2622
+ key_hash: string;
2623
+ key_prefix: string | null;
2479
2624
  last_triggered_at: string | null;
2480
2625
  name: string;
2481
2626
  organization_id: string;
@@ -2488,7 +2633,8 @@ type Database = {
2488
2633
  created_at?: string;
2489
2634
  description?: string | null;
2490
2635
  id?: string;
2491
- key: string;
2636
+ key_hash: string;
2637
+ key_prefix?: string | null;
2492
2638
  last_triggered_at?: string | null;
2493
2639
  name: string;
2494
2640
  organization_id: string;
@@ -2501,7 +2647,8 @@ type Database = {
2501
2647
  created_at?: string;
2502
2648
  description?: string | null;
2503
2649
  id?: string;
2504
- key?: string;
2650
+ key_hash?: string;
2651
+ key_prefix?: string | null;
2505
2652
  last_triggered_at?: string | null;
2506
2653
  name?: string;
2507
2654
  organization_id?: string;
@@ -2547,6 +2694,13 @@ type Database = {
2547
2694
  Args: never;
2548
2695
  Returns: string;
2549
2696
  };
2697
+ can_assign_role_in_org: {
2698
+ Args: {
2699
+ p_role_id: string;
2700
+ p_target_membership_id: string;
2701
+ };
2702
+ Returns: boolean;
2703
+ };
2550
2704
  current_user_is_platform_admin: {
2551
2705
  Args: never;
2552
2706
  Returns: boolean;
@@ -2576,6 +2730,10 @@ type Database = {
2576
2730
  user_id: string;
2577
2731
  }[];
2578
2732
  };
2733
+ get_platform_credential_kek: {
2734
+ Args: never;
2735
+ Returns: string;
2736
+ };
2579
2737
  get_storage_org_id: {
2580
2738
  Args: {
2581
2739
  file_path: string;
@@ -2586,6 +2744,13 @@ type Database = {
2586
2744
  Args: never;
2587
2745
  Returns: string;
2588
2746
  };
2747
+ has_org_permission: {
2748
+ Args: {
2749
+ org_id: string;
2750
+ perm_key: string;
2751
+ };
2752
+ Returns: boolean;
2753
+ };
2589
2754
  is_org_admin: {
2590
2755
  Args: {
2591
2756
  org_id: string;
@@ -2618,6 +2783,22 @@ type Database = {
2618
2783
  Args: never;
2619
2784
  Returns: Json;
2620
2785
  };
2786
+ recompute_all_memberships: {
2787
+ Args: never;
2788
+ Returns: undefined;
2789
+ };
2790
+ sync_all_memberships_with_role: {
2791
+ Args: {
2792
+ p_role_id: string;
2793
+ };
2794
+ Returns: undefined;
2795
+ };
2796
+ sync_one_membership: {
2797
+ Args: {
2798
+ p_membership_id: string;
2799
+ };
2800
+ Returns: undefined;
2801
+ };
2621
2802
  upsert_user_profile: {
2622
2803
  Args: never;
2623
2804
  Returns: {