@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
@@ -78,6 +78,7 @@ declare const PERMISSIONS: {
78
78
  readonly ACQUISITION_MANAGE: "acquisition.manage";
79
79
  readonly PROJECTS_MANAGE: "projects.manage";
80
80
  readonly CLIENTS_MANAGE: "clients.manage";
81
+ readonly CONTENT_MANAGE: "content.manage";
81
82
  };
82
83
  type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
83
84
  /**
@@ -166,9 +167,15 @@ interface ListMembershipsResponse {
166
167
  * - `linked` — an `org_memberships` row that carries a `workos_membership_id`
167
168
  * - `pre_provisioned` — an `org_memberships` row with no `workos_membership_id`;
168
169
  * the invitee was provisioned but has not completed signup
170
+ * - `accepted_unlinked` — an `org_memberships` row with no `workos_membership_id`
171
+ * for which WorkOS nonetheless holds a live membership, matched by user and
172
+ * organization. The person has real access; only our record of the link is
173
+ * missing. Distinct from `pre_provisioned` because the column both states read
174
+ * as NULL is precisely the one that cannot tell them apart -- see
175
+ * `recoverUnlinkedWorkOSMembership` in the API's membership service.
169
176
  * - `workos_only` — a WorkOS membership with no `org_memberships` row (a sync gap)
170
177
  */
171
- type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'workos_only';
178
+ type MembershipProvisioningState = 'linked' | 'pre_provisioned' | 'accepted_unlinked' | 'workos_only';
172
179
  /**
173
180
  * Extended membership with user and organization details for UI
174
181
  *
@@ -229,53 +236,6 @@ type Json = string | number | boolean | null | {
229
236
  type Database = {
230
237
  public: {
231
238
  Tables: {
232
- acq_artifacts: {
233
- Row: {
234
- content: Json;
235
- created_at: string;
236
- created_by: string | null;
237
- id: string;
238
- kind: string;
239
- organization_id: string;
240
- owner_id: string;
241
- owner_kind: string;
242
- source_execution_id: string | null;
243
- version: number;
244
- };
245
- Insert: {
246
- content: Json;
247
- created_at?: string;
248
- created_by?: string | null;
249
- id?: string;
250
- kind: string;
251
- organization_id: string;
252
- owner_id: string;
253
- owner_kind: string;
254
- source_execution_id?: string | null;
255
- version?: number;
256
- };
257
- Update: {
258
- content?: Json;
259
- created_at?: string;
260
- created_by?: string | null;
261
- id?: string;
262
- kind?: string;
263
- organization_id?: string;
264
- owner_id?: string;
265
- owner_kind?: string;
266
- source_execution_id?: string | null;
267
- version?: number;
268
- };
269
- Relationships: [
270
- {
271
- foreignKeyName: "acq_artifacts_organization_id_fkey";
272
- columns: ["organization_id"];
273
- isOneToOne: false;
274
- referencedRelation: "organizations";
275
- referencedColumns: ["id"];
276
- }
277
- ];
278
- };
279
239
  acq_companies: {
280
240
  Row: {
281
241
  batch_id: string | null;
@@ -487,122 +447,6 @@ type Database = {
487
447
  }
488
448
  ];
489
449
  };
490
- acq_content: {
491
- Row: {
492
- body: string | null;
493
- created_at: string;
494
- id: string;
495
- organization_id: string;
496
- pillar: string;
497
- status: string;
498
- title: string;
499
- updated_at: string;
500
- };
501
- Insert: {
502
- body?: string | null;
503
- created_at?: string;
504
- id?: string;
505
- organization_id: string;
506
- pillar: string;
507
- status?: string;
508
- title: string;
509
- updated_at?: string;
510
- };
511
- Update: {
512
- body?: string | null;
513
- created_at?: string;
514
- id?: string;
515
- organization_id?: string;
516
- pillar?: string;
517
- status?: string;
518
- title?: string;
519
- updated_at?: string;
520
- };
521
- Relationships: [
522
- {
523
- foreignKeyName: "acq_content_organization_id_fkey";
524
- columns: ["organization_id"];
525
- isOneToOne: false;
526
- referencedRelation: "organizations";
527
- referencedColumns: ["id"];
528
- }
529
- ];
530
- };
531
- acq_content_distributions: {
532
- Row: {
533
- adapted_body: string | null;
534
- checklist: Json | null;
535
- content_id: string;
536
- created_at: string;
537
- format: string;
538
- id: string;
539
- media_urls: Json;
540
- metrics: Json;
541
- metrics_updated_at: string | null;
542
- organization_id: string;
543
- platform: string;
544
- platform_content: Json | null;
545
- platform_post_id: string | null;
546
- platform_url: string | null;
547
- published_at: string | null;
548
- status: string;
549
- updated_at: string;
550
- };
551
- Insert: {
552
- adapted_body?: string | null;
553
- checklist?: Json | null;
554
- content_id: string;
555
- created_at?: string;
556
- format: string;
557
- id?: string;
558
- media_urls?: Json;
559
- metrics?: Json;
560
- metrics_updated_at?: string | null;
561
- organization_id: string;
562
- platform: string;
563
- platform_content?: Json | null;
564
- platform_post_id?: string | null;
565
- platform_url?: string | null;
566
- published_at?: string | null;
567
- status?: string;
568
- updated_at?: string;
569
- };
570
- Update: {
571
- adapted_body?: string | null;
572
- checklist?: Json | null;
573
- content_id?: string;
574
- created_at?: string;
575
- format?: string;
576
- id?: string;
577
- media_urls?: Json;
578
- metrics?: Json;
579
- metrics_updated_at?: string | null;
580
- organization_id?: string;
581
- platform?: string;
582
- platform_content?: Json | null;
583
- platform_post_id?: string | null;
584
- platform_url?: string | null;
585
- published_at?: string | null;
586
- status?: string;
587
- updated_at?: string;
588
- };
589
- Relationships: [
590
- {
591
- foreignKeyName: "acq_content_distributions_content_id_fkey";
592
- columns: ["content_id"];
593
- isOneToOne: false;
594
- referencedRelation: "acq_content";
595
- referencedColumns: ["id"];
596
- },
597
- {
598
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
599
- columns: ["organization_id"];
600
- isOneToOne: false;
601
- referencedRelation: "organizations";
602
- referencedColumns: ["id"];
603
- }
604
- ];
605
- };
606
450
  acq_deal_notes: {
607
451
  Row: {
608
452
  author_user_id: string | null;
@@ -632,6 +476,13 @@ type Database = {
632
476
  updated_at?: string;
633
477
  };
634
478
  Relationships: [
479
+ {
480
+ foreignKeyName: "acq_deal_notes_author_user_id_fkey";
481
+ columns: ["author_user_id"];
482
+ isOneToOne: false;
483
+ referencedRelation: "users";
484
+ referencedColumns: ["id"];
485
+ },
635
486
  {
636
487
  foreignKeyName: "acq_deal_notes_deal_id_fkey";
637
488
  columns: ["deal_id"];
@@ -695,6 +546,27 @@ type Database = {
695
546
  updated_at?: string;
696
547
  };
697
548
  Relationships: [
549
+ {
550
+ foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
551
+ columns: ["assignee_user_id"];
552
+ isOneToOne: false;
553
+ referencedRelation: "users";
554
+ referencedColumns: ["id"];
555
+ },
556
+ {
557
+ foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
558
+ columns: ["completed_by_user_id"];
559
+ isOneToOne: false;
560
+ referencedRelation: "users";
561
+ referencedColumns: ["id"];
562
+ },
563
+ {
564
+ foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
565
+ columns: ["created_by_user_id"];
566
+ isOneToOne: false;
567
+ referencedRelation: "users";
568
+ referencedColumns: ["id"];
569
+ },
698
570
  {
699
571
  foreignKeyName: "acq_deal_tasks_deal_id_fkey";
700
572
  columns: ["deal_id"];
@@ -851,6 +723,13 @@ type Database = {
851
723
  referencedRelation: "acq_contacts";
852
724
  referencedColumns: ["id"];
853
725
  },
726
+ {
727
+ foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
728
+ columns: ["discovery_submitted_by"];
729
+ isOneToOne: false;
730
+ referencedRelation: "users";
731
+ referencedColumns: ["id"];
732
+ },
854
733
  {
855
734
  foreignKeyName: "acq_deals_organization_id_fkey";
856
735
  columns: ["organization_id"];
@@ -858,6 +737,13 @@ type Database = {
858
737
  referencedRelation: "organizations";
859
738
  referencedColumns: ["id"];
860
739
  },
740
+ {
741
+ foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
742
+ columns: ["proposal_reviewed_by"];
743
+ isOneToOne: false;
744
+ referencedRelation: "users";
745
+ referencedColumns: ["id"];
746
+ },
861
747
  {
862
748
  foreignKeyName: "acq_deals_source_list_id_fkey";
863
749
  columns: ["source_list_id"];
@@ -911,6 +797,13 @@ type Database = {
911
797
  state_key?: string;
912
798
  };
913
799
  Relationships: [
800
+ {
801
+ foreignKeyName: "acq_list_companies_added_by_fkey";
802
+ columns: ["added_by"];
803
+ isOneToOne: false;
804
+ referencedRelation: "users";
805
+ referencedColumns: ["id"];
806
+ },
914
807
  {
915
808
  foreignKeyName: "acq_list_companies_company_id_fkey";
916
809
  columns: ["company_id"];
@@ -1017,6 +910,13 @@ type Database = {
1017
910
  state_key?: string;
1018
911
  };
1019
912
  Relationships: [
913
+ {
914
+ foreignKeyName: "acq_list_members_added_by_fkey";
915
+ columns: ["added_by"];
916
+ isOneToOne: false;
917
+ referencedRelation: "users";
918
+ referencedColumns: ["id"];
919
+ },
1020
920
  {
1021
921
  foreignKeyName: "acq_list_members_contact_id_fkey";
1022
922
  columns: ["contact_id"];
@@ -1417,6 +1317,13 @@ type Database = {
1417
1317
  title?: string;
1418
1318
  };
1419
1319
  Relationships: [
1320
+ {
1321
+ foreignKeyName: "activities_actor_id_fkey";
1322
+ columns: ["actor_id"];
1323
+ isOneToOne: false;
1324
+ referencedRelation: "users";
1325
+ referencedColumns: ["id"];
1326
+ },
1420
1327
  {
1421
1328
  foreignKeyName: "activities_organization_id_fkey";
1422
1329
  columns: ["organization_id"];
@@ -1529,6 +1436,62 @@ type Database = {
1529
1436
  }
1530
1437
  ];
1531
1438
  };
1439
+ artifacts: {
1440
+ Row: {
1441
+ content: Json;
1442
+ created_at: string;
1443
+ created_by: string | null;
1444
+ id: string;
1445
+ is_active: boolean;
1446
+ kind: string;
1447
+ organization_id: string;
1448
+ owner_id: string | null;
1449
+ owner_kind: string;
1450
+ pipeline_id: string | null;
1451
+ source_execution_id: string | null;
1452
+ updated_at: string;
1453
+ version: number;
1454
+ };
1455
+ Insert: {
1456
+ content: Json;
1457
+ created_at?: string;
1458
+ created_by?: string | null;
1459
+ id?: string;
1460
+ is_active?: boolean;
1461
+ kind: string;
1462
+ organization_id: string;
1463
+ owner_id?: string | null;
1464
+ owner_kind: string;
1465
+ pipeline_id?: string | null;
1466
+ source_execution_id?: string | null;
1467
+ updated_at?: string;
1468
+ version?: number;
1469
+ };
1470
+ Update: {
1471
+ content?: Json;
1472
+ created_at?: string;
1473
+ created_by?: string | null;
1474
+ id?: string;
1475
+ is_active?: boolean;
1476
+ kind?: string;
1477
+ organization_id?: string;
1478
+ owner_id?: string | null;
1479
+ owner_kind?: string;
1480
+ pipeline_id?: string | null;
1481
+ source_execution_id?: string | null;
1482
+ updated_at?: string;
1483
+ version?: number;
1484
+ };
1485
+ Relationships: [
1486
+ {
1487
+ foreignKeyName: "artifacts_organization_id_fkey";
1488
+ columns: ["organization_id"];
1489
+ isOneToOne: false;
1490
+ referencedRelation: "organizations";
1491
+ referencedColumns: ["id"];
1492
+ }
1493
+ ];
1494
+ };
1532
1495
  clients: {
1533
1496
  Row: {
1534
1497
  converted_at: string | null;
@@ -1700,6 +1663,311 @@ type Database = {
1700
1663
  }
1701
1664
  ];
1702
1665
  };
1666
+ content_distributions: {
1667
+ Row: {
1668
+ adapted_body: string | null;
1669
+ checklist: Json | null;
1670
+ content_item_id: string;
1671
+ created_at: string;
1672
+ format: string;
1673
+ id: string;
1674
+ media_urls: Json;
1675
+ metrics: Json;
1676
+ metrics_updated_at: string | null;
1677
+ organization_id: string;
1678
+ platform: string;
1679
+ platform_content: Json | null;
1680
+ platform_post_id: string | null;
1681
+ platform_url: string | null;
1682
+ processing_state: Json;
1683
+ publish_method: string | null;
1684
+ published_at: string | null;
1685
+ status: string;
1686
+ updated_at: string;
1687
+ };
1688
+ Insert: {
1689
+ adapted_body?: string | null;
1690
+ checklist?: Json | null;
1691
+ content_item_id: string;
1692
+ created_at?: string;
1693
+ format: string;
1694
+ id?: string;
1695
+ media_urls?: Json;
1696
+ metrics?: Json;
1697
+ metrics_updated_at?: string | null;
1698
+ organization_id: string;
1699
+ platform: string;
1700
+ platform_content?: Json | null;
1701
+ platform_post_id?: string | null;
1702
+ platform_url?: string | null;
1703
+ processing_state?: Json;
1704
+ publish_method?: string | null;
1705
+ published_at?: string | null;
1706
+ status?: string;
1707
+ updated_at?: string;
1708
+ };
1709
+ Update: {
1710
+ adapted_body?: string | null;
1711
+ checklist?: Json | null;
1712
+ content_item_id?: string;
1713
+ created_at?: string;
1714
+ format?: string;
1715
+ id?: string;
1716
+ media_urls?: Json;
1717
+ metrics?: Json;
1718
+ metrics_updated_at?: string | null;
1719
+ organization_id?: string;
1720
+ platform?: string;
1721
+ platform_content?: Json | null;
1722
+ platform_post_id?: string | null;
1723
+ platform_url?: string | null;
1724
+ processing_state?: Json;
1725
+ publish_method?: string | null;
1726
+ published_at?: string | null;
1727
+ status?: string;
1728
+ updated_at?: string;
1729
+ };
1730
+ Relationships: [
1731
+ {
1732
+ foreignKeyName: "content_distributions_content_item_id_fkey";
1733
+ columns: ["content_item_id"];
1734
+ isOneToOne: false;
1735
+ referencedRelation: "content_items";
1736
+ referencedColumns: ["id"];
1737
+ },
1738
+ {
1739
+ foreignKeyName: "content_distributions_organization_id_fkey";
1740
+ columns: ["organization_id"];
1741
+ isOneToOne: false;
1742
+ referencedRelation: "organizations";
1743
+ referencedColumns: ["id"];
1744
+ }
1745
+ ];
1746
+ };
1747
+ content_item_attempts: {
1748
+ Row: {
1749
+ attempt_number: number;
1750
+ content_item_id: string;
1751
+ created_at: string;
1752
+ created_by: string | null;
1753
+ id: string;
1754
+ organization_id: string;
1755
+ payload: Json;
1756
+ source_execution_id: string | null;
1757
+ step_key: string | null;
1758
+ };
1759
+ Insert: {
1760
+ attempt_number: number;
1761
+ content_item_id: string;
1762
+ created_at?: string;
1763
+ created_by?: string | null;
1764
+ id?: string;
1765
+ organization_id: string;
1766
+ payload?: Json;
1767
+ source_execution_id?: string | null;
1768
+ step_key?: string | null;
1769
+ };
1770
+ Update: {
1771
+ attempt_number?: number;
1772
+ content_item_id?: string;
1773
+ created_at?: string;
1774
+ created_by?: string | null;
1775
+ id?: string;
1776
+ organization_id?: string;
1777
+ payload?: Json;
1778
+ source_execution_id?: string | null;
1779
+ step_key?: string | null;
1780
+ };
1781
+ Relationships: [
1782
+ {
1783
+ foreignKeyName: "content_item_attempts_content_item_id_fkey";
1784
+ columns: ["content_item_id"];
1785
+ isOneToOne: false;
1786
+ referencedRelation: "content_items";
1787
+ referencedColumns: ["id"];
1788
+ },
1789
+ {
1790
+ foreignKeyName: "content_item_attempts_created_by_fkey";
1791
+ columns: ["created_by"];
1792
+ isOneToOne: false;
1793
+ referencedRelation: "users";
1794
+ referencedColumns: ["id"];
1795
+ },
1796
+ {
1797
+ foreignKeyName: "content_item_attempts_organization_id_fkey";
1798
+ columns: ["organization_id"];
1799
+ isOneToOne: false;
1800
+ referencedRelation: "organizations";
1801
+ referencedColumns: ["id"];
1802
+ },
1803
+ {
1804
+ foreignKeyName: "content_item_attempts_source_execution_id_fkey";
1805
+ columns: ["source_execution_id"];
1806
+ isOneToOne: false;
1807
+ referencedRelation: "execution_logs";
1808
+ referencedColumns: ["execution_id"];
1809
+ }
1810
+ ];
1811
+ };
1812
+ content_items: {
1813
+ Row: {
1814
+ body: string | null;
1815
+ client_id: string | null;
1816
+ created_at: string;
1817
+ created_by: string | null;
1818
+ id: string;
1819
+ organization_id: string;
1820
+ payload: Json;
1821
+ pillar: string | null;
1822
+ pipeline_id: string | null;
1823
+ processing_state: Json;
1824
+ reject_reason: string | null;
1825
+ reviewed_at: string | null;
1826
+ reviewed_by: string | null;
1827
+ reviewer_feedback: string | null;
1828
+ source_asset_id: string | null;
1829
+ status: string;
1830
+ title: string;
1831
+ updated_at: string;
1832
+ updated_by: string | null;
1833
+ };
1834
+ Insert: {
1835
+ body?: string | null;
1836
+ client_id?: string | null;
1837
+ created_at?: string;
1838
+ created_by?: string | null;
1839
+ id?: string;
1840
+ organization_id: string;
1841
+ payload?: Json;
1842
+ pillar?: string | null;
1843
+ pipeline_id?: string | null;
1844
+ processing_state?: Json;
1845
+ reject_reason?: string | null;
1846
+ reviewed_at?: string | null;
1847
+ reviewed_by?: string | null;
1848
+ reviewer_feedback?: string | null;
1849
+ source_asset_id?: string | null;
1850
+ status?: string;
1851
+ title: string;
1852
+ updated_at?: string;
1853
+ updated_by?: string | null;
1854
+ };
1855
+ Update: {
1856
+ body?: string | null;
1857
+ client_id?: string | null;
1858
+ created_at?: string;
1859
+ created_by?: string | null;
1860
+ id?: string;
1861
+ organization_id?: string;
1862
+ payload?: Json;
1863
+ pillar?: string | null;
1864
+ pipeline_id?: string | null;
1865
+ processing_state?: Json;
1866
+ reject_reason?: string | null;
1867
+ reviewed_at?: string | null;
1868
+ reviewed_by?: string | null;
1869
+ reviewer_feedback?: string | null;
1870
+ source_asset_id?: string | null;
1871
+ status?: string;
1872
+ title?: string;
1873
+ updated_at?: string;
1874
+ updated_by?: string | null;
1875
+ };
1876
+ Relationships: [
1877
+ {
1878
+ foreignKeyName: "content_items_client_id_fkey";
1879
+ columns: ["client_id"];
1880
+ isOneToOne: false;
1881
+ referencedRelation: "clients";
1882
+ referencedColumns: ["id"];
1883
+ },
1884
+ {
1885
+ foreignKeyName: "content_items_created_by_fkey";
1886
+ columns: ["created_by"];
1887
+ isOneToOne: false;
1888
+ referencedRelation: "users";
1889
+ referencedColumns: ["id"];
1890
+ },
1891
+ {
1892
+ foreignKeyName: "content_items_organization_id_fkey";
1893
+ columns: ["organization_id"];
1894
+ isOneToOne: false;
1895
+ referencedRelation: "organizations";
1896
+ referencedColumns: ["id"];
1897
+ },
1898
+ {
1899
+ foreignKeyName: "content_items_reviewed_by_fkey";
1900
+ columns: ["reviewed_by"];
1901
+ isOneToOne: false;
1902
+ referencedRelation: "users";
1903
+ referencedColumns: ["id"];
1904
+ },
1905
+ {
1906
+ foreignKeyName: "content_items_source_asset_id_fkey";
1907
+ columns: ["source_asset_id"];
1908
+ isOneToOne: false;
1909
+ referencedRelation: "content_source_assets";
1910
+ referencedColumns: ["id"];
1911
+ },
1912
+ {
1913
+ foreignKeyName: "content_items_updated_by_fkey";
1914
+ columns: ["updated_by"];
1915
+ isOneToOne: false;
1916
+ referencedRelation: "users";
1917
+ referencedColumns: ["id"];
1918
+ }
1919
+ ];
1920
+ };
1921
+ content_source_assets: {
1922
+ Row: {
1923
+ created_at: string;
1924
+ duration_seconds: number | null;
1925
+ external_url: string | null;
1926
+ id: string;
1927
+ kind: string;
1928
+ metadata: Json;
1929
+ organization_id: string;
1930
+ processing_state: Json;
1931
+ storage_path: string | null;
1932
+ title: string;
1933
+ updated_at: string;
1934
+ };
1935
+ Insert: {
1936
+ created_at?: string;
1937
+ duration_seconds?: number | null;
1938
+ external_url?: string | null;
1939
+ id?: string;
1940
+ kind: string;
1941
+ metadata?: Json;
1942
+ organization_id: string;
1943
+ processing_state?: Json;
1944
+ storage_path?: string | null;
1945
+ title: string;
1946
+ updated_at?: string;
1947
+ };
1948
+ Update: {
1949
+ created_at?: string;
1950
+ duration_seconds?: number | null;
1951
+ external_url?: string | null;
1952
+ id?: string;
1953
+ kind?: string;
1954
+ metadata?: Json;
1955
+ organization_id?: string;
1956
+ processing_state?: Json;
1957
+ storage_path?: string | null;
1958
+ title?: string;
1959
+ updated_at?: string;
1960
+ };
1961
+ Relationships: [
1962
+ {
1963
+ foreignKeyName: "content_source_assets_organization_id_fkey";
1964
+ columns: ["organization_id"];
1965
+ isOneToOne: false;
1966
+ referencedRelation: "organizations";
1967
+ referencedColumns: ["id"];
1968
+ }
1969
+ ];
1970
+ };
1703
1971
  credentials: {
1704
1972
  Row: {
1705
1973
  created_at: string;
@@ -3316,6 +3584,33 @@ type Database = {
3316
3584
  };
3317
3585
  Returns: boolean;
3318
3586
  };
3587
+ create_artifact_version: {
3588
+ Args: {
3589
+ p_content: Json;
3590
+ p_created_by?: string;
3591
+ p_kind: string;
3592
+ p_organization_id: string;
3593
+ p_owner_id?: string;
3594
+ p_owner_kind: string;
3595
+ p_pipeline_id?: string;
3596
+ p_source_execution_id?: string;
3597
+ };
3598
+ Returns: {
3599
+ content: Json;
3600
+ created_at: string;
3601
+ created_by: string | null;
3602
+ id: string;
3603
+ is_active: boolean;
3604
+ kind: string;
3605
+ organization_id: string;
3606
+ owner_id: string | null;
3607
+ owner_kind: string;
3608
+ pipeline_id: string | null;
3609
+ source_execution_id: string | null;
3610
+ updated_at: string;
3611
+ version: number;
3612
+ };
3613
+ };
3319
3614
  current_user_is_platform_admin: {
3320
3615
  Args: Record<PropertyKey, never>;
3321
3616
  Returns: boolean;
@@ -3330,10 +3625,6 @@ type Database = {
3330
3625
  Args: Record<PropertyKey, never>;
3331
3626
  Returns: string;
3332
3627
  };
3333
- detect_stalled_executions: {
3334
- Args: Record<PropertyKey, never>;
3335
- Returns: undefined;
3336
- };
3337
3628
  execute_session_turn: {
3338
3629
  Args: {
3339
3630
  p_session_id: string;
@@ -3426,6 +3717,12 @@ type Database = {
3426
3717
  Args: Record<PropertyKey, never>;
3427
3718
  Returns: Json;
3428
3719
  };
3720
+ purge_stale_test_data: {
3721
+ Args: {
3722
+ p_max_age?: unknown;
3723
+ };
3724
+ Returns: Json;
3725
+ };
3429
3726
  recompute_all_memberships: {
3430
3727
  Args: Record<PropertyKey, never>;
3431
3728
  Returns: undefined;
@@ -3602,8 +3899,7 @@ declare const SystemApiInterfaceSchema: z.ZodObject<{
3602
3899
  resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
3603
3900
  readinessContract: z.ZodOptional<z.ZodObject<{
3604
3901
  requiredObjects: z.ZodDefault<z.ZodArray<z.ZodString>>;
3605
- requiredCatalogs: z.ZodDefault<z.ZodArray<z.ZodString>>;
3606
- requiredKinds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3902
+ requiredCatalogs: z.ZodArray<z.ZodString>;
3607
3903
  }, z.core.$strict>>;
3608
3904
  }, z.core.$strict>;
3609
3905
  type JsonPrimitive = string | number | boolean | null;
@@ -3622,7 +3918,6 @@ interface SystemEntry {
3622
3918
  path: string;
3623
3919
  surfaces: string[];
3624
3920
  icon?: string;
3625
- order?: number;
3626
3921
  };
3627
3922
  lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
3628
3923
  responsibleRoleId?: string;
@@ -3632,23 +3927,53 @@ interface SystemEntry {
3632
3927
  intent: 'exposes' | 'consumes';
3633
3928
  invocation?: unknown;
3634
3929
  }[];
3635
- policies?: string[];
3636
3930
  drivesGoals?: string[];
3637
3931
  apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
3638
- /** @deprecated Use lifecycle. Accepted for one publish cycle. */
3639
- status?: 'active' | 'deprecated' | 'archived';
3640
3932
  path?: string;
