@elevasis/ui 2.64.0 → 2.65.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 (60) hide show
  1. package/dist/api/index.js +2 -2
  2. package/dist/app/index.d.ts +20 -0
  3. package/dist/app/index.js +5 -5
  4. package/dist/auth/index.js +5 -5
  5. package/dist/charts/index.js +5 -5
  6. package/dist/{chunk-XDOC3ULZ.js → chunk-3WVZRN37.js} +42 -19
  7. package/dist/{chunk-DRQPEMJI.js → chunk-4DV4ECMG.js} +3 -0
  8. package/dist/{chunk-KRWALB24.js → chunk-6SSQGWK7.js} +1 -1
  9. package/dist/{chunk-I3CFGE3N.js → chunk-BLXJEIQS.js} +1 -1
  10. package/dist/{chunk-7AJKZM4F.js → chunk-JFBZ6XDW.js} +2 -1
  11. package/dist/{chunk-FVOMKZ7S.js → chunk-Y6I3IC45.js} +3 -6
  12. package/dist/components/chat/index.js +1 -1
  13. package/dist/components/index.d.ts +108 -56
  14. package/dist/components/index.js +5 -5
  15. package/dist/components/navigation/index.js +5 -5
  16. package/dist/execution/index.js +2 -2
  17. package/dist/features/auth/index.d.ts +87 -2
  18. package/dist/features/auth/index.js +143 -8
  19. package/dist/features/clients/index.js +5 -5
  20. package/dist/features/crm/index.d.ts +20 -0
  21. package/dist/features/crm/index.js +5 -5
  22. package/dist/features/dashboard/index.js +5 -5
  23. package/dist/features/delivery/index.d.ts +20 -0
  24. package/dist/features/delivery/index.js +5 -5
  25. package/dist/features/knowledge/index.js +5 -5
  26. package/dist/features/lead-gen/index.js +5 -5
  27. package/dist/features/monitoring/index.js +5 -5
  28. package/dist/features/monitoring/requests/index.js +6 -6
  29. package/dist/features/operations/index.d.ts +36 -1
  30. package/dist/features/operations/index.js +5 -5
  31. package/dist/features/public-agent-chat/index.js +2 -2
  32. package/dist/features/settings/index.d.ts +20 -0
  33. package/dist/features/settings/index.js +5 -5
  34. package/dist/hooks/access/index.js +5 -5
  35. package/dist/hooks/delivery/index.d.ts +20 -0
  36. package/dist/hooks/delivery/index.js +5 -5
  37. package/dist/hooks/index.d.ts +53 -1
  38. package/dist/hooks/index.js +5 -5
  39. package/dist/hooks/published.d.ts +53 -1
  40. package/dist/hooks/published.js +5 -5
  41. package/dist/index.d.ts +109 -57
  42. package/dist/index.js +5 -5
  43. package/dist/initialization/index.d.ts +34 -0
  44. package/dist/knowledge/index.js +6 -6
  45. package/dist/layout/index.js +5 -5
  46. package/dist/organization/index.d.ts +14 -0
  47. package/dist/organization/index.js +5 -5
  48. package/dist/profile/index.d.ts +20 -0
  49. package/dist/provider/index.d.ts +20 -0
  50. package/dist/provider/index.js +5 -5
  51. package/dist/provider/published.d.ts +20 -0
  52. package/dist/provider/published.js +5 -5
  53. package/dist/supabase/index.d.ts +40 -0
  54. package/dist/test-utils/index.d.ts +5 -0
  55. package/dist/test-utils/index.js +4 -4
  56. package/dist/test-utils/setup-integration.js +1 -1
  57. package/dist/test-utils/setup.js +1 -1
  58. package/dist/types/index.d.ts +237 -57
  59. package/dist/utils/index.js +2 -2
  60. package/package.json +8 -6
