@elevasis/ui 2.38.2 → 2.39.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 (76) hide show
  1. package/dist/{CoreAuthKitInner-QC62UHTZ.js → CoreAuthKitInner-PSTKG4B3.js} +3 -1
  2. package/dist/api/index.js +4 -2
  3. package/dist/app/index.d.ts +12 -0
  4. package/dist/app/index.js +16 -13
  5. package/dist/auth/context.d.ts +7 -1
  6. package/dist/auth/index.d.ts +80 -74
  7. package/dist/auth/index.js +10 -7
  8. package/dist/charts/index.js +13 -10
  9. package/dist/{chunk-C6BDBZRO.js → chunk-23YQ2WH5.js} +2 -1
  10. package/dist/{chunk-KJ3QUBNU.js → chunk-2FTX4WO2.js} +2 -2
  11. package/dist/chunk-43ZU647H.js +612 -0
  12. package/dist/{chunk-4UCAUBOL.js → chunk-5GZVSTVH.js} +2 -2
  13. package/dist/{chunk-533DUEQY.js → chunk-6DO4PE3O.js} +1 -1
  14. package/dist/{chunk-AUB3T7OY.js → chunk-CXLDZSAQ.js} +5 -5
  15. package/dist/{chunk-Y3JQBSKQ.js → chunk-FAO7SWSL.js} +1 -1
  16. package/dist/{chunk-566XWGPP.js → chunk-GLBPGEDD.js} +53 -611
  17. package/dist/{chunk-P34FFSOX.js → chunk-HOAMD35V.js} +2 -1
  18. package/dist/{chunk-JXVNHVK7.js → chunk-K7E352VG.js} +1 -1
  19. package/dist/{chunk-BEVGBPHW.js → chunk-L2H5CIQF.js} +11 -10
  20. package/dist/chunk-MQZE7SUI.js +9 -0
  21. package/dist/{chunk-7GQFIWP4.js → chunk-O53S32QR.js} +3 -3
  22. package/dist/{chunk-OPKXEGE4.js → chunk-PVXM4O6V.js} +297 -182
  23. package/dist/{chunk-I53EX4VU.js → chunk-RG2S6NIU.js} +1 -1
  24. package/dist/{chunk-JBWJ6WHZ.js → chunk-SJHM4WDG.js} +1 -1
  25. package/dist/{chunk-M7Q4UBRY.js → chunk-SNDRAYMF.js} +1 -1
  26. package/dist/chunk-TVTSASST.js +28 -0
  27. package/dist/{chunk-2Q2JQSQO.js → chunk-W2SFTXMT.js} +1 -1
  28. package/dist/chunk-ZJ3FG7FE.js +801 -0
  29. package/dist/{chunk-YGUNUIME.js → chunk-ZRZYRDXX.js} +5 -4
  30. package/dist/components/index.d.ts +12 -0
  31. package/dist/components/index.js +19 -16
  32. package/dist/components/navigation/index.js +4 -3
  33. package/dist/features/auth/index.js +20 -17
  34. package/dist/features/clients/index.js +19 -16
  35. package/dist/features/crm/index.js +19 -16
  36. package/dist/features/dashboard/index.d.ts +12 -0
  37. package/dist/features/dashboard/index.js +19 -16
  38. package/dist/features/delivery/index.js +19 -16
  39. package/dist/features/knowledge/index.js +4 -3
  40. package/dist/features/lead-gen/index.d.ts +58 -12
  41. package/dist/features/lead-gen/index.js +19 -16
  42. package/dist/features/monitoring/index.js +19 -16
  43. package/dist/features/monitoring/requests/index.js +19 -16
  44. package/dist/features/notes/index.js +6 -4
  45. package/dist/features/operations/index.d.ts +12 -0
  46. package/dist/features/operations/index.js +19 -16
  47. package/dist/features/settings/index.js +19 -16
  48. package/dist/hooks/access/index.js +9 -6
  49. package/dist/hooks/delivery/index.js +19 -16
  50. package/dist/hooks/index.d.ts +260 -203
  51. package/dist/hooks/index.js +19 -16
  52. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +12 -0
  53. package/dist/hooks/published.d.ts +260 -203
  54. package/dist/hooks/published.js +19 -16
  55. package/dist/hooks/user-notes/index.js +4 -2
  56. package/dist/index.d.ts +141 -84
  57. package/dist/index.js +19 -16
  58. package/dist/initialization/index.js +6 -4
  59. package/dist/knowledge/index.d.ts +12 -0
  60. package/dist/knowledge/index.js +5 -4
  61. package/dist/organization/index.d.ts +44 -10
  62. package/dist/organization/index.js +19 -16
  63. package/dist/profile/index.js +4 -2
  64. package/dist/provider/ElevasisServiceContext.d.ts +13 -4
  65. package/dist/provider/ElevasisServiceContext.js +3 -1
  66. package/dist/provider/index.d.ts +25 -4
  67. package/dist/provider/index.js +15 -12
  68. package/dist/provider/published.d.ts +25 -4
  69. package/dist/provider/published.js +14 -11
  70. package/dist/test-utils/index.d.ts +13 -4
  71. package/dist/test-utils/index.js +6 -3
  72. package/dist/types/index.d.ts +12 -0
  73. package/dist/utils/index.d.ts +12 -0
  74. package/dist/utils/index.js +3 -1
  75. package/package.json +3 -3
  76. package/dist/chunk-X66MVMZT.js +0 -373