3641
3933
  icon?: string;
3642
- uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
3643
- enabled?: boolean;
3934
+ uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
3935
+ enabled?: boolean;
3936
+ order: number;
3937
+ config?: Record<string, JsonValue>;
3938
+ ontology?: OntologyScope;
3939
+ systems?: Record<string, SystemEntry>;
3940
+ subsystems?: Record<string, SystemEntry>;
3941
+ }
3942
+
3943
+ declare const SurfaceTypeSchema: z.ZodEnum<{
3944
+ dashboard: "dashboard";
3945
+ settings: "settings";
3946
+ graph: "graph";
3947
+ page: "page";
3948
+ detail: "detail";
3949
+ list: "list";
3950
+ }>;
3951
+ interface SidebarSurfaceNode {
3952
+ type: 'surface';
3953
+ label: string;
3954
+ path: string;
3955
+ surfaceType: z.infer<typeof SurfaceTypeSchema>;
3956
+ description?: string;
3957
+ icon?: string;
3958
+ order?: number;
3959
+ targets?: {
3960
+ systems?: string[];
3961
+ entities?: string[];
3962
+ resources?: string[];
3963
+ actions?: string[];
3964
+ };
3644
3965
  devOnly?: boolean;
3645
3966
  requiresAdmin?: boolean;
3646
- order: number;
3647
- config?: Record<string, JsonValue>;
3648
- ontology?: OntologyScope;
3649
- systems?: Record<string, SystemEntry>;
3650
- subsystems?: Record<string, SystemEntry>;
3651
3967
  }
3968
+ interface SidebarGroupNode {
3969
+ type: 'group';
3970
+ label: string;
3971
+ description?: string;
3972
+ icon?: string;
3973
+ order?: number;
3974
+ children: Record<string, SidebarNode>;
3975
+ }
3976
+ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
3652
3977
 
3653
3978
  declare const ResourceGovernanceStatusSchema: z.ZodEnum<{
3654
3979
  active: "active";
@@ -4502,9 +4827,25 @@ declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
4502
4827
  company: "company";
4503
4828
  contact: "contact";
4504
4829
  list: "list";
4830
+ organization: "organization";
4505
4831
  deal: "deal";
4506
4832
  list_member: "list_member";
4507
4833
  }>;