@@ -2848,6 +2848,7 @@ type Database = {
2848
2848
  deleted_at: string | null;
2849
2849
  ended_at: string | null;
2850
2850
  memory_snapshot: Json;
2851
+ memory_version: number;
2851
2852
  metadata: Json | null;
2852
2853
  organization_id: string;
2853
2854
  resource_id: string;
@@ -2864,6 +2865,7 @@ type Database = {
2864
2865
  deleted_at?: string | null;
2865
2866
  ended_at?: string | null;
2866
2867
  memory_snapshot: Json;
2868
+ memory_version?: number;
2867
2869
  metadata?: Json | null;
2868
2870
  organization_id: string;
2869
2871
  resource_id: string;
@@ -2880,6 +2882,7 @@ type Database = {
2880
2882
  deleted_at?: string | null;
2881
2883
  ended_at?: string | null;
2882
2884
  memory_snapshot?: Json;
2885
+ memory_version?: number;
2883
2886
  metadata?: Json | null;
2884
2887
  organization_id?: string;
2885
2888
  resource_id?: string;
@@ -3217,9 +3220,14 @@ type Database = {
3217
3220
  p_session_id: string;
3218
3221
  };
3219
3222
  Returns: {
3223
+ context_window_size: number;
3220
3224
  created_at: string;
3225
+ cumulative_input_tokens: number;
3226
+ cumulative_output_tokens: number;
3227
+ deleted_at: string;
3221
3228
  ended_at: string;
3222
3229
  memory_snapshot: Json;
3230
+ memory_version: number;
3223
3231
  metadata: Json;
3224
3232
  organization_id: string;
3225
3233
  resource_id: string;
@@ -3261,6 +3269,18 @@ type Database = {
3261
3269
  };
3262
3270
  Returns: boolean;
3263
3271
  };
3272
+ increment_session_tokens: {
3273
+ Args: {
3274
+ p_input_tokens: number;
3275
+ p_output_tokens: number;
3276
+ p_session_id: string;
3277
+ };
3278
+ Returns: {
3279
+ context_window_size: number;
3280
+ cumulative_input_tokens: number;
3281
+ cumulative_output_tokens: number;
3282
+ }[];
3283
+ };
3264
3284
  is_org_member: {
3265
3285
  Args: {
3266
3286
  org_id: string;
@@ -1,4 +1,4 @@
1
- export { AppearanceProvider, CrmActionsProvider, ElevasisCoreProvider, ElevasisSystemsProvider, ElevasisUIProvider, ListActionsProvider, NotificationProvider, SystemShell, createTestSystemsProvider, useAppearance, useCrmActions, useElevasisSystems, useListActions, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-XDOC3ULZ.js';
1
+ export { AppearanceProvider, CrmActionsProvider, ElevasisCoreProvider, ElevasisSystemsProvider, ElevasisUIProvider, ListActionsProvider, NotificationProvider, SystemShell, createTestSystemsProvider, useAppearance, useCrmActions, useElevasisSystems, useListActions, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-3WVZRN37.js';
2
2
  import '../chunk-4OEVLV66.js';
3
3
  import '../chunk-RBGVNPA6.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -12,16 +12,16 @@ import '../chunk-62GVNH5U.js';
12
12
  import '../chunk-LO7GWG24.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-M7WWRZ5Z.js';
15
- import '../chunk-7AJKZM4F.js';
15
+ import '../chunk-JFBZ6XDW.js';
16
16
  import '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- import '../chunk-I3CFGE3N.js';
19
+ import '../chunk-BLXJEIQS.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-EIXSQONC.js';
22
22
  import '../chunk-I7BZVVVU.js';
23
- import '../chunk-FVOMKZ7S.js';
24
- import '../chunk-KRWALB24.js';
23
+ import '../chunk-Y6I3IC45.js';
24
+ import '../chunk-6SSQGWK7.js';
25
25
  export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
@@ -2847,6 +2847,7 @@ type Database = {
2847
2847
  deleted_at: string | null;
2848
2848
  ended_at: string | null;
2849
2849
  memory_snapshot: Json;
2850
+ memory_version: number;
2850
2851
  metadata: Json | null;
2851
2852
  organization_id: string;
2852
2853
  resource_id: string;
@@ -2863,6 +2864,7 @@ type Database = {
2863
2864
  deleted_at?: string | null;
2864
2865
  ended_at?: string | null;
2865
2866
  memory_snapshot: Json;
2867
+ memory_version?: number;
2866
2868
  metadata?: Json | null;
2867
2869
  organization_id: string;
2868
2870
  resource_id: string;
@@ -2879,6 +2881,7 @@ type Database = {
2879
2881
  deleted_at?: string | null;
2880
2882
  ended_at?: string | null;
2881
2883
  memory_snapshot?: Json;
2884
+ memory_version?: number;
2882
2885
  metadata?: Json | null;
2883
2886
  organization_id?: string;
2884
2887
  resource_id?: string;
@@ -3216,9 +3219,14 @@ type Database = {
3216
3219
  p_session_id: string;
3217
3220
  };
3218
3221
  Returns: {
3222
+ context_window_size: number;
3219
3223
  created_at: string;
3224
+ cumulative_input_tokens: number;
3225
+ cumulative_output_tokens: number;
3226
+ deleted_at: string;
3220
3227
  ended_at: string;
3221
3228
  memory_snapshot: Json;
3229
+ memory_version: number;
3222
3230
  metadata: Json;
3223
3231
  organization_id: string;
3224
3232
  resource_id: string;
@@ -3260,6 +3268,18 @@ type Database = {
3260
3268
  };
3261
3269
  Returns: boolean;
3262
3270
  };
3271
+ increment_session_tokens: {
3272
+ Args: {
3273
+ p_input_tokens: number;
3274
+ p_output_tokens: number;
3275
+ p_session_id: string;
3276
+ };
3277
+ Returns: {
3278
+ context_window_size: number;
3279
+ cumulative_input_tokens: number;
3280
+ cumulative_output_tokens: number;
3281
+ }[];
3282
+ };
3263
3283
  is_org_member: {
3264
3284
  Args: {
3265
3285
  org_id: string;
@@ -1,4 +1,4 @@
1
- export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems } from '../chunk-XDOC3ULZ.js';
1
+ export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems } from '../chunk-3WVZRN37.js';
2
2
  import '../chunk-4OEVLV66.js';
3
3
  import '../chunk-RBGVNPA6.js';
4
4
  import '../chunk-ZTWA5H77.js';
@@ -12,16 +12,16 @@ import '../chunk-62GVNH5U.js';
12
12
  import '../chunk-LO7GWG24.js';
13
13
  import '../chunk-DD3CCMCZ.js';
14
14
  import '../chunk-M7WWRZ5Z.js';
15
- import '../chunk-7AJKZM4F.js';
15
+ import '../chunk-JFBZ6XDW.js';
16
16
  import '../chunk-2IFYDILW.js';
17
17
  import '../chunk-Q7DJKLEN.js';
18
18
  import '../chunk-HENXLGVD.js';
19
- import '../chunk-I3CFGE3N.js';
19
+ import '../chunk-BLXJEIQS.js';
20
20
  import '../chunk-RNP5R5I3.js';
21
21
  import '../chunk-EIXSQONC.js';
22
22
  import '../chunk-I7BZVVVU.js';
23
- import '../chunk-FVOMKZ7S.js';
24
- import '../chunk-KRWALB24.js';
23
+ import '../chunk-Y6I3IC45.js';
24
+ import '../chunk-6SSQGWK7.js';
25
25
  export { ElevasisServiceProvider, useElevasisServices } from '../chunk-BI5VDO2K.js';
26
26
  import '../chunk-MQZE7SUI.js';
27
27
  import '../chunk-TVTSASST.js';
@@ -2744,6 +2744,7 @@ type Database = {
2744
2744
  deleted_at: string | null;
2745
2745
  ended_at: string | null;
2746
2746
  memory_snapshot: Json;
2747
+ memory_version: number;
2747
2748
  metadata: Json | null;
2748
2749
  organization_id: string;
2749
2750
  resource_id: string;
@@ -2760,6 +2761,7 @@ type Database = {
2760
2761
  deleted_at?: string | null;
2761
2762
  ended_at?: string | null;
2762
2763
  memory_snapshot: Json;
2764
+ memory_version?: number;
2763
2765
  metadata?: Json | null;
2764
2766
  organization_id: string;
2765
2767
  resource_id: string;
@@ -2776,6 +2778,7 @@ type Database = {
2776
2778
  deleted_at?: string | null;
2777
2779
  ended_at?: string | null;
2778
2780
  memory_snapshot?: Json;
2781
+ memory_version?: number;
2779
2782
  metadata?: Json | null;
2780
2783
  organization_id?: string;
2781
2784
  resource_id?: string;
@@ -3113,9 +3116,14 @@ type Database = {
3113
3116
  p_session_id: string;
3114
3117
  };
3115
3118
  Returns: {
3119
+ context_window_size: number;
3116
3120
  created_at: string;
3121
+ cumulative_input_tokens: number;
3122
+ cumulative_output_tokens: number;
3123
+ deleted_at: string;
3117
3124
  ended_at: string;
3118
3125
  memory_snapshot: Json;
3126
+ memory_version: number;
3119
3127
  metadata: Json;
3120
3128
  organization_id: string;
3121
3129
  resource_id: string;
@@ -3157,6 +3165,18 @@ type Database = {
3157
3165
  };
3158
3166
  Returns: boolean;
3159
3167
  };
3168
+ increment_session_tokens: {
3169
+ Args: {
3170
+ p_input_tokens: number;
3171
+ p_output_tokens: number;
3172
+ p_session_id: string;
3173
+ };
3174
+ Returns: {
3175
+ context_window_size: number;
3176
+ cumulative_input_tokens: number;
3177
+ cumulative_output_tokens: number;
3178
+ }[];
3179
+ };
3160
3180
  is_org_member: {
3161
3181
  Args: {
3162
3182
  org_id: string;
@@ -5842,6 +5862,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
5842
5862
  deleted_at: string | null;
5843
5863
  ended_at: string | null;
5844
5864
  memory_snapshot: Json;
5865
+ memory_version: number;
5845
5866
  metadata: Json | null;
5846
5867
  organization_id: string;
5847
5868
  resource_id: string;
@@ -5858,6 +5879,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
5858
5879
  deleted_at?: string | null;
5859
5880
  ended_at?: string | null;
5860
5881
  memory_snapshot: Json;
5882
+ memory_version?: number;
5861
5883
  metadata?: Json | null;
5862
5884
  organization_id: string;
5863
5885
  resource_id: string;
@@ -5874,6 +5896,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
5874
5896
  deleted_at?: string | null;
5875
5897
  ended_at?: string | null;
5876
5898
  memory_snapshot?: Json;
5899
+ memory_version?: number;
5877
5900
  metadata?: Json | null;
5878
5901
  organization_id?: string;
5879
5902
  resource_id?: string;
@@ -6197,9 +6220,14 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
6197
6220
  p_session_id: string;
6198
6221
  };
6199
6222
  Returns: {
6223
+ context_window_size: number;
6200
6224
  created_at: string;
6225
+ cumulative_input_tokens: number;
6226
+ cumulative_output_tokens: number;
6227
+ deleted_at: string;
6201
6228
  ended_at: string;
6202
6229
  memory_snapshot: Json;
6230
+ memory_version: number;
6203
6231
  metadata: Json;
6204
6232
  organization_id: string;
6205
6233
  resource_id: string;
@@ -6241,6 +6269,18 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
6241
6269
  };
6242
6270
  Returns: boolean;
6243
6271
  };
6272
+ increment_session_tokens: {
6273
+ Args: {
6274
+ p_input_tokens: number;
6275
+ p_output_tokens: number;
6276
+ p_session_id: string;
6277
+ };
6278
+ Returns: {
6279
+ context_window_size: number;
6280
+ cumulative_input_tokens: number;
6281
+ cumulative_output_tokens: number;
6282
+ }[];
6283
+ };
6244
6284
  is_org_member: {
6245
6285
  Args: {
6246
6286
  org_id: string;
@@ -87,6 +87,7 @@ declare const mockUseAuth: {
87
87
  user: typeof mockWorkOSUser | null;
88
88
  isLoading: boolean;
89
89
  signIn: vitest.Mock<(...args: any[]) => any>;
90
+ signUp: vitest.Mock<(...args: any[]) => any>;
90
91
  signOut: vitest.Mock<(...args: any[]) => any>;
91
92
  getAccessToken: vitest.Mock<(...args: any[]) => any>;
92
93
  organizationId: string;
@@ -96,6 +97,7 @@ declare function createMockUseAuth(overrides?: Partial<typeof mockUseAuth>): {
96
97
  user: typeof mockWorkOSUser | null;
97
98
  isLoading: boolean;
98
99
  signIn: vitest.Mock<(...args: any[]) => any>;
100
+ signUp: vitest.Mock<(...args: any[]) => any>;
99
101
  signOut: vitest.Mock<(...args: any[]) => any>;
100
102
  getAccessToken: vitest.Mock<(...args: any[]) => any>;
101
103
  organizationId: string;
@@ -105,6 +107,7 @@ declare const mockAuthenticatedUser: () => {
105
107
  user: typeof mockWorkOSUser | null;
106
108
  isLoading: boolean;
107
109
  signIn: vitest.Mock<(...args: any[]) => any>;
110
+ signUp: vitest.Mock<(...args: any[]) => any>;
108
111
  signOut: vitest.Mock<(...args: any[]) => any>;
109
112
  getAccessToken: vitest.Mock<(...args: any[]) => any>;
110
113
  organizationId: string;
@@ -114,6 +117,7 @@ declare const mockUnauthenticatedUser: () => {
114
117
  user: typeof mockWorkOSUser | null;
115
118
  isLoading: boolean;
116
119
  signIn: vitest.Mock<(...args: any[]) => any>;
120
+ signUp: vitest.Mock<(...args: any[]) => any>;
117
121
  signOut: vitest.Mock<(...args: any[]) => any>;
118
122
  getAccessToken: vitest.Mock<(...args: any[]) => any>;
119
123
  organizationId: string;
@@ -123,6 +127,7 @@ declare const mockAuthLoading: () => {
123
127
  user: typeof mockWorkOSUser | null;
124
128
  isLoading: boolean;
125
129
  signIn: vitest.Mock<(...args: any[]) => any>;
130
+ signUp: vitest.Mock<(...args: any[]) => any>;
126
131
  signOut: vitest.Mock<(...args: any[]) => any>;
127
132
  getAccessToken: vitest.Mock<(...args: any[]) => any>;
128
133
  organizationId: string;
@@ -1,13 +1,13 @@
1
1
  import { server, handlers } from '../chunk-7XKCG5CT.js';
2
2
  export { handlers, server } from '../chunk-7XKCG5CT.js';
3
- import { mockWorkOSUser, mockUseAuth, mockUnauthenticatedUser, mockAuthenticatedUser, mockAuthLoading, createMockUseAuth } from '../chunk-DRQPEMJI.js';
4
- export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser } from '../chunk-DRQPEMJI.js';
3
+ import { mockWorkOSUser, mockUseAuth, mockUnauthenticatedUser, mockAuthenticatedUser, mockAuthLoading, createMockUseAuth } from '../chunk-4DV4ECMG.js';
4
+ export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser } from '../chunk-4DV4ECMG.js';
5
5
  import '../chunk-M535KHLW.js';
6
6
  import { ApiClientProvider } from '../chunk-XNW3O6QW.js';
7
7
  import '../chunk-DD3CCMCZ.js';
8
8
  import '../chunk-I7BZVVVU.js';
9
- import '../chunk-FVOMKZ7S.js';
10
- import '../chunk-KRWALB24.js';
9
+ import '../chunk-Y6I3IC45.js';
10
+ import '../chunk-6SSQGWK7.js';
11
11
  import { ElevasisServiceProvider } from '../chunk-BI5VDO2K.js';
12
12
  import '../chunk-MQZE7SUI.js';
13
13
  import '../chunk-TVTSASST.js';
@@ -1,5 +1,5 @@
1
1
  import { setupBrowserMocks } from '../chunk-HJ4CJIWN.js';
2
- import { mockUseAuth } from '../chunk-DRQPEMJI.js';
2
+ import { mockUseAuth } from '../chunk-4DV4ECMG.js';
3
3
  import '../chunk-I2KLQ2HA.js';
4
4
  import '@testing-library/jest-dom/vitest';
5
5
  import { cleanup } from '@testing-library/react';
@@ -1,6 +1,6 @@
1
1
  import { server } from '../chunk-7XKCG5CT.js';
2
2
  import { setupBrowserMocks } from '../chunk-HJ4CJIWN.js';
3
- import { mockUseAuth } from '../chunk-DRQPEMJI.js';
3
+ import { mockUseAuth } from '../chunk-4DV4ECMG.js';
4
4
  import '../chunk-I2KLQ2HA.js';
5
5
  import '@testing-library/jest-dom/vitest';
6
6
  import { cleanup } from '@testing-library/react';