@elevasis/ui 2.64.1 → 2.66.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.
- package/dist/api/index.js +2 -2
- package/dist/app/index.d.ts +26 -0
- package/dist/app/index.js +8 -8
- package/dist/auth/index.d.ts +12 -5
- package/dist/auth/index.js +8 -8
- package/dist/charts/index.js +8 -8
- package/dist/{chunk-DRQPEMJI.js → chunk-4DV4ECMG.js} +3 -0
- package/dist/{chunk-KRWALB24.js → chunk-6SSQGWK7.js} +1 -1
- package/dist/{chunk-ZTWA5H77.js → chunk-6ZAP3FOA.js} +0 -1
- package/dist/{chunk-PGAA4G3T.js → chunk-ANNM5R7S.js} +275 -382
- package/dist/{chunk-I3CFGE3N.js → chunk-BLXJEIQS.js} +1 -1
- package/dist/chunk-L7BZZ4SI.js +56 -0
- package/dist/chunk-P45GQ3ZW.js +104 -0
- package/dist/{chunk-EIXSQONC.js → chunk-RT4KRGZT.js} +37 -59
- package/dist/{chunk-FVOMKZ7S.js → chunk-Y6I3IC45.js} +3 -6
- package/dist/components/index.d.ts +274 -191
- package/dist/components/index.js +8 -8
- package/dist/components/navigation/index.js +8 -8
- package/dist/execution/index.d.ts +115 -104
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.d.ts +125 -9
- package/dist/features/auth/index.js +154 -14
- package/dist/features/clients/index.js +8 -8
- package/dist/features/crm/index.d.ts +20 -0
- package/dist/features/crm/index.js +8 -8
- package/dist/features/dashboard/index.js +8 -8
- package/dist/features/delivery/index.d.ts +20 -0
- package/dist/features/delivery/index.js +8 -8
- package/dist/features/knowledge/index.js +8 -8
- package/dist/features/lead-gen/index.js +8 -8
- package/dist/features/monitoring/index.js +8 -8
- package/dist/features/monitoring/requests/index.js +9 -9
- package/dist/features/notes/index.js +2 -2
- package/dist/features/operations/index.d.ts +177 -106
- package/dist/features/operations/index.js +8 -8
- package/dist/features/public-agent-chat/index.js +1 -1
- package/dist/features/settings/index.d.ts +21 -0
- package/dist/features/settings/index.js +8 -8
- package/dist/hooks/access/index.js +8 -8
- package/dist/hooks/delivery/index.d.ts +20 -0
- package/dist/hooks/delivery/index.js +8 -8
- package/dist/hooks/index.d.ts +319 -145
- package/dist/hooks/index.js +8 -8
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +0 -2
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -1
- package/dist/hooks/published.d.ts +319 -145
- package/dist/hooks/published.js +8 -8
- package/dist/index.d.ts +409 -219
- package/dist/index.js +8 -8
- package/dist/initialization/index.d.ts +95 -28
- package/dist/initialization/index.js +3 -3
- package/dist/knowledge/index.js +12 -12
- package/dist/{knowledge-search-index-JOPRYZN6.js → knowledge-search-index-6EZNBNSR.js} +4 -4
- package/dist/layout/index.js +8 -8
- package/dist/organization/index.d.ts +63 -4
- package/dist/organization/index.js +8 -8
- package/dist/profile/index.d.ts +43 -2
- package/dist/profile/index.js +1 -1
- package/dist/provider/index.d.ts +20 -0
- package/dist/provider/index.js +8 -8
- package/dist/provider/published.d.ts +20 -0
- package/dist/provider/published.js +8 -8
- package/dist/supabase/index.d.ts +40 -0
- package/dist/test-utils/index.d.ts +5 -0
- package/dist/test-utils/index.js +4 -4
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/types/index.d.ts +483 -244
- package/dist/utils/index.js +2 -2
- package/package.json +6 -4
- package/dist/chunk-LO7GWG24.js +0 -75
- package/dist/chunk-T4LA4RY2.js +0 -56
package/dist/layout/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-
|
|
1
|
+
export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, CyberParticles, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellNavList, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, Topbar, TopbarActions, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-ANNM5R7S.js';
|
|
2
2
|
import '../chunk-4OEVLV66.js';
|
|
3
3
|
export { AmbientBloomGrid, AppBackground, CyberBackground, FilmGrain, FloatingMotes, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-RBGVNPA6.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-6ZAP3FOA.js';
|
|
5
5
|
import '../chunk-AUDNF2Q7.js';
|
|
6
6
|
import '../chunk-6M6OLGQY.js';
|
|
7
7
|
import '../chunk-MKH2KOAO.js';
|
|
8
8
|
import '../chunk-XNW3O6QW.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-L7BZZ4SI.js';
|
|
10
10
|
export { SubshellNavItem, SubshellSidebarSection, sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, subshellNavItemIconSize, topbarHeight } from '../chunk-GMXGDO3I.js';
|
|
11
11
|
import '../chunk-62GVNH5U.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-P45GQ3ZW.js';
|
|
13
13
|
import '../chunk-DD3CCMCZ.js';
|
|
14
14
|
import '../chunk-M7WWRZ5Z.js';
|
|
15
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-
|
|
19
|
+
import '../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../chunk-RNP5R5I3.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-RT4KRGZT.js';
|
|
22
22
|
import '../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../chunk-
|
|
24
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../chunk-TVTSASST.js';
|
|
@@ -52,10 +52,50 @@ interface OrganizationMembership {
|
|
|
52
52
|
createdAt: string;
|
|
53
53
|
updatedAt: string;
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* How a membership row relates to the two systems that describe it.
|
|
57
|
+
*
|
|
58
|
+
* - `linked` — an `org_memberships` row that carries a `workos_membership_id`
|
|
59
|
+
* - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
|
|
60
|
+
* the invitee was provisioned but has not completed signup
|
|
61
|
+
* - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
|
|
62
|
+
*/
|
|
63
|
+
type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
|
|
55
64
|
/**
|
|
56
65
|
* Extended membership with user and organization details for UI
|
|
66
|
+
*
|
|
67
|
+
* **ID convention (step 17 of the auth/invitations architecture refactor):**
|
|
68
|
+
* `id`, `userId`, and `organizationId` are the canonical Supabase UUIDs
|
|
69
|
+
* (`org_memberships.id` / `users.id` / `organizations.id`) on every producer
|
|
70
|
+
* of this type. `workosMembershipId` / `workosUserId` /
|
|
71
|
+
* `organization.workos_org_id` carry the WorkOS-side forms explicitly instead
|
|
72
|
+
* -- the contract does not overload the canonical fields with either form.
|
|
73
|
+
*
|
|
74
|
+
* The one exception: a `workos_only` row (a WorkOS membership with no
|
|
75
|
+
* `org_memberships` row -- a sync gap) has no canonical membership UUID to
|
|
76
|
+
* report, because no such row exists. `id` stays the WorkOS `om_...` form for
|
|
77
|
+
* that `provisioningState` alone; `userId` / `organizationId` are still
|
|
78
|
+
* resolved to their Supabase forms where the user/organization themselves
|
|
79
|
+
* exist.
|
|
57
80
|
*/
|
|
58
81
|
interface MembershipWithDetails extends OrganizationMembership {
|
|
82
|
+
/**
|
|
83
|
+
* Set by `GET /memberships`. Optional so existing consumers are unaffected;
|
|
84
|
+
* treat `undefined` as "not reported by this endpoint".
|
|
85
|
+
*/
|
|
86
|
+
provisioningState?: MembershipProvisioningState;
|
|
87
|
+
/**
|
|
88
|
+
* WorkOS `om_...` form of `id`. `null` when the membership is
|
|
89
|
+
* pre-provisioned (invited, signup not completed -- no WorkOS record yet).
|
|
90
|
+
* Explicit companion to the canonical `id`; see the type-level doc comment.
|
|
91
|
+
*/
|
|
92
|
+
workosMembershipId?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* WorkOS `user_...` form of `userId`. `null` when the member has not
|
|
95
|
+
* completed WorkOS signup yet. Explicit companion to the canonical
|
|
96
|
+
* `userId`; see the type-level doc comment.
|
|
97
|
+
*/
|
|
98
|
+
workosUserId?: string | null;
|
|
59
99
|
user?: {
|
|
60
100
|
id: string;
|
|
61
101
|
email: string;
|
|
@@ -148,15 +188,34 @@ interface OrganizationSwitcherProps {
|
|
|
148
188
|
}
|
|
149
189
|
declare function OrganizationSwitcher({ currentOrganization, memberships, isLoading, onSwitch }: OrganizationSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
150
190
|
|
|
191
|
+
interface OrganizationSwitcherConnectedProps {
|
|
192
|
+
/**
|
|
193
|
+
* Extra loading condition, OR'd with this component's own internal
|
|
194
|
+
* loading state (org context initializing/refreshing). Use this instead of
|
|
195
|
+
* forking the component when a consuming app tracks an additional
|
|
196
|
+
* org-readiness signal (e.g. an app-specific initialization hook).
|
|
197
|
+
*/
|
|
198
|
+
isLoading?: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Called after `switchToOrganization` (WorkOS JWT refresh) and
|
|
201
|
+
* `switchOrganization` (provider state sync) have both resolved
|
|
202
|
+
* successfully. Use this for app-specific post-switch side effects (e.g.
|
|
203
|
+
* resetting route-local search params) instead of forking this component.
|
|
204
|
+
*/
|
|
205
|
+
onSwitched?: (workosOrgId: string) => void;
|
|
206
|
+
}
|
|
151
207
|
/**
|
|
152
208
|
* Self-wired OrganizationSwitcher that internally handles both the WorkOS JWT update
|
|
153
209
|
* (via AuthKit switchToOrganization) and the provider state update (via switchOrganization).
|
|
154
210
|
*
|
|
155
|
-
* Drop-in replacement for a custom onSwitch handler in most apps. If
|
|
156
|
-
* post-switch side effects (e.g. navigating away from an org-scoped route),
|
|
157
|
-
*
|
|
211
|
+
* Drop-in replacement for a custom onSwitch handler in most apps. If an app needs
|
|
212
|
+
* post-switch side effects (e.g. navigating away from an org-scoped route), pass
|
|
213
|
+
* `onSwitched` rather than reimplementing this component -- a prior fork
|
|
214
|
+
* (Command Center's `AppOrgSwitcher`) existed solely to add one such side effect
|
|
215
|
+
* and silently dropped this component's own extra-loading-state handling in the
|
|
216
|
+
* process.
|
|
158
217
|
*/
|
|
159
|
-
declare function OrganizationSwitcherConnected(): react_jsx_runtime.JSX.Element;
|
|
218
|
+
declare function OrganizationSwitcherConnected({ isLoading: extraLoading, onSwitched }?: OrganizationSwitcherConnectedProps): react_jsx_runtime.JSX.Element;
|
|
160
219
|
|
|
161
220
|
interface OrganizationsState {
|
|
162
221
|
currentWorkOSOrganizationId: WorkOsOrgId | null;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-
|
|
1
|
+
export { OrganizationProvider, OrganizationSwitcher, OrganizationSwitcherConnected, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-ANNM5R7S.js';
|
|
2
2
|
import '../chunk-4OEVLV66.js';
|
|
3
3
|
import '../chunk-RBGVNPA6.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-6ZAP3FOA.js';
|
|
5
5
|
import '../chunk-AUDNF2Q7.js';
|
|
6
6
|
import '../chunk-6M6OLGQY.js';
|
|
7
7
|
import '../chunk-MKH2KOAO.js';
|
|
8
8
|
import '../chunk-XNW3O6QW.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-L7BZZ4SI.js';
|
|
10
10
|
import '../chunk-GMXGDO3I.js';
|
|
11
11
|
import '../chunk-62GVNH5U.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-P45GQ3ZW.js';
|
|
13
13
|
export { OrganizationContext, useOrganization } from '../chunk-DD3CCMCZ.js';
|
|
14
14
|
import '../chunk-M7WWRZ5Z.js';
|
|
15
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-
|
|
19
|
+
import '../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../chunk-RNP5R5I3.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-RT4KRGZT.js';
|
|
22
22
|
import '../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../chunk-
|
|
24
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-Y6I3IC45.js';
|
|
24
|
+
import '../chunk-6SSQGWK7.js';
|
|
25
25
|
import '../chunk-BI5VDO2K.js';
|
|
26
26
|
import '../chunk-MQZE7SUI.js';
|
|
27
27
|
import '../chunk-TVTSASST.js';
|
package/dist/profile/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { QueryKey } from '@tanstack/react-query';
|
|
3
4
|
|
|
4
5
|
type Json = string | number | boolean | null | {
|
|
5
6
|
[key: string]: Json | undefined;
|
|
@@ -2745,6 +2746,7 @@ type Database = {
|
|
|
2745
2746
|
deleted_at: string | null;
|
|
2746
2747
|
ended_at: string | null;
|
|
2747
2748
|
memory_snapshot: Json;
|
|
2749
|
+
memory_version: number;
|
|
2748
2750
|
metadata: Json | null;
|
|
2749
2751
|
organization_id: string;
|
|
2750
2752
|
resource_id: string;
|
|
@@ -2761,6 +2763,7 @@ type Database = {
|
|
|
2761
2763
|
deleted_at?: string | null;
|
|
2762
2764
|
ended_at?: string | null;
|
|
2763
2765
|
memory_snapshot: Json;
|
|
2766
|
+
memory_version?: number;
|
|
2764
2767
|
metadata?: Json | null;
|
|
2765
2768
|
organization_id: string;
|
|
2766
2769
|
resource_id: string;
|
|
@@ -2777,6 +2780,7 @@ type Database = {
|
|
|
2777
2780
|
deleted_at?: string | null;
|
|
2778
2781
|
ended_at?: string | null;
|
|
2779
2782
|
memory_snapshot?: Json;
|
|
2783
|
+
memory_version?: number;
|
|
2780
2784
|
metadata?: Json | null;
|
|
2781
2785
|
organization_id?: string;
|
|
2782
2786
|
resource_id?: string;
|
|
@@ -3114,9 +3118,14 @@ type Database = {
|
|
|
3114
3118
|
p_session_id: string;
|
|
3115
3119
|
};
|
|
3116
3120
|
Returns: {
|
|
3121
|
+
context_window_size: number;
|
|
3117
3122
|
created_at: string;
|
|
3123
|
+
cumulative_input_tokens: number;
|
|
3124
|
+
cumulative_output_tokens: number;
|
|
3125
|
+
deleted_at: string;
|
|
3118
3126
|
ended_at: string;
|
|
3119
3127
|
memory_snapshot: Json;
|
|
3128
|
+
memory_version: number;
|
|
3120
3129
|
metadata: Json;
|
|
3121
3130
|
organization_id: string;
|
|
3122
3131
|
resource_id: string;
|
|
@@ -3158,6 +3167,18 @@ type Database = {
|
|
|
3158
3167
|
};
|
|
3159
3168
|
Returns: boolean;
|
|
3160
3169
|
};
|
|
3170
|
+
increment_session_tokens: {
|
|
3171
|
+
Args: {
|
|
3172
|
+
p_input_tokens: number;
|
|
3173
|
+
p_output_tokens: number;
|
|
3174
|
+
p_session_id: string;
|
|
3175
|
+
};
|
|
3176
|
+
Returns: {
|
|
3177
|
+
context_window_size: number;
|
|
3178
|
+
cumulative_input_tokens: number;
|
|
3179
|
+
cumulative_output_tokens: number;
|
|
3180
|
+
}[];
|
|
3181
|
+
};
|
|
3161
3182
|
is_org_member: {
|
|
3162
3183
|
Args: {
|
|
3163
3184
|
org_id: string;
|
|
@@ -3303,15 +3324,35 @@ interface UseUserProfileReturn {
|
|
|
3303
3324
|
error: Error | null;
|
|
3304
3325
|
refetch: () => Promise<void>;
|
|
3305
3326
|
}
|
|
3327
|
+
/**
|
|
3328
|
+
* Canonical TanStack Query key for the current user's profile.
|
|
3329
|
+
*
|
|
3330
|
+
* Every consumer (ProfileProvider, Command Center's root layout, the
|
|
3331
|
+
* onboarding gate, the welcome flow, account settings, ...) reads and writes
|
|
3332
|
+
* this exact key, so they share one cache entry instead of each issuing an
|
|
3333
|
+
* independent `/users/me/sync` call. Not user-scoped: a full sign-out /
|
|
3334
|
+
* sign-in cycle in this app navigates through WorkOS (a real page load),
|
|
3335
|
+
* which tears down the QueryClient, so no explicit user id is needed to
|
|
3336
|
+
* avoid stale cross-user reads within a single session.
|
|
3337
|
+
*/
|
|
3338
|
+
declare const USER_PROFILE_QUERY_KEY: QueryKey;
|
|
3306
3339
|
/**
|
|
3307
3340
|
* Hook for managing user profile data with automatic WorkOS -> Supabase sync
|
|
3308
3341
|
*
|
|
3309
|
-
*
|
|
3342
|
+
* Backed by a single shared TanStack Query cache entry keyed on
|
|
3343
|
+
* {@link USER_PROFILE_QUERY_KEY}. This hook:
|
|
3310
3344
|
* 1. Automatically syncs WorkOS user data to Supabase on authentication
|
|
3311
3345
|
* 2. Provides access to the user's Supabase profile data
|
|
3312
3346
|
* 3. Handles loading states and errors
|
|
3313
3347
|
* 4. Includes a refetch function for manual updates
|
|
3314
3348
|
*
|
|
3349
|
+
* Because every consumer queries the same key, calling this hook from
|
|
3350
|
+
* multiple places in the tree (directly or via `useProfile()`) triggers at
|
|
3351
|
+
* most one `/users/me/sync` request per session — later mounts simply read
|
|
3352
|
+
* the cached result. Call `refetch()` (or invalidate {@link USER_PROFILE_QUERY_KEY}
|
|
3353
|
+
* via `useQueryClient()`) to force a fresh sync after a mutation that changes
|
|
3354
|
+
* the profile, e.g. completing onboarding.
|
|
3355
|
+
*
|
|
3315
3356
|
* @param options - Optional configuration including error handler and apiRequest
|
|
3316
3357
|
*/
|
|
3317
3358
|
declare const useUserProfile: (options?: UseUserProfileOptions) => UseUserProfileReturn;
|
|
@@ -3344,5 +3385,5 @@ declare class UserProfileService {
|
|
|
3344
3385
|
}>): Promise<SupabaseUserProfile | null>;
|
|
3345
3386
|
}
|
|
3346
3387
|
|
|
3347
|
-
export { ProfileProvider, UserProfileService, useProfile, useUserProfile };
|
|
3388
|
+
export { ProfileProvider, USER_PROFILE_QUERY_KEY, UserProfileService, useProfile, useUserProfile };
|
|
3348
3389
|
export type { ProfileContextValue, SupabaseUserProfile, UseUserProfileReturn };
|
package/dist/profile/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-RNP5R5I3.js';
|
|
2
|
-
export { ProfileProvider, UserProfileService, useProfile, useUserProfile } from '../chunk-
|
|
2
|
+
export { ProfileProvider, USER_PROFILE_QUERY_KEY, UserProfileService, useProfile, useUserProfile } from '../chunk-RT4KRGZT.js';
|
|
3
3
|
import '../chunk-BI5VDO2K.js';
|
|
4
4
|
import '../chunk-MQZE7SUI.js';
|
|
5
5
|
import '../chunk-TVTSASST.js';
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/provider/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { AppearanceProvider, CrmActionsProvider, ElevasisCoreProvider, ElevasisSystemsProvider, ElevasisUIProvider, ListActionsProvider, NotificationProvider, SystemShell, createTestSystemsProvider, useAppearance, useCrmActions, useElevasisSystems, useListActions, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-
|
|
1
|
+
export { AppearanceProvider, CrmActionsProvider, ElevasisCoreProvider, ElevasisSystemsProvider, ElevasisUIProvider, ListActionsProvider, NotificationProvider, SystemShell, createTestSystemsProvider, useAppearance, useCrmActions, useElevasisSystems, useListActions, useNotificationAdapter, useOptionalElevasisSystems, useResolvedOrganizationModel } from '../chunk-ANNM5R7S.js';
|
|
2
2
|
import '../chunk-4OEVLV66.js';
|
|
3
3
|
import '../chunk-RBGVNPA6.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-6ZAP3FOA.js';
|
|
5
5
|
import '../chunk-AUDNF2Q7.js';
|
|
6
6
|
import '../chunk-6M6OLGQY.js';
|
|
7
7
|
import '../chunk-MKH2KOAO.js';
|
|
8
8
|
import '../chunk-XNW3O6QW.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-L7BZZ4SI.js';
|
|
10
10
|
import '../chunk-GMXGDO3I.js';
|
|
11
11
|
import '../chunk-62GVNH5U.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-P45GQ3ZW.js';
|
|
13
13
|
import '../chunk-DD3CCMCZ.js';
|
|
14
14
|
import '../chunk-M7WWRZ5Z.js';
|
|
15
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-
|
|
19
|
+
import '../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../chunk-RNP5R5I3.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-RT4KRGZT.js';
|
|
22
22
|
import '../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../chunk-
|
|
24
|
-
import '../chunk-
|
|
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,27 +1,27 @@
|
|
|
1
|
-
export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems } from '../chunk-
|
|
1
|
+
export { AppearanceProvider, ElevasisCoreProvider, ElevasisSystemsProvider, NotificationProvider, SystemShell, useAppearance, useElevasisSystems, useNotificationAdapter, useOptionalElevasisSystems } from '../chunk-ANNM5R7S.js';
|
|
2
2
|
import '../chunk-4OEVLV66.js';
|
|
3
3
|
import '../chunk-RBGVNPA6.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-6ZAP3FOA.js';
|
|
5
5
|
import '../chunk-AUDNF2Q7.js';
|
|
6
6
|
import '../chunk-6M6OLGQY.js';
|
|
7
7
|
import '../chunk-MKH2KOAO.js';
|
|
8
8
|
import '../chunk-XNW3O6QW.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-L7BZZ4SI.js';
|
|
10
10
|
import '../chunk-GMXGDO3I.js';
|
|
11
11
|
import '../chunk-62GVNH5U.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-P45GQ3ZW.js';
|
|
13
13
|
import '../chunk-DD3CCMCZ.js';
|
|
14
14
|
import '../chunk-M7WWRZ5Z.js';
|
|
15
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-
|
|
19
|
+
import '../chunk-BLXJEIQS.js';
|
|
20
20
|
import '../chunk-RNP5R5I3.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-RT4KRGZT.js';
|
|
22
22
|
import '../chunk-I7BZVVVU.js';
|
|
23
|
-
import '../chunk-
|
|
24
|
-
import '../chunk-
|
|
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';
|
package/dist/supabase/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/test-utils/index.js
CHANGED
|
@@ -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-
|
|
4
|
-
export { createMockUseAuth, mockAuthLoading, mockAuthenticatedUser, mockUnauthenticatedUser, mockUseAuth, mockWorkOSUser } from '../chunk-
|
|
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-
|
|
10
|
-
import '../chunk-
|
|
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-
|
|
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';
|
package/dist/test-utils/setup.js
CHANGED
|
@@ -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-
|
|
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';
|