@elevasis/sdk 1.45.0 → 1.47.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 (40) hide show
  1. package/dist/cli.cjs +36454 -31490
  2. package/dist/index.d.ts +964 -358
  3. package/dist/index.js +59 -59
  4. package/dist/node/index.d.ts +0 -84
  5. package/dist/node/index.js +2 -2
  6. package/dist/test-utils/index.d.ts +993 -301
  7. package/dist/test-utils/index.js +177 -134
  8. package/dist/worker/index.d.ts +1043 -277
  9. package/dist/worker/index.js +74 -35
  10. package/package.json +2 -2
  11. package/reference/_navigation.md +12 -3
  12. package/reference/_reference-manifest.json +42 -0
  13. package/reference/core/exports.mdx +2 -0
  14. package/reference/packages/core/src/business/README.md +4 -1
  15. package/reference/packages/core/src/content/README.md +24 -0
  16. package/reference/packages/core/src/organization-model/README.md +148 -149
  17. package/reference/packages/core/src/organization-model/readiness/README.md +42 -0
  18. package/reference/packages/ui/src/features/README.md +28 -28
  19. package/reference/rules/shared-types.md +21 -0
  20. package/reference/scaffold/core/organization-graph.mdx +2 -3
  21. package/reference/scaffold/core/organization-model.mdx +2 -6
  22. package/reference/scaffold/operations/propagation-pipeline.md +15 -16
  23. package/reference/scaffold/operations/scaffold-maintenance.md +3 -2
  24. package/reference/scaffold/operations/workflow-recipes.md +2 -2
  25. package/reference/scaffold/recipes/customize-crm-actions.md +5 -5
  26. package/reference/scaffold/recipes/extend-content.md +301 -0
  27. package/reference/scaffold/recipes/extend-lead-gen.md +14 -16
  28. package/reference/scaffold/recipes/index.md +4 -1
  29. package/reference/scaffold/reference/contracts.md +18 -55
  30. package/reference/scaffold/reference/feature-registry.md +3 -0
  31. package/reference/scaffold/reference/glossary.md +1 -1
  32. package/reference/scaffold/ui/customization.md +2 -2
  33. package/reference/scaffold/ui/feature-shell.mdx +1 -3
  34. package/reference/sdk/cli-management.mdx +199 -30
  35. package/reference/sdk/cli.mdx +90 -13
  36. package/reference/sdk/framework/agent.mdx +6 -0
  37. package/reference/sdk/platform-tools/adapters-platform.mdx +3 -1
  38. package/reference/sdk/platform-tools/index.mdx +0 -2
  39. package/reference/sdk/resources/patterns.mdx +14 -6
  40. package/reference/ui/exports.mdx +1 -0