@@ -1,3 +1,5 @@
1
+ import { brandWorkOsOrgId } from './chunk-MQZE7SUI.js';
2
+ import './chunk-TVTSASST.js';
1
3
  import { AuthProvider } from './chunk-BRJ3QZ4E.js';
2
4
  import './chunk-I2KLQ2HA.js';
3
5
  import { AuthKitProvider, useAuth } from '@workos-inc/authkit-react';
@@ -32,7 +34,7 @@ function WorkOSAuthAdapter({ children }) {
32
34
  user: adaptedUser,
33
35
  isLoading,
34
36
  getAccessToken,
35
- organizationId: organizationId ?? null,
37
+ organizationId: brandWorkOsOrgId(organizationId ?? null),
36
38
  signIn,
37
39
  canRecover: hasWorkOSRefreshToken
38
40
  }),
package/dist/api/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  export { createElevasisQueryClient } from '../chunk-73EWE2EW.js';
2
- export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-Y3JQBSKQ.js';
3
- import '../chunk-X66MVMZT.js';
2
+ export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-FAO7SWSL.js';
3
+ import '../chunk-ZJ3FG7FE.js';
4
4
  import '../chunk-KRWALB24.js';
5
5
  import '../chunk-DD3CCMCZ.js';
6
6
  import '../chunk-6ROXVZ3L.js';
7
+ import '../chunk-43ZU647H.js';
8
+ import '../chunk-TVTSASST.js';
7
9
  import '../chunk-I2KLQ2HA.js';
@@ -3411,6 +3411,17 @@ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3411
3411
  }, z$1.core.$strip>>;
3412
3412
  type OntologyScope = z$1.infer<typeof OntologyScopeSchema>;
3413
3413
 
3414
+ declare const SystemApiInterfaceSchema: z$1.ZodObject<{
3415
+ lifecycle: z$1.ZodDefault<z$1.ZodEnum<{
3416
+ active: "active";
3417
+ deprecated: "deprecated";
3418
+ draft: "draft";
3419
+ archived: "archived";
3420
+ disabled: "disabled";
3421
+ }>>;
3422
+ readinessProfile: z$1.ZodOptional<z$1.ZodString>;
3423
+ resourceIds: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3424
+ }, z$1.core.$strict>;
3414
3425
  type JsonPrimitive = string | number | boolean | null;
