@treeseed/sdk 0.13.0-rc.101 → 0.13.0-rc.103

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.
@@ -552,7 +552,7 @@ export declare const hostComponentSchema: z.ZodObject<{
552
552
  };
553
553
  }> | undefined;
554
554
  }>;
555
- export declare const hostConfigurationSchema: z.ZodObject<{
555
+ export declare const hostConfigurationSchema: z.ZodEffects<z.ZodObject<{
556
556
  schemaVersion: z.ZodLiteral<"treeseed.host/v1">;
557
557
  configurationId: z.ZodString;
558
558
  generation: z.ZodNumber;
@@ -575,18 +575,18 @@ export declare const hostConfigurationSchema: z.ZodObject<{
575
575
  dataRoot: z.ZodOptional<z.ZodString>;
576
576
  }, "strict", z.ZodTypeAny, {
577
577
  environment: "development" | "production";
578
- management: "managed" | "external";
578
+ management: "external" | "managed";
579
579
  dataRoot?: string | undefined;
580
580
  }, {
581
- management: "managed" | "external";
581
+ management: "external" | "managed";
582
582
  environment?: "development" | "production" | undefined;
583
583
  dataRoot?: string | undefined;
584
584
  }>, {
585
585
  environment: "development" | "production";
586
- management: "managed" | "external";
586
+ management: "external" | "managed";
587
587
  dataRoot?: string | undefined;
588
588
  }, {
589
- management: "managed" | "external";
589
+ management: "external" | "managed";
590
590
  environment?: "development" | "production" | undefined;
591
591
  dataRoot?: string | undefined;
592
592
  }>;
@@ -908,6 +908,278 @@ export declare const hostConfigurationSchema: z.ZodObject<{
908
908
  };
909
909
  }> | undefined;
910
910
  }>>;