package/dist/index.d.ts CHANGED
@@ -1578,53 +1578,6 @@ type Json = string | number | boolean | null | {
1578
1578
  type Database = {
1579
1579
  public: {
1580
1580
  Tables: {
1581
- acq_artifacts: {
1582
- Row: {
1583
- content: Json;
1584
- created_at: string;
1585
- created_by: string | null;
1586
- id: string;
1587
- kind: string;
1588
- organization_id: string;
1589
- owner_id: string;
1590
- owner_kind: string;
1591
- source_execution_id: string | null;
1592
- version: number;
1593
- };
1594
- Insert: {
1595
- content: Json;
1596
- created_at?: string;
1597
- created_by?: string | null;
1598
- id?: string;
1599
- kind: string;
1600
- organization_id: string;
1601
- owner_id: string;
1602
- owner_kind: string;
1603
- source_execution_id?: string | null;
1604
- version?: number;
1605
- };
1606
- Update: {
1607
- content?: Json;
1608
- created_at?: string;
1609
- created_by?: string | null;
1610
- id?: string;
1611
- kind?: string;
1612
- organization_id?: string;
1613
- owner_id?: string;
1614
- owner_kind?: string;
1615
- source_execution_id?: string | null;
1616
- version?: number;
1617
- };
1618
- Relationships: [
1619
- {
1620
- foreignKeyName: "acq_artifacts_organization_id_fkey";
1621
- columns: ["organization_id"];
1622
- isOneToOne: false;
1623
- referencedRelation: "organizations";
1624
- referencedColumns: ["id"];
1625
- }
1626
- ];
1627
- };
1628
1581
  acq_companies: {
1629
1582
  Row: {
1630
1583
  batch_id: string | null;
@@ -1836,122 +1789,6 @@ type Database = {
1836
1789
  }
1837
1790
  ];
1838
1791
  };
1839
- acq_content: {
1840
- Row: {
1841
- body: string | null;
1842
- created_at: string;
1843
- id: string;
1844
- organization_id: string;
1845
- pillar: string;
1846
- status: string;
1847
- title: string;
1848
- updated_at: string;
1849
- };
1850
- Insert: {
1851
- body?: string | null;
1852
- created_at?: string;
1853
- id?: string;
1854
- organization_id: string;
1855
- pillar: string;
1856
- status?: string;
1857
- title: string;
1858
- updated_at?: string;
1859
- };
1860
- Update: {
1861
- body?: string | null;
1862
- created_at?: string;
1863
- id?: string;
1864
- organization_id?: string;
1865
- pillar?: string;
1866
- status?: string;
1867
- title?: string;
1868
- updated_at?: string;
1869
- };
1870
- Relationships: [
1871
- {
1872
- foreignKeyName: "acq_content_organization_id_fkey";
1873
- columns: ["organization_id"];
1874
- isOneToOne: false;
1875
- referencedRelation: "organizations";
1876
- referencedColumns: ["id"];
1877
- }
1878
- ];
1879
- };
1880
- acq_content_distributions: {
1881
- Row: {
1882
- adapted_body: string | null;
1883
- checklist: Json | null;
1884
- content_id: string;
1885
- created_at: string;
1886
- format: string;
1887
- id: string;
1888
- media_urls: Json;
1889
- metrics: Json;
1890
- metrics_updated_at: string | null;
1891
- organization_id: string;
1892
- platform: string;
1893
- platform_content: Json | null;
1894
- platform_post_id: string | null;
1895
- platform_url: string | null;
1896
- published_at: string | null;
1897
- status: string;
1898
- updated_at: string;
1899
- };
1900
- Insert: {
1901
- adapted_body?: string | null;
1902
- checklist?: Json | null;
1903
- content_id: string;
1904
- created_at?: string;
1905
- format: string;
1906
- id?: string;
1907
- media_urls?: Json;
1908
- metrics?: Json;
1909
- metrics_updated_at?: string | null;
1910
- organization_id: string;
1911
- platform: string;
1912
- platform_content?: Json | null;
1913
- platform_post_id?: string | null;
1914
- platform_url?: string | null;
1915
- published_at?: string | null;
1916
- status?: string;
1917
- updated_at?: string;
1918
- };
1919
- Update: {
1920
- adapted_body?: string | null;
1921
- checklist?: Json | null;
1922
- content_id?: string;
1923
- created_at?: string;
1924
- format?: string;
1925
- id?: string;
1926
- media_urls?: Json;
1927
- metrics?: Json;
1928
- metrics_updated_at?: string | null;
1929
- organization_id?: string;
1930
- platform?: string;
1931
- platform_content?: Json | null;
1932
- platform_post_id?: string | null;
1933
- platform_url?: string | null;
1934
- published_at?: string | null;
1935
- status?: string;
1936
- updated_at?: string;
1937
- };
1938
- Relationships: [
1939
- {
1940
- foreignKeyName: "acq_content_distributions_content_id_fkey";
1941
- columns: ["content_id"];
1942
- isOneToOne: false;
1943
- referencedRelation: "acq_content";
1944
- referencedColumns: ["id"];
1945
- },
1946
- {
1947
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
1948
- columns: ["organization_id"];
1949
- isOneToOne: false;
1950
- referencedRelation: "organizations";
1951
- referencedColumns: ["id"];
1952
- }
1953
- ];
1954
- };
1955
1792
  acq_deal_notes: {
1956
1793
  Row: {
1957
1794
  author_user_id: string | null;
@@ -1981,6 +1818,13 @@ type Database = {
1981
1818
  updated_at?: string;
1982
1819
  };
1983
1820
  Relationships: [
1821
+ {
1822
+ foreignKeyName: "acq_deal_notes_author_user_id_fkey";
1823
+ columns: ["author_user_id"];
1824
+ isOneToOne: false;
1825
+ referencedRelation: "users";
1826
+ referencedColumns: ["id"];
1827
+ },
1984
1828
  {
1985
1829
  foreignKeyName: "acq_deal_notes_deal_id_fkey";
1986
1830
  columns: ["deal_id"];
@@ -2044,6 +1888,27 @@ type Database = {
2044
1888
  updated_at?: string;
2045
1889
  };
2046
1890
  Relationships: [
1891
+ {
1892
+ foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
1893
+ columns: ["assignee_user_id"];
1894
+ isOneToOne: false;
1895
+ referencedRelation: "users";
1896
+ referencedColumns: ["id"];
1897
+ },
1898
+ {
1899
+ foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
1900
+ columns: ["completed_by_user_id"];
1901
+ isOneToOne: false;
1902
+ referencedRelation: "users";
1903
+ referencedColumns: ["id"];
1904
+ },
1905
+ {
1906
+ foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
1907
+ columns: ["created_by_user_id"];
1908
+ isOneToOne: false;
1909
+ referencedRelation: "users";
1910
+ referencedColumns: ["id"];
1911
+ },
2047
1912
  {
2048
1913
  foreignKeyName: "acq_deal_tasks_deal_id_fkey";
2049
1914
  columns: ["deal_id"];
@@ -2200,6 +2065,13 @@ type Database = {
2200
2065
  referencedRelation: "acq_contacts";
2201
2066
  referencedColumns: ["id"];
2202
2067
  },
2068
+ {
2069
+ foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
2070
+ columns: ["discovery_submitted_by"];
2071
+ isOneToOne: false;
2072
+ referencedRelation: "users";
2073
+ referencedColumns: ["id"];
2074
+ },
2203
2075
  {
2204
2076
  foreignKeyName: "acq_deals_organization_id_fkey";
2205
2077
  columns: ["organization_id"];
@@ -2207,6 +2079,13 @@ type Database = {
2207
2079
  referencedRelation: "organizations";
2208
2080
  referencedColumns: ["id"];
2209
2081
  },
2082
+ {
2083
+ foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
2084
+ columns: ["proposal_reviewed_by"];
2085
+ isOneToOne: false;
2086
+ referencedRelation: "users";
2087
+ referencedColumns: ["id"];
2088
+ },
2210
2089
  {
2211
2090
  foreignKeyName: "acq_deals_source_list_id_fkey";
2212
2091
  columns: ["source_list_id"];
@@ -2260,6 +2139,13 @@ type Database = {
2260
2139
  state_key?: string;
2261
2140
  };
2262
2141
  Relationships: [
2142
+ {
2143
+ foreignKeyName: "acq_list_companies_added_by_fkey";
2144
+ columns: ["added_by"];
2145
+ isOneToOne: false;
2146
+ referencedRelation: "users";
2147
+ referencedColumns: ["id"];
2148
+ },
2263
2149
  {
2264
2150
  foreignKeyName: "acq_list_companies_company_id_fkey";
2265
2151
  columns: ["company_id"];
@@ -2366,6 +2252,13 @@ type Database = {
2366
2252
  state_key?: string;
2367
2253
  };
2368
2254
  Relationships: [
2255
+ {
2256
+ foreignKeyName: "acq_list_members_added_by_fkey";
2257
+ columns: ["added_by"];
2258
+ isOneToOne: false;
2259
+ referencedRelation: "users";
2260
+ referencedColumns: ["id"];
2261
+ },
2369
2262
  {
2370
2263
  foreignKeyName: "acq_list_members_contact_id_fkey";
2371
2264
  columns: ["contact_id"];
@@ -2719,6 +2612,7 @@ type Database = {
2719
2612
  activities: {
2720
2613
  Row: {
2721
2614
  activity_type: string;
2615
+ actor_api_key_id: string | null;
2722
2616
  actor_id: string | null;
2723
2617
  actor_type: string | null;
2724
2618
  created_at: string;
@@ -2735,6 +2629,7 @@ type Database = {
2735
2629
  };
2736
2630
  Insert: {
2737
2631
  activity_type: string;
2632
+ actor_api_key_id?: string | null;
2738
2633
  actor_id?: string | null;
2739
2634
  actor_type?: string | null;
2740
2635
  created_at?: string;
@@ -2751,6 +2646,7 @@ type Database = {
2751
2646
  };
2752
2647
  Update: {
2753
2648
  activity_type?: string;
2649
+ actor_api_key_id?: string | null;
2754
2650
  actor_id?: string | null;
2755
2651
  actor_type?: string | null;
2756
2652
  created_at?: string;
@@ -2766,6 +2662,20 @@ type Database = {
2766
2662
  title?: string;
2767
2663
  };
2768
2664
  Relationships: [
2665
+ {
2666
+ foreignKeyName: "activities_actor_api_key_id_fkey";
2667
+ columns: ["actor_api_key_id"];
2668
+ isOneToOne: false;
2669
+ referencedRelation: "api_keys";
2670
+ referencedColumns: ["id"];
2671
+ },
2672
+ {
2673
+ foreignKeyName: "activities_actor_id_fkey";
2674
+ columns: ["actor_id"];
2675
+ isOneToOne: false;
2676
+ referencedRelation: "users";
2677
+ referencedColumns: ["id"];
2678
+ },
2769
2679
  {
2770
2680
  foreignKeyName: "activities_organization_id_fkey";
2771
2681
  columns: ["organization_id"];
@@ -2846,6 +2756,7 @@ type Database = {
2846
2756
  api_keys: {
2847
2757
  Row: {
2848
2758
  created_at: string | null;
2759
+ created_by: string | null;
2849
2760
  id: string;
2850
2761
  key_hash: string;
2851
2762
  last_used_at: string | null;
@@ -2854,6 +2765,7 @@ type Database = {
2854
2765
  };
2855
2766
  Insert: {
2856
2767
  created_at?: string | null;
2768
+ created_by?: string | null;
2857
2769
  id?: string;
2858
2770
  key_hash: string;
2859
2771
  last_used_at?: string | null;
@@ -2862,6 +2774,7 @@ type Database = {
2862
2774
  };
2863
2775
  Update: {
2864
2776
  created_at?: string | null;
2777
+ created_by?: string | null;
2865
2778
  id?: string;
2866
2779
  key_hash?: string;
2867
2780
  last_used_at?: string | null;
@@ -2869,6 +2782,13 @@ type Database = {
2869
2782
  organization_id?: string;
2870
2783
  };
2871
2784
  Relationships: [
2785
+ {
2786
+ foreignKeyName: "api_keys_created_by_fkey";
2787
+ columns: ["created_by"];
2788
+ isOneToOne: false;
2789
+ referencedRelation: "users";
2790
+ referencedColumns: ["id"];
2791
+ },
2872
2792
  {
2873
2793
  foreignKeyName: "api_keys_organization_id_fkey";
2874
2794
  columns: ["organization_id"];
@@ -2878,6 +2798,62 @@ type Database = {
2878
2798
  }
2879
2799
  ];
2880
2800
  };
2801
+ artifacts: {
2802
+ Row: {
2803
+ content: Json;
2804
+ created_at: string;
2805
+ created_by: string | null;
2806
+ id: string;
2807
+ is_active: boolean;
2808
+ kind: string;
2809
+ organization_id: string;
2810
+ owner_id: string | null;
2811
+ owner_kind: string;
2812
+ pipeline_id: string | null;
2813
+ source_execution_id: string | null;
2814
+ updated_at: string;
2815
+ version: number;
2816
+ };
2817
+ Insert: {
2818
+ content: Json;
2819
+ created_at?: string;
2820
+ created_by?: string | null;
2821
+ id?: string;
2822
+ is_active?: boolean;
2823
+ kind: string;
2824
+ organization_id: string;
2825
+ owner_id?: string | null;
2826
+ owner_kind: string;
2827
+ pipeline_id?: string | null;
2828
+ source_execution_id?: string | null;
2829
+ updated_at?: string;
2830
+ version?: number;
2831
+ };
2832
+ Update: {
2833
+ content?: Json;
2834
+ created_at?: string;
2835
+ created_by?: string | null;
2836
+ id?: string;
2837
+ is_active?: boolean;
2838
+ kind?: string;
2839
+ organization_id?: string;
2840
+ owner_id?: string | null;
2841
+ owner_kind?: string;
2842
+ pipeline_id?: string | null;
2843
+ source_execution_id?: string | null;
2844
+ updated_at?: string;
2845
+ version?: number;
2846
+ };
2847
+ Relationships: [
2848
+ {
2849
+ foreignKeyName: "artifacts_organization_id_fkey";
2850
+ columns: ["organization_id"];
2851
+ isOneToOne: false;
2852
+ referencedRelation: "organizations";
2853
+ referencedColumns: ["id"];
2854
+ }
2855
+ ];
2856
+ };
2881
2857
  clients: {
2882
2858
  Row: {
2883
2859
  converted_at: string | null;
@@ -3049,6 +3025,317 @@ type Database = {
3049
3025
  }
3050
3026
  ];
3051
3027
  };
3028
+ content_distributions: {
3029
+ Row: {
3030
+ adapted_body: string | null;
3031
+ checklist: Json | null;
3032
+ content_item_id: string;
3033
+ created_at: string;
3034
+ format: string;
3035
+ id: string;
3036
+ media_urls: Json;
3037
+ metrics: Json;
3038
+ metrics_updated_at: string | null;
3039
+ organization_id: string;
3040
+ platform: string;
3041
+ platform_content: Json | null;
3042
+ platform_post_id: string | null;
3043
+ platform_url: string | null;
3044
+ processing_state: Json;
3045
+ publish_method: string | null;
3046
+ published_at: string | null;
3047
+ status: string;
3048
+ updated_at: string;
3049
+ };
3050
+ Insert: {
3051
+ adapted_body?: string | null;
3052
+ checklist?: Json | null;
3053
+ content_item_id: string;
3054
+ created_at?: string;
3055
+ format: string;
3056
+ id?: string;
3057
+ media_urls?: Json;
3058
+ metrics?: Json;
3059
+ metrics_updated_at?: string | null;
3060
+ organization_id: string;
3061
+ platform: string;
3062
+ platform_content?: Json | null;
3063
+ platform_post_id?: string | null;
3064
+ platform_url?: string | null;
3065
+ processing_state?: Json;
3066
+ publish_method?: string | null;
3067
+ published_at?: string | null;
3068
+ status?: string;
3069
+ updated_at?: string;
3070
+ };
3071
+ Update: {
3072
+ adapted_body?: string | null;
3073
+ checklist?: Json | null;
3074
+ content_item_id?: string;
3075
+ created_at?: string;
3076
+ format?: string;
3077
+ id?: string;
3078
+ media_urls?: Json;
3079
+ metrics?: Json;
3080
+ metrics_updated_at?: string | null;
3081
+ organization_id?: string;
3082
+ platform?: string;
3083
+ platform_content?: Json | null;
3084
+ platform_post_id?: string | null;
3085
+ platform_url?: string | null;
3086
+ processing_state?: Json;
3087
+ publish_method?: string | null;
3088
+ published_at?: string | null;
3089
+ status?: string;
3090
+ updated_at?: string;
3091
+ };
3092
+ Relationships: [
3093
+ {
3094
+ foreignKeyName: "content_distributions_content_item_id_fkey";
3095
+ columns: ["content_item_id"];
3096
+ isOneToOne: false;
3097
+ referencedRelation: "content_items";
3098
+ referencedColumns: ["id"];
3099
+ },
3100
+ {
3101
+ foreignKeyName: "content_distributions_organization_id_fkey";
3102
+ columns: ["organization_id"];
3103
+ isOneToOne: false;
3104
+ referencedRelation: "organizations";
3105
+ referencedColumns: ["id"];
3106
+ }
3107
+ ];
3108
+ };
3109
+ content_item_attempts: {
3110
+ Row: {
3111
+ attempt_number: number;
3112
+ content_item_id: string;
3113
+ created_at: string;
3114
+ created_by: string | null;
3115
+ id: string;
3116
+ organization_id: string;
3117
+ payload: Json;
3118
+ source_execution_id: string | null;
3119
+ status: string;
3120
+ step_key: string | null;
3121
+ };
3122
+ Insert: {
3123
+ attempt_number: number;
3124
+ content_item_id: string;
3125
+ created_at?: string;
3126
+ created_by?: string | null;
3127
+ id?: string;
3128
+ organization_id: string;
3129
+ payload?: Json;
3130
+ source_execution_id?: string | null;
3131
+ status: string;
3132
+ step_key?: string | null;
3133
+ };
3134
+ Update: {
3135
+ attempt_number?: number;
3136
+ content_item_id?: string;
3137
+ created_at?: string;
3138
+ created_by?: string | null;
3139
+ id?: string;
3140
+ organization_id?: string;
3141
+ payload?: Json;
3142
+ source_execution_id?: string | null;
3143
+ status?: string;
3144
+ step_key?: string | null;
3145
+ };
3146
+ Relationships: [
3147
+ {
3148
+ foreignKeyName: "content_item_attempts_content_item_id_fkey";
3149
+ columns: ["content_item_id"];
3150
+ isOneToOne: false;
3151
+ referencedRelation: "content_items";
3152
+ referencedColumns: ["id"];
3153
+ },
3154
+ {
3155
+ foreignKeyName: "content_item_attempts_created_by_fkey";
3156
+ columns: ["created_by"];
3157
+ isOneToOne: false;
3158
+ referencedRelation: "users";
3159
+ referencedColumns: ["id"];
3160
+ },
3161
+ {
3162
+ foreignKeyName: "content_item_attempts_organization_id_fkey";
3163
+ columns: ["organization_id"];
3164
+ isOneToOne: false;
3165
+ referencedRelation: "organizations";
3166
+ referencedColumns: ["id"];
3167
+ },
3168
+ {
3169
+ foreignKeyName: "content_item_attempts_source_execution_id_fkey";
3170
+ columns: ["source_execution_id"];
3171
+ isOneToOne: false;
3172
+ referencedRelation: "execution_logs";
3173
+ referencedColumns: ["execution_id"];
3174
+ }
3175
+ ];
3176
+ };
3177
+ content_items: {
3178
+ Row: {
3179
+ body: string | null;
3180
+ client_id: string | null;
3181
+ created_at: string;
3182
+ created_by: string | null;
3183
+ id: string;
3184
+ organization_id: string;
3185
+ payload: Json;
3186
+ pillar: string | null;
3187
+ pipeline_id: string | null;
3188
+ processing_state: Json;
3189
+ reject_reason: string | null;
3190
+ reviewed_at: string | null;
3191
+ reviewed_by: string | null;
3192
+ reviewer_feedback: string | null;
3193
+ source_asset_id: string | null;
3194
+ status: string;
3195
+ title: string;
3196
+ updated_at: string;
3197
+ updated_by: string | null;
3198
+ };
3199
+ Insert: {
3200
+ body?: string | null;
3201
+ client_id?: string | null;
3202
+ created_at?: string;
3203
+ created_by?: string | null;
3204
+ id?: string;
3205
+ organization_id: string;
3206
+ payload?: Json;
3207
+ pillar?: string | null;
3208
+ pipeline_id?: string | null;
3209
+ processing_state?: Json;
3210
+ reject_reason?: string | null;
3211
+ reviewed_at?: string | null;
3212
+ reviewed_by?: string | null;
3213
+ reviewer_feedback?: string | null;
3214
+ source_asset_id?: string | null;
3215
+ status?: string;
3216
+ title: string;
3217
+ updated_at?: string;
3218
+ updated_by?: string | null;
3219
+ };
3220
+ Update: {
3221
+ body?: string | null;
3222
+ client_id?: string | null;
3223
+ created_at?: string;
3224
+ created_by?: string | null;
3225
+ id?: string;
3226
+ organization_id?: string;
3227
+ payload?: Json;
3228
+ pillar?: string | null;
3229
+ pipeline_id?: string | null;
3230
+ processing_state?: Json;
3231
+ reject_reason?: string | null;
3232
+ reviewed_at?: string | null;
3233
+ reviewed_by?: string | null;
3234
+ reviewer_feedback?: string | null;
3235
+ source_asset_id?: string | null;
3236
+ status?: string;
3237
+ title?: string;
3238
+ updated_at?: string;
3239
+ updated_by?: string | null;
3240
+ };
3241
+ Relationships: [
3242
+ {
3243
+ foreignKeyName: "content_items_client_id_fkey";
3244
+ columns: ["client_id"];
3245
+ isOneToOne: false;
3246
+ referencedRelation: "clients";
3247
+ referencedColumns: ["id"];
3248
+ },
3249
+ {
3250
+ foreignKeyName: "content_items_created_by_fkey";
3251
+ columns: ["created_by"];
3252
+ isOneToOne: false;
3253
+ referencedRelation: "users";
3254
+ referencedColumns: ["id"];
3255
+ },
3256
+ {
3257
+ foreignKeyName: "content_items_organization_id_fkey";
3258
+ columns: ["organization_id"];
3259
+ isOneToOne: false;
3260
+ referencedRelation: "organizations";
3261
+ referencedColumns: ["id"];
3262
+ },
3263
+ {
3264
+ foreignKeyName: "content_items_reviewed_by_fkey";
3265
+ columns: ["reviewed_by"];
3266
+ isOneToOne: false;
3267
+ referencedRelation: "users";
3268
+ referencedColumns: ["id"];
3269
+ },
3270
+ {
3271
+ foreignKeyName: "content_items_source_asset_id_fkey";
3272
+ columns: ["source_asset_id"];
3273
+ isOneToOne: false;
3274
+ referencedRelation: "content_source_assets";
3275
+ referencedColumns: ["id"];
3276
+ },
3277
+ {
3278
+ foreignKeyName: "content_items_updated_by_fkey";
3279
+ columns: ["updated_by"];
3280
+ isOneToOne: false;
3281
+ referencedRelation: "users";
3282
+ referencedColumns: ["id"];
3283
+ }
3284
+ ];
3285
+ };
3286
+ content_source_assets: {
3287
+ Row: {
3288
+ created_at: string;
3289
+ duration_seconds: number | null;
3290
+ external_url: string | null;
3291
+ id: string;
3292
+ kind: string;
3293
+ metadata: Json;
3294
+ organization_id: string;
3295
+ payload: Json;
3296
+ processing_state: Json;
3297
+ storage_path: string | null;
3298
+ title: string;
3299
+ updated_at: string;
3300
+ };
3301
+ Insert: {
3302
+ created_at?: string;
3303
+ duration_seconds?: number | null;
3304
+ external_url?: string | null;
3305
+ id?: string;
3306
+ kind: string;
3307
+ metadata?: Json;
3308
+ organization_id: string;
3309
+ payload?: Json;
3310
+ processing_state?: Json;
3311
+ storage_path?: string | null;
3312
+ title: string;
3313
+ updated_at?: string;
3314
+ };
3315
+ Update: {
3316
+ created_at?: string;
3317
+ duration_seconds?: number | null;
3318
+ external_url?: string | null;
3319
+ id?: string;
3320
+ kind?: string;
3321
+ metadata?: Json;
3322
+ organization_id?: string;
3323
+ payload?: Json;
3324
+ processing_state?: Json;
3325
+ storage_path?: string | null;
3326
+ title?: string;
3327
+ updated_at?: string;
3328
+ };
3329
+ Relationships: [
3330
+ {
3331
+ foreignKeyName: "content_source_assets_organization_id_fkey";
3332
+ columns: ["organization_id"];
3333
+ isOneToOne: false;
3334
+ referencedRelation: "organizations";
3335
+ referencedColumns: ["id"];
3336
+ }
3337
+ ];
3338
+ };
3052
3339
  credentials: {
3053
3340
  Row: {
3054
3341
  created_at: string;
@@ -4663,7 +4950,34 @@ type Database = {
4663
4950
  p_role_id: string;
4664
4951
  p_target_membership_id: string;
4665
4952
  };
4666
- Returns: boolean;
4953
+ Returns: boolean;
4954
+ };
4955
+ create_artifact_version: {
4956
+ Args: {
4957
+ p_content: Json;
4958
+ p_created_by?: string;
4959
+ p_kind: string;
4960
+ p_organization_id: string;
4961
+ p_owner_id?: string;
4962
+ p_owner_kind: string;
4963
+ p_pipeline_id?: string;
4964
+ p_source_execution_id?: string;
4965
+ };
4966
+ Returns: {
4967
+ content: Json;
4968
+ created_at: string;
4969
+ created_by: string | null;
4970
+ id: string;
4971
+ is_active: boolean;
4972
+ kind: string;
4973
+ organization_id: string;
4974
+ owner_id: string | null;
4975
+ owner_kind: string;
4976
+ pipeline_id: string | null;
4977
+ source_execution_id: string | null;
4978
+ updated_at: string;
4979
+ version: number;
4980
+ };
4667
4981
  };
4668
4982
  current_user_is_platform_admin: {
4669
4983
  Args: Record<PropertyKey, never>;
@@ -4771,6 +5085,12 @@ type Database = {
4771
5085
  Args: Record<PropertyKey, never>;
4772
5086
  Returns: Json;
4773
5087
  };
5088
+ purge_stale_test_data: {
5089
+ Args: {
5090
+ p_max_age?: unknown;
5091
+ };
5092
+ Returns: Json;
5093
+ };
4774
5094
  recompute_all_memberships: {
4775
5095
  Args: Record<PropertyKey, never>;
4776
5096
  Returns: undefined;
@@ -5794,6 +6114,31 @@ declare const BuildPlanSnapshotStepSchema: z.ZodObject<{
5794
6114
  verifyOnRun: z.ZodOptional<z.ZodBoolean>;
5795
6115
  }, z.core.$strip>>>;
5796
6116
  }, z.core.$strip>;
6117
+ declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
6118
+ company: "company";
6119
+ contact: "contact";
6120
+ list: "list";
6121
+ organization: "organization";
6122
+ deal: "deal";
6123
+ list_member: "list_member";
6124
+ }>;
6125
+ declare const AcqArtifactResponseSchema: z.ZodObject<{
6126
+ id: z.ZodString;
6127
+ organizationId: z.ZodString;
6128
+ ownerKind: z.ZodString;
6129
+ ownerId: z.ZodNullable<z.ZodString>;
6130
+ kind: z.ZodString;
6131
+ pipelineId: z.ZodNullable<z.ZodString>;
6132
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6133
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
6134
+ createdBy: z.ZodNullable<z.ZodString>;
6135
+ createdAt: z.ZodString;
6136
+ updatedAt: z.ZodString;
6137
+ isActive: z.ZodBoolean;
6138
+ version: z.ZodNumber;
6139
+ }, z.core.$strip>;
6140
+ type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
6141
+ type AcqArtifactResponse = z.infer<typeof AcqArtifactResponseSchema>;
5797
6142
  type PipelineStage = z.infer<typeof PipelineStageSchema>;
5798
6143
  type DataMode = z.infer<typeof DataModeSchema>;
5799
6144
  type ProcessingStageStatus = z.infer<typeof ProcessingStageStatusSchema>;
@@ -7006,22 +7351,31 @@ interface ReadinessProfileEntry {
7006
7351
  /**
7007
7352
  * Look up a readiness profile entry by id.
7008
7353
  *
7009
- * Returns `undefined` for unknown ids (not in the built-in list and not
7010
- * registered via `registerReadinessProfile`). Unknown profiles are validated
7011
- * structurally through the system's `readinessContract` unknown-profile is
7012
- * NOT a schema-layer rejection.
7354
+ * `kind: 'built-in'` reflects either a platform-reserved id or a registered
7355
+ * validator (`registerBuiltInReadinessProfile`) the single source of truth
7356
+ * for anything beyond the reserved 3 this can never disagree with. `kind:
7357
+ * 'custom'` reflects an id acknowledged via `registerReadinessProfile` below.
7358
+ * Returns `undefined` for ids that are neither; unknown profiles are
7359
+ * validated structurally through the system's `readinessContract` —
7360
+ * unknown-profile is NOT a schema-layer rejection.
7013
7361
  */
7014
7362
  declare function lookupReadinessProfile(profileId: string): ReadinessProfileEntry | undefined;
7015
7363
  /**
7016
- * Register a custom readiness profile preset.
7364
+ * Acknowledge a custom (non-built-in) readiness profile id.
7017
7365
  *
7018
- * Tenant tooling or SDK extensions may call this during startup to register
7019
- * named presets. Registered presets are then resolvable via `lookupReadinessProfile`.
7020
- * Built-in profile ids cannot be overwritten.
7366
+ * This does NOT register validation logic. Tenant tooling or SDK extensions
7367
+ * that want real structural readiness checks must call
7368
+ * `registerBuiltInReadinessProfile` (from `../readiness`) instead that is
7369
+ * the actual extension point this function was previously, incorrectly,
7370
+ * documented as an alternative to. Built-in profile ids cannot be
7371
+ * overwritten: calling this with an id that already has a registered
7372
+ * validator returns the existing built-in entry unchanged.
7021
7373
  */
7022
7374
  declare function registerReadinessProfile(profileId: string): ReadinessProfileEntry;
7023
7375
  /**
7024
- * Return true if the given profile id is a built-in platform preset.
7376
+ * Return true if the given profile id is a platform-reserved preset or has a
7377
+ * registered built-in validator (`registerBuiltInReadinessProfile`). See
7378
+ * `isReservedPlatformProfileId` and the module note above.
7025
7379
  */
7026
7380
  declare function isBuiltInReadinessProfile(profileId: string): boolean;
7027
7381
  type JsonPrimitive = string | number | boolean | null;
@@ -7040,7 +7394,6 @@ interface SystemEntry {
7040
7394
  path: string;
7041
7395
  surfaces: string[];
7042
7396
  icon?: string;
7043
- order?: number;
7044
7397
  };
7045
7398
  lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
7046
7399
  responsibleRoleId?: string;
@@ -7050,17 +7403,12 @@ interface SystemEntry {
7050
7403
  intent: 'exposes' | 'consumes';
7051
7404
  invocation?: unknown;
7052
7405
  }[];
7053
- policies?: string[];
7054
7406
  drivesGoals?: string[];
7055
7407
  apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
7056
- /** @deprecated Use lifecycle. Accepted for one publish cycle. */
7057
- status?: 'active' | 'deprecated' | 'archived';
7058
7408
  path?: string;
7059
7409
  icon?: string;
7060
7410
  uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
7061
7411
  enabled?: boolean;
7062
- devOnly?: boolean;
7063
- requiresAdmin?: boolean;
7064
7412
  order: number;
7065
7413
  config?: Record<string, JsonValue>;
7066
7414
  ontology?: OntologyScope;
@@ -7113,9 +7461,6 @@ declare const OmTopologyNodeRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7113
7461
  }, z.core.$strip>, z.ZodObject<{
7114
7462
  kind: z.ZodLiteral<"ontology">;
7115
7463
  id: z.ZodString;
7116
- }, z.core.$strip>, z.ZodObject<{
7117
- kind: z.ZodLiteral<"policy">;
7118
- id: z.ZodString;
7119
7464
  }, z.core.$strip>, z.ZodObject<{
7120
7465
  kind: z.ZodLiteral<"role">;
7121
7466
  id: z.ZodString;
@@ -7139,9 +7484,6 @@ declare const OmTopologyRelationshipSchema: z.ZodObject<{
7139
7484
  }, z.core.$strip>, z.ZodObject<{
7140
7485
  kind: z.ZodLiteral<"ontology">;
7141
7486
  id: z.ZodString;
7142
- }, z.core.$strip>, z.ZodObject<{
7143
- kind: z.ZodLiteral<"policy">;
7144
- id: z.ZodString;
7145
7487
  }, z.core.$strip>, z.ZodObject<{
7146
7488
  kind: z.ZodLiteral<"role">;
7147
7489
  id: z.ZodString;
@@ -7169,9 +7511,6 @@ declare const OmTopologyRelationshipSchema: z.ZodObject<{
7169
7511
  }, z.core.$strip>, z.ZodObject<{
7170
7512
  kind: z.ZodLiteral<"ontology">;
7171
7513
  id: z.ZodString;
7172
- }, z.core.$strip>, z.ZodObject<{
7173
- kind: z.ZodLiteral<"policy">;
7174
- id: z.ZodString;
7175
7514
  }, z.core.$strip>, z.ZodObject<{
7176
7515
  kind: z.ZodLiteral<"role">;
7177
7516
  id: z.ZodString;
@@ -7201,9 +7540,6 @@ declare const OmTopologyDomainSchema: z.ZodDefault<z.ZodObject<{
7201
7540
  }, z.core.$strip>, z.ZodObject<{
7202
7541
  kind: z.ZodLiteral<"ontology">;
7203
7542
  id: z.ZodString;
7204
- }, z.core.$strip>, z.ZodObject<{
7205
- kind: z.ZodLiteral<"policy">;
7206
- id: z.ZodString;
7207
7543
  }, z.core.$strip>, z.ZodObject<{
7208
7544
  kind: z.ZodLiteral<"role">;
7209
7545
  id: z.ZodString;
@@ -7231,9 +7567,6 @@ declare const OmTopologyDomainSchema: z.ZodDefault<z.ZodObject<{
7231
7567
  }, z.core.$strip>, z.ZodObject<{
7232
7568
  kind: z.ZodLiteral<"ontology">;
7233
7569
  id: z.ZodString;
7234
- }, z.core.$strip>, z.ZodObject<{
7235
- kind: z.ZodLiteral<"policy">;
7236
- id: z.ZodString;
7237
7570
  }, z.core.$strip>, z.ZodObject<{
7238
7571
  kind: z.ZodLiteral<"role">;
7239
7572
  id: z.ZodString;
@@ -7275,9 +7608,6 @@ declare const topologyRef: {
7275
7608
  } | {
7276
7609
  kind: "ontology";
7277
7610
  id: string;
7278
- } | {
7279
- kind: "policy";
7280
- id: string;
7281
7611
  } | {
7282
7612
  kind: "role";
7283
7613
  id: string;
@@ -7300,9 +7630,6 @@ declare const topologyRef: {
7300
7630
  } | {
7301
7631
  kind: "ontology";
7302
7632
  id: string;
7303
- } | {
7304
- kind: "policy";
7305
- id: string;
7306
7633
  } | {
7307
7634
  kind: "role";
7308
7635
  id: string;
@@ -7325,34 +7652,6 @@ declare const topologyRef: {
7325
7652
  } | {
7326
7653
  kind: "ontology";
7327
7654
  id: string;
7328
- } | {
7329
- kind: "policy";
7330
- id: string;
7331
- } | {
7332
- kind: "role";
7333
- id: string;
7334
- } | {
7335
- kind: "trigger";
7336
- id: string;
7337
- } | {
7338
- kind: "humanCheckpoint";
7339
- id: string;
7340
- } | {
7341
- kind: "externalResource";
7342
- id: string;
7343
- };
7344
- readonly policy: (policy: TopologyRefFactoryInput) => {
7345
- kind: "system";
7346
- id: string;
7347
- } | {
7348
- kind: "resource";
7349
- id: string;
7350
- } | {
7351
- kind: "ontology";
7352
- id: string;
7353
- } | {
7354
- kind: "policy";
7355
- id: string;
7356
7655
  } | {
7357
7656
  kind: "role";
7358
7657
  id: string;
@@ -7375,9 +7674,6 @@ declare const topologyRef: {
7375
7674
  } | {
7376
7675
  kind: "ontology";
7377
7676
  id: string;
7378
- } | {
7379
- kind: "policy";
7380
- id: string;
7381
7677
  } | {
7382
7678
  kind: "role";
7383
7679
  id: string;
@@ -7400,9 +7696,6 @@ declare const topologyRef: {
7400
7696
  } | {
7401
7697
  kind: "ontology";
7402
7698
  id: string;
7403
- } | {
7404
- kind: "policy";
7405
- id: string;
7406
7699
  } | {
7407
7700
  kind: "role";
7408
7701
  id: string;
@@ -7425,9 +7718,6 @@ declare const topologyRef: {
7425
7718
  } | {
7426
7719
  kind: "ontology";
7427
7720
  id: string;
7428
- } | {
7429
- kind: "policy";
7430
- id: string;
7431
7721
  } | {
7432
7722
  kind: "role";
7433
7723
  id: string;
@@ -7450,9 +7740,6 @@ declare const topologyRef: {
7450
7740
  } | {
7451
7741
  kind: "ontology";
7452
7742
  id: string;
7453
- } | {
7454
- kind: "policy";
7455
- id: string;
7456
7743
  } | {
7457
7744
  kind: "role";
7458
7745
  id: string;
@@ -7478,9 +7765,6 @@ declare const topologyRelationship: {
7478
7765
  } | {
7479
7766
  kind: "ontology";
7480
7767
  id: string;
7481
- } | {
7482
- kind: "policy";
7483
- id: string;
7484
7768
  } | {
7485
7769
  kind: "role";
7486
7770
  id: string;
@@ -7504,9 +7788,6 @@ declare const topologyRelationship: {
7504
7788
  } | {
7505
7789
  kind: "ontology";
7506
7790
  id: string;
7507
- } | {
7508
- kind: "policy";
7509
- id: string;
7510
7791
  } | {
7511
7792
  kind: "role";
7512
7793
  id: string;
@@ -7534,9 +7815,6 @@ declare const topologyRelationship: {
7534
7815
  } | {
7535
7816
  kind: "ontology";
7536
7817
  id: string;
7537
- } | {
7538
- kind: "policy";
7539
- id: string;
7540
7818
  } | {
7541
7819
  kind: "role";
7542
7820
  id: string;
@@ -7560,9 +7838,6 @@ declare const topologyRelationship: {
7560
7838
  } | {
7561
7839
  kind: "ontology";
7562
7840
  id: string;
7563
- } | {
7564
- kind: "policy";
7565
- id: string;
7566
7841
  } | {
7567
7842
  kind: "role";
7568
7843
  id: string;
@@ -7590,9 +7865,6 @@ declare const topologyRelationship: {
7590
7865
  } | {
7591
7866
  kind: "ontology";
7592
7867
  id: string;
7593
- } | {
7594
- kind: "policy";
7595
- id: string;
7596
7868
  } | {
7597
7869
  kind: "role";
7598
7870
  id: string;
@@ -7616,9 +7888,6 @@ declare const topologyRelationship: {
7616
7888
  } | {
7617
7889
  kind: "ontology";
7618
7890
  id: string;
7619
- } | {
7620
- kind: "policy";
7621
- id: string;
7622
7891
  } | {
7623
7892
  kind: "role";
7624
7893
  id: string;
@@ -7646,9 +7915,6 @@ declare const topologyRelationship: {
7646
7915
  } | {
7647
7916
  kind: "ontology";
7648
7917
  id: string;
7649
- } | {
7650
- kind: "policy";
7651
- id: string;
7652
7918
  } | {
7653
7919
  kind: "role";
7654
7920
  id: string;
@@ -7672,9 +7938,6 @@ declare const topologyRelationship: {
7672
7938
  } | {
7673
7939
  kind: "ontology";
7674
7940
  id: string;
7675
- } | {
7676
- kind: "policy";
7677
- id: string;
7678
7941
  } | {
7679
7942
  kind: "role";
7680
7943
  id: string;
@@ -7702,9 +7965,6 @@ declare const topologyRelationship: {
7702
7965
  } | {
7703
7966
  kind: "ontology";
7704
7967
  id: string;
7705
- } | {
7706
- kind: "policy";
7707
- id: string;
7708
7968
  } | {
7709
7969
  kind: "role";
7710
7970
  id: string;
@@ -7728,9 +7988,6 @@ declare const topologyRelationship: {
7728
7988
  } | {
7729
7989
  kind: "ontology";
7730
7990
  id: string;
7731
- } | {
7732
- kind: "policy";
7733
- id: string;
7734
7991
  } | {
7735
7992
  kind: "role";
7736
7993
  id: string;
@@ -7758,9 +8015,6 @@ declare const topologyRelationship: {
7758
8015
  } | {
7759
8016
  kind: "ontology";
7760
8017
  id: string;
7761
- } | {
7762
- kind: "policy";
7763
- id: string;
7764
8018
  } | {
7765
8019
  kind: "role";
7766
8020
  id: string;
@@ -7784,9 +8038,6 @@ declare const topologyRelationship: {
7784
8038
  } | {
7785
8039
  kind: "ontology";
7786
8040
  id: string;
7787
- } | {
7788
- kind: "policy";
7789
- id: string;
7790
8041
  } | {
7791
8042
  kind: "role";
7792
8043
  id: string;
@@ -7842,6 +8093,11 @@ type Link = z.infer<typeof LinkSchema>;
7842
8093
  * - `registerBuiltInReadinessProfile` — a profile id (e.g. `sales.lead-gen.api`)
7843
8094
  * maps to structural validation logic plus an optional model-preparation
7844
8095
  * hook run before ontology compilation (e.g. injecting a derived catalog).
8096
+ * This is the ONE readiness-profile registry (`_builtInProfileValidators`
8097
+ * below) — `../domains/systems`'s `isBuiltInReadinessProfile` /
8098
+ * `lookupReadinessProfile` read it directly via `getBuiltInReadinessProfile`
8099
+ * rather than mirroring registrations into a second map, so a profile id
8100
+ * can never read as built-in without an actual registered validator.
7845
8101
  * - `registerReadinessInterfaceMarker` — a `(systemPath, interfaceKey)` pair
7846
8102
  * maps to a synthesized interface marker for interfaces that are not
7847
8103
  * authored on `system.apiInterface` (e.g. the lead-gen/CRM handoff bridge,
@@ -7849,8 +8105,8 @@ type Link = z.infer<typeof LinkSchema>;
7849
8105
  *
7850
8106
  * `business/acquisition/ontology-validation.ts` calls both at module load to
7851
8107
  * register its three built-in profiles. Both registries are module-level
7852
- * mutable maps with no reset function, matching the existing
7853
- * `domains/systems.ts` profile registry's shape.
8108
+ * mutable maps with no reset function. Reachable by a tenant via the
8109
+ * `./organization-model/readiness` subpath (see `./index`).
7854
8110
  */
7855
8111
 
7856
8112
  type SystemInterfaceReadinessIssueFamily = 'SYSTEM_INTERFACE_MISSING' | 'SYSTEM_INTERFACE_DISABLED' | 'SYSTEM_INTERFACE_INVALID' | 'SYSTEM_INTERFACE_NOT_READY' | 'SYSTEM_BRIDGE_NOT_READY'
@@ -7916,10 +8172,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
7916
8172
  version: z.ZodDefault<z.ZodLiteral<1>>;
7917
8173
  lastModified: z.ZodString;
7918
8174
  }, z.core.$strip>>;
7919
- policies: z.ZodOptional<z.ZodObject<{
7920
- version: z.ZodDefault<z.ZodLiteral<1>>;
7921
- lastModified: z.ZodString;
7922
- }, z.core.$strip>>;
7923
8175
  knowledge: z.ZodOptional<z.ZodObject<{
7924
8176
  version: z.ZodDefault<z.ZodLiteral<1>>;
7925
8177
  lastModified: z.ZodString;
@@ -7977,10 +8229,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
7977
8229
  version: 1;
7978
8230
  lastModified: string;
7979
8231
  };
7980
- policies: {
7981
- version: 1;
7982
- lastModified: string;
7983
- };
7984
8232
  knowledge: {
7985
8233
  version: 1;
7986
8234
  lastModified: string;
@@ -8038,10 +8286,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
8038
8286
  version: 1;
8039
8287
  lastModified: string;
8040
8288
  } | undefined;
8041
- policies?: {
8042
- version: 1;
8043
- lastModified: string;
8044
- } | undefined;
8045
8289
  knowledge?: {
8046
8290
  version: 1;
8047
8291
  lastModified: string;
@@ -8635,9 +8879,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
8635
8879
  }, z.core.$strip>, z.ZodObject<{
8636
8880
  kind: z.ZodLiteral<"ontology">;
8637
8881
  id: z.ZodString;
8638
- }, z.core.$strip>, z.ZodObject<{
8639
- kind: z.ZodLiteral<"policy">;
8640
- id: z.ZodString;
8641
8882
  }, z.core.$strip>, z.ZodObject<{
8642
8883
  kind: z.ZodLiteral<"role">;
8643
8884
  id: z.ZodString;
@@ -8665,9 +8906,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
8665
8906
  }, z.core.$strip>, z.ZodObject<{
8666
8907
  kind: z.ZodLiteral<"ontology">;
8667
8908
  id: z.ZodString;
8668
- }, z.core.$strip>, z.ZodObject<{
8669
- kind: z.ZodLiteral<"policy">;
8670
- id: z.ZodString;
8671
8909
  }, z.core.$strip>, z.ZodObject<{
8672
8910
  kind: z.ZodLiteral<"role">;
8673
8911
  id: z.ZodString;
@@ -8749,66 +8987,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
8749
8987
  label: z.ZodOptional<z.ZodString>;
8750
8988
  }, z.core.$strip>>>;
8751
8989
  }, z.core.$strip>>>>;
8752
- policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8753
- id: z.ZodString;
8754
- order: z.ZodNumber;
8755
- label: z.ZodString;
8756
- description: z.ZodOptional<z.ZodString>;
8757
- trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
8758
- kind: z.ZodLiteral<"event">;
8759
- eventId: z.ZodString;
8760
- }, z.core.$strip>, z.ZodObject<{
8761
- kind: z.ZodLiteral<"action-invocation">;
8762
- actionId: z.ZodString;
8763
- }, z.core.$strip>, z.ZodObject<{
8764
- kind: z.ZodLiteral<"schedule">;
8765
- cron: z.ZodString;
8766
- }, z.core.$strip>, z.ZodObject<{
8767
- kind: z.ZodLiteral<"manual">;
8768
- }, z.core.$strip>], "kind">;
8769
- predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
8770
- kind: z.ZodLiteral<"always">;
8771
- }, z.core.$strip>, z.ZodObject<{
8772
- kind: z.ZodLiteral<"expression">;
8773
- expression: z.ZodString;
8774
- }, z.core.$strip>, z.ZodObject<{
8775
- kind: z.ZodLiteral<"threshold">;
8776
- metric: z.ZodString;
8777
- operator: z.ZodEnum<{
8778
- lt: "lt";
8779
- lte: "lte";
8780
- eq: "eq";
8781
- gte: "gte";
8782
- gt: "gt";
8783
- }>;
8784
- value: z.ZodNumber;
8785
- }, z.core.$strip>], "kind">>;
8786
- actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8787
- kind: z.ZodLiteral<"require-approval">;
8788
- roleId: z.ZodOptional<z.ZodString>;
8789
- }, z.core.$strip>, z.ZodObject<{
8790
- kind: z.ZodLiteral<"invoke-action">;
8791
- actionId: z.ZodString;
8792
- }, z.core.$strip>, z.ZodObject<{
8793
- kind: z.ZodLiteral<"notify-role">;
8794
- roleId: z.ZodString;
8795
- }, z.core.$strip>, z.ZodObject<{
8796
- kind: z.ZodLiteral<"block">;
8797
- }, z.core.$strip>], "kind">>;
8798
- appliesTo: z.ZodDefault<z.ZodObject<{
8799
- systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
8800
- actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
8801
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
8802
- roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
8803
- }, z.core.$strip>>;
8804
- lifecycle: z.ZodDefault<z.ZodEnum<{
8805
- active: "active";
8806
- deprecated: "deprecated";
8807
- draft: "draft";
8808
- beta: "beta";
8809
- archived: "archived";
8810
- }>>;
8811
- }, z.core.$strip>>>>;
8812
8990
  knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8813
8991
  id: z.ZodString;
8814
8992
  kind: z.ZodEnum<{
@@ -11002,6 +11180,222 @@ declare const ProjectSchemas: {
11002
11180
  }, z.core.$strip>;
11003
11181
  };
11004
11182
 
11183
+ /**
11184
+ * `'running'` is the only in-flight value; every other member is terminal.
11185
+ * Added 2026-08-14 (the step-state model): a producer writes `'running'`
11186
+ * when it starts a step and patches the same row to a terminal status when
11187
+ * the step finishes (`updateAttempt`) — see `CreateContentItemAttemptRequestSchema`
11188
+ * / `UpdateContentItemAttemptRequestSchema` below.
11189
+ */
11190
+ declare const ContentStepStatusSchema: z.ZodEnum<{
11191
+ error: "error";
11192
+ success: "success";
11193
+ running: "running";
11194
+ no_result: "no_result";
11195
+ skipped: "skipped";
11196
+ }>;
11197
+ /** D18: `pipeline_id` is an OM ontology id (free text), not a UUID. */
11198
+ declare const ContentPipelineIdSchema: z.ZodString;
11199
+ /** `content:catalog/status` entries. Free text, model-owned. */
11200
+ declare const ContentItemStatusSchema: z.ZodString;
11201
+ /** `content:catalog/pillar` entries. */
11202
+ declare const ContentPillarSchema: z.ZodString;
11203
+ /** `content:catalog/platform` entries, applied to `content_distributions.platform` / `.format`. */
11204
+ declare const ContentDistributionPlatformSchema: z.ZodString;
11205
+ declare const ContentDistributionFormatSchema: z.ZodString;
11206
+ declare const ContentDistributionStatusSchema: z.ZodString;
11207
+ /**
11208
+ * D12: the payload gets its own column (`content_items.payload` /
11209
+ * `content_item_attempts.payload`). This is the producer's immutable
11210
+ * emission — never edited; `body` is the human's canonical text and
11211
+ * diverges from it on first edit. The field list within the envelope is
11212
+ * declared per-step by the (not-yet-authored) step catalog; this transport
11213
+ * schema validates JSON-object shape and size only, not field membership.
11214
+ */
11215
+ declare const ContentPayloadEnvelopeSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11216
+ declare const ContentItemResponseSchema: z.ZodObject<{
11217
+ id: z.ZodString;
11218
+ organizationId: z.ZodString;
11219
+ title: z.ZodString;
11220
+ body: z.ZodNullable<z.ZodString>;
11221
+ payload: z.ZodUnknown;
11222
+ status: z.ZodString;
11223
+ pillar: z.ZodNullable<z.ZodString>;
11224
+ pipelineId: z.ZodNullable<z.ZodString>;
11225
+ clientId: z.ZodNullable<z.ZodString>;
11226
+ sourceAssetId: z.ZodNullable<z.ZodString>;
11227
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
11228
+ status: z.ZodEnum<{
11229
+ error: "error";
11230
+ success: "success";
11231
+ running: "running";
11232
+ no_result: "no_result";
11233
+ skipped: "skipped";
11234
+ }>;
11235
+ attemptId: z.ZodString;
11236
+ executionId: z.ZodNullable<z.ZodString>;
11237
+ attemptedAt: z.ZodString;
11238
+ data: z.ZodOptional<z.ZodUnknown>;
11239
+ }, z.core.$loose>>;
11240
+ reviewedAt: z.ZodNullable<z.ZodString>;
11241
+ reviewedBy: z.ZodNullable<z.ZodString>;
11242
+ reviewerFeedback: z.ZodNullable<z.ZodString>;
11243
+ rejectReason: z.ZodNullable<z.ZodString>;
11244
+ createdBy: z.ZodNullable<z.ZodString>;
11245
+ updatedBy: z.ZodNullable<z.ZodString>;
11246
+ createdAt: z.ZodString;
11247
+ updatedAt: z.ZodString;
11248
+ }, z.core.$strip>;
11249
+ declare const ContentItemListResponseSchema: z.ZodObject<{
11250
+ data: z.ZodArray<z.ZodObject<{
11251
+ id: z.ZodString;
11252
+ organizationId: z.ZodString;
11253
+ title: z.ZodString;
11254
+ body: z.ZodNullable<z.ZodString>;
11255
+ payload: z.ZodUnknown;
11256
+ status: z.ZodString;
11257
+ pillar: z.ZodNullable<z.ZodString>;
11258
+ pipelineId: z.ZodNullable<z.ZodString>;
11259
+ clientId: z.ZodNullable<z.ZodString>;
11260
+ sourceAssetId: z.ZodNullable<z.ZodString>;
11261
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
11262
+ status: z.ZodEnum<{
11263
+ error: "error";
11264
+ success: "success";
11265
+ running: "running";
11266
+ no_result: "no_result";
11267
+ skipped: "skipped";
11268
+ }>;
11269
+ attemptId: z.ZodString;
11270
+ executionId: z.ZodNullable<z.ZodString>;
11271
+ attemptedAt: z.ZodString;
11272
+ data: z.ZodOptional<z.ZodUnknown>;
11273
+ }, z.core.$loose>>;
11274
+ reviewedAt: z.ZodNullable<z.ZodString>;
11275
+ reviewedBy: z.ZodNullable<z.ZodString>;
11276
+ reviewerFeedback: z.ZodNullable<z.ZodString>;
11277
+ rejectReason: z.ZodNullable<z.ZodString>;
11278
+ createdBy: z.ZodNullable<z.ZodString>;
11279
+ updatedBy: z.ZodNullable<z.ZodString>;
11280
+ createdAt: z.ZodString;
11281
+ updatedAt: z.ZodString;
11282
+ }, z.core.$strip>>;
11283
+ total: z.ZodNumber;
11284
+ limit: z.ZodNumber;
11285
+ offset: z.ZodNumber;
11286
+ }, z.core.$strip>;
11287
+ declare const ContentItemAttemptResponseSchema: z.ZodObject<{
11288
+ id: z.ZodString;
11289
+ organizationId: z.ZodString;
11290
+ contentItemId: z.ZodString;
11291
+ attemptNumber: z.ZodNumber;
11292
+ stepKey: z.ZodNullable<z.ZodString>;
11293
+ status: z.ZodEnum<{
11294
+ error: "error";
11295
+ success: "success";
11296
+ running: "running";
11297
+ no_result: "no_result";
11298
+ skipped: "skipped";
11299
+ }>;
11300
+ payload: z.ZodUnknown;
11301
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
11302
+ createdBy: z.ZodNullable<z.ZodString>;
11303
+ createdAt: z.ZodString;
11304
+ }, z.core.$strip>;
11305
+ declare const ContentItemAttemptListResponseSchema: z.ZodObject<{
11306
+ data: z.ZodArray<z.ZodObject<{
11307
+ id: z.ZodString;
11308
+ organizationId: z.ZodString;
11309
+ contentItemId: z.ZodString;
11310
+ attemptNumber: z.ZodNumber;
11311
+ stepKey: z.ZodNullable<z.ZodString>;
11312
+ status: z.ZodEnum<{
11313
+ error: "error";
11314
+ success: "success";
11315
+ running: "running";
11316
+ no_result: "no_result";
11317
+ skipped: "skipped";
11318
+ }>;
11319
+ payload: z.ZodUnknown;
11320
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
11321
+ createdBy: z.ZodNullable<z.ZodString>;
11322
+ createdAt: z.ZodString;
11323
+ }, z.core.$strip>>;
11324
+ }, z.core.$strip>;
11325
+ declare const ContentSourceAssetResponseSchema: z.ZodObject<{
11326
+ id: z.ZodString;
11327
+ organizationId: z.ZodString;
11328
+ kind: z.ZodString;
11329
+ title: z.ZodString;
11330
+ externalUrl: z.ZodNullable<z.ZodString>;
11331
+ storagePath: z.ZodNullable<z.ZodString>;
11332
+ durationSeconds: z.ZodNullable<z.ZodNumber>;
11333
+ metadata: z.ZodUnknown;
11334
+ payload: z.ZodUnknown;
11335
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
11336
+ status: z.ZodEnum<{
11337
+ error: "error";
11338
+ success: "success";
11339
+ running: "running";
11340
+ no_result: "no_result";
11341
+ skipped: "skipped";
11342
+ }>;
11343
+ attemptId: z.ZodString;
11344
+ executionId: z.ZodNullable<z.ZodString>;
11345
+ attemptedAt: z.ZodString;
11346
+ data: z.ZodOptional<z.ZodUnknown>;
11347
+ }, z.core.$loose>>;
11348
+ createdAt: z.ZodString;
11349
+ updatedAt: z.ZodString;
11350
+ }, z.core.$strip>;
11351
+ declare const ContentDistributionResponseSchema: z.ZodObject<{
11352
+ id: z.ZodString;
11353
+ organizationId: z.ZodString;
11354
+ contentItemId: z.ZodString;
11355
+ platform: z.ZodString;
11356
+ format: z.ZodString;
11357
+ status: z.ZodString;
11358
+ adaptedBody: z.ZodNullable<z.ZodString>;
11359
+ platformContent: z.ZodNullable<z.ZodUnknown>;
11360
+ checklist: z.ZodNullable<z.ZodUnknown>;
11361
+ mediaUrls: z.ZodArray<z.ZodUnknown>;
11362
+ processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
11363
+ status: z.ZodEnum<{
11364
+ error: "error";
11365
+ success: "success";
11366
+ running: "running";
11367
+ no_result: "no_result";
11368
+ skipped: "skipped";
11369
+ }>;
11370
+ attemptId: z.ZodString;
11371
+ executionId: z.ZodNullable<z.ZodString>;
11372
+ attemptedAt: z.ZodString;
11373
+ data: z.ZodOptional<z.ZodUnknown>;
11374
+ }, z.core.$loose>>;
11375
+ publishMethod: z.ZodNullable<z.ZodString>;
11376
+ publishedAt: z.ZodNullable<z.ZodString>;
11377
+ platformPostId: z.ZodNullable<z.ZodString>;
11378
+ platformUrl: z.ZodNullable<z.ZodString>;
11379
+ metrics: z.ZodUnknown;
11380
+ metricsUpdatedAt: z.ZodNullable<z.ZodString>;
11381
+ createdAt: z.ZodString;
11382
+ updatedAt: z.ZodString;
11383
+ }, z.core.$strip>;
11384
+ type ContentStepStatus = z.infer<typeof ContentStepStatusSchema>;
11385
+ type ContentPipelineId = z.infer<typeof ContentPipelineIdSchema>;
11386
+ type ContentItemStatus = z.infer<typeof ContentItemStatusSchema>;
11387
+ type ContentPillar = z.infer<typeof ContentPillarSchema>;
11388
+ type ContentDistributionPlatform = z.infer<typeof ContentDistributionPlatformSchema>;
11389
+ type ContentDistributionFormat = z.infer<typeof ContentDistributionFormatSchema>;
11390
+ type ContentDistributionStatus = z.infer<typeof ContentDistributionStatusSchema>;
11391
+ type ContentPayloadEnvelope = z.infer<typeof ContentPayloadEnvelopeSchema>;
11392
+ type ContentItemResponse = z.infer<typeof ContentItemResponseSchema>;
11393
+ type ContentItemListResponse = z.infer<typeof ContentItemListResponseSchema>;
11394
+ type ContentItemAttemptResponse = z.infer<typeof ContentItemAttemptResponseSchema>;
11395
+ type ContentItemAttemptListResponse = z.infer<typeof ContentItemAttemptListResponseSchema>;
11396
+ type ContentSourceAssetResponse = z.infer<typeof ContentSourceAssetResponseSchema>;
11397
+ type ContentDistributionResponse = z.infer<typeof ContentDistributionResponseSchema>;
11398
+
11005
11399
  /**
11006
11400
  * Tool Method Maps
11007
11401
  *
@@ -11939,6 +12333,219 @@ type ListToolMap = {
11939
12333
  result: string[];
11940
12334
  };
11941
12335
  };
12336
+ type ArtifactsToolMap = {
12337
+ listArtifacts: {
12338
+ params: {
12339
+ ownerKind: AcqArtifactOwnerKind;
12340
+ ownerId?: string | null;
12341
+ };
12342
+ result: {
12343
+ artifacts: AcqArtifactResponse[];
12344
+ };
12345
+ };
12346
+ createArtifact: {
12347
+ params: {
12348
+ ownerKind: AcqArtifactOwnerKind;
12349
+ ownerId?: string | null;
12350
+ kind: string;
12351
+ content: Record<string, unknown>;
12352
+ sourceExecutionId?: string;
12353
+ pipelineId?: string | null;
12354
+ };
12355
+ result: AcqArtifactResponse;
12356
+ };
12357
+ /**
12358
+ * The active governing document for a given pipeline and kind -- the
12359
+ * two-key lookup (pipeline_id, kind) every producer would otherwise
12360
+ * re-implement. Scoped per (organization, pipelineId, kind); a tenant runs
12361
+ * many pipelines at once, so this is never "the active artifact for the org."
12362
+ */
12363
+ getActive: {
12364
+ params: {
12365
+ pipelineId: string;
12366
+ kind: string;
12367
+ };
12368
+ result: {
12369
+ artifact: AcqArtifactResponse | null;
12370
+ };
12371
+ };
12372
+ };
12373
+ type ContentToolMap = {
12374
+ /** Insert a new `content_items` row -- a producer's entry point for a new piece. */
12375
+ createItem: {
12376
+ params: {
12377
+ title: string;
12378
+ body?: string | null;
12379
+ payload?: ContentPayloadEnvelope;
12380
+ status?: ContentItemStatus;
12381
+ pillar?: ContentPillar | null;
12382
+ pipelineId?: ContentPipelineId | null;
12383
+ clientId?: string | null;
12384
+ sourceAssetId?: string | null;
12385
+ };
12386
+ result: ContentItemResponse;
12387
+ };
12388
+ /** Fetch a single item by id, org-scoped -- read before advancing or reviewing a piece. */
12389
+ getItem: {
12390
+ params: {
12391
+ itemId: string;
12392
+ };
12393
+ result: ContentItemResponse | null;
12394
+ };
12395
+ /** Query items -- how a producer finds pieces awaiting a given step or status. */
12396
+ listItems: {
12397
+ params: {
12398
+ status?: ContentItemStatus;
12399
+ pillar?: ContentPillar;
12400
+ pipelineId?: ContentPipelineId;
12401
+ clientId?: string;
12402
+ limit?: number;
12403
+ offset?: number;
12404
+ };
12405
+ result: ContentItemListResponse;
12406
+ };
12407
+ /**
12408
+ * Update an item's mutable fields as it advances through the pipeline.
12409
+ * Does NOT accept a `processingState` field -- see Decision 4 above.
12410
+ */
12411
+ updateItem: {
12412
+ params: {
12413
+ itemId: string;
12414
+ title?: string;
12415
+ body?: string | null;
12416
+ status?: ContentItemStatus;
12417
+ pillar?: ContentPillar | null;
12418
+ pipelineId?: ContentPipelineId | null;
12419
+ clientId?: string | null;
12420
+ sourceAssetId?: string | null;
12421
+ };
12422
+ result: ContentItemResponse;
12423
+ };
12424
+ /**
12425
+ * Record a pipeline-step attempt against an item. `attemptNumber` is
12426
+ * assigned server-side inside the write (Decision 6) -- never
12427
+ * client-supplied, and never accepted here.
12428
+ */
12429
+ createAttempt: {
12430
+ params: {
12431
+ contentItemId: string;
12432
+ payload: ContentPayloadEnvelope;
12433
+ /** Which step this attempt implements. Stored as-is; NULL when omitted. */
12434
+ stepKey?: string | null;
12435
+ sourceExecutionId?: string | null;
12436
+ /**
12437
+ * The status the row is created with. Optional so a producer starting a
12438
+ * step can write `'running'` before doing the work -- the "write-at-start"
12439
+ * half of write-at-start/patch-at-end. Omitted, the column's own default
12440
+ * applies, which is why a producer that means `'running'` must say so.
12441
+ */
12442
+ status?: ContentStepStatus;
12443
+ };
12444
+ result: ContentItemAttemptResponse;
12445
+ };
12446
+ /** List attempt history for an item -- a producer checks this before retrying a step. */
12447
+ listAttempts: {
12448
+ params: {
12449
+ contentItemId: string;
12450
+ };
12451
+ result: ContentItemAttemptListResponse;
12452
+ };
12453
+ /**
12454
+ * Patch an existing attempt to its terminal status -- the "patch-at-end"
12455
+ * half of write-at-start/patch-at-end (see `ContentStepStatus`'s
12456
+ * `'running'` value). `attemptNumber`, `stepKey`, and `sourceExecutionId`
12457
+ * are immutable once written; only `status` and `payload` change here.
12458
+ */
12459
+ updateAttempt: {
12460
+ params: {
12461
+ attemptId: string;
12462
+ status?: ContentStepStatus;
12463
+ payload?: ContentPayloadEnvelope;
12464
+ };
12465
+ result: ContentItemAttemptResponse;
12466
+ };
12467
+ /**
12468
+ * Insert a new `content_source_assets` row. `payload` is an open envelope
12469
+ * (D5, content-source-asset-write-path.mdx) -- per-`kind` field membership
12470
+ * is declared in the OM catalog, not enforced by this transport type.
12471
+ */
12472
+ createSourceAsset: {
12473
+ params: {
12474
+ kind: string;
12475
+ title: string;
12476
+ externalUrl?: string | null;
12477
+ storagePath?: string | null;
12478
+ durationSeconds?: number | null;
12479
+ metadata?: Record<string, unknown>;
12480
+ payload?: ContentPayloadEnvelope;
12481
+ };
12482
+ result: ContentSourceAssetResponse;
12483
+ };
12484
+ /** Fetch a single source asset by id, org-scoped. */
12485
+ getSourceAsset: {
12486
+ params: {
12487
+ sourceAssetId: string;
12488
+ };
12489
+ result: ContentSourceAssetResponse | null;
12490
+ };
12491
+ /** Query source assets -- e.g. a producer picking material for the next item. */
12492
+ listSourceAssets: {
12493
+ params: {
12494
+ kind?: string;
12495
+ limit?: number;
12496
+ offset?: number;
12497
+ };
12498
+ result: {
12499
+ data: ContentSourceAssetResponse[];
12500
+ };
12501
+ };
12502
+ /** Update a source asset's mutable fields. */
12503
+ updateSourceAsset: {
12504
+ params: {
12505
+ sourceAssetId: string;
12506
+ kind?: string;
12507
+ title?: string;
12508
+ externalUrl?: string | null;
12509
+ storagePath?: string | null;
12510
+ durationSeconds?: number | null;
12511
+ metadata?: Record<string, unknown>;
12512
+ payload?: ContentPayloadEnvelope;
12513
+ };
12514
+ result: ContentSourceAssetResponse;
12515
+ };
12516
+ /** Insert a `content_distributions` row for one platform/format target. */
12517
+ createDistribution: {
12518
+ params: {
12519
+ contentItemId: string;
12520
+ platform: ContentDistributionPlatform;
12521
+ format: ContentDistributionFormat;
12522
+ status?: ContentDistributionStatus;
12523
+ adaptedBody?: string | null;
12524
+ platformContent?: unknown;
12525
+ checklist?: unknown;
12526
+ mediaUrls?: unknown[];
12527
+ };
12528
+ result: ContentDistributionResponse;
12529
+ };
12530
+ /** Update a distribution's status, adapted content, or publish metadata. */
12531
+ updateDistribution: {
12532
+ params: {
12533
+ distributionId: string;
12534
+ status?: ContentDistributionStatus;
12535
+ adaptedBody?: string | null;
12536
+ platformContent?: unknown;
12537
+ checklist?: unknown;
12538
+ mediaUrls?: unknown[];
12539
+ publishMethod?: string | null;
12540
+ publishedAt?: string | null;
12541
+ platformPostId?: string | null;
12542
+ platformUrl?: string | null;
12543
+ metrics?: unknown;
12544
+ metricsUpdatedAt?: string | null;
12545
+ };
12546
+ result: ContentDistributionResponse;
12547
+ };
12548
+ };
11942
12549
  type PdfToolMap = {
11943
12550
  render: {
11944
12551
  params: {
@@ -13531,7 +14138,6 @@ interface ResourceGovernanceModel {
13531
14138
  ontology?: OrganizationModel['ontology'];
13532
14139
  topology?: OrganizationModel['topology'];
13533
14140
  roles?: OrganizationModel['roles'];
13534
- policies?: OrganizationModel['policies'];
13535
14141
  entities?: OrganizationModel['entities'];
13536
14142
  actions?: OrganizationModel['actions'];
13537
14143
  }
@@ -13795,4 +14401,4 @@ declare const ListBuilderStageKeySchema: z.ZodString;
13795
14401
  type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
13796
14402
 
13797
14403
  export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isBuiltInReadinessProfile, isZodType, lookupReadinessProfile, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, registerReadinessProfile, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
13798
- export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, AgentResourceDescriptorResolver, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, JsonSchema, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelAgentResourceEntry, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, ReadinessProfileEntry, ReadinessProfileKind, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SystemApiInterfaceReadinessContract, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowConfigActionRegistry, WorkflowDefinition, WorkflowLogger, WorkflowResourceDescriptorMap, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };
14404
+ export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, AgentResourceDescriptorResolver, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, ArtifactsToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, ContentToolMap, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, JsonSchema, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelAgentResourceEntry, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, ReadinessProfileEntry, ReadinessProfileKind, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SystemApiInterfaceReadinessContract, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowConfigActionRegistry, WorkflowDefinition, WorkflowLogger, WorkflowResourceDescriptorMap, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };