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