911
+ postgres: z.ZodOptional<z.ZodEffects<z.ZodObject<{
912
+ schemaVersion: z.ZodLiteral<"treeseed.postgres-topology/v1">;
913
+ installationId: z.ZodString;
914
+ environment: z.ZodEnum<["staging", "production"]>;
915
+ servers: z.ZodArray<z.ZodObject<{
916
+ id: z.ZodString;
917
+ installationId: z.ZodString;
918
+ environment: z.ZodEnum<["staging", "production"]>;
919
+ mode: z.ZodEnum<["shared", "dedicated", "external"]>;
920
+ hostname: z.ZodString;
921
+ port: z.ZodNumber;
922
+ major: z.ZodNumber;
923
+ extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
924
+ tls: z.ZodObject<{
925
+ mode: z.ZodLiteral<"verify-full">;
926
+ trustReference: z.ZodString;
927
+ }, "strict", z.ZodTypeAny, {
928
+ mode: "verify-full";
929
+ trustReference: string;
930
+ }, {
931
+ mode: "verify-full";
932
+ trustReference: string;
933
+ }>;
934
+ }, "strict", z.ZodTypeAny, {
935
+ id: string;
936
+ mode: "shared" | "dedicated" | "external";
937
+ environment: "production" | "staging";
938
+ port: number;
939
+ major: number;
940
+ extensions: string[];
941
+ installationId: string;
942
+ hostname: string;
943
+ tls: {
944
+ mode: "verify-full";
945
+ trustReference: string;
946
+ };
947
+ }, {
948
+ id: string;
949
+ mode: "shared" | "dedicated" | "external";
950
+ environment: "production" | "staging";
951
+ port: number;
952
+ major: number;
953
+ extensions: string[];
954
+ installationId: string;
955
+ hostname: string;
956
+ tls: {
957
+ mode: "verify-full";
958
+ trustReference: string;
959
+ };
960
+ }>, "many">;
961
+ requirements: z.ZodArray<z.ZodObject<{
962
+ id: z.ZodString;
963
+ componentId: z.ZodString;
964
+ enabled: z.ZodBoolean;
965
+ supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
966
+ extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
967
+ runtimeConnectionLimit: z.ZodNumber;
968
+ }, "strict", z.ZodTypeAny, {
969
+ id: string;
970
+ componentId: string;
971
+ enabled: boolean;
972
+ supportedMajors: [number, ...number[]];
973
+ extensions: string[];
974
+ runtimeConnectionLimit: number;
975
+ }, {
976
+ id: string;
977
+ componentId: string;
978
+ enabled: boolean;
979
+ supportedMajors: [number, ...number[]];
980
+ extensions: string[];
981
+ runtimeConnectionLimit: number;
982
+ }>, "many">;
983
+ allocations: z.ZodArray<z.ZodEffects<z.ZodObject<{
984
+ requirementId: z.ZodString;
985
+ serverId: z.ZodString;
986
+ database: z.ZodEffects<z.ZodString, string, string>;
987
+ ownerRole: z.ZodEffects<z.ZodString, string, string>;
988
+ migrationRole: z.ZodEffects<z.ZodString, string, string>;
989
+ runtimeRole: z.ZodEffects<z.ZodString, string, string>;
990
+ migrationCredentialReference: z.ZodString;
991
+ runtimeCredentialReference: z.ZodString;
992
+ onDisable: z.ZodLiteral<"preserve">;
993
+ }, "strict", z.ZodTypeAny, {
994
+ requirementId: string;
995
+ serverId: string;
996
+ database: string;
997
+ ownerRole: string;
998
+ migrationRole: string;
999
+ runtimeRole: string;
1000
+ migrationCredentialReference: string;
1001
+ runtimeCredentialReference: string;
1002
+ onDisable: "preserve";
1003
+ }, {
1004
+ requirementId: string;
1005
+ serverId: string;
1006
+ database: string;
1007
+ ownerRole: string;
1008
+ migrationRole: string;
1009
+ runtimeRole: string;
1010
+ migrationCredentialReference: string;
1011
+ runtimeCredentialReference: string;
1012
+ onDisable: "preserve";
1013
+ }>, {
1014
+ requirementId: string;
1015
+ serverId: string;
1016
+ database: string;
1017
+ ownerRole: string;
1018
+ migrationRole: string;
1019
+ runtimeRole: string;
1020
+ migrationCredentialReference: string;
1021
+ runtimeCredentialReference: string;
1022
+ onDisable: "preserve";
1023
+ }, {
1024
+ requirementId: string;
1025
+ serverId: string;
1026
+ database: string;
1027
+ ownerRole: string;
1028
+ migrationRole: string;
1029
+ runtimeRole: string;
1030
+ migrationCredentialReference: string;
1031
+ runtimeCredentialReference: string;
1032
+ onDisable: "preserve";
1033
+ }>, "many">;
1034
+ }, "strict", z.ZodTypeAny, {
1035
+ schemaVersion: "treeseed.postgres-topology/v1";
1036
+ environment: "production" | "staging";
1037
+ installationId: string;
1038
+ servers: {
1039
+ id: string;
1040
+ mode: "shared" | "dedicated" | "external";
1041
+ environment: "production" | "staging";
1042
+ port: number;
1043
+ major: number;
1044
+ extensions: string[];
1045
+ installationId: string;
1046
+ hostname: string;
1047
+ tls: {
1048
+ mode: "verify-full";
1049
+ trustReference: string;
1050
+ };
1051
+ }[];
1052
+ requirements: {
1053
+ id: string;
1054
+ componentId: string;
1055
+ enabled: boolean;
1056
+ supportedMajors: [number, ...number[]];
1057
+ extensions: string[];
1058
+ runtimeConnectionLimit: number;
1059
+ }[];
1060
+ allocations: {
1061
+ requirementId: string;
1062
+ serverId: string;
1063
+ database: string;
1064
+ ownerRole: string;
1065
+ migrationRole: string;
1066
+ runtimeRole: string;
1067
+ migrationCredentialReference: string;
1068
+ runtimeCredentialReference: string;
1069
+ onDisable: "preserve";
1070
+ }[];
1071
+ }, {
1072
+ schemaVersion: "treeseed.postgres-topology/v1";
1073
+ environment: "production" | "staging";
1074
+ installationId: string;
1075
+ servers: {
1076
+ id: string;
1077
+ mode: "shared" | "dedicated" | "external";
1078
+ environment: "production" | "staging";
1079
+ port: number;
1080
+ major: number;
1081
+ extensions: string[];
1082
+ installationId: string;
1083
+ hostname: string;
1084
+ tls: {
1085
+ mode: "verify-full";
1086
+ trustReference: string;
1087
+ };
1088
+ }[];
1089
+ requirements: {
1090
+ id: string;
1091
+ componentId: string;
1092
+ enabled: boolean;
1093
+ supportedMajors: [number, ...number[]];
1094
+ extensions: string[];
1095
+ runtimeConnectionLimit: number;
1096
+ }[];
1097
+ allocations: {
1098
+ requirementId: string;
1099
+ serverId: string;
1100
+ database: string;
1101
+ ownerRole: string;
1102
+ migrationRole: string;
1103
+ runtimeRole: string;
1104
+ migrationCredentialReference: string;
1105
+ runtimeCredentialReference: string;
1106
+ onDisable: "preserve";
1107
+ }[];
1108
+ }>, {
1109
+ schemaVersion: "treeseed.postgres-topology/v1";
1110
+ environment: "production" | "staging";
1111
+ installationId: string;
1112
+ servers: {
1113
+ id: string;
1114
+ mode: "shared" | "dedicated" | "external";
1115
+ environment: "production" | "staging";
1116
+ port: number;
1117
+ major: number;
1118
+ extensions: string[];
1119
+ installationId: string;
1120
+ hostname: string;
1121
+ tls: {
1122
+ mode: "verify-full";
1123
+ trustReference: string;
1124
+ };
1125
+ }[];
1126
+ requirements: {
1127
+ id: string;
1128
+ componentId: string;
1129
+ enabled: boolean;
1130
+ supportedMajors: [number, ...number[]];
1131
+ extensions: string[];
1132
+ runtimeConnectionLimit: number;
1133
+ }[];
1134
+ allocations: {
1135
+ requirementId: string;
1136
+ serverId: string;
1137
+ database: string;
1138
+ ownerRole: string;
1139
+ migrationRole: string;
1140
+ runtimeRole: string;
1141
+ migrationCredentialReference: string;
1142
+ runtimeCredentialReference: string;
1143
+ onDisable: "preserve";
1144
+ }[];
1145
+ }, {
1146
+ schemaVersion: "treeseed.postgres-topology/v1";
1147
+ environment: "production" | "staging";
1148
+ installationId: string;
1149
+ servers: {
1150
+ id: string;
1151
+ mode: "shared" | "dedicated" | "external";
1152
+ environment: "production" | "staging";
1153
+ port: number;
1154
+ major: number;
1155
+ extensions: string[];
1156
+ installationId: string;
1157
+ hostname: string;
1158
+ tls: {
1159
+ mode: "verify-full";
1160
+ trustReference: string;
1161
+ };
1162
+ }[];
1163
+ requirements: {
1164
+ id: string;
1165
+ componentId: string;
1166
+ enabled: boolean;
1167
+ supportedMajors: [number, ...number[]];
1168
+ extensions: string[];
1169
+ runtimeConnectionLimit: number;
1170
+ }[];
1171
+ allocations: {
1172
+ requirementId: string;
1173
+ serverId: string;
1174
+ database: string;
1175
+ ownerRole: string;
1176
+ migrationRole: string;
1177
+ runtimeRole: string;
1178
+ migrationCredentialReference: string;
1179
+ runtimeCredentialReference: string;
1180
+ onDisable: "preserve";
1181
+ }[];
1182
+ }>>;
911
1183
  network: z.ZodObject<{
912
1184
  manager: z.ZodObject<{
913
1185
  binding: z.ZodString;
@@ -1450,7 +1722,363 @@ export declare const hostConfigurationSchema: z.ZodObject<{
1450
1722
  schemaVersion: "treeseed.host/v1";
1451
1723
  runtime: {
1452
1724
  environment: "development" | "production";
1453
- management: "managed" | "external";
1725
+ management: "external" | "managed";
1726
+ dataRoot?: string | undefined;
1727
+ };
1728
+ components: Record<string, {
1729
+ resources: {
1730
+ gpuDevices: string[];
1731
+ cpuCores?: number | undefined;
1732
+ memoryBytes?: number | undefined;
1733
+ storageBytes?: number | undefined;
1734
+ };
1735
+ enabled: boolean;
1736
+ track: "development" | "stable";
1737
+ aliases: Record<string, string>;
1738
+ configuration: Record<string, unknown>;
1739
+ connections: Record<string, {
1740
+ kind: "local";
1741
+ componentId: string;
1742
+ serviceId: string;
1743
+ endpointId: string;
1744
+ } | {
1745
+ kind: "remote";
1746
+ audience: string;
1747
+ url: string;
1748
+ authentication: {
1749
+ mode: "none" | "application" | "mtls" | "bearer";
1750
+ secretRef?: string | undefined;
1751
+ };
1752
+ tls: {
1753
+ trust: "secret" | "system" | "spki";
1754
+ serverName?: string | undefined;
1755
+ caSecretRef?: string | undefined;
1756
+ spkiSha256?: string | undefined;
1757
+ };
1758
+ healthGate: {
1759
+ timeoutSeconds: number;
1760
+ protocol: "http" | "tcp" | "https";
1761
+ path?: string | undefined;
1762
+ };
1763
+ }>;
1764
+ profile?: string | undefined;
1765
+ }>;
1766
+ network: {
1767
+ manager: {
1768
+ aliases: string[];
1769
+ binding: string;
1770
+ sans: string[];
1771
+ trustedLanCidrs: string[];
1772
+ };
1773
+ };
1774
+ host: {
1775
+ id: string;
1776
+ role: string;
1777
+ architecture: "amd64";
1778
+ };
1779
+ generation: number;
1780
+ configurationId: string;
1781
+ updates: {
1782
+ development: {
1783
+ pollSeconds: 60;
1784
+ };
1785
+ stable: {
1786
+ metadataPollSeconds: number;
1787
+ maintenanceWindow: {
1788
+ weekday: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
1789
+ localTime: string;
1790
+ jitterMinutes: number;
1791
+ };
1792
+ };
1793
+ defaultTrack: "development" | "stable";
1794
+ };
1795
+ fleet: {
1796
+ rolloutGroup: string;
1797
+ receiptReporting: {
1798
+ enabled: boolean;
1799
+ intervalSeconds: number;
1800
+ connection?: {
1801
+ kind: "local";
1802
+ componentId: string;
1803
+ serviceId: string;
1804
+ endpointId: string;
1805
+ } | {
1806
+ kind: "remote";
1807
+ audience: string;
1808
+ url: string;
1809
+ authentication: {
1810
+ mode: "none" | "application" | "mtls" | "bearer";
1811
+ secretRef?: string | undefined;
1812
+ };
1813
+ tls: {
1814
+ trust: "secret" | "system" | "spki";
1815
+ serverName?: string | undefined;
1816
+ caSecretRef?: string | undefined;
1817
+ spkiSha256?: string | undefined;
1818
+ };
1819
+ healthGate: {
1820
+ timeoutSeconds: number;
1821
+ protocol: "http" | "tcp" | "https";
1822
+ path?: string | undefined;
1823
+ };
1824
+ } | undefined;
1825
+ };
1826
+ };
1827
+ secrets: Record<string, {
1828
+ provider: "file" | "systemd-credential";
1829
+ reference: string;
1830
+ }>;
1831
+ postgres?: {
1832
+ schemaVersion: "treeseed.postgres-topology/v1";
1833
+ environment: "production" | "staging";
1834
+ installationId: string;
1835
+ servers: {
1836
+ id: string;
1837
+ mode: "shared" | "dedicated" | "external";
1838
+ environment: "production" | "staging";
1839
+ port: number;
1840
+ major: number;
1841
+ extensions: string[];
1842
+ installationId: string;
1843
+ hostname: string;
1844
+ tls: {
1845
+ mode: "verify-full";
1846
+ trustReference: string;
1847
+ };
1848
+ }[];
1849
+ requirements: {
1850
+ id: string;
1851
+ componentId: string;
1852
+ enabled: boolean;
1853
+ supportedMajors: [number, ...number[]];
1854
+ extensions: string[];
1855
+ runtimeConnectionLimit: number;
1856
+ }[];
1857
+ allocations: {
1858
+ requirementId: string;
1859
+ serverId: string;
1860
+ database: string;
1861
+ ownerRole: string;
1862
+ migrationRole: string;
1863
+ runtimeRole: string;
1864
+ migrationCredentialReference: string;
1865
+ runtimeCredentialReference: string;
1866
+ onDisable: "preserve";
1867
+ }[];
1868
+ } | undefined;
1869
+ security?: {
1870
+ sandbox: {
1871
+ runtime: "kata-runtime-rs-qemu";
1872
+ profiles: {
1873
+ id: string;
1874
+ guestImage: string;
1875
+ guestImageDigest: string;
1876
+ }[];
1877
+ required: boolean;
1878
+ brokerSocket: string;
1879
+ modelGateway: {
1880
+ provider: "openai";
1881
+ upstreamBaseUrl: "https://api.openai.com";
1882
+ allowedModels: string[];
1883
+ };
1884
+ };
1885
+ providerVolume: {
1886
+ encryption: "luks2";
1887
+ backingPath: string;
1888
+ mountPath: string;
1889
+ sizeBytes: number;
1890
+ unlock: "systemd-credential" | "tpm2";
1891
+ recoveryRequired: true;
1892
+ };
1893
+ applicationEncryption: {
1894
+ provider: "systemd-credential";
1895
+ activeKeyVersion: number;
1896
+ diagnosticsKeyVersion: number;
1897
+ };
1898
+ } | undefined;
1899
+ }, {
1900
+ schemaVersion: "treeseed.host/v1";
1901
+ runtime: {
1902
+ management: "external" | "managed";
1903
+ environment?: "development" | "production" | undefined;
1904
+ dataRoot?: string | undefined;
1905
+ };
1906
+ components: Record<string, {
1907
+ enabled: boolean;
1908
+ track: "development" | "stable";
1909
+ resources?: {
1910
+ cpuCores?: number | undefined;
1911
+ memoryBytes?: number | undefined;
1912
+ storageBytes?: number | undefined;
1913
+ gpuDevices?: string[] | undefined;
1914
+ } | undefined;
1915
+ profile?: string | undefined;
1916
+ aliases?: Record<string, string> | undefined;
1917
+ configuration?: Record<string, unknown> | undefined;
1918
+ connections?: Record<string, {
1919
+ kind: "local";
1920
+ componentId: string;
1921
+ serviceId: string;
1922
+ endpointId: string;
1923
+ } | {
1924
+ kind: "remote";
1925
+ audience: string;
1926
+ url: string;
1927
+ authentication: {
1928
+ mode: "none" | "application" | "mtls" | "bearer";
1929
+ secretRef?: string | undefined;
1930
+ };
1931
+ tls: {
1932
+ trust: "secret" | "system" | "spki";
1933
+ serverName?: string | undefined;
1934
+ caSecretRef?: string | undefined;
1935
+ spkiSha256?: string | undefined;
1936
+ };
1937
+ healthGate: {
1938
+ timeoutSeconds: number;
1939
+ protocol: "http" | "tcp" | "https";
1940
+ path?: string | undefined;
1941
+ };
1942
+ }> | undefined;
1943
+ }>;
1944
+ network: {
1945
+ manager: {
1946
+ binding: string;
1947
+ aliases?: string[] | undefined;
1948
+ sans?: string[] | undefined;
1949
+ trustedLanCidrs?: string[] | undefined;
1950
+ };
1951
+ };
1952
+ host: {
1953
+ id: string;
1954
+ role: string;
1955
+ architecture: "amd64";
1956
+ };
1957
+ generation: number;
1958
+ configurationId: string;
1959
+ updates: {
1960
+ development: {
1961
+ pollSeconds: 60;
1962
+ };
1963
+ stable: {
1964
+ metadataPollSeconds: number;
1965
+ maintenanceWindow: {
1966
+ weekday: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
1967
+ localTime: string;
1968
+ jitterMinutes: number;
1969
+ };
1970
+ };
1971
+ defaultTrack: "development" | "stable";
1972
+ };
1973
+ fleet: {
1974
+ rolloutGroup: string;
1975
+ receiptReporting: {
1976
+ enabled: boolean;
1977
+ intervalSeconds: number;
1978
+ connection?: {
1979
+ kind: "local";
1980
+ componentId: string;
1981
+ serviceId: string;
1982
+ endpointId: string;
1983
+ } | {
1984
+ kind: "remote";
1985
+ audience: string;
1986
+ url: string;
1987
+ authentication: {
1988
+ mode: "none" | "application" | "mtls" | "bearer";
1989
+ secretRef?: string | undefined;
1990
+ };
1991
+ tls: {
1992
+ trust: "secret" | "system" | "spki";
1993
+ serverName?: string | undefined;
1994
+ caSecretRef?: string | undefined;
1995
+ spkiSha256?: string | undefined;
1996
+ };
1997
+ healthGate: {
1998
+ timeoutSeconds: number;
1999
+ protocol: "http" | "tcp" | "https";
2000
+ path?: string | undefined;
2001
+ };
2002
+ } | undefined;
2003
+ };
2004
+ };
2005
+ secrets: Record<string, {
2006
+ provider: "file" | "systemd-credential";
2007
+ reference: string;
2008
+ }>;
2009
+ postgres?: {
2010
+ schemaVersion: "treeseed.postgres-topology/v1";
2011
+ environment: "production" | "staging";
2012
+ installationId: string;
2013
+ servers: {
2014
+ id: string;
2015
+ mode: "shared" | "dedicated" | "external";
2016
+ environment: "production" | "staging";
2017
+ port: number;
2018
+ major: number;
2019
+ extensions: string[];
2020
+ installationId: string;
2021
+ hostname: string;
2022
+ tls: {
2023
+ mode: "verify-full";
2024
+ trustReference: string;
2025
+ };
2026
+ }[];
2027
+ requirements: {
2028
+ id: string;
2029
+ componentId: string;
2030
+ enabled: boolean;
2031
+ supportedMajors: [number, ...number[]];
2032
+ extensions: string[];
2033
+ runtimeConnectionLimit: number;
2034
+ }[];
2035
+ allocations: {
2036
+ requirementId: string;
2037
+ serverId: string;
2038
+ database: string;
2039
+ ownerRole: string;
2040
+ migrationRole: string;
2041
+ runtimeRole: string;
2042
+ migrationCredentialReference: string;
2043
+ runtimeCredentialReference: string;
2044
+ onDisable: "preserve";
2045
+ }[];
2046
+ } | undefined;
2047
+ security?: {
2048
+ sandbox: {
2049
+ runtime: "kata-runtime-rs-qemu";
2050
+ profiles: {
2051
+ id: string;
2052
+ guestImage: string;
2053
+ guestImageDigest: string;
2054
+ }[];
2055
+ required: boolean;
2056
+ brokerSocket: string;
2057
+ modelGateway: {
2058
+ provider: "openai";
2059
+ upstreamBaseUrl: "https://api.openai.com";
2060
+ allowedModels: string[];
2061
+ };
2062
+ };
2063
+ providerVolume: {
2064
+ encryption: "luks2";
2065
+ backingPath: string;
2066
+ mountPath: string;
2067
+ sizeBytes: number;
2068
+ unlock: "systemd-credential" | "tpm2";
2069
+ recoveryRequired: true;
2070
+ };
2071
+ applicationEncryption: {
2072
+ provider: "systemd-credential";
2073
+ activeKeyVersion: number;
2074
+ diagnosticsKeyVersion: number;
2075
+ };
2076
+ } | undefined;
2077
+ }>, {
2078
+ schemaVersion: "treeseed.host/v1";
2079
+ runtime: {
2080
+ environment: "development" | "production";
2081
+ management: "external" | "managed";
1454
2082
  dataRoot?: string | undefined;
1455
2083
  };
1456
2084
  components: Record<string, {
@@ -1556,6 +2184,44 @@ export declare const hostConfigurationSchema: z.ZodObject<{
1556
2184
  provider: "file" | "systemd-credential";
1557
2185
  reference: string;
1558
2186
  }>;
2187
+ postgres?: {
2188
+ schemaVersion: "treeseed.postgres-topology/v1";
2189
+ environment: "production" | "staging";
2190
+ installationId: string;
2191
+ servers: {
2192
+ id: string;
2193
+ mode: "shared" | "dedicated" | "external";
2194
+ environment: "production" | "staging";
2195
+ port: number;
2196
+ major: number;
2197
+ extensions: string[];
2198
+ installationId: string;
2199
+ hostname: string;
2200
+ tls: {
2201
+ mode: "verify-full";
2202
+ trustReference: string;
2203
+ };
2204
+ }[];
2205
+ requirements: {
2206
+ id: string;
2207
+ componentId: string;
2208
+ enabled: boolean;
2209
+ supportedMajors: [number, ...number[]];
2210
+ extensions: string[];
2211
+ runtimeConnectionLimit: number;
2212
+ }[];
2213
+ allocations: {
2214
+ requirementId: string;
2215
+ serverId: string;
2216
+ database: string;
2217
+ ownerRole: string;
2218
+ migrationRole: string;
2219
+ runtimeRole: string;
2220
+ migrationCredentialReference: string;
2221
+ runtimeCredentialReference: string;
2222
+ onDisable: "preserve";
2223
+ }[];
2224
+ } | undefined;
1559
2225
  security?: {
1560
2226
  sandbox: {
1561
2227
  runtime: "kata-runtime-rs-qemu";
@@ -1589,7 +2255,7 @@ export declare const hostConfigurationSchema: z.ZodObject<{
1589
2255
  }, {
1590
2256
  schemaVersion: "treeseed.host/v1";
1591
2257
  runtime: {
1592
- management: "managed" | "external";
2258
+ management: "external" | "managed";
1593
2259
  environment?: "development" | "production" | undefined;
1594
2260
  dataRoot?: string | undefined;
1595
2261
  };
@@ -1696,6 +2362,44 @@ export declare const hostConfigurationSchema: z.ZodObject<{
1696
2362
  provider: "file" | "systemd-credential";
1697
2363
  reference: string;
1698
2364
  }>;
2365
+ postgres?: {
2366
+ schemaVersion: "treeseed.postgres-topology/v1";
2367
+ environment: "production" | "staging";
2368
+ installationId: string;
2369
+ servers: {
2370
+ id: string;
2371
+ mode: "shared" | "dedicated" | "external";
2372
+ environment: "production" | "staging";
2373
+ port: number;
2374
+ major: number;
2375
+ extensions: string[];
2376
+ installationId: string;
2377
+ hostname: string;
2378
+ tls: {
2379
+ mode: "verify-full";
2380
+ trustReference: string;
2381
+ };
2382
+ }[];
2383
+ requirements: {
2384
+ id: string;
2385
+ componentId: string;
2386
+ enabled: boolean;
2387
+ supportedMajors: [number, ...number[]];
2388
+ extensions: string[];
2389
+ runtimeConnectionLimit: number;
2390
+ }[];
2391
+ allocations: {
2392
+ requirementId: string;
2393
+ serverId: string;
2394
+ database: string;
2395
+ ownerRole: string;
2396
+ migrationRole: string;
2397
+ runtimeRole: string;
2398
+ migrationCredentialReference: string;
2399
+ runtimeCredentialReference: string;
2400
+ onDisable: "preserve";
2401
+ }[];
2402
+ } | undefined;
1699
2403
  security?: {
1700
2404
  sandbox: {
1701
2405
  runtime: "kata-runtime-rs-qemu";
@@ -2009,6 +2713,24 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
2009
2713
  default?: string | undefined;
2010
2714
  }[] | undefined;
2011
2715
  } | undefined>;
2716
+ postgresRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
2717
+ id: z.ZodString;
2718
+ componentId: z.ZodString;
2719
+ enabled: z.ZodBoolean;
2720
+ supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
2721
+ extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
2722
+ runtimeConnectionLimit: z.ZodNumber;
2723
+ }, "componentId" | "enabled">, "strict", z.ZodTypeAny, {
2724
+ id: string;
2725
+ supportedMajors: [number, ...number[]];
2726
+ extensions: string[];
2727
+ runtimeConnectionLimit: number;
2728
+ }, {
2729
+ id: string;
2730
+ supportedMajors: [number, ...number[]];
2731
+ extensions: string[];
2732
+ runtimeConnectionLimit: number;
2733
+ }>, "many">>;
2012
2734
  services: z.ZodArray<z.ZodObject<{
2013
2735
  id: z.ZodString;
2014
2736
  composeService: z.ZodString;
@@ -2316,6 +3038,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
2316
3038
  backupRequired: boolean;
2317
3039
  }[];
2318
3040
  requiredCapabilities: string[];
3041
+ postgresRequirements?: {
3042
+ id: string;
3043
+ supportedMajors: [number, ...number[]];
3044
+ extensions: string[];
3045
+ runtimeConnectionLimit: number;
3046
+ }[] | undefined;
2319
3047
  modeControl?: {
2320
3048
  resource: "ai-gpu";
2321
3049
  role: "inference" | "training" | "controller";
@@ -2405,6 +3133,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
2405
3133
  default?: string | undefined;
2406
3134
  }[] | undefined;
2407
3135
  } | undefined;
3136
+ postgresRequirements?: {
3137
+ id: string;
3138
+ supportedMajors: [number, ...number[]];
3139
+ extensions: string[];
3140
+ runtimeConnectionLimit: number;
3141
+ }[] | undefined;
2408
3142
  modeControl?: {
2409
3143
  resource: "ai-gpu";
2410
3144
  role: "inference" | "training" | "controller";
@@ -2494,6 +3228,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
2494
3228
  backupRequired: boolean;
2495
3229
  }[];
2496
3230
  requiredCapabilities: string[];
3231
+ postgresRequirements?: {
3232
+ id: string;
3233
+ supportedMajors: [number, ...number[]];
3234
+ extensions: string[];
3235
+ runtimeConnectionLimit: number;
3236
+ }[] | undefined;
2497
3237
  modeControl?: {
2498
3238
  resource: "ai-gpu";
2499
3239
  role: "inference" | "training" | "controller";
@@ -2583,6 +3323,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
2583
3323
  default?: string | undefined;
2584
3324
  }[] | undefined;
2585
3325
  } | undefined;
3326
+ postgresRequirements?: {
3327
+ id: string;
3328
+ supportedMajors: [number, ...number[]];
3329
+ extensions: string[];
3330
+ runtimeConnectionLimit: number;
3331
+ }[] | undefined;
2586
3332
  modeControl?: {
2587
3333
  resource: "ai-gpu";
2588
3334
  role: "inference" | "training" | "controller";
@@ -2873,6 +3619,24 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
2873
3619
  default?: string | undefined;
2874
3620
  }[] | undefined;
2875
3621
  } | undefined>;
3622
+ postgresRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
3623
+ id: z.ZodString;
3624
+ componentId: z.ZodString;
3625
+ enabled: z.ZodBoolean;
3626
+ supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
3627
+ extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
3628
+ runtimeConnectionLimit: z.ZodNumber;
3629
+ }, "componentId" | "enabled">, "strict", z.ZodTypeAny, {
3630
+ id: string;
3631
+ supportedMajors: [number, ...number[]];
3632
+ extensions: string[];
3633
+ runtimeConnectionLimit: number;
3634
+ }, {
3635
+ id: string;
3636
+ supportedMajors: [number, ...number[]];
3637
+ extensions: string[];
3638
+ runtimeConnectionLimit: number;
3639
+ }>, "many">>;
2876
3640
  services: z.ZodArray<z.ZodObject<{
2877
3641
  id: z.ZodString;
2878
3642
  composeService: z.ZodString;
@@ -3180,6 +3944,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3180
3944
  backupRequired: boolean;
3181
3945
  }[];
3182
3946
  requiredCapabilities: string[];
3947
+ postgresRequirements?: {
3948
+ id: string;
3949
+ supportedMajors: [number, ...number[]];
3950
+ extensions: string[];
3951
+ runtimeConnectionLimit: number;
3952
+ }[] | undefined;
3183
3953
  modeControl?: {
3184
3954
  resource: "ai-gpu";
3185
3955
  role: "inference" | "training" | "controller";
@@ -3269,6 +4039,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3269
4039
  default?: string | undefined;
3270
4040
  }[] | undefined;
3271
4041
  } | undefined;
4042
+ postgresRequirements?: {
4043
+ id: string;
4044
+ supportedMajors: [number, ...number[]];
4045
+ extensions: string[];
4046
+ runtimeConnectionLimit: number;
4047
+ }[] | undefined;
3272
4048
  modeControl?: {
3273
4049
  resource: "ai-gpu";
3274
4050
  role: "inference" | "training" | "controller";
@@ -3358,6 +4134,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3358
4134
  backupRequired: boolean;
3359
4135
  }[];
3360
4136
  requiredCapabilities: string[];
4137
+ postgresRequirements?: {
4138
+ id: string;
4139
+ supportedMajors: [number, ...number[]];
4140
+ extensions: string[];
4141
+ runtimeConnectionLimit: number;
4142
+ }[] | undefined;
3361
4143
  modeControl?: {
3362
4144
  resource: "ai-gpu";
3363
4145
  role: "inference" | "training" | "controller";
@@ -3447,6 +4229,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3447
4229
  default?: string | undefined;
3448
4230
  }[] | undefined;
3449
4231
  } | undefined;
