@elevasis/ui 2.21.0 → 2.23.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-EGKNRM6P.js → chunk-7PGEGSUM.js} +2 -2
  4. package/dist/{chunk-KVW56ERD.js → chunk-AXXTN44Z.js} +5 -3
  5. package/dist/{chunk-I5WRKH25.js → chunk-D3KQAABP.js} +1 -1
  6. package/dist/{chunk-S7RL77QS.js → chunk-DDZOHLHB.js} +1 -1
  7. package/dist/{chunk-EDX6WIN3.js → chunk-EPV7NU2E.js} +24 -10
  8. package/dist/{chunk-ATEHYDL3.js → chunk-FXWETLEB.js} +6 -2
  9. package/dist/{chunk-7GG6OSD7.js → chunk-GUJUK6EH.js} +2830 -2381
  10. package/dist/{chunk-GBMNCNHX.js → chunk-KVJ3LFH2.js} +3 -1
  11. package/dist/{chunk-VQESMHQV.js → chunk-LJWV4TWV.js} +1 -2
  12. package/dist/{chunk-BJWIKEQG.js → chunk-N6WLOWOD.js} +6 -14
  13. package/dist/{chunk-XLZZOFGM.js → chunk-PTUOINQ2.js} +275 -76
  14. package/dist/{chunk-CZK67OHH.js → chunk-PXGSJNBH.js} +3 -3
  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-Q5HC6ENG.js → chunk-XOTJNW4Q.js} +1 -1
  19. package/dist/{chunk-LQU62KHD.js → chunk-YU6MBDVO.js} +1993 -870
  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 +1651 -1388
  23. package/dist/components/index.js +253 -40
  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 +188 -10
  28. package/dist/features/crm/index.css +2 -2
  29. package/dist/features/crm/index.d.ts +193 -10
  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 +193 -10
  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 +214 -16
  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 +188 -10
  55. package/dist/hooks/index.css +85 -85
  56. package/dist/hooks/index.d.ts +1843 -1538
  57. package/dist/hooks/index.js +8 -8
  58. package/dist/hooks/published.css +85 -85
  59. package/dist/hooks/published.d.ts +1843 -1538
  60. package/dist/hooks/published.js +8 -8
  61. package/dist/index.css +12 -12
  62. package/dist/index.d.ts +346 -35
  63. package/dist/index.js +9 -9
  64. package/dist/initialization/index.d.ts +188 -10
  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 +188 -10
  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 +367 -20
  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 +199 -13
  80. package/package.json +4 -4
  81. /package/dist/{chunk-6GUW5GGF.js → chunk-6Z3G4U2R.js} +0 -0
package/dist/index.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import './chunk-XCYKC6OZ.js';
2
- export { useAvailablePresets } from './chunk-TIIPYB2Z.js';
2
+ export { useAvailablePresets } from './chunk-QZJM3RYI.js';
3
3
  export { AGENT_CONSTANTS, CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS, STATUS_COLORS, TIMELINE_CONSTANTS, WORKFLOW_CONSTANTS, calculateBarPosition, formatDuration, getEdgeColor, getEdgeOpacity, getResourceStatusColor, getStatusColors, getStatusIcon, shouldAnimateEdge, useAgentIterationData, useExecutionPath, useReactFlowAgent, useTimelineData, useUnifiedWorkflowLayout, useWorkflowStepsLayout } from './chunk-E4WQGJNS.js';
4
4
  import './chunk-7M2VOCYN.js';
5
- export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, WebhookEndpointService, acquisitionListKeys, collectResourceFilterFacets, companyKeys, contactKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, operationsKeys, projectActivityKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateList, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, useProjectActivities, useProjectRealtime, useReactivateMembership, useRecentExecutionsByResource, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTestNotification, useTimeRangeDates, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateRequestStatus, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification } from './chunk-7GG6OSD7.js';
5
+ export { ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, WebhookEndpointService, acquisitionListKeys, collectResourceFilterFacets, companyKeys, contactKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, operationsKeys, projectActivityKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useArchiveSession, useArchivedLogs, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateList, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeleteWebhookEndpoint, useEffectivePermissions, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGraphStats, useHasPermission, useList, useListApiKeys, useListDeployments, useListExecutions, useListProgress, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationPermissions, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProjectActivities, useProjectRealtime, useReactivateMembership, useRecentExecutionsByResource, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateList, useUpdateListConfig, useUpdateMemberConfig, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources, useWarningNotification } from './chunk-GUJUK6EH.js';
6
6
  import './chunk-BRXELOHC.js';
