@elevasis/ui 2.51.0 → 2.51.1
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/app/index.d.ts +82 -151
- package/dist/app/index.js +5 -4
- package/dist/auth/index.js +3 -3
- package/dist/charts/index.js +3 -3
- package/dist/{chunk-GUKY77FJ.js → chunk-E6NSKXYN.js} +12 -4
- package/dist/chunk-M7WWRZ5Z.js +159 -0
- package/dist/{chunk-SBNC3FRX.js → chunk-V3B26UZR.js} +10 -10
- package/dist/components/chat/index.d.ts +9 -1
- package/dist/components/chat/index.js +1 -1
- package/dist/components/index.d.ts +80 -150
- package/dist/components/index.js +3 -3
- package/dist/components/navigation/index.js +3 -3
- package/dist/features/auth/index.d.ts +80 -150
- package/dist/features/auth/index.js +4 -4
- package/dist/features/clients/index.js +3 -3
- package/dist/features/crm/index.d.ts +80 -150
- package/dist/features/crm/index.js +3 -3
- package/dist/features/dashboard/index.js +3 -3
- package/dist/features/delivery/index.d.ts +80 -150
- package/dist/features/delivery/index.js +3 -3
- package/dist/features/knowledge/index.js +3 -3
- package/dist/features/lead-gen/index.js +3 -3
- package/dist/features/monitoring/index.js +3 -3
- package/dist/features/monitoring/requests/index.js +4 -4
- package/dist/features/operations/index.js +3 -3
- package/dist/features/public-agent-chat/index.d.ts +17 -3
- package/dist/features/public-agent-chat/index.js +313 -113
- package/dist/features/settings/index.d.ts +80 -150
- package/dist/features/settings/index.js +3 -3
- package/dist/hooks/access/index.js +3 -3
- package/dist/hooks/delivery/index.d.ts +80 -150
- package/dist/hooks/delivery/index.js +3 -3
- package/dist/hooks/index.d.ts +97 -151
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/published.d.ts +97 -151
- package/dist/hooks/published.js +3 -3
- package/dist/index.d.ts +97 -151
- package/dist/index.js +3 -3
- package/dist/initialization/index.d.ts +80 -150
- package/dist/knowledge/index.js +4 -4
- package/dist/layout/index.js +3 -3
- package/dist/organization/index.js +3 -3
- package/dist/profile/index.d.ts +80 -150
- package/dist/provider/index.d.ts +80 -150
- package/dist/provider/index.js +3 -3
- package/dist/provider/published.d.ts +80 -150
- package/dist/provider/published.js +3 -3
- package/dist/supabase/index.d.ts +159 -292
- package/dist/types/index.d.ts +80 -150
- package/package.json +5 -5
- package/dist/chunk-EJL4U7OZ.js +0 -79
package/dist/types/index.d.ts
CHANGED
|
@@ -758,9 +758,6 @@ type Json = string | number | boolean | null | {
|
|
|
758
758
|
[key: string]: Json | undefined;
|
|
759
759
|
} | Json[];
|
|
760
760
|
type Database = {
|
|
761
|
-
__InternalSupabase: {
|
|
762
|
-
PostgrestVersion: "12.2.3 (519615d)";
|
|
763
|
-
};
|
|
764
761
|
public: {
|
|
765
762
|
Tables: {
|
|
766
763
|
acq_artifacts: {
|
|
@@ -1960,6 +1957,74 @@ type Database = {
|
|
|
1960
1957
|
}
|
|
1961
1958
|
];
|
|
1962
1959
|
};
|
|
1960
|
+
agent_access_grants: {
|
|
1961
|
+
Row: {
|
|
1962
|
+
allowed_origins: string[];
|
|
1963
|
+
branding: Json;
|
|
1964
|
+
capture_fields: Json;
|
|
1965
|
+
code_hash: string | null;
|
|
1966
|
+
code_salt: string | null;
|
|
1967
|
+
created_at: string;
|
|
1968
|
+
disabled_at: string | null;
|
|
1969
|
+
expires_at: string | null;
|
|
1970
|
+
id: string;
|
|
1971
|
+
max_sessions_per_visitor: number;
|
|
1972
|
+
max_turns_per_session: number;
|
|
1973
|
+
mode: string;
|
|
1974
|
+
organization_id: string;
|
|
1975
|
+
resource_id: string;
|
|
1976
|
+
slug: string;
|
|
1977
|
+
tool_policy: Json;
|
|
1978
|
+
updated_at: string;
|
|
1979
|
+
};
|
|
1980
|
+
Insert: {
|
|
1981
|
+
allowed_origins?: string[];
|
|
1982
|
+
branding?: Json;
|
|
1983
|
+
capture_fields?: Json;
|
|
1984
|
+
code_hash?: string | null;
|
|
1985
|
+
code_salt?: string | null;
|
|
1986
|
+
created_at?: string;
|
|
1987
|
+
disabled_at?: string | null;
|
|
1988
|
+
expires_at?: string | null;
|
|
1989
|
+
id?: string;
|
|
1990
|
+
max_sessions_per_visitor?: number;
|
|
1991
|
+
max_turns_per_session?: number;
|
|
1992
|
+
mode?: string;
|
|
1993
|
+
organization_id: string;
|
|
1994
|
+
resource_id: string;
|
|
1995
|
+
slug: string;
|
|
1996
|
+
tool_policy?: Json;
|
|
1997
|
+
updated_at?: string;
|
|
1998
|
+
};
|
|
1999
|
+
Update: {
|
|
2000
|
+
allowed_origins?: string[];
|
|
2001
|
+
branding?: Json;
|
|
2002
|
+
capture_fields?: Json;
|
|
2003
|
+
code_hash?: string | null;
|
|
2004
|
+
code_salt?: string | null;
|
|
2005
|
+
created_at?: string;
|
|
2006
|
+
disabled_at?: string | null;
|
|
2007
|
+
expires_at?: string | null;
|
|
2008
|
+
id?: string;
|
|
2009
|
+
max_sessions_per_visitor?: number;
|
|
2010
|
+
max_turns_per_session?: number;
|
|
2011
|
+
mode?: string;
|
|
2012
|
+
organization_id?: string;
|
|
2013
|
+
resource_id?: string;
|
|
2014
|
+
slug?: string;
|
|
2015
|
+
tool_policy?: Json;
|
|
2016
|
+
updated_at?: string;
|
|
2017
|
+
};
|
|
2018
|
+
Relationships: [
|
|
2019
|
+
{
|
|
2020
|
+
foreignKeyName: "agent_access_grants_organization_id_fkey";
|
|
2021
|
+
columns: ["organization_id"];
|
|
2022
|
+
isOneToOne: false;
|
|
2023
|
+
referencedRelation: "organizations";
|
|
2024
|
+
referencedColumns: ["id"];
|
|
2025
|
+
}
|
|
2026
|
+
];
|
|
2027
|
+
};
|
|
1963
2028
|
api_keys: {
|
|
1964
2029
|
Row: {
|
|
1965
2030
|
created_at: string | null;
|
|
@@ -2867,138 +2932,6 @@ type Database = {
|
|
|
2867
2932
|
};
|
|
2868
2933
|
Relationships: [];
|
|
2869
2934
|
};
|
|
2870
|
-
agent_access_grants: {
|
|
2871
|
-
Row: {
|
|
2872
|
-
allowed_origins: string[];
|
|
2873
|
-
branding: Json;
|
|
2874
|
-
capture_fields: Json;
|
|
2875
|
-
code_hash: string | null;
|
|
2876
|
-
code_salt: string | null;
|
|
2877
|
-
created_at: string;
|
|
2878
|
-
disabled_at: string | null;
|
|
2879
|
-
expires_at: string | null;
|
|
2880
|
-
id: string;
|
|
2881
|
-
max_sessions_per_visitor: number;
|
|
2882
|
-
max_turns_per_session: number;
|
|
2883
|
-
mode: string;
|
|
2884
|
-
organization_id: string;
|
|
2885
|
-
resource_id: string;
|
|
2886
|
-
slug: string;
|
|
2887
|
-
tool_policy: Json;
|
|
2888
|
-
updated_at: string;
|
|
2889
|
-
};
|
|
2890
|
-
Insert: {
|
|
2891
|
-
allowed_origins?: string[];
|
|
2892
|
-
branding?: Json;
|
|
2893
|
-
capture_fields?: Json;
|
|
2894
|
-
code_hash?: string | null;
|
|
2895
|
-
code_salt?: string | null;
|
|
2896
|
-
created_at?: string;
|
|
2897
|
-
disabled_at?: string | null;
|
|
2898
|
-
expires_at?: string | null;
|
|
2899
|
-
id?: string;
|
|
2900
|
-
max_sessions_per_visitor?: number;
|
|
2901
|
-
max_turns_per_session?: number;
|
|
2902
|
-
mode?: string;
|
|
2903
|
-
organization_id: string;
|
|
2904
|
-
resource_id: string;
|
|
2905
|
-
slug: string;
|
|
2906
|
-
tool_policy?: Json;
|
|
2907
|
-
updated_at?: string;
|
|
2908
|
-
};
|
|
2909
|
-
Update: {
|
|
2910
|
-
allowed_origins?: string[];
|
|
2911
|
-
branding?: Json;
|
|
2912
|
-
capture_fields?: Json;
|
|
2913
|
-
code_hash?: string | null;
|
|
2914
|
-
code_salt?: string | null;
|
|
2915
|
-
created_at?: string;
|
|
2916
|
-
disabled_at?: string | null;
|
|
2917
|
-
expires_at?: string | null;
|
|
2918
|
-
id?: string;
|
|
2919
|
-
max_sessions_per_visitor?: number;
|
|
2920
|
-
max_turns_per_session?: number;
|
|
2921
|
-
mode?: string;
|
|
2922
|
-
organization_id?: string;
|
|
2923
|
-
resource_id?: string;
|
|
2924
|
-
slug?: string;
|
|
2925
|
-
tool_policy?: Json;
|
|
2926
|
-
updated_at?: string;
|
|
2927
|
-
};
|
|
2928
|
-
Relationships: [
|
|
2929
|
-
{
|
|
2930
|
-
foreignKeyName: "agent_access_grants_organization_id_fkey";
|
|
2931
|
-
columns: ["organization_id"];
|
|
2932
|
-
isOneToOne: false;
|
|
2933
|
-
referencedRelation: "organizations";
|
|
2934
|
-
referencedColumns: ["id"];
|
|
2935
|
-
}
|
|
2936
|
-
];
|
|
2937
|
-
};
|
|
2938
|
-
agent_chat_capabilities: {
|
|
2939
|
-
Row: {
|
|
2940
|
-
created_at: string;
|
|
2941
|
-
expires_at: string;
|
|
2942
|
-
grant_id: string;
|
|
2943
|
-
id: string;
|
|
2944
|
-
organization_id: string;
|
|
2945
|
-
origin: string | null;
|
|
2946
|
-
resource_id: string;
|
|
2947
|
-
revoked_at: string | null;
|
|
2948
|
-
session_id: string | null;
|
|
2949
|
-
token_hash: string;
|
|
2950
|
-
visitor_id: string | null;
|
|
2951
|
-
};
|
|
2952
|
-
Insert: {
|
|
2953
|
-
created_at?: string;
|
|
2954
|
-
expires_at: string;
|
|
2955
|
-
grant_id: string;
|
|
2956
|
-
id?: string;
|
|
2957
|
-
organization_id: string;
|
|
2958
|
-
origin?: string | null;
|
|
2959
|
-
resource_id: string;
|
|
2960
|
-
revoked_at?: string | null;
|
|
2961
|
-
session_id?: string | null;
|
|
2962
|
-
token_hash: string;
|
|
2963
|
-
visitor_id?: string | null;
|
|
2964
|
-
};
|
|
2965
|
-
Update: {
|
|
2966
|
-
created_at?: string;
|
|
2967
|
-
expires_at?: string;
|
|
2968
|
-
grant_id?: string;
|
|
2969
|
-
id?: string;
|
|
2970
|
-
organization_id?: string;
|
|
2971
|
-
origin?: string | null;
|
|
2972
|
-
resource_id?: string;
|
|
2973
|
-
revoked_at?: string | null;
|
|
2974
|
-
session_id?: string | null;
|
|
2975
|
-
token_hash?: string;
|
|
2976
|
-
visitor_id?: string | null;
|
|
2977
|
-
};
|
|
2978
|
-
Relationships: [
|
|
2979
|
-
{
|
|
2980
|
-
foreignKeyName: "agent_chat_capabilities_grant_id_fkey";
|
|
2981
|
-
columns: ["grant_id"];
|
|
2982
|
-
isOneToOne: false;
|
|
2983
|
-
referencedRelation: "agent_access_grants";
|
|
2984
|
-
referencedColumns: ["id"];
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
foreignKeyName: "agent_chat_capabilities_organization_id_fkey";
|
|
2988
|
-
columns: ["organization_id"];
|
|
2989
|
-
isOneToOne: false;
|
|
2990
|
-
referencedRelation: "organizations";
|
|
2991
|
-
referencedColumns: ["id"];
|
|
2992
|
-
},
|
|
2993
|
-
{
|
|
2994
|
-
foreignKeyName: "agent_chat_capabilities_session_id_fkey";
|
|
2995
|
-
columns: ["session_id"];
|
|
2996
|
-
isOneToOne: false;
|
|
2997
|
-
referencedRelation: "sessions";
|
|
2998
|
-
referencedColumns: ["session_id"];
|
|
2999
|
-
}
|
|
3000
|
-
];
|
|
3001
|
-
};
|
|
3002
2935
|
organizations: {
|
|
3003
2936
|
Row: {
|
|
3004
2937
|
config: Json;
|
|
@@ -3897,11 +3830,11 @@ type Database = {
|
|
|
3897
3830
|
Returns: undefined;
|
|
3898
3831
|
};
|
|
3899
3832
|
auth_jwt_claims: {
|
|
3900
|
-
Args: never
|
|
3833
|
+
Args: Record<PropertyKey, never>;
|
|
3901
3834
|
Returns: Json;
|
|
3902
3835
|
};
|
|
3903
3836
|
auth_uid_safe: {
|
|
3904
|
-
Args: never
|
|
3837
|
+
Args: Record<PropertyKey, never>;
|
|
3905
3838
|
Returns: string;
|
|
3906
3839
|
};
|
|
3907
3840
|
can_assign_role_in_org: {
|
|
@@ -3912,7 +3845,7 @@ type Database = {
|
|
|
3912
3845
|
Returns: boolean;
|
|
3913
3846
|
};
|
|
3914
3847
|
current_user_is_platform_admin: {
|
|
3915
|
-
Args: never
|
|
3848
|
+
Args: Record<PropertyKey, never>;
|
|
3916
3849
|
Returns: boolean;
|
|
3917
3850
|
};
|
|
3918
3851
|
current_user_shares_org_with: {
|
|
@@ -3922,11 +3855,11 @@ type Database = {
|
|
|
3922
3855
|
Returns: boolean;
|
|
3923
3856
|
};
|
|
3924
3857
|
current_user_supabase_id: {
|
|
3925
|
-
Args: never
|
|
3858
|
+
Args: Record<PropertyKey, never>;
|
|
3926
3859
|
Returns: string;
|
|
3927
3860
|
};
|
|
3928
3861
|
detect_stalled_executions: {
|
|
3929
|
-
Args: never
|
|
3862
|
+
Args: Record<PropertyKey, never>;
|
|
3930
3863
|
Returns: undefined;
|
|
3931
3864
|
};
|
|
3932
3865
|
execute_session_turn: {
|
|
@@ -3947,7 +3880,7 @@ type Database = {
|
|
|
3947
3880
|
}[];
|
|
3948
3881
|
};
|
|
3949
3882
|
get_platform_credential_kek: {
|
|
3950
|
-
Args: never
|
|
3883
|
+
Args: Record<PropertyKey, never>;
|
|
3951
3884
|
Returns: string;
|
|
3952
3885
|
};
|
|
3953
3886
|
get_storage_org_id: {
|
|
@@ -3957,7 +3890,7 @@ type Database = {
|
|
|
3957
3890
|
Returns: string;
|
|
3958
3891
|
};
|
|
3959
3892
|
get_workos_user_id: {
|
|
3960
|
-
Args: never
|
|
3893
|
+
Args: Record<PropertyKey, never>;
|
|
3961
3894
|
Returns: string;
|
|
3962
3895
|
};
|
|
3963
3896
|
has_org_access: {
|
|
@@ -3965,10 +3898,7 @@ type Database = {
|
|
|
3965
3898
|
action?: string;
|
|
3966
3899
|
org_id: string;
|
|
3967
3900
|
system_path: string;
|
|
3968
|
-
}
|
|
3969
|
-
Returns: boolean;
|
|
3970
|
-
} | {
|
|
3971
|
-
Args: {
|
|
3901
|
+
} | {
|
|
3972
3902
|
action?: string;
|
|
3973
3903
|
system_path: string;
|
|
3974
3904
|
};
|
|
@@ -4004,15 +3934,15 @@ type Database = {
|
|
|
4004
3934
|
Returns: Json;
|
|
4005
3935
|
};
|
|
4006
3936
|
process_due_schedules: {
|
|
4007
|
-
Args: never
|
|
3937
|
+
Args: Record<PropertyKey, never>;
|
|
4008
3938
|
Returns: Json;
|
|
4009
3939
|
};
|
|
4010
3940
|
recompute_all_memberships: {
|
|
4011
|
-
Args: never
|
|
3941
|
+
Args: Record<PropertyKey, never>;
|
|
4012
3942
|
Returns: undefined;
|
|
4013
3943
|
};
|
|
4014
3944
|
repair_membership_role_assignments: {
|
|
4015
|
-
Args: never
|
|
3945
|
+
Args: Record<PropertyKey, never>;
|
|
4016
3946
|
Returns: {
|
|
4017
3947
|
membership_id: string;
|
|
4018
3948
|
organization_id: string;
|
|
@@ -4042,7 +3972,7 @@ type Database = {
|
|
|
4042
3972
|
Returns: string;
|
|
4043
3973
|
};
|
|
4044
3974
|
upsert_user_profile: {
|
|
4045
|
-
Args: never
|
|
3975
|
+
Args: Record<PropertyKey, never>;
|
|
4046
3976
|
Returns: {
|
|
4047
3977
|
profile_display_name: string;
|
|
4048
3978
|
profile_email: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.51.
|
|
3
|
+
"version": "2.51.1",
|
|
4
4
|
"description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -274,11 +274,11 @@
|
|
|
274
274
|
"typescript": "5.9.2",
|
|
275
275
|
"vite": "^7.0.0",
|
|
276
276
|
"vitest": "^3.2.4",
|
|
277
|
-
"@repo/core": "0.48.0",
|
|
278
|
-
"@repo/elevasis-core": "1.0.0",
|
|
279
|
-
"@repo/typescript-config": "0.0.0",
|
|
280
277
|
"@elevasis/sdk": "1.35.0",
|
|
281
|
-
"@repo/eslint-config": "0.0.0"
|
|
278
|
+
"@repo/eslint-config": "0.0.0",
|
|
279
|
+
"@repo/core": "0.48.1",
|
|
280
|
+
"@repo/elevasis-core": "1.0.0",
|
|
281
|
+
"@repo/typescript-config": "0.0.0"
|
|
282
282
|
},
|
|
283
283
|
"dependencies": {
|
|
284
284
|
"@dagrejs/dagre": "^1.1.4",
|
package/dist/chunk-EJL4U7OZ.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { UuidSchema } from './chunk-TVTSASST.js';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
var SessionIdParamSchema = z.object({
|
|
5
|
-
sessionId: UuidSchema
|
|
6
|
-
}).strict();
|
|
7
|
-
var ExecutionIdParamsSchema = z.object({
|
|
8
|
-
sessionId: UuidSchema,
|
|
9
|
-
executionId: UuidSchema
|
|
10
|
-
}).strict();
|
|
11
|
-
var CreateSessionSchema = z.object({
|
|
12
|
-
resourceId: z.string().min(1).max(100),
|
|
13
|
-
userId: UuidSchema.optional(),
|
|
14
|
-
metadata: z.any().optional()
|
|
15
|
-
}).strict();
|
|
16
|
-
z.object({
|
|
17
|
-
input: z.unknown().refine(
|
|
18
|
-
(val) => {
|
|
19
|
-
let text;
|
|
20
|
-
if (typeof val === "string") {
|
|
21
|
-
text = val;
|
|
22
|
-
} else if (val && typeof val === "object" && "message" in val) {
|
|
23
|
-
text = String(val.message);
|
|
24
|
-
} else {
|
|
25
|
-
text = JSON.stringify(val);
|
|
26
|
-
}
|
|
27
|
-
return text.length > 0 && text.length <= 1e5;
|
|
28
|
-
},
|
|
29
|
-
{ message: "Input must be between 1 and 100,000 characters" }
|
|
30
|
-
),
|
|
31
|
-
metadata: z.any().optional()
|
|
32
|
-
}).strict();
|
|
33
|
-
z.object({
|
|
34
|
-
userId: UuidSchema.optional(),
|
|
35
|
-
resourceId: z.string().optional(),
|
|
36
|
-
limit: z.coerce.number().int().min(1).max(100).default(20)
|
|
37
|
-
}).strict();
|
|
38
|
-
z.object({
|
|
39
|
-
limit: z.coerce.number().int().min(1).max(100).default(100),
|
|
40
|
-
cursor: z.coerce.number().int().min(0).optional()
|
|
41
|
-
}).strict();
|
|
42
|
-
var WebSocketSessionTurnSchema = z.object({
|
|
43
|
-
type: z.literal("session:turn"),
|
|
44
|
-
input: z.unknown().refine(
|
|
45
|
-
(val) => {
|
|
46
|
-
let text;
|
|
47
|
-
if (typeof val === "string") {
|
|
48
|
-
text = val;
|
|
49
|
-
} else if (val && typeof val === "object" && "message" in val) {
|
|
50
|
-
text = String(val.message);
|
|
51
|
-
} else {
|
|
52
|
-
text = JSON.stringify(val) || "";
|
|
53
|
-
}
|
|
54
|
-
return text && text.length > 0 && text.length <= 1e5;
|
|
55
|
-
},
|
|
56
|
-
{ message: "Input must be between 1 and 100,000 characters" }
|
|
57
|
-
)
|
|
58
|
-
}).strict();
|
|
59
|
-
var NotificationCategorySchema = z.enum(["info", "queue", "alert", "error", "system"]);
|
|
60
|
-
var GetNotificationsQuerySchema = z.object({
|
|
61
|
-
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
62
|
-
offset: z.coerce.number().int().min(0).default(0)
|
|
63
|
-
});
|
|
64
|
-
var MarkAsReadParamsSchema = z.object({
|
|
65
|
-
id: UuidSchema
|
|
66
|
-
});
|
|
67
|
-
z.object({
|
|
68
|
-
userId: UuidSchema,
|
|
69
|
-
organizationId: UuidSchema,
|
|
70
|
-
category: NotificationCategorySchema,
|
|
71
|
-
title: z.string().trim().min(1).max(200),
|
|
72
|
-
message: z.string().trim().min(1).max(1e3),
|
|
73
|
-
actionUrl: z.string().url().optional()
|
|
74
|
-
}).strict();
|
|
75
|
-
z.object({
|
|
76
|
-
ids: z.array(UuidSchema).min(1).max(500)
|
|
77
|
-
}).strict();
|
|
78
|
-
|
|
79
|
-
export { CreateSessionSchema, ExecutionIdParamsSchema, GetNotificationsQuerySchema, MarkAsReadParamsSchema, SessionIdParamSchema, WebSocketSessionTurnSchema };
|