4232
+ postgresRequirements?: {
4233
+ id: string;
4234
+ supportedMajors: [number, ...number[]];
4235
+ extensions: string[];
4236
+ runtimeConnectionLimit: number;
4237
+ }[] | undefined;
3450
4238
  modeControl?: {
3451
4239
  resource: "ai-gpu";
3452
4240
  role: "inference" | "training" | "controller";
@@ -3563,6 +4351,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3563
4351
  backupRequired: boolean;
3564
4352
  }[];
3565
4353
  requiredCapabilities: string[];
4354
+ postgresRequirements?: {
4355
+ id: string;
4356
+ supportedMajors: [number, ...number[]];
4357
+ extensions: string[];
4358
+ runtimeConnectionLimit: number;
4359
+ }[] | undefined;
3566
4360
  modeControl?: {
3567
4361
  resource: "ai-gpu";
3568
4362
  role: "inference" | "training" | "controller";
@@ -3693,6 +4487,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3693
4487
  default?: string | undefined;
3694
4488
  }[] | undefined;
3695
4489
  } | undefined;
4490
+ postgresRequirements?: {
4491
+ id: string;
4492
+ supportedMajors: [number, ...number[]];
4493
+ extensions: string[];
4494
+ runtimeConnectionLimit: number;
4495
+ }[] | undefined;
3696
4496
  modeControl?: {
3697
4497
  resource: "ai-gpu";
3698
4498
  role: "inference" | "training" | "controller";
@@ -3823,6 +4623,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3823
4623
  backupRequired: boolean;
3824
4624
  }[];
3825
4625
  requiredCapabilities: string[];
4626
+ postgresRequirements?: {
4627
+ id: string;
4628
+ supportedMajors: [number, ...number[]];
4629
+ extensions: string[];
4630
+ runtimeConnectionLimit: number;
4631
+ }[] | undefined;
3826
4632
  modeControl?: {
3827
4633
  resource: "ai-gpu";
3828
4634
  role: "inference" | "training" | "controller";
@@ -3953,6 +4759,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
3953
4759
  default?: string | undefined;
3954
4760
  }[] | undefined;
3955
4761
  } | undefined;
4762
+ postgresRequirements?: {
4763
+ id: string;
4764
+ supportedMajors: [number, ...number[]];
4765
+ extensions: string[];
4766
+ runtimeConnectionLimit: number;
4767
+ }[] | undefined;
3956
4768
  modeControl?: {
3957
4769
  resource: "ai-gpu";
3958
4770
  role: "inference" | "training" | "controller";
@@ -4752,6 +5564,24 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
4752
5564
  default?: string | undefined;
4753
5565
  }[] | undefined;
4754
5566
  } | undefined>;
5567
+ postgresRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
5568
+ id: z.ZodString;
5569
+ componentId: z.ZodString;
5570
+ enabled: z.ZodBoolean;
5571
+ supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
5572
+ extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
5573
+ runtimeConnectionLimit: z.ZodNumber;
5574
+ }, "componentId" | "enabled">, "strict", z.ZodTypeAny, {
5575
+ id: string;
5576
+ supportedMajors: [number, ...number[]];
5577
+ extensions: string[];
5578
+ runtimeConnectionLimit: number;
5579
+ }, {
5580
+ id: string;
5581
+ supportedMajors: [number, ...number[]];
5582
+ extensions: string[];
5583
+ runtimeConnectionLimit: number;
5584
+ }>, "many">>;
4755
5585
  services: z.ZodArray<z.ZodObject<{
4756
5586
  id: z.ZodString;
4757
5587
  composeService: z.ZodString;
@@ -5059,6 +5889,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5059
5889
  backupRequired: boolean;
5060
5890
  }[];
