@elevasis/ui 2.67.0 → 2.69.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 (122) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.d.ts +575 -370
  4. package/dist/app/index.js +17 -23
  5. package/dist/auth/index.css +149 -149
  6. package/dist/auth/index.d.ts +5 -0
  7. package/dist/auth/index.js +11 -13
  8. package/dist/charts/index.css +208 -208
  9. package/dist/charts/index.js +11 -13
  10. package/dist/{chunk-M535KHLW.js → chunk-26BTE3Z4.js} +1 -1
  11. package/dist/chunk-3KMDHCAR.js +52 -0
  12. package/dist/chunk-3MEXPLWT.js +265 -0
  13. package/dist/chunk-4JHLS234.js +39 -0
  14. package/dist/chunk-6PZFOHJK.js +1764 -0
  15. package/dist/chunk-7WJEPTE7.js +194 -0
  16. package/dist/chunk-AH52XQB7.js +1 -0
  17. package/dist/{chunk-UFTM5SZZ.js → chunk-AKANHRQ5.js} +9 -3
  18. package/dist/chunk-BZZCNLT6.js +12 -0
  19. package/dist/chunk-C75XWBYZ.js +383 -0
  20. package/dist/chunk-DLR4SDZW.js +51 -0
  21. package/dist/{chunk-4OEVLV66.js → chunk-FLECOYUS.js} +113 -148
  22. package/dist/chunk-IRV6KJPV.js +425 -0
  23. package/dist/chunk-IT7GTJCB.js +10 -0
  24. package/dist/chunk-LGKLC5MG.js +44 -0
  25. package/dist/chunk-MFLM7BVC.js +85 -0
  26. package/dist/chunk-MRVGQLWN.js +1595 -0
  27. package/dist/{chunk-4DV4ECMG.js → chunk-N7U24M2J.js} +4 -0
  28. package/dist/{chunk-I7BZVVVU.js → chunk-NM4A63KJ.js} +104 -415
  29. package/dist/chunk-NU3NBXHP.js +1194 -0
  30. package/dist/chunk-PDHTXPSF.js +12 -0
  31. package/dist/chunk-RW64UJWT.js +1934 -0
  32. package/dist/{chunk-JFBZ6XDW.js → chunk-SNZDFCOQ.js} +3 -49
  33. package/dist/chunk-TUMSNGTX.js +35 -0
  34. package/dist/chunk-UD657ICS.js +589 -0
  35. package/dist/{chunk-XNW3O6QW.js → chunk-VDX6DL7Z.js} +1 -1
  36. package/dist/chunk-WXHAHKKI.js +16411 -0
  37. package/dist/chunk-XAZR3T6Y.js +2162 -0
  38. package/dist/chunk-XQ3ILKYN.js +37 -0
  39. package/dist/chunk-YCRINA2D.js +67 -0
  40. package/dist/chunk-YGCMMOY4.js +1484 -0
  41. package/dist/chunk-YNRYIXUT.js +10945 -0
  42. package/dist/chunk-ZD6LM53O.js +4528 -0
  43. package/dist/chunk-ZPTEGGKU.js +631 -0
  44. package/dist/components/chat/index.js +2 -1
  45. package/dist/components/index.css +208 -208
  46. package/dist/components/index.d.ts +1634 -264
  47. package/dist/components/index.js +2774 -14
  48. package/dist/components/navigation/index.css +149 -149
  49. package/dist/components/navigation/index.js +12 -13
  50. package/dist/features/auth/index.css +149 -149
  51. package/dist/features/auth/index.d.ts +457 -167
  52. package/dist/features/auth/index.js +13 -14
  53. package/dist/features/clients/index.css +208 -208
  54. package/dist/features/clients/index.d.ts +39 -1
  55. package/dist/features/clients/index.js +16 -13
  56. package/dist/features/content/index.d.ts +1788 -0
  57. package/dist/features/content/index.js +2180 -0
  58. package/dist/features/crm/index.d.ts +1802 -231
  59. package/dist/features/crm/index.js +16 -13
  60. package/dist/features/dashboard/index.d.ts +1 -8
  61. package/dist/features/dashboard/index.js +17 -13
  62. package/dist/features/delivery/index.d.ts +457 -167
  63. package/dist/features/delivery/index.js +16 -13
  64. package/dist/features/knowledge/index.css +149 -149
  65. package/dist/features/knowledge/index.js +11 -13
  66. package/dist/features/lead-gen/index.d.ts +53 -104
  67. package/dist/features/lead-gen/index.js +17 -13
  68. package/dist/features/monitoring/index.js +16 -13
  69. package/dist/features/monitoring/requests/index.js +15 -20
  70. package/dist/features/operations/index.d.ts +1 -86
  71. package/dist/features/operations/index.js +22 -12
  72. package/dist/features/public-agent-chat/index.js +2 -1
  73. package/dist/features/seo/index.js +2 -1
  74. package/dist/features/settings/index.d.ts +457 -167
  75. package/dist/features/settings/index.js +15 -13
  76. package/dist/hooks/access/index.css +149 -149
  77. package/dist/hooks/access/index.d.ts +5 -0
  78. package/dist/hooks/access/index.js +11 -13
  79. package/dist/hooks/delivery/index.d.ts +457 -167
  80. package/dist/hooks/delivery/index.js +2 -23
  81. package/dist/hooks/index.d.ts +2203 -244
  82. package/dist/hooks/index.js +11 -13
  83. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +1 -8
  84. package/dist/hooks/published.d.ts +2203 -244
  85. package/dist/hooks/published.js +11 -13
  86. package/dist/initialization/index.d.ts +465 -169
  87. package/dist/knowledge/index.css +149 -149
  88. package/dist/knowledge/index.d.ts +5 -90
  89. package/dist/knowledge/index.js +3215 -3203
  90. package/dist/{knowledge-search-index-6EZNBNSR.js → knowledge-search-index-LP2WVSQX.js} +689 -695
  91. package/dist/layout/index.css +149 -149
  92. package/dist/layout/index.js +15 -13
  93. package/dist/organization/index.d.ts +10 -4
  94. package/dist/organization/index.js +1 -21
  95. package/dist/profile/index.d.ts +457 -167
  96. package/dist/provider/index.d.ts +576 -372
  97. package/dist/provider/index.js +11 -13
  98. package/dist/provider/published.css +149 -149
  99. package/dist/provider/published.d.ts +576 -372
  100. package/dist/provider/published.js +11 -13
  101. package/dist/supabase/index.d.ts +906 -347
  102. package/dist/test-utils/index.d.ts +15 -2
  103. package/dist/test-utils/index.js +41 -12
  104. package/dist/test-utils/setup-integration.js +1 -1
  105. package/dist/test-utils/setup.js +1 -1
  106. package/dist/theme/index.js +3 -2
  107. package/dist/theme/presets/index.js +1 -1
  108. package/dist/typeform/index.js +2049 -1
  109. package/dist/types/index.d.ts +477 -177
  110. package/dist/utils/index.d.ts +1 -8
  111. package/dist/utils/index.js +1 -1
  112. package/dist/vite/index.js +2 -2
  113. package/dist/vite-plugin-knowledge/index.js +1 -1
  114. package/package.json +7 -3
  115. package/src/features/README.md +28 -28
  116. package/dist/chunk-5TERYXOO.js +0 -51390
  117. package/dist/chunk-AUDNF2Q7.js +0 -2050
  118. package/dist/index.d.ts +0 -17888
  119. package/dist/index.js +0 -30
  120. package/dist/{chunk-GMXGDO3I.js → chunk-MISHPEJX.js} +1 -1
  121. package/dist/{chunk-RBGVNPA6.js → chunk-XQBURFKM.js} +0 -0
  122. package/dist/{index.css → features/content/index.css} +149 -149