3415
3426
  type JsonValue = JsonPrimitive | JsonValue[] | {
3416
3427
  [key: string]: JsonValue;
@@ -3439,6 +3450,7 @@ interface SystemEntry {
3439
3450
  }[];
3440
3451
  policies?: string[];
3441
3452
  drivesGoals?: string[];
3453
+ apiInterface?: z$1.infer<typeof SystemApiInterfaceSchema>;
3442
3454
  /** @deprecated Use lifecycle. Accepted for one publish cycle. */
3443
3455
  status?: 'active' | 'deprecated' | 'archived';
3444
3456
  path?: string;
package/dist/app/index.js CHANGED
@@ -1,35 +1,38 @@
1
1
  import { AppErrorBoundary } from '../chunk-SHZT7ULK.js';
2
- import '../chunk-JBWJ6WHZ.js';
2
+ import '../chunk-SJHM4WDG.js';
3
3
  import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-DA6I5VEY.js';
4
4
  import '../chunk-X4WBGKJQ.js';
5
5
  import '../chunk-IIMU5YAJ.js';
6
6
  import '../chunk-RNP5R5I3.js';
7
- import { ElevasisUIProvider } from '../chunk-AUB3T7OY.js';
7
+ import { ElevasisUIProvider } from '../chunk-CXLDZSAQ.js';
8
8
  import '../chunk-5JYKCULK.js';
9
9
  import '../chunk-6D4LCJ52.js';
10
10
  import '../chunk-WF7CONXF.js';
11
11
  import '../chunk-WLOQ4IBG.js';
12
- import { SystemShell } from '../chunk-BEVGBPHW.js';
13
- import '../chunk-I53EX4VU.js';
12
+ import { SystemShell } from '../chunk-L2H5CIQF.js';
13
+ import '../chunk-RG2S6NIU.js';
14
14
  import '../chunk-3KMDHCAR.js';
15
15
  import '../chunk-S3XR4II4.js';
16
16
  import '../chunk-A7IG36LB.js';
17
17
  import '../chunk-NYBEU5TE.js';
18
- import '../chunk-Y3JQBSKQ.js';
18
+ import '../chunk-FAO7SWSL.js';
19
19
  import '../chunk-DT3QYZVU.js';
20
20
  import { TanStackRouterBridge, ScrollToTop } from '../chunk-2IFYDILW.js';
21
21
  import '../chunk-Q7DJKLEN.js';
22
- import '../chunk-X66MVMZT.js';
22
+ import '../chunk-ZJ3FG7FE.js';
23
23
  import '../chunk-KRWALB24.js';
24
- import { useSessionCheck } from '../chunk-4UCAUBOL.js';
25
- import '../chunk-YGUNUIME.js';
26
- import { ElevasisSystemsProvider, useElevasisSystems } from '../chunk-C6BDBZRO.js';
27
- import { useInitialization } from '../chunk-533DUEQY.js';
28
- import { listAllSystems } from '../chunk-566XWGPP.js';
24
+ import { useSessionCheck } from '../chunk-5GZVSTVH.js';
25
+ import '../chunk-ZRZYRDXX.js';
26
+ import { ElevasisSystemsProvider, useElevasisSystems } from '../chunk-23YQ2WH5.js';
27
+ import { useInitialization } from '../chunk-6DO4PE3O.js';
28
+ import '../chunk-GLBPGEDD.js';
29
29
  import '../chunk-DD3CCMCZ.js';
30
- import '../chunk-2Q2JQSQO.js';
30
+ import '../chunk-W2SFTXMT.js';
31
31
  import '../chunk-6ROXVZ3L.js';
32
- import '../chunk-KJ3QUBNU.js';
32
+ import { listAllSystems } from '../chunk-43ZU647H.js';
33
+ import '../chunk-2FTX4WO2.js';
34
+ import '../chunk-MQZE7SUI.js';
35
+ import '../chunk-TVTSASST.js';
33
36
  import '../chunk-BRJ3QZ4E.js';
34
37
  import '../chunk-I2KLQ2HA.js';
35
38
  import { useMemo, useCallback, useEffect } from 'react';
@@ -1,13 +1,19 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ declare const workOsOrgIdBrand: unique symbol;
5
+ /** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
6
+ type WorkOsOrgId = string & {
7
+ readonly [workOsOrgIdBrand]: true;
8
+ };
9
+
4
10
  interface AuthContextValue {
5
11
  user: {
6
12
  id: string;
7
13
  } | null;
8
14
  isLoading: boolean;
9
15
  getAccessToken: () => Promise<string>;
10
- organizationId?: string | null;
16
+ organizationId?: WorkOsOrgId | null;
11
17
  /**
12
18
  * Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
13
19
  * Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
@@ -3,80 +3,11 @@ import { ReactNode } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { z } from 'zod';
5
5
 
6
- interface AuthContextValue {
7
- user: {
8
- id: string;
9
- } | null;
10
- isLoading: boolean;
11
- getAccessToken: () => Promise<string>;
12
- organizationId?: string | null;
13
- /**
14
- * Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
15
- * Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
16
- */
17
- signIn: (options?: {
18
- state?: {
19
- returnTo?: string;
20
- };
21
- }) => void;
22
- /**
23
- * Returns true when a previous session can be recovered (refresh token
24
- * exists in storage). ProtectedRoute calls `signIn()` only when this returns
25
- * true; otherwise it navigates to the login page.
26
- *
27
- * Explicit logout clears the stored token, so canRecover() returns false
28
- * and the user sees the login page as expected.
29
- */
30
- canRecover: () => boolean;
31
- }
32
- declare function useAuthContext(): AuthContextValue;
33
- declare function AuthProvider({ value, children }: {
34
- value: AuthContextValue;
35
- children: ReactNode;
36
- }): react.FunctionComponentElement<react.ProviderProps<AuthContextValue | null>>;
37
-
38
- /**
39
- * Returns a stable reference to getAccessToken that won't change between renders
40
- *
41
- * This prevents SSE connections from reconnecting unnecessarily when the
42
- * WorkOS useAuth hook returns a new getAccessToken function reference
43
- *
44
- * @example
45
- * ```tsx
46
- * const getAccessToken = useStableAccessToken()
47
- *
48
- * useEffect(() => {
49
- * fetchEventSourceWithTokenRefresh({
50
- * getToken: getAccessToken,
51
- * // ...
52
- * })
53
- * }, [getAccessToken]) // Won't re-run on every render
54
- * ```
55
- */
56
- declare function useStableAccessToken(): () => Promise<string>;
57
-
58
- /**
59
- * Checks WorkOS session validity when window/tab regains focus
60
- *
61
- * When window or tab becomes visible after inactivity, validates session
62
- * by attempting to get access token. If session expired (WorkOS inactivity
63
- * timeout exceeded), signs out user and redirects to login.
64
- *
65
- * How it works:
66
- * 1. Window/tab regains focus after inactivity
67
- * 2. Cancel all pending queries to prevent 401 error cascade
68
- * 3. Attempt to get access token from WorkOS
69
- * 4. If successful: Resume queries with fresh token
70
- * 5. If failed (session expired): Sign out and redirect to login
71
- *
72
- * @example
73
- * // In __root.tsx
74
- * export function RootLayoutComponent() {
75
- * useSessionCheck()
76
- * return <YourApp />
77
- * }
78
- */
79
- declare function useSessionCheck(): void;
6
+ declare const workOsOrgIdBrand: unique symbol;
7
+ /** A WorkOS organization id (`org_...`) -- the auth identity for API/SSE/query keys. */
8
+ type WorkOsOrgId = string & {
9
+ readonly [workOsOrgIdBrand]: true;
10
+ };
80
11
 