5061
5891
  requiredCapabilities: string[];
5892
+ postgresRequirements?: {
5893
+ id: string;
5894
+ supportedMajors: [number, ...number[]];
5895
+ extensions: string[];
5896
+ runtimeConnectionLimit: number;
5897
+ }[] | undefined;
5062
5898
  modeControl?: {
5063
5899
  resource: "ai-gpu";
5064
5900
  role: "inference" | "training" | "controller";
@@ -5148,6 +5984,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5148
5984
  default?: string | undefined;
5149
5985
  }[] | undefined;
5150
5986
  } | undefined;
5987
+ postgresRequirements?: {
5988
+ id: string;
5989
+ supportedMajors: [number, ...number[]];
5990
+ extensions: string[];
5991
+ runtimeConnectionLimit: number;
5992
+ }[] | undefined;
5151
5993
  modeControl?: {
5152
5994
  resource: "ai-gpu";
5153
5995
  role: "inference" | "training" | "controller";
@@ -5237,6 +6079,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5237
6079
  backupRequired: boolean;
5238
6080
  }[];
5239
6081
  requiredCapabilities: string[];
6082
+ postgresRequirements?: {
6083
+ id: string;
6084
+ supportedMajors: [number, ...number[]];
6085
+ extensions: string[];
6086
+ runtimeConnectionLimit: number;
6087
+ }[] | undefined;
5240
6088
  modeControl?: {
5241
6089
  resource: "ai-gpu";
5242
6090
  role: "inference" | "training" | "controller";
@@ -5326,6 +6174,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5326
6174
  default?: string | undefined;
5327
6175
  }[] | undefined;