7
7
  export { observabilityKeys, useErrorTrends } from './chunk-QSTH6T77.js';
8
8
  export { milestoneKeys, noteKeys, projectKeys, taskKeys, useCreateProject as useCreateDeliveryProject, useCreateMilestone, useCreateNote, useCreateTask, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteMilestone, useMilestones, useProject, useProjectMilestones, useProjectNotes, useProjectTasks, useProjects, useTasks, useUpdateProject as useUpdateDeliveryProject, useUpdateMilestone, useUpdateTask } from './chunk-Z6FAH4XV.js';
9
9
  export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from './chunk-22UVE3RA.js';
10
10
  export { useMergedExecution } from './chunk-3ZMAGTWF.js';
11
- export { createTestFeaturesProvider } from './chunk-ULZ2B3NC.js';
12
- export { ElevasisUIProvider } from './chunk-DMYELNGA.js';
13
- export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from './chunk-Q5HC6ENG.js';
11
+ export { createTestFeaturesProvider } from './chunk-ZBCTB5CA.js';
12
+ export { ElevasisUIProvider } from './chunk-3HEUGBOT.js';
13
+ export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from './chunk-XOTJNW4Q.js';
14
14
  import './chunk-WLOQ4IBG.js';
15
- export { FeatureShell } from './chunk-KVW56ERD.js';
15
+ export { FeatureShell } from './chunk-AXXTN44Z.js';
16
16
  export { ElevasisCoreProvider, NotificationProvider, useNotificationAdapter } from './chunk-LVUCBY7X.js';
17
- export { ElevasisFeaturesProvider, createFeatureAccessHook, createUseFeatureAccess, useElevasisFeatures, useOptionalElevasisFeatures } from './chunk-VQESMHQV.js';
18
- import './chunk-RX4UWZZR.js';
17
+ export { ElevasisFeaturesProvider, createFeatureAccessHook, useElevasisFeatures, useOptionalElevasisFeatures } from './chunk-LJWV4TWV.js';
18
+ import './chunk-TKAYX2SP.js';
19
19
  import './chunk-XUYBOO32.js';
20
20
  import './chunk-SZHARWKU.js';
21
21
  import './chunk-3KMDHCAR.js';
@@ -23,7 +23,7 @@ import './chunk-NYBEU5TE.js';
23
23
  export { ApiClientProvider, useApiClient, useApiClientContext } from './chunk-T6INEVX6.js';
24
24
  export { ScrollToTop, TanStackRouterBridge } from './chunk-2IFYDILW.js';
25
25
  export { RouterProvider, useRouterContext } from './chunk-Q7DJKLEN.js';
