@elevasis/sdk 1.45.0 → 1.46.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.
- package/dist/cli.cjs +36046 -31587
- package/dist/index.d.ts +833 -391
- package/dist/index.js +59 -59
- package/dist/node/index.d.ts +0 -84
- package/dist/node/index.js +2 -2
- package/dist/test-utils/index.d.ts +859 -331
- package/dist/test-utils/index.js +166 -134
- package/dist/worker/index.d.ts +897 -324
- package/dist/worker/index.js +68 -35
- package/package.json +4 -4
- package/reference/_navigation.md +11 -2
- package/reference/_reference-manifest.json +42 -0
- package/reference/core/exports.mdx +2 -0
- package/reference/packages/core/src/business/README.md +4 -1
- package/reference/packages/core/src/content/README.md +19 -0
- package/reference/packages/core/src/organization-model/README.md +148 -149
- package/reference/packages/core/src/organization-model/readiness/README.md +42 -0
- package/reference/packages/ui/src/features/README.md +28 -28
- package/reference/rules/shared-types.md +21 -0
- package/reference/scaffold/core/organization-graph.mdx +2 -3
- package/reference/scaffold/core/organization-model.mdx +2 -6
- package/reference/scaffold/operations/propagation-pipeline.md +15 -16
- package/reference/scaffold/operations/scaffold-maintenance.md +3 -2
- package/reference/scaffold/operations/workflow-recipes.md +2 -2
- package/reference/scaffold/recipes/customize-crm-actions.md +5 -5
- package/reference/scaffold/recipes/extend-content.md +265 -0
- package/reference/scaffold/recipes/extend-lead-gen.md +14 -16
- package/reference/scaffold/recipes/index.md +4 -1
- package/reference/scaffold/reference/contracts.md +18 -55
- package/reference/scaffold/reference/feature-registry.md +3 -0
- package/reference/scaffold/reference/glossary.md +1 -1
- package/reference/scaffold/ui/customization.md +2 -2
- package/reference/scaffold/ui/feature-shell.mdx +1 -3
- package/reference/sdk/cli-management.mdx +90 -5
- package/reference/sdk/cli.mdx +90 -13
- package/reference/sdk/framework/agent.mdx +6 -0
- package/reference/sdk/platform-tools/adapters-platform.mdx +3 -1
- package/reference/ui/exports.mdx +1 -0
package/dist/worker/index.d.ts
CHANGED
|
@@ -1448,53 +1448,6 @@ type Json = string | number | boolean | null | {
|
|
|
1448
1448
|
type Database = {
|
|
1449
1449
|
public: {
|
|
1450
1450
|
Tables: {
|
|
1451
|
-
acq_artifacts: {
|
|
1452
|
-
Row: {
|
|
1453
|
-
content: Json;
|
|
1454
|
-
created_at: string;
|
|
1455
|
-
created_by: string | null;
|
|
1456
|
-
id: string;
|
|
1457
|
-
kind: string;
|
|
1458
|
-
organization_id: string;
|
|
1459
|
-
owner_id: string;
|
|
1460
|
-
owner_kind: string;
|
|
1461
|
-
source_execution_id: string | null;
|
|
1462
|
-
version: number;
|
|
1463
|
-
};
|
|
1464
|
-
Insert: {
|
|
1465
|
-
content: Json;
|
|
1466
|
-
created_at?: string;
|
|
1467
|
-
created_by?: string | null;
|
|
1468
|
-
id?: string;
|
|
1469
|
-
kind: string;
|
|
1470
|
-
organization_id: string;
|
|
1471
|
-
owner_id: string;
|
|
1472
|
-
owner_kind: string;
|
|
1473
|
-
source_execution_id?: string | null;
|
|
1474
|
-
version?: number;
|
|
1475
|
-
};
|
|
1476
|
-
Update: {
|
|
1477
|
-
content?: Json;
|
|
1478
|
-
created_at?: string;
|
|
1479
|
-
created_by?: string | null;
|
|
1480
|
-
id?: string;
|
|
1481
|
-
kind?: string;
|
|
1482
|
-
organization_id?: string;
|
|
1483
|
-
owner_id?: string;
|
|
1484
|
-
owner_kind?: string;
|
|
1485
|
-
source_execution_id?: string | null;
|
|
1486
|
-
version?: number;
|
|
1487
|
-
};
|
|
1488
|
-
Relationships: [
|
|
1489
|
-
{
|
|
1490
|
-
foreignKeyName: "acq_artifacts_organization_id_fkey";
|
|
1491
|
-
columns: ["organization_id"];
|
|
1492
|
-
isOneToOne: false;
|
|
1493
|
-
referencedRelation: "organizations";
|
|
1494
|
-
referencedColumns: ["id"];
|
|
1495
|
-
}
|
|
1496
|
-
];
|
|
1497
|
-
};
|
|
1498
1451
|
acq_companies: {
|
|
1499
1452
|
Row: {
|
|
1500
1453
|
batch_id: string | null;
|
|
@@ -1706,122 +1659,6 @@ type Database = {
|
|
|
1706
1659
|
}
|
|
1707
1660
|
];
|
|
1708
1661
|
};
|
|
1709
|
-
acq_content: {
|
|
1710
|
-
Row: {
|
|
1711
|
-
body: string | null;
|
|
1712
|
-
created_at: string;
|
|
1713
|
-
id: string;
|
|
1714
|
-
organization_id: string;
|
|
1715
|
-
pillar: string;
|
|
1716
|
-
status: string;
|
|
1717
|
-
title: string;
|
|
1718
|
-
updated_at: string;
|
|
1719
|
-
};
|
|
1720
|
-
Insert: {
|
|
1721
|
-
body?: string | null;
|
|
1722
|
-
created_at?: string;
|
|
1723
|
-
id?: string;
|
|
1724
|
-
organization_id: string;
|
|
1725
|
-
pillar: string;
|
|
1726
|
-
status?: string;
|
|
1727
|
-
title: string;
|
|
1728
|
-
updated_at?: string;
|
|
1729
|
-
};
|
|
1730
|
-
Update: {
|
|
1731
|
-
body?: string | null;
|
|
1732
|
-
created_at?: string;
|
|
1733
|
-
id?: string;
|
|
1734
|
-
organization_id?: string;
|
|
1735
|
-
pillar?: string;
|
|
1736
|
-
status?: string;
|
|
1737
|
-
title?: string;
|
|
1738
|
-
updated_at?: string;
|
|
1739
|
-
};
|
|
1740
|
-
Relationships: [
|
|
1741
|
-
{
|
|
1742
|
-
foreignKeyName: "acq_content_organization_id_fkey";
|
|
1743
|
-
columns: ["organization_id"];
|
|
1744
|
-
isOneToOne: false;
|
|
1745
|
-
referencedRelation: "organizations";
|
|
1746
|
-
referencedColumns: ["id"];
|
|
1747
|
-
}
|
|
1748
|
-
];
|
|
1749
|
-
};
|
|
1750
|
-
acq_content_distributions: {
|
|
1751
|
-
Row: {
|
|
1752
|
-
adapted_body: string | null;
|
|
1753
|
-
checklist: Json | null;
|
|
1754
|
-
content_id: string;
|
|
1755
|
-
created_at: string;
|
|
1756
|
-
format: string;
|
|
1757
|
-
id: string;
|
|
1758
|
-
media_urls: Json;
|
|
1759
|
-
metrics: Json;
|
|
1760
|
-
metrics_updated_at: string | null;
|
|
1761
|
-
organization_id: string;
|
|
1762
|
-
platform: string;
|
|
1763
|
-
platform_content: Json | null;
|
|
1764
|
-
platform_post_id: string | null;
|
|
1765
|
-
platform_url: string | null;
|
|
1766
|
-
published_at: string | null;
|
|
1767
|
-
status: string;
|
|
1768
|
-
updated_at: string;
|
|
1769
|
-
};
|
|
1770
|
-
Insert: {
|
|
1771
|
-
adapted_body?: string | null;
|
|
1772
|
-
checklist?: Json | null;
|
|
1773
|
-
content_id: string;
|
|
1774
|
-
created_at?: string;
|
|
1775
|
-
format: string;
|
|
1776
|
-
id?: string;
|
|
1777
|
-
media_urls?: Json;
|
|
1778
|
-
metrics?: Json;
|
|
1779
|
-
metrics_updated_at?: string | null;
|
|
1780
|
-
organization_id: string;
|
|
1781
|
-
platform: string;
|
|
1782
|
-
platform_content?: Json | null;
|
|
1783
|
-
platform_post_id?: string | null;
|
|
1784
|
-
platform_url?: string | null;
|
|
1785
|
-
published_at?: string | null;
|
|
1786
|
-
status?: string;
|
|
1787
|
-
updated_at?: string;
|
|
1788
|
-
};
|
|
1789
|
-
Update: {
|
|
1790
|
-
adapted_body?: string | null;
|
|
1791
|
-
checklist?: Json | null;
|
|
1792
|
-
content_id?: string;
|
|
1793
|
-
created_at?: string;
|
|
1794
|
-
format?: string;
|
|
1795
|
-
id?: string;
|
|
1796
|
-
media_urls?: Json;
|
|
1797
|
-
metrics?: Json;
|
|
1798
|
-
metrics_updated_at?: string | null;
|
|
1799
|
-
organization_id?: string;
|
|
1800
|
-
platform?: string;
|
|
1801
|
-
platform_content?: Json | null;
|
|
1802
|
-
platform_post_id?: string | null;
|
|
1803
|
-
platform_url?: string | null;
|
|
1804
|
-
published_at?: string | null;
|
|
1805
|
-
status?: string;
|
|
1806
|
-
updated_at?: string;
|
|
1807
|
-
};
|
|
1808
|
-
Relationships: [
|
|
1809
|
-
{
|
|
1810
|
-
foreignKeyName: "acq_content_distributions_content_id_fkey";
|
|
1811
|
-
columns: ["content_id"];
|
|
1812
|
-
isOneToOne: false;
|
|
1813
|
-
referencedRelation: "acq_content";
|
|
1814
|
-
referencedColumns: ["id"];
|
|
1815
|
-
},
|
|
1816
|
-
{
|
|
1817
|
-
foreignKeyName: "acq_content_distributions_organization_id_fkey";
|
|
1818
|
-
columns: ["organization_id"];
|
|
1819
|
-
isOneToOne: false;
|
|
1820
|
-
referencedRelation: "organizations";
|
|
1821
|
-
referencedColumns: ["id"];
|
|
1822
|
-
}
|
|
1823
|
-
];
|
|
1824
|
-
};
|
|
1825
1662
|
acq_deal_notes: {
|
|
1826
1663
|
Row: {
|
|
1827
1664
|
author_user_id: string | null;
|
|
@@ -1851,6 +1688,13 @@ type Database = {
|
|
|
1851
1688
|
updated_at?: string;
|
|
1852
1689
|
};
|
|
1853
1690
|
Relationships: [
|
|
1691
|
+
{
|
|
1692
|
+
foreignKeyName: "acq_deal_notes_author_user_id_fkey";
|
|
1693
|
+
columns: ["author_user_id"];
|
|
1694
|
+
isOneToOne: false;
|
|
1695
|
+
referencedRelation: "users";
|
|
1696
|
+
referencedColumns: ["id"];
|
|
1697
|
+
},
|
|
1854
1698
|
{
|
|
1855
1699
|
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
1856
1700
|
columns: ["deal_id"];
|
|
@@ -1914,6 +1758,27 @@ type Database = {
|
|
|
1914
1758
|
updated_at?: string;
|
|
1915
1759
|
};
|
|
1916
1760
|
Relationships: [
|
|
1761
|
+
{
|
|
1762
|
+
foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
|
|
1763
|
+
columns: ["assignee_user_id"];
|
|
1764
|
+
isOneToOne: false;
|
|
1765
|
+
referencedRelation: "users";
|
|
1766
|
+
referencedColumns: ["id"];
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
|
|
1770
|
+
columns: ["completed_by_user_id"];
|
|
1771
|
+
isOneToOne: false;
|
|
1772
|
+
referencedRelation: "users";
|
|
1773
|
+
referencedColumns: ["id"];
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
|
|
1777
|
+
columns: ["created_by_user_id"];
|
|
1778
|
+
isOneToOne: false;
|
|
1779
|
+
referencedRelation: "users";
|
|
1780
|
+
referencedColumns: ["id"];
|
|
1781
|
+
},
|
|
1917
1782
|
{
|
|
1918
1783
|
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
1919
1784
|
columns: ["deal_id"];
|
|
@@ -2070,6 +1935,13 @@ type Database = {
|
|
|
2070
1935
|
referencedRelation: "acq_contacts";
|
|
2071
1936
|
referencedColumns: ["id"];
|
|
2072
1937
|
},
|
|
1938
|
+
{
|
|
1939
|
+
foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
|
|
1940
|
+
columns: ["discovery_submitted_by"];
|
|
1941
|
+
isOneToOne: false;
|
|
1942
|
+
referencedRelation: "users";
|
|
1943
|
+
referencedColumns: ["id"];
|
|
1944
|
+
},
|
|
2073
1945
|
{
|
|
2074
1946
|
foreignKeyName: "acq_deals_organization_id_fkey";
|
|
2075
1947
|
columns: ["organization_id"];
|
|
@@ -2077,6 +1949,13 @@ type Database = {
|
|
|
2077
1949
|
referencedRelation: "organizations";
|
|
2078
1950
|
referencedColumns: ["id"];
|
|
2079
1951
|
},
|
|
1952
|
+
{
|
|
1953
|
+
foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
|
|
1954
|
+
columns: ["proposal_reviewed_by"];
|
|
1955
|
+
isOneToOne: false;
|
|
1956
|
+
referencedRelation: "users";
|
|
1957
|
+
referencedColumns: ["id"];
|
|
1958
|
+
},
|
|
2080
1959
|
{
|
|
2081
1960
|
foreignKeyName: "acq_deals_source_list_id_fkey";
|
|
2082
1961
|
columns: ["source_list_id"];
|
|
@@ -2130,6 +2009,13 @@ type Database = {
|
|
|
2130
2009
|
state_key?: string;
|
|
2131
2010
|
};
|
|
2132
2011
|
Relationships: [
|
|
2012
|
+
{
|
|
2013
|
+
foreignKeyName: "acq_list_companies_added_by_fkey";
|
|
2014
|
+
columns: ["added_by"];
|
|
2015
|
+
isOneToOne: false;
|
|
2016
|
+
referencedRelation: "users";
|
|
2017
|
+
referencedColumns: ["id"];
|
|
2018
|
+
},
|
|
2133
2019
|
{
|
|
2134
2020
|
foreignKeyName: "acq_list_companies_company_id_fkey";
|
|
2135
2021
|
columns: ["company_id"];
|
|
@@ -2236,6 +2122,13 @@ type Database = {
|
|
|
2236
2122
|
state_key?: string;
|
|
2237
2123
|
};
|
|
2238
2124
|
Relationships: [
|
|
2125
|
+
{
|
|
2126
|
+
foreignKeyName: "acq_list_members_added_by_fkey";
|
|
2127
|
+
columns: ["added_by"];
|
|
2128
|
+
isOneToOne: false;
|
|
2129
|
+
referencedRelation: "users";
|
|
2130
|
+
referencedColumns: ["id"];
|
|
2131
|
+
},
|
|
2239
2132
|
{
|
|
2240
2133
|
foreignKeyName: "acq_list_members_contact_id_fkey";
|
|
2241
2134
|
columns: ["contact_id"];
|
|
@@ -2636,6 +2529,13 @@ type Database = {
|
|
|
2636
2529
|
title?: string;
|
|
2637
2530
|
};
|
|
2638
2531
|
Relationships: [
|
|
2532
|
+
{
|
|
2533
|
+
foreignKeyName: "activities_actor_id_fkey";
|
|
2534
|
+
columns: ["actor_id"];
|
|
2535
|
+
isOneToOne: false;
|
|
2536
|
+
referencedRelation: "users";
|
|
2537
|
+
referencedColumns: ["id"];
|
|
2538
|
+
},
|
|
2639
2539
|
{
|
|
2640
2540
|
foreignKeyName: "activities_organization_id_fkey";
|
|
2641
2541
|
columns: ["organization_id"];
|
|
@@ -2748,6 +2648,62 @@ type Database = {
|
|
|
2748
2648
|
}
|
|
2749
2649
|
];
|
|
2750
2650
|
};
|
|
2651
|
+
artifacts: {
|
|
2652
|
+
Row: {
|
|
2653
|
+
content: Json;
|
|
2654
|
+
created_at: string;
|
|
2655
|
+
created_by: string | null;
|
|
2656
|
+
id: string;
|
|
2657
|
+
is_active: boolean;
|
|
2658
|
+
kind: string;
|
|
2659
|
+
organization_id: string;
|
|
2660
|
+
owner_id: string | null;
|
|
2661
|
+
owner_kind: string;
|
|
2662
|
+
pipeline_id: string | null;
|
|
2663
|
+
source_execution_id: string | null;
|
|
2664
|
+
updated_at: string;
|
|
2665
|
+
version: number;
|
|
2666
|
+
};
|
|
2667
|
+
Insert: {
|
|
2668
|
+
content: Json;
|
|
2669
|
+
created_at?: string;
|
|
2670
|
+
created_by?: string | null;
|
|
2671
|
+
id?: string;
|
|
2672
|
+
is_active?: boolean;
|
|
2673
|
+
kind: string;
|
|
2674
|
+
organization_id: string;
|
|
2675
|
+
owner_id?: string | null;
|
|
2676
|
+
owner_kind: string;
|
|
2677
|
+
pipeline_id?: string | null;
|
|
2678
|
+
source_execution_id?: string | null;
|
|
2679
|
+
updated_at?: string;
|
|
2680
|
+
version?: number;
|
|
2681
|
+
};
|
|
2682
|
+
Update: {
|
|
2683
|
+
content?: Json;
|
|
2684
|
+
created_at?: string;
|
|
2685
|
+
created_by?: string | null;
|
|
2686
|
+
id?: string;
|
|
2687
|
+
is_active?: boolean;
|
|
2688
|
+
kind?: string;
|
|
2689
|
+
organization_id?: string;
|
|
2690
|
+
owner_id?: string | null;
|
|
2691
|
+
owner_kind?: string;
|
|
2692
|
+
pipeline_id?: string | null;
|
|
2693
|
+
source_execution_id?: string | null;
|
|
2694
|
+
updated_at?: string;
|
|
2695
|
+
version?: number;
|
|
2696
|
+
};
|
|
2697
|
+
Relationships: [
|
|
2698
|
+
{
|
|
2699
|
+
foreignKeyName: "artifacts_organization_id_fkey";
|
|
2700
|
+
columns: ["organization_id"];
|
|
2701
|
+
isOneToOne: false;
|
|
2702
|
+
referencedRelation: "organizations";
|
|
2703
|
+
referencedColumns: ["id"];
|
|
2704
|
+
}
|
|
2705
|
+
];
|
|
2706
|
+
};
|
|
2751
2707
|
clients: {
|
|
2752
2708
|
Row: {
|
|
2753
2709
|
converted_at: string | null;
|
|
@@ -2814,108 +2770,413 @@ type Database = {
|
|
|
2814
2770
|
referencedColumns: ["id"];
|
|
2815
2771
|
},
|
|
2816
2772
|
{
|
|
2817
|
-
foreignKeyName: "clients_source_deal_id_fkey";
|
|
2818
|
-
columns: ["source_deal_id"];
|
|
2773
|
+
foreignKeyName: "clients_source_deal_id_fkey";
|
|
2774
|
+
columns: ["source_deal_id"];
|
|
2775
|
+
isOneToOne: false;
|
|
2776
|
+
referencedRelation: "acq_deals";
|
|
2777
|
+
referencedColumns: ["id"];
|
|
2778
|
+
}
|
|
2779
|
+
];
|
|
2780
|
+
};
|
|
2781
|
+
command_queue: {
|
|
2782
|
+
Row: {
|
|
2783
|
+
action_payload: Json | null;
|
|
2784
|
+
actions: Json;
|
|
2785
|
+
completed_at: string | null;
|
|
2786
|
+
completed_by: string | null;
|
|
2787
|
+
context: Json;
|
|
2788
|
+
created_at: string;
|
|
2789
|
+
description: string | null;
|
|
2790
|
+
expires_at: string | null;
|
|
2791
|
+
human_checkpoint: string | null;
|
|
2792
|
+
id: string;
|
|
2793
|
+
idempotency_key: string | null;
|
|
2794
|
+
metadata: Json | null;
|
|
2795
|
+
organization_id: string;
|
|
2796
|
+
origin_execution_id: string;
|
|
2797
|
+
origin_resource_id: string;
|
|
2798
|
+
origin_resource_type: string;
|
|
2799
|
+
priority: number;
|
|
2800
|
+
selected_action: string | null;
|
|
2801
|
+
status: string;
|
|
2802
|
+
target_execution_id: string | null;
|
|
2803
|
+
target_resource_id: string | null;
|
|
2804
|
+
target_resource_type: string | null;
|
|
2805
|
+
};
|
|
2806
|
+
Insert: {
|
|
2807
|
+
action_payload?: Json | null;
|
|
2808
|
+
actions: Json;
|
|
2809
|
+
completed_at?: string | null;
|
|
2810
|
+
completed_by?: string | null;
|
|
2811
|
+
context: Json;
|
|
2812
|
+
created_at?: string;
|
|
2813
|
+
description?: string | null;
|
|
2814
|
+
expires_at?: string | null;
|
|
2815
|
+
human_checkpoint?: string | null;
|
|
2816
|
+
id?: string;
|
|
2817
|
+
idempotency_key?: string | null;
|
|
2818
|
+
metadata?: Json | null;
|
|
2819
|
+
organization_id: string;
|
|
2820
|
+
origin_execution_id: string;
|
|
2821
|
+
origin_resource_id: string;
|
|
2822
|
+
origin_resource_type: string;
|
|
2823
|
+
priority?: number;
|
|
2824
|
+
selected_action?: string | null;
|
|
2825
|
+
status?: string;
|
|
2826
|
+
target_execution_id?: string | null;
|
|
2827
|
+
target_resource_id?: string | null;
|
|
2828
|
+
target_resource_type?: string | null;
|
|
2829
|
+
};
|
|
2830
|
+
Update: {
|
|
2831
|
+
action_payload?: Json | null;
|
|
2832
|
+
actions?: Json;
|
|
2833
|
+
completed_at?: string | null;
|
|
2834
|
+
completed_by?: string | null;
|
|
2835
|
+
context?: Json;
|
|
2836
|
+
created_at?: string;
|
|
2837
|
+
description?: string | null;
|
|
2838
|
+
expires_at?: string | null;
|
|
2839
|
+
human_checkpoint?: string | null;
|
|
2840
|
+
id?: string;
|
|
2841
|
+
idempotency_key?: string | null;
|
|
2842
|
+
metadata?: Json | null;
|
|
2843
|
+
organization_id?: string;
|
|
2844
|
+
origin_execution_id?: string;
|
|
2845
|
+
origin_resource_id?: string;
|
|
2846
|
+
origin_resource_type?: string;
|
|
2847
|
+
priority?: number;
|
|
2848
|
+
selected_action?: string | null;
|
|
2849
|
+
status?: string;
|
|
2850
|
+
target_execution_id?: string | null;
|
|
2851
|
+
target_resource_id?: string | null;
|
|
2852
|
+
target_resource_type?: string | null;
|
|
2853
|
+
};
|
|
2854
|
+
Relationships: [
|
|
2855
|
+
{
|
|
2856
|
+
foreignKeyName: "command_queue_completed_by_fkey";
|
|
2857
|
+
columns: ["completed_by"];
|
|
2858
|
+
isOneToOne: false;
|
|
2859
|
+
referencedRelation: "users";
|
|
2860
|
+
referencedColumns: ["id"];
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
foreignKeyName: "command_queue_organization_id_fkey";
|
|
2864
|
+
columns: ["organization_id"];
|
|
2865
|
+
isOneToOne: false;
|
|
2866
|
+
referencedRelation: "organizations";
|
|
2867
|
+
referencedColumns: ["id"];
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
2871
|
+
columns: ["target_execution_id"];
|
|
2872
|
+
isOneToOne: false;
|
|
2873
|
+
referencedRelation: "execution_logs";
|
|
2874
|
+
referencedColumns: ["execution_id"];
|
|
2875
|
+
}
|
|
2876
|
+
];
|
|
2877
|
+
};
|
|
2878
|
+
content_distributions: {
|
|
2879
|
+
Row: {
|
|
2880
|
+
adapted_body: string | null;
|
|
2881
|
+
checklist: Json | null;
|
|
2882
|
+
content_item_id: string;
|
|
2883
|
+
created_at: string;
|
|
2884
|
+
format: string;
|
|
2885
|
+
id: string;
|
|
2886
|
+
media_urls: Json;
|
|
2887
|
+
metrics: Json;
|
|
2888
|
+
metrics_updated_at: string | null;
|
|
2889
|
+
organization_id: string;
|
|
2890
|
+
platform: string;
|
|
2891
|
+
platform_content: Json | null;
|
|
2892
|
+
platform_post_id: string | null;
|
|
2893
|
+
platform_url: string | null;
|
|
2894
|
+
processing_state: Json;
|
|
2895
|
+
publish_method: string | null;
|
|
2896
|
+
published_at: string | null;
|
|
2897
|
+
status: string;
|
|
2898
|
+
updated_at: string;
|
|
2899
|
+
};
|
|
2900
|
+
Insert: {
|
|
2901
|
+
adapted_body?: string | null;
|
|
2902
|
+
checklist?: Json | null;
|
|
2903
|
+
content_item_id: string;
|
|
2904
|
+
created_at?: string;
|
|
2905
|
+
format: string;
|
|
2906
|
+
id?: string;
|
|
2907
|
+
media_urls?: Json;
|
|
2908
|
+
metrics?: Json;
|
|
2909
|
+
metrics_updated_at?: string | null;
|
|
2910
|
+
organization_id: string;
|
|
2911
|
+
platform: string;
|
|
2912
|
+
platform_content?: Json | null;
|
|
2913
|
+
platform_post_id?: string | null;
|
|
2914
|
+
platform_url?: string | null;
|
|
2915
|
+
processing_state?: Json;
|
|
2916
|
+
publish_method?: string | null;
|
|
2917
|
+
published_at?: string | null;
|
|
2918
|
+
status?: string;
|
|
2919
|
+
updated_at?: string;
|
|
2920
|
+
};
|
|
2921
|
+
Update: {
|
|
2922
|
+
adapted_body?: string | null;
|
|
2923
|
+
checklist?: Json | null;
|
|
2924
|
+
content_item_id?: string;
|
|
2925
|
+
created_at?: string;
|
|
2926
|
+
format?: string;
|
|
2927
|
+
id?: string;
|
|
2928
|
+
media_urls?: Json;
|
|
2929
|
+
metrics?: Json;
|
|
2930
|
+
metrics_updated_at?: string | null;
|
|
2931
|
+
organization_id?: string;
|
|
2932
|
+
platform?: string;
|
|
2933
|
+
platform_content?: Json | null;
|
|
2934
|
+
platform_post_id?: string | null;
|
|
2935
|
+
platform_url?: string | null;
|
|
2936
|
+
processing_state?: Json;
|
|
2937
|
+
publish_method?: string | null;
|
|
2938
|
+
published_at?: string | null;
|
|
2939
|
+
status?: string;
|
|
2940
|
+
updated_at?: string;
|
|
2941
|
+
};
|
|
2942
|
+
Relationships: [
|
|
2943
|
+
{
|
|
2944
|
+
foreignKeyName: "content_distributions_content_item_id_fkey";
|
|
2945
|
+
columns: ["content_item_id"];
|
|
2946
|
+
isOneToOne: false;
|
|
2947
|
+
referencedRelation: "content_items";
|
|
2948
|
+
referencedColumns: ["id"];
|
|
2949
|
+
},
|
|
2950
|
+
{
|
|
2951
|
+
foreignKeyName: "content_distributions_organization_id_fkey";
|
|
2952
|
+
columns: ["organization_id"];
|
|
2953
|
+
isOneToOne: false;
|
|
2954
|
+
referencedRelation: "organizations";
|
|
2955
|
+
referencedColumns: ["id"];
|
|
2956
|
+
}
|
|
2957
|
+
];
|
|
2958
|
+
};
|
|
2959
|
+
content_item_attempts: {
|
|
2960
|
+
Row: {
|
|
2961
|
+
attempt_number: number;
|
|
2962
|
+
content_item_id: string;
|
|
2963
|
+
created_at: string;
|
|
2964
|
+
created_by: string | null;
|
|
2965
|
+
id: string;
|
|
2966
|
+
organization_id: string;
|
|
2967
|
+
payload: Json;
|
|
2968
|
+
source_execution_id: string | null;
|
|
2969
|
+
step_key: string | null;
|
|
2970
|
+
};
|
|
2971
|
+
Insert: {
|
|
2972
|
+
attempt_number: number;
|
|
2973
|
+
content_item_id: string;
|
|
2974
|
+
created_at?: string;
|
|
2975
|
+
created_by?: string | null;
|
|
2976
|
+
id?: string;
|
|
2977
|
+
organization_id: string;
|
|
2978
|
+
payload?: Json;
|
|
2979
|
+
source_execution_id?: string | null;
|
|
2980
|
+
step_key?: string | null;
|
|
2981
|
+
};
|
|
2982
|
+
Update: {
|
|
2983
|
+
attempt_number?: number;
|
|
2984
|
+
content_item_id?: string;
|
|
2985
|
+
created_at?: string;
|
|
2986
|
+
created_by?: string | null;
|
|
2987
|
+
id?: string;
|
|
2988
|
+
organization_id?: string;
|
|
2989
|
+
payload?: Json;
|
|
2990
|
+
source_execution_id?: string | null;
|
|
2991
|
+
step_key?: string | null;
|
|
2992
|
+
};
|
|
2993
|
+
Relationships: [
|
|
2994
|
+
{
|
|
2995
|
+
foreignKeyName: "content_item_attempts_content_item_id_fkey";
|
|
2996
|
+
columns: ["content_item_id"];
|
|
2997
|
+
isOneToOne: false;
|
|
2998
|
+
referencedRelation: "content_items";
|
|
2999
|
+
referencedColumns: ["id"];
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
foreignKeyName: "content_item_attempts_created_by_fkey";
|
|
3003
|
+
columns: ["created_by"];
|
|
3004
|
+
isOneToOne: false;
|
|
3005
|
+
referencedRelation: "users";
|
|
3006
|
+
referencedColumns: ["id"];
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
foreignKeyName: "content_item_attempts_organization_id_fkey";
|
|
3010
|
+
columns: ["organization_id"];
|
|
3011
|
+
isOneToOne: false;
|
|
3012
|
+
referencedRelation: "organizations";
|
|
3013
|
+
referencedColumns: ["id"];
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
foreignKeyName: "content_item_attempts_source_execution_id_fkey";
|
|
3017
|
+
columns: ["source_execution_id"];
|
|
3018
|
+
isOneToOne: false;
|
|
3019
|
+
referencedRelation: "execution_logs";
|
|
3020
|
+
referencedColumns: ["execution_id"];
|
|
3021
|
+
}
|
|
3022
|
+
];
|
|
3023
|
+
};
|
|
3024
|
+
content_items: {
|
|
3025
|
+
Row: {
|
|
3026
|
+
body: string | null;
|
|
3027
|
+
client_id: string | null;
|
|
3028
|
+
created_at: string;
|
|
3029
|
+
created_by: string | null;
|
|
3030
|
+
id: string;
|
|
3031
|
+
organization_id: string;
|
|
3032
|
+
payload: Json;
|
|
3033
|
+
pillar: string | null;
|
|
3034
|
+
pipeline_id: string | null;
|
|
3035
|
+
processing_state: Json;
|
|
3036
|
+
reject_reason: string | null;
|
|
3037
|
+
reviewed_at: string | null;
|
|
3038
|
+
reviewed_by: string | null;
|
|
3039
|
+
reviewer_feedback: string | null;
|
|
3040
|
+
source_asset_id: string | null;
|
|
3041
|
+
status: string;
|
|
3042
|
+
title: string;
|
|
3043
|
+
updated_at: string;
|
|
3044
|
+
updated_by: string | null;
|
|
3045
|
+
};
|
|
3046
|
+
Insert: {
|
|
3047
|
+
body?: string | null;
|
|
3048
|
+
client_id?: string | null;
|
|
3049
|
+
created_at?: string;
|
|
3050
|
+
created_by?: string | null;
|
|
3051
|
+
id?: string;
|
|
3052
|
+
organization_id: string;
|
|
3053
|
+
payload?: Json;
|
|
3054
|
+
pillar?: string | null;
|
|
3055
|
+
pipeline_id?: string | null;
|
|
3056
|
+
processing_state?: Json;
|
|
3057
|
+
reject_reason?: string | null;
|
|
3058
|
+
reviewed_at?: string | null;
|
|
3059
|
+
reviewed_by?: string | null;
|
|
3060
|
+
reviewer_feedback?: string | null;
|
|
3061
|
+
source_asset_id?: string | null;
|
|
3062
|
+
status?: string;
|
|
3063
|
+
title: string;
|
|
3064
|
+
updated_at?: string;
|
|
3065
|
+
updated_by?: string | null;
|
|
3066
|
+
};
|
|
3067
|
+
Update: {
|
|
3068
|
+
body?: string | null;
|
|
3069
|
+
client_id?: string | null;
|
|
3070
|
+
created_at?: string;
|
|
3071
|
+
created_by?: string | null;
|
|
3072
|
+
id?: string;
|
|
3073
|
+
organization_id?: string;
|
|
3074
|
+
payload?: Json;
|
|
3075
|
+
pillar?: string | null;
|
|
3076
|
+
pipeline_id?: string | null;
|
|
3077
|
+
processing_state?: Json;
|
|
3078
|
+
reject_reason?: string | null;
|
|
3079
|
+
reviewed_at?: string | null;
|
|
3080
|
+
reviewed_by?: string | null;
|
|
3081
|
+
reviewer_feedback?: string | null;
|
|
3082
|
+
source_asset_id?: string | null;
|
|
3083
|
+
status?: string;
|
|
3084
|
+
title?: string;
|
|
3085
|
+
updated_at?: string;
|
|
3086
|
+
updated_by?: string | null;
|
|
3087
|
+
};
|
|
3088
|
+
Relationships: [
|
|
3089
|
+
{
|
|
3090
|
+
foreignKeyName: "content_items_client_id_fkey";
|
|
3091
|
+
columns: ["client_id"];
|
|
3092
|
+
isOneToOne: false;
|
|
3093
|
+
referencedRelation: "clients";
|
|
3094
|
+
referencedColumns: ["id"];
|
|
3095
|
+
},
|
|
3096
|
+
{
|
|
3097
|
+
foreignKeyName: "content_items_created_by_fkey";
|
|
3098
|
+
columns: ["created_by"];
|
|
3099
|
+
isOneToOne: false;
|
|
3100
|
+
referencedRelation: "users";
|
|
3101
|
+
referencedColumns: ["id"];
|
|
3102
|
+
},
|
|
3103
|
+
{
|
|
3104
|
+
foreignKeyName: "content_items_organization_id_fkey";
|
|
3105
|
+
columns: ["organization_id"];
|
|
3106
|
+
isOneToOne: false;
|
|
3107
|
+
referencedRelation: "organizations";
|
|
3108
|
+
referencedColumns: ["id"];
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
foreignKeyName: "content_items_reviewed_by_fkey";
|
|
3112
|
+
columns: ["reviewed_by"];
|
|
3113
|
+
isOneToOne: false;
|
|
3114
|
+
referencedRelation: "users";
|
|
3115
|
+
referencedColumns: ["id"];
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
foreignKeyName: "content_items_source_asset_id_fkey";
|
|
3119
|
+
columns: ["source_asset_id"];
|
|
3120
|
+
isOneToOne: false;
|
|
3121
|
+
referencedRelation: "content_source_assets";
|
|
3122
|
+
referencedColumns: ["id"];
|
|
3123
|
+
},
|
|
3124
|
+
{
|
|
3125
|
+
foreignKeyName: "content_items_updated_by_fkey";
|
|
3126
|
+
columns: ["updated_by"];
|
|
2819
3127
|
isOneToOne: false;
|
|
2820
|
-
referencedRelation: "
|
|
3128
|
+
referencedRelation: "users";
|
|
2821
3129
|
referencedColumns: ["id"];
|
|
2822
3130
|
}
|
|
2823
3131
|
];
|
|
2824
3132
|
};
|
|
2825
|
-
|
|
3133
|
+
content_source_assets: {
|
|
2826
3134
|
Row: {
|
|
2827
|
-
action_payload: Json | null;
|
|
2828
|
-
actions: Json;
|
|
2829
|
-
completed_at: string | null;
|
|
2830
|
-
completed_by: string | null;
|
|
2831
|
-
context: Json;
|
|
2832
3135
|
created_at: string;
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
human_checkpoint: string | null;
|
|
3136
|
+
duration_seconds: number | null;
|
|
3137
|
+
external_url: string | null;
|
|
2836
3138
|
id: string;
|
|
2837
|
-
|
|
2838
|
-
metadata: Json
|
|
3139
|
+
kind: string;
|
|
3140
|
+
metadata: Json;
|
|
2839
3141
|
organization_id: string;
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
selected_action: string | null;
|
|
2845
|
-
status: string;
|
|
2846
|
-
target_execution_id: string | null;
|
|
2847
|
-
target_resource_id: string | null;
|
|
2848
|
-
target_resource_type: string | null;
|
|
3142
|
+
processing_state: Json;
|
|
3143
|
+
storage_path: string | null;
|
|
3144
|
+
title: string;
|
|
3145
|
+
updated_at: string;
|
|
2849
3146
|
};
|
|
2850
3147
|
Insert: {
|
|
2851
|
-
action_payload?: Json | null;
|
|
2852
|
-
actions: Json;
|
|
2853
|
-
completed_at?: string | null;
|
|
2854
|
-
completed_by?: string | null;
|
|
2855
|
-
context: Json;
|
|
2856
3148
|
created_at?: string;
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
human_checkpoint?: string | null;
|
|
3149
|
+
duration_seconds?: number | null;
|
|
3150
|
+
external_url?: string | null;
|
|
2860
3151
|
id?: string;
|
|
2861
|
-
|
|
2862
|
-
metadata?: Json
|
|
3152
|
+
kind: string;
|
|
3153
|
+
metadata?: Json;
|
|
2863
3154
|
organization_id: string;
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
selected_action?: string | null;
|
|
2869
|
-
status?: string;
|
|
2870
|
-
target_execution_id?: string | null;
|
|
2871
|
-
target_resource_id?: string | null;
|
|
2872
|
-
target_resource_type?: string | null;
|
|
3155
|
+
processing_state?: Json;
|
|
3156
|
+
storage_path?: string | null;
|
|
3157
|
+
title: string;
|
|
3158
|
+
updated_at?: string;
|
|
2873
3159
|
};
|
|
2874
3160
|
Update: {
|
|
2875
|
-
action_payload?: Json | null;
|
|
2876
|
-
actions?: Json;
|
|
2877
|
-
completed_at?: string | null;
|
|
2878
|
-
completed_by?: string | null;
|
|
2879
|
-
context?: Json;
|
|
2880
3161
|
created_at?: string;
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
human_checkpoint?: string | null;
|
|
3162
|
+
duration_seconds?: number | null;
|
|
3163
|
+
external_url?: string | null;
|
|
2884
3164
|
id?: string;
|
|
2885
|
-
|
|
2886
|
-
metadata?: Json
|
|
3165
|
+
kind?: string;
|
|
3166
|
+
metadata?: Json;
|
|
2887
3167
|
organization_id?: string;
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
selected_action?: string | null;
|
|
2893
|
-
status?: string;
|
|
2894
|
-
target_execution_id?: string | null;
|
|
2895
|
-
target_resource_id?: string | null;
|
|
2896
|
-
target_resource_type?: string | null;
|
|
3168
|
+
processing_state?: Json;
|
|
3169
|
+
storage_path?: string | null;
|
|
3170
|
+
title?: string;
|
|
3171
|
+
updated_at?: string;
|
|
2897
3172
|
};
|
|
2898
3173
|
Relationships: [
|
|
2899
3174
|
{
|
|
2900
|
-
foreignKeyName: "
|
|
2901
|
-
columns: ["completed_by"];
|
|
2902
|
-
isOneToOne: false;
|
|
2903
|
-
referencedRelation: "users";
|
|
2904
|
-
referencedColumns: ["id"];
|
|
2905
|
-
},
|
|
2906
|
-
{
|
|
2907
|
-
foreignKeyName: "command_queue_organization_id_fkey";
|
|
3175
|
+
foreignKeyName: "content_source_assets_organization_id_fkey";
|
|
2908
3176
|
columns: ["organization_id"];
|
|
2909
3177
|
isOneToOne: false;
|
|
2910
3178
|
referencedRelation: "organizations";
|
|
2911
3179
|
referencedColumns: ["id"];
|
|
2912
|
-
},
|
|
2913
|
-
{
|
|
2914
|
-
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
2915
|
-
columns: ["target_execution_id"];
|
|
2916
|
-
isOneToOne: false;
|
|
2917
|
-
referencedRelation: "execution_logs";
|
|
2918
|
-
referencedColumns: ["execution_id"];
|
|
2919
3180
|
}
|
|
2920
3181
|
];
|
|
2921
3182
|
};
|
|
@@ -4535,6 +4796,33 @@ type Database = {
|
|
|
4535
4796
|
};
|
|
4536
4797
|
Returns: boolean;
|
|
4537
4798
|
};
|
|
4799
|
+
create_artifact_version: {
|
|
4800
|
+
Args: {
|
|
4801
|
+
p_content: Json;
|
|
4802
|
+
p_created_by?: string;
|
|
4803
|
+
p_kind: string;
|
|
4804
|
+
p_organization_id: string;
|
|
4805
|
+
p_owner_id?: string;
|
|
4806
|
+
p_owner_kind: string;
|
|
4807
|
+
p_pipeline_id?: string;
|
|
4808
|
+
p_source_execution_id?: string;
|
|
4809
|
+
};
|
|
4810
|
+
Returns: {
|
|
4811
|
+
content: Json;
|
|
4812
|
+
created_at: string;
|
|
4813
|
+
created_by: string | null;
|
|
4814
|
+
id: string;
|
|
4815
|
+
is_active: boolean;
|
|
4816
|
+
kind: string;
|
|
4817
|
+
organization_id: string;
|
|
4818
|
+
owner_id: string | null;
|
|
4819
|
+
owner_kind: string;
|
|
4820
|
+
pipeline_id: string | null;
|
|
4821
|
+
source_execution_id: string | null;
|
|
4822
|
+
updated_at: string;
|
|
4823
|
+
version: number;
|
|
4824
|
+
};
|
|
4825
|
+
};
|
|
4538
4826
|
current_user_is_platform_admin: {
|
|
4539
4827
|
Args: Record<PropertyKey, never>;
|
|
4540
4828
|
Returns: boolean;
|
|
@@ -4641,6 +4929,12 @@ type Database = {
|
|
|
4641
4929
|
Args: Record<PropertyKey, never>;
|
|
4642
4930
|
Returns: Json;
|
|
4643
4931
|
};
|
|
4932
|
+
purge_stale_test_data: {
|
|
4933
|
+
Args: {
|
|
4934
|
+
p_max_age?: unknown;
|
|
4935
|
+
};
|
|
4936
|
+
Returns: Json;
|
|
4937
|
+
};
|
|
4644
4938
|
recompute_all_memberships: {
|
|
4645
4939
|
Args: Record<PropertyKey, never>;
|
|
4646
4940
|
Returns: undefined;
|
|
@@ -5335,6 +5629,31 @@ declare const DataModeSchema: z.ZodEnum<{
|
|
|
5335
5629
|
mock: "mock";
|
|
5336
5630
|
live: "live";
|
|
5337
5631
|
}>;
|
|
5632
|
+
declare const AcqArtifactOwnerKindSchema: z.ZodEnum<{
|
|
5633
|
+
company: "company";
|
|
5634
|
+
contact: "contact";
|
|
5635
|
+
list: "list";
|
|
5636
|
+
organization: "organization";
|
|
5637
|
+
deal: "deal";
|
|
5638
|
+
list_member: "list_member";
|
|
5639
|
+
}>;
|
|
5640
|
+
declare const AcqArtifactResponseSchema: z.ZodObject<{
|
|
5641
|
+
id: z.ZodString;
|
|
5642
|
+
organizationId: z.ZodString;
|
|
5643
|
+
ownerKind: z.ZodString;
|
|
5644
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
5645
|
+
kind: z.ZodString;
|
|
5646
|
+
pipelineId: z.ZodNullable<z.ZodString>;
|
|
5647
|
+
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5648
|
+
sourceExecutionId: z.ZodNullable<z.ZodString>;
|
|
5649
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
5650
|
+
createdAt: z.ZodString;
|
|
5651
|
+
updatedAt: z.ZodString;
|
|
5652
|
+
isActive: z.ZodBoolean;
|
|
5653
|
+
version: z.ZodNumber;
|
|
5654
|
+
}, z.core.$strip>;
|
|
5655
|
+
type AcqArtifactOwnerKind = z.infer<typeof AcqArtifactOwnerKindSchema>;
|
|
5656
|
+
type AcqArtifactResponse = z.infer<typeof AcqArtifactResponseSchema>;
|
|
5338
5657
|
type PipelineStage = z.infer<typeof PipelineStageSchema>;
|
|
5339
5658
|
type DataMode = z.infer<typeof DataModeSchema>;
|
|
5340
5659
|
type ProcessingStageStatus = z.infer<typeof ProcessingStageStatusSchema>;
|
|
@@ -6343,7 +6662,6 @@ interface SystemEntry {
|
|
|
6343
6662
|
path: string;
|
|
6344
6663
|
surfaces: string[];
|
|
6345
6664
|
icon?: string;
|
|
6346
|
-
order?: number;
|
|
6347
6665
|
};
|
|
6348
6666
|
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
6349
6667
|
responsibleRoleId?: string;
|
|
@@ -6353,17 +6671,12 @@ interface SystemEntry {
|
|
|
6353
6671
|
intent: 'exposes' | 'consumes';
|
|
6354
6672
|
invocation?: unknown;
|
|
6355
6673
|
}[];
|
|
6356
|
-
policies?: string[];
|
|
6357
6674
|
drivesGoals?: string[];
|
|
6358
6675
|
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
6359
|
-
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
6360
|
-
status?: 'active' | 'deprecated' | 'archived';
|
|
6361
6676
|
path?: string;
|
|
6362
6677
|
icon?: string;
|
|
6363
6678
|
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
6364
6679
|
enabled?: boolean;
|
|
6365
|
-
devOnly?: boolean;
|
|
6366
|
-
requiresAdmin?: boolean;
|
|
6367
6680
|
order: number;
|
|
6368
6681
|
config?: Record<string, JsonValue>;
|
|
6369
6682
|
ontology?: OntologyScope;
|
|
@@ -6486,10 +6799,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6486
6799
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6487
6800
|
lastModified: z.ZodString;
|
|
6488
6801
|
}, z.core.$strip>>;
|
|
6489
|
-
policies: z.ZodOptional<z.ZodObject<{
|
|
6490
|
-
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6491
|
-
lastModified: z.ZodString;
|
|
6492
|
-
}, z.core.$strip>>;
|
|
6493
6802
|
knowledge: z.ZodOptional<z.ZodObject<{
|
|
6494
6803
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6495
6804
|
lastModified: z.ZodString;
|
|
@@ -6547,10 +6856,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6547
6856
|
version: 1;
|
|
6548
6857
|
lastModified: string;
|
|
6549
6858
|
};
|
|
6550
|
-
policies: {
|
|
6551
|
-
version: 1;
|
|
6552
|
-
lastModified: string;
|
|
6553
|
-
};
|
|
6554
6859
|
knowledge: {
|
|
6555
6860
|
version: 1;
|
|
6556
6861
|
lastModified: string;
|
|
@@ -6608,10 +6913,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6608
6913
|
version: 1;
|
|
6609
6914
|
lastModified: string;
|
|
6610
6915
|
} | undefined;
|
|
6611
|
-
policies?: {
|
|
6612
|
-
version: 1;
|
|
6613
|
-
lastModified: string;
|
|
6614
|
-
} | undefined;
|
|
6615
6916
|
knowledge?: {
|
|
6616
6917
|
version: 1;
|
|
6617
6918
|
lastModified: string;
|
|
@@ -7205,9 +7506,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
7205
7506
|
}, z.core.$strip>, z.ZodObject<{
|
|
7206
7507
|
kind: z.ZodLiteral<"ontology">;
|
|
7207
7508
|
id: z.ZodString;
|
|
7208
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7209
|
-
kind: z.ZodLiteral<"policy">;
|
|
7210
|
-
id: z.ZodString;
|
|
7211
7509
|
}, z.core.$strip>, z.ZodObject<{
|
|
7212
7510
|
kind: z.ZodLiteral<"role">;
|
|
7213
7511
|
id: z.ZodString;
|
|
@@ -7235,9 +7533,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
7235
7533
|
}, z.core.$strip>, z.ZodObject<{
|
|
7236
7534
|
kind: z.ZodLiteral<"ontology">;
|
|
7237
7535
|
id: z.ZodString;
|
|
7238
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7239
|
-
kind: z.ZodLiteral<"policy">;
|
|
7240
|
-
id: z.ZodString;
|
|
7241
7536
|
}, z.core.$strip>, z.ZodObject<{
|
|
7242
7537
|
kind: z.ZodLiteral<"role">;
|
|
7243
7538
|
id: z.ZodString;
|
|
@@ -7319,66 +7614,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
7319
7614
|
label: z.ZodOptional<z.ZodString>;
|
|
7320
7615
|
}, z.core.$strip>>>;
|
|
7321
7616
|
}, z.core.$strip>>>>;
|
|
7322
|
-
policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7323
|
-
id: z.ZodString;
|
|
7324
|
-
order: z.ZodNumber;
|
|
7325
|
-
label: z.ZodString;
|
|
7326
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7327
|
-
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7328
|
-
kind: z.ZodLiteral<"event">;
|
|
7329
|
-
eventId: z.ZodString;
|
|
7330
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7331
|
-
kind: z.ZodLiteral<"action-invocation">;
|
|
7332
|
-
actionId: z.ZodString;
|
|
7333
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7334
|
-
kind: z.ZodLiteral<"schedule">;
|
|
7335
|
-
cron: z.ZodString;
|
|
7336
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7337
|
-
kind: z.ZodLiteral<"manual">;
|
|
7338
|
-
}, z.core.$strip>], "kind">;
|
|
7339
|
-
predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7340
|
-
kind: z.ZodLiteral<"always">;
|
|
7341
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7342
|
-
kind: z.ZodLiteral<"expression">;
|
|
7343
|
-
expression: z.ZodString;
|
|
7344
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7345
|
-
kind: z.ZodLiteral<"threshold">;
|
|
7346
|
-
metric: z.ZodString;
|
|
7347
|
-
operator: z.ZodEnum<{
|
|
7348
|
-
lt: "lt";
|
|
7349
|
-
lte: "lte";
|
|
7350
|
-
eq: "eq";
|
|
7351
|
-
gte: "gte";
|
|
7352
|
-
gt: "gt";
|
|
7353
|
-
}>;
|
|
7354
|
-
value: z.ZodNumber;
|
|
7355
|
-
}, z.core.$strip>], "kind">>;
|
|
7356
|
-
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7357
|
-
kind: z.ZodLiteral<"require-approval">;
|
|
7358
|
-
roleId: z.ZodOptional<z.ZodString>;
|
|
7359
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7360
|
-
kind: z.ZodLiteral<"invoke-action">;
|
|
7361
|
-
actionId: z.ZodString;
|
|
7362
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7363
|
-
kind: z.ZodLiteral<"notify-role">;
|
|
7364
|
-
roleId: z.ZodString;
|
|
7365
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7366
|
-
kind: z.ZodLiteral<"block">;
|
|
7367
|
-
}, z.core.$strip>], "kind">>;
|
|
7368
|
-
appliesTo: z.ZodDefault<z.ZodObject<{
|
|
7369
|
-
systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7370
|
-
actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7371
|
-
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7372
|
-
roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7373
|
-
}, z.core.$strip>>;
|
|
7374
|
-
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
7375
|
-
active: "active";
|
|
7376
|
-
deprecated: "deprecated";
|
|
7377
|
-
draft: "draft";
|
|
7378
|
-
beta: "beta";
|
|
7379
|
-
archived: "archived";
|
|
7380
|
-
}>>;
|
|
7381
|
-
}, z.core.$strip>>>>;
|
|
7382
7617
|
knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7383
7618
|
id: z.ZodString;
|
|
7384
7619
|
kind: z.ZodEnum<{
|
|
@@ -9543,6 +9778,154 @@ declare const ProjectSchemas: {
|
|
|
9543
9778
|
}, z.core.$strip>;
|
|
9544
9779
|
};
|
|
9545
9780
|
|
|
9781
|
+
/** D18: `pipeline_id` is an OM ontology id (free text), not a UUID. */
|
|
9782
|
+
declare const ContentPipelineIdSchema: z.ZodString;
|
|
9783
|
+
/** `content:catalog/status` entries. Free text, model-owned. */
|
|
9784
|
+
declare const ContentItemStatusSchema: z.ZodString;
|
|
9785
|
+
/** `content:catalog/pillar` entries. */
|
|
9786
|
+
declare const ContentPillarSchema: z.ZodString;
|
|
9787
|
+
/** `content:catalog/platform` entries, applied to `content_distributions.platform` / `.format`. */
|
|
9788
|
+
declare const ContentDistributionPlatformSchema: z.ZodString;
|
|
9789
|
+
declare const ContentDistributionFormatSchema: z.ZodString;
|
|
9790
|
+
declare const ContentDistributionStatusSchema: z.ZodString;
|
|
9791
|
+
/**
|
|
9792
|
+
* D12: the payload gets its own column (`content_items.payload` /
|
|
9793
|
+
* `content_item_attempts.payload`). This is the producer's immutable
|
|
9794
|
+
* emission — never edited; `body` is the human's canonical text and
|
|
9795
|
+
* diverges from it on first edit. The field list within the envelope is
|
|
9796
|
+
* declared per-step by the (not-yet-authored) step catalog; this transport
|
|
9797
|
+
* schema validates JSON-object shape and size only, not field membership.
|
|
9798
|
+
*/
|
|
9799
|
+
declare const ContentPayloadEnvelopeSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9800
|
+
declare const ContentItemResponseSchema: z.ZodObject<{
|
|
9801
|
+
id: z.ZodString;
|
|
9802
|
+
organizationId: z.ZodString;
|
|
9803
|
+
title: z.ZodString;
|
|
9804
|
+
body: z.ZodNullable<z.ZodString>;
|
|
9805
|
+
payload: z.ZodUnknown;
|
|
9806
|
+
status: z.ZodString;
|
|
9807
|
+
pillar: z.ZodNullable<z.ZodString>;
|
|
9808
|
+
pipelineId: z.ZodNullable<z.ZodString>;
|
|
9809
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
9810
|
+
sourceAssetId: z.ZodNullable<z.ZodString>;
|
|
9811
|
+
processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9812
|
+
status: z.ZodEnum<{
|
|
9813
|
+
error: "error";
|
|
9814
|
+
success: "success";
|
|
9815
|
+
no_result: "no_result";
|
|
9816
|
+
skipped: "skipped";
|
|
9817
|
+
}>;
|
|
9818
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
9819
|
+
}, z.core.$loose>>;
|
|
9820
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
9821
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
9822
|
+
reviewerFeedback: z.ZodNullable<z.ZodString>;
|
|
9823
|
+
rejectReason: z.ZodNullable<z.ZodString>;
|
|
9824
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
9825
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
9826
|
+
createdAt: z.ZodString;
|
|
9827
|
+
updatedAt: z.ZodString;
|
|
9828
|
+
}, z.core.$strip>;
|
|
9829
|
+
declare const ContentItemListResponseSchema: z.ZodObject<{
|
|
9830
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9831
|
+
id: z.ZodString;
|
|
9832
|
+
organizationId: z.ZodString;
|
|
9833
|
+
title: z.ZodString;
|
|
9834
|
+
body: z.ZodNullable<z.ZodString>;
|
|
9835
|
+
payload: z.ZodUnknown;
|
|
9836
|
+
status: z.ZodString;
|
|
9837
|
+
pillar: z.ZodNullable<z.ZodString>;
|
|
9838
|
+
pipelineId: z.ZodNullable<z.ZodString>;
|
|
9839
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
9840
|
+
sourceAssetId: z.ZodNullable<z.ZodString>;
|
|
9841
|
+
processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9842
|
+
status: z.ZodEnum<{
|
|
9843
|
+
error: "error";
|
|
9844
|
+
success: "success";
|
|
9845
|
+
no_result: "no_result";
|
|
9846
|
+
skipped: "skipped";
|
|
9847
|
+
}>;
|
|
9848
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
9849
|
+
}, z.core.$loose>>;
|
|
9850
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
9851
|
+
reviewedBy: z.ZodNullable<z.ZodString>;
|
|
9852
|
+
reviewerFeedback: z.ZodNullable<z.ZodString>;
|
|
9853
|
+
rejectReason: z.ZodNullable<z.ZodString>;
|
|
9854
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
9855
|
+
updatedBy: z.ZodNullable<z.ZodString>;
|
|
9856
|
+
createdAt: z.ZodString;
|
|
9857
|
+
updatedAt: z.ZodString;
|
|
9858
|
+
}, z.core.$strip>>;
|
|
9859
|
+
total: z.ZodNumber;
|
|
9860
|
+
limit: z.ZodNumber;
|
|
9861
|
+
offset: z.ZodNumber;
|
|
9862
|
+
}, z.core.$strip>;
|
|
9863
|
+
declare const ContentItemAttemptResponseSchema: z.ZodObject<{
|
|
9864
|
+
id: z.ZodString;
|
|
9865
|
+
organizationId: z.ZodString;
|
|
9866
|
+
contentItemId: z.ZodString;
|
|
9867
|
+
attemptNumber: z.ZodNumber;
|
|
9868
|
+
stepKey: z.ZodNullable<z.ZodString>;
|
|
9869
|
+
payload: z.ZodUnknown;
|
|
9870
|
+
sourceExecutionId: z.ZodNullable<z.ZodString>;
|
|
9871
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
9872
|
+
createdAt: z.ZodString;
|
|
9873
|
+
}, z.core.$strip>;
|
|
9874
|
+
declare const ContentItemAttemptListResponseSchema: z.ZodObject<{
|
|
9875
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9876
|
+
id: z.ZodString;
|
|
9877
|
+
organizationId: z.ZodString;
|
|
9878
|
+
contentItemId: z.ZodString;
|
|
9879
|
+
attemptNumber: z.ZodNumber;
|
|
9880
|
+
stepKey: z.ZodNullable<z.ZodString>;
|
|
9881
|
+
payload: z.ZodUnknown;
|
|
9882
|
+
sourceExecutionId: z.ZodNullable<z.ZodString>;
|
|
9883
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
9884
|
+
createdAt: z.ZodString;
|
|
9885
|
+
}, z.core.$strip>>;
|
|
9886
|
+
}, z.core.$strip>;
|
|
9887
|
+
declare const ContentDistributionResponseSchema: z.ZodObject<{
|
|
9888
|
+
id: z.ZodString;
|
|
9889
|
+
organizationId: z.ZodString;
|
|
9890
|
+
contentItemId: z.ZodString;
|
|
9891
|
+
platform: z.ZodString;
|
|
9892
|
+
format: z.ZodString;
|
|
9893
|
+
status: z.ZodString;
|
|
9894
|
+
adaptedBody: z.ZodNullable<z.ZodString>;
|
|
9895
|
+
platformContent: z.ZodNullable<z.ZodUnknown>;
|
|
9896
|
+
checklist: z.ZodNullable<z.ZodUnknown>;
|
|
9897
|
+
mediaUrls: z.ZodArray<z.ZodUnknown>;
|
|
9898
|
+
processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9899
|
+
status: z.ZodEnum<{
|
|
9900
|
+
error: "error";
|
|
9901
|
+
success: "success";
|
|
9902
|
+
no_result: "no_result";
|
|
9903
|
+
skipped: "skipped";
|
|
9904
|
+
}>;
|
|
9905
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
9906
|
+
}, z.core.$loose>>;
|
|
9907
|
+
publishMethod: z.ZodNullable<z.ZodString>;
|
|
9908
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
9909
|
+
platformPostId: z.ZodNullable<z.ZodString>;
|
|
9910
|
+
platformUrl: z.ZodNullable<z.ZodString>;
|
|
9911
|
+
metrics: z.ZodUnknown;
|
|
9912
|
+
metricsUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
9913
|
+
createdAt: z.ZodString;
|
|
9914
|
+
updatedAt: z.ZodString;
|
|
9915
|
+
}, z.core.$strip>;
|
|
9916
|
+
type ContentPipelineId = z.infer<typeof ContentPipelineIdSchema>;
|
|
9917
|
+
type ContentItemStatus = z.infer<typeof ContentItemStatusSchema>;
|
|
9918
|
+
type ContentPillar = z.infer<typeof ContentPillarSchema>;
|
|
9919
|
+
type ContentDistributionPlatform = z.infer<typeof ContentDistributionPlatformSchema>;
|
|
9920
|
+
type ContentDistributionFormat = z.infer<typeof ContentDistributionFormatSchema>;
|
|
9921
|
+
type ContentDistributionStatus = z.infer<typeof ContentDistributionStatusSchema>;
|
|
9922
|
+
type ContentPayloadEnvelope = z.infer<typeof ContentPayloadEnvelopeSchema>;
|
|
9923
|
+
type ContentItemResponse = z.infer<typeof ContentItemResponseSchema>;
|
|
9924
|
+
type ContentItemListResponse = z.infer<typeof ContentItemListResponseSchema>;
|
|
9925
|
+
type ContentItemAttemptResponse = z.infer<typeof ContentItemAttemptResponseSchema>;
|
|
9926
|
+
type ContentItemAttemptListResponse = z.infer<typeof ContentItemAttemptListResponseSchema>;
|
|
9927
|
+
type ContentDistributionResponse = z.infer<typeof ContentDistributionResponseSchema>;
|
|
9928
|
+
|
|
9546
9929
|
/**
|
|
9547
9930
|
* Tool Method Maps
|
|
9548
9931
|
*
|
|
@@ -10473,6 +10856,149 @@ type ListToolMap = {
|
|
|
10473
10856
|
result: string[];
|
|
10474
10857
|
};
|
|
10475
10858
|
};
|
|
10859
|
+
type ArtifactsToolMap = {
|
|
10860
|
+
listArtifacts: {
|
|
10861
|
+
params: {
|
|
10862
|
+
ownerKind: AcqArtifactOwnerKind;
|
|
10863
|
+
ownerId?: string | null;
|
|
10864
|
+
};
|
|
10865
|
+
result: {
|
|
10866
|
+
artifacts: AcqArtifactResponse[];
|
|
10867
|
+
};
|
|
10868
|
+
};
|
|
10869
|
+
createArtifact: {
|
|
10870
|
+
params: {
|
|
10871
|
+
ownerKind: AcqArtifactOwnerKind;
|
|
10872
|
+
ownerId?: string | null;
|
|
10873
|
+
kind: string;
|
|
10874
|
+
content: Record<string, unknown>;
|
|
10875
|
+
sourceExecutionId?: string;
|
|
10876
|
+
pipelineId?: string | null;
|
|
10877
|
+
};
|
|
10878
|
+
result: AcqArtifactResponse;
|
|
10879
|
+
};
|
|
10880
|
+
/**
|
|
10881
|
+
* The active governing document for a given pipeline and kind -- the
|
|
10882
|
+
* two-key lookup (pipeline_id, kind) every producer would otherwise
|
|
10883
|
+
* re-implement. Scoped per (organization, pipelineId, kind); a tenant runs
|
|
10884
|
+
* many pipelines at once, so this is never "the active artifact for the org."
|
|
10885
|
+
*/
|
|
10886
|
+
getActive: {
|
|
10887
|
+
params: {
|
|
10888
|
+
pipelineId: string;
|
|
10889
|
+
kind: string;
|
|
10890
|
+
};
|
|
10891
|
+
result: {
|
|
10892
|
+
artifact: AcqArtifactResponse | null;
|
|
10893
|
+
};
|
|
10894
|
+
};
|
|
10895
|
+
};
|
|
10896
|
+
type ContentToolMap = {
|
|
10897
|
+
/** Insert a new `content_items` row -- a producer's entry point for a new piece. */
|
|
10898
|
+
createItem: {
|
|
10899
|
+
params: {
|
|
10900
|
+
title: string;
|
|
10901
|
+
body?: string | null;
|
|
10902
|
+
payload?: ContentPayloadEnvelope;
|
|
10903
|
+
status?: ContentItemStatus;
|
|
10904
|
+
pillar?: ContentPillar | null;
|
|
10905
|
+
pipelineId?: ContentPipelineId | null;
|
|
10906
|
+
clientId?: string | null;
|
|
10907
|
+
sourceAssetId?: string | null;
|
|
10908
|
+
};
|
|
10909
|
+
result: ContentItemResponse;
|
|
10910
|
+
};
|
|
10911
|
+
/** Fetch a single item by id, org-scoped -- read before advancing or reviewing a piece. */
|
|
10912
|
+
getItem: {
|
|
10913
|
+
params: {
|
|
10914
|
+
itemId: string;
|
|
10915
|
+
};
|
|
10916
|
+
result: ContentItemResponse | null;
|
|
10917
|
+
};
|
|
10918
|
+
/** Query items -- how a producer finds pieces awaiting a given step or status. */
|
|
10919
|
+
listItems: {
|
|
10920
|
+
params: {
|
|
10921
|
+
status?: ContentItemStatus;
|
|
10922
|
+
pillar?: ContentPillar;
|
|
10923
|
+
pipelineId?: ContentPipelineId;
|
|
10924
|
+
clientId?: string;
|
|
10925
|
+
limit?: number;
|
|
10926
|
+
offset?: number;
|
|
10927
|
+
};
|
|
10928
|
+
result: ContentItemListResponse;
|
|
10929
|
+
};
|
|
10930
|
+
/**
|
|
10931
|
+
* Update an item's mutable fields as it advances through the pipeline.
|
|
10932
|
+
* Does NOT accept a `processingState` field -- see Decision 4 above.
|
|
10933
|
+
*/
|
|
10934
|
+
updateItem: {
|
|
10935
|
+
params: {
|
|
10936
|
+
itemId: string;
|
|
10937
|
+
title?: string;
|
|
10938
|
+
body?: string | null;
|
|
10939
|
+
status?: ContentItemStatus;
|
|
10940
|
+
pillar?: ContentPillar | null;
|
|
10941
|
+
pipelineId?: ContentPipelineId | null;
|
|
10942
|
+
clientId?: string | null;
|
|
10943
|
+
sourceAssetId?: string | null;
|
|
10944
|
+
};
|
|
10945
|
+
result: ContentItemResponse;
|
|
10946
|
+
};
|
|
10947
|
+
/**
|
|
10948
|
+
* Record a pipeline-step attempt against an item. `attemptNumber` is
|
|
10949
|
+
* assigned server-side inside the write (Decision 6) -- never
|
|
10950
|
+
* client-supplied, and never accepted here.
|
|
10951
|
+
*/
|
|
10952
|
+
createAttempt: {
|
|
10953
|
+
params: {
|
|
10954
|
+
contentItemId: string;
|
|
10955
|
+
payload: ContentPayloadEnvelope;
|
|
10956
|
+
/** Which step this attempt implements. Stored as-is; NULL when omitted. */
|
|
10957
|
+
stepKey?: string | null;
|
|
10958
|
+
sourceExecutionId?: string | null;
|
|
10959
|
+
};
|
|
10960
|
+
result: ContentItemAttemptResponse;
|
|
10961
|
+
};
|
|
10962
|
+
/** List attempt history for an item -- a producer checks this before retrying a step. */
|
|
10963
|
+
listAttempts: {
|
|
10964
|
+
params: {
|
|
10965
|
+
contentItemId: string;
|
|
10966
|
+
};
|
|
10967
|
+
result: ContentItemAttemptListResponse;
|
|
10968
|
+
};
|
|
10969
|
+
/** Insert a `content_distributions` row for one platform/format target. */
|
|
10970
|
+
createDistribution: {
|
|
10971
|
+
params: {
|
|
10972
|
+
contentItemId: string;
|
|
10973
|
+
platform: ContentDistributionPlatform;
|
|
10974
|
+
format: ContentDistributionFormat;
|
|
10975
|
+
status?: ContentDistributionStatus;
|
|
10976
|
+
adaptedBody?: string | null;
|
|
10977
|
+
platformContent?: unknown;
|
|
10978
|
+
checklist?: unknown;
|
|
10979
|
+
mediaUrls?: unknown[];
|
|
10980
|
+
};
|
|
10981
|
+
result: ContentDistributionResponse;
|
|
10982
|
+
};
|
|
10983
|
+
/** Update a distribution's status, adapted content, or publish metadata. */
|
|
10984
|
+
updateDistribution: {
|
|
10985
|
+
params: {
|
|
10986
|
+
distributionId: string;
|
|
10987
|
+
status?: ContentDistributionStatus;
|
|
10988
|
+
adaptedBody?: string | null;
|
|
10989
|
+
platformContent?: unknown;
|
|
10990
|
+
checklist?: unknown;
|
|
10991
|
+
mediaUrls?: unknown[];
|
|
10992
|
+
publishMethod?: string | null;
|
|
10993
|
+
publishedAt?: string | null;
|
|
10994
|
+
platformPostId?: string | null;
|
|
10995
|
+
platformUrl?: string | null;
|
|
10996
|
+
metrics?: unknown;
|
|
10997
|
+
metricsUpdatedAt?: string | null;
|
|
10998
|
+
};
|
|
10999
|
+
result: ContentDistributionResponse;
|
|
11000
|
+
};
|
|
11001
|
+
};
|
|
10476
11002
|
type PdfToolMap = {
|
|
10477
11003
|
render: {
|
|
10478
11004
|
params: {
|
|
@@ -11920,6 +12446,53 @@ declare const crm: TypedAdapter<CrmToolMap>;
|
|
|
11920
12446
|
|
|
11921
12447
|
declare const list: TypedAdapter<ListToolMap>;
|
|
11922
12448
|
|
|
12449
|
+
/**
|
|
12450
|
+
* Artifacts Platform Tool Adapter
|
|
12451
|
+
*
|
|
12452
|
+
* Focused wrapper for the org-scoped governing-document store (rules
|
|
12453
|
+
* documents, idea banks, ICP docs). Singleton export -- no credential needed
|
|
12454
|
+
* (platform tool).
|
|
12455
|
+
*
|
|
12456
|
+
* `kind` convention: any artifact written for the content pipeline (an
|
|
12457
|
+
* `ownerKind: 'organization'` document -- a selection brief, an idea bank,
|
|
12458
|
+
* brand settings) MUST use a `kind` prefixed with `content:`, e.g.
|
|
12459
|
+
* `content:selection-brief`. The `artifacts_manage_content` RLS policy grants
|
|
12460
|
+
* write access to `content.manage` holders ONLY when `kind LIKE 'content:%'`
|
|
12461
|
+
* -- an unprefixed `kind` is rejected server-side with no compile-time error.
|
|
12462
|
+
* Acquisition's own artifacts (audits, proposals, ICP docs) stay unprefixed.
|
|
12463
|
+
* `createArtifact`'s `pipelineId` is required for a later `getActive` call to
|
|
12464
|
+
* ever find the row it writes.
|
|
12465
|
+
*/
|
|
12466
|
+
|
|
12467
|
+
declare const artifacts: TypedAdapter<ArtifactsToolMap>;
|
|
12468
|
+
|
|
12469
|
+
/**
|
|
12470
|
+
* Content Platform Tool Adapter
|
|
12471
|
+
*
|
|
12472
|
+
* Typed wrapper over platform.call() for the content System's producer
|
|
12473
|
+
* surface (`content_items`, `content_item_attempts`, `content_distributions`).
|
|
12474
|
+
* Singleton export -- no credential needed (platform tool).
|
|
12475
|
+
*
|
|
12476
|
+
* `organizationId` is injected server-side by the dispatcher -- never sent
|
|
12477
|
+
* from the SDK. There is deliberately no `updateProcessingState` method:
|
|
12478
|
+
* `content_items.processing_state` and `content_distributions.processing_state`
|
|
12479
|
+
* are not writable through this adapter (content-pipeline execution plan
|
|
12480
|
+
* Decision 4, enforced by omission).
|
|
12481
|
+
*/
|
|
12482
|
+
|
|
12483
|
+
/**
|
|
12484
|
+
* Typed content adapter for the content pipeline's producer surface.
|
|
12485
|
+
*
|
|
12486
|
+
* @example
|
|
12487
|
+
* ```ts
|
|
12488
|
+
* import { content } from '@elevasis/sdk/worker'
|
|
12489
|
+
*
|
|
12490
|
+
* const item = await content.createItem({ title: 'Draft', pipelineId: 'long-form-to-shorts' })
|
|
12491
|
+
* const attempt = await content.createAttempt({ contentItemId: item.id, payload: { body: '...' } })
|
|
12492
|
+
* ```
|
|
12493
|
+
*/
|
|
12494
|
+
declare const content: TypedAdapter<ContentToolMap>;
|
|
12495
|
+
|
|
11923
12496
|
/**
|
|
11924
12497
|
* Typed PDF adapter for document rendering.
|
|
11925
12498
|
*
|
|
@@ -12108,5 +12681,5 @@ declare function executeWorkflow(workflow: WorkflowDefinition, input: unknown, c
|
|
|
12108
12681
|
}>;
|
|
12109
12682
|
declare function startWorker(org: DeploymentSpec): void;
|
|
12110
12683
|
|
|
12111
|
-
export { ListBuilderResultSchema, ListBuilderResultsSchema, PlatformToolError, acqDb, approval, classifyPlatformToolError, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createClickUpAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createInstantlyAdapter, createMillionVerifierAdapter, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, crm, email, executeWorkflow, execution, generateHmacToken, list, listBuilderWorkflow, llm, notifications, pdf, platform, projects, scheduler, startWorker, storage };
|
|
12684
|
+
export { ListBuilderResultSchema, ListBuilderResultsSchema, PlatformToolError, acqDb, approval, artifacts, classifyPlatformToolError, content, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createClickUpAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createInstantlyAdapter, createMillionVerifierAdapter, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, crm, email, executeWorkflow, execution, generateHmacToken, list, listBuilderWorkflow, llm, notifications, pdf, platform, projects, scheduler, startWorker, storage };
|
|
12112
12685
|
export type { ClassifyPlatformToolErrorOptions, ListBuilderBatch, ListBuilderEnvelope, ListBuilderRecord, ListBuilderResult, ListBuilderWorkflowDefinition, ListBuilderWorkflowOptions, LogEntry, NotificationInput, PlatformCredential, PlatformToolErrorClassification, TypedAdapter };
|