5328
6176
  } | undefined;
6177
+ postgresRequirements?: {
6178
+ id: string;
6179
+ supportedMajors: [number, ...number[]];
6180
+ extensions: string[];
6181
+ runtimeConnectionLimit: number;
6182
+ }[] | undefined;
5329
6183
  modeControl?: {
5330
6184
  resource: "ai-gpu";
5331
6185
  role: "inference" | "training" | "controller";
@@ -5442,6 +6296,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5442
6296
  backupRequired: boolean;
5443
6297
  }[];
5444
6298
  requiredCapabilities: string[];
6299
+ postgresRequirements?: {
6300
+ id: string;
6301
+ supportedMajors: [number, ...number[]];
6302
+ extensions: string[];
6303
+ runtimeConnectionLimit: number;
6304
+ }[] | undefined;
5445
6305
  modeControl?: {
5446
6306
  resource: "ai-gpu";
5447
6307
  role: "inference" | "training" | "controller";
@@ -5572,6 +6432,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5572
6432
  default?: string | undefined;
5573
6433
  }[] | undefined;
5574
6434
  } | undefined;
6435
+ postgresRequirements?: {
6436
+ id: string;
6437
+ supportedMajors: [number, ...number[]];
6438
+ extensions: string[];
6439
+ runtimeConnectionLimit: number;
6440
+ }[] | undefined;
5575
6441
  modeControl?: {
5576
6442
  resource: "ai-gpu";
5577
6443
  role: "inference" | "training" | "controller";
@@ -5702,6 +6568,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5702
6568
  backupRequired: boolean;
5703
6569
  }[];