26
- export { OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from './chunk-7YQKVWSD.js';
26
+ export { OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from './chunk-SQ5JGELM.js';
27
27
  export { OrganizationProvider } from './chunk-6IA2OMAE.js';
28
28
  export { AppearanceProvider, useAppearance } from './chunk-QJ2KCHKX.js';
29
29
  export { createUseAppInitialization } from './chunk-HQ7M6PBW.js';
@@ -410,7 +410,6 @@ type Database = {
410
410
  acq_deals: {
411
411
  Row: {
412
412
  activity_log: Json;
413
- cached_stage: string | null;
414
413
  closed_lost_at: string | null;
415
414
  closed_lost_reason: string | null;
416
415
  contact_email: string;
@@ -425,6 +424,7 @@ type Database = {
425
424
  organization_id: string;
426
425
  payment_link_sent_at: string | null;
427
426
  payment_received_at: string | null;
427
+ pipeline_key: string;
428
428
  proposal_data: Json | null;
429
429
  proposal_generated_at: string | null;
430
430
  proposal_pdf_url: string | null;
@@ -432,10 +432,11 @@ type Database = {
432
432
  proposal_reviewed_by: string | null;
433
433
  proposal_sent_at: string | null;
434
434
  proposal_signed_at: string | null;
435
- proposal_status: string | null;
436
435
  signature_envelope_id: string | null;
437
436
  source_list_id: string | null;
438
437
  source_type: string | null;
438
+ stage_key: string | null;
439
+ state_key: string | null;
439
440
  stripe_payment_id: string | null;
440
441
  stripe_payment_link: string | null;
441
442
  stripe_payment_link_id: string | null;
@@ -444,7 +445,6 @@ type Database = {
444
445
  };
445
446
  Insert: {
446
447
  activity_log?: Json;
447
- cached_stage?: string | null;
448
448
  closed_lost_at?: string | null;
449
449
  closed_lost_reason?: string | null;
450
450
  contact_email: string;
@@ -459,6 +459,7 @@ type Database = {
459
459
  organization_id: string;
460
460
  payment_link_sent_at?: string | null;
461
461
  payment_received_at?: string | null;
462
+ pipeline_key?: string;
462
463
  proposal_data?: Json | null;
463
464
  proposal_generated_at?: string | null;
464
465
  proposal_pdf_url?: string | null;
@@ -466,10 +467,11 @@ type Database = {
466
467
  proposal_reviewed_by?: string | null;
467
468
  proposal_sent_at?: string | null;
468
469
  proposal_signed_at?: string | null;
469
- proposal_status?: string | null;
470
470
  signature_envelope_id?: string | null;
471
471
  source_list_id?: string | null;
472
472
  source_type?: string | null;
473
+ stage_key?: string | null;
474
+ state_key?: string | null;
473
475
  stripe_payment_id?: string | null;
474
476
  stripe_payment_link?: string | null;
475
477
  stripe_payment_link_id?: string | null;
@@ -478,7 +480,6 @@ type Database = {
478
480
  };
479
481
  Update: {
480
482
  activity_log?: Json;
481
- cached_stage?: string | null;
482
483
  closed_lost_at?: string | null;
483
484
  closed_lost_reason?: string | null;
484
485
  contact_email?: string;
@@ -493,6 +494,7 @@ type Database = {
493
494
  organization_id?: string;
494
495
  payment_link_sent_at?: string | null;
495
496
  payment_received_at?: string | null;
497
+ pipeline_key?: string;
496
498
  proposal_data?: Json | null;
497
499
  proposal_generated_at?: string | null;
498
500
  proposal_pdf_url?: string | null;
@@ -500,10 +502,11 @@ type Database = {
500
502
  proposal_reviewed_by?: string | null;
501
503
  proposal_sent_at?: string | null;
502
504
  proposal_signed_at?: string | null;
503
- proposal_status?: string | null;
504
505
  signature_envelope_id?: string | null;
505
506
  source_list_id?: string | null;
506
507
  source_type?: string | null;
508
+ stage_key?: string | null;
509
+ state_key?: string | null;
507
510
  stripe_payment_id?: string | null;
508
511
  stripe_payment_link?: string | null;
509
512
  stripe_payment_link_id?: string | null;
@@ -1672,6 +1675,7 @@ type Database = {
1672
1675
  Row: {
1673
1676
  config: Json;
1674
1677
  created_at: string | null;
1678
+ effective_permissions: string[];
1675
1679
  id: string;
1676
1680
  membership_status: string | null;
1677
1681
  organization_id: string;
@@ -1683,6 +1687,7 @@ type Database = {
1683
1687
  Insert: {
1684
1688
  config?: Json;
1685
1689
  created_at?: string | null;
1690
+ effective_permissions?: string[];
1686
1691
  id?: string;
1687
1692
  membership_status?: string | null;
1688
1693
  organization_id: string;
@@ -1694,6 +1699,7 @@ type Database = {
1694
1699
  Update: {
1695
1700
  config?: Json;
1696
1701
  created_at?: string | null;
1702
+ effective_permissions?: string[];
1697
1703
  id?: string;
1698
1704
  membership_status?: string | null;
1699
1705
  organization_id?: string;
@@ -1719,6 +1725,147 @@ type Database = {
1719
1725
  }
1720
1726
  ];
1721
1727
  };
1728
+ org_rol_assignments: {
1729
+ Row: {
1730
+ granted_at: string;
1731
+ granted_by: string | null;
1732
+ membership_id: string;
1733
+ role_id: string;
1734
+ };
1735
+ Insert: {
1736
+ granted_at?: string;
1737
+ granted_by?: string | null;
1738
+ membership_id: string;
1739
+ role_id: string;
1740
+ };
1741
+ Update: {
1742
+ granted_at?: string;
1743
+ granted_by?: string | null;
1744
+ membership_id?: string;
1745
+ role_id?: string;
1746
+ };
1747
+ Relationships: [
1748
+ {
1749
+ foreignKeyName: "org_rol_assignments_granted_by_fkey";
1750
+ columns: ["granted_by"];
1751
+ isOneToOne: false;
1752
+ referencedRelation: "users";
1753
+ referencedColumns: ["id"];
1754
+ },
1755
+ {
1756
+ foreignKeyName: "org_rol_assignments_membership_id_fkey";
1757
+ columns: ["membership_id"];
1758
+ isOneToOne: false;
1759
+ referencedRelation: "org_memberships";
1760
+ referencedColumns: ["id"];
1761
+ },
1762
+ {
1763
+ foreignKeyName: "org_rol_assignments_role_id_fkey";
1764
+ columns: ["role_id"];
1765
+ isOneToOne: false;
1766
+ referencedRelation: "org_rol_definitions";
1767
+ referencedColumns: ["id"];
1768
+ }
1769
+ ];
1770
+ };
1771
+ org_rol_definitions: {
1772
+ Row: {
1773
+ created_at: string;
1774
+ description: string | null;
1775
+ id: string;
1776
+ is_system: boolean;
1777
+ name: string;
1778
+ organization_id: string | null;
1779
+ slug: string;
1780
+ updated_at: string;
1781
+ };
1782
+ Insert: {
1783
+ created_at?: string;
1784
+ description?: string | null;
1785
+ id?: string;
1786
+ is_system?: boolean;
1787
+ name: string;
1788
+ organization_id?: string | null;
1789
+ slug: string;
1790
+ updated_at?: string;
1791
+ };
1792
+ Update: {
1793
+ created_at?: string;
1794
+ description?: string | null;
1795
+ id?: string;
1796
+ is_system?: boolean;
1797
+ name?: string;
1798
+ organization_id?: string | null;
1799
+ slug?: string;
1800
+ updated_at?: string;
1801
+ };
1802
+ Relationships: [
1803
+ {
1804
+ foreignKeyName: "org_rol_definitions_organization_id_fkey";
1805
+ columns: ["organization_id"];
1806
+ isOneToOne: false;
1807
+ referencedRelation: "organizations";
1808
+ referencedColumns: ["id"];
1809
+ }
1810
+ ];
1811
+ };
1812
+ org_rol_grants: {
1813
+ Row: {
1814
+ granted_at: string;
1815
+ permission_key: string;
1816
+ role_id: string;
1817
+ };
1818
+ Insert: {
1819
+ granted_at?: string;
1820
+ permission_key: string;
1821
+ role_id: string;
1822
+ };
1823
+ Update: {
1824
+ granted_at?: string;
1825
+ permission_key?: string;
1826
+ role_id?: string;
1827
+ };
1828
+ Relationships: [
1829
+ {
1830
+ foreignKeyName: "org_rol_grants_permission_key_fkey";
1831
+ columns: ["permission_key"];
1832
+ isOneToOne: false;
1833
+ referencedRelation: "org_rol_permissions";
1834
+ referencedColumns: ["key"];
1835
+ },
1836
+ {
1837
+ foreignKeyName: "org_rol_grants_role_id_fkey";
1838
+ columns: ["role_id"];
1839
+ isOneToOne: false;
1840
+ referencedRelation: "org_rol_definitions";
1841
+ referencedColumns: ["id"];
1842
+ }
1843
+ ];
1844
+ };
1845
+ org_rol_permissions: {
1846
+ Row: {
1847
+ created_at: string;
1848
+ description: string;
1849
+ is_org_grantable: boolean;
1850
+ key: string;
1851
+ updated_at: string;
1852
+ };
1853
+ Insert: {
1854
+ created_at?: string;
1855
+ description: string;
1856
+ is_org_grantable?: boolean;
1857
+ key: string;
1858
+ updated_at?: string;
1859
+ };
1860
+ Update: {
1861
+ created_at?: string;
1862
+ description?: string;
1863
+ is_org_grantable?: boolean;
1864
+ key?: string;
1865
+ updated_at?: string;
1866
+ };
1867
+ Relationships: [];
1868
+ };
1722
1869
  organizations: {
1723
1870
  Row: {
1724
1871
  config: Json;
@@ -2476,7 +2623,8 @@ type Database = {
2476
2623
  created_at: string;
2477
2624
  description: string | null;
2478
2625
  id: string;
2479
- key: string;
2626
+ key_hash: string;
2627
+ key_prefix: string | null;
2480
2628
  last_triggered_at: string | null;
2481
2629
  name: string;
2482
2630
  organization_id: string;
@@ -2489,7 +2637,8 @@ type Database = {
2489
2637
  created_at?: string;
2490
2638
  description?: string | null;
2491
2639
  id?: string;
2492
- key: string;
2640
+ key_hash: string;
2641
+ key_prefix?: string | null;
2493
2642
  last_triggered_at?: string | null;
2494
2643
  name: string;
2495
2644
  organization_id: string;
@@ -2502,7 +2651,8 @@ type Database = {
2502
2651
  created_at?: string;
2503
2652
  description?: string | null;
2504
2653
  id?: string;
2505
- key?: string;
2654
+ key_hash?: string;
2655
+ key_prefix?: string | null;
2506
2656
  last_triggered_at?: string | null;
2507
2657
  name?: string;
2508
2658
  organization_id?: string;
@@ -2548,6 +2698,13 @@ type Database = {
2548
2698
  Args: never;
2549
2699
  Returns: string;
2550
2700
  };
2701
+ can_assign_role_in_org: {
2702
+ Args: {
2703
+ p_role_id: string;
2704
+ p_target_membership_id: string;
2705
+ };
2706
+ Returns: boolean;
2707
+ };
2551
2708
  current_user_is_platform_admin: {
2552
2709
  Args: never;
2553
2710
  Returns: boolean;
@@ -2577,6 +2734,10 @@ type Database = {
2577
2734
  user_id: string;
2578
2735
  }[];
2579
2736
  };
2737
+ get_platform_credential_kek: {
2738
+ Args: never;
2739
+ Returns: string;
2740
+ };
2580
2741
  get_storage_org_id: {
2581
2742
  Args: {
2582
2743
  file_path: string;
@@ -2587,9 +2748,10 @@ type Database = {
2587
2748
  Args: never;
2588
2749
  Returns: string;
2589
2750
  };
2590
- is_org_admin: {
2751
+ has_org_permission: {
2591
2752
  Args: {
2592
2753
  org_id: string;
2754
+ perm_key: string;
2593
2755
  };
2594
2756
  Returns: boolean;
2595
2757
  };
@@ -2619,6 +2781,22 @@ type Database = {
2619
2781
  Args: never;
2620
2782
  Returns: Json;
2621
2783
  };
2784
+ recompute_all_memberships: {
2785
+ Args: never;
2786
+ Returns: undefined;
2787
+ };
2788
+ sync_all_memberships_with_role: {
2789
+ Args: {
2790
+ p_role_id: string;
2791
+ };
2792
+ Returns: undefined;
2793
+ };
2794
+ sync_one_membership: {
2795
+ Args: {
2796
+ p_membership_id: string;
2797
+ };
2798
+ Returns: undefined;
2799
+ };
2622
2800
  upsert_user_profile: {
2623
2801
  Args: never;
2624
2802
  Returns: {
@@ -1,11 +1,11 @@
1
- export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-6GUW5GGF.js';
1
+ export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, Sidebar, SidebarContext, SidebarProvider, SubshellNavList, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-6Z3G4U2R.js';
2
2
  export { SubshellLoader, SubshellSidebarLoader } from '../chunk-3JCMO7SD.js';
3
3
  export { AppShellCenteredContainer, AppShellError, AppShellLoader } from '../chunk-M25JL54Z.js';
4
4
  export { PageContainer } from '../chunk-BZZCNLT6.js';
5
5
  export { SubshellNavItem } from '../chunk-CEWTOKE7.js';
6
6
  export { SubshellSidebarSection } from '../chunk-IIMU5YAJ.js';
7
7
  export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-WLOQ4IBG.js';
8
- export { SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar } from '../chunk-RX4UWZZR.js';
8
+ export { SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar } from '../chunk-TKAYX2SP.js';
9
9
  import '../chunk-NYBEU5TE.js';
10
10
  import '../chunk-2IFYDILW.js';
11
11
  import '../chunk-Q7DJKLEN.js';