4834
+ declare const AcqArtifactResponseSchema: z.ZodObject<{
4835
+ id: z.ZodString;
4836
+ organizationId: z.ZodString;
4837
+ ownerKind: z.ZodString;
4838
+ ownerId: z.ZodNullable<z.ZodString>;
4839
+ kind: z.ZodString;
4840
+ pipelineId: z.ZodNullable<z.ZodString>;
4841
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4842
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
4843
+ createdBy: z.ZodNullable<z.ZodString>;
4844
+ createdAt: z.ZodString;
4845
+ updatedAt: z.ZodString;
4846
+ isActive: z.ZodBoolean;
4847
+ version: z.ZodNumber;
4848
+ }, z.core.$strip>;
4508
4849
  declare const ListRecordEntitySchema: z.ZodEnum<{
4509
4850
  company: "company";
4510
4851
  contact: "contact";
@@ -4514,12 +4855,24 @@ type ListContactsQuery = z.infer<typeof ListContactsQuerySchema>;
4514
4855
  type AcqCompanyResponse = z.infer<typeof AcqCompanyResponseSchema>;
4515
4856
  type AcqContactResponse = z.infer<typeof AcqContactResponseSchema>;
4516
4857
  type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
4858
+ type AcqArtifactResponse = z.infer<typeof AcqArtifactResponseSchema>;
4517
4859
  type ListRecordEntity = z.infer<typeof ListRecordEntitySchema>;
4518
4860
  type ListStatus = z.infer<typeof ListStatusSchema>;
4519
4861
 
4520
4862
  /** Raw database row type for acq_deals table */
4521
4863
  type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
4522
- type DealStage = 'interested' | 'proposal' | 'closing' | 'closed_won' | 'closed_lost' | 'nurturing';
4864
+ /**
4865
+ * Deal stage key. Intentionally an open string, not a closed union — stage
4866
+ * vocabulary is tenant-owned content (see the `CrmStageKeySchema` comment in
4867
+ * api-schemas.ts: "CRM stage/state catalogs are model-owned... The published
4868
+ * core schema validates only the transport shape; closed-catalog membership
4869
+ * is enforced by the caller/API layer via model-injected validators"). A
4870
+ * closed union here would bake Elevasis's specific pipeline
4871
+ * (`interested`/`proposal`/`closing`/`closed_won`/`closed_lost`/`nurturing`)
4872
+ * into every tenant's type surface. `DealStageSchema` in api-schemas.ts is
4873
+ * already `z.string()` for the same reason; this type now matches it.
4874
+ */
4875
+ type DealStage = string;
4523
4876
  type DealPriorityBucketKey = 'needs_response' | 'follow_up_due' | 'waiting' | 'stale' | 'closed_low';
4524
4877
  interface DealPriority {
4525
4878
  bucketKey: DealPriorityBucketKey;
@@ -4994,6 +5347,230 @@ interface SessionTokenUsage {
4994
5347
  contextWindowSize: number;
4995
5348
  }
4996
5349
 
5350
+ /** D18: `pipeline_id` is an OM ontology id (free text), not a UUID. */
5351
+ declare const ContentPipelineIdSchema: z.ZodString;
5352
+ /** `content:catalog/status` entries. Free text, model-owned. */
5353
+ declare const ContentItemStatusSchema: z.ZodString;
5354
+ /** `content:catalog/pillar` entries. */
5355
+ declare const ContentPillarSchema: z.ZodString;
5356
+ declare const ListContentItemsQuerySchema: z.ZodObject<{
5357
+ status: z.ZodOptional<z.ZodString>;
5358
+ pillar: z.ZodOptional<z.ZodString>;
5359
+ pipelineId: z.ZodOptional<z.ZodString>;
5360
+ clientId: z.ZodOptional<z.ZodString>;
5361
+ reviewedBy: z.ZodOptional<z.ZodString>;
5362
+ search: z.ZodOptional<z.ZodString>;
5363
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5364
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5365
+ }, z.core.$strict>;
5366
+ declare const ContentItemResponseSchema: z.ZodObject<{
5367
+ id: z.ZodString;
5368
+ organizationId: z.ZodString;
5369
+ title: z.ZodString;
5370
+ body: z.ZodNullable<z.ZodString>;
5371
+ payload: z.ZodUnknown;
5372
+ status: z.ZodString;
5373
+ pillar: z.ZodNullable<z.ZodString>;
5374
+ pipelineId: z.ZodNullable<z.ZodString>;
5375
+ clientId: z.ZodNullable<z.ZodString>;
5376
+ sourceAssetId: z.ZodNullable<z.ZodString>;
5377
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
5378
+ status: z.ZodEnum<{
5379
+ error: "error";
5380
+ success: "success";
5381
+ no_result: "no_result";
5382
+ skipped: "skipped";
5383
+ }>;
5384
+ data: z.ZodOptional<z.ZodUnknown>;
5385
+ }, z.core.$loose>>;
5386
+ reviewedAt: z.ZodNullable<z.ZodString>;
5387
+ reviewedBy: z.ZodNullable<z.ZodString>;
5388
+ reviewerFeedback: z.ZodNullable<z.ZodString>;
5389
+ rejectReason: z.ZodNullable<z.ZodString>;
5390
+ createdBy: z.ZodNullable<z.ZodString>;
5391
+ updatedBy: z.ZodNullable<z.ZodString>;
5392
+ createdAt: z.ZodString;
5393
+ updatedAt: z.ZodString;
5394
+ }, z.core.$strip>;
5395
+ declare const ContentItemListResponseSchema: z.ZodObject<{
5396
+ data: z.ZodArray<z.ZodObject<{
5397
+ id: z.ZodString;
5398
+ organizationId: z.ZodString;
5399
+ title: z.ZodString;
5400
+ body: z.ZodNullable<z.ZodString>;
5401
+ payload: z.ZodUnknown;
5402
+ status: z.ZodString;
5403
+ pillar: z.ZodNullable<z.ZodString>;
5404
+ pipelineId: z.ZodNullable<z.ZodString>;
5405
+ clientId: z.ZodNullable<z.ZodString>;
5406
+ sourceAssetId: z.ZodNullable<z.ZodString>;
5407
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
5408
+ status: z.ZodEnum<{
5409
+ error: "error";
5410
+ success: "success";
5411
+ no_result: "no_result";
5412
+ skipped: "skipped";
5413
+ }>;
5414
+ data: z.ZodOptional<z.ZodUnknown>;
5415
+ }, z.core.$loose>>;
5416
+ reviewedAt: z.ZodNullable<z.ZodString>;
5417
+ reviewedBy: z.ZodNullable<z.ZodString>;
5418
+ reviewerFeedback: z.ZodNullable<z.ZodString>;
5419
+ rejectReason: z.ZodNullable<z.ZodString>;
5420
+ createdBy: z.ZodNullable<z.ZodString>;
5421
+ updatedBy: z.ZodNullable<z.ZodString>;
5422
+ createdAt: z.ZodString;
5423
+ updatedAt: z.ZodString;
5424
+ }, z.core.$strip>>;
5425
+ total: z.ZodNumber;
5426
+ limit: z.ZodNumber;
5427
+ offset: z.ZodNumber;
5428
+ }, z.core.$strip>;
5429
+ declare const UpdateContentItemRequestSchema: z.ZodObject<{
5430
+ title: z.ZodOptional<z.ZodString>;
5431
+ body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5432
+ status: z.ZodOptional<z.ZodString>;
5433
+ pillar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5434
+ pipelineId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5435
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5436
+ sourceAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5437
+ }, z.core.$strict>;
5438
+ declare const ContentItemReviewDecisionSchema: z.ZodEnum<{
5439
+ rejected: "rejected";
5440
+ approved: "approved";
5441
+ }>;
5442
+ declare const ReviewContentItemRequestSchema: z.ZodObject<{
5443
+ decision: z.ZodEnum<{
5444
+ rejected: "rejected";
5445
+ approved: "approved";
5446
+ }>;
5447
+ reviewerFeedback: z.ZodOptional<z.ZodString>;
5448
+ rejectReason: z.ZodOptional<z.ZodString>;
5449
+ }, z.core.$strict>;
5450
+ declare const ContentItemAttemptResponseSchema: z.ZodObject<{
5451
+ id: z.ZodString;
5452
+ organizationId: z.ZodString;
5453
+ contentItemId: z.ZodString;
5454
+ attemptNumber: z.ZodNumber;
5455
+ stepKey: z.ZodNullable<z.ZodString>;
5456
+ payload: z.ZodUnknown;
5457
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
5458
+ createdBy: z.ZodNullable<z.ZodString>;
5459
+ createdAt: z.ZodString;
5460
+ }, z.core.$strip>;
5461
+ declare const ContentItemAttemptListResponseSchema: z.ZodObject<{
5462
+ data: z.ZodArray<z.ZodObject<{
5463
+ id: z.ZodString;
5464
+ organizationId: z.ZodString;
5465
+ contentItemId: z.ZodString;
5466
+ attemptNumber: z.ZodNumber;
5467
+ stepKey: z.ZodNullable<z.ZodString>;
5468
+ payload: z.ZodUnknown;
5469
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
5470
+ createdBy: z.ZodNullable<z.ZodString>;
5471
+ createdAt: z.ZodString;
5472
+ }, z.core.$strip>>;
5473
+ }, z.core.$strip>;
5474
+ declare const ListContentDistributionsQuerySchema: z.ZodObject<{
5475
+ contentItemId: z.ZodOptional<z.ZodString>;
5476
+ platform: z.ZodOptional<z.ZodString>;
5477
+ status: z.ZodOptional<z.ZodString>;
5478
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5479
+ offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
5480
+ }, z.core.$strict>;
5481
+ declare const ContentDistributionResponseSchema: z.ZodObject<{
5482
+ id: z.ZodString;
5483
+ organizationId: z.ZodString;
5484
+ contentItemId: z.ZodString;
5485
+ platform: z.ZodString;
5486
+ format: z.ZodString;
5487
+ status: z.ZodString;
5488
+ adaptedBody: z.ZodNullable<z.ZodString>;
5489
+ platformContent: z.ZodNullable<z.ZodUnknown>;
5490
+ checklist: z.ZodNullable<z.ZodUnknown>;
5491
+ mediaUrls: z.ZodArray<z.ZodUnknown>;
5492
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
5493
+ status: z.ZodEnum<{
5494
+ error: "error";
5495
+ success: "success";
5496
+ no_result: "no_result";
5497
+ skipped: "skipped";
5498
+ }>;
5499
+ data: z.ZodOptional<z.ZodUnknown>;
5500
+ }, z.core.$loose>>;
5501
+ publishMethod: z.ZodNullable<z.ZodString>;
5502
+ publishedAt: z.ZodNullable<z.ZodString>;
5503
+ platformPostId: z.ZodNullable<z.ZodString>;
5504
+ platformUrl: z.ZodNullable<z.ZodString>;
5505
+ metrics: z.ZodUnknown;
5506
+ metricsUpdatedAt: z.ZodNullable<z.ZodString>;
5507
+ createdAt: z.ZodString;
5508
+ updatedAt: z.ZodString;
5509
+ }, z.core.$strip>;
5510
+ declare const ContentDistributionListResponseSchema: z.ZodObject<{
5511
+ data: z.ZodArray<z.ZodObject<{
5512
+ id: z.ZodString;
5513
+ organizationId: z.ZodString;
5514
+ contentItemId: z.ZodString;
5515
+ platform: z.ZodString;
5516
+ format: z.ZodString;
5517
+ status: z.ZodString;
5518
+ adaptedBody: z.ZodNullable<z.ZodString>;
5519
+ platformContent: z.ZodNullable<z.ZodUnknown>;
5520
+ checklist: z.ZodNullable<z.ZodUnknown>;
5521
+ mediaUrls: z.ZodArray<z.ZodUnknown>;
5522
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
5523
+ status: z.ZodEnum<{
5524
+ error: "error";
5525
+ success: "success";
5526
+ no_result: "no_result";
5527
+ skipped: "skipped";
5528
+ }>;
5529
+ data: z.ZodOptional<z.ZodUnknown>;
5530
+ }, z.core.$loose>>;
5531
+ publishMethod: z.ZodNullable<z.ZodString>;
5532
+ publishedAt: z.ZodNullable<z.ZodString>;
5533
+ platformPostId: z.ZodNullable<z.ZodString>;
5534
+ platformUrl: z.ZodNullable<z.ZodString>;
5535
+ metrics: z.ZodUnknown;
5536
+ metricsUpdatedAt: z.ZodNullable<z.ZodString>;
5537
+ createdAt: z.ZodString;
5538
+ updatedAt: z.ZodString;
5539
+ }, z.core.$strip>>;
5540
+ }, z.core.$strip>;
5541
+ /**
5542
+ * `publishMethod` is where D7's manual-publish state becomes visible: a row
5543
+ * with `publishedAt` set and no `platformPostId`.
5544
+ */
5545
+ declare const UpdateContentDistributionRequestSchema: z.ZodObject<{
5546
+ status: z.ZodOptional<z.ZodString>;
5547
+ adaptedBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5548
+ platformContent: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
5549
+ checklist: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
5550
+ mediaUrls: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
5551
+ publishMethod: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5552
+ publishedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5553
+ platformPostId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5554
+ platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5555
+ metrics: z.ZodOptional<z.ZodUnknown>;
5556
+ metricsUpdatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5557
+ }, z.core.$strict>;
5558
+ type ContentPipelineId = z.infer<typeof ContentPipelineIdSchema>;
5559
+ type ContentItemStatus = z.infer<typeof ContentItemStatusSchema>;
5560
+ type ContentPillar = z.infer<typeof ContentPillarSchema>;
5561
+ type ListContentItemsQuery = z.infer<typeof ListContentItemsQuerySchema>;
5562
+ type ContentItemResponse = z.infer<typeof ContentItemResponseSchema>;
5563
+ type ContentItemListResponse = z.infer<typeof ContentItemListResponseSchema>;
5564
+ type UpdateContentItemRequest = z.infer<typeof UpdateContentItemRequestSchema>;
5565
+ type ContentItemReviewDecision = z.infer<typeof ContentItemReviewDecisionSchema>;
5566
+ type ReviewContentItemRequest = z.infer<typeof ReviewContentItemRequestSchema>;
5567
+ type ContentItemAttemptResponse = z.infer<typeof ContentItemAttemptResponseSchema>;
5568
+ type ContentItemAttemptListResponse = z.infer<typeof ContentItemAttemptListResponseSchema>;
5569
+ type ListContentDistributionsQuery = z.infer<typeof ListContentDistributionsQuerySchema>;
5570
+ type ContentDistributionResponse = z.infer<typeof ContentDistributionResponseSchema>;
5571
+ type ContentDistributionListResponse = z.infer<typeof ContentDistributionListResponseSchema>;
5572
+ type UpdateContentDistributionRequest = z.infer<typeof UpdateContentDistributionRequestSchema>;
5573
+
4997
5574
  /**
4998
5575
  * Time range selector for dashboard metrics
4999
5576
  */