5704
6570
  requiredCapabilities: string[];
6571
+ postgresRequirements?: {
6572
+ id: string;
6573
+ supportedMajors: [number, ...number[]];
6574
+ extensions: string[];
6575
+ runtimeConnectionLimit: number;
6576
+ }[] | undefined;
5705
6577
  modeControl?: {
5706
6578
  resource: "ai-gpu";
5707
6579
  role: "inference" | "training" | "controller";
@@ -5832,6 +6704,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
5832
6704
  default?: string | undefined;
5833
6705
  }[] | undefined;
5834
6706
  } | undefined;
6707
+ postgresRequirements?: {
6708
+ id: string;
6709
+ supportedMajors: [number, ...number[]];
6710
+ extensions: string[];
6711
+ runtimeConnectionLimit: number;
6712
+ }[] | undefined;
5835
6713
  modeControl?: {
5836
6714
  resource: "ai-gpu";
5837
6715
  role: "inference" | "training" | "controller";
@@ -6078,6 +6956,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
6078
6956
  backupRequired: boolean;
6079
6957
  }[];
6080
6958
  requiredCapabilities: string[];
6959
+ postgresRequirements?: {
6960
+ id: string;
6961
+ supportedMajors: [number, ...number[]];
6962
+ extensions: string[];
6963
+ runtimeConnectionLimit: number;
6964
+ }[] | undefined;
6081
6965
  modeControl?: {
6082
6966
  resource: "ai-gpu";
6083
6967
  role: "inference" | "training" | "controller";
@@ -6240,6 +7124,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
6240
7124
  default?: string | undefined;
6241
7125
  }[] | undefined;
