@elevasis/ui 2.33.1 → 2.34.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.
Files changed (73) hide show
  1. package/dist/api/index.d.ts +9 -2
  2. package/dist/api/index.js +1 -1
  3. package/dist/app/index.css +452 -0
  4. package/dist/app/index.d.ts +1250 -3
  5. package/dist/app/index.js +144 -8
  6. package/dist/charts/index.js +2 -3
  7. package/dist/{chunk-3YZRKADM.js → chunk-3AJVNMY5.js} +45 -28
  8. package/dist/chunk-3QXJK5IY.js +25 -0
  9. package/dist/chunk-4O4MII5S.js +4716 -0
  10. package/dist/{chunk-KW7ZNQD7.js → chunk-5EYJ2GIN.js} +4 -8
  11. package/dist/{chunk-53436UTQ.js → chunk-BPQVTIUP.js} +12 -3
  12. package/dist/{chunk-DYIDXUJS.js → chunk-DTFKWZ7A.js} +1098 -2280
  13. package/dist/{chunk-EPTHX4VZ.js → chunk-HRWLKKWM.js} +11 -2
  14. package/dist/{chunk-SWMQTF2H.js → chunk-IGDYWFNE.js} +2 -2
  15. package/dist/{chunk-QVTIOT73.js → chunk-IVGI4GDL.js} +3 -3
  16. package/dist/{chunk-4DYOXEH6.js → chunk-LAWLB6CT.js} +1 -1
  17. package/dist/{chunk-UYRT7SPM.js → chunk-LRWTWOGP.js} +3 -3
  18. package/dist/{chunk-2VYMDNJ3.js → chunk-MP3GPBPX.js} +3 -3
  19. package/dist/{chunk-YENKDBUU.js → chunk-NLBQTDOW.js} +12 -17
  20. package/dist/{chunk-WJOE76FI.js → chunk-O6JXQ6UQ.js} +5 -4
  21. package/dist/{chunk-F3MXFE72.js → chunk-OBBQ2JCM.js} +3 -3
  22. package/dist/{chunk-WGUEIGPC.js → chunk-PLP3NYPL.js} +80 -171
  23. package/dist/{chunk-AV2TKVVV.js → chunk-RIAXZ6AH.js} +5 -6
  24. package/dist/chunk-SDXSB3HN.js +425 -0
  25. package/dist/{chunk-JA5ECJJB.js → chunk-VTXTZXAU.js} +156 -4
  26. package/dist/{chunk-H6EFQP2P.js → chunk-W73ZABT6.js} +1 -1
  27. package/dist/{chunk-UNVRVCXZ.js → chunk-WU4FNWCW.js} +3 -3
  28. package/dist/{chunk-NCEQGEW5.js → chunk-YNWZIWJL.js} +4 -5
  29. package/dist/components/index.d.ts +0 -23
  30. package/dist/components/index.js +27 -448
  31. package/dist/components/navigation/index.js +4 -6
  32. package/dist/features/clients/index.js +7 -12
  33. package/dist/features/crm/index.js +9 -14
  34. package/dist/features/dashboard/index.d.ts +0 -23
  35. package/dist/features/dashboard/index.js +9 -14
  36. package/dist/features/delivery/index.js +8 -13
  37. package/dist/features/knowledge/index.js +5 -7
  38. package/dist/features/lead-gen/index.js +9 -14
  39. package/dist/features/monitoring/index.js +10 -15
  40. package/dist/features/monitoring/requests/index.js +7 -12
  41. package/dist/features/operations/index.d.ts +44 -35
  42. package/dist/features/operations/index.js +12 -17
  43. package/dist/features/settings/index.js +8 -13
  44. package/dist/hooks/index.d.ts +20 -27
  45. package/dist/hooks/index.js +7 -12
  46. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +20 -27
  47. package/dist/hooks/published.d.ts +20 -27
  48. package/dist/hooks/published.js +7 -12
  49. package/dist/index.d.ts +54 -39
  50. package/dist/index.js +8 -13
  51. package/dist/knowledge/index.d.ts +30 -38
  52. package/dist/knowledge/index.js +37 -201
  53. package/dist/{knowledge-search-index-P7PR626V.js → knowledge-search-index-ORIJCEZX.js} +142 -150
  54. package/dist/organization/index.js +1 -2
  55. package/dist/provider/index.d.ts +25 -32
  56. package/dist/provider/index.js +6 -11
  57. package/dist/provider/published.d.ts +25 -32
  58. package/dist/provider/published.js +5 -9
  59. package/dist/test-utils/index.d.ts +2 -0
  60. package/dist/test-utils/index.js +14 -2
  61. package/dist/test-utils/setup.js +38 -0
  62. package/dist/types/index.d.ts +20 -27
  63. package/dist/utils/index.d.ts +0 -23
  64. package/dist/zustand/index.d.ts +15 -2
  65. package/dist/zustand/index.js +35 -1
  66. package/package.json +5 -5
  67. package/dist/chunk-4AAZXKLL.js +0 -347
  68. package/dist/chunk-DWXDNT7P.js +0 -145
  69. package/dist/chunk-FOUYP4JX.js +0 -13
  70. package/dist/chunk-HUJCU55S.js +0 -159
  71. package/dist/chunk-PIS24NIV.js +0 -29
  72. package/dist/chunk-SZHARWKU.js +0 -15
  73. package/dist/chunk-XCYKC6OZ.js +0 -1
@@ -1,9 +1,12 @@
1
- import { ReactNode, ComponentType } from 'react';
1
+ import { ReactNode, ComponentType, ErrorInfo } from 'react';
2
2
  import { AnyRouter } from '@tanstack/react-router';
3
3
  import { QueryClient } from '@tanstack/react-query';
4
4
  import * as z from 'zod';
5
5
  import { z as z$1 } from 'zod';
6
6
  import { MantineThemeOverride } from '@mantine/core';
7
+ import * as react_jsx_runtime from 'react/jsx-runtime';
8
+ import { useAuth } from '@workos-inc/authkit-react';
9
+ import { EventSourceMessage } from '@microsoft/fetch-event-source';
7
10
 
8
11
  type Json = string | number | boolean | null | {
9
12
  [key: string]: Json | undefined;
@@ -3089,6 +3092,21 @@ type Database = {
3089
3092
  };
3090
3093
  };
3091
3094
  };
3095
+ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
3096
+ type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
3097
+ type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
3098
+ schema: keyof DatabaseWithoutInternals;
3099
+ }, TableName extends DefaultSchemaTableNameOrOptions extends {
3100
+ schema: keyof DatabaseWithoutInternals;
3101
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
3102
+ schema: keyof DatabaseWithoutInternals;
3103
+ } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
3104
+ Row: infer R;
3105
+ } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
3106
+ Row: infer R;
3107
+ } ? R : never : never;
3108
+
3109
+ type SupabaseUserProfile = Tables<'users'>;
3092
3110
 
