@elevasis/ui 2.70.0 → 2.71.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/app/index.d.ts +26 -0
- package/dist/app/index.js +5 -5
- package/dist/auth/index.js +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{chunk-LWYLZUUV.js → chunk-3BLYJT5L.js} +2 -2
- package/dist/{chunk-QDMIFD6F.js → chunk-AIOV5NM7.js} +1 -1
- package/dist/{chunk-TJMZUL6E.js → chunk-BM2WKRAQ.js} +1 -1
- package/dist/{chunk-DUEGHF7A.js → chunk-CPBT6Z2G.js} +2 -2
- package/dist/{chunk-SMH6SQQE.js → chunk-DCMFNSJ6.js} +1 -1
- package/dist/{chunk-GJQF3S2Q.js → chunk-DH2MO5DX.js} +1 -1
- package/dist/{chunk-5C62IRKS.js → chunk-H3SDGC5F.js} +2 -2
- package/dist/{chunk-XKUEO4HG.js → chunk-JTSNU6KA.js} +2 -2
- package/dist/{chunk-LY3IKYTZ.js → chunk-LL5H7J4N.js} +1 -1
- package/dist/{chunk-AGX2CY2O.js → chunk-TB2PM2OU.js} +1 -1
- package/dist/{chunk-CCZJ4OWY.js → chunk-TCQZ4AJI.js} +1 -1
- package/dist/{chunk-GZADST64.js → chunk-TVFSVTRG.js} +5 -5
- package/dist/{chunk-6TT3FQEZ.js → chunk-UZ7MSORW.js} +101 -4
- package/dist/{chunk-MFCV4JMQ.js → chunk-VHPHWTX7.js} +2 -2
- package/dist/{chunk-JA2XDMAE.js → chunk-VRRIHA3S.js} +1 -1
- package/dist/components/index.d.ts +59 -3
- package/dist/components/index.js +19 -19
- package/dist/components/navigation/index.js +2 -2
- package/dist/features/auth/index.d.ts +26 -0
- package/dist/features/auth/index.js +3 -3
- package/dist/features/clients/index.js +2 -2
- package/dist/features/content/index.d.ts +95 -78
- package/dist/features/content/index.js +61 -19
- package/dist/features/crm/index.d.ts +26 -0
- package/dist/features/crm/index.js +3 -3
- package/dist/features/dashboard/index.js +3 -3
- package/dist/features/delivery/index.d.ts +26 -0
- package/dist/features/delivery/index.js +2 -2
- package/dist/features/knowledge/index.js +1 -1
- package/dist/features/lead-gen/index.js +3 -3
- package/dist/features/monitoring/index.d.ts +33 -3
- package/dist/features/monitoring/index.js +4 -4
- package/dist/features/monitoring/requests/index.js +2 -2
- package/dist/features/operations/index.js +6 -6
- package/dist/features/settings/index.d.ts +26 -0
- package/dist/features/settings/index.js +3 -3
- package/dist/hooks/access/index.js +1 -1
- package/dist/hooks/delivery/index.d.ts +26 -0
- package/dist/hooks/index.d.ts +301 -12
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/published.d.ts +301 -12
- package/dist/hooks/published.js +1 -1
- package/dist/initialization/index.d.ts +26 -0
- package/dist/knowledge/index.js +5 -5
- package/dist/layout/index.js +4 -4
- package/dist/profile/index.d.ts +26 -0
- package/dist/provider/index.d.ts +26 -0
- package/dist/provider/index.js +1 -1
- package/dist/provider/published.d.ts +26 -0
- package/dist/provider/published.js +1 -1
- package/dist/supabase/index.d.ts +50 -0
- package/dist/types/index.d.ts +59 -3
- package/package.json +4 -4
package/dist/supabase/index.d.ts
CHANGED
|
@@ -1040,6 +1040,7 @@ type Database = {
|
|
|
1040
1040
|
activities: {
|
|
1041
1041
|
Row: {
|
|
1042
1042
|
activity_type: string;
|
|
1043
|
+
actor_api_key_id: string | null;
|
|
1043
1044
|
actor_id: string | null;
|
|
1044
1045
|
actor_type: string | null;
|
|
1045
1046
|
created_at: string;
|
|
@@ -1056,6 +1057,7 @@ type Database = {
|
|
|
1056
1057
|
};
|
|
1057
1058
|
Insert: {
|
|
1058
1059
|
activity_type: string;
|
|
1060
|
+
actor_api_key_id?: string | null;
|
|
1059
1061
|
actor_id?: string | null;
|
|
1060
1062
|
actor_type?: string | null;
|
|
1061
1063
|
created_at?: string;
|
|
@@ -1072,6 +1074,7 @@ type Database = {
|
|
|
1072
1074
|
};
|
|
1073
1075
|
Update: {
|
|
1074
1076
|
activity_type?: string;
|
|
1077
|
+
actor_api_key_id?: string | null;
|
|
1075
1078
|
actor_id?: string | null;
|
|
1076
1079
|
actor_type?: string | null;
|
|
1077
1080
|
created_at?: string;
|
|
@@ -1087,6 +1090,13 @@ type Database = {
|
|
|
1087
1090
|
title?: string;
|
|
1088
1091
|
};
|
|
1089
1092
|
Relationships: [
|
|
1093
|
+
{
|
|
1094
|
+
foreignKeyName: "activities_actor_api_key_id_fkey";
|
|
1095
|
+
columns: ["actor_api_key_id"];
|
|
1096
|
+
isOneToOne: false;
|
|
1097
|
+
referencedRelation: "api_keys";
|
|
1098
|
+
referencedColumns: ["id"];
|
|
1099
|
+
},
|
|
1090
1100
|
{
|
|
1091
1101
|
foreignKeyName: "activities_actor_id_fkey";
|
|
1092
1102
|
columns: ["actor_id"];
|
|
@@ -1174,6 +1184,7 @@ type Database = {
|
|
|
1174
1184
|
api_keys: {
|
|
1175
1185
|
Row: {
|
|
1176
1186
|
created_at: string | null;
|
|
1187
|
+
created_by: string | null;
|
|
1177
1188
|
id: string;
|
|
1178
1189
|
key_hash: string;
|
|
1179
1190
|
last_used_at: string | null;
|
|
@@ -1182,6 +1193,7 @@ type Database = {
|
|
|
1182
1193
|
};
|
|
1183
1194
|
Insert: {
|
|
1184
1195
|
created_at?: string | null;
|
|
1196
|
+
created_by?: string | null;
|
|
1185
1197
|
id?: string;
|
|
1186
1198
|
key_hash: string;
|
|
1187
1199
|
last_used_at?: string | null;
|
|
@@ -1190,6 +1202,7 @@ type Database = {
|
|
|
1190
1202
|
};
|
|
1191
1203
|
Update: {
|
|
1192
1204
|
created_at?: string | null;
|
|
1205
|
+
created_by?: string | null;
|
|
1193
1206
|
id?: string;
|
|
1194
1207
|
key_hash?: string;
|
|
1195
1208
|
last_used_at?: string | null;
|
|
@@ -1197,6 +1210,13 @@ type Database = {
|
|
|
1197
1210
|
organization_id?: string;
|
|
1198
1211
|
};
|
|
1199
1212
|
Relationships: [
|
|
1213
|
+
{
|
|
1214
|
+
foreignKeyName: "api_keys_created_by_fkey";
|
|
1215
|
+
columns: ["created_by"];
|
|
1216
|
+
isOneToOne: false;
|
|
1217
|
+
referencedRelation: "users";
|
|
1218
|
+
referencedColumns: ["id"];
|
|
1219
|
+
},
|
|
1200
1220
|
{
|
|
1201
1221
|
foreignKeyName: "api_keys_organization_id_fkey";
|
|
1202
1222
|
columns: ["organization_id"];
|
|
@@ -1524,6 +1544,7 @@ type Database = {
|
|
|
1524
1544
|
organization_id: string;
|
|
1525
1545
|
payload: Json;
|
|
1526
1546
|
source_execution_id: string | null;
|
|
1547
|
+
status: string;
|
|
1527
1548
|
step_key: string | null;
|
|
1528
1549
|
};
|
|
1529
1550
|
Insert: {
|
|
@@ -1535,6 +1556,7 @@ type Database = {
|
|
|
1535
1556
|
organization_id: string;
|
|
1536
1557
|
payload?: Json;
|
|
1537
1558
|
source_execution_id?: string | null;
|
|
1559
|
+
status: string;
|
|
1538
1560
|
step_key?: string | null;
|
|
1539
1561
|
};
|
|
1540
1562
|
Update: {
|
|
@@ -1546,6 +1568,7 @@ type Database = {
|
|
|
1546
1568
|
organization_id?: string;
|
|
1547
1569
|
payload?: Json;
|
|
1548
1570
|
source_execution_id?: string | null;
|
|
1571
|
+
status?: string;
|
|
1549
1572
|
step_key?: string | null;
|
|
1550
1573
|
};
|
|
1551
1574
|
Relationships: [
|
|
@@ -1697,6 +1720,7 @@ type Database = {
|
|
|
1697
1720
|
kind: string;
|
|
1698
1721
|
metadata: Json;
|
|
1699
1722
|
organization_id: string;
|
|
1723
|
+
payload: Json;
|
|
1700
1724
|
processing_state: Json;
|
|
1701
1725
|
storage_path: string | null;
|
|
1702
1726
|
title: string;
|
|
@@ -1710,6 +1734,7 @@ type Database = {
|
|
|
1710
1734
|
kind: string;
|
|
1711
1735
|
metadata?: Json;
|
|
1712
1736
|
organization_id: string;
|
|
1737
|
+
payload?: Json;
|
|
1713
1738
|
processing_state?: Json;
|
|
1714
1739
|
storage_path?: string | null;
|
|
1715
1740
|
title: string;
|
|
@@ -1723,6 +1748,7 @@ type Database = {
|
|
|
1723
1748
|
kind?: string;
|
|
1724
1749
|
metadata?: Json;
|
|
1725
1750
|
organization_id?: string;
|
|
1751
|
+
payload?: Json;
|
|
1726
1752
|
processing_state?: Json;
|
|
1727
1753
|
storage_path?: string | null;
|
|
1728
1754
|
title?: string;
|
|
@@ -4535,6 +4561,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4535
4561
|
activities: {
|
|
4536
4562
|
Row: {
|
|
4537
4563
|
activity_type: string;
|
|
4564
|
+
actor_api_key_id: string | null;
|
|
4538
4565
|
actor_id: string | null;
|
|
4539
4566
|
actor_type: string | null;
|
|
4540
4567
|
created_at: string;
|
|
@@ -4551,6 +4578,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4551
4578
|
};
|
|
4552
4579
|
Insert: {
|
|
4553
4580
|
activity_type: string;
|
|
4581
|
+
actor_api_key_id?: string | null;
|
|
4554
4582
|
actor_id?: string | null;
|
|
4555
4583
|
actor_type?: string | null;
|
|
4556
4584
|
created_at?: string;
|
|
@@ -4567,6 +4595,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4567
4595
|
};
|
|
4568
4596
|
Update: {
|
|
4569
4597
|
activity_type?: string;
|
|
4598
|
+
actor_api_key_id?: string | null;
|
|
4570
4599
|
actor_id?: string | null;
|
|
4571
4600
|
actor_type?: string | null;
|
|
4572
4601
|
created_at?: string;
|
|
@@ -4582,6 +4611,12 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4582
4611
|
title?: string;
|
|
4583
4612
|
};
|
|
4584
4613
|
Relationships: [{
|
|
4614
|
+
foreignKeyName: "activities_actor_api_key_id_fkey";
|
|
4615
|
+
columns: ["actor_api_key_id"];
|
|
4616
|
+
isOneToOne: false;
|
|
4617
|
+
referencedRelation: "api_keys";
|
|
4618
|
+
referencedColumns: ["id"];
|
|
4619
|
+
}, {
|
|
4585
4620
|
foreignKeyName: "activities_actor_id_fkey";
|
|
4586
4621
|
columns: ["actor_id"];
|
|
4587
4622
|
isOneToOne: false;
|
|
@@ -4664,6 +4699,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4664
4699
|
api_keys: {
|
|
4665
4700
|
Row: {
|
|
4666
4701
|
created_at: string | null;
|
|
4702
|
+
created_by: string | null;
|
|
4667
4703
|
id: string;
|
|
4668
4704
|
key_hash: string;
|
|
4669
4705
|
last_used_at: string | null;
|
|
@@ -4672,6 +4708,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4672
4708
|
};
|
|
4673
4709
|
Insert: {
|
|
4674
4710
|
created_at?: string | null;
|
|
4711
|
+
created_by?: string | null;
|
|
4675
4712
|
id?: string;
|
|
4676
4713
|
key_hash: string;
|
|
4677
4714
|
last_used_at?: string | null;
|
|
@@ -4680,6 +4717,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4680
4717
|
};
|
|
4681
4718
|
Update: {
|
|
4682
4719
|
created_at?: string | null;
|
|
4720
|
+
created_by?: string | null;
|
|
4683
4721
|
id?: string;
|
|
4684
4722
|
key_hash?: string;
|
|
4685
4723
|
last_used_at?: string | null;
|
|
@@ -4687,6 +4725,12 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4687
4725
|
organization_id?: string;
|
|
4688
4726
|
};
|
|
4689
4727
|
Relationships: [{
|
|
4728
|
+
foreignKeyName: "api_keys_created_by_fkey";
|
|
4729
|
+
columns: ["created_by"];
|
|
4730
|
+
isOneToOne: false;
|
|
4731
|
+
referencedRelation: "users";
|
|
4732
|
+
referencedColumns: ["id"];
|
|
4733
|
+
}, {
|
|
4690
4734
|
foreignKeyName: "api_keys_organization_id_fkey";
|
|
4691
4735
|
columns: ["organization_id"];
|
|
4692
4736
|
isOneToOne: false;
|
|
@@ -4998,6 +5042,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
4998
5042
|
organization_id: string;
|
|
4999
5043
|
payload: Json;
|
|
5000
5044
|
source_execution_id: string | null;
|
|
5045
|
+
status: string;
|
|
5001
5046
|
step_key: string | null;
|
|
5002
5047
|
};
|
|
5003
5048
|
Insert: {
|
|
@@ -5009,6 +5054,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
5009
5054
|
organization_id: string;
|
|
5010
5055
|
payload?: Json;
|
|
5011
5056
|
source_execution_id?: string | null;
|
|
5057
|
+
status: string;
|
|
5012
5058
|
step_key?: string | null;
|
|
5013
5059
|
};
|
|
5014
5060
|
Update: {
|
|
@@ -5020,6 +5066,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
5020
5066
|
organization_id?: string;
|
|
5021
5067
|
payload?: Json;
|
|
5022
5068
|
source_execution_id?: string | null;
|
|
5069
|
+
status?: string;
|
|
5023
5070
|
step_key?: string | null;
|
|
5024
5071
|
};
|
|
5025
5072
|
Relationships: [{
|
|
@@ -5159,6 +5206,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
5159
5206
|
kind: string;
|
|
5160
5207
|
metadata: Json;
|
|
5161
5208
|
organization_id: string;
|
|
5209
|
+
payload: Json;
|
|
5162
5210
|
processing_state: Json;
|
|
5163
5211
|
storage_path: string | null;
|
|
5164
5212
|
title: string;
|
|
@@ -5172,6 +5220,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
5172
5220
|
kind: string;
|
|
5173
5221
|
metadata?: Json;
|
|
5174
5222
|
organization_id: string;
|
|
5223
|
+
payload?: Json;
|
|
5175
5224
|
processing_state?: Json;
|
|
5176
5225
|
storage_path?: string | null;
|
|
5177
5226
|
title: string;
|
|
@@ -5185,6 +5234,7 @@ declare const useSupabase: () => _supabase_supabase_js.SupabaseClient<Database,
|
|
|
5185
5234
|
kind?: string;
|
|
5186
5235
|
metadata?: Json;
|
|
5187
5236
|
organization_id?: string;
|
|
5237
|
+
payload?: Json;
|
|
5188
5238
|
processing_state?: Json;
|
|
5189
5239
|
storage_path?: string | null;
|
|
5190
5240
|
title?: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1785,6 +1785,7 @@ type Database = {
|
|
|
1785
1785
|
activities: {
|
|
1786
1786
|
Row: {
|
|
1787
1787
|
activity_type: string;
|
|
1788
|
+
actor_api_key_id: string | null;
|
|
1788
1789
|
actor_id: string | null;
|
|
1789
1790
|
actor_type: string | null;
|
|
1790
1791
|
created_at: string;
|
|
@@ -1801,6 +1802,7 @@ type Database = {
|
|
|
1801
1802
|
};
|
|
1802
1803
|
Insert: {
|
|
1803
1804
|
activity_type: string;
|
|
1805
|
+
actor_api_key_id?: string | null;
|
|
1804
1806
|
actor_id?: string | null;
|
|
1805
1807
|
actor_type?: string | null;
|
|
1806
1808
|
created_at?: string;
|
|
@@ -1817,6 +1819,7 @@ type Database = {
|
|
|
1817
1819
|
};
|
|
1818
1820
|
Update: {
|
|
1819
1821
|
activity_type?: string;
|
|
1822
|
+
actor_api_key_id?: string | null;
|
|
1820
1823
|
actor_id?: string | null;
|
|
1821
1824
|
actor_type?: string | null;
|
|
1822
1825
|
created_at?: string;
|
|
@@ -1832,6 +1835,13 @@ type Database = {
|
|
|
1832
1835
|
title?: string;
|
|
1833
1836
|
};
|
|
1834
1837
|
Relationships: [
|
|
1838
|
+
{
|
|
1839
|
+
foreignKeyName: "activities_actor_api_key_id_fkey";
|
|
1840
|
+
columns: ["actor_api_key_id"];
|
|
1841
|
+
isOneToOne: false;
|
|
1842
|
+
referencedRelation: "api_keys";
|
|
1843
|
+
referencedColumns: ["id"];
|
|
1844
|
+
},
|
|
1835
1845
|
{
|
|
1836
1846
|
foreignKeyName: "activities_actor_id_fkey";
|
|
1837
1847
|
columns: ["actor_id"];
|
|
@@ -1919,6 +1929,7 @@ type Database = {
|
|
|
1919
1929
|
api_keys: {
|
|
1920
1930
|
Row: {
|
|
1921
1931
|
created_at: string | null;
|
|
1932
|
+
created_by: string | null;
|
|
1922
1933
|
id: string;
|
|
1923
1934
|
key_hash: string;
|
|
1924
1935
|
last_used_at: string | null;
|
|
@@ -1927,6 +1938,7 @@ type Database = {
|
|
|
1927
1938
|
};
|
|
1928
1939
|
Insert: {
|
|
1929
1940
|
created_at?: string | null;
|
|
1941
|
+
created_by?: string | null;
|
|
1930
1942
|
id?: string;
|
|
1931
1943
|
key_hash: string;
|
|
1932
1944
|
last_used_at?: string | null;
|
|
@@ -1935,6 +1947,7 @@ type Database = {
|
|
|
1935
1947
|
};
|
|
1936
1948
|
Update: {
|
|
1937
1949
|
created_at?: string | null;
|
|
1950
|
+
created_by?: string | null;
|
|
1938
1951
|
id?: string;
|
|
1939
1952
|
key_hash?: string;
|
|
1940
1953
|
last_used_at?: string | null;
|
|
@@ -1942,6 +1955,13 @@ type Database = {
|
|
|
1942
1955
|
organization_id?: string;
|
|
1943
1956
|
};
|
|
1944
1957
|
Relationships: [
|
|
1958
|
+
{
|
|
1959
|
+
foreignKeyName: "api_keys_created_by_fkey";
|
|
1960
|
+
columns: ["created_by"];
|
|
1961
|
+
isOneToOne: false;
|
|
1962
|
+
referencedRelation: "users";
|
|
1963
|
+
referencedColumns: ["id"];
|
|
1964
|
+
},
|
|
1945
1965
|
{
|
|
1946
1966
|
foreignKeyName: "api_keys_organization_id_fkey";
|
|
1947
1967
|
columns: ["organization_id"];
|
|
@@ -2269,6 +2289,7 @@ type Database = {
|
|
|
2269
2289
|
organization_id: string;
|
|
2270
2290
|
payload: Json;
|
|
2271
2291
|
source_execution_id: string | null;
|
|
2292
|
+
status: string;
|
|
2272
2293
|
step_key: string | null;
|
|
2273
2294
|
};
|
|
2274
2295
|
Insert: {
|
|
@@ -2280,6 +2301,7 @@ type Database = {
|
|
|
2280
2301
|
organization_id: string;
|
|
2281
2302
|
payload?: Json;
|
|
2282
2303
|
source_execution_id?: string | null;
|
|
2304
|
+
status: string;
|
|
2283
2305
|
step_key?: string | null;
|
|
2284
2306
|
};
|
|
2285
2307
|
Update: {
|
|
@@ -2291,6 +2313,7 @@ type Database = {
|
|
|
2291
2313
|
organization_id?: string;
|
|
2292
2314
|
payload?: Json;
|
|
2293
2315
|
source_execution_id?: string | null;
|
|
2316
|
+
status?: string;
|
|
2294
2317
|
step_key?: string | null;
|
|
2295
2318
|
};
|
|
2296
2319
|
Relationships: [
|
|
@@ -2442,6 +2465,7 @@ type Database = {
|
|
|
2442
2465
|
kind: string;
|
|
2443
2466
|
metadata: Json;
|
|
2444
2467
|
organization_id: string;
|
|
2468
|
+
payload: Json;
|
|
2445
2469
|
processing_state: Json;
|
|
2446
2470
|
storage_path: string | null;
|
|
2447
2471
|
title: string;
|
|
@@ -2455,6 +2479,7 @@ type Database = {
|
|
|
2455
2479
|
kind: string;
|
|
2456
2480
|
metadata?: Json;
|
|
2457
2481
|
organization_id: string;
|
|
2482
|
+
payload?: Json;
|
|
2458
2483
|
processing_state?: Json;
|
|
2459
2484
|
storage_path?: string | null;
|
|
2460
2485
|
title: string;
|
|
@@ -2468,6 +2493,7 @@ type Database = {
|
|
|
2468
2493
|
kind?: string;
|
|
2469
2494
|
metadata?: Json;
|
|
2470
2495
|
organization_id?: string;
|
|
2496
|
+
payload?: Json;
|
|
2471
2497
|
processing_state?: Json;
|
|
2472
2498
|
storage_path?: string | null;
|
|
2473
2499
|
title?: string;
|
|
@@ -6108,8 +6134,34 @@ interface NotificationCountUpdatedEvent {
|
|
|
6108
6134
|
*/
|
|
6109
6135
|
type NotificationSSEEvent = NotificationCountUpdatedEvent;
|
|
6110
6136
|
|
|
6111
|
-
|
|
6112
|
-
|
|
6137
|
+
/**
|
|
6138
|
+
* Every kind of activity the platform records.
|
|
6139
|
+
*
|
|
6140
|
+
* This array is the single TypeScript-side source for the catalog: `ActivityType` is
|
|
6141
|
+
* derived from it, and `ActivityTypeSchema` in `api-schemas.ts` builds its Zod enum
|
|
6142
|
+
* from it rather than repeating the list. It is also what the database CHECK constraint
|
|
6143
|
+
* `activities_activity_type_check` must match exactly.
|
|
6144
|
+
*
|
|
6145
|
+
* A value here that the constraint does not allow raises `23514` on every write, and
|
|
6146
|
+
* because activity writes are best-effort the rejection is silent. That is not
|
|
6147
|
+
* hypothetical: `credential_read` and `agent_access_grant_change` were both in this list
|
|
6148
|
+
* and absent from the constraint, so neither had ever recorded a single row on either
|
|
6149
|
+
* database. `activity-catalog-sync.integration.test.ts` is the gate that now catches it.
|
|
6150
|
+
*/
|
|
6151
|
+
declare const ACTIVITY_TYPES: readonly ["workflow_execution", "agent_run", "hitl_action", "webhook_received", "webhook_executed", "webhook_failed", "credential_change", "credential_read", "api_key_change", "agent_access_grant_change", "deployment_change", "membership_change"];
|
|
6152
|
+
type ActivityType = (typeof ACTIVITY_TYPES)[number];
|
|
6153
|
+
/** Mirrors the `activities_status_check` constraint; same two-place risk as ACTIVITY_TYPES. */
|
|
6154
|
+
declare const ACTIVITY_STATUSES: readonly ["success", "failure", "pending", "approved", "rejected", "completed"];
|
|
6155
|
+
type ActivityStatus = (typeof ACTIVITY_STATUSES)[number];
|
|
6156
|
+
/**
|
|
6157
|
+
* What kind of actor performed an action.
|
|
6158
|
+
*
|
|
6159
|
+
* `'user'` reads `actorId` (FK to users), `'api_key'` reads `actorApiKeyId` (FK to api_keys),
|
|
6160
|
+
* and `'system'` reads neither. The two id columns are deliberately separate rather than one
|
|
6161
|
+
* polymorphic column, so the database keeps checking both referents.
|
|
6162
|
+
*/
|
|
6163
|
+
declare const ACTOR_TYPES: readonly ["user", "system", "api_key"];
|
|
6164
|
+
type ActorType = (typeof ACTOR_TYPES)[number];
|
|
6113
6165
|
interface Activity {
|
|
6114
6166
|
id: string;
|
|
6115
6167
|
organizationId: string;
|
|
@@ -6121,8 +6173,12 @@ interface Activity {
|
|
|
6121
6173
|
entityId: string;
|
|
6122
6174
|
entityName: string | null;
|
|
6123
6175
|
metadata: Record<string, unknown> | null;
|
|
6176
|
+
/** Set when actorType is 'user'. FK to users(id). */
|
|
6124
6177
|
actorId: string | null;
|
|
6125
|
-
actorType
|
|
6178
|
+
/** Set when actorType is 'api_key'. FK to api_keys(id). */
|
|
6179
|
+
actorApiKeyId: string | null;
|
|
6180
|
+
/** Discriminator saying which of the two id fields above to read. */
|
|
6181
|
+
actorType: ActorType | null;
|
|
6126
6182
|
occurredAt: Date;
|
|
6127
6183
|
createdAt: Date;
|
|
6128
6184
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.71.0",
|
|
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",
|
|
@@ -281,10 +281,10 @@
|
|
|
281
281
|
"vite": "^7.0.0",
|
|
282
282
|
"vitest": "^3.2.4",
|
|
283
283
|
"@elevasis/sdk": "1.46.0",
|
|
284
|
-
"@repo/core": "0.61.1",
|
|
285
284
|
"@repo/elevasis-core": "1.0.0",
|
|
286
|
-
"@repo/
|
|
287
|
-
"@repo/
|
|
285
|
+
"@repo/eslint-config": "0.0.0",
|
|
286
|
+
"@repo/core": "0.62.0",
|
|
287
|
+
"@repo/typescript-config": "0.0.0"
|
|
288
288
|
},
|
|
289
289
|
"dependencies": {
|
|
290
290
|
"@dagrejs/dagre": "^1.1.4",
|