@elevasis/ui 2.70.0 → 2.72.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 +3 -3
- package/dist/app/index.d.ts +28 -2
- package/dist/app/index.js +8 -8
- package/dist/auth/index.js +4 -4
- package/dist/charts/index.js +4 -4
- package/dist/{chunk-GZADST64.js → chunk-2454MK7P.js} +7 -7
- package/dist/{chunk-26BTE3Z4.js → chunk-753MKWFV.js} +1 -1
- package/dist/{chunk-LWYLZUUV.js → chunk-7ESZKTQG.js} +3 -3
- package/dist/{chunk-SMH6SQQE.js → chunk-A3JHFZDP.js} +1 -1
- package/dist/{chunk-MFCV4JMQ.js → chunk-AFBFSXP3.js} +4 -4
- package/dist/{chunk-TJMZUL6E.js → chunk-DJWIIPKW.js} +3 -3
- package/dist/{chunk-QDMIFD6F.js → chunk-DKVGO6RJ.js} +1 -1
- package/dist/{chunk-LY3IKYTZ.js → chunk-IMZTRDY2.js} +2 -2
- package/dist/{chunk-JA2XDMAE.js → chunk-IXBRUIYI.js} +1 -1
- package/dist/{chunk-6TT3FQEZ.js → chunk-KIDZXZM5.js} +149 -17
- package/dist/{chunk-CCZJ4OWY.js → chunk-LCHL5SM2.js} +1 -1
- package/dist/{chunk-5C62IRKS.js → chunk-LEQGGX2U.js} +4 -4
- package/dist/{chunk-NM4A63KJ.js → chunk-Q3O3WY7Q.js} +23 -7
- package/dist/{chunk-GJQF3S2Q.js → chunk-RRS2QR3W.js} +1 -1
- package/dist/{chunk-DUEGHF7A.js → chunk-SV4M2BUI.js} +4 -4
- package/dist/{chunk-AGX2CY2O.js → chunk-UZ5JO5TK.js} +1 -1
- package/dist/{chunk-C75XWBYZ.js → chunk-XZIOCB5D.js} +1 -1
- package/dist/{chunk-VDX6DL7Z.js → chunk-Z2W5VNN3.js} +1 -1
- package/dist/{chunk-XKUEO4HG.js → chunk-ZBXCEWKF.js} +3 -3
- package/dist/components/index.d.ts +61 -5
- package/dist/components/index.js +23 -23
- package/dist/components/navigation/index.js +5 -5
- package/dist/features/auth/index.d.ts +26 -0
- package/dist/features/auth/index.js +6 -6
- package/dist/features/clients/index.js +5 -5
- package/dist/features/content/index.d.ts +187 -113
- package/dist/features/content/index.js +200 -303
- package/dist/features/crm/index.d.ts +29 -2
- package/dist/features/crm/index.js +6 -6
- package/dist/features/dashboard/index.d.ts +1 -1
- package/dist/features/dashboard/index.js +6 -6
- package/dist/features/delivery/index.d.ts +26 -0
- package/dist/features/delivery/index.js +5 -5
- package/dist/features/knowledge/index.js +4 -4
- package/dist/features/lead-gen/index.d.ts +3 -2
- package/dist/features/lead-gen/index.js +6 -6
- package/dist/features/monitoring/index.d.ts +33 -3
- package/dist/features/monitoring/index.js +7 -7
- package/dist/features/monitoring/requests/index.js +5 -5
- package/dist/features/operations/index.d.ts +2 -2
- package/dist/features/operations/index.js +9 -9
- package/dist/features/settings/index.d.ts +26 -0
- package/dist/features/settings/index.js +6 -6
- package/dist/hooks/access/index.js +4 -4
- package/dist/hooks/delivery/index.d.ts +26 -0
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.d.ts +310 -14
- package/dist/hooks/index.js +4 -4
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +1 -1
- package/dist/hooks/published.d.ts +310 -14
- package/dist/hooks/published.js +4 -4
- package/dist/initialization/index.d.ts +26 -0
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +18 -18
- package/dist/{knowledge-search-index-LP2WVSQX.js → knowledge-search-index-RZLIVWPJ.js} +5 -5
- package/dist/layout/index.js +7 -7
- package/dist/profile/index.d.ts +26 -0
- package/dist/provider/index.d.ts +28 -2
- package/dist/provider/index.js +4 -4
- package/dist/provider/published.d.ts +28 -2
- package/dist/provider/published.js +4 -4
- package/dist/supabase/index.d.ts +50 -0
- package/dist/test-utils/index.js +3 -3
- package/dist/types/index.d.ts +60 -4
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +5 -5
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;
|
|
@@ -4703,7 +4729,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
4703
4729
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4704
4730
|
route: z.ZodOptional<z.ZodString>;
|
|
4705
4731
|
}, z.core.$loose>>>>;
|
|
4706
|
-
}, z.core.$
|
|
4732
|
+
}, z.core.$strict>>;
|
|
4707
4733
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
4708
4734
|
|
|
4709
4735
|
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
@@ -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/dist/utils/index.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
177
177
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
178
|
route: z.ZodOptional<z.ZodString>;
|
|
179
179
|
}, z.core.$loose>>>>;
|
|
180
|
-
}, z.core.$
|
|
180
|
+
}, z.core.$strict>>;
|
|
181
181
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
182
182
|
|
|
183
183
|
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-
|
|
1
|
+
export { APIClientError, API_URL, DEBOUNCE_FILTER, DEBOUNCE_SLIDER, GC_TIME_LONG, GC_TIME_MEDIUM, GC_TIME_SHORT, LIMIT_ACTIVITY_FEED, OAUTH_FLOW_TIMEOUT, PAGE_SIZE_DEFAULT, STALE_TIME_ADMIN, STALE_TIME_DEFAULT, STALE_TIME_MONITORING, formatChartAxisDate, formatDate, formatDateTime, formatErrorMessage, formatRelativeTime, formatTimeAgo, getErrorInfo, getErrorTitle, getResourceColor, getResourceIcon, isAPIClientError, restoreConsole, setupBrowserMocks, suppressKnownWarnings, validateEmail } from '../chunk-Q3O3WY7Q.js';
|
|
2
2
|
export { REFETCH_INTERVAL_DASHBOARD, REFETCH_INTERVAL_REALTIME, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_RUNNING_FAST, SSE_CLOSE_GRACE_PERIOD, SSE_TOKEN_REFRESH_DELAY, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, debounce, getTimeRangeDates, getTimeRangeLabel } from '../chunk-Y6I3IC45.js';
|
|
3
3
|
export { ResourceStatusColors } from '../chunk-6SSQGWK7.js';
|
|
4
4
|
import '../chunk-TVTSASST.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.72.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",
|
|
@@ -280,11 +280,11 @@
|
|
|
280
280
|
"typescript": "5.9.2",
|
|
281
281
|
"vite": "^7.0.0",
|
|
282
282
|
"vitest": "^3.2.4",
|
|
283
|
-
"@elevasis/sdk": "1.46.0",
|
|
284
|
-
"@repo/core": "0.61.1",
|
|
285
283
|
"@repo/elevasis-core": "1.0.0",
|
|
286
|
-
"@
|
|
287
|
-
"@repo/eslint-config": "0.0.0"
|
|
284
|
+
"@elevasis/sdk": "1.47.0",
|
|
285
|
+
"@repo/eslint-config": "0.0.0",
|
|
286
|
+
"@repo/core": "0.63.0",
|
|
287
|
+
"@repo/typescript-config": "0.0.0"
|
|
288
288
|
},
|
|
289
289
|
"dependencies": {
|
|
290
290
|
"@dagrejs/dagre": "^1.1.4",
|