@elevasis/ui 2.20.0 → 2.22.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.js +5 -5
- package/dist/charts/index.js +3 -3
- package/dist/{chunk-TO7QXDBX.js → chunk-3HEUGBOT.js} +3 -3
- package/dist/chunk-AXXTN44Z.js +26 -0
- package/dist/{chunk-FMFX4K6E.js → chunk-B4FHWKEF.js} +3390 -2929
- package/dist/{chunk-AL23U6C3.js → chunk-BIWHHWCJ.js} +1 -2
- package/dist/{chunk-MZFJWCPH.js → chunk-BSZRKBAW.js} +277 -92
- package/dist/{chunk-GP3AFJYG.js → chunk-COG4ABRI.js} +8 -13
- package/dist/chunk-DDZOHLHB.js +48 -0
- package/dist/{chunk-ZE2KQSHL.js → chunk-GJ7EIABJ.js} +4 -4
- package/dist/{chunk-YP6T426C.js → chunk-IBUYJXA3.js} +1326 -1110
- package/dist/{chunk-2CFOFSSG.js → chunk-IOTLB6ND.js} +8 -13
- package/dist/{chunk-GBMNCNHX.js → chunk-KVJ3LFH2.js} +3 -1
- package/dist/chunk-LJWV4TWV.js +335 -0
- package/dist/{chunk-PJVG3ISO.js → chunk-LKVBEE63.js} +7 -9
- package/dist/{chunk-JR5WNTLA.js → chunk-LVJGPE6H.js} +11 -24
- package/dist/{chunk-OUYH2SBS.js → chunk-LVUCBY7X.js} +2 -2
- package/dist/{chunk-TIIPYB2Z.js → chunk-QZJM3RYI.js} +1 -1
- package/dist/{chunk-OD7GWIZS.js → chunk-SGXXJE52.js} +1 -121
- package/dist/{chunk-7YQKVWSD.js → chunk-SQ5JGELM.js} +25 -5
- package/dist/{chunk-R7OJCNL3.js → chunk-T6INEVX6.js} +1 -1
- package/dist/{chunk-RX4UWZZR.js → chunk-TKAYX2SP.js} +8 -3
- package/dist/{chunk-CTTY6FUT.js → chunk-TSSKOQBX.js} +2 -2
- package/dist/{chunk-GTYUP7MB.js → chunk-WWJ6S2HQ.js} +10 -22
- package/dist/{chunk-Q5HC6ENG.js → chunk-XOTJNW4Q.js} +1 -1
- package/dist/{chunk-BHR7IV72.js → chunk-XUYBOO32.js} +1 -1
- package/dist/{chunk-M7W7CGPL.js → chunk-Z6FAH4XV.js} +1 -1
- package/dist/{chunk-Q4QJOSVS.js → chunk-ZBCTB5CA.js} +1 -1
- package/dist/components/index.css +85 -85
- package/dist/components/index.d.ts +970 -746
- package/dist/components/index.js +246 -39
- package/dist/components/navigation/index.css +589 -0
- package/dist/components/navigation/index.d.ts +1 -13
- package/dist/components/navigation/index.js +11 -1
- package/dist/execution/index.d.ts +27 -0
- package/dist/features/auth/index.css +2 -2
- package/dist/features/auth/index.d.ts +184 -3
- package/dist/features/crm/index.css +2 -2
- package/dist/features/crm/index.d.ts +201 -38
- package/dist/features/crm/index.js +15 -14
- package/dist/features/dashboard/index.css +2 -2
- package/dist/features/dashboard/index.d.ts +25 -27
- package/dist/features/dashboard/index.js +15 -14
- package/dist/features/delivery/index.css +85 -85
- package/dist/features/delivery/index.d.ts +201 -38
- package/dist/features/delivery/index.js +15 -14
- package/dist/features/lead-gen/index.css +2 -2
- package/dist/features/lead-gen/index.d.ts +19 -37
- package/dist/features/lead-gen/index.js +15 -14
- package/dist/features/monitoring/index.css +85 -85
- package/dist/features/monitoring/index.d.ts +18 -36
- package/dist/features/monitoring/index.js +17 -16
- package/dist/features/monitoring/requests/index.css +2 -2
- package/dist/features/monitoring/requests/index.d.ts +18 -36
- package/dist/features/monitoring/requests/index.js +15 -14
- package/dist/features/operations/index.css +2 -2
- package/dist/features/operations/index.d.ts +49 -67
- package/dist/features/operations/index.js +18 -17
- package/dist/features/seo/index.d.ts +17 -35
- package/dist/features/seo/index.js +1 -1
- package/dist/features/settings/index.css +2 -2
- package/dist/features/settings/index.d.ts +222 -44
- package/dist/features/settings/index.js +16 -15
- package/dist/graph/index.css +2 -2
- package/dist/hooks/delivery/index.css +2 -2
- package/dist/hooks/delivery/index.d.ts +184 -3
- package/dist/hooks/delivery/index.js +2 -2
- package/dist/hooks/index.css +85 -85
- package/dist/hooks/index.d.ts +1862 -1582
- package/dist/hooks/index.js +13 -12
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +92 -121
- package/dist/hooks/published.css +85 -85
- package/dist/hooks/published.d.ts +1862 -1582
- package/dist/hooks/published.js +13 -12
- package/dist/index.css +12 -12
- package/dist/index.d.ts +689 -470
- package/dist/index.js +14 -13
- package/dist/initialization/index.d.ts +184 -3
- package/dist/layout/index.js +2 -2
- package/dist/organization/index.css +589 -0
- package/dist/organization/index.js +1 -1
- package/dist/profile/index.d.ts +184 -3
- package/dist/provider/index.css +384 -0
- package/dist/provider/index.d.ts +68 -125
- package/dist/provider/index.js +11 -10
- package/dist/provider/published.css +463 -0
- package/dist/provider/published.d.ts +68 -125
- package/dist/provider/published.js +8 -7
- package/dist/supabase/index.d.ts +359 -6
- package/dist/test-utils/index.d.ts +46 -2
- package/dist/test-utils/index.js +104 -3
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.ts +303 -141
- package/dist/utils/index.d.ts +26 -59
- package/dist/utils/index.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-LR5CRY5A.js +0 -514
- package/dist/chunk-MG3NF7QL.js +0 -63
- /package/dist/{chunk-6GUW5GGF.js → chunk-6Z3G4U2R.js} +0 -0
package/dist/theme/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useAvailablePresets } from '../chunk-
|
|
2
|
-
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-
|
|
1
|
+
export { useAvailablePresets } from '../chunk-QZJM3RYI.js';
|
|
2
|
+
export { PresetsProvider, TOKEN_VAR_MAP, componentThemes, createCssVariablesResolver, generateShades, getPreset, mantineThemeOverride, PRESETS as presets, usePresetsContext } from '../chunk-XOTJNW4Q.js';
|
|
3
3
|
import '../chunk-WLOQ4IBG.js';
|
|
4
4
|
import '../chunk-I2KLQ2HA.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -259,84 +259,6 @@ interface FormSchema {
|
|
|
259
259
|
fields: FormField[];
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
/**
|
|
263
|
-
* Command View Types
|
|
264
|
-
*
|
|
265
|
-
* Unified type definitions for the Command View graph visualization.
|
|
266
|
-
* These types are used by both backend serialization and frontend rendering.
|
|
267
|
-
*
|
|
268
|
-
* Command View shows the resource graph: agents, workflows, triggers, integrations,
|
|
269
|
-
* external resources, and human checkpoints with their relationships.
|
|
270
|
-
*/
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Extended agent metadata for Command View
|
|
274
|
-
* Includes model and capability information for graph display
|
|
275
|
-
*/
|
|
276
|
-
interface CommandViewAgent extends ResourceDefinition {
|
|
277
|
-
type: 'agent';
|
|
278
|
-
modelProvider: string;
|
|
279
|
-
modelId: string;
|
|
280
|
-
toolCount: number;
|
|
281
|
-
hasKnowledgeMap: boolean;
|
|
282
|
-
hasMemory: boolean;
|
|
283
|
-
sessionCapable: boolean;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Extended workflow metadata for Command View
|
|
287
|
-
* Includes step information for graph display
|
|
288
|
-
*/
|
|
289
|
-
interface CommandViewWorkflow extends ResourceDefinition {
|
|
290
|
-
type: 'workflow';
|
|
291
|
-
stepCount: number;
|
|
292
|
-
entryPoint: string;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Node type categories for Command View
|
|
296
|
-
* Simplified categorization for UI rendering and layout
|
|
297
|
-
*/
|
|
298
|
-
type CommandViewNodeType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
|
|
299
|
-
/**
|
|
300
|
-
* Union type for all node types in Command View
|
|
301
|
-
* Frontend can use this for type-safe node handling
|
|
302
|
-
*/
|
|
303
|
-
type CommandViewNode = CommandViewAgent | CommandViewWorkflow | TriggerDefinition | IntegrationDefinition | ExternalResourceDefinition | HumanCheckpointDefinition;
|
|
304
|
-
/**
|
|
305
|
-
* Relationship types between resources
|
|
306
|
-
*
|
|
307
|
-
* - triggers: Resource initiates/starts another resource (orange)
|
|
308
|
-
* - uses: Resource uses an integration (teal)
|
|
309
|
-
* - approval: Resource requires human approval (yellow)
|
|
310
|
-
*/
|
|
311
|
-
type RelationshipType = 'triggers' | 'uses' | 'approval';
|
|
312
|
-
/**
|
|
313
|
-
* Command View edge (relationship between resources)
|
|
314
|
-
*/
|
|
315
|
-
interface CommandViewEdge {
|
|
316
|
-
id: string;
|
|
317
|
-
source: string;
|
|
318
|
-
target: string;
|
|
319
|
-
relationship: RelationshipType;
|
|
320
|
-
label?: string;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Command View data structure
|
|
324
|
-
* Complete graph data for visualization
|
|
325
|
-
*
|
|
326
|
-
* Backend serializes this once at startup and serves it via /command-view endpoint.
|
|
327
|
-
* Frontend consumes this directly for graph rendering.
|
|
328
|
-
*/
|
|
329
|
-
interface CommandViewData {
|
|
330
|
-
workflows: CommandViewWorkflow[];
|
|
331
|
-
agents: CommandViewAgent[];
|
|
332
|
-
triggers: TriggerDefinition[];
|
|
333
|
-
integrations: IntegrationDefinition[];
|
|
334
|
-
externalResources: ExternalResourceDefinition[];
|
|
335
|
-
humanCheckpoints: HumanCheckpointDefinition[];
|
|
336
|
-
edges: CommandViewEdge[];
|
|
337
|
-
domainDefinitions?: DomainDefinition[];
|
|
338
|
-
}
|
|
339
|
-
|
|
340
262
|
/**
|
|
341
263
|
* Serialized Registry Types
|
|
342
264
|
*
|
|
@@ -417,6 +339,8 @@ interface SerializedAgentDefinition {
|
|
|
417
339
|
version: string;
|
|
418
340
|
type: 'agent';
|
|
419
341
|
status: 'dev' | 'prod';
|
|
342
|
+
links?: ResourceLink[];
|
|
343
|
+
category?: ResourceCategory;
|
|
420
344
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
421
345
|
archived?: boolean;
|
|
422
346
|
systemPrompt: string;
|
|
@@ -472,6 +396,8 @@ interface SerializedWorkflowDefinition {
|
|
|
472
396
|
version: string;
|
|
473
397
|
type: 'workflow';
|
|
474
398
|
status: 'dev' | 'prod';
|
|
399
|
+
links?: ResourceLink[];
|
|
400
|
+
category?: ResourceCategory;
|
|
475
401
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
476
402
|
archived?: boolean;
|
|
477
403
|
};
|
|
@@ -2335,6 +2261,7 @@ type Database = {
|
|
|
2335
2261
|
Row: {
|
|
2336
2262
|
config: Json;
|
|
2337
2263
|
created_at: string | null;
|
|
2264
|
+
effective_permissions: string[];
|
|
2338
2265
|
id: string;
|
|
2339
2266
|
membership_status: string | null;
|
|
2340
2267
|
organization_id: string;
|
|
@@ -2346,6 +2273,7 @@ type Database = {
|
|
|
2346
2273
|
Insert: {
|
|
2347
2274
|
config?: Json;
|
|
2348
2275
|
created_at?: string | null;
|
|
2276
|
+
effective_permissions?: string[];
|
|
2349
2277
|
id?: string;
|
|
2350
2278
|
membership_status?: string | null;
|
|
2351
2279
|
organization_id: string;
|
|
@@ -2357,6 +2285,7 @@ type Database = {
|
|
|
2357
2285
|
Update: {
|
|
2358
2286
|
config?: Json;
|
|
2359
2287
|
created_at?: string | null;
|
|
2288
|
+
effective_permissions?: string[];
|
|
2360
2289
|
id?: string;
|
|
2361
2290
|
membership_status?: string | null;
|
|
2362
2291
|
organization_id?: string;
|
|
@@ -2382,6 +2311,147 @@ type Database = {
|
|
|
2382
2311
|
}
|
|
2383
2312
|
];
|
|
2384
2313
|
};
|
|
2314
|
+
org_rol_assignments: {
|
|
2315
|
+
Row: {
|
|
2316
|
+
granted_at: string;
|
|
2317
|
+
granted_by: string | null;
|
|
2318
|
+
membership_id: string;
|
|
2319
|
+
role_id: string;
|
|
2320
|
+
};
|
|
2321
|
+
Insert: {
|
|
2322
|
+
granted_at?: string;
|
|
2323
|
+
granted_by?: string | null;
|
|
2324
|
+
membership_id: string;
|
|
2325
|
+
role_id: string;
|
|
2326
|
+
};
|
|
2327
|
+
Update: {
|
|
2328
|
+
granted_at?: string;
|
|
2329
|
+
granted_by?: string | null;
|
|
2330
|
+
membership_id?: string;
|
|
2331
|
+
role_id?: string;
|
|
2332
|
+
};
|
|
2333
|
+
Relationships: [
|
|
2334
|
+
{
|
|
2335
|
+
foreignKeyName: "org_rol_assignments_granted_by_fkey";
|
|
2336
|
+
columns: ["granted_by"];
|
|
2337
|
+
isOneToOne: false;
|
|
2338
|
+
referencedRelation: "users";
|
|
2339
|
+
referencedColumns: ["id"];
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
foreignKeyName: "org_rol_assignments_membership_id_fkey";
|
|
2343
|
+
columns: ["membership_id"];
|
|
2344
|
+
isOneToOne: false;
|
|
2345
|
+
referencedRelation: "org_memberships";
|
|
2346
|
+
referencedColumns: ["id"];
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
foreignKeyName: "org_rol_assignments_role_id_fkey";
|
|
2350
|
+
columns: ["role_id"];
|
|
2351
|
+
isOneToOne: false;
|
|
2352
|
+
referencedRelation: "org_rol_definitions";
|
|
2353
|
+
referencedColumns: ["id"];
|
|
2354
|
+
}
|
|
2355
|
+
];
|
|
2356
|
+
};
|
|
2357
|
+
org_rol_definitions: {
|
|
2358
|
+
Row: {
|
|
2359
|
+
created_at: string;
|
|
2360
|
+
description: string | null;
|
|
2361
|
+
id: string;
|
|
2362
|
+
is_system: boolean;
|
|
2363
|
+
name: string;
|
|
2364
|
+
organization_id: string | null;
|
|
2365
|
+
slug: string;
|
|
2366
|
+
updated_at: string;
|
|
2367
|
+
};
|
|
2368
|
+
Insert: {
|
|
2369
|
+
created_at?: string;
|
|
2370
|
+
description?: string | null;
|
|
2371
|
+
id?: string;
|
|
2372
|
+
is_system?: boolean;
|
|
2373
|
+
name: string;
|
|
2374
|
+
organization_id?: string | null;
|
|
2375
|
+
slug: string;
|
|
2376
|
+
updated_at?: string;
|
|
2377
|
+
};
|
|
2378
|
+
Update: {
|
|
2379
|
+
created_at?: string;
|
|
2380
|
+
description?: string | null;
|
|
2381
|
+
id?: string;
|
|
2382
|
+
is_system?: boolean;
|
|
2383
|
+
name?: string;
|
|
2384
|
+
organization_id?: string | null;
|
|
2385
|
+
slug?: string;
|
|
2386
|
+
updated_at?: string;
|
|
2387
|
+
};
|
|
2388
|
+
Relationships: [
|
|
2389
|
+
{
|
|
2390
|
+
foreignKeyName: "org_rol_definitions_organization_id_fkey";
|
|
2391
|
+
columns: ["organization_id"];
|
|
2392
|
+
isOneToOne: false;
|
|
2393
|
+
referencedRelation: "organizations";
|
|
2394
|
+
referencedColumns: ["id"];
|
|
2395
|
+
}
|
|
2396
|
+
];
|
|
2397
|
+
};
|
|
2398
|
+
org_rol_grants: {
|
|
2399
|
+
Row: {
|
|
2400
|
+
granted_at: string;
|
|
2401
|
+
permission_key: string;
|
|
2402
|
+
role_id: string;
|
|
2403
|
+
};
|
|
2404
|
+
Insert: {
|
|
2405
|
+
granted_at?: string;
|
|
2406
|
+
permission_key: string;
|
|
2407
|
+
role_id: string;
|
|
2408
|
+
};
|
|
2409
|
+
Update: {
|
|
2410
|
+
granted_at?: string;
|
|
2411
|
+
permission_key?: string;
|
|
2412
|
+
role_id?: string;
|
|
2413
|
+
};
|
|
2414
|
+
Relationships: [
|
|
2415
|
+
{
|
|
2416
|
+
foreignKeyName: "org_rol_grants_permission_key_fkey";
|
|
2417
|
+
columns: ["permission_key"];
|
|
2418
|
+
isOneToOne: false;
|
|
2419
|
+
referencedRelation: "org_rol_permissions";
|
|
2420
|
+
referencedColumns: ["key"];
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
foreignKeyName: "org_rol_grants_role_id_fkey";
|
|
2424
|
+
columns: ["role_id"];
|
|
2425
|
+
isOneToOne: false;
|
|
2426
|
+
referencedRelation: "org_rol_definitions";
|
|
2427
|
+
referencedColumns: ["id"];
|
|
2428
|
+
}
|
|
2429
|
+
];
|
|
2430
|
+
};
|
|
2431
|
+
org_rol_permissions: {
|
|
2432
|
+
Row: {
|
|
2433
|
+
created_at: string;
|
|
2434
|
+
description: string;
|
|
2435
|
+
is_org_grantable: boolean;
|
|
2436
|
+
key: string;
|
|
2437
|
+
updated_at: string;
|
|
2438
|
+
};
|
|
2439
|
+
Insert: {
|
|
2440
|
+
created_at?: string;
|
|
2441
|
+
description: string;
|
|
2442
|
+
is_org_grantable?: boolean;
|
|
2443
|
+
key: string;
|
|
2444
|
+
updated_at?: string;
|
|
2445
|
+
};
|
|
2446
|
+
Update: {
|
|
2447
|
+
created_at?: string;
|
|
2448
|
+
description?: string;
|
|
2449
|
+
is_org_grantable?: boolean;
|
|
2450
|
+
key?: string;
|
|
2451
|
+
updated_at?: string;
|
|
2452
|
+
};
|
|
2453
|
+
Relationships: [];
|
|
2454
|
+
};
|
|
2385
2455
|
organizations: {
|
|
2386
2456
|
Row: {
|
|
2387
2457
|
config: Json;
|
|
@@ -3139,7 +3209,8 @@ type Database = {
|
|
|
3139
3209
|
created_at: string;
|
|
3140
3210
|
description: string | null;
|
|
3141
3211
|
id: string;
|
|
3142
|
-
|
|
3212
|
+
key_hash: string;
|
|
3213
|
+
key_prefix: string | null;
|
|
3143
3214
|
last_triggered_at: string | null;
|
|
3144
3215
|
name: string;
|
|
3145
3216
|
organization_id: string;
|
|
@@ -3152,7 +3223,8 @@ type Database = {
|
|
|
3152
3223
|
created_at?: string;
|
|
3153
3224
|
description?: string | null;
|
|
3154
3225
|
id?: string;
|
|
3155
|
-
|
|
3226
|
+
key_hash: string;
|
|
3227
|
+
key_prefix?: string | null;
|
|
3156
3228
|
last_triggered_at?: string | null;
|
|
3157
3229
|
name: string;
|
|
3158
3230
|
organization_id: string;
|
|
@@ -3165,7 +3237,8 @@ type Database = {
|
|
|
3165
3237
|
created_at?: string;
|
|
3166
3238
|
description?: string | null;
|
|
3167
3239
|
id?: string;
|
|
3168
|
-
|
|
3240
|
+
key_hash?: string;
|
|
3241
|
+
key_prefix?: string | null;
|
|
3169
3242
|
last_triggered_at?: string | null;
|
|
3170
3243
|
name?: string;
|
|
3171
3244
|
organization_id?: string;
|
|
@@ -3211,6 +3284,13 @@ type Database = {
|
|
|
3211
3284
|
Args: never;
|
|
3212
3285
|
Returns: string;
|
|
3213
3286
|
};
|
|
3287
|
+
can_assign_role_in_org: {
|
|
3288
|
+
Args: {
|
|
3289
|
+
p_role_id: string;
|
|
3290
|
+
p_target_membership_id: string;
|
|
3291
|
+
};
|
|
3292
|
+
Returns: boolean;
|
|
3293
|
+
};
|
|
3214
3294
|
current_user_is_platform_admin: {
|
|
3215
3295
|
Args: never;
|
|
3216
3296
|
Returns: boolean;
|
|
@@ -3240,6 +3320,10 @@ type Database = {
|
|
|
3240
3320
|
user_id: string;
|
|
3241
3321
|
}[];
|
|
3242
3322
|
};
|
|
3323
|
+
get_platform_credential_kek: {
|
|
3324
|
+
Args: never;
|
|
3325
|
+
Returns: string;
|
|
3326
|
+
};
|
|
3243
3327
|
get_storage_org_id: {
|
|
3244
3328
|
Args: {
|
|
3245
3329
|
file_path: string;
|
|
@@ -3250,6 +3334,13 @@ type Database = {
|
|
|
3250
3334
|
Args: never;
|
|
3251
3335
|
Returns: string;
|
|
3252
3336
|
};
|
|
3337
|
+
has_org_permission: {
|
|
3338
|
+
Args: {
|
|
3339
|
+
org_id: string;
|
|
3340
|
+
perm_key: string;
|
|
3341
|
+
};
|
|
3342
|
+
Returns: boolean;
|
|
3343
|
+
};
|
|
3253
3344
|
is_org_admin: {
|
|
3254
3345
|
Args: {
|
|
3255
3346
|
org_id: string;
|
|
@@ -3282,6 +3373,22 @@ type Database = {
|
|
|
3282
3373
|
Args: never;
|
|
3283
3374
|
Returns: Json;
|
|
3284
3375
|
};
|
|
3376
|
+
recompute_all_memberships: {
|
|
3377
|
+
Args: never;
|
|
3378
|
+
Returns: undefined;
|
|
3379
|
+
};
|
|
3380
|
+
sync_all_memberships_with_role: {
|
|
3381
|
+
Args: {
|
|
3382
|
+
p_role_id: string;
|
|
3383
|
+
};
|
|
3384
|
+
Returns: undefined;
|
|
3385
|
+
};
|
|
3386
|
+
sync_one_membership: {
|
|
3387
|
+
Args: {
|
|
3388
|
+
p_membership_id: string;
|
|
3389
|
+
};
|
|
3390
|
+
Returns: undefined;
|
|
3391
|
+
};
|
|
3285
3392
|
upsert_user_profile: {
|
|
3286
3393
|
Args: never;
|
|
3287
3394
|
Returns: {
|
|
@@ -4257,8 +4364,10 @@ interface ResourceDefinition {
|
|
|
4257
4364
|
type: ResourceType;
|
|
4258
4365
|
/** Environment/deployment status */
|
|
4259
4366
|
status: ResourceStatus;
|
|
4260
|
-
/**
|
|
4261
|
-
|
|
4367
|
+
/** Graph links to Organization Model nodes */
|
|
4368
|
+
links?: ResourceLink[];
|
|
4369
|
+
/** Infrastructure category for filtering */
|
|
4370
|
+
category?: ResourceCategory;
|
|
4262
4371
|
/** Whether the agent supports multi-turn sessions (agents only) */
|
|
4263
4372
|
sessionCapable?: boolean;
|
|
4264
4373
|
/** Whether the resource is local (monorepo) or remote (externally deployed) */
|
|
@@ -4266,33 +4375,6 @@ interface ResourceDefinition {
|
|
|
4266
4375
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
4267
4376
|
archived?: boolean;
|
|
4268
4377
|
}
|
|
4269
|
-
/**
|
|
4270
|
-
* Domain definition for Command View filtering
|
|
4271
|
-
*
|
|
4272
|
-
* Domains are organizational metadata for UI filtering/grouping.
|
|
4273
|
-
* No execution impact - purely for visualization.
|
|
4274
|
-
*
|
|
4275
|
-
* @example
|
|
4276
|
-
* {
|
|
4277
|
-
* id: 'support',
|
|
4278
|
-
* name: 'Customer Support',
|
|
4279
|
-
* description: 'Ticket triage, knowledge base, escalations',
|
|
4280
|
-
* color: 'green',
|
|
4281
|
-
* icon: 'IconHeadset'
|
|
4282
|
-
* }
|
|
4283
|
-
*/
|
|
4284
|
-
interface DomainDefinition {
|
|
4285
|
-
/** Unique identifier (e.g., 'support') */
|
|
4286
|
-
id: string;
|
|
4287
|
-
/** Display name (e.g., 'Customer Support') */
|
|
4288
|
-
name: string;
|
|
4289
|
-
/** Purpose description */
|
|
4290
|
-
description: string;
|
|
4291
|
-
/** Optional Mantine color for UI (e.g., 'blue', 'green', 'orange') */
|
|
4292
|
-
color?: string;
|
|
4293
|
-
/** Optional Tabler icon name (e.g., 'IconHeadset') */
|
|
4294
|
-
icon?: string;
|
|
4295
|
-
}
|
|
4296
4378
|
/** Webhook provider identifiers */
|
|
4297
4379
|
type WebhookProviderType = 'cal-com' | 'stripe' | 'signature-api' | 'instantly' | 'apify' | 'test';
|
|
4298
4380
|
/** Webhook trigger configuration */
|
|
@@ -4329,7 +4411,7 @@ type TriggerConfig = WebhookTriggerConfig | ScheduleTriggerConfig | EventTrigger
|
|
|
4329
4411
|
* scheduled cron jobs, platform events, or manual user actions.
|
|
4330
4412
|
*
|
|
4331
4413
|
* BREAKING CHANGES (2025-11-30):
|
|
4332
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
4414
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
4333
4415
|
* - Field renames: `id` -> `resourceId` (inherited), `type` -> `triggerType`
|
|
4334
4416
|
* - Relationship rename: `invokes` -> `triggers` (unified vocabulary)
|
|
4335
4417
|
* - New required fields: `version` (inherited), `type: 'trigger'` (inherited)
|
|
@@ -4374,7 +4456,7 @@ interface TriggerDefinition extends ResourceDefinition {
|
|
|
4374
4456
|
* stored here (queried at runtime from credentials table).
|
|
4375
4457
|
*
|
|
4376
4458
|
* BREAKING CHANGES (2025-11-30):
|
|
4377
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
4459
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
4378
4460
|
* - Field renames: `id` -> `resourceId` (inherited)
|
|
4379
4461
|
* - New required field: `status` (inherited) - organizations must add status to all integrations
|
|
4380
4462
|
* - New required field: `version` (inherited) - organizations must add version to all integrations
|
|
@@ -4415,7 +4497,7 @@ type ExternalPlatform = 'n8n' | 'make' | 'zapier' | 'other';
|
|
|
4415
4497
|
* no API integration with external platforms, no status syncing.
|
|
4416
4498
|
*
|
|
4417
4499
|
* BREAKING CHANGES (2025-11-30):
|
|
4418
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
4500
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
4419
4501
|
* - Field renames: `id` -> `resourceId` (inherited)
|
|
4420
4502
|
* - New required field: `version` (inherited) - organizations must add version to all external resources
|
|
4421
4503
|
* - New required field: `type: 'external'` (inherited) - resource type discriminator
|
|
@@ -4464,7 +4546,7 @@ interface ExternalResourceDefinition extends ResourceDefinition {
|
|
|
4464
4546
|
* Tasks with matching command_queue_group are routed to this checkpoint.
|
|
4465
4547
|
*
|
|
4466
4548
|
* BREAKING CHANGES (2025-11-30):
|
|
4467
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
4549
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
4468
4550
|
* - Field renames: `id` -> `resourceId` (inherited)
|
|
4469
4551
|
* - description is now REQUIRED (was optional) - organizations must add description to all human checkpoints
|
|
4470
4552
|
* - New required field: `version` (inherited) - organizations must add version to all human checkpoints
|
|
@@ -4502,31 +4584,103 @@ interface HumanCheckpointDefinition extends ResourceDefinition {
|
|
|
4502
4584
|
}
|
|
4503
4585
|
|
|
4504
4586
|
/**
|
|
4505
|
-
*
|
|
4506
|
-
*
|
|
4587
|
+
* Command View Types
|
|
4588
|
+
*
|
|
4589
|
+
* Unified type definitions for the Command View graph visualization.
|
|
4590
|
+
* These types are used by both backend serialization and frontend rendering.
|
|
4591
|
+
*
|
|
4592
|
+
* Command View shows the resource graph: agents, workflows, triggers, integrations,
|
|
4593
|
+
* external resources, and human checkpoints with their relationships.
|
|
4507
4594
|
*/
|
|
4508
4595
|
|
|
4509
|
-
declare const DOMAINS: {
|
|
4510
|
-
readonly INBOUND_PIPELINE: "inbound-pipeline";
|
|
4511
|
-
readonly LEAD_GEN_PIPELINE: "lead-gen-pipeline";
|
|
4512
|
-
readonly SUPPORT: "support";
|
|
4513
|
-
readonly CLIENT_SUPPORT: "client-support";
|
|
4514
|
-
readonly DELIVERY: "delivery";
|
|
4515
|
-
readonly OPERATIONS: "operations";
|
|
4516
|
-
readonly FINANCE: "finance";
|
|
4517
|
-
readonly EXECUTIVE: "executive";
|
|
4518
|
-
readonly INSTANTLY: "instantly";
|
|
4519
|
-
readonly TESTING: "testing";
|
|
4520
|
-
readonly INTERNAL: "internal";
|
|
4521
|
-
readonly INTEGRATION: "integration";
|
|
4522
|
-
readonly UTILITY: "utility";
|
|
4523
|
-
readonly DIAGNOSTIC: "diagnostic";
|
|
4524
|
-
};
|
|
4525
4596
|
/**
|
|
4526
|
-
*
|
|
4527
|
-
*
|
|
4597
|
+
* Extended agent metadata for Command View
|
|
4598
|
+
* Includes model and capability information for graph display
|
|
4599
|
+
*/
|
|
4600
|
+
interface CommandViewAgent extends ResourceDefinition {
|
|
4601
|
+
type: 'agent';
|
|
4602
|
+
modelProvider: string;
|
|
4603
|
+
modelId: string;
|
|
4604
|
+
toolCount: number;
|
|
4605
|
+
hasKnowledgeMap: boolean;
|
|
4606
|
+
hasMemory: boolean;
|
|
4607
|
+
sessionCapable: boolean;
|
|
4608
|
+
}
|
|
4609
|
+
/**
|
|
4610
|
+
* Extended workflow metadata for Command View
|
|
4611
|
+
* Includes step information for graph display
|
|
4612
|
+
*/
|
|
4613
|
+
interface CommandViewWorkflow extends ResourceDefinition {
|
|
4614
|
+
type: 'workflow';
|
|
4615
|
+
stepCount: number;
|
|
4616
|
+
entryPoint: string;
|
|
4617
|
+
}
|
|
4618
|
+
/**
|
|
4619
|
+
* Node type categories for Command View
|
|
4620
|
+
* Simplified categorization for UI rendering and layout
|
|
4621
|
+
*/
|
|
4622
|
+
type CommandViewNodeType = 'agent' | 'workflow' | 'trigger' | 'integration' | 'external' | 'human';
|
|
4623
|
+
/**
|
|
4624
|
+
* Union type for all node types in Command View
|
|
4625
|
+
* Frontend can use this for type-safe node handling
|
|
4626
|
+
*/
|
|
4627
|
+
type CommandViewNode = CommandViewAgent | CommandViewWorkflow | TriggerDefinition | IntegrationDefinition | ExternalResourceDefinition | HumanCheckpointDefinition;
|
|
4628
|
+
/**
|
|
4629
|
+
* Relationship types between resources
|
|
4630
|
+
*
|
|
4631
|
+
* - triggers: Resource initiates/starts another resource (orange)
|
|
4632
|
+
* - uses: Resource uses an integration (teal)
|
|
4633
|
+
* - approval: Resource requires human approval (yellow)
|
|
4634
|
+
*/
|
|
4635
|
+
type RelationshipType = 'triggers' | 'uses' | 'approval';
|
|
4636
|
+
/**
|
|
4637
|
+
* Command View edge (relationship between resources)
|
|
4528
4638
|
*/
|
|
4529
|
-
|
|
4639
|
+
interface CommandViewEdge {
|
|
4640
|
+
id: string;
|
|
4641
|
+
source: string;
|
|
4642
|
+
target: string;
|
|
4643
|
+
relationship: RelationshipType;
|
|
4644
|
+
label?: string;
|
|
4645
|
+
}
|
|
4646
|
+
/**
|
|
4647
|
+
* Command View data structure
|
|
4648
|
+
* Complete graph data for visualization
|
|
4649
|
+
*
|
|
4650
|
+
* Backend serializes this once at startup and serves it via /command-view endpoint.
|
|
4651
|
+
* Frontend consumes this directly for graph rendering.
|
|
4652
|
+
*/
|
|
4653
|
+
interface CommandViewData {
|
|
4654
|
+
workflows: CommandViewWorkflow[];
|
|
4655
|
+
agents: CommandViewAgent[];
|
|
4656
|
+
triggers: TriggerDefinition[];
|
|
4657
|
+
integrations: IntegrationDefinition[];
|
|
4658
|
+
externalResources: ExternalResourceDefinition[];
|
|
4659
|
+
humanCheckpoints: HumanCheckpointDefinition[];
|
|
4660
|
+
edges: CommandViewEdge[];
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4663
|
+
declare const LinkSchema: z.ZodObject<{
|
|
4664
|
+
nodeId: z.ZodString;
|
|
4665
|
+
kind: z.ZodEnum<{
|
|
4666
|
+
contains: "contains";
|
|
4667
|
+
references: "references";
|
|
4668
|
+
exposes: "exposes";
|
|
4669
|
+
maps_to: "maps_to";
|
|
4670
|
+
"operates-on": "operates-on";
|
|
4671
|
+
uses: "uses";
|
|
4672
|
+
}>;
|
|
4673
|
+
}, z.core.$strip>;
|
|
4674
|
+
type Link = z.infer<typeof LinkSchema>;
|
|
4675
|
+
|
|
4676
|
+
declare const ResourceCategorySchema: z.ZodEnum<{
|
|
4677
|
+
production: "production";
|
|
4678
|
+
diagnostic: "diagnostic";
|
|
4679
|
+
internal: "internal";
|
|
4680
|
+
testing: "testing";
|
|
4681
|
+
}>;
|
|
4682
|
+
type ResourceCategory = z.infer<typeof ResourceCategorySchema>;
|
|
4683
|
+
type ResourceLink = Link;
|
|
4530
4684
|
|
|
4531
4685
|
type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'warning';
|
|
4532
4686
|
/**
|
|
@@ -4685,7 +4839,7 @@ interface NotificationCountUpdatedEvent {
|
|
|
4685
4839
|
*/
|
|
4686
4840
|
type NotificationSSEEvent = NotificationCountUpdatedEvent;
|
|
4687
4841
|
|
|
4688
|
-
type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'api_key_change' | 'deployment_change' | 'membership_change';
|
|
4842
|
+
type ActivityType = 'workflow_execution' | 'agent_run' | 'hitl_action' | 'webhook_received' | 'webhook_executed' | 'webhook_failed' | 'credential_change' | 'credential_read' | 'api_key_change' | 'deployment_change' | 'membership_change';
|
|
4689
4843
|
type ActivityStatus = 'success' | 'failure' | 'pending' | 'approved' | 'rejected' | 'completed';
|
|
4690
4844
|
interface Activity {
|
|
4691
4845
|
id: string;
|
|
@@ -4829,9 +4983,9 @@ declare const ExecutionHistoryItemSchema: z.ZodObject<{
|
|
|
4829
4983
|
createdAt: z.ZodString;
|
|
4830
4984
|
status: z.ZodEnum<{
|
|
4831
4985
|
completed: "completed";
|
|
4986
|
+
cancelled: "cancelled";
|
|
4832
4987
|
failed: "failed";
|
|
4833
4988
|
running: "running";
|
|
4834
|
-
cancelled: "cancelled";
|
|
4835
4989
|
}>;
|
|
4836
4990
|
step: z.ZodNullable<z.ZodNumber>;
|
|
4837
4991
|
itemLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -4848,9 +5002,9 @@ declare const ExecutionHistoryResponseSchema: z.ZodObject<{
|
|
|
4848
5002
|
createdAt: z.ZodString;
|
|
4849
5003
|
status: z.ZodEnum<{
|
|
4850
5004
|
completed: "completed";
|
|
5005
|
+
cancelled: "cancelled";
|
|
4851
5006
|
failed: "failed";
|
|
4852
5007
|
running: "running";
|
|
4853
|
-
cancelled: "cancelled";
|
|
4854
5008
|
}>;
|
|
4855
5009
|
step: z.ZodNullable<z.ZodNumber>;
|
|
4856
5010
|
itemLabel: z.ZodNullable<z.ZodString>;
|
|
@@ -4954,8 +5108,15 @@ interface WebhookEndpoint {
|
|
|
4954
5108
|
* Unique opaque key used in the inbound URL.
|
|
4955
5109
|
* Format: `wh_` + 32 crypto-random hex chars (128 bits of entropy).
|
|
4956
5110
|
* This key IS the credential — it must be kept secret.
|
|
5111
|
+
* Set ONLY on the return value of `create()` — undefined on list/get/getEndpointByKey responses.
|
|
4957
5112
|
*/
|
|
4958
|
-
key
|
|
5113
|
+
key?: string;
|
|
5114
|
+
/**
|
|
5115
|
+
* First 8 characters of the plaintext key for display and grep hints.
|
|
5116
|
+
* Safe to show in list views — not sufficient to reconstruct the full key.
|
|
5117
|
+
* Null on legacy rows that predate the key_hash migration.
|
|
5118
|
+
*/
|
|
5119
|
+
keyPrefix: string | null;
|
|
4959
5120
|
/** User-facing label (e.g., "Zapier → Lead Intake") */
|
|
4960
5121
|
name: string;
|
|
4961
5122
|
/** Optional description for the endpoint */
|
|
@@ -5007,7 +5168,8 @@ type UpdateWebhookEndpointRequest = z.infer<typeof UpdateWebhookEndpointRequestS
|
|
|
5007
5168
|
declare const WebhookEndpointResponseSchema: z.ZodObject<{
|
|
5008
5169
|
id: z.ZodString;
|
|
5009
5170
|
organizationId: z.ZodString;
|
|
5010
|
-
key: z.ZodString
|
|
5171
|
+
key: z.ZodOptional<z.ZodString>;
|
|
5172
|
+
keyPrefix: z.ZodNullable<z.ZodString>;
|
|
5011
5173
|
name: z.ZodString;
|
|
5012
5174
|
description: z.ZodNullable<z.ZodString>;
|
|
5013
5175
|
resourceId: z.ZodNullable<z.ZodString>;
|
|
@@ -5022,4 +5184,4 @@ declare const WebhookEndpointResponseSchema: z.ZodObject<{
|
|
|
5022
5184
|
}, z.core.$strip>;
|
|
5023
5185
|
type WebhookEndpointResponse = z.infer<typeof WebhookEndpointResponseSchema>;
|
|
5024
5186
|
|
|
5025
|
-
export type { AIResourceDefinition, APIExecutionDetail, APIExecutionListResponse, APIExecutionSummary, AbsoluteScheduleConfig, AbsoluteScheduleItem, ActionConfig, Activity, ActivitySSEEvent, ActivityStatus, ActivityType, AgentIterationData, AgentMemory, ApiKeyListItem, BusinessImpactMetrics, ChatMessage, CheckpointListResponse, CommandQueueSSEEvent, CommandViewAgent, CommandViewData, CommandViewNode, CommandViewNodeType, CommandViewStatsResponse, CommandViewWorkflow, CostBreakdownMetrics, CostByModelResponse, CostSummaryResponse, CostTrendsResponse, CreateWebhookEndpointRequest, CredentialField, CredentialListItem, CredentialSchema, DashboardMetrics, DealListItem, DealStage, Deployment, DeploymentStatus,
|
|
5187
|
+
export type { AIResourceDefinition, APIExecutionDetail, APIExecutionListResponse, APIExecutionSummary, AbsoluteScheduleConfig, AbsoluteScheduleItem, ActionConfig, Activity, ActivitySSEEvent, ActivityStatus, ActivityType, AgentIterationData, AgentMemory, ApiKeyListItem, BusinessImpactMetrics, ChatMessage, CheckpointListResponse, CommandQueueSSEEvent, CommandViewAgent, CommandViewData, CommandViewNode, CommandViewNodeType, CommandViewStatsResponse, CommandViewWorkflow, CostBreakdownMetrics, CostByModelResponse, CostSummaryResponse, CostTrendsResponse, CreateWebhookEndpointRequest, CredentialField, CredentialListItem, CredentialSchema, DashboardMetrics, DealListItem, DealStage, Deployment, DeploymentStatus, ErrorAnalysisMetrics, ErrorDetailFull, ErrorDetailResponse, ErrorTrend, ExecutionHealthMetrics, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogMessage, ExecutionMetricsDetail, ExecutionRunnerCatalogItem, ExecutionSSEEvent, ExecutionStatus, ExecutionSummary, FailingResource, HumanCheckpointDefinition, HumanCheckpointStats, KanbanBoardConfig, ListMembershipsParams, MembershipFeatureConfig, MembershipStatus, MembershipWithDetails, MessageEvent, MessageType, ModelConfig, NotificationDTO, NotificationSSEEvent, OAuthProviderConfig, PatchTaskParams, QueueTaskStatus, RecentExecutionsByResourceResponse, RecurringScheduleConfig, RelativeScheduleConfig, RelativeScheduleItem, ResourceCategory, ResourceDefinition, ResourceErrorsResponse, ResourceExecutionSummary, ResourceExecutionsResponse, ResourceHealth, ResourceIdentifier, ResourceLink, ResourceStats, ResourceStatus, ResourceType, ResourcesHealthResponse, SerializedAgentDefinition, SerializedExecutionInterface, SerializedWorkflowDefinition, SessionDTO, SessionTokenUsage, StatsTimeRange, SupabaseUserProfile, Task, TaskSchedule, TaskScheduleConfig, TimeRange, WorkflowNodeVisualizerData as TimelineData, UpdateWebhookEndpointRequest, UserConfig, WebhookEndpoint, WebhookEndpointResponse };
|