@panorama-ai/gateway 2.30.207 → 2.30.279
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/README.md +10 -0
- package/dist/cli-providers/types.d.ts +1 -1
- package/dist/cli-providers/types.d.ts.map +1 -1
- package/dist/database.types.d.ts +1723 -172
- package/dist/database.types.d.ts.map +1 -1
- package/dist/database.types.js.map +1 -1
- package/dist/finalize-subagent-run.d.ts +2 -1
- package/dist/finalize-subagent-run.d.ts.map +1 -1
- package/dist/finalize-subagent-run.js.map +1 -1
- package/dist/index.js +3384 -241
- package/dist/index.js.map +4 -4
- package/dist/managed-runtime/config.d.ts +13 -0
- package/dist/managed-runtime/config.d.ts.map +1 -1
- package/dist/managed-runtime/config.js +31 -0
- package/dist/managed-runtime/config.js.map +1 -1
- package/dist/managed-runtime/dependencies.d.ts +2 -0
- package/dist/managed-runtime/dependencies.d.ts.map +1 -1
- package/dist/managed-runtime/dependencies.js +2 -0
- package/dist/managed-runtime/dependencies.js.map +1 -1
- package/dist/managed-runtime/drive-sync-filesystem.d.ts +39 -0
- package/dist/managed-runtime/drive-sync-filesystem.d.ts.map +1 -0
- package/dist/managed-runtime/drive-sync-filesystem.js +434 -0
- package/dist/managed-runtime/drive-sync-filesystem.js.map +1 -0
- package/dist/managed-runtime/drive-sync-planner.d.ts +76 -0
- package/dist/managed-runtime/drive-sync-planner.d.ts.map +1 -0
- package/dist/managed-runtime/drive-sync-planner.js +363 -0
- package/dist/managed-runtime/drive-sync-planner.js.map +1 -0
- package/dist/managed-runtime/drive-sync-remote-planner.d.ts +52 -0
- package/dist/managed-runtime/drive-sync-remote-planner.d.ts.map +1 -0
- package/dist/managed-runtime/drive-sync-remote-planner.js +77 -0
- package/dist/managed-runtime/drive-sync-remote-planner.js.map +1 -0
- package/dist/managed-runtime/drive-sync-scheduler.d.ts +50 -0
- package/dist/managed-runtime/drive-sync-scheduler.d.ts.map +1 -0
- package/dist/managed-runtime/drive-sync-scheduler.js +302 -0
- package/dist/managed-runtime/drive-sync-scheduler.js.map +1 -0
- package/dist/managed-runtime/drive-sync-state-applier.d.ts +84 -0
- package/dist/managed-runtime/drive-sync-state-applier.d.ts.map +1 -0
- package/dist/managed-runtime/drive-sync-state-applier.js +153 -0
- package/dist/managed-runtime/drive-sync-state-applier.js.map +1 -0
- package/dist/managed-runtime/drive-sync-transfer.d.ts +86 -0
- package/dist/managed-runtime/drive-sync-transfer.d.ts.map +1 -0
- package/dist/managed-runtime/drive-sync-transfer.js +245 -0
- package/dist/managed-runtime/drive-sync-transfer.js.map +1 -0
- package/dist/managed-runtime/drive-sync.d.ts +416 -0
- package/dist/managed-runtime/drive-sync.d.ts.map +1 -0
- package/dist/managed-runtime/drive-sync.js +1641 -0
- package/dist/managed-runtime/drive-sync.js.map +1 -0
- package/dist/managed-runtime.d.ts.map +1 -1
- package/dist/managed-runtime.js +44 -0
- package/dist/managed-runtime.js.map +1 -1
- package/dist/subagent-adapters/types.d.ts +1 -1
- package/dist/subagent-adapters/types.d.ts.map +1 -1
- package/dist/subagent-output-persistence.d.ts +1 -1
- package/dist/subagent-output-persistence.d.ts.map +1 -1
- package/dist/subagent-output-persistence.js +1 -1
- package/dist/subagent-output-persistence.js.map +1 -1
- package/package.json +5 -5
package/dist/database.types.d.ts
CHANGED
|
@@ -815,13 +815,19 @@ export type Database = {
|
|
|
815
815
|
Row: {
|
|
816
816
|
created_at: string;
|
|
817
817
|
created_by: string | null;
|
|
818
|
+
creation_mode: string;
|
|
818
819
|
description: string | null;
|
|
819
820
|
enabled_tools: string[];
|
|
820
821
|
id: string;
|
|
821
822
|
instructions: string | null;
|
|
822
823
|
name: string;
|
|
823
824
|
objective: string | null;
|
|
825
|
+
rationalization_error: string | null;
|
|
826
|
+
rationalization_metadata: Json;
|
|
827
|
+
rationalization_status: string;
|
|
828
|
+
rationalized_at: string | null;
|
|
824
829
|
settings: Json;
|
|
830
|
+
source_agent_id: string | null;
|
|
825
831
|
subscriptions: Json;
|
|
826
832
|
team_id: string;
|
|
827
833
|
updated_at: string;
|
|
@@ -829,13 +835,19 @@ export type Database = {
|
|
|
829
835
|
Insert: {
|
|
830
836
|
created_at?: string;
|
|
831
837
|
created_by?: string | null;
|
|
838
|
+
creation_mode?: string;
|
|
832
839
|
description?: string | null;
|
|
833
840
|
enabled_tools?: string[];
|
|
834
841
|
id?: string;
|
|
835
842
|
instructions?: string | null;
|
|
836
843
|
name: string;
|
|
837
844
|
objective?: string | null;
|
|
845
|
+
rationalization_error?: string | null;
|
|
846
|
+
rationalization_metadata?: Json;
|
|
847
|
+
rationalization_status?: string;
|
|
848
|
+
rationalized_at?: string | null;
|
|
838
849
|
settings?: Json;
|
|
850
|
+
source_agent_id?: string | null;
|
|
839
851
|
subscriptions?: Json;
|
|
840
852
|
team_id: string;
|
|
841
853
|
updated_at?: string;
|
|
@@ -843,18 +855,38 @@ export type Database = {
|
|
|
843
855
|
Update: {
|
|
844
856
|
created_at?: string;
|
|
845
857
|
created_by?: string | null;
|
|
858
|
+
creation_mode?: string;
|
|
846
859
|
description?: string | null;
|
|
847
860
|
enabled_tools?: string[];
|
|
848
861
|
id?: string;
|
|
849
862
|
instructions?: string | null;
|
|
850
863
|
name?: string;
|
|
851
864
|
objective?: string | null;
|
|
865
|
+
rationalization_error?: string | null;
|
|
866
|
+
rationalization_metadata?: Json;
|
|
867
|
+
rationalization_status?: string;
|
|
868
|
+
rationalized_at?: string | null;
|
|
852
869
|
settings?: Json;
|
|
870
|
+
source_agent_id?: string | null;
|
|
853
871
|
subscriptions?: Json;
|
|
854
872
|
team_id?: string;
|
|
855
873
|
updated_at?: string;
|
|
856
874
|
};
|
|
857
875
|
Relationships: [
|
|
876
|
+
{
|
|
877
|
+
foreignKeyName: "agent_templates_source_agent_id_fkey";
|
|
878
|
+
columns: ["source_agent_id"];
|
|
879
|
+
isOneToOne: false;
|
|
880
|
+
referencedRelation: "agent_full";
|
|
881
|
+
referencedColumns: ["id"];
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
foreignKeyName: "agent_templates_source_agent_id_fkey";
|
|
885
|
+
columns: ["source_agent_id"];
|
|
886
|
+
isOneToOne: false;
|
|
887
|
+
referencedRelation: "agents";
|
|
888
|
+
referencedColumns: ["id"];
|
|
889
|
+
},
|
|
858
890
|
{
|
|
859
891
|
foreignKeyName: "agent_templates_team_id_fkey";
|
|
860
892
|
columns: ["team_id"];
|
|
@@ -1647,11 +1679,218 @@ export type Database = {
|
|
|
1647
1679
|
}
|
|
1648
1680
|
];
|
|
1649
1681
|
};
|
|
1682
|
+
drive_change_batch_paths: {
|
|
1683
|
+
Row: {
|
|
1684
|
+
batch_id: string;
|
|
1685
|
+
change_type: string | null;
|
|
1686
|
+
created_at: string;
|
|
1687
|
+
drive_id: string;
|
|
1688
|
+
entry_type: string | null;
|
|
1689
|
+
from_path: string | null;
|
|
1690
|
+
id: string;
|
|
1691
|
+
path: string;
|
|
1692
|
+
scope: string;
|
|
1693
|
+
to_path: string | null;
|
|
1694
|
+
version_id: string | null;
|
|
1695
|
+
};
|
|
1696
|
+
Insert: {
|
|
1697
|
+
batch_id: string;
|
|
1698
|
+
change_type?: string | null;
|
|
1699
|
+
created_at?: string;
|
|
1700
|
+
drive_id: string;
|
|
1701
|
+
entry_type?: string | null;
|
|
1702
|
+
from_path?: string | null;
|
|
1703
|
+
id?: string;
|
|
1704
|
+
path: string;
|
|
1705
|
+
scope?: string;
|
|
1706
|
+
to_path?: string | null;
|
|
1707
|
+
version_id?: string | null;
|
|
1708
|
+
};
|
|
1709
|
+
Update: {
|
|
1710
|
+
batch_id?: string;
|
|
1711
|
+
change_type?: string | null;
|
|
1712
|
+
created_at?: string;
|
|
1713
|
+
drive_id?: string;
|
|
1714
|
+
entry_type?: string | null;
|
|
1715
|
+
from_path?: string | null;
|
|
1716
|
+
id?: string;
|
|
1717
|
+
path?: string;
|
|
1718
|
+
scope?: string;
|
|
1719
|
+
to_path?: string | null;
|
|
1720
|
+
version_id?: string | null;
|
|
1721
|
+
};
|
|
1722
|
+
Relationships: [
|
|
1723
|
+
{
|
|
1724
|
+
foreignKeyName: "drive_change_batch_paths_batch_id_fkey";
|
|
1725
|
+
columns: ["batch_id"];
|
|
1726
|
+
isOneToOne: false;
|
|
1727
|
+
referencedRelation: "drive_change_batches";
|
|
1728
|
+
referencedColumns: ["id"];
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
foreignKeyName: "drive_change_batch_paths_drive_id_fkey";
|
|
1732
|
+
columns: ["drive_id"];
|
|
1733
|
+
isOneToOne: false;
|
|
1734
|
+
referencedRelation: "team_resources";
|
|
1735
|
+
referencedColumns: ["id"];
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
foreignKeyName: "drive_change_batch_paths_version_id_fkey";
|
|
1739
|
+
columns: ["version_id"];
|
|
1740
|
+
isOneToOne: false;
|
|
1741
|
+
referencedRelation: "drive_entry_versions";
|
|
1742
|
+
referencedColumns: ["id"];
|
|
1743
|
+
}
|
|
1744
|
+
];
|
|
1745
|
+
};
|
|
1746
|
+
drive_change_batches: {
|
|
1747
|
+
Row: {
|
|
1748
|
+
actor_agent_id: string | null;
|
|
1749
|
+
completed_at: string;
|
|
1750
|
+
confidence: string;
|
|
1751
|
+
counters: Json;
|
|
1752
|
+
created_at: string;
|
|
1753
|
+
drive_id: string;
|
|
1754
|
+
id: string;
|
|
1755
|
+
observation_metadata: Json;
|
|
1756
|
+
sequence: number;
|
|
1757
|
+
source_operation: string;
|
|
1758
|
+
source_operation_id: string;
|
|
1759
|
+
source_type: string;
|
|
1760
|
+
subscription_notified_at: string | null;
|
|
1761
|
+
summary: string;
|
|
1762
|
+
};
|
|
1763
|
+
Insert: {
|
|
1764
|
+
actor_agent_id?: string | null;
|
|
1765
|
+
completed_at?: string;
|
|
1766
|
+
confidence?: string;
|
|
1767
|
+
counters?: Json;
|
|
1768
|
+
created_at?: string;
|
|
1769
|
+
drive_id: string;
|
|
1770
|
+
id?: string;
|
|
1771
|
+
observation_metadata?: Json;
|
|
1772
|
+
sequence?: number;
|
|
1773
|
+
source_operation: string;
|
|
1774
|
+
source_operation_id: string;
|
|
1775
|
+
source_type: string;
|
|
1776
|
+
subscription_notified_at?: string | null;
|
|
1777
|
+
summary: string;
|
|
1778
|
+
};
|
|
1779
|
+
Update: {
|
|
1780
|
+
actor_agent_id?: string | null;
|
|
1781
|
+
completed_at?: string;
|
|
1782
|
+
confidence?: string;
|
|
1783
|
+
counters?: Json;
|
|
1784
|
+
created_at?: string;
|
|
1785
|
+
drive_id?: string;
|
|
1786
|
+
id?: string;
|
|
1787
|
+
observation_metadata?: Json;
|
|
1788
|
+
sequence?: number;
|
|
1789
|
+
source_operation?: string;
|
|
1790
|
+
source_operation_id?: string;
|
|
1791
|
+
source_type?: string;
|
|
1792
|
+
subscription_notified_at?: string | null;
|
|
1793
|
+
summary?: string;
|
|
1794
|
+
};
|
|
1795
|
+
Relationships: [
|
|
1796
|
+
{
|
|
1797
|
+
foreignKeyName: "drive_change_batches_drive_id_fkey";
|
|
1798
|
+
columns: ["drive_id"];
|
|
1799
|
+
isOneToOne: false;
|
|
1800
|
+
referencedRelation: "team_resources";
|
|
1801
|
+
referencedColumns: ["id"];
|
|
1802
|
+
}
|
|
1803
|
+
];
|
|
1804
|
+
};
|
|
1805
|
+
drive_conflicts: {
|
|
1806
|
+
Row: {
|
|
1807
|
+
base_version_id: string | null;
|
|
1808
|
+
candidate_version_id: string | null;
|
|
1809
|
+
created_at: string;
|
|
1810
|
+
current_version_id: string | null;
|
|
1811
|
+
details: Json;
|
|
1812
|
+
drive_id: string;
|
|
1813
|
+
entry_id: string | null;
|
|
1814
|
+
id: string;
|
|
1815
|
+
path: string;
|
|
1816
|
+
source_operation_id: string | null;
|
|
1817
|
+
source_type: string;
|
|
1818
|
+
status: string;
|
|
1819
|
+
updated_at: string;
|
|
1820
|
+
};
|
|
1821
|
+
Insert: {
|
|
1822
|
+
base_version_id?: string | null;
|
|
1823
|
+
candidate_version_id?: string | null;
|
|
1824
|
+
created_at?: string;
|
|
1825
|
+
current_version_id?: string | null;
|
|
1826
|
+
details?: Json;
|
|
1827
|
+
drive_id: string;
|
|
1828
|
+
entry_id?: string | null;
|
|
1829
|
+
id?: string;
|
|
1830
|
+
path: string;
|
|
1831
|
+
source_operation_id?: string | null;
|
|
1832
|
+
source_type?: string;
|
|
1833
|
+
status?: string;
|
|
1834
|
+
updated_at?: string;
|
|
1835
|
+
};
|
|
1836
|
+
Update: {
|
|
1837
|
+
base_version_id?: string | null;
|
|
1838
|
+
candidate_version_id?: string | null;
|
|
1839
|
+
created_at?: string;
|
|
1840
|
+
current_version_id?: string | null;
|
|
1841
|
+
details?: Json;
|
|
1842
|
+
drive_id?: string;
|
|
1843
|
+
entry_id?: string | null;
|
|
1844
|
+
id?: string;
|
|
1845
|
+
path?: string;
|
|
1846
|
+
source_operation_id?: string | null;
|
|
1847
|
+
source_type?: string;
|
|
1848
|
+
status?: string;
|
|
1849
|
+
updated_at?: string;
|
|
1850
|
+
};
|
|
1851
|
+
Relationships: [
|
|
1852
|
+
{
|
|
1853
|
+
foreignKeyName: "drive_conflicts_base_version_id_fkey";
|
|
1854
|
+
columns: ["base_version_id"];
|
|
1855
|
+
isOneToOne: false;
|
|
1856
|
+
referencedRelation: "drive_entry_versions";
|
|
1857
|
+
referencedColumns: ["id"];
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
foreignKeyName: "drive_conflicts_candidate_version_id_fkey";
|
|
1861
|
+
columns: ["candidate_version_id"];
|
|
1862
|
+
isOneToOne: false;
|
|
1863
|
+
referencedRelation: "drive_entry_versions";
|
|
1864
|
+
referencedColumns: ["id"];
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
foreignKeyName: "drive_conflicts_current_version_id_fkey";
|
|
1868
|
+
columns: ["current_version_id"];
|
|
1869
|
+
isOneToOne: false;
|
|
1870
|
+
referencedRelation: "drive_entry_versions";
|
|
1871
|
+
referencedColumns: ["id"];
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
foreignKeyName: "drive_conflicts_drive_id_fkey";
|
|
1875
|
+
columns: ["drive_id"];
|
|
1876
|
+
isOneToOne: false;
|
|
1877
|
+
referencedRelation: "team_resources";
|
|
1878
|
+
referencedColumns: ["id"];
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
foreignKeyName: "drive_conflicts_entry_id_fkey";
|
|
1882
|
+
columns: ["entry_id"];
|
|
1883
|
+
isOneToOne: false;
|
|
1884
|
+
referencedRelation: "drive_entries";
|
|
1885
|
+
referencedColumns: ["id"];
|
|
1886
|
+
}
|
|
1887
|
+
];
|
|
1888
|
+
};
|
|
1650
1889
|
drive_entries: {
|
|
1651
1890
|
Row: {
|
|
1652
|
-
content: string | null;
|
|
1653
1891
|
content_sha256: string | null;
|
|
1654
1892
|
created_at: string;
|
|
1893
|
+
current_version_id: string | null;
|
|
1655
1894
|
drive_id: string;
|
|
1656
1895
|
entry_type: string;
|
|
1657
1896
|
id: string;
|
|
@@ -1664,9 +1903,9 @@ export type Database = {
|
|
|
1664
1903
|
updated_at: string;
|
|
1665
1904
|
};
|
|
1666
1905
|
Insert: {
|
|
1667
|
-
content?: string | null;
|
|
1668
1906
|
content_sha256?: string | null;
|
|
1669
1907
|
created_at?: string;
|
|
1908
|
+
current_version_id?: string | null;
|
|
1670
1909
|
drive_id: string;
|
|
1671
1910
|
entry_type: string;
|
|
1672
1911
|
id?: string;
|
|
@@ -1679,9 +1918,9 @@ export type Database = {
|
|
|
1679
1918
|
updated_at?: string;
|
|
1680
1919
|
};
|
|
1681
1920
|
Update: {
|
|
1682
|
-
content?: string | null;
|
|
1683
1921
|
content_sha256?: string | null;
|
|
1684
1922
|
created_at?: string;
|
|
1923
|
+
current_version_id?: string | null;
|
|
1685
1924
|
drive_id?: string;
|
|
1686
1925
|
entry_type?: string;
|
|
1687
1926
|
id?: string;
|
|
@@ -1694,6 +1933,13 @@ export type Database = {
|
|
|
1694
1933
|
updated_at?: string;
|
|
1695
1934
|
};
|
|
1696
1935
|
Relationships: [
|
|
1936
|
+
{
|
|
1937
|
+
foreignKeyName: "drive_entries_current_version_id_fkey";
|
|
1938
|
+
columns: ["current_version_id"];
|
|
1939
|
+
isOneToOne: false;
|
|
1940
|
+
referencedRelation: "drive_entry_versions";
|
|
1941
|
+
referencedColumns: ["id"];
|
|
1942
|
+
},
|
|
1697
1943
|
{
|
|
1698
1944
|
foreignKeyName: "drive_entries_drive_id_fkey";
|
|
1699
1945
|
columns: ["drive_id"];
|
|
@@ -1703,6 +1949,407 @@ export type Database = {
|
|
|
1703
1949
|
}
|
|
1704
1950
|
];
|
|
1705
1951
|
};
|
|
1952
|
+
drive_entry_versions: {
|
|
1953
|
+
Row: {
|
|
1954
|
+
content: string | null;
|
|
1955
|
+
content_sha256: string;
|
|
1956
|
+
created_at: string;
|
|
1957
|
+
created_by: string | null;
|
|
1958
|
+
drive_id: string;
|
|
1959
|
+
entry_id: string | null;
|
|
1960
|
+
id: string;
|
|
1961
|
+
metadata: Json;
|
|
1962
|
+
mime_type: string | null;
|
|
1963
|
+
path: string;
|
|
1964
|
+
size_bytes: number;
|
|
1965
|
+
source_operation: string;
|
|
1966
|
+
source_operation_id: string | null;
|
|
1967
|
+
source_type: string;
|
|
1968
|
+
storage_backend: string;
|
|
1969
|
+
storage_key: string | null;
|
|
1970
|
+
};
|
|
1971
|
+
Insert: {
|
|
1972
|
+
content?: string | null;
|
|
1973
|
+
content_sha256: string;
|
|
1974
|
+
created_at?: string;
|
|
1975
|
+
created_by?: string | null;
|
|
1976
|
+
drive_id: string;
|
|
1977
|
+
entry_id?: string | null;
|
|
1978
|
+
id?: string;
|
|
1979
|
+
metadata?: Json;
|
|
1980
|
+
mime_type?: string | null;
|
|
1981
|
+
path: string;
|
|
1982
|
+
size_bytes?: number;
|
|
1983
|
+
source_operation?: string;
|
|
1984
|
+
source_operation_id?: string | null;
|
|
1985
|
+
source_type?: string;
|
|
1986
|
+
storage_backend?: string;
|
|
1987
|
+
storage_key?: string | null;
|
|
1988
|
+
};
|
|
1989
|
+
Update: {
|
|
1990
|
+
content?: string | null;
|
|
1991
|
+
content_sha256?: string;
|
|
1992
|
+
created_at?: string;
|
|
1993
|
+
created_by?: string | null;
|
|
1994
|
+
drive_id?: string;
|
|
1995
|
+
entry_id?: string | null;
|
|
1996
|
+
id?: string;
|
|
1997
|
+
metadata?: Json;
|
|
1998
|
+
mime_type?: string | null;
|
|
1999
|
+
path?: string;
|
|
2000
|
+
size_bytes?: number;
|
|
2001
|
+
source_operation?: string;
|
|
2002
|
+
source_operation_id?: string | null;
|
|
2003
|
+
source_type?: string;
|
|
2004
|
+
storage_backend?: string;
|
|
2005
|
+
storage_key?: string | null;
|
|
2006
|
+
};
|
|
2007
|
+
Relationships: [
|
|
2008
|
+
{
|
|
2009
|
+
foreignKeyName: "drive_entry_versions_drive_id_fkey";
|
|
2010
|
+
columns: ["drive_id"];
|
|
2011
|
+
isOneToOne: false;
|
|
2012
|
+
referencedRelation: "team_resources";
|
|
2013
|
+
referencedColumns: ["id"];
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
foreignKeyName: "drive_entry_versions_entry_id_fkey";
|
|
2017
|
+
columns: ["entry_id"];
|
|
2018
|
+
isOneToOne: false;
|
|
2019
|
+
referencedRelation: "drive_entries";
|
|
2020
|
+
referencedColumns: ["id"];
|
|
2021
|
+
}
|
|
2022
|
+
];
|
|
2023
|
+
};
|
|
2024
|
+
drive_object_cleanup_queue: {
|
|
2025
|
+
Row: {
|
|
2026
|
+
attempt_count: number;
|
|
2027
|
+
created_at: string;
|
|
2028
|
+
drive_id: string | null;
|
|
2029
|
+
id: string;
|
|
2030
|
+
last_attempt_at: string | null;
|
|
2031
|
+
last_error: string | null;
|
|
2032
|
+
next_attempt_at: string;
|
|
2033
|
+
reason: string;
|
|
2034
|
+
status: string;
|
|
2035
|
+
storage_key: string;
|
|
2036
|
+
updated_at: string;
|
|
2037
|
+
};
|
|
2038
|
+
Insert: {
|
|
2039
|
+
attempt_count?: number;
|
|
2040
|
+
created_at?: string;
|
|
2041
|
+
drive_id?: string | null;
|
|
2042
|
+
id?: string;
|
|
2043
|
+
last_attempt_at?: string | null;
|
|
2044
|
+
last_error?: string | null;
|
|
2045
|
+
next_attempt_at?: string;
|
|
2046
|
+
reason?: string;
|
|
2047
|
+
status?: string;
|
|
2048
|
+
storage_key: string;
|
|
2049
|
+
updated_at?: string;
|
|
2050
|
+
};
|
|
2051
|
+
Update: {
|
|
2052
|
+
attempt_count?: number;
|
|
2053
|
+
created_at?: string;
|
|
2054
|
+
drive_id?: string | null;
|
|
2055
|
+
id?: string;
|
|
2056
|
+
last_attempt_at?: string | null;
|
|
2057
|
+
last_error?: string | null;
|
|
2058
|
+
next_attempt_at?: string;
|
|
2059
|
+
reason?: string;
|
|
2060
|
+
status?: string;
|
|
2061
|
+
storage_key?: string;
|
|
2062
|
+
updated_at?: string;
|
|
2063
|
+
};
|
|
2064
|
+
Relationships: [];
|
|
2065
|
+
};
|
|
2066
|
+
drive_sync_clients: {
|
|
2067
|
+
Row: {
|
|
2068
|
+
agent_id: string | null;
|
|
2069
|
+
client_key: string;
|
|
2070
|
+
created_at: string;
|
|
2071
|
+
display_name: string | null;
|
|
2072
|
+
host_id: string | null;
|
|
2073
|
+
id: string;
|
|
2074
|
+
metadata: Json;
|
|
2075
|
+
status: string;
|
|
2076
|
+
team_id: string;
|
|
2077
|
+
updated_at: string;
|
|
2078
|
+
};
|
|
2079
|
+
Insert: {
|
|
2080
|
+
agent_id?: string | null;
|
|
2081
|
+
client_key: string;
|
|
2082
|
+
created_at?: string;
|
|
2083
|
+
display_name?: string | null;
|
|
2084
|
+
host_id?: string | null;
|
|
2085
|
+
id?: string;
|
|
2086
|
+
metadata?: Json;
|
|
2087
|
+
status?: string;
|
|
2088
|
+
team_id: string;
|
|
2089
|
+
updated_at?: string;
|
|
2090
|
+
};
|
|
2091
|
+
Update: {
|
|
2092
|
+
agent_id?: string | null;
|
|
2093
|
+
client_key?: string;
|
|
2094
|
+
created_at?: string;
|
|
2095
|
+
display_name?: string | null;
|
|
2096
|
+
host_id?: string | null;
|
|
2097
|
+
id?: string;
|
|
2098
|
+
metadata?: Json;
|
|
2099
|
+
status?: string;
|
|
2100
|
+
team_id?: string;
|
|
2101
|
+
updated_at?: string;
|
|
2102
|
+
};
|
|
2103
|
+
Relationships: [
|
|
2104
|
+
{
|
|
2105
|
+
foreignKeyName: "drive_sync_clients_agent_id_fkey";
|
|
2106
|
+
columns: ["agent_id"];
|
|
2107
|
+
isOneToOne: false;
|
|
2108
|
+
referencedRelation: "agent_full";
|
|
2109
|
+
referencedColumns: ["id"];
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
foreignKeyName: "drive_sync_clients_agent_id_fkey";
|
|
2113
|
+
columns: ["agent_id"];
|
|
2114
|
+
isOneToOne: false;
|
|
2115
|
+
referencedRelation: "agents";
|
|
2116
|
+
referencedColumns: ["id"];
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
foreignKeyName: "drive_sync_clients_team_id_fkey";
|
|
2120
|
+
columns: ["team_id"];
|
|
2121
|
+
isOneToOne: false;
|
|
2122
|
+
referencedRelation: "teams";
|
|
2123
|
+
referencedColumns: ["id"];
|
|
2124
|
+
}
|
|
2125
|
+
];
|
|
2126
|
+
};
|
|
2127
|
+
drive_sync_cursors: {
|
|
2128
|
+
Row: {
|
|
2129
|
+
created_at: string;
|
|
2130
|
+
drive_id: string;
|
|
2131
|
+
id: string;
|
|
2132
|
+
last_batch_sequence: number;
|
|
2133
|
+
last_error: string | null;
|
|
2134
|
+
last_success_at: string | null;
|
|
2135
|
+
metadata: Json;
|
|
2136
|
+
status: string;
|
|
2137
|
+
sync_client_id: string;
|
|
2138
|
+
updated_at: string;
|
|
2139
|
+
};
|
|
2140
|
+
Insert: {
|
|
2141
|
+
created_at?: string;
|
|
2142
|
+
drive_id: string;
|
|
2143
|
+
id?: string;
|
|
2144
|
+
last_batch_sequence?: number;
|
|
2145
|
+
last_error?: string | null;
|
|
2146
|
+
last_success_at?: string | null;
|
|
2147
|
+
metadata?: Json;
|
|
2148
|
+
status?: string;
|
|
2149
|
+
sync_client_id: string;
|
|
2150
|
+
updated_at?: string;
|
|
2151
|
+
};
|
|
2152
|
+
Update: {
|
|
2153
|
+
created_at?: string;
|
|
2154
|
+
drive_id?: string;
|
|
2155
|
+
id?: string;
|
|
2156
|
+
last_batch_sequence?: number;
|
|
2157
|
+
last_error?: string | null;
|
|
2158
|
+
last_success_at?: string | null;
|
|
2159
|
+
metadata?: Json;
|
|
2160
|
+
status?: string;
|
|
2161
|
+
sync_client_id?: string;
|
|
2162
|
+
updated_at?: string;
|
|
2163
|
+
};
|
|
2164
|
+
Relationships: [
|
|
2165
|
+
{
|
|
2166
|
+
foreignKeyName: "drive_sync_cursors_drive_id_fkey";
|
|
2167
|
+
columns: ["drive_id"];
|
|
2168
|
+
isOneToOne: false;
|
|
2169
|
+
referencedRelation: "team_resources";
|
|
2170
|
+
referencedColumns: ["id"];
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
foreignKeyName: "drive_sync_cursors_sync_client_id_fkey";
|
|
2174
|
+
columns: ["sync_client_id"];
|
|
2175
|
+
isOneToOne: false;
|
|
2176
|
+
referencedRelation: "drive_sync_clients";
|
|
2177
|
+
referencedColumns: ["id"];
|
|
2178
|
+
}
|
|
2179
|
+
];
|
|
2180
|
+
};
|
|
2181
|
+
drive_sync_status_reports: {
|
|
2182
|
+
Row: {
|
|
2183
|
+
created_at: string;
|
|
2184
|
+
drive_id: string;
|
|
2185
|
+
id: string;
|
|
2186
|
+
last_applied_batch_count: number;
|
|
2187
|
+
last_applied_path_count: number;
|
|
2188
|
+
last_batch_sequence: number | null;
|
|
2189
|
+
last_deferred_file_count: number;
|
|
2190
|
+
last_error: string | null;
|
|
2191
|
+
last_reason: string | null;
|
|
2192
|
+
last_remote_conflict_count: number;
|
|
2193
|
+
last_success_at: string | null;
|
|
2194
|
+
last_sync_at: string;
|
|
2195
|
+
last_uploaded_applied_count: number;
|
|
2196
|
+
last_uploaded_batch_count: number;
|
|
2197
|
+
last_uploaded_change_count: number;
|
|
2198
|
+
last_uploaded_conflict_count: number;
|
|
2199
|
+
last_uploaded_rejected_count: number;
|
|
2200
|
+
last_uploaded_unsupported_count: number;
|
|
2201
|
+
metadata: Json;
|
|
2202
|
+
status: string;
|
|
2203
|
+
sync_client_id: string;
|
|
2204
|
+
updated_at: string;
|
|
2205
|
+
};
|
|
2206
|
+
Insert: {
|
|
2207
|
+
created_at?: string;
|
|
2208
|
+
drive_id: string;
|
|
2209
|
+
id?: string;
|
|
2210
|
+
last_applied_batch_count?: number;
|
|
2211
|
+
last_applied_path_count?: number;
|
|
2212
|
+
last_batch_sequence?: number | null;
|
|
2213
|
+
last_deferred_file_count?: number;
|
|
2214
|
+
last_error?: string | null;
|
|
2215
|
+
last_reason?: string | null;
|
|
2216
|
+
last_remote_conflict_count?: number;
|
|
2217
|
+
last_success_at?: string | null;
|
|
2218
|
+
last_sync_at?: string;
|
|
2219
|
+
last_uploaded_applied_count?: number;
|
|
2220
|
+
last_uploaded_batch_count?: number;
|
|
2221
|
+
last_uploaded_change_count?: number;
|
|
2222
|
+
last_uploaded_conflict_count?: number;
|
|
2223
|
+
last_uploaded_rejected_count?: number;
|
|
2224
|
+
last_uploaded_unsupported_count?: number;
|
|
2225
|
+
metadata?: Json;
|
|
2226
|
+
status?: string;
|
|
2227
|
+
sync_client_id: string;
|
|
2228
|
+
updated_at?: string;
|
|
2229
|
+
};
|
|
2230
|
+
Update: {
|
|
2231
|
+
created_at?: string;
|
|
2232
|
+
drive_id?: string;
|
|
2233
|
+
id?: string;
|
|
2234
|
+
last_applied_batch_count?: number;
|
|
2235
|
+
last_applied_path_count?: number;
|
|
2236
|
+
last_batch_sequence?: number | null;
|
|
2237
|
+
last_deferred_file_count?: number;
|
|
2238
|
+
last_error?: string | null;
|
|
2239
|
+
last_reason?: string | null;
|
|
2240
|
+
last_remote_conflict_count?: number;
|
|
2241
|
+
last_success_at?: string | null;
|
|
2242
|
+
last_sync_at?: string;
|
|
2243
|
+
last_uploaded_applied_count?: number;
|
|
2244
|
+
last_uploaded_batch_count?: number;
|
|
2245
|
+
last_uploaded_change_count?: number;
|
|
2246
|
+
last_uploaded_conflict_count?: number;
|
|
2247
|
+
last_uploaded_rejected_count?: number;
|
|
2248
|
+
last_uploaded_unsupported_count?: number;
|
|
2249
|
+
metadata?: Json;
|
|
2250
|
+
status?: string;
|
|
2251
|
+
sync_client_id?: string;
|
|
2252
|
+
updated_at?: string;
|
|
2253
|
+
};
|
|
2254
|
+
Relationships: [
|
|
2255
|
+
{
|
|
2256
|
+
foreignKeyName: "drive_sync_status_reports_drive_id_fkey";
|
|
2257
|
+
columns: ["drive_id"];
|
|
2258
|
+
isOneToOne: false;
|
|
2259
|
+
referencedRelation: "team_resources";
|
|
2260
|
+
referencedColumns: ["id"];
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
foreignKeyName: "drive_sync_status_reports_sync_client_id_fkey";
|
|
2264
|
+
columns: ["sync_client_id"];
|
|
2265
|
+
isOneToOne: false;
|
|
2266
|
+
referencedRelation: "drive_sync_clients";
|
|
2267
|
+
referencedColumns: ["id"];
|
|
2268
|
+
}
|
|
2269
|
+
];
|
|
2270
|
+
};
|
|
2271
|
+
drive_uploads: {
|
|
2272
|
+
Row: {
|
|
2273
|
+
committed_version_id: string | null;
|
|
2274
|
+
content_sha256: string | null;
|
|
2275
|
+
created_at: string;
|
|
2276
|
+
drive_id: string;
|
|
2277
|
+
entry_id: string | null;
|
|
2278
|
+
expires_at: string;
|
|
2279
|
+
id: string;
|
|
2280
|
+
metadata: Json;
|
|
2281
|
+
mime_type: string | null;
|
|
2282
|
+
path: string;
|
|
2283
|
+
size_bytes: number | null;
|
|
2284
|
+
source_operation_id: string | null;
|
|
2285
|
+
source_type: string;
|
|
2286
|
+
status: string;
|
|
2287
|
+
storage_backend: string;
|
|
2288
|
+
storage_key: string | null;
|
|
2289
|
+
updated_at: string;
|
|
2290
|
+
};
|
|
2291
|
+
Insert: {
|
|
2292
|
+
committed_version_id?: string | null;
|
|
2293
|
+
content_sha256?: string | null;
|
|
2294
|
+
created_at?: string;
|
|
2295
|
+
drive_id: string;
|
|
2296
|
+
entry_id?: string | null;
|
|
2297
|
+
expires_at?: string;
|
|
2298
|
+
id?: string;
|
|
2299
|
+
metadata?: Json;
|
|
2300
|
+
mime_type?: string | null;
|
|
2301
|
+
path: string;
|
|
2302
|
+
size_bytes?: number | null;
|
|
2303
|
+
source_operation_id?: string | null;
|
|
2304
|
+
source_type?: string;
|
|
2305
|
+
status?: string;
|
|
2306
|
+
storage_backend?: string;
|
|
2307
|
+
storage_key?: string | null;
|
|
2308
|
+
updated_at?: string;
|
|
2309
|
+
};
|
|
2310
|
+
Update: {
|
|
2311
|
+
committed_version_id?: string | null;
|
|
2312
|
+
content_sha256?: string | null;
|
|
2313
|
+
created_at?: string;
|
|
2314
|
+
drive_id?: string;
|
|
2315
|
+
entry_id?: string | null;
|
|
2316
|
+
expires_at?: string;
|
|
2317
|
+
id?: string;
|
|
2318
|
+
metadata?: Json;
|
|
2319
|
+
mime_type?: string | null;
|
|
2320
|
+
path?: string;
|
|
2321
|
+
size_bytes?: number | null;
|
|
2322
|
+
source_operation_id?: string | null;
|
|
2323
|
+
source_type?: string;
|
|
2324
|
+
status?: string;
|
|
2325
|
+
storage_backend?: string;
|
|
2326
|
+
storage_key?: string | null;
|
|
2327
|
+
updated_at?: string;
|
|
2328
|
+
};
|
|
2329
|
+
Relationships: [
|
|
2330
|
+
{
|
|
2331
|
+
foreignKeyName: "drive_uploads_committed_version_id_fkey";
|
|
2332
|
+
columns: ["committed_version_id"];
|
|
2333
|
+
isOneToOne: false;
|
|
2334
|
+
referencedRelation: "drive_entry_versions";
|
|
2335
|
+
referencedColumns: ["id"];
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
foreignKeyName: "drive_uploads_drive_id_fkey";
|
|
2339
|
+
columns: ["drive_id"];
|
|
2340
|
+
isOneToOne: false;
|
|
2341
|
+
referencedRelation: "team_resources";
|
|
2342
|
+
referencedColumns: ["id"];
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
foreignKeyName: "drive_uploads_entry_id_fkey";
|
|
2346
|
+
columns: ["entry_id"];
|
|
2347
|
+
isOneToOne: false;
|
|
2348
|
+
referencedRelation: "drive_entries";
|
|
2349
|
+
referencedColumns: ["id"];
|
|
2350
|
+
}
|
|
2351
|
+
];
|
|
2352
|
+
};
|
|
1706
2353
|
external_connections: {
|
|
1707
2354
|
Row: {
|
|
1708
2355
|
agent_id: string | null;
|
|
@@ -3107,13 +3754,81 @@ export type Database = {
|
|
|
3107
3754
|
created_at?: string;
|
|
3108
3755
|
expires_at?: string | null;
|
|
3109
3756
|
id?: string;
|
|
3110
|
-
last_used_at?: string;
|
|
3757
|
+
last_used_at?: string;
|
|
3758
|
+
metadata?: Json;
|
|
3759
|
+
model_id: string;
|
|
3760
|
+
prefix_chars: number;
|
|
3761
|
+
prefix_hash: string;
|
|
3762
|
+
prefix_tokens_estimate?: number | null;
|
|
3763
|
+
provider_cache_name: string;
|
|
3764
|
+
provider_model_id: string;
|
|
3765
|
+
purpose: string;
|
|
3766
|
+
tools_hash?: string;
|
|
3767
|
+
updated_at?: string;
|
|
3768
|
+
};
|
|
3769
|
+
Update: {
|
|
3770
|
+
agent_id?: string;
|
|
3771
|
+
cache_strategy?: string;
|
|
3772
|
+
created_at?: string;
|
|
3773
|
+
expires_at?: string | null;
|
|
3774
|
+
id?: string;
|
|
3775
|
+
last_used_at?: string;
|
|
3776
|
+
metadata?: Json;
|
|
3777
|
+
model_id?: string;
|
|
3778
|
+
prefix_chars?: number;
|
|
3779
|
+
prefix_hash?: string;
|
|
3780
|
+
prefix_tokens_estimate?: number | null;
|
|
3781
|
+
provider_cache_name?: string;
|
|
3782
|
+
provider_model_id?: string;
|
|
3783
|
+
purpose?: string;
|
|
3784
|
+
tools_hash?: string;
|
|
3785
|
+
updated_at?: string;
|
|
3786
|
+
};
|
|
3787
|
+
Relationships: [
|
|
3788
|
+
{
|
|
3789
|
+
foreignKeyName: "model_cache_entries_agent_id_fkey";
|
|
3790
|
+
columns: ["agent_id"];
|
|
3791
|
+
isOneToOne: false;
|
|
3792
|
+
referencedRelation: "agent_full";
|
|
3793
|
+
referencedColumns: ["id"];
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
foreignKeyName: "model_cache_entries_agent_id_fkey";
|
|
3797
|
+
columns: ["agent_id"];
|
|
3798
|
+
isOneToOne: false;
|
|
3799
|
+
referencedRelation: "agents";
|
|
3800
|
+
referencedColumns: ["id"];
|
|
3801
|
+
}
|
|
3802
|
+
];
|
|
3803
|
+
};
|
|
3804
|
+
model_cache_entry_creation_claims: {
|
|
3805
|
+
Row: {
|
|
3806
|
+
agent_id: string;
|
|
3807
|
+
cache_strategy: string;
|
|
3808
|
+
claim_token: string;
|
|
3809
|
+
claimed_by: string | null;
|
|
3810
|
+
created_at: string;
|
|
3811
|
+
id: string;
|
|
3812
|
+
lease_expires_at: string;
|
|
3813
|
+
metadata: Json;
|
|
3814
|
+
model_id: string;
|
|
3815
|
+
prefix_hash: string;
|
|
3816
|
+
provider_model_id: string;
|
|
3817
|
+
purpose: string;
|
|
3818
|
+
tools_hash: string;
|
|
3819
|
+
updated_at: string;
|
|
3820
|
+
};
|
|
3821
|
+
Insert: {
|
|
3822
|
+
agent_id: string;
|
|
3823
|
+
cache_strategy: string;
|
|
3824
|
+
claim_token?: string;
|
|
3825
|
+
claimed_by?: string | null;
|
|
3826
|
+
created_at?: string;
|
|
3827
|
+
id?: string;
|
|
3828
|
+
lease_expires_at: string;
|
|
3111
3829
|
metadata?: Json;
|
|
3112
3830
|
model_id: string;
|
|
3113
|
-
prefix_chars: number;
|
|
3114
3831
|
prefix_hash: string;
|
|
3115
|
-
prefix_tokens_estimate?: number | null;
|
|
3116
|
-
provider_cache_name: string;
|
|
3117
3832
|
provider_model_id: string;
|
|
3118
3833
|
purpose: string;
|
|
3119
3834
|
tools_hash?: string;
|
|
@@ -3122,16 +3837,14 @@ export type Database = {
|
|
|
3122
3837
|
Update: {
|
|
3123
3838
|
agent_id?: string;
|
|
3124
3839
|
cache_strategy?: string;
|
|
3840
|
+
claim_token?: string;
|
|
3841
|
+
claimed_by?: string | null;
|
|
3125
3842
|
created_at?: string;
|
|
3126
|
-
expires_at?: string | null;
|
|
3127
3843
|
id?: string;
|
|
3128
|
-
|
|
3844
|
+
lease_expires_at?: string;
|
|
3129
3845
|
metadata?: Json;
|
|
3130
3846
|
model_id?: string;
|
|
3131
|
-
prefix_chars?: number;
|
|
3132
3847
|
prefix_hash?: string;
|
|
3133
|
-
prefix_tokens_estimate?: number | null;
|
|
3134
|
-
provider_cache_name?: string;
|
|
3135
3848
|
provider_model_id?: string;
|
|
3136
3849
|
purpose?: string;
|
|
3137
3850
|
tools_hash?: string;
|
|
@@ -3139,14 +3852,14 @@ export type Database = {
|
|
|
3139
3852
|
};
|
|
3140
3853
|
Relationships: [
|
|
3141
3854
|
{
|
|
3142
|
-
foreignKeyName: "
|
|
3855
|
+
foreignKeyName: "model_cache_entry_creation_claims_agent_id_fkey";
|
|
3143
3856
|
columns: ["agent_id"];
|
|
3144
3857
|
isOneToOne: false;
|
|
3145
3858
|
referencedRelation: "agent_full";
|
|
3146
3859
|
referencedColumns: ["id"];
|
|
3147
3860
|
},
|
|
3148
3861
|
{
|
|
3149
|
-
foreignKeyName: "
|
|
3862
|
+
foreignKeyName: "model_cache_entry_creation_claims_agent_id_fkey";
|
|
3150
3863
|
columns: ["agent_id"];
|
|
3151
3864
|
isOneToOne: false;
|
|
3152
3865
|
referencedRelation: "agents";
|
|
@@ -3541,6 +4254,170 @@ export type Database = {
|
|
|
3541
4254
|
};
|
|
3542
4255
|
Relationships: [];
|
|
3543
4256
|
};
|
|
4257
|
+
resource_operation_chunks: {
|
|
4258
|
+
Row: {
|
|
4259
|
+
accepted_at: string;
|
|
4260
|
+
chunk_index: number;
|
|
4261
|
+
counters: Json;
|
|
4262
|
+
created_at: string;
|
|
4263
|
+
id: string;
|
|
4264
|
+
metadata: Json;
|
|
4265
|
+
operation_id: string;
|
|
4266
|
+
path_cover: Json;
|
|
4267
|
+
result: Json;
|
|
4268
|
+
team_resource_id: string;
|
|
4269
|
+
updated_at: string;
|
|
4270
|
+
};
|
|
4271
|
+
Insert: {
|
|
4272
|
+
accepted_at?: string;
|
|
4273
|
+
chunk_index: number;
|
|
4274
|
+
counters?: Json;
|
|
4275
|
+
created_at?: string;
|
|
4276
|
+
id?: string;
|
|
4277
|
+
metadata?: Json;
|
|
4278
|
+
operation_id: string;
|
|
4279
|
+
path_cover?: Json;
|
|
4280
|
+
result?: Json;
|
|
4281
|
+
team_resource_id: string;
|
|
4282
|
+
updated_at?: string;
|
|
4283
|
+
};
|
|
4284
|
+
Update: {
|
|
4285
|
+
accepted_at?: string;
|
|
4286
|
+
chunk_index?: number;
|
|
4287
|
+
counters?: Json;
|
|
4288
|
+
created_at?: string;
|
|
4289
|
+
id?: string;
|
|
4290
|
+
metadata?: Json;
|
|
4291
|
+
operation_id?: string;
|
|
4292
|
+
path_cover?: Json;
|
|
4293
|
+
result?: Json;
|
|
4294
|
+
team_resource_id?: string;
|
|
4295
|
+
updated_at?: string;
|
|
4296
|
+
};
|
|
4297
|
+
Relationships: [
|
|
4298
|
+
{
|
|
4299
|
+
foreignKeyName: "resource_operation_chunks_operation_id_fkey";
|
|
4300
|
+
columns: ["operation_id"];
|
|
4301
|
+
isOneToOne: false;
|
|
4302
|
+
referencedRelation: "resource_operations";
|
|
4303
|
+
referencedColumns: ["id"];
|
|
4304
|
+
},
|
|
4305
|
+
{
|
|
4306
|
+
foreignKeyName: "resource_operation_chunks_team_resource_id_fkey";
|
|
4307
|
+
columns: ["team_resource_id"];
|
|
4308
|
+
isOneToOne: false;
|
|
4309
|
+
referencedRelation: "team_resources";
|
|
4310
|
+
referencedColumns: ["id"];
|
|
4311
|
+
}
|
|
4312
|
+
];
|
|
4313
|
+
};
|
|
4314
|
+
resource_operations: {
|
|
4315
|
+
Row: {
|
|
4316
|
+
accepted_chunk_count: number;
|
|
4317
|
+
actor_agent_id: string | null;
|
|
4318
|
+
counters: Json;
|
|
4319
|
+
created_at: string;
|
|
4320
|
+
emitted_at: string | null;
|
|
4321
|
+
error: string | null;
|
|
4322
|
+
expected_chunk_count: number | null;
|
|
4323
|
+
failed_at: string | null;
|
|
4324
|
+
finalized_at: string | null;
|
|
4325
|
+
id: string;
|
|
4326
|
+
metadata: Json;
|
|
4327
|
+
path_cover: Json;
|
|
4328
|
+
payload_fingerprint: string;
|
|
4329
|
+
resource_type: string;
|
|
4330
|
+
result: Json;
|
|
4331
|
+
source_operation: string;
|
|
4332
|
+
source_operation_id: string;
|
|
4333
|
+
source_type: string;
|
|
4334
|
+
status: string;
|
|
4335
|
+
summary: string | null;
|
|
4336
|
+
team_id: string;
|
|
4337
|
+
team_resource_id: string;
|
|
4338
|
+
updated_at: string;
|
|
4339
|
+
};
|
|
4340
|
+
Insert: {
|
|
4341
|
+
accepted_chunk_count?: number;
|
|
4342
|
+
actor_agent_id?: string | null;
|
|
4343
|
+
counters?: Json;
|
|
4344
|
+
created_at?: string;
|
|
4345
|
+
emitted_at?: string | null;
|
|
4346
|
+
error?: string | null;
|
|
4347
|
+
expected_chunk_count?: number | null;
|
|
4348
|
+
failed_at?: string | null;
|
|
4349
|
+
finalized_at?: string | null;
|
|
4350
|
+
id?: string;
|
|
4351
|
+
metadata?: Json;
|
|
4352
|
+
path_cover?: Json;
|
|
4353
|
+
payload_fingerprint: string;
|
|
4354
|
+
resource_type: string;
|
|
4355
|
+
result?: Json;
|
|
4356
|
+
source_operation: string;
|
|
4357
|
+
source_operation_id: string;
|
|
4358
|
+
source_type: string;
|
|
4359
|
+
status?: string;
|
|
4360
|
+
summary?: string | null;
|
|
4361
|
+
team_id: string;
|
|
4362
|
+
team_resource_id: string;
|
|
4363
|
+
updated_at?: string;
|
|
4364
|
+
};
|
|
4365
|
+
Update: {
|
|
4366
|
+
accepted_chunk_count?: number;
|
|
4367
|
+
actor_agent_id?: string | null;
|
|
4368
|
+
counters?: Json;
|
|
4369
|
+
created_at?: string;
|
|
4370
|
+
emitted_at?: string | null;
|
|
4371
|
+
error?: string | null;
|
|
4372
|
+
expected_chunk_count?: number | null;
|
|
4373
|
+
failed_at?: string | null;
|
|
4374
|
+
finalized_at?: string | null;
|
|
4375
|
+
id?: string;
|
|
4376
|
+
metadata?: Json;
|
|
4377
|
+
path_cover?: Json;
|
|
4378
|
+
payload_fingerprint?: string;
|
|
4379
|
+
resource_type?: string;
|
|
4380
|
+
result?: Json;
|
|
4381
|
+
source_operation?: string;
|
|
4382
|
+
source_operation_id?: string;
|
|
4383
|
+
source_type?: string;
|
|
4384
|
+
status?: string;
|
|
4385
|
+
summary?: string | null;
|
|
4386
|
+
team_id?: string;
|
|
4387
|
+
team_resource_id?: string;
|
|
4388
|
+
updated_at?: string;
|
|
4389
|
+
};
|
|
4390
|
+
Relationships: [
|
|
4391
|
+
{
|
|
4392
|
+
foreignKeyName: "resource_operations_actor_agent_id_fkey";
|
|
4393
|
+
columns: ["actor_agent_id"];
|
|
4394
|
+
isOneToOne: false;
|
|
4395
|
+
referencedRelation: "agent_full";
|
|
4396
|
+
referencedColumns: ["id"];
|
|
4397
|
+
},
|
|
4398
|
+
{
|
|
4399
|
+
foreignKeyName: "resource_operations_actor_agent_id_fkey";
|
|
4400
|
+
columns: ["actor_agent_id"];
|
|
4401
|
+
isOneToOne: false;
|
|
4402
|
+
referencedRelation: "agents";
|
|
4403
|
+
referencedColumns: ["id"];
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
foreignKeyName: "resource_operations_team_id_fkey";
|
|
4407
|
+
columns: ["team_id"];
|
|
4408
|
+
isOneToOne: false;
|
|
4409
|
+
referencedRelation: "teams";
|
|
4410
|
+
referencedColumns: ["id"];
|
|
4411
|
+
},
|
|
4412
|
+
{
|
|
4413
|
+
foreignKeyName: "resource_operations_team_resource_id_fkey";
|
|
4414
|
+
columns: ["team_resource_id"];
|
|
4415
|
+
isOneToOne: false;
|
|
4416
|
+
referencedRelation: "team_resources";
|
|
4417
|
+
referencedColumns: ["id"];
|
|
4418
|
+
}
|
|
4419
|
+
];
|
|
4420
|
+
};
|
|
3544
4421
|
runtime_billable_intervals: {
|
|
3545
4422
|
Row: {
|
|
3546
4423
|
created_at: string;
|
|
@@ -4195,58 +5072,6 @@ export type Database = {
|
|
|
4195
5072
|
}
|
|
4196
5073
|
];
|
|
4197
5074
|
};
|
|
4198
|
-
stored_resource_locks: {
|
|
4199
|
-
Row: {
|
|
4200
|
-
agent_id: string | null;
|
|
4201
|
-
expires_at: string;
|
|
4202
|
-
id: string;
|
|
4203
|
-
locked_at: string;
|
|
4204
|
-
resource_name: string;
|
|
4205
|
-
team_id: string | null;
|
|
4206
|
-
user_id: string;
|
|
4207
|
-
};
|
|
4208
|
-
Insert: {
|
|
4209
|
-
agent_id?: string | null;
|
|
4210
|
-
expires_at: string;
|
|
4211
|
-
id?: string;
|
|
4212
|
-
locked_at?: string;
|
|
4213
|
-
resource_name: string;
|
|
4214
|
-
team_id?: string | null;
|
|
4215
|
-
user_id: string;
|
|
4216
|
-
};
|
|
4217
|
-
Update: {
|
|
4218
|
-
agent_id?: string | null;
|
|
4219
|
-
expires_at?: string;
|
|
4220
|
-
id?: string;
|
|
4221
|
-
locked_at?: string;
|
|
4222
|
-
resource_name?: string;
|
|
4223
|
-
team_id?: string | null;
|
|
4224
|
-
user_id?: string;
|
|
4225
|
-
};
|
|
4226
|
-
Relationships: [
|
|
4227
|
-
{
|
|
4228
|
-
foreignKeyName: "stored_resource_locks_agent_id_agents_id_fk";
|
|
4229
|
-
columns: ["agent_id"];
|
|
4230
|
-
isOneToOne: false;
|
|
4231
|
-
referencedRelation: "agent_full";
|
|
4232
|
-
referencedColumns: ["id"];
|
|
4233
|
-
},
|
|
4234
|
-
{
|
|
4235
|
-
foreignKeyName: "stored_resource_locks_agent_id_agents_id_fk";
|
|
4236
|
-
columns: ["agent_id"];
|
|
4237
|
-
isOneToOne: false;
|
|
4238
|
-
referencedRelation: "agents";
|
|
4239
|
-
referencedColumns: ["id"];
|
|
4240
|
-
},
|
|
4241
|
-
{
|
|
4242
|
-
foreignKeyName: "stored_resource_locks_team_id_fkey";
|
|
4243
|
-
columns: ["team_id"];
|
|
4244
|
-
isOneToOne: false;
|
|
4245
|
-
referencedRelation: "teams";
|
|
4246
|
-
referencedColumns: ["id"];
|
|
4247
|
-
}
|
|
4248
|
-
];
|
|
4249
|
-
};
|
|
4250
5075
|
stored_resources: {
|
|
4251
5076
|
Row: {
|
|
4252
5077
|
agent_id: string | null;
|
|
@@ -4261,6 +5086,7 @@ export type Database = {
|
|
|
4261
5086
|
scope: string;
|
|
4262
5087
|
size_bytes: number | null;
|
|
4263
5088
|
team_id: string;
|
|
5089
|
+
team_resource_id: string | null;
|
|
4264
5090
|
updated_at: string;
|
|
4265
5091
|
version_created_at: string;
|
|
4266
5092
|
version_id: string;
|
|
@@ -4278,6 +5104,7 @@ export type Database = {
|
|
|
4278
5104
|
scope?: string;
|
|
4279
5105
|
size_bytes?: number | null;
|
|
4280
5106
|
team_id: string;
|
|
5107
|
+
team_resource_id?: string | null;
|
|
4281
5108
|
updated_at?: string;
|
|
4282
5109
|
version_created_at?: string;
|
|
4283
5110
|
version_id?: string;
|
|
@@ -4295,6 +5122,7 @@ export type Database = {
|
|
|
4295
5122
|
scope?: string;
|
|
4296
5123
|
size_bytes?: number | null;
|
|
4297
5124
|
team_id?: string;
|
|
5125
|
+
team_resource_id?: string | null;
|
|
4298
5126
|
updated_at?: string;
|
|
4299
5127
|
version_created_at?: string;
|
|
4300
5128
|
version_id?: string;
|
|
@@ -4320,6 +5148,13 @@ export type Database = {
|
|
|
4320
5148
|
isOneToOne: false;
|
|
4321
5149
|
referencedRelation: "agents";
|
|
4322
5150
|
referencedColumns: ["id"];
|
|
5151
|
+
},
|
|
5152
|
+
{
|
|
5153
|
+
foreignKeyName: "stored_resources_team_resource_id_fkey";
|
|
5154
|
+
columns: ["team_resource_id"];
|
|
5155
|
+
isOneToOne: false;
|
|
5156
|
+
referencedRelation: "team_resources";
|
|
5157
|
+
referencedColumns: ["id"];
|
|
4323
5158
|
}
|
|
4324
5159
|
];
|
|
4325
5160
|
};
|
|
@@ -5291,13 +6126,13 @@ export type Database = {
|
|
|
5291
6126
|
created_at: string;
|
|
5292
6127
|
id: string;
|
|
5293
6128
|
include_in_state: boolean;
|
|
6129
|
+
managed_by_resource_id: string | null;
|
|
5294
6130
|
poll_config: Json | null;
|
|
5295
6131
|
poll_consecutive_failures: number | null;
|
|
5296
6132
|
poll_disabled_at: string | null;
|
|
5297
6133
|
poll_interval_seconds: number | null;
|
|
5298
6134
|
poll_last_at: string | null;
|
|
5299
6135
|
poll_next_at: string | null;
|
|
5300
|
-
subscription_origin: string;
|
|
5301
6136
|
subscription_path: string;
|
|
5302
6137
|
team_resource_id: string;
|
|
5303
6138
|
updated_at: string;
|
|
@@ -5308,13 +6143,13 @@ export type Database = {
|
|
|
5308
6143
|
created_at?: string;
|
|
5309
6144
|
id?: string;
|
|
5310
6145
|
include_in_state?: boolean;
|
|
6146
|
+
managed_by_resource_id?: string | null;
|
|
5311
6147
|
poll_config?: Json | null;
|
|
5312
6148
|
poll_consecutive_failures?: number | null;
|
|
5313
6149
|
poll_disabled_at?: string | null;
|
|
5314
6150
|
poll_interval_seconds?: number | null;
|
|
5315
6151
|
poll_last_at?: string | null;
|
|
5316
6152
|
poll_next_at?: string | null;
|
|
5317
|
-
subscription_origin?: string;
|
|
5318
6153
|
subscription_path?: string;
|
|
5319
6154
|
team_resource_id: string;
|
|
5320
6155
|
updated_at?: string;
|
|
@@ -5325,13 +6160,13 @@ export type Database = {
|
|
|
5325
6160
|
created_at?: string;
|
|
5326
6161
|
id?: string;
|
|
5327
6162
|
include_in_state?: boolean;
|
|
6163
|
+
managed_by_resource_id?: string | null;
|
|
5328
6164
|
poll_config?: Json | null;
|
|
5329
6165
|
poll_consecutive_failures?: number | null;
|
|
5330
6166
|
poll_disabled_at?: string | null;
|
|
5331
6167
|
poll_interval_seconds?: number | null;
|
|
5332
6168
|
poll_last_at?: string | null;
|
|
5333
6169
|
poll_next_at?: string | null;
|
|
5334
|
-
subscription_origin?: string;
|
|
5335
6170
|
subscription_path?: string;
|
|
5336
6171
|
team_resource_id?: string;
|
|
5337
6172
|
updated_at?: string;
|
|
@@ -5352,6 +6187,13 @@ export type Database = {
|
|
|
5352
6187
|
referencedRelation: "agents";
|
|
5353
6188
|
referencedColumns: ["id"];
|
|
5354
6189
|
},
|
|
6190
|
+
{
|
|
6191
|
+
foreignKeyName: "team_resource_subscriptions_managed_by_resource_id_fkey";
|
|
6192
|
+
columns: ["managed_by_resource_id"];
|
|
6193
|
+
isOneToOne: false;
|
|
6194
|
+
referencedRelation: "team_resources";
|
|
6195
|
+
referencedColumns: ["id"];
|
|
6196
|
+
},
|
|
5355
6197
|
{
|
|
5356
6198
|
foreignKeyName: "team_resource_subscriptions_team_resource_id_fkey";
|
|
5357
6199
|
columns: ["team_resource_id"];
|
|
@@ -7669,6 +8511,43 @@ export type Database = {
|
|
|
7669
8511
|
};
|
|
7670
8512
|
Returns: Json;
|
|
7671
8513
|
};
|
|
8514
|
+
acknowledge_drive_sync_cursor: {
|
|
8515
|
+
Args: {
|
|
8516
|
+
p_drive_id: string;
|
|
8517
|
+
p_last_batch_sequence: number;
|
|
8518
|
+
p_last_error?: string;
|
|
8519
|
+
p_sync_client_id: string;
|
|
8520
|
+
};
|
|
8521
|
+
Returns: {
|
|
8522
|
+
created_at: string;
|
|
8523
|
+
drive_id: string;
|
|
8524
|
+
id: string;
|
|
8525
|
+
last_batch_sequence: number;
|
|
8526
|
+
last_error: string | null;
|
|
8527
|
+
last_success_at: string | null;
|
|
8528
|
+
metadata: Json;
|
|
8529
|
+
status: string;
|
|
8530
|
+
sync_client_id: string;
|
|
8531
|
+
updated_at: string;
|
|
8532
|
+
};
|
|
8533
|
+
SetofOptions: {
|
|
8534
|
+
from: "*";
|
|
8535
|
+
to: "drive_sync_cursors";
|
|
8536
|
+
isOneToOne: true;
|
|
8537
|
+
isSetofReturn: false;
|
|
8538
|
+
};
|
|
8539
|
+
};
|
|
8540
|
+
acknowledge_drive_sync_cursor_with_remote_conflicts: {
|
|
8541
|
+
Args: {
|
|
8542
|
+
p_drive_id: string;
|
|
8543
|
+
p_last_batch_sequence: number;
|
|
8544
|
+
p_last_error?: string;
|
|
8545
|
+
p_remote_conflicts?: Json;
|
|
8546
|
+
p_source_operation_id: string;
|
|
8547
|
+
p_sync_client_id: string;
|
|
8548
|
+
};
|
|
8549
|
+
Returns: Json;
|
|
8550
|
+
};
|
|
7672
8551
|
activate_agent_with_planner: {
|
|
7673
8552
|
Args: {
|
|
7674
8553
|
p_action_summary?: string;
|
|
@@ -7716,6 +8595,27 @@ export type Database = {
|
|
|
7716
8595
|
};
|
|
7717
8596
|
Returns: number;
|
|
7718
8597
|
};
|
|
8598
|
+
apply_drive_conflict_actions: {
|
|
8599
|
+
Args: {
|
|
8600
|
+
p_actions?: Json;
|
|
8601
|
+
p_drive_id: string;
|
|
8602
|
+
p_source_operation_id: string;
|
|
8603
|
+
p_sync_client_id: string;
|
|
8604
|
+
};
|
|
8605
|
+
Returns: Json;
|
|
8606
|
+
};
|
|
8607
|
+
apply_local_drive_change_batch: {
|
|
8608
|
+
Args: {
|
|
8609
|
+
p_actor_agent_id?: string;
|
|
8610
|
+
p_base_cursor_sequence?: number;
|
|
8611
|
+
p_batch_group_metadata?: Json;
|
|
8612
|
+
p_changes?: Json;
|
|
8613
|
+
p_drive_id: string;
|
|
8614
|
+
p_source_operation_id: string;
|
|
8615
|
+
p_sync_client_id: string;
|
|
8616
|
+
};
|
|
8617
|
+
Returns: Json;
|
|
8618
|
+
};
|
|
7719
8619
|
apply_vm_guest_provisioning_patch: {
|
|
7720
8620
|
Args: {
|
|
7721
8621
|
p_patch: Json;
|
|
@@ -7767,6 +8667,49 @@ export type Database = {
|
|
|
7767
8667
|
};
|
|
7768
8668
|
Returns: undefined;
|
|
7769
8669
|
};
|
|
8670
|
+
begin_resource_operation: {
|
|
8671
|
+
Args: {
|
|
8672
|
+
p_actor_agent_id?: string;
|
|
8673
|
+
p_expected_chunk_count?: number;
|
|
8674
|
+
p_metadata?: Json;
|
|
8675
|
+
p_payload_fingerprint?: string;
|
|
8676
|
+
p_source_operation: string;
|
|
8677
|
+
p_source_operation_id: string;
|
|
8678
|
+
p_source_type: string;
|
|
8679
|
+
p_team_resource_id: string;
|
|
8680
|
+
};
|
|
8681
|
+
Returns: {
|
|
8682
|
+
accepted_chunk_count: number;
|
|
8683
|
+
actor_agent_id: string | null;
|
|
8684
|
+
counters: Json;
|
|
8685
|
+
created_at: string;
|
|
8686
|
+
emitted_at: string | null;
|
|
8687
|
+
error: string | null;
|
|
8688
|
+
expected_chunk_count: number | null;
|
|
8689
|
+
failed_at: string | null;
|
|
8690
|
+
finalized_at: string | null;
|
|
8691
|
+
id: string;
|
|
8692
|
+
metadata: Json;
|
|
8693
|
+
path_cover: Json;
|
|
8694
|
+
payload_fingerprint: string;
|
|
8695
|
+
resource_type: string;
|
|
8696
|
+
result: Json;
|
|
8697
|
+
source_operation: string;
|
|
8698
|
+
source_operation_id: string;
|
|
8699
|
+
source_type: string;
|
|
8700
|
+
status: string;
|
|
8701
|
+
summary: string | null;
|
|
8702
|
+
team_id: string;
|
|
8703
|
+
team_resource_id: string;
|
|
8704
|
+
updated_at: string;
|
|
8705
|
+
};
|
|
8706
|
+
SetofOptions: {
|
|
8707
|
+
from: "*";
|
|
8708
|
+
to: "resource_operations";
|
|
8709
|
+
isOneToOne: true;
|
|
8710
|
+
isSetofReturn: false;
|
|
8711
|
+
};
|
|
8712
|
+
};
|
|
7770
8713
|
build_channel_subscription_snapshot: {
|
|
7771
8714
|
Args: {
|
|
7772
8715
|
p_conversation_id: string;
|
|
@@ -7981,16 +8924,35 @@ export type Database = {
|
|
|
7981
8924
|
wake_generation: number;
|
|
7982
8925
|
}[];
|
|
7983
8926
|
};
|
|
8927
|
+
claim_model_cache_entry_creation: {
|
|
8928
|
+
Args: {
|
|
8929
|
+
p_agent_id: string;
|
|
8930
|
+
p_cache_strategy: string;
|
|
8931
|
+
p_claimed_by?: string;
|
|
8932
|
+
p_lease_seconds?: number;
|
|
8933
|
+
p_model_id: string;
|
|
8934
|
+
p_prefix_hash: string;
|
|
8935
|
+
p_provider_model_id: string;
|
|
8936
|
+
p_purpose: string;
|
|
8937
|
+
p_tools_hash?: string;
|
|
8938
|
+
};
|
|
8939
|
+
Returns: {
|
|
8940
|
+
action: string;
|
|
8941
|
+
claim_token: string;
|
|
8942
|
+
expires_at: string;
|
|
8943
|
+
lease_expires_at: string;
|
|
8944
|
+
prefix_chars: number;
|
|
8945
|
+
prefix_hash: string;
|
|
8946
|
+
provider_cache_name: string;
|
|
8947
|
+
tools_hash: string;
|
|
8948
|
+
}[];
|
|
8949
|
+
};
|
|
7984
8950
|
cleanup_deleted_files: {
|
|
7985
8951
|
Args: {
|
|
7986
8952
|
p_days_old?: number;
|
|
7987
8953
|
};
|
|
7988
8954
|
Returns: number;
|
|
7989
8955
|
};
|
|
7990
|
-
cleanup_expired_file_locks: {
|
|
7991
|
-
Args: never;
|
|
7992
|
-
Returns: undefined;
|
|
7993
|
-
};
|
|
7994
8956
|
cleanup_expired_oauth_states: {
|
|
7995
8957
|
Args: never;
|
|
7996
8958
|
Returns: number;
|
|
@@ -8078,6 +9040,30 @@ export type Database = {
|
|
|
8078
9040
|
step_updated: boolean;
|
|
8079
9041
|
}[];
|
|
8080
9042
|
};
|
|
9043
|
+
complete_model_cache_entry_creation: {
|
|
9044
|
+
Args: {
|
|
9045
|
+
p_agent_id: string;
|
|
9046
|
+
p_cache_strategy: string;
|
|
9047
|
+
p_claim_token: string;
|
|
9048
|
+
p_expires_at?: string;
|
|
9049
|
+
p_model_id: string;
|
|
9050
|
+
p_prefix_chars: number;
|
|
9051
|
+
p_prefix_hash: string;
|
|
9052
|
+
p_prefix_tokens_estimate: number;
|
|
9053
|
+
p_provider_cache_name: string;
|
|
9054
|
+
p_provider_model_id: string;
|
|
9055
|
+
p_purpose: string;
|
|
9056
|
+
p_tools_hash: string;
|
|
9057
|
+
};
|
|
9058
|
+
Returns: {
|
|
9059
|
+
completed: boolean;
|
|
9060
|
+
expires_at: string;
|
|
9061
|
+
prefix_chars: number;
|
|
9062
|
+
prefix_hash: string;
|
|
9063
|
+
provider_cache_name: string;
|
|
9064
|
+
tools_hash: string;
|
|
9065
|
+
}[];
|
|
9066
|
+
};
|
|
8081
9067
|
consume_agent_resources: {
|
|
8082
9068
|
Args: {
|
|
8083
9069
|
p_agent_id: string;
|
|
@@ -8280,14 +9266,17 @@ export type Database = {
|
|
|
8280
9266
|
};
|
|
8281
9267
|
create_drive_directory: {
|
|
8282
9268
|
Args: {
|
|
9269
|
+
p_actor_agent_id?: string;
|
|
8283
9270
|
p_drive_id: string;
|
|
8284
9271
|
p_metadata?: Json;
|
|
8285
9272
|
p_path: string;
|
|
9273
|
+
p_source_operation_id?: string;
|
|
9274
|
+
p_source_type?: string;
|
|
8286
9275
|
};
|
|
8287
9276
|
Returns: {
|
|
8288
|
-
content: string | null;
|
|
8289
9277
|
content_sha256: string | null;
|
|
8290
9278
|
created_at: string;
|
|
9279
|
+
current_version_id: string | null;
|
|
8291
9280
|
drive_id: string;
|
|
8292
9281
|
entry_type: string;
|
|
8293
9282
|
id: string;
|
|
@@ -8306,6 +9295,16 @@ export type Database = {
|
|
|
8306
9295
|
isSetofReturn: false;
|
|
8307
9296
|
};
|
|
8308
9297
|
};
|
|
9298
|
+
create_drive_directory_with_resource_operation: {
|
|
9299
|
+
Args: {
|
|
9300
|
+
p_actor_agent_id?: string;
|
|
9301
|
+
p_drive_id: string;
|
|
9302
|
+
p_metadata?: Json;
|
|
9303
|
+
p_path: string;
|
|
9304
|
+
p_source_operation_id?: string;
|
|
9305
|
+
};
|
|
9306
|
+
Returns: Json;
|
|
9307
|
+
};
|
|
8309
9308
|
create_drive_resource: {
|
|
8310
9309
|
Args: {
|
|
8311
9310
|
p_created_by?: string;
|
|
@@ -8424,6 +9423,16 @@ export type Database = {
|
|
|
8424
9423
|
isSetofReturn: false;
|
|
8425
9424
|
};
|
|
8426
9425
|
};
|
|
9426
|
+
create_note_resource: {
|
|
9427
|
+
Args: {
|
|
9428
|
+
p_agent_id: string;
|
|
9429
|
+
p_content?: string;
|
|
9430
|
+
p_name: string;
|
|
9431
|
+
p_scope?: string;
|
|
9432
|
+
p_team_id: string;
|
|
9433
|
+
};
|
|
9434
|
+
Returns: Json;
|
|
9435
|
+
};
|
|
8427
9436
|
create_or_replace_agent_job: {
|
|
8428
9437
|
Args: {
|
|
8429
9438
|
p_agent_id: string;
|
|
@@ -8632,13 +9641,16 @@ export type Database = {
|
|
|
8632
9641
|
};
|
|
8633
9642
|
delete_drive_entry: {
|
|
8634
9643
|
Args: {
|
|
9644
|
+
p_actor_agent_id?: string;
|
|
8635
9645
|
p_drive_id: string;
|
|
8636
9646
|
p_path: string;
|
|
9647
|
+
p_source_operation_id?: string;
|
|
9648
|
+
p_source_type?: string;
|
|
8637
9649
|
};
|
|
8638
9650
|
Returns: {
|
|
8639
|
-
content: string | null;
|
|
8640
9651
|
content_sha256: string | null;
|
|
8641
9652
|
created_at: string;
|
|
9653
|
+
current_version_id: string | null;
|
|
8642
9654
|
drive_id: string;
|
|
8643
9655
|
entry_type: string;
|
|
8644
9656
|
id: string;
|
|
@@ -8657,6 +9669,22 @@ export type Database = {
|
|
|
8657
9669
|
isSetofReturn: false;
|
|
8658
9670
|
};
|
|
8659
9671
|
};
|
|
9672
|
+
delete_drive_entry_with_resource_operation: {
|
|
9673
|
+
Args: {
|
|
9674
|
+
p_actor_agent_id?: string;
|
|
9675
|
+
p_drive_id: string;
|
|
9676
|
+
p_path: string;
|
|
9677
|
+
p_source_operation_id?: string;
|
|
9678
|
+
};
|
|
9679
|
+
Returns: Json;
|
|
9680
|
+
};
|
|
9681
|
+
delete_note_resource_with_base_version: {
|
|
9682
|
+
Args: {
|
|
9683
|
+
p_base_version_id: string;
|
|
9684
|
+
p_resource_id: string;
|
|
9685
|
+
};
|
|
9686
|
+
Returns: Json;
|
|
9687
|
+
};
|
|
8660
9688
|
delete_team_resource_for_stored_resource_identity: {
|
|
8661
9689
|
Args: {
|
|
8662
9690
|
p_owner_agent_id: string;
|
|
@@ -8770,18 +9798,46 @@ export type Database = {
|
|
|
8770
9798
|
};
|
|
8771
9799
|
Returns: string;
|
|
8772
9800
|
};
|
|
9801
|
+
drive_has_newer_subtree_change: {
|
|
9802
|
+
Args: {
|
|
9803
|
+
p_base_cursor_sequence: number;
|
|
9804
|
+
p_drive_id: string;
|
|
9805
|
+
p_path: string;
|
|
9806
|
+
};
|
|
9807
|
+
Returns: boolean;
|
|
9808
|
+
};
|
|
8773
9809
|
drive_parent_path: {
|
|
8774
9810
|
Args: {
|
|
8775
9811
|
p_path: string;
|
|
8776
9812
|
};
|
|
8777
9813
|
Returns: string;
|
|
8778
9814
|
};
|
|
9815
|
+
drive_paths_subtree_overlap: {
|
|
9816
|
+
Args: {
|
|
9817
|
+
p_left_path: string;
|
|
9818
|
+
p_right_path: string;
|
|
9819
|
+
};
|
|
9820
|
+
Returns: boolean;
|
|
9821
|
+
};
|
|
9822
|
+
drive_sync_client_can_access_drive: {
|
|
9823
|
+
Args: {
|
|
9824
|
+
p_drive_id: string;
|
|
9825
|
+
p_sync_client_id: string;
|
|
9826
|
+
};
|
|
9827
|
+
Returns: boolean;
|
|
9828
|
+
};
|
|
8779
9829
|
drive_target_paths: {
|
|
8780
9830
|
Args: {
|
|
8781
9831
|
p_path: string;
|
|
8782
9832
|
};
|
|
8783
9833
|
Returns: string[];
|
|
8784
9834
|
};
|
|
9835
|
+
emit_drive_change_batch_resource_event: {
|
|
9836
|
+
Args: {
|
|
9837
|
+
p_batch_id: string;
|
|
9838
|
+
};
|
|
9839
|
+
Returns: undefined;
|
|
9840
|
+
};
|
|
8785
9841
|
emit_drive_resource_event: {
|
|
8786
9842
|
Args: {
|
|
8787
9843
|
p_change_summary: string;
|
|
@@ -8801,6 +9857,42 @@ export type Database = {
|
|
|
8801
9857
|
};
|
|
8802
9858
|
Returns: undefined;
|
|
8803
9859
|
};
|
|
9860
|
+
emit_finalized_resource_operation: {
|
|
9861
|
+
Args: {
|
|
9862
|
+
p_operation_id: string;
|
|
9863
|
+
};
|
|
9864
|
+
Returns: {
|
|
9865
|
+
accepted_chunk_count: number;
|
|
9866
|
+
actor_agent_id: string | null;
|
|
9867
|
+
counters: Json;
|
|
9868
|
+
created_at: string;
|
|
9869
|
+
emitted_at: string | null;
|
|
9870
|
+
error: string | null;
|
|
9871
|
+
expected_chunk_count: number | null;
|
|
9872
|
+
failed_at: string | null;
|
|
9873
|
+
finalized_at: string | null;
|
|
9874
|
+
id: string;
|
|
9875
|
+
metadata: Json;
|
|
9876
|
+
path_cover: Json;
|
|
9877
|
+
payload_fingerprint: string;
|
|
9878
|
+
resource_type: string;
|
|
9879
|
+
result: Json;
|
|
9880
|
+
source_operation: string;
|
|
9881
|
+
source_operation_id: string;
|
|
9882
|
+
source_type: string;
|
|
9883
|
+
status: string;
|
|
9884
|
+
summary: string | null;
|
|
9885
|
+
team_id: string;
|
|
9886
|
+
team_resource_id: string;
|
|
9887
|
+
updated_at: string;
|
|
9888
|
+
};
|
|
9889
|
+
SetofOptions: {
|
|
9890
|
+
from: "*";
|
|
9891
|
+
to: "resource_operations";
|
|
9892
|
+
isOneToOne: true;
|
|
9893
|
+
isSetofReturn: false;
|
|
9894
|
+
};
|
|
9895
|
+
};
|
|
8804
9896
|
emit_vm_gateway_runtime_change: {
|
|
8805
9897
|
Args: {
|
|
8806
9898
|
p_device_name?: string;
|
|
@@ -8896,6 +9988,18 @@ export type Database = {
|
|
|
8896
9988
|
};
|
|
8897
9989
|
Returns: undefined;
|
|
8898
9990
|
};
|
|
9991
|
+
enqueue_rationalize_agent_template_job: {
|
|
9992
|
+
Args: {
|
|
9993
|
+
p_requested_by: string;
|
|
9994
|
+
p_source_agent_id: string;
|
|
9995
|
+
p_template_id: string;
|
|
9996
|
+
};
|
|
9997
|
+
Returns: {
|
|
9998
|
+
job_id: number;
|
|
9999
|
+
message: string;
|
|
10000
|
+
success: boolean;
|
|
10001
|
+
}[];
|
|
10002
|
+
};
|
|
8899
10003
|
enqueue_subagent_notification_event_job: {
|
|
8900
10004
|
Args: {
|
|
8901
10005
|
p_delay_seconds?: number;
|
|
@@ -8980,6 +10084,30 @@ export type Database = {
|
|
|
8980
10084
|
};
|
|
8981
10085
|
Returns: undefined;
|
|
8982
10086
|
};
|
|
10087
|
+
ensure_drive_sync_cursor: {
|
|
10088
|
+
Args: {
|
|
10089
|
+
p_drive_id: string;
|
|
10090
|
+
p_sync_client_id: string;
|
|
10091
|
+
};
|
|
10092
|
+
Returns: {
|
|
10093
|
+
created_at: string;
|
|
10094
|
+
drive_id: string;
|
|
10095
|
+
id: string;
|
|
10096
|
+
last_batch_sequence: number;
|
|
10097
|
+
last_error: string | null;
|
|
10098
|
+
last_success_at: string | null;
|
|
10099
|
+
metadata: Json;
|
|
10100
|
+
status: string;
|
|
10101
|
+
sync_client_id: string;
|
|
10102
|
+
updated_at: string;
|
|
10103
|
+
};
|
|
10104
|
+
SetofOptions: {
|
|
10105
|
+
from: "*";
|
|
10106
|
+
to: "drive_sync_cursors";
|
|
10107
|
+
isOneToOne: true;
|
|
10108
|
+
isSetofReturn: false;
|
|
10109
|
+
};
|
|
10110
|
+
};
|
|
8983
10111
|
ensure_health_alert_resources: {
|
|
8984
10112
|
Args: {
|
|
8985
10113
|
p_team_id: string;
|
|
@@ -9054,6 +10182,59 @@ export type Database = {
|
|
|
9054
10182
|
};
|
|
9055
10183
|
Returns: Json;
|
|
9056
10184
|
};
|
|
10185
|
+
fail_model_cache_entry_creation: {
|
|
10186
|
+
Args: {
|
|
10187
|
+
p_agent_id: string;
|
|
10188
|
+
p_cache_strategy: string;
|
|
10189
|
+
p_claim_token: string;
|
|
10190
|
+
p_error?: string;
|
|
10191
|
+
p_model_id: string;
|
|
10192
|
+
p_prefix_hash: string;
|
|
10193
|
+
p_provider_model_id: string;
|
|
10194
|
+
p_purpose: string;
|
|
10195
|
+
p_tools_hash: string;
|
|
10196
|
+
};
|
|
10197
|
+
Returns: boolean;
|
|
10198
|
+
};
|
|
10199
|
+
fail_resource_operation: {
|
|
10200
|
+
Args: {
|
|
10201
|
+
p_error: string;
|
|
10202
|
+
p_metadata?: Json;
|
|
10203
|
+
p_operation_id: string;
|
|
10204
|
+
p_result?: Json;
|
|
10205
|
+
};
|
|
10206
|
+
Returns: {
|
|
10207
|
+
accepted_chunk_count: number;
|
|
10208
|
+
actor_agent_id: string | null;
|
|
10209
|
+
counters: Json;
|
|
10210
|
+
created_at: string;
|
|
10211
|
+
emitted_at: string | null;
|
|
10212
|
+
error: string | null;
|
|
10213
|
+
expected_chunk_count: number | null;
|
|
10214
|
+
failed_at: string | null;
|
|
10215
|
+
finalized_at: string | null;
|
|
10216
|
+
id: string;
|
|
10217
|
+
metadata: Json;
|
|
10218
|
+
path_cover: Json;
|
|
10219
|
+
payload_fingerprint: string;
|
|
10220
|
+
resource_type: string;
|
|
10221
|
+
result: Json;
|
|
10222
|
+
source_operation: string;
|
|
10223
|
+
source_operation_id: string;
|
|
10224
|
+
source_type: string;
|
|
10225
|
+
status: string;
|
|
10226
|
+
summary: string | null;
|
|
10227
|
+
team_id: string;
|
|
10228
|
+
team_resource_id: string;
|
|
10229
|
+
updated_at: string;
|
|
10230
|
+
};
|
|
10231
|
+
SetofOptions: {
|
|
10232
|
+
from: "*";
|
|
10233
|
+
to: "resource_operations";
|
|
10234
|
+
isOneToOne: true;
|
|
10235
|
+
isSetofReturn: false;
|
|
10236
|
+
};
|
|
10237
|
+
};
|
|
9057
10238
|
finalize_agent_name_creation: {
|
|
9058
10239
|
Args: {
|
|
9059
10240
|
p_action_summary: string;
|
|
@@ -9092,6 +10273,46 @@ export type Database = {
|
|
|
9092
10273
|
run_status: string;
|
|
9093
10274
|
}[];
|
|
9094
10275
|
};
|
|
10276
|
+
finalize_resource_operation: {
|
|
10277
|
+
Args: {
|
|
10278
|
+
p_counters?: Json;
|
|
10279
|
+
p_metadata?: Json;
|
|
10280
|
+
p_operation_id: string;
|
|
10281
|
+
p_result?: Json;
|
|
10282
|
+
p_summary?: string;
|
|
10283
|
+
};
|
|
10284
|
+
Returns: {
|
|
10285
|
+
accepted_chunk_count: number;
|
|
10286
|
+
actor_agent_id: string | null;
|
|
10287
|
+
counters: Json;
|
|
10288
|
+
created_at: string;
|
|
10289
|
+
emitted_at: string | null;
|
|
10290
|
+
error: string | null;
|
|
10291
|
+
expected_chunk_count: number | null;
|
|
10292
|
+
failed_at: string | null;
|
|
10293
|
+
finalized_at: string | null;
|
|
10294
|
+
id: string;
|
|
10295
|
+
metadata: Json;
|
|
10296
|
+
path_cover: Json;
|
|
10297
|
+
payload_fingerprint: string;
|
|
10298
|
+
resource_type: string;
|
|
10299
|
+
result: Json;
|
|
10300
|
+
source_operation: string;
|
|
10301
|
+
source_operation_id: string;
|
|
10302
|
+
source_type: string;
|
|
10303
|
+
status: string;
|
|
10304
|
+
summary: string | null;
|
|
10305
|
+
team_id: string;
|
|
10306
|
+
team_resource_id: string;
|
|
10307
|
+
updated_at: string;
|
|
10308
|
+
};
|
|
10309
|
+
SetofOptions: {
|
|
10310
|
+
from: "*";
|
|
10311
|
+
to: "resource_operations";
|
|
10312
|
+
isOneToOne: true;
|
|
10313
|
+
isSetofReturn: false;
|
|
10314
|
+
};
|
|
10315
|
+
};
|
|
9095
10316
|
finalize_vm_bootstrap_exchange: {
|
|
9096
10317
|
Args: {
|
|
9097
10318
|
p_device_name?: string;
|
|
@@ -9536,30 +10757,6 @@ export type Database = {
|
|
|
9536
10757
|
visibility: string;
|
|
9537
10758
|
}[];
|
|
9538
10759
|
};
|
|
9539
|
-
get_note_history: {
|
|
9540
|
-
Args: {
|
|
9541
|
-
p_agent_id: string;
|
|
9542
|
-
p_note_name: string;
|
|
9543
|
-
};
|
|
9544
|
-
Returns: {
|
|
9545
|
-
content: string;
|
|
9546
|
-
previous_version_id: string;
|
|
9547
|
-
version_created_at: string;
|
|
9548
|
-
version_id: string;
|
|
9549
|
-
}[];
|
|
9550
|
-
};
|
|
9551
|
-
get_note_lines: {
|
|
9552
|
-
Args: {
|
|
9553
|
-
p_agent_id: string;
|
|
9554
|
-
p_end_line?: number;
|
|
9555
|
-
p_note_name: string;
|
|
9556
|
-
p_start_line: number;
|
|
9557
|
-
};
|
|
9558
|
-
Returns: {
|
|
9559
|
-
content: string;
|
|
9560
|
-
line_number: number;
|
|
9561
|
-
}[];
|
|
9562
|
-
};
|
|
9563
10760
|
get_oldest_logs_chunk: {
|
|
9564
10761
|
Args: {
|
|
9565
10762
|
p_after_timestamp: string;
|
|
@@ -9586,6 +10783,44 @@ export type Database = {
|
|
|
9586
10783
|
total_chars: number;
|
|
9587
10784
|
}[];
|
|
9588
10785
|
};
|
|
10786
|
+
get_resource_operation_by_source_id: {
|
|
10787
|
+
Args: {
|
|
10788
|
+
p_source_operation_id: string;
|
|
10789
|
+
p_source_type: string;
|
|
10790
|
+
p_team_resource_id: string;
|
|
10791
|
+
};
|
|
10792
|
+
Returns: {
|
|
10793
|
+
accepted_chunk_count: number;
|
|
10794
|
+
actor_agent_id: string | null;
|
|
10795
|
+
counters: Json;
|
|
10796
|
+
created_at: string;
|
|
10797
|
+
emitted_at: string | null;
|
|
10798
|
+
error: string | null;
|
|
10799
|
+
expected_chunk_count: number | null;
|
|
10800
|
+
failed_at: string | null;
|
|
10801
|
+
finalized_at: string | null;
|
|
10802
|
+
id: string;
|
|
10803
|
+
metadata: Json;
|
|
10804
|
+
path_cover: Json;
|
|
10805
|
+
payload_fingerprint: string;
|
|
10806
|
+
resource_type: string;
|
|
10807
|
+
result: Json;
|
|
10808
|
+
source_operation: string;
|
|
10809
|
+
source_operation_id: string;
|
|
10810
|
+
source_type: string;
|
|
10811
|
+
status: string;
|
|
10812
|
+
summary: string | null;
|
|
10813
|
+
team_id: string;
|
|
10814
|
+
team_resource_id: string;
|
|
10815
|
+
updated_at: string;
|
|
10816
|
+
};
|
|
10817
|
+
SetofOptions: {
|
|
10818
|
+
from: "*";
|
|
10819
|
+
to: "resource_operations";
|
|
10820
|
+
isOneToOne: true;
|
|
10821
|
+
isSetofReturn: false;
|
|
10822
|
+
};
|
|
10823
|
+
};
|
|
9589
10824
|
get_subagent_timeline_items: {
|
|
9590
10825
|
Args: {
|
|
9591
10826
|
p_cursor_run_sequence?: number;
|
|
@@ -10042,6 +11277,38 @@ export type Database = {
|
|
|
10042
11277
|
};
|
|
10043
11278
|
Returns: Json;
|
|
10044
11279
|
};
|
|
11280
|
+
insert_note_resource_version: {
|
|
11281
|
+
Args: {
|
|
11282
|
+
p_content: string;
|
|
11283
|
+
p_name: string;
|
|
11284
|
+
p_previous_version_id?: string;
|
|
11285
|
+
p_resource: Database["public"]["Tables"]["team_resources"]["Row"];
|
|
11286
|
+
};
|
|
11287
|
+
Returns: {
|
|
11288
|
+
agent_id: string | null;
|
|
11289
|
+
content: string;
|
|
11290
|
+
created_at: string;
|
|
11291
|
+
database_schema: Json | null;
|
|
11292
|
+
deleted_at: string | null;
|
|
11293
|
+
id: string;
|
|
11294
|
+
name: string;
|
|
11295
|
+
previous_version_id: string | null;
|
|
11296
|
+
resource_kind: string;
|
|
11297
|
+
scope: string;
|
|
11298
|
+
size_bytes: number | null;
|
|
11299
|
+
team_id: string;
|
|
11300
|
+
team_resource_id: string | null;
|
|
11301
|
+
updated_at: string;
|
|
11302
|
+
version_created_at: string;
|
|
11303
|
+
version_id: string;
|
|
11304
|
+
};
|
|
11305
|
+
SetofOptions: {
|
|
11306
|
+
from: "*";
|
|
11307
|
+
to: "stored_resources";
|
|
11308
|
+
isOneToOne: true;
|
|
11309
|
+
isSetofReturn: false;
|
|
11310
|
+
};
|
|
11311
|
+
};
|
|
10045
11312
|
interrupt_linux_agent_executions: {
|
|
10046
11313
|
Args: {
|
|
10047
11314
|
p_agent_id: string;
|
|
@@ -10181,6 +11448,20 @@ export type Database = {
|
|
|
10181
11448
|
user_id: string;
|
|
10182
11449
|
}[];
|
|
10183
11450
|
};
|
|
11451
|
+
log_agent_configuration_change: {
|
|
11452
|
+
Args: {
|
|
11453
|
+
p_actor_id?: string;
|
|
11454
|
+
p_actor_type?: string;
|
|
11455
|
+
p_agent_id: string;
|
|
11456
|
+
p_change_type: string;
|
|
11457
|
+
p_details?: Json;
|
|
11458
|
+
p_formatted_content?: string;
|
|
11459
|
+
p_source?: string;
|
|
11460
|
+
p_summary?: string;
|
|
11461
|
+
p_title?: string;
|
|
11462
|
+
};
|
|
11463
|
+
Returns: string;
|
|
11464
|
+
};
|
|
10184
11465
|
log_agent_cycle_event_once: {
|
|
10185
11466
|
Args: {
|
|
10186
11467
|
p_actor?: string;
|
|
@@ -10256,6 +11537,16 @@ export type Database = {
|
|
|
10256
11537
|
};
|
|
10257
11538
|
Returns: string;
|
|
10258
11539
|
};
|
|
11540
|
+
log_resource_subscription_change: {
|
|
11541
|
+
Args: {
|
|
11542
|
+
p_actor_id?: string;
|
|
11543
|
+
p_actor_type?: string;
|
|
11544
|
+
p_agent_id: string;
|
|
11545
|
+
p_change_type: string;
|
|
11546
|
+
p_details?: Json;
|
|
11547
|
+
};
|
|
11548
|
+
Returns: string;
|
|
11549
|
+
};
|
|
10259
11550
|
mark_chat_as_viewed: {
|
|
10260
11551
|
Args: {
|
|
10261
11552
|
p_agent_id: string;
|
|
@@ -10279,14 +11570,17 @@ export type Database = {
|
|
|
10279
11570
|
};
|
|
10280
11571
|
move_drive_entry: {
|
|
10281
11572
|
Args: {
|
|
11573
|
+
p_actor_agent_id?: string;
|
|
10282
11574
|
p_drive_id: string;
|
|
10283
11575
|
p_from_path: string;
|
|
11576
|
+
p_source_operation_id?: string;
|
|
11577
|
+
p_source_type?: string;
|
|
10284
11578
|
p_to_path: string;
|
|
10285
11579
|
};
|
|
10286
11580
|
Returns: {
|
|
10287
|
-
content: string | null;
|
|
10288
11581
|
content_sha256: string | null;
|
|
10289
11582
|
created_at: string;
|
|
11583
|
+
current_version_id: string | null;
|
|
10290
11584
|
drive_id: string;
|
|
10291
11585
|
entry_type: string;
|
|
10292
11586
|
id: string;
|
|
@@ -10305,6 +11599,55 @@ export type Database = {
|
|
|
10305
11599
|
isSetofReturn: false;
|
|
10306
11600
|
};
|
|
10307
11601
|
};
|
|
11602
|
+
move_drive_entry_with_resource_operation: {
|
|
11603
|
+
Args: {
|
|
11604
|
+
p_actor_agent_id?: string;
|
|
11605
|
+
p_drive_id: string;
|
|
11606
|
+
p_from_path: string;
|
|
11607
|
+
p_source_operation_id?: string;
|
|
11608
|
+
p_to_path: string;
|
|
11609
|
+
};
|
|
11610
|
+
Returns: Json;
|
|
11611
|
+
};
|
|
11612
|
+
noop_resource_operation: {
|
|
11613
|
+
Args: {
|
|
11614
|
+
p_metadata?: Json;
|
|
11615
|
+
p_operation_id: string;
|
|
11616
|
+
p_result?: Json;
|
|
11617
|
+
p_summary?: string;
|
|
11618
|
+
};
|
|
11619
|
+
Returns: {
|
|
11620
|
+
accepted_chunk_count: number;
|
|
11621
|
+
actor_agent_id: string | null;
|
|
11622
|
+
counters: Json;
|
|
11623
|
+
created_at: string;
|
|
11624
|
+
emitted_at: string | null;
|
|
11625
|
+
error: string | null;
|
|
11626
|
+
expected_chunk_count: number | null;
|
|
11627
|
+
failed_at: string | null;
|
|
11628
|
+
finalized_at: string | null;
|
|
11629
|
+
id: string;
|
|
11630
|
+
metadata: Json;
|
|
11631
|
+
path_cover: Json;
|
|
11632
|
+
payload_fingerprint: string;
|
|
11633
|
+
resource_type: string;
|
|
11634
|
+
result: Json;
|
|
11635
|
+
source_operation: string;
|
|
11636
|
+
source_operation_id: string;
|
|
11637
|
+
source_type: string;
|
|
11638
|
+
status: string;
|
|
11639
|
+
summary: string | null;
|
|
11640
|
+
team_id: string;
|
|
11641
|
+
team_resource_id: string;
|
|
11642
|
+
updated_at: string;
|
|
11643
|
+
};
|
|
11644
|
+
SetofOptions: {
|
|
11645
|
+
from: "*";
|
|
11646
|
+
to: "resource_operations";
|
|
11647
|
+
isOneToOne: true;
|
|
11648
|
+
isSetofReturn: false;
|
|
11649
|
+
};
|
|
11650
|
+
};
|
|
10308
11651
|
normalize_channel_name: {
|
|
10309
11652
|
Args: {
|
|
10310
11653
|
p_name: string;
|
|
@@ -10323,6 +11666,22 @@ export type Database = {
|
|
|
10323
11666
|
};
|
|
10324
11667
|
Returns: string;
|
|
10325
11668
|
};
|
|
11669
|
+
note_resource_conflict_result: {
|
|
11670
|
+
Args: {
|
|
11671
|
+
p_base_version_id: string;
|
|
11672
|
+
p_current: Database["public"]["Tables"]["stored_resources"]["Row"];
|
|
11673
|
+
p_operation: string;
|
|
11674
|
+
p_resource: Database["public"]["Tables"]["team_resources"]["Row"];
|
|
11675
|
+
};
|
|
11676
|
+
Returns: Json;
|
|
11677
|
+
};
|
|
11678
|
+
note_resource_success_result: {
|
|
11679
|
+
Args: {
|
|
11680
|
+
p_note: Database["public"]["Tables"]["stored_resources"]["Row"];
|
|
11681
|
+
p_resource: Database["public"]["Tables"]["team_resources"]["Row"];
|
|
11682
|
+
};
|
|
11683
|
+
Returns: Json;
|
|
11684
|
+
};
|
|
10326
11685
|
notify_agent: {
|
|
10327
11686
|
Args: {
|
|
10328
11687
|
p_agent_id: string;
|
|
@@ -10423,6 +11782,29 @@ export type Database = {
|
|
|
10423
11782
|
};
|
|
10424
11783
|
Returns: Json;
|
|
10425
11784
|
};
|
|
11785
|
+
queue_drive_object_cleanup: {
|
|
11786
|
+
Args: {
|
|
11787
|
+
p_drive_id: string;
|
|
11788
|
+
p_reason?: string;
|
|
11789
|
+
};
|
|
11790
|
+
Returns: number;
|
|
11791
|
+
};
|
|
11792
|
+
queue_drive_object_cleanup_key: {
|
|
11793
|
+
Args: {
|
|
11794
|
+
p_drive_id: string;
|
|
11795
|
+
p_reason?: string;
|
|
11796
|
+
p_storage_key: string;
|
|
11797
|
+
};
|
|
11798
|
+
Returns: boolean;
|
|
11799
|
+
};
|
|
11800
|
+
queue_team_agent_setup_if_ready: {
|
|
11801
|
+
Args: {
|
|
11802
|
+
p_source: string;
|
|
11803
|
+
p_subscription_id?: string;
|
|
11804
|
+
p_team_id: string;
|
|
11805
|
+
};
|
|
11806
|
+
Returns: undefined;
|
|
11807
|
+
};
|
|
10426
11808
|
reconcile_stale_vm_gateway_runtime_events: {
|
|
10427
11809
|
Args: {
|
|
10428
11810
|
p_limit?: number;
|
|
@@ -10439,6 +11821,42 @@ export type Database = {
|
|
|
10439
11821
|
};
|
|
10440
11822
|
Returns: Json;
|
|
10441
11823
|
};
|
|
11824
|
+
record_drive_change_batch: {
|
|
11825
|
+
Args: {
|
|
11826
|
+
p_actor_agent_id?: string;
|
|
11827
|
+
p_confidence?: string;
|
|
11828
|
+
p_counters?: Json;
|
|
11829
|
+
p_drive_id: string;
|
|
11830
|
+
p_observation_metadata?: Json;
|
|
11831
|
+
p_path_cover?: Json;
|
|
11832
|
+
p_source_operation: string;
|
|
11833
|
+
p_source_operation_id: string;
|
|
11834
|
+
p_source_type: string;
|
|
11835
|
+
p_summary?: string;
|
|
11836
|
+
};
|
|
11837
|
+
Returns: {
|
|
11838
|
+
actor_agent_id: string | null;
|
|
11839
|
+
completed_at: string;
|
|
11840
|
+
confidence: string;
|
|
11841
|
+
counters: Json;
|
|
11842
|
+
created_at: string;
|
|
11843
|
+
drive_id: string;
|
|
11844
|
+
id: string;
|
|
11845
|
+
observation_metadata: Json;
|
|
11846
|
+
sequence: number;
|
|
11847
|
+
source_operation: string;
|
|
11848
|
+
source_operation_id: string;
|
|
11849
|
+
source_type: string;
|
|
11850
|
+
subscription_notified_at: string | null;
|
|
11851
|
+
summary: string;
|
|
11852
|
+
};
|
|
11853
|
+
SetofOptions: {
|
|
11854
|
+
from: "*";
|
|
11855
|
+
to: "drive_change_batches";
|
|
11856
|
+
isOneToOne: true;
|
|
11857
|
+
isSetofReturn: false;
|
|
11858
|
+
};
|
|
11859
|
+
};
|
|
10442
11860
|
record_health_alert: {
|
|
10443
11861
|
Args: {
|
|
10444
11862
|
p_alert_type: string;
|
|
@@ -10497,6 +11915,35 @@ export type Database = {
|
|
|
10497
11915
|
};
|
|
10498
11916
|
Returns: string;
|
|
10499
11917
|
};
|
|
11918
|
+
record_resource_operation_chunk: {
|
|
11919
|
+
Args: {
|
|
11920
|
+
p_chunk_index: number;
|
|
11921
|
+
p_counters?: Json;
|
|
11922
|
+
p_metadata?: Json;
|
|
11923
|
+
p_operation_id: string;
|
|
11924
|
+
p_path_cover?: Json;
|
|
11925
|
+
p_result?: Json;
|
|
11926
|
+
};
|
|
11927
|
+
Returns: {
|
|
11928
|
+
accepted_at: string;
|
|
11929
|
+
chunk_index: number;
|
|
11930
|
+
counters: Json;
|
|
11931
|
+
created_at: string;
|
|
11932
|
+
id: string;
|
|
11933
|
+
metadata: Json;
|
|
11934
|
+
operation_id: string;
|
|
11935
|
+
path_cover: Json;
|
|
11936
|
+
result: Json;
|
|
11937
|
+
team_resource_id: string;
|
|
11938
|
+
updated_at: string;
|
|
11939
|
+
};
|
|
11940
|
+
SetofOptions: {
|
|
11941
|
+
from: "*";
|
|
11942
|
+
to: "resource_operation_chunks";
|
|
11943
|
+
isOneToOne: true;
|
|
11944
|
+
isSetofReturn: false;
|
|
11945
|
+
};
|
|
11946
|
+
};
|
|
10500
11947
|
recover_agent_after_cycle_failure: {
|
|
10501
11948
|
Args: {
|
|
10502
11949
|
p_agent_id: string;
|
|
@@ -10571,6 +12018,12 @@ export type Database = {
|
|
|
10571
12018
|
};
|
|
10572
12019
|
Returns: undefined;
|
|
10573
12020
|
};
|
|
12021
|
+
refresh_note_team_resource_from_latest: {
|
|
12022
|
+
Args: {
|
|
12023
|
+
p_resource_id: string;
|
|
12024
|
+
};
|
|
12025
|
+
Returns: string;
|
|
12026
|
+
};
|
|
10574
12027
|
refresh_team_members_subscription_state: {
|
|
10575
12028
|
Args: {
|
|
10576
12029
|
p_observed_at?: string;
|
|
@@ -10624,6 +12077,34 @@ export type Database = {
|
|
|
10624
12077
|
};
|
|
10625
12078
|
Returns: string;
|
|
10626
12079
|
};
|
|
12080
|
+
register_drive_sync_client: {
|
|
12081
|
+
Args: {
|
|
12082
|
+
p_agent_id?: string;
|
|
12083
|
+
p_client_key?: string;
|
|
12084
|
+
p_display_name?: string;
|
|
12085
|
+
p_host_id?: string;
|
|
12086
|
+
p_metadata?: Json;
|
|
12087
|
+
p_team_id: string;
|
|
12088
|
+
};
|
|
12089
|
+
Returns: {
|
|
12090
|
+
agent_id: string | null;
|
|
12091
|
+
client_key: string;
|
|
12092
|
+
created_at: string;
|
|
12093
|
+
display_name: string | null;
|
|
12094
|
+
host_id: string | null;
|
|
12095
|
+
id: string;
|
|
12096
|
+
metadata: Json;
|
|
12097
|
+
status: string;
|
|
12098
|
+
team_id: string;
|
|
12099
|
+
updated_at: string;
|
|
12100
|
+
};
|
|
12101
|
+
SetofOptions: {
|
|
12102
|
+
from: "*";
|
|
12103
|
+
to: "drive_sync_clients";
|
|
12104
|
+
isOneToOne: true;
|
|
12105
|
+
isSetofReturn: false;
|
|
12106
|
+
};
|
|
12107
|
+
};
|
|
10627
12108
|
register_native_tools: {
|
|
10628
12109
|
Args: {
|
|
10629
12110
|
p_tools: Json;
|
|
@@ -10684,6 +12165,71 @@ export type Database = {
|
|
|
10684
12165
|
isSetofReturn: false;
|
|
10685
12166
|
};
|
|
10686
12167
|
};
|
|
12168
|
+
rename_note_resource_with_base_version: {
|
|
12169
|
+
Args: {
|
|
12170
|
+
p_base_version_id: string;
|
|
12171
|
+
p_new_name: string;
|
|
12172
|
+
p_resource_id: string;
|
|
12173
|
+
};
|
|
12174
|
+
Returns: Json;
|
|
12175
|
+
};
|
|
12176
|
+
repair_committed_drive_uploads: {
|
|
12177
|
+
Args: {
|
|
12178
|
+
p_storage_keys?: string[];
|
|
12179
|
+
};
|
|
12180
|
+
Returns: number;
|
|
12181
|
+
};
|
|
12182
|
+
report_drive_sync_status: {
|
|
12183
|
+
Args: {
|
|
12184
|
+
p_drive_id: string;
|
|
12185
|
+
p_last_applied_batch_count?: number;
|
|
12186
|
+
p_last_applied_path_count?: number;
|
|
12187
|
+
p_last_batch_sequence?: number;
|
|
12188
|
+
p_last_deferred_file_count?: number;
|
|
12189
|
+
p_last_error?: string;
|
|
12190
|
+
p_last_reason?: string;
|
|
12191
|
+
p_last_remote_conflict_count?: number;
|
|
12192
|
+
p_last_uploaded_applied_count?: number;
|
|
12193
|
+
p_last_uploaded_batch_count?: number;
|
|
12194
|
+
p_last_uploaded_change_count?: number;
|
|
12195
|
+
p_last_uploaded_conflict_count?: number;
|
|
12196
|
+
p_last_uploaded_rejected_count?: number;
|
|
12197
|
+
p_last_uploaded_unsupported_count?: number;
|
|
12198
|
+
p_metadata?: Json;
|
|
12199
|
+
p_status?: string;
|
|
12200
|
+
p_sync_client_id: string;
|
|
12201
|
+
};
|
|
12202
|
+
Returns: {
|
|
12203
|
+
created_at: string;
|
|
12204
|
+
drive_id: string;
|
|
12205
|
+
id: string;
|
|
12206
|
+
last_applied_batch_count: number;
|
|
12207
|
+
last_applied_path_count: number;
|
|
12208
|
+
last_batch_sequence: number | null;
|
|
12209
|
+
last_deferred_file_count: number;
|
|
12210
|
+
last_error: string | null;
|
|
12211
|
+
last_reason: string | null;
|
|
12212
|
+
last_remote_conflict_count: number;
|
|
12213
|
+
last_success_at: string | null;
|
|
12214
|
+
last_sync_at: string;
|
|
12215
|
+
last_uploaded_applied_count: number;
|
|
12216
|
+
last_uploaded_batch_count: number;
|
|
12217
|
+
last_uploaded_change_count: number;
|
|
12218
|
+
last_uploaded_conflict_count: number;
|
|
12219
|
+
last_uploaded_rejected_count: number;
|
|
12220
|
+
last_uploaded_unsupported_count: number;
|
|
12221
|
+
metadata: Json;
|
|
12222
|
+
status: string;
|
|
12223
|
+
sync_client_id: string;
|
|
12224
|
+
updated_at: string;
|
|
12225
|
+
};
|
|
12226
|
+
SetofOptions: {
|
|
12227
|
+
from: "*";
|
|
12228
|
+
to: "drive_sync_status_reports";
|
|
12229
|
+
isOneToOne: true;
|
|
12230
|
+
isSetofReturn: false;
|
|
12231
|
+
};
|
|
12232
|
+
};
|
|
10687
12233
|
request_linux_host_runtime_intent: {
|
|
10688
12234
|
Args: {
|
|
10689
12235
|
p_agent_id: string;
|
|
@@ -10814,12 +12360,13 @@ export type Database = {
|
|
|
10814
12360
|
};
|
|
10815
12361
|
Returns: Json;
|
|
10816
12362
|
};
|
|
10817
|
-
|
|
12363
|
+
restore_note_resource_version: {
|
|
10818
12364
|
Args: {
|
|
10819
|
-
|
|
12365
|
+
p_base_version_id: string;
|
|
12366
|
+
p_resource_id: string;
|
|
10820
12367
|
p_version_id: string;
|
|
10821
12368
|
};
|
|
10822
|
-
Returns:
|
|
12369
|
+
Returns: Json;
|
|
10823
12370
|
};
|
|
10824
12371
|
restore_wiki_page_version: {
|
|
10825
12372
|
Args: {
|
|
@@ -10843,50 +12390,13 @@ export type Database = {
|
|
|
10843
12390
|
};
|
|
10844
12391
|
Returns: Json;
|
|
10845
12392
|
};
|
|
10846
|
-
|
|
12393
|
+
save_note_resource_with_base_version: {
|
|
10847
12394
|
Args: {
|
|
10848
|
-
|
|
12395
|
+
p_base_version_id: string;
|
|
10849
12396
|
p_content: string;
|
|
10850
|
-
|
|
10851
|
-
p_exclude_storage_id?: string;
|
|
10852
|
-
p_resource_name: string;
|
|
10853
|
-
p_scope?: string;
|
|
10854
|
-
p_team_id?: string;
|
|
10855
|
-
};
|
|
10856
|
-
Returns: string;
|
|
10857
|
-
};
|
|
10858
|
-
search_agent_stored_resources: {
|
|
10859
|
-
Args: {
|
|
10860
|
-
p_agent_id: string;
|
|
10861
|
-
p_limit?: number;
|
|
10862
|
-
p_search_query: string;
|
|
10863
|
-
};
|
|
10864
|
-
Returns: {
|
|
10865
|
-
agent_id: string;
|
|
10866
|
-
created_at: string;
|
|
10867
|
-
id: string;
|
|
10868
|
-
name: string;
|
|
10869
|
-
resource_kind: string;
|
|
10870
|
-
size_bytes: number;
|
|
10871
|
-
updated_at: string;
|
|
10872
|
-
}[];
|
|
10873
|
-
};
|
|
10874
|
-
search_agent_stored_resources_with_match_type: {
|
|
10875
|
-
Args: {
|
|
10876
|
-
p_agent_id: string;
|
|
10877
|
-
p_limit?: number;
|
|
10878
|
-
p_search_query: string;
|
|
12397
|
+
p_resource_id: string;
|
|
10879
12398
|
};
|
|
10880
|
-
Returns:
|
|
10881
|
-
created_at: string;
|
|
10882
|
-
id: string;
|
|
10883
|
-
match_type: string;
|
|
10884
|
-
name: string;
|
|
10885
|
-
rank: number;
|
|
10886
|
-
resource_kind: string;
|
|
10887
|
-
size_bytes: number;
|
|
10888
|
-
updated_at: string;
|
|
10889
|
-
}[];
|
|
12399
|
+
Returns: Json;
|
|
10890
12400
|
};
|
|
10891
12401
|
search_log_embeddings: {
|
|
10892
12402
|
Args: {
|
|
@@ -10906,30 +12416,18 @@ export type Database = {
|
|
|
10906
12416
|
similarity: number;
|
|
10907
12417
|
}[];
|
|
10908
12418
|
};
|
|
10909
|
-
|
|
10910
|
-
Args: {
|
|
10911
|
-
p_agent_id: string;
|
|
10912
|
-
p_context_lines?: number;
|
|
10913
|
-
p_note_name: string;
|
|
10914
|
-
p_search_term: string;
|
|
10915
|
-
};
|
|
10916
|
-
Returns: {
|
|
10917
|
-
content: string;
|
|
10918
|
-
is_match: boolean;
|
|
10919
|
-
line_number: number;
|
|
10920
|
-
}[];
|
|
10921
|
-
};
|
|
10922
|
-
search_notes: {
|
|
12419
|
+
search_note_resources: {
|
|
10923
12420
|
Args: {
|
|
10924
12421
|
p_agent_id: string;
|
|
10925
12422
|
p_limit?: number;
|
|
10926
|
-
|
|
12423
|
+
p_search_query: string;
|
|
10927
12424
|
};
|
|
10928
12425
|
Returns: {
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
12426
|
+
match_type: string;
|
|
12427
|
+
name: string;
|
|
12428
|
+
rank: number;
|
|
12429
|
+
size_bytes: number;
|
|
12430
|
+
team_resource_id: string;
|
|
10933
12431
|
updated_at: string;
|
|
10934
12432
|
}[];
|
|
10935
12433
|
};
|
|
@@ -11020,6 +12518,12 @@ export type Database = {
|
|
|
11020
12518
|
version: string;
|
|
11021
12519
|
}[];
|
|
11022
12520
|
};
|
|
12521
|
+
select_current_note_resource_for_update: {
|
|
12522
|
+
Args: {
|
|
12523
|
+
p_resource_id: string;
|
|
12524
|
+
};
|
|
12525
|
+
Returns: Record<string, unknown>;
|
|
12526
|
+
};
|
|
11023
12527
|
set_agent_creation_step: {
|
|
11024
12528
|
Args: {
|
|
11025
12529
|
p_agent_id: string;
|
|
@@ -11089,14 +12593,6 @@ export type Database = {
|
|
|
11089
12593
|
};
|
|
11090
12594
|
Returns: Json;
|
|
11091
12595
|
};
|
|
11092
|
-
soft_delete_stored_resource: {
|
|
11093
|
-
Args: {
|
|
11094
|
-
p_agent_id?: string;
|
|
11095
|
-
p_resource_name?: string;
|
|
11096
|
-
p_team_id: string;
|
|
11097
|
-
};
|
|
11098
|
-
Returns: boolean;
|
|
11099
|
-
};
|
|
11100
12596
|
soft_delete_team: {
|
|
11101
12597
|
Args: {
|
|
11102
12598
|
p_team_id: string;
|
|
@@ -11457,16 +12953,56 @@ export type Database = {
|
|
|
11457
12953
|
};
|
|
11458
12954
|
write_drive_file: {
|
|
11459
12955
|
Args: {
|
|
12956
|
+
p_actor_agent_id?: string;
|
|
11460
12957
|
p_content_base64?: string;
|
|
11461
12958
|
p_content_text?: string;
|
|
11462
12959
|
p_drive_id: string;
|
|
12960
|
+
p_expected_version_id?: string;
|
|
11463
12961
|
p_mime_type?: string;
|
|
11464
12962
|
p_path: string;
|
|
12963
|
+
p_source_operation_id?: string;
|
|
12964
|
+
p_source_type?: string;
|
|
12965
|
+
};
|
|
12966
|
+
Returns: {
|
|
12967
|
+
content_sha256: string | null;
|
|
12968
|
+
created_at: string;
|
|
12969
|
+
current_version_id: string | null;
|
|
12970
|
+
drive_id: string;
|
|
12971
|
+
entry_type: string;
|
|
12972
|
+
id: string;
|
|
12973
|
+
metadata: Json;
|
|
12974
|
+
mime_type: string | null;
|
|
12975
|
+
name: string;
|
|
12976
|
+
parent_path: string | null;
|
|
12977
|
+
path: string;
|
|
12978
|
+
size_bytes: number;
|
|
12979
|
+
updated_at: string;
|
|
12980
|
+
};
|
|
12981
|
+
SetofOptions: {
|
|
12982
|
+
from: "*";
|
|
12983
|
+
to: "drive_entries";
|
|
12984
|
+
isOneToOne: true;
|
|
12985
|
+
isSetofReturn: false;
|
|
12986
|
+
};
|
|
12987
|
+
};
|
|
12988
|
+
write_drive_file_object: {
|
|
12989
|
+
Args: {
|
|
12990
|
+
p_actor_agent_id?: string;
|
|
12991
|
+
p_content_sha256: string;
|
|
12992
|
+
p_drive_id: string;
|
|
12993
|
+
p_expected_version_id?: string;
|
|
12994
|
+
p_mime_type?: string;
|
|
12995
|
+
p_path: string;
|
|
12996
|
+
p_size_bytes: number;
|
|
12997
|
+
p_source_operation_id?: string;
|
|
12998
|
+
p_source_type?: string;
|
|
12999
|
+
p_storage_key: string;
|
|
13000
|
+
p_version_id: string;
|
|
11465
13001
|
};
|
|
11466
13002
|
Returns: {
|
|
11467
|
-
content: string | null;
|
|
11468
13003
|
content_sha256: string | null;
|
|
11469
13004
|
created_at: string;
|
|
13005
|
+
current_version_id: string | null;
|
|
11470
13006
|
drive_id: string;
|
|
11471
13007
|
entry_type: string;
|
|
11472
13008
|
id: string;
|
|
@@ -11485,6 +13021,21 @@ export type Database = {
|
|
|
11485
13021
|
isSetofReturn: false;
|
|
11486
13022
|
};
|
|
11487
13023
|
};
|
|
13024
|
+
write_drive_file_object_with_resource_operation: {
|
|
13025
|
+
Args: {
|
|
13026
|
+
p_actor_agent_id?: string;
|
|
13027
|
+
p_content_sha256: string;
|
|
13028
|
+
p_drive_id: string;
|
|
13029
|
+
p_expected_version_id?: string;
|
|
13030
|
+
p_mime_type?: string;
|
|
13031
|
+
p_path: string;
|
|
13032
|
+
p_size_bytes: number;
|
|
13033
|
+
p_source_operation_id?: string;
|
|
13034
|
+
p_storage_key: string;
|
|
13035
|
+
p_version_id: string;
|
|
13036
|
+
};
|
|
13037
|
+
Returns: Json;
|
|
13038
|
+
};
|
|
11488
13039
|
};
|
|
11489
13040
|
Enums: {
|
|
11490
13041
|
[_ in never]: never;
|