81
12
  declare const AccessKeyInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
82
13
  systemPath: z.ZodString;
@@ -157,6 +88,81 @@ interface AccessAnswer {
157
88
  reason: AccessReason;
158
89
  }
159
90
 
91
+ interface AuthContextValue {
92
+ user: {
93
+ id: string;
94
+ } | null;
95
+ isLoading: boolean;
96
+ getAccessToken: () => Promise<string>;
97
+ organizationId?: WorkOsOrgId | null;
98
+ /**
99
+ * Trigger WorkOS AuthKit's sign-in flow (redirect to WorkOS hosted auth page).
100
+ * Used by ProtectedRoute for auto-recovery when `canRecover()` returns true.
101
+ */
102
+ signIn: (options?: {
103
+ state?: {
104
+ returnTo?: string;
105
+ };
106
+ }) => void;
107
+ /**
108
+ * Returns true when a previous session can be recovered (refresh token
109
+ * exists in storage). ProtectedRoute calls `signIn()` only when this returns
110
+ * true; otherwise it navigates to the login page.
111
+ *
112
+ * Explicit logout clears the stored token, so canRecover() returns false
113
+ * and the user sees the login page as expected.
114
+ */
115
+ canRecover: () => boolean;
116
+ }
117
+ declare function useAuthContext(): AuthContextValue;
118
+ declare function AuthProvider({ value, children }: {
119
+ value: AuthContextValue;
120
+ children: ReactNode;
121
+ }): react.FunctionComponentElement<react.ProviderProps<AuthContextValue | null>>;
122
+
123
+ /**
124
+ * Returns a stable reference to getAccessToken that won't change between renders
125
+ *
126
+ * This prevents SSE connections from reconnecting unnecessarily when the
127
+ * WorkOS useAuth hook returns a new getAccessToken function reference
128
+ *
129
+ * @example
130
+ * ```tsx
131
+ * const getAccessToken = useStableAccessToken()
132
+ *
133
+ * useEffect(() => {
134
+ * fetchEventSourceWithTokenRefresh({
135
+ * getToken: getAccessToken,
136
+ * // ...
137
+ * })
138
+ * }, [getAccessToken]) // Won't re-run on every render
139
+ * ```
140
+ */
141
+ declare function useStableAccessToken(): () => Promise<string>;
142
+
143
+ /**
144
+ * Checks WorkOS session validity when window/tab regains focus
145
+ *
146
+ * When window or tab becomes visible after inactivity, validates session
147
+ * by attempting to get access token. If session expired (WorkOS inactivity
148
+ * timeout exceeded), signs out user and redirects to login.
149
+ *
150
+ * How it works:
151
+ * 1. Window/tab regains focus after inactivity
152
+ * 2. Cancel all pending queries to prevent 401 error cascade
153
+ * 3. Attempt to get access token from WorkOS
154
+ * 4. If successful: Resume queries with fresh token
155
+ * 5. If failed (session expired): Sign out and redirect to login
156
+ *
157
+ * @example
158
+ * // In __root.tsx
159
+ * export function RootLayoutComponent() {
160
+ * useSessionCheck()
161
+ * return <YourApp />
162
+ * }
163
+ */
164
+ declare function useSessionCheck(): void;
165
+
160
166
  interface InitializationError {
161
167
  layer: 'auth' | 'profile' | 'organization';
162
168
  message: string;
@@ -1,11 +1,14 @@
1
- export { AccessGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-4UCAUBOL.js';
2
- export { AccessKeys } from '../chunk-YGUNUIME.js';
3
- import '../chunk-C6BDBZRO.js';
4
- import '../chunk-533DUEQY.js';
5
- import '../chunk-566XWGPP.js';
1
+ export { AccessGuard, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-5GZVSTVH.js';
2
+ export { AccessKeys } from '../chunk-ZRZYRDXX.js';
3
+ import '../chunk-23YQ2WH5.js';
4
+ import '../chunk-6DO4PE3O.js';
5
+ import '../chunk-GLBPGEDD.js';
6
6
  import '../chunk-DD3CCMCZ.js';
7
- import '../chunk-2Q2JQSQO.js';
7
+ import '../chunk-W2SFTXMT.js';
8
8
  import '../chunk-6ROXVZ3L.js';
9
- import '../chunk-KJ3QUBNU.js';
9
+ import '../chunk-43ZU647H.js';
10
+ import '../chunk-2FTX4WO2.js';
11
+ import '../chunk-MQZE7SUI.js';
12
+ import '../chunk-TVTSASST.js';
10
13
  export { AuthProvider, useAuthContext } from '../chunk-BRJ3QZ4E.js';
11
14
  import '../chunk-I2KLQ2HA.js';
@@ -1,21 +1,24 @@
1
- export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-7GQFIWP4.js';
2
- import '../chunk-I53EX4VU.js';
1
+ export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-O53S32QR.js';
2
+ import '../chunk-RG2S6NIU.js';
3
3
  import '../chunk-3KMDHCAR.js';
4
4
  import '../chunk-S3XR4II4.js';
5
5
  import '../chunk-NYBEU5TE.js';
6
6
  import '../chunk-DT3QYZVU.js';
7
7
  import '../chunk-2IFYDILW.js';
8
8
  import '../chunk-Q7DJKLEN.js';
9
- import '../chunk-X66MVMZT.js';
9
+ import '../chunk-ZJ3FG7FE.js';
10
10
  import '../chunk-KRWALB24.js';
11
- import '../chunk-4UCAUBOL.js';
12
- import '../chunk-YGUNUIME.js';
13
- import '../chunk-C6BDBZRO.js';
14
- import '../chunk-533DUEQY.js';
15
- import '../chunk-566XWGPP.js';
11
+ import '../chunk-5GZVSTVH.js';
12
+ import '../chunk-ZRZYRDXX.js';
13
+ import '../chunk-23YQ2WH5.js';
14
+ import '../chunk-6DO4PE3O.js';
15
+ import '../chunk-GLBPGEDD.js';
16
16
  import '../chunk-DD3CCMCZ.js';
17
- import '../chunk-2Q2JQSQO.js';
17
+ import '../chunk-W2SFTXMT.js';
18
18
  import '../chunk-6ROXVZ3L.js';
19
- import '../chunk-KJ3QUBNU.js';
19
+ import '../chunk-43ZU647H.js';
20
+ import '../chunk-2FTX4WO2.js';
21
+ import '../chunk-MQZE7SUI.js';
22
+ import '../chunk-TVTSASST.js';
20
23
  import '../chunk-BRJ3QZ4E.js';
21
24
  import '../chunk-I2KLQ2HA.js';
@@ -1,4 +1,5 @@
1
- import { devOnlyFor, requiresAdminFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, listAllSystems, defaultPathFor, getSortedSidebarEntries, getSemanticIconComponent } from './chunk-566XWGPP.js';
1
+ import { getSortedSidebarEntries, getSemanticIconComponent } from './chunk-GLBPGEDD.js';
2
+ import { devOnlyFor, requiresAdminFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, listAllSystems, defaultPathFor } from './chunk-43ZU647H.js';
2
3
  import { createContext, useContext, useMemo, useCallback } from 'react';
3
4
  import { jsx } from 'react/jsx-runtime';
4
5
 
@@ -1,7 +1,7 @@
1
+ import { brandWorkOsOrgId } from './chunk-MQZE7SUI.js';
1
2
  import { createContext, useContext, useMemo } from 'react';
2
3
  import { jsx } from 'react/jsx-runtime';
3
4
 
4
- // src/provider/ElevasisServiceContext.tsx
5
5
  var ElevasisServiceContext = createContext(null);
6
6
  function useElevasisServices() {
7
7
  const ctx = useContext(ElevasisServiceContext);
@@ -19,7 +19,7 @@ function ElevasisServiceProvider({
19
19
  isReady,
20
20
  children
21
21
  }) {
22
- const resolvedOrganizationId = workOSOrganizationId ?? organizationId ?? null;
22
+ const resolvedOrganizationId = brandWorkOsOrgId(workOSOrganizationId ?? organizationId ?? null);
23
23
  const value = useMemo(
24
24
  () => ({
25
25
  apiRequest,