@@ -5696,61 +6273,1047 @@ interface HumanCheckpointDefinition extends ResourceDefinition {
5696
6273
  * external resources, and human checkpoints with their relationships.
5697
6274
  */
5698
6275
 
5699
- /**
5700
- * Extended agent metadata for Command View
5701
- * Includes model and capability information for graph display
5702
- */
5703
- interface CommandViewAgent extends ResourceDefinition {
5704
- type: 'agent';
5705
- modelProvider: string;
5706
- modelId: string;
5707
- toolCount: number;
5708
- hasMemory: boolean;
5709
- sessionCapable: boolean;
5710
- }
5711
- /**
5712
- * Extended workflow metadata for Command View
5713
- * Includes step information for graph display
5714
- */
5715
- interface CommandViewWorkflow extends ResourceDefinition {
5716
- type: 'workflow';
5717
- stepCount: number;
5718
- entryPoint: string;
5719
- }
5720
- /**
5721
- * Relationship types between resources
5722
- *
5723
- * - triggers: Resource initiates/starts another resource (orange)
5724
- * - uses: Resource uses an integration (teal)
5725
- * - approval: Resource requires human approval (yellow)
5726
- */
5727
- type RelationshipType = 'triggers' | 'uses' | 'approval';
5728
- /**
5729
- * Command View edge (relationship between resources)
5730
- */
5731
- interface CommandViewEdge {
5732
- id: string;
5733
- source: string;
5734
- target: string;
5735
- relationship: RelationshipType;
5736
- label?: string;
5737
- }
5738
- /**
5739
- * Command View data structure
5740
- * Complete graph data for visualization
5741
- *
5742
- * Backend serializes this once at startup and serves it via /command-view endpoint.
5743
- * Frontend consumes this directly for graph rendering.
5744
- */
5745
- interface CommandViewData {
5746
- workflows: CommandViewWorkflow[];
5747
- agents: CommandViewAgent[];
5748
- triggers: TriggerDefinition[];
5749
- integrations: IntegrationDefinition[];
5750
- externalResources: ExternalResourceDefinition[];
5751
- humanCheckpoints: HumanCheckpointDefinition[];
5752
- edges: CommandViewEdge[];
5753
- }
6276
+ /**
6277
+ * Extended agent metadata for Command View
6278
+ * Includes model and capability information for graph display
6279
+ */
6280
+ interface CommandViewAgent extends ResourceDefinition {
6281
+ type: 'agent';
6282
+ modelProvider: string;
6283
+ modelId: string;
6284
+ toolCount: number;
6285
+ hasMemory: boolean;
6286
+ sessionCapable: boolean;
6287
+ }
6288
+ /**
6289
+ * Extended workflow metadata for Command View
6290
+ * Includes step information for graph display
6291
+ */
6292
+ interface CommandViewWorkflow extends ResourceDefinition {
6293
+ type: 'workflow';
6294
+ stepCount: number;
6295
+ entryPoint: string;
6296
+ }
6297
+ /**
6298
+ * Relationship types between resources
6299
+ *
6300
+ * - triggers: Resource initiates/starts another resource (orange)
6301
+ * - uses: Resource uses an integration (teal)
6302
+ * - approval: Resource requires human approval (yellow)
6303
+ */
6304
+ type RelationshipType = 'triggers' | 'uses' | 'approval';
6305
+ /**
6306
+ * Command View edge (relationship between resources)
6307
+ */
6308
+ interface CommandViewEdge {
6309
+ id: string;
6310
+ source: string;
6311
+ target: string;
6312
+ relationship: RelationshipType;
6313
+ label?: string;
6314
+ }
6315
+ /**
6316
+ * Command View data structure
6317
+ * Complete graph data for visualization
6318
+ *
6319
+ * Backend serializes this once at startup and serves it via /command-view endpoint.
6320
+ * Frontend consumes this directly for graph rendering.
6321
+ */
6322
+ interface CommandViewData {
6323
+ workflows: CommandViewWorkflow[];
6324
+ agents: CommandViewAgent[];
6325
+ triggers: TriggerDefinition[];
6326
+ integrations: IntegrationDefinition[];
6327
+ externalResources: ExternalResourceDefinition[];
6328
+ humanCheckpoints: HumanCheckpointDefinition[];
6329
+ edges: CommandViewEdge[];
6330
+ }
6331
+
6332
+ declare const OrganizationModelSchema: z.ZodObject<{
6333
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6334
+ snapshotHash: z.ZodOptional<z.ZodString>;
6335
+ domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
6336
+ branding: z.ZodOptional<z.ZodObject<{
6337
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6338
+ lastModified: z.ZodString;
6339
+ }, z.core.$strip>>;
6340
+ identity: z.ZodOptional<z.ZodObject<{
6341
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6342
+ lastModified: z.ZodString;
6343
+ }, z.core.$strip>>;
6344
+ clients: z.ZodOptional<z.ZodObject<{
6345
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6346
+ lastModified: z.ZodString;
6347
+ }, z.core.$strip>>;
6348
+ customers: z.ZodOptional<z.ZodObject<{
6349
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6350
+ lastModified: z.ZodString;
6351
+ }, z.core.$strip>>;
6352
+ offerings: z.ZodOptional<z.ZodObject<{
6353
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6354
+ lastModified: z.ZodString;
6355
+ }, z.core.$strip>>;
6356
+ roles: z.ZodOptional<z.ZodObject<{
6357
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6358
+ lastModified: z.ZodString;
6359
+ }, z.core.$strip>>;
6360
+ goals: z.ZodOptional<z.ZodObject<{
6361
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6362
+ lastModified: z.ZodString;
6363
+ }, z.core.$strip>>;
6364
+ systems: z.ZodOptional<z.ZodObject<{
6365
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6366
+ lastModified: z.ZodString;
6367
+ }, z.core.$strip>>;
6368
+ ontology: z.ZodOptional<z.ZodObject<{
6369
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6370
+ lastModified: z.ZodString;
6371
+ }, z.core.$strip>>;
6372
+ resources: z.ZodOptional<z.ZodObject<{
6373
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6374
+ lastModified: z.ZodString;
6375
+ }, z.core.$strip>>;
6376
+ topology: z.ZodOptional<z.ZodObject<{
6377
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6378
+ lastModified: z.ZodString;
6379
+ }, z.core.$strip>>;
6380
+ actions: z.ZodOptional<z.ZodObject<{
6381
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6382
+ lastModified: z.ZodString;
6383
+ }, z.core.$strip>>;
6384
+ entities: z.ZodOptional<z.ZodObject<{
6385
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6386
+ lastModified: z.ZodString;
6387
+ }, z.core.$strip>>;
6388
+ knowledge: z.ZodOptional<z.ZodObject<{
6389
+ version: z.ZodDefault<z.ZodLiteral<1>>;
6390
+ lastModified: z.ZodString;
6391
+ }, z.core.$strip>>;
6392
+ }, z.core.$strip>>, z.ZodTransform<{
6393
+ branding: {
6394
+ version: 1;
6395
+ lastModified: string;
6396
+ };
6397
+ identity: {
6398
+ version: 1;
6399
+ lastModified: string;
6400
+ };
6401
+ clients: {
6402
+ version: 1;
6403
+ lastModified: string;
6404
+ };
6405
+ customers: {
6406
+ version: 1;
6407
+ lastModified: string;
6408
+ };
6409
+ offerings: {
6410
+ version: 1;
6411
+ lastModified: string;
6412
+ };
6413
+ roles: {
6414
+ version: 1;
6415
+ lastModified: string;
6416
+ };
6417
+ goals: {
6418
+ version: 1;
6419
+ lastModified: string;
6420
+ };
6421
+ systems: {
6422
+ version: 1;
6423
+ lastModified: string;
6424
+ };
6425
+ ontology: {
6426
+ version: 1;
6427
+ lastModified: string;
6428
+ };
6429
+ resources: {
6430
+ version: 1;
6431
+ lastModified: string;
6432
+ };
6433
+ topology: {
6434
+ version: 1;
6435
+ lastModified: string;
6436
+ };
6437
+ actions: {
6438
+ version: 1;
6439
+ lastModified: string;
6440
+ };
6441
+ entities: {
6442
+ version: 1;
6443
+ lastModified: string;
6444
+ };
6445
+ knowledge: {
6446
+ version: 1;
6447
+ lastModified: string;
6448
+ };
6449
+ }, {
6450
+ branding?: {
6451
+ version: 1;
6452
+ lastModified: string;
6453
+ } | undefined;
6454
+ identity?: {
6455
+ version: 1;
6456
+ lastModified: string;
6457
+ } | undefined;
6458
+ clients?: {
6459
+ version: 1;
6460
+ lastModified: string;
6461
+ } | undefined;
6462
+ customers?: {
6463
+ version: 1;
6464
+ lastModified: string;
6465
+ } | undefined;
6466
+ offerings?: {
6467
+ version: 1;
6468
+ lastModified: string;
6469
+ } | undefined;
6470
+ roles?: {
6471
+ version: 1;
6472
+ lastModified: string;
6473
+ } | undefined;
6474
+ goals?: {
6475
+ version: 1;
6476
+ lastModified: string;
6477
+ } | undefined;
6478
+ systems?: {
6479
+ version: 1;
6480
+ lastModified: string;
6481
+ } | undefined;
6482
+ ontology?: {
6483
+ version: 1;
6484
+ lastModified: string;
6485
+ } | undefined;
6486
+ resources?: {
6487
+ version: 1;
6488
+ lastModified: string;
6489
+ } | undefined;
6490
+ topology?: {
6491
+ version: 1;
6492
+ lastModified: string;
6493
+ } | undefined;
6494
+ actions?: {
6495
+ version: 1;
6496
+ lastModified: string;
6497
+ } | undefined;
6498
+ entities?: {
6499
+ version: 1;
6500
+ lastModified: string;
6501
+ } | undefined;
6502
+ knowledge?: {
6503
+ version: 1;
6504
+ lastModified: string;
6505
+ } | undefined;
6506
+ }>>;
6507
+ branding: z.ZodDefault<z.ZodObject<{
6508
+ organizationName: z.ZodString;
6509
+ productName: z.ZodString;
6510
+ shortName: z.ZodString;
6511
+ description: z.ZodOptional<z.ZodString>;
6512
+ logos: z.ZodDefault<z.ZodObject<{
6513
+ light: z.ZodOptional<z.ZodString>;
6514
+ dark: z.ZodOptional<z.ZodString>;
6515
+ }, z.core.$strip>>;
6516
+ voice: z.ZodOptional<z.ZodString>;
6517
+ tagline: z.ZodOptional<z.ZodString>;
6518
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
6519
+ themePresetId: z.ZodOptional<z.ZodString>;
6520
+ }, z.core.$loose>>;
6521
+ navigation: z.ZodDefault<z.ZodObject<{
6522
+ sidebar: z.ZodDefault<z.ZodObject<{
6523
+ primary: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
6524
+ bottom: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SidebarNode, unknown, z.core.$ZodTypeInternals<SidebarNode, unknown>>>>;
6525
+ }, z.core.$strip>>;
6526
+ topbar: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6527
+ id: z.ZodString;
6528
+ label: z.ZodString;
6529
+ tooltip: z.ZodOptional<z.ZodString>;
6530
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
6531
+ message: "message";
6532
+ error: "error";
6533
+ agent: "agent";
6534
+ workflow: "workflow";
6535
+ "google-sheets": "google-sheets";
6536
+ dashboard: "dashboard";
6537
+ calendar: "calendar";
6538
+ sales: "sales";
6539
+ crm: "crm";
6540
+ "lead-gen": "lead-gen";
6541
+ projects: "projects";
6542
+ clients: "clients";
6543
+ operations: "operations";
6544
+ monitoring: "monitoring";
6545
+ knowledge: "knowledge";
6546
+ settings: "settings";
6547
+ admin: "admin";
6548
+ archive: "archive";
6549
+ business: "business";
6550
+ finance: "finance";
6551
+ platform: "platform";
6552
+ seo: "seo";
6553
+ playbook: "playbook";
6554
+ strategy: "strategy";
6555
+ reference: "reference";
6556
+ integration: "integration";
6557
+ database: "database";
6558
+ user: "user";
6559
+ team: "team";
6560
+ gmail: "gmail";
6561
+ attio: "attio";
6562
+ overview: "overview";
6563
+ "command-view": "command-view";
6564
+ "command-queue": "command-queue";
6565
+ pipeline: "pipeline";
6566
+ lists: "lists";
6567
+ resources: "resources";
6568
+ approve: "approve";
6569
+ reject: "reject";
6570
+ retry: "retry";
6571
+ edit: "edit";
6572
+ view: "view";
6573
+ launch: "launch";
6574
+ "message-plus": "message-plus";
6575
+ escalate: "escalate";
6576
+ promote: "promote";
6577
+ submit: "submit";
6578
+ email: "email";
6579
+ success: "success";
6580
+ warning: "warning";
6581
+ info: "info";
6582
+ pending: "pending";
6583
+ bolt: "bolt";
6584
+ building: "building";
6585
+ briefcase: "briefcase";
6586
+ apps: "apps";
6587
+ graph: "graph";
6588
+ shield: "shield";
6589
+ users: "users";
6590
+ "chart-bar": "chart-bar";
6591
+ search: "search";
6592
+ }>, z.ZodString]>>;
6593
+ order: z.ZodOptional<z.ZodNumber>;
6594
+ enabled: z.ZodDefault<z.ZodBoolean>;
6595
+ devOnly: z.ZodOptional<z.ZodBoolean>;
6596
+ requiresAdmin: z.ZodOptional<z.ZodBoolean>;
6597
+ targets: z.ZodOptional<z.ZodDefault<z.ZodObject<{
6598
+ systems: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6599
+ entities: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6600
+ resources: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6601
+ actions: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6602
+ }, z.core.$strip>>>;
6603
+ }, z.core.$strip>>>;
6604
+ }, z.core.$strip>>;
6605
+ identity: z.ZodDefault<z.ZodObject<{
6606
+ mission: z.ZodDefault<z.ZodString>;
6607
+ vision: z.ZodDefault<z.ZodString>;
6608
+ legalName: z.ZodDefault<z.ZodString>;
6609
+ entityType: z.ZodDefault<z.ZodString>;
6610
+ jurisdiction: z.ZodDefault<z.ZodString>;
6611
+ industryCategory: z.ZodDefault<z.ZodString>;
6612
+ geographicFocus: z.ZodDefault<z.ZodString>;
6613
+ timeZone: z.ZodDefault<z.ZodString>;
6614
+ businessHours: z.ZodDefault<z.ZodObject<{
6615
+ monday: z.ZodOptional<z.ZodObject<{
6616
+ open: z.ZodString;
6617
+ close: z.ZodString;
6618
+ }, z.core.$strip>>;
6619
+ tuesday: z.ZodOptional<z.ZodObject<{
6620
+ open: z.ZodString;
6621
+ close: z.ZodString;
6622
+ }, z.core.$strip>>;
6623
+ wednesday: z.ZodOptional<z.ZodObject<{
6624
+ open: z.ZodString;
6625
+ close: z.ZodString;
6626
+ }, z.core.$strip>>;
6627
+ thursday: z.ZodOptional<z.ZodObject<{
6628
+ open: z.ZodString;
6629
+ close: z.ZodString;
6630
+ }, z.core.$strip>>;
6631
+ friday: z.ZodOptional<z.ZodObject<{
6632
+ open: z.ZodString;
6633
+ close: z.ZodString;
6634
+ }, z.core.$strip>>;
6635
+ saturday: z.ZodOptional<z.ZodObject<{
6636
+ open: z.ZodString;
6637
+ close: z.ZodString;
6638
+ }, z.core.$strip>>;
6639
+ sunday: z.ZodOptional<z.ZodObject<{
6640
+ open: z.ZodString;
6641
+ close: z.ZodString;
6642
+ }, z.core.$strip>>;
6643
+ }, z.core.$strip>>;
6644
+ clientBrief: z.ZodDefault<z.ZodString>;
6645
+ organizationName: z.ZodOptional<z.ZodString>;
6646
+ productName: z.ZodOptional<z.ZodString>;
6647
+ shortName: z.ZodOptional<z.ZodString>;
6648
+ description: z.ZodOptional<z.ZodString>;
6649
+ }, z.core.$loose>>;
6650
+ clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6651
+ id: z.ZodString;
6652
+ slug: z.ZodString;
6653
+ name: z.ZodString;
6654
+ status: z.ZodDefault<z.ZodEnum<{
6655
+ active: "active";
6656
+ onboarding: "onboarding";
6657
+ paused: "paused";
6658
+ completed: "completed";
6659
+ churned: "churned";
6660
+ }>>;
6661
+ source: z.ZodOptional<z.ZodString>;
6662
+ identity: z.ZodDefault<z.ZodObject<{
6663
+ organizationName: z.ZodOptional<z.ZodString>;
6664
+ shortName: z.ZodOptional<z.ZodString>;
6665
+ clientBrief: z.ZodDefault<z.ZodString>;
6666
+ geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
6667
+ timeZone: z.ZodDefault<z.ZodString>;
6668
+ }, z.core.$loose>>;
6669
+ branding: z.ZodDefault<z.ZodObject<{
6670
+ voice: z.ZodOptional<z.ZodString>;
6671
+ tagline: z.ZodOptional<z.ZodString>;
6672
+ values: z.ZodDefault<z.ZodArray<z.ZodString>>;
6673
+ }, z.core.$loose>>;
6674
+ workspace: z.ZodDefault<z.ZodObject<{
6675
+ kind: z.ZodOptional<z.ZodEnum<{
6676
+ "external-project": "external-project";
6677
+ "internal-project": "internal-project";
6678
+ none: "none";
6679
+ }>>;
6680
+ owner: z.ZodOptional<z.ZodEnum<{
6681
+ platform: "platform";
6682
+ client: "client";
6683
+ developer: "developer";
6684
+ }>>;
6685
+ projectId: z.ZodOptional<z.ZodString>;
6686
+ workspacePath: z.ZodOptional<z.ZodString>;
6687
+ }, z.core.$loose>>;
6688
+ links: z.ZodDefault<z.ZodObject<{
6689
+ projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
6690
+ primaryCompanyId: z.ZodOptional<z.ZodString>;
6691
+ primaryContactId: z.ZodOptional<z.ZodString>;
6692
+ sourceDealId: z.ZodOptional<z.ZodString>;
6693
+ }, z.core.$strip>>;
6694
+ prompts: z.ZodDefault<z.ZodObject<{
6695
+ defaultContext: z.ZodDefault<z.ZodString>;
6696
+ }, z.core.$loose>>;
6697
+ config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
6698
+ customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
6699
+ }, z.core.$strict>>>>;
6700
+ customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6701
+ id: z.ZodString;
6702
+ order: z.ZodNumber;
6703
+ name: z.ZodDefault<z.ZodString>;
6704
+ description: z.ZodDefault<z.ZodString>;
6705
+ jobsToBeDone: z.ZodDefault<z.ZodString>;
6706
+ pains: z.ZodDefault<z.ZodArray<z.ZodString>>;
6707
+ gains: z.ZodDefault<z.ZodArray<z.ZodString>>;
6708
+ firmographics: z.ZodDefault<z.ZodObject<{
6709
+ industry: z.ZodOptional<z.ZodString>;
6710
+ companySize: z.ZodOptional<z.ZodString>;
6711
+ region: z.ZodOptional<z.ZodString>;
6712
+ }, z.core.$strip>>;
6713
+ valueProp: z.ZodDefault<z.ZodString>;
6714
+ }, z.core.$strip>>>>;
6715
+ offerings: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6716
+ id: z.ZodString;
6717
+ order: z.ZodNumber;
6718
+ name: z.ZodDefault<z.ZodString>;
6719
+ description: z.ZodDefault<z.ZodString>;
6720
+ pricingModel: z.ZodDefault<z.ZodEnum<{
6721
+ custom: "custom";
6722
+ "one-time": "one-time";
6723
+ subscription: "subscription";
6724
+ "usage-based": "usage-based";
6725
+ }>>;
6726
+ price: z.ZodDefault<z.ZodNumber>;
6727
+ currency: z.ZodDefault<z.ZodString>;
6728
+ targetSegmentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
6729
+ deliveryFeatureId: z.ZodOptional<z.ZodString>;
6730
+ }, z.core.$strip>>>>;
6731
+ roles: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6732
+ id: z.ZodString;
6733
+ order: z.ZodNumber;
6734
+ title: z.ZodString;
6735
+ responsibilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
6736
+ reportsToId: z.ZodOptional<z.ZodString>;
6737
+ heldBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
6738
+ kind: z.ZodLiteral<"human">;
6739
+ userId: z.ZodString;
6740
+ }, z.core.$strip>, z.ZodObject<{
6741
+ kind: z.ZodLiteral<"agent">;
6742
+ agentId: z.ZodString;
6743
+ }, z.core.$strip>, z.ZodObject<{
6744
+ kind: z.ZodLiteral<"team">;
6745
+ memberIds: z.ZodArray<z.ZodString>;
6746
+ }, z.core.$strip>], "kind">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6747
+ kind: z.ZodLiteral<"human">;
6748
+ userId: z.ZodString;
6749
+ }, z.core.$strip>, z.ZodObject<{
6750
+ kind: z.ZodLiteral<"agent">;
6751
+ agentId: z.ZodString;
6752
+ }, z.core.$strip>, z.ZodObject<{
6753
+ kind: z.ZodLiteral<"team">;
6754
+ memberIds: z.ZodArray<z.ZodString>;
6755
+ }, z.core.$strip>], "kind">>]>>;
6756
+ responsibleFor: z.ZodOptional<z.ZodArray<z.ZodString>>;
6757
+ }, z.core.$strip>>>>;
6758
+ goals: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6759
+ id: z.ZodString;
6760
+ order: z.ZodNumber;
6761
+ description: z.ZodString;
6762
+ periodStart: z.ZodString;
6763
+ periodEnd: z.ZodString;
6764
+ keyResults: z.ZodDefault<z.ZodArray<z.ZodObject<{
6765
+ id: z.ZodString;
6766
+ description: z.ZodString;
6767
+ targetMetric: z.ZodString;
6768
+ currentValue: z.ZodDefault<z.ZodNumber>;
6769
+ targetValue: z.ZodOptional<z.ZodNumber>;
6770
+ }, z.core.$strip>>>;
6771
+ }, z.core.$strip>>>>;
6772
+ systems: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>>;
6773
+ ontology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
6774
+ objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6775
+ id: z.ZodString;
6776
+ label: z.ZodOptional<z.ZodString>;
6777
+ description: z.ZodOptional<z.ZodString>;
6778
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6779
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6780
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6781
+ storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6782
+ }, z.core.$loose>>>>;
6783
+ linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6784
+ id: z.ZodString;
6785
+ label: z.ZodOptional<z.ZodString>;
6786
+ description: z.ZodOptional<z.ZodString>;
6787
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6788
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6789
+ from: z.ZodString;
6790
+ to: z.ZodString;
6791
+ cardinality: z.ZodOptional<z.ZodString>;
6792
+ via: z.ZodOptional<z.ZodString>;
6793
+ }, z.core.$loose>>>>;
6794
+ actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6795
+ id: z.ZodString;
6796
+ label: z.ZodOptional<z.ZodString>;
6797
+ description: z.ZodOptional<z.ZodString>;
6798
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6799
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6800
+ actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6801
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6802
+ effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
6803
+ }, z.core.$loose>>>>;
6804
+ catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6805
+ id: z.ZodString;
6806
+ label: z.ZodOptional<z.ZodString>;
6807
+ description: z.ZodOptional<z.ZodString>;
6808
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6809
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6810
+ kind: z.ZodOptional<z.ZodString>;
6811
+ appliesTo: z.ZodOptional<z.ZodString>;
6812
+ entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6813
+ }, z.core.$loose>>>>;
6814
+ eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6815
+ id: z.ZodString;
6816
+ label: z.ZodOptional<z.ZodString>;
6817
+ description: z.ZodOptional<z.ZodString>;
6818
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6819
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6820
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6821
+ }, z.core.$loose>>>>;
6822
+ interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6823
+ id: z.ZodString;
6824
+ label: z.ZodOptional<z.ZodString>;
6825
+ description: z.ZodOptional<z.ZodString>;
6826
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6827
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6828
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6829
+ }, z.core.$loose>>>>;
6830
+ valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6831
+ id: z.ZodString;
6832
+ label: z.ZodOptional<z.ZodString>;
6833
+ description: z.ZodOptional<z.ZodString>;
6834
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6835
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6836
+ primitive: z.ZodOptional<z.ZodString>;
6837
+ }, z.core.$loose>>>>;
6838
+ sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6839
+ id: z.ZodString;
6840
+ label: z.ZodOptional<z.ZodString>;
6841
+ description: z.ZodOptional<z.ZodString>;
6842
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6843
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6844
+ valueType: z.ZodOptional<z.ZodString>;
6845
+ searchable: z.ZodOptional<z.ZodBoolean>;
6846
+ pii: z.ZodOptional<z.ZodBoolean>;
6847
+ }, z.core.$loose>>>>;
6848
+ groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6849
+ id: z.ZodString;
6850
+ label: z.ZodOptional<z.ZodString>;
6851
+ description: z.ZodOptional<z.ZodString>;
6852
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6853
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6854
+ members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
6855
+ }, z.core.$loose>>>>;
6856
+ endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
6857
+ id: z.ZodString;
6858
+ label: z.ZodOptional<z.ZodString>;
6859
+ description: z.ZodOptional<z.ZodString>;
6860
+ ownerSystemId: z.ZodOptional<z.ZodString>;
6861
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
6862
+ route: z.ZodOptional<z.ZodString>;
6863
+ }, z.core.$loose>>>>;
6864
+ }, z.core.$strip>>>;
6865
+ resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
6866
+ id: z.ZodString;
6867
+ order: z.ZodDefault<z.ZodNumber>;
6868
+ systemPath: z.ZodString;
6869
+ title: z.ZodOptional<z.ZodString>;
6870
+ description: z.ZodOptional<z.ZodString>;
6871
+ ownerRoleId: z.ZodOptional<z.ZodString>;
6872
+ status: z.ZodEnum<{
6873
+ active: "active";
6874
+ deprecated: "deprecated";
6875
+ archived: "archived";
6876
+ }>;
6877
+ ontology: z.ZodOptional<z.ZodObject<{
6878
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
6879
+ primaryAction: z.ZodOptional<z.ZodString>;
6880
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
6881
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
6882
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
6883
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
6884
+ contract: z.ZodOptional<z.ZodObject<{
6885
+ input: z.ZodOptional<z.ZodString>;
6886
+ output: z.ZodOptional<z.ZodString>;
6887
+ }, z.core.$strip>>;
6888
+ }, z.core.$strip>>;
6889
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
6890
+ path: z.ZodString;
6891
+ role: z.ZodEnum<{
6892
+ entrypoint: "entrypoint";
6893
+ handler: "handler";
6894
+ schema: "schema";
6895
+ test: "test";
6896
+ docs: "docs";
6897
+ config: "config";
6898
+ }>;
6899
+ symbol: z.ZodOptional<z.ZodString>;
6900
+ description: z.ZodOptional<z.ZodString>;
6901
+ }, z.core.$strip>>>;
6902
+ kind: z.ZodLiteral<"workflow">;
6903
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
6904
+ eventKey: z.ZodString;
6905
+ label: z.ZodString;
6906
+ payloadSchema: z.ZodOptional<z.ZodString>;
6907
+ lifecycle: z.ZodOptional<z.ZodEnum<{
6908
+ active: "active";
6909
+ deprecated: "deprecated";
6910
+ draft: "draft";
6911
+ beta: "beta";
6912
+ archived: "archived";
6913
+ }>>;
6914
+ }, z.core.$strip>>>;
6915
+ }, z.core.$strip>, z.ZodObject<{
6916
+ id: z.ZodString;
6917
+ order: z.ZodDefault<z.ZodNumber>;
6918
+ systemPath: z.ZodString;
6919
+ title: z.ZodOptional<z.ZodString>;
6920
+ description: z.ZodOptional<z.ZodString>;
6921
+ ownerRoleId: z.ZodOptional<z.ZodString>;
6922
+ status: z.ZodEnum<{
6923
+ active: "active";
6924
+ deprecated: "deprecated";
6925
+ archived: "archived";
6926
+ }>;
6927
+ ontology: z.ZodOptional<z.ZodObject<{
6928
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
6929
+ primaryAction: z.ZodOptional<z.ZodString>;
6930
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
6931
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
6932
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
6933
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
6934
+ contract: z.ZodOptional<z.ZodObject<{
6935
+ input: z.ZodOptional<z.ZodString>;
6936
+ output: z.ZodOptional<z.ZodString>;
6937
+ }, z.core.$strip>>;
6938
+ }, z.core.$strip>>;
6939
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
6940
+ path: z.ZodString;
6941
+ role: z.ZodEnum<{
6942
+ entrypoint: "entrypoint";
6943
+ handler: "handler";
6944
+ schema: "schema";
6945
+ test: "test";
6946
+ docs: "docs";
6947
+ config: "config";
6948
+ }>;
6949
+ symbol: z.ZodOptional<z.ZodString>;
6950
+ description: z.ZodOptional<z.ZodString>;
6951
+ }, z.core.$strip>>>;
6952
+ kind: z.ZodLiteral<"agent">;
6953
+ agentKind: z.ZodEnum<{
6954
+ platform: "platform";
6955
+ orchestrator: "orchestrator";
6956
+ specialist: "specialist";
6957
+ utility: "utility";
6958
+ }>;
6959
+ actsAsRoleId: z.ZodOptional<z.ZodString>;
6960
+ sessionCapable: z.ZodBoolean;
6961
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6962
+ kind: z.ZodLiteral<"slash-command">;
6963
+ command: z.ZodString;
6964
+ toolFactory: z.ZodOptional<z.ZodString>;
6965
+ }, z.core.$strip>, z.ZodObject<{
6966
+ kind: z.ZodLiteral<"mcp-tool">;
6967
+ server: z.ZodString;
6968
+ name: z.ZodString;
6969
+ }, z.core.$strip>, z.ZodObject<{
6970
+ kind: z.ZodLiteral<"api-endpoint">;
6971
+ method: z.ZodEnum<{
6972
+ GET: "GET";
6973
+ POST: "POST";
6974
+ PATCH: "PATCH";
6975
+ DELETE: "DELETE";
6976
+ }>;
6977
+ path: z.ZodString;
6978
+ requestSchema: z.ZodOptional<z.ZodString>;
6979
+ responseSchema: z.ZodOptional<z.ZodString>;
6980
+ }, z.core.$strip>, z.ZodObject<{
6981
+ kind: z.ZodLiteral<"script-execution">;
6982
+ resourceId: z.ZodString;
6983
+ }, z.core.$strip>], "kind">>>;
6984
+ emits: z.ZodOptional<z.ZodArray<z.ZodObject<{
6985
+ eventKey: z.ZodString;
6986
+ label: z.ZodString;
6987
+ payloadSchema: z.ZodOptional<z.ZodString>;
6988
+ lifecycle: z.ZodOptional<z.ZodEnum<{
6989
+ active: "active";
6990
+ deprecated: "deprecated";
6991
+ draft: "draft";
6992
+ beta: "beta";
6993
+ archived: "archived";
6994
+ }>>;
6995
+ }, z.core.$strip>>>;
6996
+ }, z.core.$strip>, z.ZodObject<{
6997
+ id: z.ZodString;
6998
+ order: z.ZodDefault<z.ZodNumber>;
6999
+ systemPath: z.ZodString;
7000
+ title: z.ZodOptional<z.ZodString>;
7001
+ description: z.ZodOptional<z.ZodString>;
7002
+ ownerRoleId: z.ZodOptional<z.ZodString>;
7003
+ status: z.ZodEnum<{
7004
+ active: "active";
7005
+ deprecated: "deprecated";
7006
+ archived: "archived";
7007
+ }>;
7008
+ ontology: z.ZodOptional<z.ZodObject<{
7009
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
7010
+ primaryAction: z.ZodOptional<z.ZodString>;
7011
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
7012
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
7013
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
7014
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
7015
+ contract: z.ZodOptional<z.ZodObject<{
7016
+ input: z.ZodOptional<z.ZodString>;
7017
+ output: z.ZodOptional<z.ZodString>;
7018
+ }, z.core.$strip>>;
7019
+ }, z.core.$strip>>;
7020
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
7021
+ path: z.ZodString;
7022
+ role: z.ZodEnum<{
7023
+ entrypoint: "entrypoint";
7024
+ handler: "handler";
7025
+ schema: "schema";
7026
+ test: "test";
7027
+ docs: "docs";
7028
+ config: "config";
7029
+ }>;
7030
+ symbol: z.ZodOptional<z.ZodString>;
7031
+ description: z.ZodOptional<z.ZodString>;
7032
+ }, z.core.$strip>>>;
7033
+ kind: z.ZodLiteral<"integration">;
7034
+ provider: z.ZodString;
7035
+ }, z.core.$strip>, z.ZodObject<{
7036
+ id: z.ZodString;
7037
+ order: z.ZodDefault<z.ZodNumber>;
7038
+ systemPath: z.ZodString;
7039
+ title: z.ZodOptional<z.ZodString>;
7040
+ description: z.ZodOptional<z.ZodString>;
7041
+ ownerRoleId: z.ZodOptional<z.ZodString>;
7042
+ status: z.ZodEnum<{
7043
+ active: "active";
7044
+ deprecated: "deprecated";
7045
+ archived: "archived";
7046
+ }>;
7047
+ ontology: z.ZodOptional<z.ZodObject<{
7048
+ actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
7049
+ primaryAction: z.ZodOptional<z.ZodString>;
7050
+ reads: z.ZodOptional<z.ZodArray<z.ZodString>>;
7051
+ writes: z.ZodOptional<z.ZodArray<z.ZodString>>;
7052
+ usesCatalogs: z.ZodOptional<z.ZodArray<z.ZodString>>;
7053
+ emits: z.ZodOptional<z.ZodArray<z.ZodString>>;
7054
+ contract: z.ZodOptional<z.ZodObject<{
7055
+ input: z.ZodOptional<z.ZodString>;
7056
+ output: z.ZodOptional<z.ZodString>;
7057
+ }, z.core.$strip>>;
7058
+ }, z.core.$strip>>;
7059
+ codeRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
7060
+ path: z.ZodString;
7061
+ role: z.ZodEnum<{
7062
+ entrypoint: "entrypoint";
7063
+ handler: "handler";
7064
+ schema: "schema";
7065
+ test: "test";
7066
+ docs: "docs";
7067
+ config: "config";
7068
+ }>;
7069
+ symbol: z.ZodOptional<z.ZodString>;
7070
+ description: z.ZodOptional<z.ZodString>;
7071
+ }, z.core.$strip>>>;
7072
+ kind: z.ZodLiteral<"script">;
7073
+ language: z.ZodEnum<{
7074
+ shell: "shell";
7075
+ sql: "sql";
7076
+ typescript: "typescript";
7077
+ python: "python";
7078
+ }>;
7079
+ source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
7080
+ file: z.ZodString;
7081
+ }, z.core.$strip>]>;
7082
+ }, z.core.$strip>], "kind">>>>;
7083
+ topology: z.ZodDefault<z.ZodDefault<z.ZodObject<{
7084
+ version: z.ZodDefault<z.ZodLiteral<1>>;
7085
+ relationships: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7086
+ from: z.ZodDiscriminatedUnion<[z.ZodObject<{
7087
+ kind: z.ZodLiteral<"system">;
7088
+ id: z.ZodString;
7089
+ }, z.core.$strip>, z.ZodObject<{
7090
+ kind: z.ZodLiteral<"resource">;
7091
+ id: z.ZodString;
7092
+ }, z.core.$strip>, z.ZodObject<{
7093
+ kind: z.ZodLiteral<"ontology">;
7094
+ id: z.ZodString;
7095
+ }, z.core.$strip>, z.ZodObject<{
7096
+ kind: z.ZodLiteral<"role">;
7097
+ id: z.ZodString;
7098
+ }, z.core.$strip>, z.ZodObject<{
7099
+ kind: z.ZodLiteral<"trigger">;
7100
+ id: z.ZodString;
7101
+ }, z.core.$strip>, z.ZodObject<{
7102
+ kind: z.ZodLiteral<"humanCheckpoint">;
7103
+ id: z.ZodString;
7104
+ }, z.core.$strip>, z.ZodObject<{
7105
+ kind: z.ZodLiteral<"externalResource">;
7106
+ id: z.ZodString;
7107
+ }, z.core.$strip>], "kind">;
7108
+ kind: z.ZodEnum<{
7109
+ triggers: "triggers";
7110
+ uses: "uses";
7111
+ approval: "approval";
7112
+ }>;
7113
+ to: z.ZodDiscriminatedUnion<[z.ZodObject<{
7114
+ kind: z.ZodLiteral<"system">;
7115
+ id: z.ZodString;
7116
+ }, z.core.$strip>, z.ZodObject<{
7117
+ kind: z.ZodLiteral<"resource">;
7118
+ id: z.ZodString;
7119
+ }, z.core.$strip>, z.ZodObject<{
7120
+ kind: z.ZodLiteral<"ontology">;
7121
+ id: z.ZodString;
7122
+ }, z.core.$strip>, z.ZodObject<{
7123
+ kind: z.ZodLiteral<"role">;
7124
+ id: z.ZodString;
7125
+ }, z.core.$strip>, z.ZodObject<{
7126
+ kind: z.ZodLiteral<"trigger">;
7127
+ id: z.ZodString;
7128
+ }, z.core.$strip>, z.ZodObject<{
7129
+ kind: z.ZodLiteral<"humanCheckpoint">;
7130
+ id: z.ZodString;
7131
+ }, z.core.$strip>, z.ZodObject<{
7132
+ kind: z.ZodLiteral<"externalResource">;
7133
+ id: z.ZodString;
7134
+ }, z.core.$strip>], "kind">;
7135
+ systemPath: z.ZodOptional<z.ZodString>;
7136
+ required: z.ZodOptional<z.ZodBoolean>;
7137
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
7138
+ }, z.core.$strip>>>;
7139
+ }, z.core.$strip>>>;
7140
+ actions: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7141
+ id: z.ZodString;
7142
+ order: z.ZodNumber;
7143
+ label: z.ZodString;
7144
+ description: z.ZodOptional<z.ZodString>;
7145
+ scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
7146
+ domain: z.ZodString;
7147
+ }, z.core.$strip>]>>;
7148
+ resourceId: z.ZodOptional<z.ZodString>;
7149
+ affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
7150
+ invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7151
+ kind: z.ZodLiteral<"slash-command">;
7152
+ command: z.ZodString;
7153
+ toolFactory: z.ZodOptional<z.ZodString>;
7154
+ }, z.core.$strip>, z.ZodObject<{
7155
+ kind: z.ZodLiteral<"mcp-tool">;
7156
+ server: z.ZodString;
7157
+ name: z.ZodString;
7158
+ }, z.core.$strip>, z.ZodObject<{
7159
+ kind: z.ZodLiteral<"api-endpoint">;
7160
+ method: z.ZodEnum<{
7161
+ GET: "GET";
7162
+ POST: "POST";
7163
+ PATCH: "PATCH";
7164
+ DELETE: "DELETE";
7165
+ }>;
7166
+ path: z.ZodString;
7167
+ requestSchema: z.ZodOptional<z.ZodString>;
7168
+ responseSchema: z.ZodOptional<z.ZodString>;
7169
+ }, z.core.$strip>, z.ZodObject<{
7170
+ kind: z.ZodLiteral<"script-execution">;
7171
+ resourceId: z.ZodString;
7172
+ }, z.core.$strip>], "kind">>>;
7173
+ knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
7174
+ lifecycle: z.ZodDefault<z.ZodEnum<{
7175
+ active: "active";
7176
+ deprecated: "deprecated";
7177
+ draft: "draft";
7178
+ beta: "beta";
7179
+ archived: "archived";
7180
+ }>>;
7181
+ }, z.core.$strip>>>>;
7182
+ entities: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7183
+ id: z.ZodString;
7184
+ order: z.ZodNumber;
7185
+ label: z.ZodString;
7186
+ description: z.ZodOptional<z.ZodString>;
7187
+ ownedBySystemId: z.ZodString;
7188
+ table: z.ZodOptional<z.ZodString>;
7189
+ rowSchema: z.ZodOptional<z.ZodString>;
7190
+ stateCatalogId: z.ZodOptional<z.ZodString>;
7191
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
7192
+ toEntity: z.ZodString;
7193
+ kind: z.ZodEnum<{
7194
+ "belongs-to": "belongs-to";
7195
+ "has-many": "has-many";
7196
+ "has-one": "has-one";
7197
+ "many-to-many": "many-to-many";
7198
+ }>;
7199
+ via: z.ZodOptional<z.ZodString>;
7200
+ label: z.ZodOptional<z.ZodString>;
7201
+ }, z.core.$strip>>>;
7202
+ }, z.core.$strip>>>>;
7203
+ knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7204
+ id: z.ZodString;
7205
+ kind: z.ZodEnum<{
7206
+ playbook: "playbook";
7207
+ strategy: "strategy";
7208
+ reference: "reference";
7209
+ }>;
7210
+ title: z.ZodString;
7211
+ summary: z.ZodString;
7212
+ icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
7213
+ message: "message";
7214
+ error: "error";
7215
+ agent: "agent";
7216
+ workflow: "workflow";
7217
+ "google-sheets": "google-sheets";
7218
+ dashboard: "dashboard";
7219
+ calendar: "calendar";
7220
+ sales: "sales";
7221
+ crm: "crm";
7222
+ "lead-gen": "lead-gen";
7223
+ projects: "projects";
7224
+ clients: "clients";
7225
+ operations: "operations";
7226
+ monitoring: "monitoring";
7227
+ knowledge: "knowledge";
7228
+ settings: "settings";
7229
+ admin: "admin";
7230
+ archive: "archive";
7231
+ business: "business";
7232
+ finance: "finance";
7233
+ platform: "platform";
7234
+ seo: "seo";
7235
+ playbook: "playbook";
7236
+ strategy: "strategy";
7237
+ reference: "reference";
7238
+ integration: "integration";
7239
+ database: "database";
7240
+ user: "user";
7241
+ team: "team";
7242
+ gmail: "gmail";
7243
+ attio: "attio";
7244
+ overview: "overview";
7245
+ "command-view": "command-view";
7246
+ "command-queue": "command-queue";
7247
+ pipeline: "pipeline";
7248
+ lists: "lists";
7249
+ resources: "resources";
7250
+ approve: "approve";
7251
+ reject: "reject";
7252
+ retry: "retry";
7253
+ edit: "edit";
7254
+ view: "view";
7255
+ launch: "launch";
7256
+ "message-plus": "message-plus";
7257
+ escalate: "escalate";
7258
+ promote: "promote";
7259
+ submit: "submit";
7260
+ email: "email";
7261
+ success: "success";
7262
+ warning: "warning";
7263
+ info: "info";
7264
+ pending: "pending";
7265
+ bolt: "bolt";
7266
+ building: "building";
7267
+ briefcase: "briefcase";
7268
+ apps: "apps";
7269
+ graph: "graph";
7270
+ shield: "shield";
7271
+ users: "users";
7272
+ "chart-bar": "chart-bar";
7273
+ search: "search";
7274
+ }>, z.ZodString]>>;
7275
+ externalUrl: z.ZodOptional<z.ZodString>;
7276
+ sourceFilePath: z.ZodOptional<z.ZodString>;
7277
+ body: z.ZodString;
7278
+ links: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
7279
+ target: z.ZodObject<{
7280
+ kind: z.ZodEnum<{
7281
+ knowledge: "knowledge";
7282
+ system: "system";
7283
+ resource: "resource";
7284
+ action: "action";
7285
+ ontology: "ontology";
7286
+ role: "role";
7287
+ client: "client";
7288
+ stage: "stage";
7289
+ goal: "goal";
7290
+ "customer-segment": "customer-segment";
7291
+ offering: "offering";
7292
+ }>;
7293
+ id: z.ZodString;
7294
+ }, z.core.$strip>;
7295
+ }, z.core.$strip>, z.ZodObject<{
7296
+ nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
7297
+ }, z.core.$strip>]>, z.ZodTransform<{
7298
+ target: {
7299
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
7300
+ id: string;
7301
+ };
7302
+ nodeId: string;
7303
+ }, {
7304
+ nodeId: string;
7305
+ } | {
7306
+ target: {
7307
+ kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
7308
+ id: string;
7309
+ };
7310
+ }>>>>;
7311
+ ownerIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
7312
+ updatedAt: z.ZodString;
7313
+ }, z.core.$strip>>>>;
7314
+ }, z.core.$strip>;
7315
+
7316
+ type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
5754
7317
 