3093
3111
  /**
3094
3112
  * Single list as returned by /api/acquisition/lists/:id etc.
@@ -3227,6 +3245,1097 @@ interface ActionDef {
3227
3245
  payloadSchema?: z$1.ZodTypeAny;
3228
3246
  }
3229
3247
 
3248
+ declare const OntologyScopeSchema: z$1.ZodDefault<z$1.ZodObject<{
3249
+ objectTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3250
+ id: z$1.ZodString;
3251
+ label: z$1.ZodOptional<z$1.ZodString>;
3252
+ description: z$1.ZodOptional<z$1.ZodString>;
3253
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3254
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3255
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3256
+ storage: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3257
+ }, z$1.core.$loose>>>>;
3258
+ linkTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3259
+ id: z$1.ZodString;
3260
+ label: z$1.ZodOptional<z$1.ZodString>;
3261
+ description: z$1.ZodOptional<z$1.ZodString>;
3262
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3263
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3264
+ from: z$1.ZodString;
3265
+ to: z$1.ZodString;
3266
+ cardinality: z$1.ZodOptional<z$1.ZodString>;
3267
+ via: z$1.ZodOptional<z$1.ZodString>;
3268
+ }, z$1.core.$loose>>>>;
3269
+ actionTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3270
+ id: z$1.ZodString;
3271
+ label: z$1.ZodOptional<z$1.ZodString>;
3272
+ description: z$1.ZodOptional<z$1.ZodString>;
3273
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3274
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3275
+ actsOn: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3276
+ input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3277
+ effects: z$1.ZodOptional<z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
3278
+ }, z$1.core.$loose>>>>;
3279
+ catalogTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3280
+ id: z$1.ZodString;
3281
+ label: z$1.ZodOptional<z$1.ZodString>;
3282
+ description: z$1.ZodOptional<z$1.ZodString>;
3283
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3284
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3285
+ kind: z$1.ZodOptional<z$1.ZodString>;
3286
+ appliesTo: z$1.ZodOptional<z$1.ZodString>;
3287
+ entries: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3288
+ }, z$1.core.$loose>>>>;
3289
+ eventTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3290
+ id: z$1.ZodString;
3291
+ label: z$1.ZodOptional<z$1.ZodString>;
3292
+ description: z$1.ZodOptional<z$1.ZodString>;
3293
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3294
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3295
+ payload: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3296
+ }, z$1.core.$loose>>>>;
3297
+ interfaceTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3298
+ id: z$1.ZodString;
3299
+ label: z$1.ZodOptional<z$1.ZodString>;
3300
+ description: z$1.ZodOptional<z$1.ZodString>;
3301
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3302
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3303
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3304
+ }, z$1.core.$loose>>>>;
3305
+ valueTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3306
+ id: z$1.ZodString;
3307
+ label: z$1.ZodOptional<z$1.ZodString>;
3308
+ description: z$1.ZodOptional<z$1.ZodString>;
3309
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3310
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3311
+ primitive: z$1.ZodOptional<z$1.ZodString>;
3312
+ }, z$1.core.$loose>>>>;
3313
+ sharedProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3314
+ id: z$1.ZodString;
3315
+ label: z$1.ZodOptional<z$1.ZodString>;
3316
+ description: z$1.ZodOptional<z$1.ZodString>;
3317
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3318
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3319
+ valueType: z$1.ZodOptional<z$1.ZodString>;
3320
+ searchable: z$1.ZodOptional<z$1.ZodBoolean>;
3321
+ pii: z$1.ZodOptional<z$1.ZodBoolean>;
3322
+ }, z$1.core.$loose>>>>;
3323
+ groups: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3324
+ id: z$1.ZodString;
3325
+ label: z$1.ZodOptional<z$1.ZodString>;
3326
+ description: z$1.ZodOptional<z$1.ZodString>;
3327
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3328
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3329
+ members: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3330
+ }, z$1.core.$loose>>>>;
3331
+ surfaces: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3332
+ id: z$1.ZodString;
3333
+ label: z$1.ZodOptional<z$1.ZodString>;
3334
+ description: z$1.ZodOptional<z$1.ZodString>;
3335
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3336
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3337
+ route: z$1.ZodOptional<z$1.ZodString>;
3338
+ }, z$1.core.$loose>>>>;
3339
+ }, z$1.core.$strip>>;
3340
+ type OntologyScope = z$1.infer<typeof OntologyScopeSchema>;
3341
+
3342
+ /**
3343
+ * Time range selector for dashboard metrics
3344
+ */
3345
+ type TimeRange = '1h' | '24h' | '7d' | '30d';
3346
+
3347
+ type JsonPrimitive = string | number | boolean | null;
3348
+ type JsonValue = JsonPrimitive | JsonValue[] | {
3349
+ [key: string]: JsonValue;
3350
+ };
3351
+ /** Explicit interface needed to annotate the recursive SystemEntrySchema. */
3352
+ interface SystemEntry {
3353
+ id: string;
3354
+ label?: string;
3355
+ title?: string;
3356
+ description?: string;
3357
+ kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
3358
+ parentSystemId?: string;
3359
+ ui?: {
3360
+ path: string;
3361
+ surfaces: string[];
3362
+ icon?: string;
3363
+ order?: number;
3364
+ };
3365
+ lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
3366
+ responsibleRoleId?: string;
3367
+ governedByKnowledge?: string[];
3368
+ actions?: {
3369
+ actionId: string;
3370
+ intent: 'exposes' | 'consumes';
3371
+ invocation?: unknown;
3372
+ }[];
3373
+ policies?: string[];
3374
+ drivesGoals?: string[];
3375
+ /** @deprecated Use lifecycle. Accepted for one publish cycle. */
3376
+ status?: 'active' | 'deprecated' | 'archived';
3377
+ path?: string;
3378
+ icon?: string;
3379
+ color?: string;
3380
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
3381
+ enabled?: boolean;
3382
+ devOnly?: boolean;
3383
+ requiresAdmin?: boolean;
3384
+ order: number;
3385
+ config?: Record<string, JsonValue>;
3386
+ ontology?: OntologyScope;
3387
+ systems?: Record<string, SystemEntry>;
3388
+ subsystems?: Record<string, SystemEntry>;
3389
+ }
3390
+
3391
+ declare const SurfaceTypeSchema: z$1.ZodEnum<{
3392
+ dashboard: "dashboard";
3393
+ settings: "settings";
3394
+ graph: "graph";
3395
+ list: "list";
3396
+ page: "page";
3397
+ detail: "detail";
3398
+ }>;
3399
+ interface SidebarSurfaceNode {
3400
+ type: 'surface';
3401
+ label: string;
3402
+ path: string;
3403
+ surfaceType: z$1.infer<typeof SurfaceTypeSchema>;
3404
+ description?: string;
3405
+ icon?: string;
3406
+ order?: number;
3407
+ targets?: {
3408
+ systems?: string[];
3409
+ entities?: string[];
3410
+ resources?: string[];
3411
+ actions?: string[];
3412
+ };
3413
+ devOnly?: boolean;
3414
+ requiresAdmin?: boolean;
3415
+ }
3416
+ interface SidebarGroupNode {
3417
+ type: 'group';
3418
+ label: string;
3419
+ description?: string;
3420
+ icon?: string;
3421
+ order?: number;
3422
+ children: Record<string, SidebarNode>;
3423
+ }
3424
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
3425
+
3426
+ declare const OrganizationModelSchema: z$1.ZodObject<{
3427
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3428
+ domainMetadata: z$1.ZodPipe<z$1.ZodDefault<z$1.ZodObject<{
3429
+ branding: z$1.ZodOptional<z$1.ZodObject<{
3430
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3431
+ lastModified: z$1.ZodString;
3432
+ }, z$1.core.$strip>>;
3433
+ identity: z$1.ZodOptional<z$1.ZodObject<{
3434
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3435
+ lastModified: z$1.ZodString;
3436
+ }, z$1.core.$strip>>;
3437
+ customers: z$1.ZodOptional<z$1.ZodObject<{
3438
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3439
+ lastModified: z$1.ZodString;
3440
+ }, z$1.core.$strip>>;
3441
+ offerings: z$1.ZodOptional<z$1.ZodObject<{
3442
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3443
+ lastModified: z$1.ZodString;
3444
+ }, z$1.core.$strip>>;
3445
+ roles: z$1.ZodOptional<z$1.ZodObject<{
3446
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3447
+ lastModified: z$1.ZodString;
3448
+ }, z$1.core.$strip>>;
3449
+ goals: z$1.ZodOptional<z$1.ZodObject<{
3450
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3451
+ lastModified: z$1.ZodString;
3452
+ }, z$1.core.$strip>>;
3453
+ systems: z$1.ZodOptional<z$1.ZodObject<{
3454
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3455
+ lastModified: z$1.ZodString;
3456
+ }, z$1.core.$strip>>;
3457
+ ontology: z$1.ZodOptional<z$1.ZodObject<{
3458
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3459
+ lastModified: z$1.ZodString;
3460
+ }, z$1.core.$strip>>;
3461
+ resources: z$1.ZodOptional<z$1.ZodObject<{
3462
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3463
+ lastModified: z$1.ZodString;
3464
+ }, z$1.core.$strip>>;
3465
+ topology: z$1.ZodOptional<z$1.ZodObject<{
3466
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3467
+ lastModified: z$1.ZodString;
3468
+ }, z$1.core.$strip>>;
3469
+ actions: z$1.ZodOptional<z$1.ZodObject<{
3470
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3471
+ lastModified: z$1.ZodString;
3472
+ }, z$1.core.$strip>>;
3473
+ entities: z$1.ZodOptional<z$1.ZodObject<{
3474
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3475
+ lastModified: z$1.ZodString;
3476
+ }, z$1.core.$strip>>;
3477
+ policies: z$1.ZodOptional<z$1.ZodObject<{
3478
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3479
+ lastModified: z$1.ZodString;
3480
+ }, z$1.core.$strip>>;
3481
+ knowledge: z$1.ZodOptional<z$1.ZodObject<{
3482
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3483
+ lastModified: z$1.ZodString;
3484
+ }, z$1.core.$strip>>;
3485
+ }, z$1.core.$strip>>, z$1.ZodTransform<{
3486
+ branding: {
3487
+ version: 1;
3488
+ lastModified: string;
3489
+ };
3490
+ identity: {
3491
+ version: 1;
3492
+ lastModified: string;
3493
+ };
3494
+ customers: {
3495
+ version: 1;
3496
+ lastModified: string;
3497
+ };
3498
+ offerings: {
3499
+ version: 1;
3500
+ lastModified: string;
3501
+ };
3502
+ roles: {
3503
+ version: 1;
3504
+ lastModified: string;
3505
+ };
3506
+ goals: {
3507
+ version: 1;
3508
+ lastModified: string;
3509
+ };
3510
+ systems: {
3511
+ version: 1;
3512
+ lastModified: string;
3513
+ };
3514
+ ontology: {
3515
+ version: 1;
3516
+ lastModified: string;
3517
+ };
3518
+ resources: {
3519
+ version: 1;
3520
+ lastModified: string;
3521
+ };
3522
+ topology: {
3523
+ version: 1;
3524
+ lastModified: string;
3525
+ };
3526
+ actions: {
3527
+ version: 1;
3528
+ lastModified: string;
3529
+ };
3530
+ entities: {
3531
+ version: 1;
3532
+ lastModified: string;
3533
+ };
3534
+ policies: {
3535
+ version: 1;
3536
+ lastModified: string;
3537
+ };
3538
+ knowledge: {
3539
+ version: 1;
3540
+ lastModified: string;
3541
+ };
3542
+ }, {
3543
+ branding?: {
3544
+ version: 1;
3545
+ lastModified: string;
3546
+ } | undefined;
3547
+ identity?: {
3548
+ version: 1;
3549
+ lastModified: string;
3550
+ } | undefined;
3551
+ customers?: {
3552
+ version: 1;
3553
+ lastModified: string;
3554
+ } | undefined;
3555
+ offerings?: {
3556
+ version: 1;
3557
+ lastModified: string;
3558
+ } | undefined;
3559
+ roles?: {
3560
+ version: 1;
3561
+ lastModified: string;
3562
+ } | undefined;
3563
+ goals?: {
3564
+ version: 1;
3565
+ lastModified: string;
3566
+ } | undefined;
3567
+ systems?: {
3568
+ version: 1;
3569
+ lastModified: string;
3570
+ } | undefined;
3571
+ ontology?: {
3572
+ version: 1;
3573
+ lastModified: string;
3574
+ } | undefined;
3575
+ resources?: {
3576
+ version: 1;
3577
+ lastModified: string;
3578
+ } | undefined;
3579
+ topology?: {
3580
+ version: 1;
3581
+ lastModified: string;
3582
+ } | undefined;
3583
+ actions?: {
3584
+ version: 1;
3585
+ lastModified: string;
3586
+ } | undefined;
3587
+ entities?: {
3588
+ version: 1;
3589
+ lastModified: string;
3590
+ } | undefined;
3591
+ policies?: {
3592
+ version: 1;
3593
+ lastModified: string;
3594
+ } | undefined;
3595
+ knowledge?: {
3596
+ version: 1;
3597
+ lastModified: string;
3598
+ } | undefined;
3599
+ }>>;
3600
+ branding: z$1.ZodObject<{
3601
+ organizationName: z$1.ZodString;
3602
+ productName: z$1.ZodString;
3603
+ shortName: z$1.ZodString;
3604
+ description: z$1.ZodOptional<z$1.ZodString>;
3605
+ logos: z$1.ZodDefault<z$1.ZodObject<{
3606
+ light: z$1.ZodOptional<z$1.ZodString>;
3607
+ dark: z$1.ZodOptional<z$1.ZodString>;
3608
+ }, z$1.core.$strip>>;
3609
+ }, z$1.core.$strip>;
3610
+ navigation: z$1.ZodDefault<z$1.ZodObject<{
3611
+ sidebar: z$1.ZodDefault<z$1.ZodObject<{
3612
+ primary: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<SidebarNode, unknown, z$1.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3613
+ bottom: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<SidebarNode, unknown, z$1.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
3614
+ }, z$1.core.$strip>>;
3615
+ }, z$1.core.$strip>>;
3616
+ identity: z$1.ZodDefault<z$1.ZodObject<{
3617
+ mission: z$1.ZodDefault<z$1.ZodString>;
3618
+ vision: z$1.ZodDefault<z$1.ZodString>;
3619
+ legalName: z$1.ZodDefault<z$1.ZodString>;
3620
+ entityType: z$1.ZodDefault<z$1.ZodString>;
3621
+ jurisdiction: z$1.ZodDefault<z$1.ZodString>;
3622
+ industryCategory: z$1.ZodDefault<z$1.ZodString>;
3623
+ geographicFocus: z$1.ZodDefault<z$1.ZodString>;
3624
+ timeZone: z$1.ZodDefault<z$1.ZodString>;
3625
+ businessHours: z$1.ZodDefault<z$1.ZodObject<{
3626
+ monday: z$1.ZodOptional<z$1.ZodObject<{
3627
+ open: z$1.ZodString;
3628
+ close: z$1.ZodString;
3629
+ }, z$1.core.$strip>>;
3630
+ tuesday: z$1.ZodOptional<z$1.ZodObject<{
3631
+ open: z$1.ZodString;
3632
+ close: z$1.ZodString;
3633
+ }, z$1.core.$strip>>;
3634
+ wednesday: z$1.ZodOptional<z$1.ZodObject<{
3635
+ open: z$1.ZodString;
3636
+ close: z$1.ZodString;
3637
+ }, z$1.core.$strip>>;
3638
+ thursday: z$1.ZodOptional<z$1.ZodObject<{
3639
+ open: z$1.ZodString;
3640
+ close: z$1.ZodString;
3641
+ }, z$1.core.$strip>>;
3642
+ friday: z$1.ZodOptional<z$1.ZodObject<{
3643
+ open: z$1.ZodString;
3644
+ close: z$1.ZodString;
3645
+ }, z$1.core.$strip>>;
3646
+ saturday: z$1.ZodOptional<z$1.ZodObject<{
3647
+ open: z$1.ZodString;
3648
+ close: z$1.ZodString;
3649
+ }, z$1.core.$strip>>;
3650
+ sunday: z$1.ZodOptional<z$1.ZodObject<{
3651
+ open: z$1.ZodString;
3652
+ close: z$1.ZodString;
3653
+ }, z$1.core.$strip>>;
3654
+ }, z$1.core.$strip>>;
3655
+ clientBrief: z$1.ZodDefault<z$1.ZodString>;
3656
+ }, z$1.core.$strip>>;
3657
+ customers: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3658
+ id: z$1.ZodString;
3659
+ order: z$1.ZodNumber;
3660
+ name: z$1.ZodDefault<z$1.ZodString>;
3661
+ description: z$1.ZodDefault<z$1.ZodString>;
3662
+ jobsToBeDone: z$1.ZodDefault<z$1.ZodString>;
3663
+ pains: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3664
+ gains: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3665
+ firmographics: z$1.ZodDefault<z$1.ZodObject<{
3666
+ industry: z$1.ZodOptional<z$1.ZodString>;
3667
+ companySize: z$1.ZodOptional<z$1.ZodString>;
3668
+ region: z$1.ZodOptional<z$1.ZodString>;
3669
+ }, z$1.core.$strip>>;
3670
+ valueProp: z$1.ZodDefault<z$1.ZodString>;
3671
+ }, z$1.core.$strip>>>>;
3672
+ offerings: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3673
+ id: z$1.ZodString;
3674
+ order: z$1.ZodNumber;
3675
+ name: z$1.ZodDefault<z$1.ZodString>;
3676
+ description: z$1.ZodDefault<z$1.ZodString>;
3677
+ pricingModel: z$1.ZodDefault<z$1.ZodEnum<{
3678
+ custom: "custom";
3679
+ "one-time": "one-time";
3680
+ subscription: "subscription";
3681
+ "usage-based": "usage-based";
3682
+ }>>;
3683
+ price: z$1.ZodDefault<z$1.ZodNumber>;
3684
+ currency: z$1.ZodDefault<z$1.ZodString>;
3685
+ targetSegmentIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3686
+ deliveryFeatureId: z$1.ZodOptional<z$1.ZodString>;
3687
+ }, z$1.core.$strip>>>>;
3688
+ roles: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3689
+ id: z$1.ZodString;
3690
+ order: z$1.ZodNumber;
3691
+ title: z$1.ZodString;
3692
+ responsibilities: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3693
+ reportsToId: z$1.ZodOptional<z$1.ZodString>;
3694
+ heldBy: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3695
+ kind: z$1.ZodLiteral<"human">;
3696
+ userId: z$1.ZodString;
3697
+ }, z$1.core.$strip>, z$1.ZodObject<{
3698
+ kind: z$1.ZodLiteral<"agent">;
3699
+ agentId: z$1.ZodString;
3700
+ }, z$1.core.$strip>, z$1.ZodObject<{
3701
+ kind: z$1.ZodLiteral<"team">;
3702
+ memberIds: z$1.ZodArray<z$1.ZodString>;
3703
+ }, z$1.core.$strip>], "kind">, z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3704
+ kind: z$1.ZodLiteral<"human">;
3705
+ userId: z$1.ZodString;
3706
+ }, z$1.core.$strip>, z$1.ZodObject<{
3707
+ kind: z$1.ZodLiteral<"agent">;
3708
+ agentId: z$1.ZodString;
3709
+ }, z$1.core.$strip>, z$1.ZodObject<{
3710
+ kind: z$1.ZodLiteral<"team">;
3711
+ memberIds: z$1.ZodArray<z$1.ZodString>;
3712
+ }, z$1.core.$strip>], "kind">>]>>;
3713
+ responsibleFor: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3714
+ }, z$1.core.$strip>>>>;
3715
+ goals: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3716
+ id: z$1.ZodString;
3717
+ order: z$1.ZodNumber;
3718
+ description: z$1.ZodString;
3719
+ periodStart: z$1.ZodString;
3720
+ periodEnd: z$1.ZodString;
3721
+ keyResults: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3722
+ id: z$1.ZodString;
3723
+ description: z$1.ZodString;
3724
+ targetMetric: z$1.ZodString;
3725
+ currentValue: z$1.ZodDefault<z$1.ZodNumber>;
3726
+ targetValue: z$1.ZodOptional<z$1.ZodNumber>;
3727
+ }, z$1.core.$strip>>>;
3728
+ }, z$1.core.$strip>>>>;
3729
+ systems: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<SystemEntry, unknown, z$1.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
3730
+ ontology: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodObject<{
3731
+ objectTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3732
+ id: z$1.ZodString;
3733
+ label: z$1.ZodOptional<z$1.ZodString>;
3734
+ description: z$1.ZodOptional<z$1.ZodString>;
3735
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3736
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3737
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3738
+ storage: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3739
+ }, z$1.core.$loose>>>>;
3740
+ linkTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3741
+ id: z$1.ZodString;
3742
+ label: z$1.ZodOptional<z$1.ZodString>;
3743
+ description: z$1.ZodOptional<z$1.ZodString>;
3744
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3745
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3746
+ from: z$1.ZodString;
3747
+ to: z$1.ZodString;
3748
+ cardinality: z$1.ZodOptional<z$1.ZodString>;
3749
+ via: z$1.ZodOptional<z$1.ZodString>;
3750
+ }, z$1.core.$loose>>>>;
3751
+ actionTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3752
+ id: z$1.ZodString;
3753
+ label: z$1.ZodOptional<z$1.ZodString>;
3754
+ description: z$1.ZodOptional<z$1.ZodString>;
3755
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3756
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3757
+ actsOn: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3758
+ input: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3759
+ effects: z$1.ZodOptional<z$1.ZodArray<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>>;
3760
+ }, z$1.core.$loose>>>>;
3761
+ catalogTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3762
+ id: z$1.ZodString;
3763
+ label: z$1.ZodOptional<z$1.ZodString>;
3764
+ description: z$1.ZodOptional<z$1.ZodString>;
3765
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3766
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3767
+ kind: z$1.ZodOptional<z$1.ZodString>;
3768
+ appliesTo: z$1.ZodOptional<z$1.ZodString>;
3769
+ entries: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3770
+ }, z$1.core.$loose>>>>;
3771
+ eventTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3772
+ id: z$1.ZodString;
3773
+ label: z$1.ZodOptional<z$1.ZodString>;
3774
+ description: z$1.ZodOptional<z$1.ZodString>;
3775
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3776
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3777
+ payload: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3778
+ }, z$1.core.$loose>>>>;
3779
+ interfaceTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3780
+ id: z$1.ZodString;
3781
+ label: z$1.ZodOptional<z$1.ZodString>;
3782
+ description: z$1.ZodOptional<z$1.ZodString>;
3783
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3784
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3785
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
3786
+ }, z$1.core.$loose>>>>;
3787
+ valueTypes: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3788
+ id: z$1.ZodString;
3789
+ label: z$1.ZodOptional<z$1.ZodString>;
3790
+ description: z$1.ZodOptional<z$1.ZodString>;
3791
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3792
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3793
+ primitive: z$1.ZodOptional<z$1.ZodString>;
3794
+ }, z$1.core.$loose>>>>;
3795
+ sharedProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3796
+ id: z$1.ZodString;
3797
+ label: z$1.ZodOptional<z$1.ZodString>;
3798
+ description: z$1.ZodOptional<z$1.ZodString>;
3799
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3800
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3801
+ valueType: z$1.ZodOptional<z$1.ZodString>;
3802
+ searchable: z$1.ZodOptional<z$1.ZodBoolean>;
3803
+ pii: z$1.ZodOptional<z$1.ZodBoolean>;
3804
+ }, z$1.core.$loose>>>>;
3805
+ groups: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3806
+ id: z$1.ZodString;
3807
+ label: z$1.ZodOptional<z$1.ZodString>;
3808
+ description: z$1.ZodOptional<z$1.ZodString>;
3809
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3810
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3811
+ members: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3812
+ }, z$1.core.$loose>>>>;
3813
+ surfaces: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
3814
+ id: z$1.ZodString;
3815
+ label: z$1.ZodOptional<z$1.ZodString>;
3816
+ description: z$1.ZodOptional<z$1.ZodString>;
3817
+ ownerSystemId: z$1.ZodOptional<z$1.ZodString>;
3818
+ aliases: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3819
+ route: z$1.ZodOptional<z$1.ZodString>;
3820
+ }, z$1.core.$loose>>>>;
3821
+ }, z$1.core.$strip>>>;
3822
+ resources: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3823
+ id: z$1.ZodString;
3824
+ order: z$1.ZodDefault<z$1.ZodNumber>;
3825
+ systemPath: z$1.ZodString;
3826
+ title: z$1.ZodOptional<z$1.ZodString>;
3827
+ description: z$1.ZodOptional<z$1.ZodString>;
3828
+ ownerRoleId: z$1.ZodOptional<z$1.ZodString>;
3829
+ status: z$1.ZodEnum<{
3830
+ deprecated: "deprecated";
3831
+ active: "active";
3832
+ archived: "archived";
3833
+ }>;
3834
+ ontology: z$1.ZodOptional<z$1.ZodObject<{
3835
+ actions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3836
+ primaryAction: z$1.ZodOptional<z$1.ZodString>;
3837
+ reads: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3838
+ writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3839
+ usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3840
+ emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3841
+ contract: z$1.ZodOptional<z$1.ZodObject<{
3842
+ input: z$1.ZodOptional<z$1.ZodString>;
3843
+ output: z$1.ZodOptional<z$1.ZodString>;
3844
+ }, z$1.core.$strip>>;
3845
+ }, z$1.core.$strip>>;
3846
+ codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3847
+ path: z$1.ZodString;
3848
+ role: z$1.ZodEnum<{
3849
+ config: "config";
3850
+ entrypoint: "entrypoint";
3851
+ handler: "handler";
3852
+ schema: "schema";
3853
+ test: "test";
3854
+ docs: "docs";
3855
+ }>;
3856
+ symbol: z$1.ZodOptional<z$1.ZodString>;
3857
+ description: z$1.ZodOptional<z$1.ZodString>;
3858
+ }, z$1.core.$strip>>>;
3859
+ kind: z$1.ZodLiteral<"workflow">;
3860
+ emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
3861
+ eventKey: z$1.ZodString;
3862
+ label: z$1.ZodString;
3863
+ payloadSchema: z$1.ZodOptional<z$1.ZodString>;
3864
+ lifecycle: z$1.ZodOptional<z$1.ZodEnum<{
3865
+ deprecated: "deprecated";
3866
+ draft: "draft";
3867
+ beta: "beta";
3868
+ active: "active";
3869
+ archived: "archived";
3870
+ }>>;
3871
+ }, z$1.core.$strip>>>;
3872
+ }, z$1.core.$strip>, z$1.ZodObject<{
3873
+ id: z$1.ZodString;
3874
+ order: z$1.ZodDefault<z$1.ZodNumber>;
3875
+ systemPath: z$1.ZodString;
3876
+ title: z$1.ZodOptional<z$1.ZodString>;
3877
+ description: z$1.ZodOptional<z$1.ZodString>;
3878
+ ownerRoleId: z$1.ZodOptional<z$1.ZodString>;
3879
+ status: z$1.ZodEnum<{
3880
+ deprecated: "deprecated";
3881
+ active: "active";
3882
+ archived: "archived";
3883
+ }>;
3884
+ ontology: z$1.ZodOptional<z$1.ZodObject<{
3885
+ actions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3886
+ primaryAction: z$1.ZodOptional<z$1.ZodString>;
3887
+ reads: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3888
+ writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3889
+ usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3890
+ emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3891
+ contract: z$1.ZodOptional<z$1.ZodObject<{
3892
+ input: z$1.ZodOptional<z$1.ZodString>;
3893
+ output: z$1.ZodOptional<z$1.ZodString>;
3894
+ }, z$1.core.$strip>>;
3895
+ }, z$1.core.$strip>>;
3896
+ codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3897
+ path: z$1.ZodString;
3898
+ role: z$1.ZodEnum<{
3899
+ config: "config";
3900
+ entrypoint: "entrypoint";
3901
+ handler: "handler";
3902
+ schema: "schema";
3903
+ test: "test";
3904
+ docs: "docs";
3905
+ }>;
3906
+ symbol: z$1.ZodOptional<z$1.ZodString>;
3907
+ description: z$1.ZodOptional<z$1.ZodString>;
3908
+ }, z$1.core.$strip>>>;
3909
+ kind: z$1.ZodLiteral<"agent">;
3910
+ agentKind: z$1.ZodEnum<{
3911
+ platform: "platform";
3912
+ orchestrator: "orchestrator";
3913
+ specialist: "specialist";
3914
+ utility: "utility";
3915
+ }>;
3916
+ actsAsRoleId: z$1.ZodOptional<z$1.ZodString>;
3917
+ sessionCapable: z$1.ZodBoolean;
3918
+ invocations: z$1.ZodDefault<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3919
+ kind: z$1.ZodLiteral<"slash-command">;
3920
+ command: z$1.ZodString;
3921
+ toolFactory: z$1.ZodOptional<z$1.ZodString>;
3922
+ }, z$1.core.$strip>, z$1.ZodObject<{
3923
+ kind: z$1.ZodLiteral<"mcp-tool">;
3924
+ server: z$1.ZodString;
3925
+ name: z$1.ZodString;
3926
+ }, z$1.core.$strip>, z$1.ZodObject<{
3927
+ kind: z$1.ZodLiteral<"api-endpoint">;
3928
+ method: z$1.ZodEnum<{
3929
+ GET: "GET";
3930
+ POST: "POST";
3931
+ PATCH: "PATCH";
3932
+ DELETE: "DELETE";
3933
+ }>;
3934
+ path: z$1.ZodString;
3935
+ requestSchema: z$1.ZodOptional<z$1.ZodString>;
3936
+ responseSchema: z$1.ZodOptional<z$1.ZodString>;
3937
+ }, z$1.core.$strip>, z$1.ZodObject<{
3938
+ kind: z$1.ZodLiteral<"script-execution">;
3939
+ resourceId: z$1.ZodString;
3940
+ }, z$1.core.$strip>], "kind">>>;
3941
+ emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
3942
+ eventKey: z$1.ZodString;
3943
+ label: z$1.ZodString;
3944
+ payloadSchema: z$1.ZodOptional<z$1.ZodString>;
3945
+ lifecycle: z$1.ZodOptional<z$1.ZodEnum<{
3946
+ deprecated: "deprecated";
3947
+ draft: "draft";
3948
+ beta: "beta";
3949
+ active: "active";
3950
+ archived: "archived";
3951
+ }>>;
3952
+ }, z$1.core.$strip>>>;
3953
+ }, z$1.core.$strip>, z$1.ZodObject<{
3954
+ id: z$1.ZodString;
3955
+ order: z$1.ZodDefault<z$1.ZodNumber>;
3956
+ systemPath: z$1.ZodString;
3957
+ title: z$1.ZodOptional<z$1.ZodString>;
3958
+ description: z$1.ZodOptional<z$1.ZodString>;
3959
+ ownerRoleId: z$1.ZodOptional<z$1.ZodString>;
3960
+ status: z$1.ZodEnum<{
3961
+ deprecated: "deprecated";
3962
+ active: "active";
3963
+ archived: "archived";
3964
+ }>;
3965
+ ontology: z$1.ZodOptional<z$1.ZodObject<{
3966
+ actions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3967
+ primaryAction: z$1.ZodOptional<z$1.ZodString>;
3968
+ reads: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3969
+ writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3970
+ usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3971
+ emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3972
+ contract: z$1.ZodOptional<z$1.ZodObject<{
3973
+ input: z$1.ZodOptional<z$1.ZodString>;
3974
+ output: z$1.ZodOptional<z$1.ZodString>;
3975
+ }, z$1.core.$strip>>;
3976
+ }, z$1.core.$strip>>;
3977
+ codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
3978
+ path: z$1.ZodString;
3979
+ role: z$1.ZodEnum<{
3980
+ config: "config";
3981
+ entrypoint: "entrypoint";
3982
+ handler: "handler";
3983
+ schema: "schema";
3984
+ test: "test";
3985
+ docs: "docs";
3986
+ }>;
3987
+ symbol: z$1.ZodOptional<z$1.ZodString>;
3988
+ description: z$1.ZodOptional<z$1.ZodString>;
3989
+ }, z$1.core.$strip>>>;
3990
+ kind: z$1.ZodLiteral<"integration">;
3991
+ provider: z$1.ZodString;
3992
+ }, z$1.core.$strip>, z$1.ZodObject<{
3993
+ id: z$1.ZodString;
3994
+ order: z$1.ZodDefault<z$1.ZodNumber>;
3995
+ systemPath: z$1.ZodString;
3996
+ title: z$1.ZodOptional<z$1.ZodString>;
3997
+ description: z$1.ZodOptional<z$1.ZodString>;
3998
+ ownerRoleId: z$1.ZodOptional<z$1.ZodString>;
3999
+ status: z$1.ZodEnum<{
4000
+ deprecated: "deprecated";
4001
+ active: "active";
4002
+ archived: "archived";
4003
+ }>;
4004
+ ontology: z$1.ZodOptional<z$1.ZodObject<{
4005
+ actions: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4006
+ primaryAction: z$1.ZodOptional<z$1.ZodString>;
4007
+ reads: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4008
+ writes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4009
+ usesCatalogs: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4010
+ emits: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4011
+ contract: z$1.ZodOptional<z$1.ZodObject<{
4012
+ input: z$1.ZodOptional<z$1.ZodString>;
4013
+ output: z$1.ZodOptional<z$1.ZodString>;
4014
+ }, z$1.core.$strip>>;
4015
+ }, z$1.core.$strip>>;
4016
+ codeRefs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
4017
+ path: z$1.ZodString;
4018
+ role: z$1.ZodEnum<{
4019
+ config: "config";
4020
+ entrypoint: "entrypoint";
4021
+ handler: "handler";
4022
+ schema: "schema";
4023
+ test: "test";
4024
+ docs: "docs";
4025
+ }>;
4026
+ symbol: z$1.ZodOptional<z$1.ZodString>;
4027
+ description: z$1.ZodOptional<z$1.ZodString>;
4028
+ }, z$1.core.$strip>>>;
4029
+ kind: z$1.ZodLiteral<"script">;
4030
+ language: z$1.ZodEnum<{
4031
+ shell: "shell";
4032
+ sql: "sql";
4033
+ typescript: "typescript";
4034
+ python: "python";
4035
+ }>;
4036
+ source: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodObject<{
4037
+ file: z$1.ZodString;
4038
+ }, z$1.core.$strip>]>;
4039
+ }, z$1.core.$strip>], "kind">>>>;
4040
+ topology: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodObject<{
4041
+ version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
4042
+ relationships: z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4043
+ from: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4044
+ kind: z$1.ZodLiteral<"system">;
4045
+ id: z$1.ZodString;
4046
+ }, z$1.core.$strip>, z$1.ZodObject<{
4047
+ kind: z$1.ZodLiteral<"resource">;
4048
+ id: z$1.ZodString;
4049
+ }, z$1.core.$strip>, z$1.ZodObject<{
4050
+ kind: z$1.ZodLiteral<"ontology">;
4051
+ id: z$1.ZodString;
4052
+ }, z$1.core.$strip>, z$1.ZodObject<{
4053
+ kind: z$1.ZodLiteral<"policy">;
4054
+ id: z$1.ZodString;
4055
+ }, z$1.core.$strip>, z$1.ZodObject<{
4056
+ kind: z$1.ZodLiteral<"role">;
4057
+ id: z$1.ZodString;
4058
+ }, z$1.core.$strip>, z$1.ZodObject<{
4059
+ kind: z$1.ZodLiteral<"trigger">;
4060
+ id: z$1.ZodString;
4061
+ }, z$1.core.$strip>, z$1.ZodObject<{
4062
+ kind: z$1.ZodLiteral<"humanCheckpoint">;
4063
+ id: z$1.ZodString;
4064
+ }, z$1.core.$strip>, z$1.ZodObject<{
4065
+ kind: z$1.ZodLiteral<"externalResource">;
4066
+ id: z$1.ZodString;
4067
+ }, z$1.core.$strip>], "kind">;
4068
+ kind: z$1.ZodEnum<{
4069
+ triggers: "triggers";
4070
+ uses: "uses";
4071
+ approval: "approval";
4072
+ }>;
4073
+ to: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4074
+ kind: z$1.ZodLiteral<"system">;
4075
+ id: z$1.ZodString;
4076
+ }, z$1.core.$strip>, z$1.ZodObject<{
4077
+ kind: z$1.ZodLiteral<"resource">;
4078
+ id: z$1.ZodString;
4079
+ }, z$1.core.$strip>, z$1.ZodObject<{
4080
+ kind: z$1.ZodLiteral<"ontology">;
4081
+ id: z$1.ZodString;
4082
+ }, z$1.core.$strip>, z$1.ZodObject<{
4083
+ kind: z$1.ZodLiteral<"policy">;
4084
+ id: z$1.ZodString;
4085
+ }, z$1.core.$strip>, z$1.ZodObject<{
4086
+ kind: z$1.ZodLiteral<"role">;
4087
+ id: z$1.ZodString;
4088
+ }, z$1.core.$strip>, z$1.ZodObject<{
4089
+ kind: z$1.ZodLiteral<"trigger">;
4090
+ id: z$1.ZodString;
4091
+ }, z$1.core.$strip>, z$1.ZodObject<{
4092
+ kind: z$1.ZodLiteral<"humanCheckpoint">;
4093
+ id: z$1.ZodString;
4094
+ }, z$1.core.$strip>, z$1.ZodObject<{
4095
+ kind: z$1.ZodLiteral<"externalResource">;
4096
+ id: z$1.ZodString;
4097
+ }, z$1.core.$strip>], "kind">;
4098
+ systemPath: z$1.ZodOptional<z$1.ZodString>;
4099
+ required: z$1.ZodOptional<z$1.ZodBoolean>;
4100
+ metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
4101
+ }, z$1.core.$strip>>>;
4102
+ }, z$1.core.$strip>>>;
4103
+ actions: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4104
+ id: z$1.ZodString;
4105
+ order: z$1.ZodNumber;
4106
+ label: z$1.ZodString;
4107
+ description: z$1.ZodOptional<z$1.ZodString>;
4108
+ scope: z$1.ZodDefault<z$1.ZodUnion<readonly [z$1.ZodLiteral<"global">, z$1.ZodObject<{
4109
+ domain: z$1.ZodString;
4110
+ }, z$1.core.$strip>]>>;
4111
+ resourceId: z$1.ZodOptional<z$1.ZodString>;
4112
+ affects: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4113
+ invocations: z$1.ZodDefault<z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4114
+ kind: z$1.ZodLiteral<"slash-command">;
4115
+ command: z$1.ZodString;
4116
+ toolFactory: z$1.ZodOptional<z$1.ZodString>;
4117
+ }, z$1.core.$strip>, z$1.ZodObject<{
4118
+ kind: z$1.ZodLiteral<"mcp-tool">;
4119
+ server: z$1.ZodString;
4120
+ name: z$1.ZodString;
4121
+ }, z$1.core.$strip>, z$1.ZodObject<{
4122
+ kind: z$1.ZodLiteral<"api-endpoint">;
4123
+ method: z$1.ZodEnum<{
4124
+ GET: "GET";
4125
+ POST: "POST";
4126
+ PATCH: "PATCH";
4127
+ DELETE: "DELETE";
4128
+ }>;
4129
+ path: z$1.ZodString;
4130
+ requestSchema: z$1.ZodOptional<z$1.ZodString>;
4131
+ responseSchema: z$1.ZodOptional<z$1.ZodString>;
4132
+ }, z$1.core.$strip>, z$1.ZodObject<{
4133
+ kind: z$1.ZodLiteral<"script-execution">;
4134
+ resourceId: z$1.ZodString;
4135
+ }, z$1.core.$strip>], "kind">>>;
4136
+ knowledge: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
4137
+ lifecycle: z$1.ZodDefault<z$1.ZodEnum<{
4138
+ deprecated: "deprecated";
4139
+ draft: "draft";
4140
+ beta: "beta";
4141
+ active: "active";
4142
+ archived: "archived";
4143
+ }>>;
4144
+ }, z$1.core.$strip>>>>;
4145
+ entities: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4146
+ id: z$1.ZodString;
4147
+ order: z$1.ZodNumber;
4148
+ label: z$1.ZodString;
4149
+ description: z$1.ZodOptional<z$1.ZodString>;
4150
+ ownedBySystemId: z$1.ZodString;
4151
+ table: z$1.ZodOptional<z$1.ZodString>;
4152
+ rowSchema: z$1.ZodOptional<z$1.ZodString>;
4153
+ stateCatalogId: z$1.ZodOptional<z$1.ZodString>;
4154
+ links: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
4155
+ toEntity: z$1.ZodString;
4156
+ kind: z$1.ZodEnum<{
4157
+ "belongs-to": "belongs-to";
4158
+ "has-many": "has-many";
4159
+ "has-one": "has-one";
4160
+ "many-to-many": "many-to-many";
4161
+ }>;
4162
+ via: z$1.ZodOptional<z$1.ZodString>;
4163
+ label: z$1.ZodOptional<z$1.ZodString>;
4164
+ }, z$1.core.$strip>>>;
4165
+ }, z$1.core.$strip>>>>;
4166
+ policies: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4167
+ id: z$1.ZodString;
4168
+ order: z$1.ZodNumber;
4169
+ label: z$1.ZodString;
4170
+ description: z$1.ZodOptional<z$1.ZodString>;
4171
+ trigger: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4172
+ kind: z$1.ZodLiteral<"event">;
4173
+ eventId: z$1.ZodString;
4174
+ }, z$1.core.$strip>, z$1.ZodObject<{
4175
+ kind: z$1.ZodLiteral<"action-invocation">;
4176
+ actionId: z$1.ZodString;
4177
+ }, z$1.core.$strip>, z$1.ZodObject<{
4178
+ kind: z$1.ZodLiteral<"schedule">;
4179
+ cron: z$1.ZodString;
4180
+ }, z$1.core.$strip>, z$1.ZodObject<{
4181
+ kind: z$1.ZodLiteral<"manual">;
4182
+ }, z$1.core.$strip>], "kind">;
4183
+ predicate: z$1.ZodDefault<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4184
+ kind: z$1.ZodLiteral<"always">;
4185
+ }, z$1.core.$strip>, z$1.ZodObject<{
4186
+ kind: z$1.ZodLiteral<"expression">;
4187
+ expression: z$1.ZodString;
4188
+ }, z$1.core.$strip>, z$1.ZodObject<{
4189
+ kind: z$1.ZodLiteral<"threshold">;
4190
+ metric: z$1.ZodString;
4191
+ operator: z$1.ZodEnum<{
4192
+ lt: "lt";
4193
+ lte: "lte";
4194
+ eq: "eq";
4195
+ gte: "gte";
4196
+ gt: "gt";
4197
+ }>;
4198
+ value: z$1.ZodNumber;
4199
+ }, z$1.core.$strip>], "kind">>;
4200
+ actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4201
+ kind: z$1.ZodLiteral<"require-approval">;
4202
+ roleId: z$1.ZodOptional<z$1.ZodString>;
4203
+ }, z$1.core.$strip>, z$1.ZodObject<{
4204
+ kind: z$1.ZodLiteral<"invoke-action">;
4205
+ actionId: z$1.ZodString;
4206
+ }, z$1.core.$strip>, z$1.ZodObject<{
4207
+ kind: z$1.ZodLiteral<"notify-role">;
4208
+ roleId: z$1.ZodString;
4209
+ }, z$1.core.$strip>, z$1.ZodObject<{
4210
+ kind: z$1.ZodLiteral<"block">;
4211
+ }, z$1.core.$strip>], "kind">>;
4212
+ appliesTo: z$1.ZodDefault<z$1.ZodObject<{
4213
+ systemIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4214
+ actionIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4215
+ resourceIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4216
+ roleIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4217
+ }, z$1.core.$strip>>;
4218
+ lifecycle: z$1.ZodDefault<z$1.ZodEnum<{
4219
+ deprecated: "deprecated";
4220
+ draft: "draft";
4221
+ beta: "beta";
4222
+ active: "active";
4223
+ archived: "archived";
4224
+ }>>;
4225
+ }, z$1.core.$strip>>>>;
4226
+ knowledge: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4227
+ id: z$1.ZodString;
4228
+ kind: z$1.ZodEnum<{
4229
+ playbook: "playbook";
4230
+ strategy: "strategy";
4231
+ reference: "reference";
4232
+ }>;
4233
+ title: z$1.ZodString;
4234
+ summary: z$1.ZodString;
4235
+ icon: z$1.ZodOptional<z$1.ZodUnion<readonly [z$1.ZodEnum<{
4236
+ message: "message";
4237
+ error: "error";
4238
+ agent: "agent";
4239
+ workflow: "workflow";
4240
+ "google-sheets": "google-sheets";
4241
+ dashboard: "dashboard";
4242
+ calendar: "calendar";
4243
+ sales: "sales";
4244
+ crm: "crm";
4245
+ "lead-gen": "lead-gen";
4246
+ projects: "projects";
4247
+ clients: "clients";
4248
+ operations: "operations";
4249
+ monitoring: "monitoring";
4250
+ knowledge: "knowledge";
4251
+ settings: "settings";
4252
+ admin: "admin";
4253
+ archive: "archive";
4254
+ business: "business";
4255
+ finance: "finance";
4256
+ platform: "platform";
4257
+ seo: "seo";
4258
+ playbook: "playbook";
4259
+ strategy: "strategy";
4260
+ reference: "reference";
4261
+ integration: "integration";
4262
+ database: "database";
4263
+ user: "user";
4264
+ team: "team";
4265
+ gmail: "gmail";
4266
+ attio: "attio";
4267
+ overview: "overview";
4268
+ "command-view": "command-view";
4269
+ "command-queue": "command-queue";
4270
+ pipeline: "pipeline";
4271
+ lists: "lists";
4272
+ resources: "resources";
4273
+ approve: "approve";
4274
+ reject: "reject";
4275
+ retry: "retry";
4276
+ edit: "edit";
4277
+ view: "view";
4278
+ launch: "launch";
4279
+ escalate: "escalate";
4280
+ promote: "promote";
4281
+ submit: "submit";
4282
+ email: "email";
4283
+ success: "success";
4284
+ warning: "warning";
4285
+ info: "info";
4286
+ pending: "pending";
4287
+ bolt: "bolt";
4288
+ building: "building";
4289
+ briefcase: "briefcase";
4290
+ apps: "apps";
4291
+ graph: "graph";
4292
+ shield: "shield";
4293
+ users: "users";
4294
+ "chart-bar": "chart-bar";
4295
+ search: "search";
4296
+ }>, z$1.ZodString]>>;
4297
+ externalUrl: z$1.ZodOptional<z$1.ZodString>;
4298
+ sourceFilePath: z$1.ZodOptional<z$1.ZodString>;
4299
+ body: z$1.ZodString;
4300
+ links: z$1.ZodDefault<z$1.ZodArray<z$1.ZodPipe<z$1.ZodUnion<readonly [z$1.ZodObject<{
4301
+ target: z$1.ZodObject<{
4302
+ kind: z$1.ZodEnum<{
4303
+ knowledge: "knowledge";
4304
+ system: "system";
4305
+ action: "action";
4306
+ ontology: "ontology";
4307
+ role: "role";
4308
+ goal: "goal";
4309
+ resource: "resource";
4310
+ stage: "stage";
4311
+ "customer-segment": "customer-segment";
4312
+ offering: "offering";
4313
+ }>;
4314
+ id: z$1.ZodString;
4315
+ }, z$1.core.$strip>;
4316
+ }, z$1.core.$strip>, z$1.ZodObject<{
4317
+ nodeId: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodTemplateLiteral<`ontology:${string}`>]>;
4318
+ }, z$1.core.$strip>]>, z$1.ZodTransform<{
4319
+ target: {
4320
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4321
+ id: string;
4322
+ };
4323
+ nodeId: string;
4324
+ }, {
4325
+ nodeId: string;
4326
+ } | {
4327
+ target: {
4328
+ kind: "knowledge" | "system" | "action" | "ontology" | "role" | "goal" | "resource" | "stage" | "customer-segment" | "offering";
4329
+ id: string;
4330
+ };
4331
+ }>>>>;
4332
+ ownerIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4333
+ updatedAt: z$1.ZodString;
4334
+ }, z$1.core.$strip>>>>;
4335
+ }, z$1.core.$strip>;
4336
+
4337
+ type OrganizationModel = z$1.infer<typeof OrganizationModelSchema>;
4338
+
3230
4339
  interface ApiErrorDetails {
3231
4340
  method: string;
3232
4341
  statusCode: number;
@@ -3520,5 +4629,143 @@ interface ElevasisAppConfig {
3520
4629
  */
3521
4630
  declare function createElevasisApp(config: ElevasisAppConfig): ComponentType;
3522
4631
 
3523
- export { createElevasisApp };
3524
- export type { ElevasisAppConfig, ElevasisAppStoreConfig };
4632
+ interface AppErrorBoundaryProps {
4633
+ children: ReactNode;
4634
+ appVersion?: string;
4635
+ /** Optional override -- defaults to CrashErrorFallback */
4636
+ fallback?: (props: {
4637
+ error: unknown;
4638
+ componentStack: string;
4639
+ }) => ReactNode;
4640
+ /** Hook for app-local error reporting (e.g. Sentry.captureException in command-center) */
4641
+ onError?: (error: unknown, errorInfo: ErrorInfo) => void;
4642
+ }
4643
+
4644
+ interface FetchEventSourceWithTokenRefreshOptions {
4645
+ url: string;
4646
+ getToken: () => Promise<string | undefined>;
4647
+ headers?: Record<string, string>;
4648
+ signal: AbortSignal;
4649
+ /** Delay in ms before reconnecting after token refresh. Defaults to 2000. */
4650
+ tokenRefreshDelayMs?: number;
4651
+ onopen?: (response: Response) => void | Promise<void>;
4652
+ onmessage?: (event: EventSourceMessage) => void;
4653
+ onerror?: (error: unknown) => void;
4654
+ onclose?: () => void;
4655
+ }
4656
+
4657
+ interface SSEConnectionManagerLike {
4658
+ subscribe(key: string, subscriberId: string, options: Omit<FetchEventSourceWithTokenRefreshOptions, 'signal'>): () => void;
4659
+ closeConnection(key: string): void;
4660
+ getConnectionInfo(): Map<string, {
4661
+ url: string;
4662
+ subscribers: number;
4663
+ }>;
4664
+ }
4665
+
4666
+ type ElevasisOrganizationModel = Omit<OrganizationModel, 'knowledge'> & {
4667
+ knowledge?: OrganizationModel['knowledge'];
4668
+ };
4669
+ type SystemSidebarComponent = ComponentType;
4670
+ type SystemIconComponent = ComponentType<{
4671
+ size?: number;
4672
+ stroke?: number;
4673
+ }>;
4674
+ type SystemSidebarWidthResolver = number | ((context: {
4675
+ currentPath: string;
4676
+ }) => number);
4677
+ interface SystemModule {
4678
+ /** Unique stable identifier for this UI system module. */
4679
+ key: string;
4680
+ /** Organization Model system id this module presents. Omit for navigation-only app surfaces. */
4681
+ systemId?: string;
4682
+ /** Route prefixes owned by navigation-only app surfaces. */
4683
+ routePrefixes?: string[];
4684
+ /** Capability identifiers contributed by this system module. */
4685
+ capabilityIds?: string[];
4686
+ /** Icon used when this system node appears in shell navigation. */
4687
+ icon?: SystemIconComponent;
4688
+ /** Sidebar component rendered when this system's subtree route is active. */
4689
+ sidebar?: SystemSidebarComponent;
4690
+ /** Optional shell sidebar width override. Defaults to 250px. */
4691
+ sidebarWidth?: SystemSidebarWidthResolver;
4692
+ /** Operations-only bridge connecting this system to the organization graph node. */
4693
+ organizationGraph?: OrganizationGraphSystemBridge;
4694
+ }
4695
+ interface ShellSidebarLinkItem {
4696
+ label: string;
4697
+ link: string;
4698
+ exact?: boolean;
4699
+ activeMatchPaths?: string[];
4700
+ }
4701
+ interface ShellSidebarLinkGroup {
4702
+ icon: SystemIconComponent;
4703
+ label: string;
4704
+ links?: ShellSidebarLinkItem[];
4705
+ link?: string;
4706
+ }
4707
+ interface OrganizationGraphSystemBridge {
4708
+ systemId?: string;
4709
+ }
4710
+ interface ElevasisSystemsProviderProps {
4711
+ systems?: SystemModule[];
4712
+ organizationModel?: ElevasisOrganizationModel;
4713
+ timeRange?: TimeRange;
4714
+ operationsApiUrl?: string;
4715
+ operationsSSEManager?: SSEConnectionManagerLike;
4716
+ deliveryApiUrl?: string;
4717
+ deliverySSEManager?: SSEConnectionManagerLike;
4718
+ disabledSubsectionPaths?: string[];
4719
+ children: ReactNode;
4720
+ }
4721
+
4722
+ interface InitializationError {
4723
+ layer: 'auth' | 'profile' | 'organization';
4724
+ message: string;
4725
+ originalError?: Error;
4726
+ }
4727
+ interface AppInitializationState {
4728
+ userReady: boolean;
4729
+ organizationReady: boolean;
4730
+ allReady: boolean;
4731
+ isInitializing: boolean;
4732
+ error: InitializationError | null;
4733
+ retry: () => void;
4734
+ profile: SupabaseUserProfile | null;
4735
+ }
4736
+
4737
+ interface ElevasisAuthenticatedShellLogoConfig {
4738
+ light?: string;
4739
+ dark?: string;
4740
+ }
4741
+ interface ElevasisAuthenticatedShellRenderContext {
4742
+ isDark: boolean;
4743
+ user: ReturnType<typeof useAuth>['user'];
4744
+ initialization: AppInitializationState;
4745
+ }
4746
+ interface ElevasisAuthenticatedShellProps {
4747
+ systems: SystemModule[];
4748
+ organizationModel: OrganizationModel;
4749
+ logos?: ElevasisAuthenticatedShellLogoConfig;
4750
+ topbar?: ReactNode | ((context: ElevasisAuthenticatedShellRenderContext) => ReactNode);
4751
+ children?: ReactNode;
4752
+ fullScreenPaths?: readonly string[];
4753
+ readyMode?: 'user' | 'organization';
4754
+ accountPath?: string;
4755
+ signOutReturnTo?: string;
4756
+ appVersion?: string;
4757
+ timeRange?: ElevasisSystemsProviderProps['timeRange'];
4758
+ operationsApiUrl?: string;
4759
+ operationsSSEManager?: ElevasisSystemsProviderProps['operationsSSEManager'];
4760
+ deliveryApiUrl?: string;
4761
+ deliverySSEManager?: ElevasisSystemsProviderProps['deliverySSEManager'];
4762
+ disabledSubsectionPaths?: readonly string[];
4763
+ isDev?: boolean;
4764
+ errorFallback?: AppErrorBoundaryProps['fallback'];
4765
+ onError?: AppErrorBoundaryProps['onError'];
4766
+ sidebarLinks?: (links: ShellSidebarLinkGroup[]) => ShellSidebarLinkGroup[];
4767
+ }
4768
+ declare function ElevasisAuthenticatedShell({ systems, organizationModel, logos, topbar, children, fullScreenPaths, readyMode, accountPath, signOutReturnTo, appVersion, timeRange, operationsApiUrl, operationsSSEManager, deliveryApiUrl, deliverySSEManager, disabledSubsectionPaths, isDev, errorFallback, onError, sidebarLinks }: ElevasisAuthenticatedShellProps): react_jsx_runtime.JSX.Element;
4769
+
4770
+ export { ElevasisAuthenticatedShell, createElevasisApp };
4771
+ export type { ElevasisAppConfig, ElevasisAppStoreConfig, ElevasisAuthenticatedShellLogoConfig, ElevasisAuthenticatedShellProps, ElevasisAuthenticatedShellRenderContext };