6242
7126
  } | undefined;
7127
+ postgresRequirements?: {
7128
+ id: string;
7129
+ supportedMajors: [number, ...number[]];
7130
+ extensions: string[];
7131
+ runtimeConnectionLimit: number;
7132
+ }[] | undefined;
6243
7133
  modeControl?: {
6244
7134
  resource: "ai-gpu";
6245
7135
  role: "inference" | "training" | "controller";
@@ -6402,6 +7292,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
6402
7292
  backupRequired: boolean;
6403
7293
  }[];
6404
7294
  requiredCapabilities: string[];
7295
+ postgresRequirements?: {
7296
+ id: string;
7297
+ supportedMajors: [number, ...number[]];
7298
+ extensions: string[];
7299
+ runtimeConnectionLimit: number;
7300
+ }[] | undefined;
6405
7301
  modeControl?: {
6406
7302
  resource: "ai-gpu";
6407
7303
  role: "inference" | "training" | "controller";
@@ -6564,6 +7460,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
6564
7460
  default?: string | undefined;
6565
7461
  }[] | undefined;
6566
7462
  } | undefined;
7463
+ postgresRequirements?: {
7464
+ id: string;
7465
+ supportedMajors: [number, ...number[]];
7466
+ extensions: string[];
7467
+ runtimeConnectionLimit: number;
7468
+ }[] | undefined;
6567
7469
  modeControl?: {
6568
7470
  resource: "ai-gpu";
6569
7471
  role: "inference" | "training" | "controller";