5755
7318
  declare const AccessKeyInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
5756
7319
  systemPath: z.ZodString;
@@ -5810,6 +7373,11 @@ declare const AccessKeys: {
5810
7373
  readonly systemPath: "permission.clients";
5811
7374
  readonly action: "manage";
5812
7375
  };
7376
+ /** @reserved Reserved for the content pipeline's session-authenticated API layer (write guard), not yet built. */
7377
+ readonly contentManage: {
7378
+ readonly systemPath: "permission.content";
7379
+ readonly action: "manage";
7380
+ };
5813
7381
  readonly operationsOverview: {
5814
7382
  readonly systemPath: "diagnostic.operations.overview";
5815
7383
  readonly action: "view";
@@ -7839,6 +9407,356 @@ declare function useUpdateClient(): _tanstack_react_query.UseMutationResult<{
7839
9407
 
7840
9408
  declare function useDeleteClient(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
7841
9409
 
9410
+ type ContentItemsListFilters = Partial<Pick<ListContentItemsQuery, 'status' | 'pillar' | 'pipelineId' | 'clientId' | 'reviewedBy' | 'search' | 'limit' | 'offset'>>;
9411
+ type ContentDistributionsListFilters = Partial<Pick<ListContentDistributionsQuery, 'contentItemId' | 'platform' | 'status' | 'limit' | 'offset'>>;
9412
+ declare const contentKeys: {
9413
+ all: readonly ["content"];
9414
+ items: () => readonly ["content", "items"];
9415
+ itemsList: (organizationId: WorkOsOrgId | null | undefined, filters: ContentItemsListFilters) => readonly ["content", "items", "list", WorkOsOrgId | null | undefined, Partial<Pick<{
9416
+ limit: number;
9417
+ offset: number;
9418
+ status?: string | undefined;
9419
+ pillar?: string | undefined;
9420
+ pipelineId?: string | undefined;
9421
+ clientId?: string | undefined;
9422
+ reviewedBy?: string | undefined;
9423
+ search?: string | undefined;
9424
+ }, "limit" | "offset" | "search" | "status" | "pillar" | "clientId" | "pipelineId" | "reviewedBy">>];
9425
+ itemDetail: (organizationId: WorkOsOrgId | null | undefined, itemId: string | undefined) => readonly ["content", "items", "detail", WorkOsOrgId | null | undefined, string | undefined];
9426
+ itemAttempts: (organizationId: WorkOsOrgId | null | undefined, itemId: string | undefined) => readonly ["content", "items", "attempts", WorkOsOrgId | null | undefined, string | undefined];
9427
+ distributions: () => readonly ["content", "distributions"];
9428
+ distributionsList: (organizationId: WorkOsOrgId | null | undefined, filters: ContentDistributionsListFilters) => readonly ["content", "distributions", "list", WorkOsOrgId | null | undefined, Partial<Pick<{
9429
+ limit: number;
9430
+ offset: number;
9431
+ contentItemId?: string | undefined;
9432
+ platform?: string | undefined;
9433
+ status?: string | undefined;
9434
+ }, "limit" | "offset" | "platform" | "status" | "contentItemId">>];
9435
+ distributionDetail: (organizationId: WorkOsOrgId | null | undefined, distributionId: string | undefined) => readonly ["content", "distributions", "detail", WorkOsOrgId | null | undefined, string | undefined];
9436
+ };
9437
+
9438
+ declare function useContentItems(filters?: ContentItemsListFilters): _tanstack_react_query.UseQueryResult<{
9439
+ data: {
9440
+ id: string;
9441
+ organizationId: string;
9442
+ title: string;
9443
+ body: string | null;
9444
+ payload: unknown;
9445
+ status: string;
9446
+ pillar: string | null;
9447
+ pipelineId: string | null;
9448
+ clientId: string | null;
9449
+ sourceAssetId: string | null;
9450
+ processingState: Record<string, {
9451
+ [x: string]: unknown;
9452
+ status: "error" | "success" | "no_result" | "skipped";
9453
+ data?: unknown;
9454
+ }>;
9455
+ reviewedAt: string | null;
9456
+ reviewedBy: string | null;
9457
+ reviewerFeedback: string | null;
9458
+ rejectReason: string | null;
9459
+ createdBy: string | null;
9460
+ updatedBy: string | null;
9461
+ createdAt: string;
9462
+ updatedAt: string;
9463
+ }[];
9464
+ total: number;
9465
+ limit: number;
9466
+ offset: number;
9467
+ }, Error>;
9468
+
9469
+ declare function useContentItem(itemId: string | undefined): _tanstack_react_query.UseQueryResult<{
9470
+ id: string;
9471
+ organizationId: string;
9472
+ title: string;
9473
+ body: string | null;
9474
+ payload: unknown;
9475
+ status: string;
9476
+ pillar: string | null;
9477
+ pipelineId: string | null;
9478
+ clientId: string | null;
9479
+ sourceAssetId: string | null;
9480
+ processingState: Record<string, {
9481
+ [x: string]: unknown;
9482
+ status: "error" | "success" | "no_result" | "skipped";
9483
+ data?: unknown;
9484
+ }>;
9485
+ reviewedAt: string | null;
9486
+ reviewedBy: string | null;
9487
+ reviewerFeedback: string | null;
9488
+ rejectReason: string | null;
9489
+ createdBy: string | null;
9490
+ updatedBy: string | null;
9491
+ createdAt: string;
9492
+ updatedAt: string;
9493
+ }, Error>;
9494
+
9495
+ /**
9496
+ * Lists a content item's attempt lineage: order (`attemptNumber`), `stepKey`, `payload`,
9497
+ * `createdAt`, and `sourceExecutionId`. `stepKey` is written by the producer as of
9498
+ * 2026-08-12 and is NULL on older rows -- render the absence as unknown rather than
9499
+ * fabricating a step from payload keys. `attemptNumber` still counts per item, not per
9500
+ * step, so it does not identify a step on its own.
9501
+ */
9502
+ declare function useContentItemAttempts(itemId: string | undefined): _tanstack_react_query.UseQueryResult<{
9503
+ data: {
9504
+ id: string;
9505
+ organizationId: string;
9506
+ contentItemId: string;
9507
+ attemptNumber: number;
9508
+ stepKey: string | null;
9509
+ payload: unknown;
9510
+ sourceExecutionId: string | null;
9511
+ createdBy: string | null;
9512
+ createdAt: string;
9513
+ }[];
9514
+ }, Error>;
9515
+
9516
+ /**
9517
+ * Lists content distributions, most commonly filtered to one item's rows. Response
9518
+ * carries `publishMethod`, `platformPostId`, `metrics`, and `metricsUpdatedAt` -- the
9519
+ * columns that exist since Wave L's live run and had never been rendered anywhere
9520
+ * before this wave.
9521
+ */
9522
+ declare function useContentDistributions(filters?: ContentDistributionsListFilters): _tanstack_react_query.UseQueryResult<{
9523
+ data: {
9524
+ id: string;
9525
+ organizationId: string;
9526
+ contentItemId: string;
9527
+ platform: string;
9528
+ format: string;
9529
+ status: string;
9530
+ adaptedBody: string | null;
9531
+ platformContent: unknown;
9532
+ checklist: unknown;
9533
+ mediaUrls: unknown[];
9534
+ processingState: Record<string, {
9535
+ [x: string]: unknown;
9536
+ status: "error" | "success" | "no_result" | "skipped";
9537
+ data?: unknown;
9538
+ }>;
9539
+ publishMethod: string | null;
9540
+ publishedAt: string | null;
9541
+ platformPostId: string | null;
9542
+ platformUrl: string | null;
9543
+ metrics: unknown;
9544
+ metricsUpdatedAt: string | null;
9545
+ createdAt: string;
9546
+ updatedAt: string;
9547
+ }[];
9548
+ }, Error>;
9549
+
9550
+ /**
9551
+ * Reads one distribution by id, for a detail page reached by distribution id. The list
9552
+ * hook filters by `contentItemId`, which such a page cannot supply -- it knows only its
9553
+ * own id.
9554
+ */
9555
+ declare function useContentDistribution(distributionId: string | undefined): _tanstack_react_query.UseQueryResult<{
9556
+ id: string;
9557
+ organizationId: string;
9558
+ contentItemId: string;
9559
+ platform: string;
9560
+ format: string;
9561
+ status: string;
9562
+ adaptedBody: string | null;
9563
+ platformContent: unknown;
9564
+ checklist: unknown;
9565
+ mediaUrls: unknown[];
9566
+ processingState: Record<string, {
9567
+ [x: string]: unknown;
9568
+ status: "error" | "success" | "no_result" | "skipped";
9569
+ data?: unknown;
9570
+ }>;
9571
+ publishMethod: string | null;
9572
+ publishedAt: string | null;
9573
+ platformPostId: string | null;
9574
+ platformUrl: string | null;
9575
+ metrics: unknown;
9576
+ metricsUpdatedAt: string | null;
9577
+ createdAt: string;
9578
+ updatedAt: string;
9579
+ }, Error>;
9580
+
9581
+ interface UpdateContentItemParams {
9582
+ itemId: string;
9583
+ updates: UpdateContentItemRequest;
9584
+ }
9585
+ /** PATCH `/content/items/:itemId` -- title, body, status, pillar, pipelineId, clientId, sourceAssetId. */
9586
+ declare function useUpdateContentItem(): _tanstack_react_query.UseMutationResult<{
9587
+ id: string;
9588
+ organizationId: string;
9589
+ title: string;
9590
+ body: string | null;
9591
+ payload: unknown;
9592
+ status: string;
9593
+ pillar: string | null;
9594
+ pipelineId: string | null;
9595
+ clientId: string | null;
9596
+ sourceAssetId: string | null;
9597
+ processingState: Record<string, {
9598
+ [x: string]: unknown;
9599
+ status: "error" | "success" | "no_result" | "skipped";
9600
+ data?: unknown;
9601
+ }>;
9602
+ reviewedAt: string | null;
9603
+ reviewedBy: string | null;
9604
+ reviewerFeedback: string | null;
9605
+ rejectReason: string | null;
9606
+ createdBy: string | null;
9607
+ updatedBy: string | null;
9608
+ createdAt: string;
9609
+ updatedAt: string;
9610
+ }, Error, UpdateContentItemParams, unknown>;
9611
+
9612
+ interface UpdateContentDistributionParams {
9613
+ distributionId: string;
9614
+ updates: UpdateContentDistributionRequest;
9615
+ }
9616
+ /**
9617
+ * PATCH `/content/distributions/:distributionId`.
9618
+ *
9619
+ * This one mutation replaces the four Supabase-direct hooks the Command Center's
9620
+ * distribution detail page used -- checklist toggle, platform-content edit, media
9621
+ * delete, and the general update -- because each was a partial write of `checklist`,
9622
+ * `platformContent`, or `mediaUrls`, all of which this route already accepts.
9623
+ */
9624
+ declare function useUpdateContentDistribution(): _tanstack_react_query.UseMutationResult<{
9625
+ id: string;
9626
+ organizationId: string;
9627
+ contentItemId: string;
9628
+ platform: string;
9629
+ format: string;
9630
+ status: string;
9631
+ adaptedBody: string | null;
9632
+ platformContent: unknown;
9633
+ checklist: unknown;
9634
+ mediaUrls: unknown[];
9635
+ processingState: Record<string, {
9636
+ [x: string]: unknown;
9637
+ status: "error" | "success" | "no_result" | "skipped";
9638
+ data?: unknown;
9639
+ }>;
9640
+ publishMethod: string | null;
9641
+ publishedAt: string | null;
9642
+ platformPostId: string | null;
9643
+ platformUrl: string | null;
9644
+ metrics: unknown;
9645
+ metricsUpdatedAt: string | null;
9646
+ createdAt: string;
9647
+ updatedAt: string;
9648
+ }, Error, UpdateContentDistributionParams, unknown>;
9649
+
9650
+ interface ReviewContentItemParams {
9651
+ itemId: string;
9652
+ review: ReviewContentItemRequest;
9653
+ }
9654
+ /**
9655
+ * POST `/content/items/:itemId/review` -- approve or reject. Writes `reviewedAt`,
9656
+ * `reviewedBy`, `reviewerFeedback`, `rejectReason` server-side.
9657
+ */
9658
+ declare function useReviewContentItem(): _tanstack_react_query.UseMutationResult<{
9659
+ id: string;
9660
+ organizationId: string;
9661
+ title: string;
9662
+ body: string | null;
9663
+ payload: unknown;
9664
+ status: string;
9665
+ pillar: string | null;
9666
+ pipelineId: string | null;
9667
+ clientId: string | null;
9668
+ sourceAssetId: string | null;
9669
+ processingState: Record<string, {
9670
+ [x: string]: unknown;
9671
+ status: "error" | "success" | "no_result" | "skipped";
9672
+ data?: unknown;
9673
+ }>;
9674
+ reviewedAt: string | null;
9675
+ reviewedBy: string | null;
9676
+ reviewerFeedback: string | null;
9677
+ rejectReason: string | null;
9678
+ createdBy: string | null;
9679
+ updatedBy: string | null;
9680
+ createdAt: string;
9681
+ updatedAt: string;
9682
+ }, Error, ReviewContentItemParams, unknown>;
9683
+
9684
+ declare const contentArtifactKeys: {
9685
+ all: readonly ["content-artifacts"];
9686
+ list: (organizationId: WorkOsOrgId | null | undefined) => readonly ["content-artifacts", WorkOsOrgId | null | undefined];
9687
+ };
9688
+ interface UseContentArtifactsOptions {
9689
+ /** Filter to one pipeline's artifacts (client-side, off `AcqArtifactResponse.pipelineId`). Omit for every pipeline. */
9690
+ pipelineId?: string;
9691
+ /** Filter to one artifact kind (already `content:`-prefixed). Omit for every content kind. */
9692
+ kind?: string;
9693
+ }
9694
+ interface UseContentArtifactsResult {
9695
+ artifacts: AcqArtifactResponse[];
9696
+ isLoading: boolean;
9697
+ isError: boolean;
9698
+ error: Error | null;
9699
+ refetch: () => void;
9700
+ }
9701
+ /**
9702
+ * Filters a raw artifact list to the ones the content Rules page can show: `content:`
9703
+ * -prefixed kinds (the standing convention every content artifact write follows -- no
9704
+ * type enforces it, so this reader must not trust an un-prefixed `kind`), and,
9705
+ * optionally, one pipeline. Extracted as a pure function so the filtering logic is
9706
+ * testable without a QueryClient or a mocked service context.
9707
+ */
9708
+ declare function filterContentArtifacts(artifacts: AcqArtifactResponse[], options?: UseContentArtifactsOptions): AcqArtifactResponse[];
9709
+ /**
9710
+ * Lists `content:`-prefixed artifacts (the Rules and artifacts page's read path).
9711
+ *
9712
+ * `useArtifacts` (`packages/ui/src/hooks/lead-gen/useArtifacts.ts`) cannot serve this:
9713
+ * it hard-requires `ownerId` (`enabled: isReady && !!ownerId`) and always puts `ownerId`
9714
+ * in the query string, but every content rules document is org-owned with a null
9715
+ * `ownerId`. `ListArtifactsQuerySchema.ownerId` became optional specifically to allow
9716
+ * this (artifacts-platform-tool.mdx Step 3 defect 3) -- this hook omits `ownerId`
9717
+ * entirely rather than passing an empty or undefined value.
9718
+ *
9719
+ * The list route supports neither a `kind` filter nor a `pipelineId` filter server-side,
9720
+ * so filtering happens client-side, off `AcqArtifactResponse.pipelineId` /
9721
+ * `AcqArtifactResponse.isActive` / `.version` / `.updatedAt` -- all present on the
9722
+ * response since Wave B.
9723
+ */
9724
+ declare function useContentArtifacts(options?: UseContentArtifactsOptions): UseContentArtifactsResult;
9725
+
9726
+ interface ContentPipelineSummary {
9727
+ /** Item count per declared status key. */
9728
+ countsByStatus: Record<string, number>;
9729
+ /** Sum of `countsByStatus`. */
9730
+ totalItems: number;
9731
+ /** ISO timestamp of the most recent execution across every resolved step resource, or `null`. */
9732
+ lastRunAt: string | null;
9733
+ isLoading: boolean;
9734
+ }
9735
+ /**
9736
+ * Sums one `total` reading per declared status into a `{status: count}` map.
9737
+ * Extracted as a pure function so the aggregation is testable without a QueryClient.
9738
+ */
9739
+ declare function sumStatusCounts(statusKeys: string[], totals: (number | undefined)[]): {
9740
+ countsByStatus: Record<string, number>;
9741
+ totalItems: number;
9742
+ };
9743
+ /** Picks the most recent `startTime` across every resource's most-recent-execution reading, as an ISO string. */
9744
+ declare function pickLatestRunAt(latestExecutions: (APIExecutionSummary | undefined)[]): string | null;
9745
+ /**
9746
+ * Aggregates one content pipeline's item counts by status and its most recent run --
9747
+ * used by the Pipelines list (one row per pipeline) and the Pipeline workspace's
9748
+ * Overview tab.
9749
+ *
9750
+ * `useContentItems`'s response is `{ data, total, limit, offset }`. Counts read `total`
9751
+ * per status (`limit: 1`) rather than counting a page of `data` (default limit 50),
9752
+ * which would silently under-report once a pipeline has more items than one page in a
9753
+ * status (binding constraint h). Runs are read per resolved step Resource via the
9754
+ * generic executions shape (`useExecutions`'s queryKey/queryFn) rather than any
9755
+ * list-scoped panel -- `WorkflowRunsPanel` and `LiveTail` are both hard-bound to a
9756
+ * lead-gen list id and cannot serve this (binding constraint b).
9757
+ */
9758
+ declare function useContentPipelineSummary(pipelineId: string | undefined, statusKeys: string[], stepResourceIds: string[]): ContentPipelineSummary;
9759
+
7842
9760
  /**
7843
9761
  * Query key factories for Operations TanStack Query hooks.
7844
9762
  *
@@ -9505,7 +11423,7 @@ declare function useDeleteContacts(): _tanstack_react_query.UseMutationResult<vo
9505
11423
 
9506
11424
  declare const leadGenArtifactKeys: {
9507
11425
  all: readonly ["lead-gen-artifacts"];
9508
- list: (organizationId: WorkOsOrgId | null, ownerKind: AcqArtifactOwnerKind, ownerId: string) => readonly ["lead-gen-artifacts", WorkOsOrgId | null, "company" | "contact" | "list" | "deal" | "list_member", string];
11426
+ list: (organizationId: WorkOsOrgId | null, ownerKind: AcqArtifactOwnerKind, ownerId: string | null | undefined) => readonly ["lead-gen-artifacts", WorkOsOrgId | null, "company" | "contact" | "list" | "organization" | "deal" | "list_member", string | null | undefined];
9509
11427
  };
9510
11428
  interface UseArtifactsParams {
9511
11429
  ownerKind: AcqArtifactOwnerKind;
@@ -9516,12 +11434,15 @@ declare function useArtifacts({ ownerKind, ownerId }: UseArtifactsParams): _tans
9516
11434
  id: string;
9517
11435
  organizationId: string;
9518
11436
  ownerKind: string;
9519
- ownerId: string;
11437
+ ownerId: string | null;
9520
11438
  kind: string;
11439
+ pipelineId: string | null;
9521
11440
  content: Record<string, unknown>;
9522
11441
  sourceExecutionId: string | null;
9523
11442
  createdBy: string | null;
9524
11443
  createdAt: string;
11444
+ updatedAt: string;
11445
+ isActive: boolean;
9525
11446
  version: number;
9526
11447
  }[];
9527
11448
  }, Error>;
@@ -9529,19 +11450,23 @@ declare function useCreateArtifact(): _tanstack_react_query.UseMutationResult<{
9529
11450
  id: string;
9530
11451
  organizationId: string;
9531
11452
  ownerKind: string;
9532
- ownerId: string;
11453
+ ownerId: string | null;
9533
11454
  kind: string;
11455
+ pipelineId: string | null;
9534
11456
  content: Record<string, unknown>;
9535
11457
  sourceExecutionId: string | null;
9536
11458
  createdBy: string | null;
9537
11459
  createdAt: string;
11460
+ updatedAt: string;
11461
+ isActive: boolean;
9538
11462
  version: number;
9539
11463
  }, Error, {
9540
- ownerKind: "company" | "contact" | "list" | "deal" | "list_member";
9541
- ownerId: string;
11464
+ ownerKind: "company" | "contact" | "list" | "organization" | "deal" | "list_member";
9542
11465
  kind: string;
9543
11466
  content: Record<string, unknown>;
11467
+ ownerId?: string | null | undefined;
9544
11468
  sourceExecutionId?: string | undefined;
11469
+ pipelineId?: string | null | undefined;
9545
11470
  }, unknown>;
9546
11471
 
9547
11472
  declare const leadGenListMemberKeys: {
@@ -9841,6 +11766,14 @@ declare class OrganizationMembershipService {
9841
11766
  * Reactivate a membership
9842
11767
  */
9843
11768
  reactivateMembership(membershipId: string): Promise<MembershipWithDetails>;
11769
+ /**
11770
+ * Write the WorkOS membership link the acceptance path failed to record --
11771
+ * the repair for a membership reported as `accepted_unlinked`.
11772
+ *
11773
+ * Idempotent on the server: an already-linked row returns unchanged. A row in
11774
+ * any other state is refused with a 409 rather than guessed at.
11775
+ */
11776
+ repairMembershipLink(membershipId: string): Promise<MembershipWithDetails>;
9844
11777
  }
9845
11778
 
9846
11779
  declare function useUserMemberships(userId: string, params?: Omit<ListMembershipsParams, 'userId'>): _tanstack_react_query.UseQueryResult<MembershipWithDetails[], Error>;
@@ -10267,6 +12200,32 @@ declare function useExecutionLogsFilters(_timeRange: TimeRange): {
10267
12200
  */
10268
12201
  declare function useOrganizationMembers(organizationId: SupabaseOrgId, params?: Omit<ListMembershipsParams, 'organizationId'>): _tanstack_react_query.UseQueryResult<MembershipWithDetails[], Error>;
10269
12202
 
12203
+ type OrganizationModelDriftState = {
12204
+ /** True only when both hashes are known AND differ. Unknowns are never drift. */
12205
+ hasDrifted: boolean;
12206
+ /** Hash of the model this bundle was built against. */
12207
+ buildTimeHash: string | null;
12208
+ /** Hash of the organization's active deployment. */
12209
+ deployedHash: string | null;
12210
+ activeDeploymentId: string | null;
12211
+ isLoading: boolean;
12212
+ };
12213
+ /**
12214
+ * Detect that the UI is rendering an organization model older than the one the
12215
+ * platform has deployed.
12216
+ *
12217
+ * Every UI in the fleet — Command Center and every tenant — compiles its
12218
+ * organization model into its bundle. The API resolves the deployed snapshot
12219
+ * per request, so a deploy of one without the other leaves the sidebar,
12220
+ * knowledge pages, and systems pages silently rendering the older shape. There
12221
+ * is no guard against that anywhere else; this is it.
12222
+ *
12223
+ * Deliberately conservative: an unavailable hash on either side reports "no
12224
+ * drift" rather than a warning nobody can act on. A false banner on every page
12225
+ * of the shell would be worse than the drift it was warning about.
12226
+ */
12227
+ declare function useOrganizationModelDrift(organizationModel: OrganizationModel): OrganizationModelDriftState;
12228
+
10270
12229
  /**
10271
12230
  * Subscribe to the org-scoped delivery SSE stream.
10272
12231
  *
@@ -10652,5 +12611,5 @@ declare function useCreateNote(): _tanstack_react_query.UseMutationResult<{
10652
12611
  type?: string;
10653
12612
  }, "organization_id">, unknown>;
10654
12613
 
10655
- export { AccessKeys, ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, mergeSessionMessages, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, taskKeys, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useInFlightExecutions, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution };
10656
- export type { AccessKeyInput, AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ClientDetailResponse, ClientResponse, ClientStatus, ClientStatusResponse, ClientsListFilters, CreateApiKeyRequest, CreateApiKeyResponse, CreateClientRequest, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListExecutionsFilters, ListRecordsFilters, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, RemoveCompaniesFromListResult, RequestRow, RequestSeverity, RequestType, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, SubmitRequestInput, SystemHealthExecutionSummary, SystemHealthResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateClientRequest, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseAccessResult, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseInFlightExecutionsOptions, UseListProgressOptions, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseSystemHealthParams, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, VerifyCredentialResponse, WebSocketState, WorkflowExecutionTriggerParams };
12614
+ export { AccessKeys, ApiKeyService, CredentialService, DeploymentService, OperationsService, OrganizationMembershipService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, WebhookEndpointService, acquisitionListKeys, clientsKeys, collectResourceFilterFacets, companyKeys, contactKeys, contentArtifactKeys, contentKeys, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, filterByDomainFilters, filterContentArtifacts, getResourceFilterFacetIds, isSessionCapable, labelResourceFilterFacet, leadGenArtifactKeys, leadGenListCompanyKeys, leadGenListMemberKeys, mergeSessionMessages, milestoneKeys, noteKeys, observabilityKeys, operationsKeys, pickLatestRunAt, projectActivityKeys, projectKeys, requestsKeys, scheduleKeys, sessionsKeys, sortData, sumStatusCounts, taskKeys, useAccess, useActivateDeployment, useActivities, useActivitiesRealtime, useActivityFilters, useActivityTrend, useAddCompaniesToList, useAddContactsToList, useArchiveSession, useArchivedLogs, useArtifacts, useAssignRole, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCancelSchedule, useCheckpointTasks, useClient, useClientStatus, useClients, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewData, useCommandViewDomainFilters, useCommandViewStats, useCommandViewStore, useCompanies, useCompany, useCompanyFacets, useCompleteDealTask, useContact, useContacts, useContentArtifacts, useContentDistribution, useContentDistributions, useContentItem, useContentItemAttempts, useContentItems, useContentPipelineSummary, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateApiKey, useCreateArtifact, useCreateClient, useCreateCompany, useCreateContact, useCreateCredential, useCreateDealNote, useCreateDealTask, useCreateProject as useCreateDeliveryProject, useCreateList, useCreateMilestone, useCreateNote, useCreateOrgRole, useCreateSchedule, useCreateSession, useCreateTask, useCreateWebhookEndpoint, useCredentials, useDashboardMetrics, useDeactivateDeployment, useDeactivateMembership, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteApiKey, useDeleteClient, useDeleteCompanies, useDeleteContacts, useDeleteCredential, useDeleteDeal, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteExecution, useDeleteList, useDeleteMilestone, useDeleteOrgRole, useDeleteRequest, useDeleteSchedule, useDeleteSession, useDeleteTask$1 as useDeleteTask, useDeleteWebhookEndpoint, useDeriveActions, useEffectivePermissions, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAction, useExecuteAsync, useExecuteResource, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionLogsFilters, useExecutionPanelState, useExecutionSSE, useExecutions, useGetExecutionHistory, useGetSchedule, useInFlightExecutions, useList, useListApiKeys, useListDeployments, useListExecutions, useListMember, useListMembers, useListProgress, useListRecords, useListSchedules, useListWebhookEndpoints, useLists, useListsTelemetry, useMarkAllAsRead, useMarkAsRead, useMergedExecution, useMilestones, useNotificationCount as useNotificationCountSSE, useNotifications, useOrgRoles, useOrganizationMembers, useOrganizationModelDrift, usePaginationState, usePatchTask, usePauseSchedule, usePermissionCatalog, useProject, useProjectActivities, useProjectMilestones, useProjectNotes, useProjectRealtime, useProjectTasks, useProjects, useReactivateMembership, useRecentExecutionsByResource, useRemoveCompaniesFromList, useRequest, useRequestsList, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useResumeSchedule, useRetryExecution, useReviewContentItem, useRevokeRole, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useStatusFilter, useSubmitAction, useSubmitRequest, useSuccessNotification, useSystemHealth, useTableSelection, useTableSort, useTasks, useTestNotification, useTimeRangeDates, useTopFailingResources, useTransitionItem, useTransitionListCompany, useTransitionListMember, useTransitionState, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateApiKey, useUpdateClient, useUpdateCompany, useUpdateContact, useUpdateContentDistribution, useUpdateContentItem, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateList, useUpdateListConfig, useUpdateListStatus, useUpdateMilestone, useUpdateOrgRole, useUpdateRequestStatus, useUpdateSchedule, useUpdateTask, useUpdateWebhookEndpoint, useUserMemberships, useVerifyCredential, useVisibleResources, useWarningNotification, useWorkflowExecution };
12615
+ export type { AccessKeyInput, AcqCompanyWithCount, AcqContactWithCompany, AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityFilters, ActivityTrendResponse, AddCompaniesToListResult, AddContactsToListResult, AssignRoleInput, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CancelExecutionParams, CancelExecutionResult, ChatMessage, ClientDetailResponse, ClientResponse, ClientStatus, ClientStatusResponse, ClientsListFilters, ContentDistributionListResponse, ContentDistributionResponse, ContentDistributionsListFilters, ContentItemAttemptListResponse, ContentItemAttemptResponse, ContentItemListResponse, ContentItemResponse, ContentItemReviewDecision, ContentItemStatus, ContentItemsListFilters, ContentPillar, ContentPipelineId, ContentPipelineSummary, CreateApiKeyRequest, CreateApiKeyResponse, CreateClientRequest, CreateCredentialRequest, CreateCredentialResponse, CreateOrgRoleInput, CreateScheduleInput, CreateSessionResponse, CredentialListItem, DealDetail, DealLookupFilters, DealLookupItem, DealSummaryStageItem, DealsSummaryResponse, DeleteExecutionParams, Deployment, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteActionInput, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsFilters, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListApiKeysResponse, ListCredentialsResponse, ListExecutionsFilters, ListRecordsFilters, ListSchedulesFilters, ListSchedulesResponse, ListWebhookEndpointsResponse, MessageEvent, MessageType, OrgRole, OrganizationModelDriftState, RemoveCompaniesFromListResult, RequestRow, RequestSeverity, RequestType, RequestsListFilters, ResourceFilterFacet, ResourcesResponse, RetryExecutionParams, ReviewContentItemRequest, RevokeRoleInput, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, StaleDealSummaryItem, StatefulItem, StatusFilter, SubmitActionRequest, SubmitActionResponse, SubmitRequestInput, SystemHealthExecutionSummary, SystemHealthResponse, TaskSchedule, TopFailingResourcesParams, TransitionItemInput, TransitionListCompanyInput, TransitionListMemberInput, TransitionStateInput, UpdateClientRequest, UpdateContentItemRequest, UpdateListStatusInput, UpdateOrgRoleInput, UpdateScheduleInput, UseAccessResult, UseActivitiesParams, UseActivityTrendParams, UseArtifactsParams, UseBatchedResourcesHealthParams, UseContentArtifactsOptions, UseContentArtifactsResult, UseExecuteResourceOptions, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseExecutionSSEOptions, UseExecutionSSEResult, UseInFlightExecutionsOptions, UseListProgressOptions, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, UseSystemHealthParams, UseWorkflowExecutionOptions, UseWorkflowExecutionResult, VerifyCredentialResponse, WebSocketState, WorkflowExecutionTriggerParams };