@@ -80,7 +80,7 @@ interface NotificationAdapter {
80
80
  *
81
81
  * @example
82
82
  * ```tsx
83
- * import { NotificationProvider } from '@repo/ui/provider'
83
+ * import { NotificationProvider } from '@elevasis/ui/provider'
84
84
  * import { myAdapter } from './my-adapter'
85
85
  *
86
86
  * <NotificationProvider adapter={myAdapter}>
@@ -109,53 +109,6 @@ type Json = string | number | boolean | null | {
109
109
  type Database = {
110
110
  public: {
111
111
  Tables: {
112
- acq_artifacts: {
113
- Row: {
114
- content: Json;
115
- created_at: string;
116
- created_by: string | null;
117
- id: string;
118
- kind: string;
119
- organization_id: string;
120
- owner_id: string;
121
- owner_kind: string;
122
- source_execution_id: string | null;
123
- version: number;
124
- };
125
- Insert: {
126
- content: Json;
127
- created_at?: string;
128
- created_by?: string | null;
129
- id?: string;
130
- kind: string;
131
- organization_id: string;
132
- owner_id: string;
133
- owner_kind: string;
134
- source_execution_id?: string | null;
135
- version?: number;
136
- };
137
- Update: {
138
- content?: Json;
139
- created_at?: string;
140
- created_by?: string | null;
141
- id?: string;
142
- kind?: string;
143
- organization_id?: string;
144
- owner_id?: string;
145
- owner_kind?: string;
146
- source_execution_id?: string | null;
147
- version?: number;
148
- };
149
- Relationships: [
150
- {
151
- foreignKeyName: "acq_artifacts_organization_id_fkey";
152
- columns: ["organization_id"];
153
- isOneToOne: false;
154
- referencedRelation: "organizations";
155
- referencedColumns: ["id"];
156
- }
157
- ];
158
- };
159
112
  acq_companies: {
160
113
  Row: {
161
114
  batch_id: string | null;
@@ -367,122 +320,6 @@ type Database = {
367
320
  }
368
321
  ];
369
322
  };
370
- acq_content: {
371
- Row: {
372
- body: string | null;
373
- created_at: string;
374
- id: string;
375
- organization_id: string;
376
- pillar: string;
377
- status: string;
378
- title: string;
379
- updated_at: string;
380
- };
381
- Insert: {
382
- body?: string | null;
383
- created_at?: string;
384
- id?: string;
385
- organization_id: string;
386
- pillar: string;
387
- status?: string;
388
- title: string;
389
- updated_at?: string;
390
- };
391
- Update: {
392
- body?: string | null;
393
- created_at?: string;
394
- id?: string;
395
- organization_id?: string;
396
- pillar?: string;
397
- status?: string;
398
- title?: string;
399
- updated_at?: string;
400
- };
401
- Relationships: [
402
- {
403
- foreignKeyName: "acq_content_organization_id_fkey";
404
- columns: ["organization_id"];
405
- isOneToOne: false;
406
- referencedRelation: "organizations";
407
- referencedColumns: ["id"];
408
- }
409
- ];
410
- };
411
- acq_content_distributions: {
412
- Row: {
413
- adapted_body: string | null;
414
- checklist: Json | null;
415
- content_id: string;
416
- created_at: string;
417
- format: string;
418
- id: string;
419
- media_urls: Json;
420
- metrics: Json;
421
- metrics_updated_at: string | null;
422
- organization_id: string;
423
- platform: string;
424
- platform_content: Json | null;
425
- platform_post_id: string | null;
426
- platform_url: string | null;
427
- published_at: string | null;
428
- status: string;
429
- updated_at: string;
430
- };
431
- Insert: {
432
- adapted_body?: string | null;
433
- checklist?: Json | null;
434
- content_id: string;
435
- created_at?: string;
436
- format: string;
437
- id?: string;
438
- media_urls?: Json;
439
- metrics?: Json;
440
- metrics_updated_at?: string | null;
441
- organization_id: string;
442
- platform: string;
443
- platform_content?: Json | null;
444
- platform_post_id?: string | null;
445
- platform_url?: string | null;
446
- published_at?: string | null;
447
- status?: string;
448
- updated_at?: string;
449
- };
450
- Update: {
451
- adapted_body?: string | null;
452
- checklist?: Json | null;
453
- content_id?: string;
454
- created_at?: string;
455
- format?: string;
456
- id?: string;
457
- media_urls?: Json;
458
- metrics?: Json;
459
- metrics_updated_at?: string | null;
460
- organization_id?: string;
461
- platform?: string;
462
- platform_content?: Json | null;
463
- platform_post_id?: string | null;
464
- platform_url?: string | null;
465
- published_at?: string | null;
466
- status?: string;
467
- updated_at?: string;
468
- };
469
- Relationships: [
470
- {
471
- foreignKeyName: "acq_content_distributions_content_id_fkey";
472
- columns: ["content_id"];
473
- isOneToOne: false;
474
- referencedRelation: "acq_content";
475
- referencedColumns: ["id"];
476
- },
477
- {
478
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
479
- columns: ["organization_id"];
480
- isOneToOne: false;
481
- referencedRelation: "organizations";
482
- referencedColumns: ["id"];
483
- }
484
- ];
485
- };
486
323
  acq_deal_notes: {
487
324
  Row: {
488
325
  author_user_id: string | null;
@@ -512,6 +349,13 @@ type Database = {
512
349
  updated_at?: string;
513
350
  };
514
351
  Relationships: [
352
+ {
353
+ foreignKeyName: "acq_deal_notes_author_user_id_fkey";
354
+ columns: ["author_user_id"];
355
+ isOneToOne: false;
356
+ referencedRelation: "users";
357
+ referencedColumns: ["id"];
358
+ },
515
359
  {
516
360
  foreignKeyName: "acq_deal_notes_deal_id_fkey";
517
361
  columns: ["deal_id"];
@@ -575,6 +419,27 @@ type Database = {
575
419
  updated_at?: string;
576
420
  };
577
421
  Relationships: [
422
+ {
423
+ foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
424
+ columns: ["assignee_user_id"];
425
+ isOneToOne: false;
426
+ referencedRelation: "users";
427
+ referencedColumns: ["id"];
428
+ },
429
+ {
430
+ foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
431
+ columns: ["completed_by_user_id"];
432
+ isOneToOne: false;
433
+ referencedRelation: "users";
434
+ referencedColumns: ["id"];
435
+ },
436
+ {
437
+ foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
438
+ columns: ["created_by_user_id"];
439
+ isOneToOne: false;
440
+ referencedRelation: "users";
441
+ referencedColumns: ["id"];
442
+ },
578
443
  {
579
444
  foreignKeyName: "acq_deal_tasks_deal_id_fkey";
580
445
  columns: ["deal_id"];
@@ -731,6 +596,13 @@ type Database = {
731
596
  referencedRelation: "acq_contacts";
732
597
  referencedColumns: ["id"];
733
598
  },
599
+ {
600
+ foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
601
+ columns: ["discovery_submitted_by"];
602
+ isOneToOne: false;
603
+ referencedRelation: "users";
604
+ referencedColumns: ["id"];
605
+ },
734
606
  {
735
607
  foreignKeyName: "acq_deals_organization_id_fkey";
736
608
  columns: ["organization_id"];
@@ -738,6 +610,13 @@ type Database = {
738
610
  referencedRelation: "organizations";
739
611
  referencedColumns: ["id"];
740
612
  },
613
+ {
614
+ foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
615
+ columns: ["proposal_reviewed_by"];
616
+ isOneToOne: false;
617
+ referencedRelation: "users";
618
+ referencedColumns: ["id"];
619
+ },
741
620
  {
742
621
  foreignKeyName: "acq_deals_source_list_id_fkey";
743
622
  columns: ["source_list_id"];
@@ -791,6 +670,13 @@ type Database = {
791
670
  state_key?: string;
792
671
  };
793
672
  Relationships: [
673
+ {
674
+ foreignKeyName: "acq_list_companies_added_by_fkey";
675
+ columns: ["added_by"];
676
+ isOneToOne: false;
677
+ referencedRelation: "users";
678
+ referencedColumns: ["id"];
679
+ },
794
680
  {
795
681
  foreignKeyName: "acq_list_companies_company_id_fkey";
796
682
  columns: ["company_id"];
@@ -897,6 +783,13 @@ type Database = {
897
783
  state_key?: string;
898
784
  };
899
785
  Relationships: [
786
+ {
787
+ foreignKeyName: "acq_list_members_added_by_fkey";
788
+ columns: ["added_by"];
789
+ isOneToOne: false;
790
+ referencedRelation: "users";
791
+ referencedColumns: ["id"];
792
+ },
900
793
  {
901
794
  foreignKeyName: "acq_list_members_contact_id_fkey";
902
795
  columns: ["contact_id"];
@@ -1297,6 +1190,13 @@ type Database = {
1297
1190
  title?: string;
1298
1191
  };
1299
1192
  Relationships: [
1193
+ {
1194
+ foreignKeyName: "activities_actor_id_fkey";
1195
+ columns: ["actor_id"];
1196
+ isOneToOne: false;
1197
+ referencedRelation: "users";
1198
+ referencedColumns: ["id"];
1199
+ },
1300
1200
  {
1301
1201
  foreignKeyName: "activities_organization_id_fkey";
1302
1202
  columns: ["organization_id"];
@@ -1378,205 +1278,566 @@ type Database = {
1378
1278
  Row: {
1379
1279
  created_at: string | null;
1380
1280
  id: string;
1381
- key_hash: string;
1382
- last_used_at: string | null;
1383
- name: string;
1281
+ key_hash: string;
1282
+ last_used_at: string | null;
1283
+ name: string;
1284
+ organization_id: string;
1285
+ };
1286
+ Insert: {
1287
+ created_at?: string | null;
1288
+ id?: string;
1289
+ key_hash: string;
1290
+ last_used_at?: string | null;
1291
+ name: string;
1292
+ organization_id: string;
1293
+ };
1294
+ Update: {
1295
+ created_at?: string | null;
1296
+ id?: string;
1297
+ key_hash?: string;
1298
+ last_used_at?: string | null;
1299
+ name?: string;
1300
+ organization_id?: string;
1301
+ };
1302
+ Relationships: [
1303
+ {
1304
+ foreignKeyName: "api_keys_organization_id_fkey";
1305
+ columns: ["organization_id"];
1306
+ isOneToOne: false;
1307
+ referencedRelation: "organizations";
1308
+ referencedColumns: ["id"];
1309
+ }
1310
+ ];
1311
+ };
1312
+ artifacts: {
1313
+ Row: {
1314
+ content: Json;
1315
+ created_at: string;
1316
+ created_by: string | null;
1317
+ id: string;
1318
+ is_active: boolean;
1319
+ kind: string;
1320
+ organization_id: string;
1321
+ owner_id: string | null;
1322
+ owner_kind: string;
1323
+ pipeline_id: string | null;
1324
+ source_execution_id: string | null;
1325
+ updated_at: string;
1326
+ version: number;
1327
+ };
1328
+ Insert: {
1329
+ content: Json;
1330
+ created_at?: string;
1331
+ created_by?: string | null;
1332
+ id?: string;
1333
+ is_active?: boolean;
1334
+ kind: string;
1335
+ organization_id: string;
1336
+ owner_id?: string | null;
1337
+ owner_kind: string;
1338
+ pipeline_id?: string | null;
1339
+ source_execution_id?: string | null;
1340
+ updated_at?: string;
1341
+ version?: number;
1342
+ };
1343
+ Update: {
1344
+ content?: Json;
1345
+ created_at?: string;
1346
+ created_by?: string | null;
1347
+ id?: string;
1348
+ is_active?: boolean;
1349
+ kind?: string;
1350
+ organization_id?: string;
1351
+ owner_id?: string | null;
1352
+ owner_kind?: string;
1353
+ pipeline_id?: string | null;
1354
+ source_execution_id?: string | null;
1355
+ updated_at?: string;
1356
+ version?: number;
1357
+ };
1358
+ Relationships: [
1359
+ {
1360
+ foreignKeyName: "artifacts_organization_id_fkey";
1361
+ columns: ["organization_id"];
1362
+ isOneToOne: false;
1363
+ referencedRelation: "organizations";
1364
+ referencedColumns: ["id"];
1365
+ }
1366
+ ];
1367
+ };
1368
+ clients: {
1369
+ Row: {
1370
+ converted_at: string | null;
1371
+ created_at: string;
1372
+ id: string;
1373
+ metadata: Json;
1374
+ name: string;
1375
+ organization_id: string;
1376
+ primary_company_id: string | null;
1377
+ primary_contact_id: string | null;
1378
+ source: string;
1379
+ source_deal_id: string | null;
1380
+ status: string;
1381
+ updated_at: string;
1382
+ };
1383
+ Insert: {
1384
+ converted_at?: string | null;
1385
+ created_at?: string;
1386
+ id?: string;
1387
+ metadata?: Json;
1388
+ name: string;
1389
+ organization_id: string;
1390
+ primary_company_id?: string | null;
1391
+ primary_contact_id?: string | null;
1392
+ source?: string;
1393
+ source_deal_id?: string | null;
1394
+ status?: string;
1395
+ updated_at?: string;
1396
+ };
1397
+ Update: {
1398
+ converted_at?: string | null;
1399
+ created_at?: string;
1400
+ id?: string;
1401
+ metadata?: Json;
1402
+ name?: string;
1403
+ organization_id?: string;
1404
+ primary_company_id?: string | null;
1405
+ primary_contact_id?: string | null;
1406
+ source?: string;
1407
+ source_deal_id?: string | null;
1408
+ status?: string;
1409
+ updated_at?: string;
1410
+ };
1411
+ Relationships: [
1412
+ {
1413
+ foreignKeyName: "clients_organization_id_fkey";
1414
+ columns: ["organization_id"];
1415
+ isOneToOne: false;
1416
+ referencedRelation: "organizations";
1417
+ referencedColumns: ["id"];
1418
+ },
1419
+ {
1420
+ foreignKeyName: "clients_primary_company_id_fkey";
1421
+ columns: ["primary_company_id"];
1422
+ isOneToOne: false;
1423
+ referencedRelation: "acq_companies";
1424
+ referencedColumns: ["id"];
1425
+ },
1426
+ {
1427
+ foreignKeyName: "clients_primary_contact_id_fkey";
1428
+ columns: ["primary_contact_id"];
1429
+ isOneToOne: false;
1430
+ referencedRelation: "acq_contacts";
1431
+ referencedColumns: ["id"];
1432
+ },
1433
+ {
1434
+ foreignKeyName: "clients_source_deal_id_fkey";
1435
+ columns: ["source_deal_id"];
1436
+ isOneToOne: false;
1437
+ referencedRelation: "acq_deals";
1438
+ referencedColumns: ["id"];
1439
+ }
1440
+ ];
1441
+ };
1442
+ command_queue: {
1443
+ Row: {
1444
+ action_payload: Json | null;
1445
+ actions: Json;
1446
+ completed_at: string | null;
1447
+ completed_by: string | null;
1448
+ context: Json;
1449
+ created_at: string;
1450
+ description: string | null;
1451
+ expires_at: string | null;
1452
+ human_checkpoint: string | null;
1453
+ id: string;
1454
+ idempotency_key: string | null;
1455
+ metadata: Json | null;
1456
+ organization_id: string;
1457
+ origin_execution_id: string;
1458
+ origin_resource_id: string;
1459
+ origin_resource_type: string;
1460
+ priority: number;
1461
+ selected_action: string | null;
1462
+ status: string;
1463
+ target_execution_id: string | null;
1464
+ target_resource_id: string | null;
1465
+ target_resource_type: string | null;
1466
+ };
1467
+ Insert: {
1468
+ action_payload?: Json | null;
1469
+ actions: Json;
1470
+ completed_at?: string | null;
1471
+ completed_by?: string | null;
1472
+ context: Json;
1473
+ created_at?: string;
1474
+ description?: string | null;
1475
+ expires_at?: string | null;
1476
+ human_checkpoint?: string | null;
1477
+ id?: string;
1478
+ idempotency_key?: string | null;
1479
+ metadata?: Json | null;
1480
+ organization_id: string;
1481
+ origin_execution_id: string;
1482
+ origin_resource_id: string;
1483
+ origin_resource_type: string;
1484
+ priority?: number;
1485
+ selected_action?: string | null;
1486
+ status?: string;
1487
+ target_execution_id?: string | null;
1488
+ target_resource_id?: string | null;
1489
+ target_resource_type?: string | null;
1490
+ };
1491
+ Update: {
1492
+ action_payload?: Json | null;
1493
+ actions?: Json;
1494
+ completed_at?: string | null;
1495
+ completed_by?: string | null;
1496
+ context?: Json;
1497
+ created_at?: string;
1498
+ description?: string | null;
1499
+ expires_at?: string | null;
1500
+ human_checkpoint?: string | null;
1501
+ id?: string;
1502
+ idempotency_key?: string | null;
1503
+ metadata?: Json | null;
1504
+ organization_id?: string;
1505
+ origin_execution_id?: string;
1506
+ origin_resource_id?: string;
1507
+ origin_resource_type?: string;
1508
+ priority?: number;
1509
+ selected_action?: string | null;
1510
+ status?: string;
1511
+ target_execution_id?: string | null;
1512
+ target_resource_id?: string | null;
1513
+ target_resource_type?: string | null;
1514
+ };
1515
+ Relationships: [
1516
+ {
1517
+ foreignKeyName: "command_queue_completed_by_fkey";
1518
+ columns: ["completed_by"];
1519
+ isOneToOne: false;
1520
+ referencedRelation: "users";
1521
+ referencedColumns: ["id"];
1522
+ },
1523
+ {
1524
+ foreignKeyName: "command_queue_organization_id_fkey";
1525
+ columns: ["organization_id"];
1526
+ isOneToOne: false;
1527
+ referencedRelation: "organizations";
1528
+ referencedColumns: ["id"];
1529
+ },
1530
+ {
1531
+ foreignKeyName: "command_queue_target_execution_id_fkey";
1532
+ columns: ["target_execution_id"];
1533
+ isOneToOne: false;
1534
+ referencedRelation: "execution_logs";
1535
+ referencedColumns: ["execution_id"];
1536
+ }
1537
+ ];
1538
+ };
1539
+ content_distributions: {
1540
+ Row: {
1541
+ adapted_body: string | null;
1542
+ checklist: Json | null;
1543
+ content_item_id: string;
1544
+ created_at: string;
1545
+ format: string;
1546
+ id: string;
1547
+ media_urls: Json;
1548
+ metrics: Json;
1549
+ metrics_updated_at: string | null;
1550
+ organization_id: string;
1551
+ platform: string;
1552
+ platform_content: Json | null;
1553
+ platform_post_id: string | null;
1554
+ platform_url: string | null;
1555
+ processing_state: Json;
1556
+ publish_method: string | null;
1557
+ published_at: string | null;
1558
+ status: string;
1559
+ updated_at: string;
1560
+ };
1561
+ Insert: {
1562
+ adapted_body?: string | null;
1563
+ checklist?: Json | null;
1564
+ content_item_id: string;
1565
+ created_at?: string;
1566
+ format: string;
1567
+ id?: string;
1568
+ media_urls?: Json;
1569
+ metrics?: Json;
1570
+ metrics_updated_at?: string | null;
1571
+ organization_id: string;
1572
+ platform: string;
1573
+ platform_content?: Json | null;
1574
+ platform_post_id?: string | null;
1575
+ platform_url?: string | null;
1576
+ processing_state?: Json;
1577
+ publish_method?: string | null;
1578
+ published_at?: string | null;
1579
+ status?: string;
1580
+ updated_at?: string;
1581
+ };
1582
+ Update: {
1583
+ adapted_body?: string | null;
1584
+ checklist?: Json | null;
1585
+ content_item_id?: string;
1586
+ created_at?: string;
1587
+ format?: string;
1588
+ id?: string;
1589
+ media_urls?: Json;
1590
+ metrics?: Json;
1591
+ metrics_updated_at?: string | null;
1592
+ organization_id?: string;
1593
+ platform?: string;
1594
+ platform_content?: Json | null;
1595
+ platform_post_id?: string | null;
1596
+ platform_url?: string | null;
1597
+ processing_state?: Json;
1598
+ publish_method?: string | null;
1599
+ published_at?: string | null;
1600
+ status?: string;
1601
+ updated_at?: string;
1602
+ };
1603
+ Relationships: [
1604
+ {
1605
+ foreignKeyName: "content_distributions_content_item_id_fkey";
1606
+ columns: ["content_item_id"];
1607
+ isOneToOne: false;
1608
+ referencedRelation: "content_items";
1609
+ referencedColumns: ["id"];
1610
+ },
1611
+ {
1612
+ foreignKeyName: "content_distributions_organization_id_fkey";
1613
+ columns: ["organization_id"];
1614
+ isOneToOne: false;
1615
+ referencedRelation: "organizations";
1616
+ referencedColumns: ["id"];
1617
+ }
1618
+ ];
1619
+ };
1620
+ content_item_attempts: {
1621
+ Row: {
1622
+ attempt_number: number;
1623
+ content_item_id: string;
1624
+ created_at: string;
1625
+ created_by: string | null;
1626
+ id: string;
1384
1627
  organization_id: string;
1628
+ payload: Json;
1629
+ source_execution_id: string | null;
1630
+ step_key: string | null;
1385
1631
  };
1386
1632
  Insert: {
1387
- created_at?: string | null;
1633
+ attempt_number: number;
1634
+ content_item_id: string;
1635
+ created_at?: string;
1636
+ created_by?: string | null;
1388
1637
  id?: string;
1389
- key_hash: string;
1390
- last_used_at?: string | null;
1391
- name: string;
1392
1638
  organization_id: string;
1639
+ payload?: Json;
1640
+ source_execution_id?: string | null;
1641
+ step_key?: string | null;
1393
1642
  };
1394
1643
  Update: {
1395
- created_at?: string | null;
1644
+ attempt_number?: number;
1645
+ content_item_id?: string;
1646
+ created_at?: string;
1647
+ created_by?: string | null;
1396
1648
  id?: string;
1397
- key_hash?: string;
1398
- last_used_at?: string | null;
1399
- name?: string;
1400
1649
  organization_id?: string;
1650
+ payload?: Json;
1651
+ source_execution_id?: string | null;
1652
+ step_key?: string | null;
1401
1653
  };
1402
1654
  Relationships: [
1403
1655
  {
1404
- foreignKeyName: "api_keys_organization_id_fkey";
1656
+ foreignKeyName: "content_item_attempts_content_item_id_fkey";
1657
+ columns: ["content_item_id"];
1658
+ isOneToOne: false;
1659
+ referencedRelation: "content_items";
1660
+ referencedColumns: ["id"];
1661
+ },
1662
+ {
1663
+ foreignKeyName: "content_item_attempts_created_by_fkey";
1664
+ columns: ["created_by"];
1665
+ isOneToOne: false;
1666
+ referencedRelation: "users";
1667
+ referencedColumns: ["id"];
1668
+ },
1669
+ {
1670
+ foreignKeyName: "content_item_attempts_organization_id_fkey";
1405
1671
  columns: ["organization_id"];
1406
1672
  isOneToOne: false;
1407
1673
  referencedRelation: "organizations";
1408
1674
  referencedColumns: ["id"];
1675
+ },
1676
+ {
1677
+ foreignKeyName: "content_item_attempts_source_execution_id_fkey";
1678
+ columns: ["source_execution_id"];
1679
+ isOneToOne: false;
1680
+ referencedRelation: "execution_logs";
1681
+ referencedColumns: ["execution_id"];
1409
1682
  }
1410
1683
  ];
1411
1684
  };
1412
- clients: {
1685
+ content_items: {
1413
1686
  Row: {
1414
- converted_at: string | null;
1687
+ body: string | null;
1688
+ client_id: string | null;
1415
1689
  created_at: string;
1690
+ created_by: string | null;
1416
1691
  id: string;
1417
- metadata: Json;
1418
- name: string;
1419
1692
  organization_id: string;
1420
- primary_company_id: string | null;
1421
- primary_contact_id: string | null;
1422
- source: string;
1423
- source_deal_id: string | null;
1693
+ payload: Json;
1694
+ pillar: string | null;
1695
+ pipeline_id: string | null;
1696
+ processing_state: Json;
1697
+ reject_reason: string | null;
1698
+ reviewed_at: string | null;
1699
+ reviewed_by: string | null;
1700
+ reviewer_feedback: string | null;
1701
+ source_asset_id: string | null;
1424
1702
  status: string;
1703
+ title: string;
1425
1704
  updated_at: string;
1705
+ updated_by: string | null;
1426
1706
  };
1427
1707
  Insert: {
1428
- converted_at?: string | null;
1708
+ body?: string | null;
1709
+ client_id?: string | null;
1429
1710
  created_at?: string;
1711
+ created_by?: string | null;
1430
1712
  id?: string;
1431
- metadata?: Json;
1432
- name: string;
1433
1713
  organization_id: string;
1434
- primary_company_id?: string | null;
1435
- primary_contact_id?: string | null;
1436
- source?: string;
1437
- source_deal_id?: string | null;
1714
+ payload?: Json;
1715
+ pillar?: string | null;
1716
+ pipeline_id?: string | null;
1717
+ processing_state?: Json;
1718
+ reject_reason?: string | null;
1719
+ reviewed_at?: string | null;
1720
+ reviewed_by?: string | null;
1721
+ reviewer_feedback?: string | null;
1722
+ source_asset_id?: string | null;
1438
1723
  status?: string;
1724
+ title: string;
1439
1725
  updated_at?: string;
1726
+ updated_by?: string | null;
1440
1727
  };
1441
1728
  Update: {
1442
- converted_at?: string | null;
1729
+ body?: string | null;
1730
+ client_id?: string | null;
1443
1731
  created_at?: string;
1732
+ created_by?: string | null;
1444
1733
  id?: string;
1445
- metadata?: Json;
1446
- name?: string;
1447
1734
  organization_id?: string;
1448
- primary_company_id?: string | null;
1449
- primary_contact_id?: string | null;
1450
- source?: string;
1451
- source_deal_id?: string | null;
1735
+ payload?: Json;
1736
+ pillar?: string | null;
1737
+ pipeline_id?: string | null;
1738
+ processing_state?: Json;
1739
+ reject_reason?: string | null;
1740
+ reviewed_at?: string | null;
1741
+ reviewed_by?: string | null;
1742
+ reviewer_feedback?: string | null;
1743
+ source_asset_id?: string | null;
1452
1744
  status?: string;
1745
+ title?: string;
1453
1746
  updated_at?: string;
1747
+ updated_by?: string | null;
1454
1748
  };
1455
1749
  Relationships: [
1456
1750
  {
1457
- foreignKeyName: "clients_organization_id_fkey";
1751
+ foreignKeyName: "content_items_client_id_fkey";
1752
+ columns: ["client_id"];
1753
+ isOneToOne: false;
1754
+ referencedRelation: "clients";
1755
+ referencedColumns: ["id"];
1756
+ },
1757
+ {
1758
+ foreignKeyName: "content_items_created_by_fkey";
1759
+ columns: ["created_by"];
1760
+ isOneToOne: false;
1761
+ referencedRelation: "users";
1762
+ referencedColumns: ["id"];
1763
+ },
1764
+ {
1765
+ foreignKeyName: "content_items_organization_id_fkey";
1458
1766
  columns: ["organization_id"];
1459
1767
  isOneToOne: false;
1460
1768
  referencedRelation: "organizations";
1461
1769
  referencedColumns: ["id"];
1462
1770
  },
1463
1771
  {
1464
- foreignKeyName: "clients_primary_company_id_fkey";
1465
- columns: ["primary_company_id"];
1772
+ foreignKeyName: "content_items_reviewed_by_fkey";
1773
+ columns: ["reviewed_by"];
1466
1774
  isOneToOne: false;
1467
- referencedRelation: "acq_companies";
1775
+ referencedRelation: "users";
1468
1776
  referencedColumns: ["id"];
1469
1777
  },
1470
1778
  {
1471
- foreignKeyName: "clients_primary_contact_id_fkey";
1472
- columns: ["primary_contact_id"];
1779
+ foreignKeyName: "content_items_source_asset_id_fkey";
1780
+ columns: ["source_asset_id"];
1473
1781
  isOneToOne: false;
1474
- referencedRelation: "acq_contacts";
1782
+ referencedRelation: "content_source_assets";
1475
1783
  referencedColumns: ["id"];
1476
1784
  },
1477
1785
  {
1478
- foreignKeyName: "clients_source_deal_id_fkey";
1479
- columns: ["source_deal_id"];
1786
+ foreignKeyName: "content_items_updated_by_fkey";
1787
+ columns: ["updated_by"];
1480
1788
  isOneToOne: false;
1481
- referencedRelation: "acq_deals";
1789
+ referencedRelation: "users";
1482
1790
  referencedColumns: ["id"];
1483
1791
  }
1484
1792
  ];
1485
1793
  };
1486
- command_queue: {
1794
+ content_source_assets: {
1487
1795
  Row: {
1488
- action_payload: Json | null;
1489
- actions: Json;
1490
- completed_at: string | null;
1491
- completed_by: string | null;
1492
- context: Json;
1493
1796
  created_at: string;
1494
- description: string | null;
1495
- expires_at: string | null;
1496
- human_checkpoint: string | null;
1797
+ duration_seconds: number | null;
1798
+ external_url: string | null;
1497
1799
  id: string;
1498
- idempotency_key: string | null;
1499
- metadata: Json | null;
1800
+ kind: string;
1801
+ metadata: Json;
1500
1802
  organization_id: string;
1501
- origin_execution_id: string;
1502
- origin_resource_id: string;
1503
- origin_resource_type: string;
1504
- priority: number;
1505
- selected_action: string | null;
1506
- status: string;
1507
- target_execution_id: string | null;
1508
- target_resource_id: string | null;
1509
- target_resource_type: string | null;
1803
+ processing_state: Json;
1804
+ storage_path: string | null;
1805
+ title: string;
1806
+ updated_at: string;
1510
1807
  };
1511
1808
  Insert: {
1512
- action_payload?: Json | null;
1513
- actions: Json;
1514
- completed_at?: string | null;
1515
- completed_by?: string | null;
1516
- context: Json;
1517
1809
  created_at?: string;
1518
- description?: string | null;
1519
- expires_at?: string | null;
1520
- human_checkpoint?: string | null;
1810
+ duration_seconds?: number | null;
1811
+ external_url?: string | null;
1521
1812
  id?: string;
1522
- idempotency_key?: string | null;
1523
- metadata?: Json | null;
1813
+ kind: string;
1814
+ metadata?: Json;
1524
1815
  organization_id: string;
1525
- origin_execution_id: string;
1526
- origin_resource_id: string;
1527
- origin_resource_type: string;
1528
- priority?: number;
1529
- selected_action?: string | null;
1530
- status?: string;
1531
- target_execution_id?: string | null;
1532
- target_resource_id?: string | null;
1533
- target_resource_type?: string | null;
1816
+ processing_state?: Json;
1817
+ storage_path?: string | null;
1818
+ title: string;
1819
+ updated_at?: string;
1534
1820
  };
1535
1821
  Update: {
1536
- action_payload?: Json | null;
1537
- actions?: Json;
1538
- completed_at?: string | null;
1539
- completed_by?: string | null;
1540
- context?: Json;
1541
1822
  created_at?: string;
1542
- description?: string | null;
1543
- expires_at?: string | null;
1544
- human_checkpoint?: string | null;
1823
+ duration_seconds?: number | null;
1824
+ external_url?: string | null;
1545
1825
  id?: string;
1546
- idempotency_key?: string | null;
1547
- metadata?: Json | null;
1826
+ kind?: string;
1827
+ metadata?: Json;
1548
1828
  organization_id?: string;
1549
- origin_execution_id?: string;
1550
- origin_resource_id?: string;
1551
- origin_resource_type?: string;
1552
- priority?: number;
1553
- selected_action?: string | null;
1554
- status?: string;
1555
- target_execution_id?: string | null;
1556
- target_resource_id?: string | null;
1557
- target_resource_type?: string | null;
1829
+ processing_state?: Json;
1830
+ storage_path?: string | null;
1831
+ title?: string;
1832
+ updated_at?: string;
1558
1833
  };
1559
1834
  Relationships: [
1560
1835
  {
1561
- foreignKeyName: "command_queue_completed_by_fkey";
1562
- columns: ["completed_by"];
1563
- isOneToOne: false;
1564
- referencedRelation: "users";
1565
- referencedColumns: ["id"];
1566
- },
1567
- {
1568
- foreignKeyName: "command_queue_organization_id_fkey";
1836
+ foreignKeyName: "content_source_assets_organization_id_fkey";
1569
1837
  columns: ["organization_id"];
1570
1838
  isOneToOne: false;
1571
1839
  referencedRelation: "organizations";
1572
1840
  referencedColumns: ["id"];
1573
- },
1574
- {
1575
- foreignKeyName: "command_queue_target_execution_id_fkey";
1576
- columns: ["target_execution_id"];
1577
- isOneToOne: false;
1578
- referencedRelation: "execution_logs";
1579
- referencedColumns: ["execution_id"];
1580
1841
  }
1581
1842
  ];
1582
1843
  };
@@ -3196,6 +3457,33 @@ type Database = {
3196
3457
  };
3197
3458
  Returns: boolean;
3198
3459
  };
3460
+ create_artifact_version: {
3461
+ Args: {
3462
+ p_content: Json;
3463
+ p_created_by?: string;
3464
+ p_kind: string;
3465
+ p_organization_id: string;
3466
+ p_owner_id?: string;
3467
+ p_owner_kind: string;
3468
+ p_pipeline_id?: string;
3469
+ p_source_execution_id?: string;
3470
+ };
3471
+ Returns: {
3472
+ content: Json;
3473
+ created_at: string;
3474
+ created_by: string | null;
3475
+ id: string;
3476
+ is_active: boolean;
3477
+ kind: string;
3478
+ organization_id: string;
3479
+ owner_id: string | null;
3480
+ owner_kind: string;
3481
+ pipeline_id: string | null;
3482
+ source_execution_id: string | null;
3483
+ updated_at: string;
3484
+ version: number;
3485
+ };
3486
+ };
3199
3487
  current_user_is_platform_admin: {
3200
3488
  Args: Record<PropertyKey, never>;
3201
3489
  Returns: boolean;
@@ -3210,10 +3498,6 @@ type Database = {
3210
3498
  Args: Record<PropertyKey, never>;
3211
3499
  Returns: string;
3212
3500
  };
3213
- detect_stalled_executions: {
3214
- Args: Record<PropertyKey, never>;
3215
- Returns: undefined;
3216
- };
3217
3501
  execute_session_turn: {
3218
3502
  Args: {
3219
3503
  p_session_id: string;
@@ -3306,6 +3590,12 @@ type Database = {
3306
3590
  Args: Record<PropertyKey, never>;
3307
3591
  Returns: Json;
3308
3592
  };
3593
+ purge_stale_test_data: {
3594
+ Args: {
3595
+ p_max_age?: unknown;
3596
+ };
3597
+ Returns: Json;
3598
+ };
3309
3599
  recompute_all_memberships: {
3310
3600
  Args: Record<PropertyKey, never>;
3311
3601
  Returns: undefined;
@@ -3612,8 +3902,7 @@ declare const SystemApiInterfaceSchema: z$1.ZodObject<{
3612
3902
  resourceIds: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
3613
3903
  readinessContract: z$1.ZodOptional<z$1.ZodObject<{
3614
3904
  requiredObjects: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3615
- requiredCatalogs: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
3616
- requiredKinds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3905
+ requiredCatalogs: z$1.ZodArray<z$1.ZodString>;
3617
3906
  }, z$1.core.$strict>>;
3618
3907
  }, z$1.core.$strict>;
3619
3908
  type JsonPrimitive = string | number | boolean | null;
@@ -3632,7 +3921,6 @@ interface SystemEntry {
3632
3921
  path: string;
3633
3922
  surfaces: string[];
3634
3923
  icon?: string;
3635
- order?: number;
3636
3924
  };
3637
3925
  lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
3638
3926
  responsibleRoleId?: string;
@@ -3642,17 +3930,12 @@ interface SystemEntry {
3642
3930
  intent: 'exposes' | 'consumes';
3643
3931
  invocation?: unknown;
3644
3932
  }[];
3645
- policies?: string[];
3646
3933
  drivesGoals?: string[];
3647
3934
  apiInterface?: z$1.infer<typeof SystemApiInterfaceSchema>;
3648
- /** @deprecated Use lifecycle. Accepted for one publish cycle. */
3649
- status?: 'active' | 'deprecated' | 'archived';
3650
3935
  path?: string;
3651
3936
  icon?: string;
3652
3937
  uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
3653
3938
  enabled?: boolean;
3654
- devOnly?: boolean;
3655
- requiresAdmin?: boolean;
3656
3939
  order: number;
3657
3940
  config?: Record<string, JsonValue>;
3658
3941
  ontology?: OntologyScope;
@@ -3752,10 +4035,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3752
4035
  version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3753
4036
  lastModified: z$1.ZodString;
3754
4037
  }, z$1.core.$strip>>;
3755
- policies: z$1.ZodOptional<z$1.ZodObject<{
3756
- version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3757
- lastModified: z$1.ZodString;
3758
- }, z$1.core.$strip>>;
3759
4038
  knowledge: z$1.ZodOptional<z$1.ZodObject<{
3760
4039
  version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
3761
4040
  lastModified: z$1.ZodString;
@@ -3813,10 +4092,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3813
4092
  version: 1;
3814
4093
  lastModified: string;
3815
4094
  };
3816
- policies: {
3817
- version: 1;
3818
- lastModified: string;
3819
- };
3820
4095
  knowledge: {
3821
4096
  version: 1;
3822
4097
  lastModified: string;
@@ -3874,10 +4149,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
3874
4149
  version: 1;
3875
4150
  lastModified: string;
3876
4151
  } | undefined;
3877
- policies?: {
3878
- version: 1;
3879
- lastModified: string;
3880
- } | undefined;
3881
4152
  knowledge?: {
3882
4153
  version: 1;
3883
4154
  lastModified: string;
@@ -4471,9 +4742,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4471
4742
  }, z$1.core.$strip>, z$1.ZodObject<{
4472
4743
  kind: z$1.ZodLiteral<"ontology">;
4473
4744
  id: z$1.ZodString;
4474
- }, z$1.core.$strip>, z$1.ZodObject<{
4475
- kind: z$1.ZodLiteral<"policy">;
4476
- id: z$1.ZodString;
4477
4745
  }, z$1.core.$strip>, z$1.ZodObject<{
4478
4746
  kind: z$1.ZodLiteral<"role">;
4479
4747
  id: z$1.ZodString;
@@ -4501,9 +4769,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4501
4769
  }, z$1.core.$strip>, z$1.ZodObject<{
4502
4770
  kind: z$1.ZodLiteral<"ontology">;
4503
4771
  id: z$1.ZodString;
4504
- }, z$1.core.$strip>, z$1.ZodObject<{
4505
- kind: z$1.ZodLiteral<"policy">;
4506
- id: z$1.ZodString;
4507
4772
  }, z$1.core.$strip>, z$1.ZodObject<{
4508
4773
  kind: z$1.ZodLiteral<"role">;
4509
4774
  id: z$1.ZodString;
@@ -4585,66 +4850,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
4585
4850
  label: z$1.ZodOptional<z$1.ZodString>;
4586
4851
  }, z$1.core.$strip>>>;
4587
4852
  }, z$1.core.$strip>>>>;
4588
- policies: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4589
- id: z$1.ZodString;
4590
- order: z$1.ZodNumber;
4591
- label: z$1.ZodString;
4592
- description: z$1.ZodOptional<z$1.ZodString>;
4593
- trigger: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4594
- kind: z$1.ZodLiteral<"event">;
4595
- eventId: z$1.ZodString;
4596
- }, z$1.core.$strip>, z$1.ZodObject<{
4597
- kind: z$1.ZodLiteral<"action-invocation">;
4598
- actionId: z$1.ZodString;
4599
- }, z$1.core.$strip>, z$1.ZodObject<{
4600
- kind: z$1.ZodLiteral<"schedule">;
4601
- cron: z$1.ZodString;
4602
- }, z$1.core.$strip>, z$1.ZodObject<{
4603
- kind: z$1.ZodLiteral<"manual">;
4604
- }, z$1.core.$strip>], "kind">;
4605
- predicate: z$1.ZodDefault<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4606
- kind: z$1.ZodLiteral<"always">;
4607
- }, z$1.core.$strip>, z$1.ZodObject<{
4608
- kind: z$1.ZodLiteral<"expression">;
4609
- expression: z$1.ZodString;
4610
- }, z$1.core.$strip>, z$1.ZodObject<{
4611
- kind: z$1.ZodLiteral<"threshold">;
4612
- metric: z$1.ZodString;
4613
- operator: z$1.ZodEnum<{
4614
- lt: "lt";
4615
- lte: "lte";
4616
- eq: "eq";
4617
- gte: "gte";
4618
- gt: "gt";
4619
- }>;
4620
- value: z$1.ZodNumber;
4621
- }, z$1.core.$strip>], "kind">>;
4622
- actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4623
- kind: z$1.ZodLiteral<"require-approval">;
4624
- roleId: z$1.ZodOptional<z$1.ZodString>;
4625
- }, z$1.core.$strip>, z$1.ZodObject<{
4626
- kind: z$1.ZodLiteral<"invoke-action">;
4627
- actionId: z$1.ZodString;
4628
- }, z$1.core.$strip>, z$1.ZodObject<{
4629
- kind: z$1.ZodLiteral<"notify-role">;
4630
- roleId: z$1.ZodString;
4631
- }, z$1.core.$strip>, z$1.ZodObject<{
4632
- kind: z$1.ZodLiteral<"block">;
4633
- }, z$1.core.$strip>], "kind">>;
4634
- appliesTo: z$1.ZodDefault<z$1.ZodObject<{
4635
- systemIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4636
- actionIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4637
- resourceIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4638
- roleIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
4639
- }, z$1.core.$strip>>;
4640
- lifecycle: z$1.ZodDefault<z$1.ZodEnum<{
4641
- active: "active";
4642
- deprecated: "deprecated";
4643
- draft: "draft";
4644
- beta: "beta";
4645
- archived: "archived";
4646
- }>>;
4647
- }, z$1.core.$strip>>>>;
4648
4853
  knowledge: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
4649
4854
  id: z$1.ZodString;
4650
4855
  kind: z$1.ZodEnum<{
@@ -5133,7 +5338,6 @@ interface ResolvedShellModel {
5133
5338
  ancestorsOf: (id: string) => ResolvedShellSystem[];
5134
5339
  parentOf: (id: string) => ResolvedShellSystem | undefined;
5135
5340
  topLevel: () => ResolvedShellSystem[];
5136
- requiresAdminFor: (id: string) => boolean;
5137
5341
  devOnlyFor: (id: string) => boolean;
5138
5342
  }
5139
5343
  interface ShellSidebarLinkItem {