@terrantula/sdk 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/local.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as SchemaFn, P as ProjectNukeResponse, S as SnapshotOp, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult, d as AdminAuditListResponse, e as AdminOrgListResponse, f as AdminOrgDetail, g as AdminSuspendResponse, h as AdminProjectNukeResponse, i as AdminMetricsOverview, j as AdminGitHubInstallationListResponse } from './projects-CT3fGCOp.mjs';
1
+ import { a as SchemaFn, P as ProjectNukeResponse, S as SnapshotOp, A as AuditExportConfigResponse, b as TestConnectionResponse, c as AuditExportRunResponse, E as ExportCatalogResult, d as AdminAuditListResponse, e as AdminOrgListResponse, f as AdminOrgDetail, g as AdminSuspendResponse, h as AdminProjectNukeResponse, i as AdminMetricsOverview, j as AdminGitHubInstallationListResponse } from './projects-D-LiD32g.mjs';
2
2
  import * as _terrantula_types from '@terrantula/types';
3
3
  import * as hono_utils_types from 'hono/utils/types';
4
4
  import * as zod from 'zod';
@@ -392,6 +392,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
392
392
  projectId: string;
393
393
  }>, {
394
394
  error: string;
395
+ } | {
396
+ error: string;
395
397
  } | {
396
398
  id: string;
397
399
  email: string;
@@ -424,6 +426,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
424
426
  error: string;
425
427
  } | {
426
428
  error: string;
429
+ } | {
430
+ error: string;
427
431
  } | {
428
432
  added: true;
429
433
  envName: any;
@@ -931,6 +935,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
931
935
  max: number;
932
936
  metric: string;
933
937
  }[];
938
+ composition: {
939
+ provider: string;
940
+ kind: "data" | "resource" | "module";
941
+ address: string;
942
+ }[] | null;
934
943
  syncTracked: boolean;
935
944
  syncFreshness: {
936
945
  greenSeconds?: number | undefined;
@@ -989,6 +998,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
989
998
  max: number;
990
999
  metric: string;
991
1000
  }[];
1001
+ composition: {
1002
+ provider: string;
1003
+ kind: "data" | "resource" | "module";
1004
+ address: string;
1005
+ }[] | null;
992
1006
  syncTracked: boolean;
993
1007
  syncFreshness: {
994
1008
  greenSeconds?: number | undefined;
@@ -1132,6 +1146,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1132
1146
  yellowSeconds?: number | undefined;
1133
1147
  }>>;
1134
1148
  applier: zod.ZodOptional<zod.ZodString>;
1149
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1150
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
1151
+ address: zod.ZodString;
1152
+ provider: zod.ZodString;
1153
+ }, "strip", zod.ZodTypeAny, {
1154
+ provider: string;
1155
+ kind: "data" | "resource" | "module";
1156
+ address: string;
1157
+ }, {
1158
+ provider: string;
1159
+ kind: "data" | "resource" | "module";
1160
+ address: string;
1161
+ }>, "many">>;
1135
1162
  } & {
1136
1163
  orgId: zod.ZodString;
1137
1164
  projectId: zod.ZodString;
@@ -1171,9 +1198,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1171
1198
  max: number;
1172
1199
  metric: string;
1173
1200
  }[];
1174
- syncTracked: boolean;
1175
1201
  kind: "EntityType";
1202
+ syncTracked: boolean;
1176
1203
  displayName?: string | undefined;
1204
+ composition?: {
1205
+ provider: string;
1206
+ kind: "data" | "resource" | "module";
1207
+ address: string;
1208
+ }[] | undefined;
1177
1209
  syncFreshness?: {
1178
1210
  greenSeconds?: number | undefined;
1179
1211
  yellowSeconds?: number | undefined;
@@ -1217,6 +1249,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1217
1249
  max: number;
1218
1250
  metric: string;
1219
1251
  }[] | undefined;
1252
+ composition?: {
1253
+ provider: string;
1254
+ kind: "data" | "resource" | "module";
1255
+ address: string;
1256
+ }[] | undefined;
1220
1257
  syncTracked?: boolean | undefined;
1221
1258
  syncFreshness?: {
1222
1259
  greenSeconds?: number | undefined;
@@ -1262,6 +1299,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1262
1299
  max: number;
1263
1300
  metric: string;
1264
1301
  }[];
1302
+ composition: {
1303
+ provider: string;
1304
+ kind: "data" | "resource" | "module";
1305
+ address: string;
1306
+ }[] | null;
1265
1307
  syncTracked: boolean;
1266
1308
  syncFreshness: {
1267
1309
  greenSeconds?: number | undefined;
@@ -1403,6 +1445,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1403
1445
  yellowSeconds?: number | undefined;
1404
1446
  }>>;
1405
1447
  applier: zod.ZodOptional<zod.ZodString>;
1448
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1449
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
1450
+ address: zod.ZodString;
1451
+ provider: zod.ZodString;
1452
+ }, "strip", zod.ZodTypeAny, {
1453
+ provider: string;
1454
+ kind: "data" | "resource" | "module";
1455
+ address: string;
1456
+ }, {
1457
+ provider: string;
1458
+ kind: "data" | "resource" | "module";
1459
+ address: string;
1460
+ }>, "many">>;
1406
1461
  } & {
1407
1462
  orgId: zod.ZodString;
1408
1463
  projectId: zod.ZodString;
@@ -1442,9 +1497,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1442
1497
  max: number;
1443
1498
  metric: string;
1444
1499
  }[];
1445
- syncTracked: boolean;
1446
1500
  kind: "EntityType";
1501
+ syncTracked: boolean;
1447
1502
  displayName?: string | undefined;
1503
+ composition?: {
1504
+ provider: string;
1505
+ kind: "data" | "resource" | "module";
1506
+ address: string;
1507
+ }[] | undefined;
1448
1508
  syncFreshness?: {
1449
1509
  greenSeconds?: number | undefined;
1450
1510
  yellowSeconds?: number | undefined;
@@ -1488,6 +1548,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1488
1548
  max: number;
1489
1549
  metric: string;
1490
1550
  }[] | undefined;
1551
+ composition?: {
1552
+ provider: string;
1553
+ kind: "data" | "resource" | "module";
1554
+ address: string;
1555
+ }[] | undefined;
1491
1556
  syncTracked?: boolean | undefined;
1492
1557
  syncFreshness?: {
1493
1558
  greenSeconds?: number | undefined;
@@ -1531,6 +1596,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1531
1596
  max: number;
1532
1597
  metric: string;
1533
1598
  }[];
1599
+ composition: {
1600
+ provider: string;
1601
+ kind: "data" | "resource" | "module";
1602
+ address: string;
1603
+ }[] | null;
1534
1604
  syncTracked: boolean;
1535
1605
  syncFreshness: {
1536
1606
  greenSeconds?: number | undefined;
@@ -1572,11 +1642,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1572
1642
  projectId: string;
1573
1643
  name: string;
1574
1644
  displayName: string | null;
1575
- provider: string;
1645
+ provider: string | null;
1576
1646
  config: {
1577
1647
  [x: string]: hono_utils_types.JSONValue;
1578
1648
  };
1579
1649
  credentialRef: string | null;
1650
+ set: string | null;
1651
+ properties: {
1652
+ [x: string]: string;
1653
+ };
1654
+ capacity: number | null;
1580
1655
  createdAt: string;
1581
1656
  updatedAt: string;
1582
1657
  }[]>;
@@ -1597,11 +1672,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1597
1672
  projectId: string;
1598
1673
  name: string;
1599
1674
  displayName: string | null;
1600
- provider: string;
1675
+ provider: string | null;
1601
1676
  config: {
1602
1677
  [x: string]: hono_utils_types.JSONValue;
1603
1678
  };
1604
1679
  credentialRef: string | null;
1680
+ set: string | null;
1681
+ properties: {
1682
+ [x: string]: string;
1683
+ };
1684
+ capacity: number | null;
1605
1685
  createdAt: string;
1606
1686
  updatedAt: string;
1607
1687
  }>;
@@ -1609,8 +1689,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1609
1689
  kind: zod.ZodLiteral<"DeploymentTarget">;
1610
1690
  name: zod.ZodString;
1611
1691
  displayName: zod.ZodOptional<zod.ZodString>;
1612
- provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
1692
+ set: zod.ZodOptional<zod.ZodString>;
1693
+ provider: zod.ZodOptional<zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>>;
1613
1694
  config: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
1695
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
1696
+ capacity: zod.ZodOptional<zod.ZodNumber>;
1614
1697
  credentialRef: zod.ZodOptional<zod.ZodString>;
1615
1698
  } & {
1616
1699
  orgId: zod.ZodString;
@@ -1619,39 +1702,53 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1619
1702
  name: string;
1620
1703
  orgId: string;
1621
1704
  projectId: string;
1622
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1705
+ properties: Record<string, string>;
1623
1706
  kind: "DeploymentTarget";
1624
1707
  config: Record<string, unknown>;
1708
+ set?: string | undefined;
1709
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1625
1710
  displayName?: string | undefined;
1626
1711
  credentialRef?: string | undefined;
1712
+ capacity?: number | undefined;
1627
1713
  }, {
1628
1714
  name: string;
1629
1715
  orgId: string;
1630
1716
  projectId: string;
1631
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1632
1717
  kind: "DeploymentTarget";
1718
+ set?: string | undefined;
1719
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1633
1720
  displayName?: string | undefined;
1721
+ properties?: Record<string, string> | undefined;
1634
1722
  config?: Record<string, unknown> | undefined;
1635
1723
  credentialRef?: string | undefined;
1724
+ capacity?: number | undefined;
1636
1725
  }>, {
1637
1726
  name: string;
1638
1727
  createdAt: string;
1728
+ set: string | null;
1639
1729
  updatedAt: string;
1640
1730
  orgId: string;
1641
1731
  projectId: string;
1642
- provider: string;
1732
+ provider: string | null;
1643
1733
  displayName: string | null;
1734
+ properties: {
1735
+ [x: string]: string;
1736
+ };
1644
1737
  config: {
1645
1738
  [x: string]: hono_utils_types.JSONValue;
1646
1739
  };
1647
1740
  credentialRef: string | null;
1741
+ capacity: number | null;
1648
1742
  }>;
1649
1743
  update: SchemaFn<zod.ZodObject<{
1650
1744
  kind: zod.ZodLiteral<"DeploymentTarget">;
1651
1745
  name: zod.ZodString;
1652
1746
  displayName: zod.ZodOptional<zod.ZodString>;
1653
- provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
1747
+ set: zod.ZodOptional<zod.ZodString>;
1748
+ provider: zod.ZodOptional<zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>>;
1654
1749
  config: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
1750
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
1751
+ capacity: zod.ZodOptional<zod.ZodNumber>;
1655
1752
  credentialRef: zod.ZodOptional<zod.ZodString>;
1656
1753
  } & {
1657
1754
  orgId: zod.ZodString;
@@ -1660,32 +1757,149 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1660
1757
  name: string;
1661
1758
  orgId: string;
1662
1759
  projectId: string;
1663
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1760
+ properties: Record<string, string>;
1664
1761
  kind: "DeploymentTarget";
1665
1762
  config: Record<string, unknown>;
1763
+ set?: string | undefined;
1764
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1666
1765
  displayName?: string | undefined;
1667
1766
  credentialRef?: string | undefined;
1767
+ capacity?: number | undefined;
1668
1768
  }, {
1669
1769
  name: string;
1670
1770
  orgId: string;
1671
1771
  projectId: string;
1672
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1673
1772
  kind: "DeploymentTarget";
1773
+ set?: string | undefined;
1774
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1674
1775
  displayName?: string | undefined;
1776
+ properties?: Record<string, string> | undefined;
1675
1777
  config?: Record<string, unknown> | undefined;
1676
1778
  credentialRef?: string | undefined;
1779
+ capacity?: number | undefined;
1677
1780
  }>, {
1678
1781
  orgId: string;
1679
1782
  projectId: string;
1680
1783
  name: string;
1681
1784
  displayName: string | null;
1682
- provider: string;
1785
+ provider: string | null;
1683
1786
  config: {
1684
1787
  [x: string]: hono_utils_types.JSONValue;
1685
1788
  };
1686
1789
  credentialRef: string | null;
1790
+ set: string | null;
1791
+ properties: {
1792
+ [x: string]: string;
1793
+ };
1794
+ capacity: number | null;
1795
+ createdAt: string;
1796
+ updatedAt: string;
1797
+ }>;
1798
+ delete: SchemaFn<zod.ZodObject<{
1799
+ orgId: zod.ZodString;
1800
+ projectId: zod.ZodString;
1801
+ name: zod.ZodString;
1802
+ }, "strip", zod.ZodTypeAny, {
1803
+ name: string;
1804
+ orgId: string;
1805
+ projectId: string;
1806
+ }, {
1807
+ name: string;
1808
+ orgId: string;
1809
+ projectId: string;
1810
+ }>, {
1811
+ deleted: true;
1812
+ name: string;
1813
+ }>;
1814
+ };
1815
+ deploymentTargetSets: {
1816
+ list: SchemaFn<zod.ZodObject<{
1817
+ orgId: zod.ZodString;
1818
+ projectId: zod.ZodString;
1819
+ }, "strip", zod.ZodTypeAny, {
1820
+ orgId: string;
1821
+ projectId: string;
1822
+ }, {
1823
+ orgId: string;
1824
+ projectId: string;
1825
+ }>, {
1826
+ orgId: string;
1827
+ projectId: string;
1828
+ name: string;
1829
+ displayName: string | null;
1830
+ provider: string;
1831
+ properties: {
1832
+ [x: string]: string;
1833
+ };
1834
+ credentialRef: string | null;
1835
+ createdAt: string;
1836
+ updatedAt: string;
1837
+ }[]>;
1838
+ get: SchemaFn<zod.ZodObject<{
1839
+ orgId: zod.ZodString;
1840
+ projectId: zod.ZodString;
1841
+ name: zod.ZodString;
1842
+ }, "strip", zod.ZodTypeAny, {
1843
+ name: string;
1844
+ orgId: string;
1845
+ projectId: string;
1846
+ }, {
1847
+ name: string;
1848
+ orgId: string;
1849
+ projectId: string;
1850
+ }>, {
1851
+ orgId: string;
1852
+ projectId: string;
1853
+ name: string;
1854
+ displayName: string | null;
1855
+ provider: string;
1856
+ properties: {
1857
+ [x: string]: string;
1858
+ };
1859
+ credentialRef: string | null;
1860
+ createdAt: string;
1861
+ updatedAt: string;
1862
+ }>;
1863
+ put: SchemaFn<zod.ZodObject<{
1864
+ kind: zod.ZodLiteral<"DeploymentTargetSet">;
1865
+ name: zod.ZodString;
1866
+ displayName: zod.ZodOptional<zod.ZodString>;
1867
+ provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
1868
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
1869
+ credentialRef: zod.ZodOptional<zod.ZodString>;
1870
+ } & {
1871
+ orgId: zod.ZodString;
1872
+ projectId: zod.ZodString;
1873
+ }, "strip", zod.ZodTypeAny, {
1874
+ name: string;
1875
+ orgId: string;
1876
+ projectId: string;
1877
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1878
+ properties: Record<string, string>;
1879
+ kind: "DeploymentTargetSet";
1880
+ displayName?: string | undefined;
1881
+ credentialRef?: string | undefined;
1882
+ }, {
1883
+ name: string;
1884
+ orgId: string;
1885
+ projectId: string;
1886
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1887
+ kind: "DeploymentTargetSet";
1888
+ displayName?: string | undefined;
1889
+ properties?: Record<string, string> | undefined;
1890
+ credentialRef?: string | undefined;
1891
+ }>, {
1892
+ name: string;
1687
1893
  createdAt: string;
1688
1894
  updatedAt: string;
1895
+ orgId: string;
1896
+ projectId: string;
1897
+ provider: string;
1898
+ displayName: string | null;
1899
+ properties: {
1900
+ [x: string]: string;
1901
+ };
1902
+ credentialRef: string | null;
1689
1903
  }>;
1690
1904
  delete: SchemaFn<zod.ZodObject<{
1691
1905
  orgId: zod.ZodString;
@@ -1762,8 +1976,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1762
1976
  owner?: string[] | undefined;
1763
1977
  cellKey?: string | undefined;
1764
1978
  state?: string[] | undefined;
1765
- cell?: string[] | undefined;
1766
1979
  kind?: string[] | undefined;
1980
+ cell?: string[] | undefined;
1767
1981
  }, {
1768
1982
  orgId: string;
1769
1983
  projectId: string;
@@ -1772,8 +1986,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1772
1986
  owner?: string[] | undefined;
1773
1987
  cellKey?: string | undefined;
1774
1988
  state?: string[] | undefined;
1775
- cell?: string[] | undefined;
1776
1989
  kind?: string[] | undefined;
1990
+ cell?: string[] | undefined;
1777
1991
  }>, {
1778
1992
  kind: {
1779
1993
  value: string;
@@ -2090,7 +2304,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2090
2304
  property: string;
2091
2305
  value?: string | undefined;
2092
2306
  } | null;
2093
- deploymentTarget: string | null;
2307
+ targetSelector: {
2308
+ primary: {
2309
+ set: string;
2310
+ policy: "least-loaded" | "round-robin" | "random";
2311
+ match?: {
2312
+ property: string;
2313
+ equals: {
2314
+ source: "environment";
2315
+ } | {
2316
+ name: string;
2317
+ source: "entityProperty";
2318
+ } | {
2319
+ value: string;
2320
+ source: "literal";
2321
+ };
2322
+ }[] | undefined;
2323
+ };
2324
+ roles?: {
2325
+ [x: string]: {
2326
+ set: string;
2327
+ policy: "least-loaded" | "round-robin" | "random";
2328
+ match?: {
2329
+ property: string;
2330
+ equals: {
2331
+ source: "environment";
2332
+ } | {
2333
+ name: string;
2334
+ source: "entityProperty";
2335
+ } | {
2336
+ value: string;
2337
+ source: "literal";
2338
+ };
2339
+ }[] | undefined;
2340
+ };
2341
+ } | undefined;
2342
+ } | null;
2094
2343
  createdAt: string;
2095
2344
  updatedAt: string;
2096
2345
  }[]>;
@@ -2124,7 +2373,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2124
2373
  property: string;
2125
2374
  value?: string | undefined;
2126
2375
  } | null;
2127
- deploymentTarget: string | null;
2376
+ targetSelector: {
2377
+ primary: {
2378
+ set: string;
2379
+ policy: "least-loaded" | "round-robin" | "random";
2380
+ match?: {
2381
+ property: string;
2382
+ equals: {
2383
+ source: "environment";
2384
+ } | {
2385
+ name: string;
2386
+ source: "entityProperty";
2387
+ } | {
2388
+ value: string;
2389
+ source: "literal";
2390
+ };
2391
+ }[] | undefined;
2392
+ };
2393
+ roles?: {
2394
+ [x: string]: {
2395
+ set: string;
2396
+ policy: "least-loaded" | "round-robin" | "random";
2397
+ match?: {
2398
+ property: string;
2399
+ equals: {
2400
+ source: "environment";
2401
+ } | {
2402
+ name: string;
2403
+ source: "entityProperty";
2404
+ } | {
2405
+ value: string;
2406
+ source: "literal";
2407
+ };
2408
+ }[] | undefined;
2409
+ };
2410
+ } | undefined;
2411
+ } | null;
2128
2412
  createdAt: string;
2129
2413
  updatedAt: string;
2130
2414
  }>;
@@ -2170,117 +2454,688 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2170
2454
  value?: string | undefined;
2171
2455
  };
2172
2456
  }>>;
2173
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
2174
- } & {
2175
- orgId: zod.ZodString;
2176
- projectId: zod.ZodString;
2177
- }, "strip", zod.ZodTypeAny, {
2178
- name: string;
2179
- orgId: string;
2180
- projectId: string;
2181
- entityType: string;
2182
- constraints: {
2183
- max: number;
2184
- metric: string;
2185
- aggregate: "max" | "sum" | "avg" | "min";
2186
- }[];
2187
- placementPolicy: "least-loaded" | "round-robin" | "random";
2188
- parentCells: string[];
2189
- kind: "Cell";
2190
- displayName?: string | undefined;
2191
- deploymentTarget?: string | undefined;
2192
- membership?: {
2193
- derivedFrom: {
2194
- property: string;
2195
- value?: string | undefined;
2196
- };
2197
- } | undefined;
2198
- }, {
2199
- name: string;
2200
- orgId: string;
2201
- projectId: string;
2202
- entityType: string;
2203
- kind: "Cell";
2204
- displayName?: string | undefined;
2205
- constraints?: {
2206
- max: number;
2207
- metric: string;
2208
- aggregate: "max" | "sum" | "avg" | "min";
2209
- }[] | undefined;
2210
- placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
2211
- parentCells?: string[] | undefined;
2212
- deploymentTarget?: string | undefined;
2213
- membership?: {
2214
- derivedFrom: {
2215
- property: string;
2216
- value?: string | undefined;
2217
- };
2218
- } | undefined;
2219
- }>, {
2220
- name: string;
2221
- createdAt: string;
2222
- updatedAt: string;
2223
- orgId: string;
2224
- projectId: string;
2225
- displayName: string | null;
2226
- constraints: {
2227
- max: number;
2228
- metric: string;
2229
- aggregate: "max" | "sum" | "avg" | "min";
2230
- }[];
2231
- entityTypeName: string;
2232
- placementPolicy: "least-loaded" | "round-robin" | "random";
2233
- parentCells: string[];
2234
- membershipMode: string;
2235
- membershipDerivedFrom: {
2236
- property: string;
2237
- value?: string | undefined;
2238
- } | null;
2239
- deploymentTarget: string | null;
2240
- }>;
2241
- update: SchemaFn<zod.ZodObject<{
2242
- kind: zod.ZodLiteral<"Cell">;
2243
- name: zod.ZodString;
2244
- displayName: zod.ZodOptional<zod.ZodString>;
2245
- entityType: zod.ZodString;
2246
- placementPolicy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
2247
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2248
- metric: zod.ZodString;
2249
- aggregate: zod.ZodEnum<["sum", "avg", "min", "max"]>;
2250
- max: zod.ZodNumber;
2251
- }, "strip", zod.ZodTypeAny, {
2252
- max: number;
2253
- metric: string;
2254
- aggregate: "max" | "sum" | "avg" | "min";
2255
- }, {
2256
- max: number;
2257
- metric: string;
2258
- aggregate: "max" | "sum" | "avg" | "min";
2259
- }>, "many">>>;
2260
- parentCells: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
2261
- membership: zod.ZodOptional<zod.ZodObject<{
2457
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
2458
+ primary: zod.ZodObject<{
2459
+ set: zod.ZodString;
2460
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2461
+ property: zod.ZodString;
2462
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
2463
+ source: zod.ZodLiteral<"environment">;
2464
+ }, "strip", zod.ZodTypeAny, {
2465
+ source: "environment";
2466
+ }, {
2467
+ source: "environment";
2468
+ }>, zod.ZodObject<{
2469
+ source: zod.ZodLiteral<"entityProperty">;
2470
+ name: zod.ZodString;
2471
+ }, "strip", zod.ZodTypeAny, {
2472
+ name: string;
2473
+ source: "entityProperty";
2474
+ }, {
2475
+ name: string;
2476
+ source: "entityProperty";
2477
+ }>, zod.ZodObject<{
2478
+ source: zod.ZodLiteral<"literal">;
2479
+ value: zod.ZodString;
2480
+ }, "strip", zod.ZodTypeAny, {
2481
+ value: string;
2482
+ source: "literal";
2483
+ }, {
2484
+ value: string;
2485
+ source: "literal";
2486
+ }>]>;
2487
+ }, "strip", zod.ZodTypeAny, {
2488
+ property: string;
2489
+ equals: {
2490
+ source: "environment";
2491
+ } | {
2492
+ name: string;
2493
+ source: "entityProperty";
2494
+ } | {
2495
+ value: string;
2496
+ source: "literal";
2497
+ };
2498
+ }, {
2499
+ property: string;
2500
+ equals: {
2501
+ source: "environment";
2502
+ } | {
2503
+ name: string;
2504
+ source: "entityProperty";
2505
+ } | {
2506
+ value: string;
2507
+ source: "literal";
2508
+ };
2509
+ }>, "many">>;
2510
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
2511
+ }, "strip", zod.ZodTypeAny, {
2512
+ set: string;
2513
+ policy: "least-loaded" | "round-robin" | "random";
2514
+ match?: {
2515
+ property: string;
2516
+ equals: {
2517
+ source: "environment";
2518
+ } | {
2519
+ name: string;
2520
+ source: "entityProperty";
2521
+ } | {
2522
+ value: string;
2523
+ source: "literal";
2524
+ };
2525
+ }[] | undefined;
2526
+ }, {
2527
+ set: string;
2528
+ match?: {
2529
+ property: string;
2530
+ equals: {
2531
+ source: "environment";
2532
+ } | {
2533
+ name: string;
2534
+ source: "entityProperty";
2535
+ } | {
2536
+ value: string;
2537
+ source: "literal";
2538
+ };
2539
+ }[] | undefined;
2540
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2541
+ }>;
2542
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
2543
+ set: zod.ZodString;
2544
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2545
+ property: zod.ZodString;
2546
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
2547
+ source: zod.ZodLiteral<"environment">;
2548
+ }, "strip", zod.ZodTypeAny, {
2549
+ source: "environment";
2550
+ }, {
2551
+ source: "environment";
2552
+ }>, zod.ZodObject<{
2553
+ source: zod.ZodLiteral<"entityProperty">;
2554
+ name: zod.ZodString;
2555
+ }, "strip", zod.ZodTypeAny, {
2556
+ name: string;
2557
+ source: "entityProperty";
2558
+ }, {
2559
+ name: string;
2560
+ source: "entityProperty";
2561
+ }>, zod.ZodObject<{
2562
+ source: zod.ZodLiteral<"literal">;
2563
+ value: zod.ZodString;
2564
+ }, "strip", zod.ZodTypeAny, {
2565
+ value: string;
2566
+ source: "literal";
2567
+ }, {
2568
+ value: string;
2569
+ source: "literal";
2570
+ }>]>;
2571
+ }, "strip", zod.ZodTypeAny, {
2572
+ property: string;
2573
+ equals: {
2574
+ source: "environment";
2575
+ } | {
2576
+ name: string;
2577
+ source: "entityProperty";
2578
+ } | {
2579
+ value: string;
2580
+ source: "literal";
2581
+ };
2582
+ }, {
2583
+ property: string;
2584
+ equals: {
2585
+ source: "environment";
2586
+ } | {
2587
+ name: string;
2588
+ source: "entityProperty";
2589
+ } | {
2590
+ value: string;
2591
+ source: "literal";
2592
+ };
2593
+ }>, "many">>;
2594
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
2595
+ }, "strip", zod.ZodTypeAny, {
2596
+ set: string;
2597
+ policy: "least-loaded" | "round-robin" | "random";
2598
+ match?: {
2599
+ property: string;
2600
+ equals: {
2601
+ source: "environment";
2602
+ } | {
2603
+ name: string;
2604
+ source: "entityProperty";
2605
+ } | {
2606
+ value: string;
2607
+ source: "literal";
2608
+ };
2609
+ }[] | undefined;
2610
+ }, {
2611
+ set: string;
2612
+ match?: {
2613
+ property: string;
2614
+ equals: {
2615
+ source: "environment";
2616
+ } | {
2617
+ name: string;
2618
+ source: "entityProperty";
2619
+ } | {
2620
+ value: string;
2621
+ source: "literal";
2622
+ };
2623
+ }[] | undefined;
2624
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2625
+ }>>>;
2626
+ }, "strip", zod.ZodTypeAny, {
2627
+ primary: {
2628
+ set: string;
2629
+ policy: "least-loaded" | "round-robin" | "random";
2630
+ match?: {
2631
+ property: string;
2632
+ equals: {
2633
+ source: "environment";
2634
+ } | {
2635
+ name: string;
2636
+ source: "entityProperty";
2637
+ } | {
2638
+ value: string;
2639
+ source: "literal";
2640
+ };
2641
+ }[] | undefined;
2642
+ };
2643
+ roles?: Record<string, {
2644
+ set: string;
2645
+ policy: "least-loaded" | "round-robin" | "random";
2646
+ match?: {
2647
+ property: string;
2648
+ equals: {
2649
+ source: "environment";
2650
+ } | {
2651
+ name: string;
2652
+ source: "entityProperty";
2653
+ } | {
2654
+ value: string;
2655
+ source: "literal";
2656
+ };
2657
+ }[] | undefined;
2658
+ }> | undefined;
2659
+ }, {
2660
+ primary: {
2661
+ set: string;
2662
+ match?: {
2663
+ property: string;
2664
+ equals: {
2665
+ source: "environment";
2666
+ } | {
2667
+ name: string;
2668
+ source: "entityProperty";
2669
+ } | {
2670
+ value: string;
2671
+ source: "literal";
2672
+ };
2673
+ }[] | undefined;
2674
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2675
+ };
2676
+ roles?: Record<string, {
2677
+ set: string;
2678
+ match?: {
2679
+ property: string;
2680
+ equals: {
2681
+ source: "environment";
2682
+ } | {
2683
+ name: string;
2684
+ source: "entityProperty";
2685
+ } | {
2686
+ value: string;
2687
+ source: "literal";
2688
+ };
2689
+ }[] | undefined;
2690
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2691
+ }> | undefined;
2692
+ }>>;
2693
+ } & {
2694
+ orgId: zod.ZodString;
2695
+ projectId: zod.ZodString;
2696
+ }, "strip", zod.ZodTypeAny, {
2697
+ name: string;
2698
+ orgId: string;
2699
+ projectId: string;
2700
+ entityType: string;
2701
+ constraints: {
2702
+ max: number;
2703
+ metric: string;
2704
+ aggregate: "max" | "sum" | "avg" | "min";
2705
+ }[];
2706
+ kind: "Cell";
2707
+ placementPolicy: "least-loaded" | "round-robin" | "random";
2708
+ parentCells: string[];
2709
+ displayName?: string | undefined;
2710
+ targetSelector?: {
2711
+ primary: {
2712
+ set: string;
2713
+ policy: "least-loaded" | "round-robin" | "random";
2714
+ match?: {
2715
+ property: string;
2716
+ equals: {
2717
+ source: "environment";
2718
+ } | {
2719
+ name: string;
2720
+ source: "entityProperty";
2721
+ } | {
2722
+ value: string;
2723
+ source: "literal";
2724
+ };
2725
+ }[] | undefined;
2726
+ };
2727
+ roles?: Record<string, {
2728
+ set: string;
2729
+ policy: "least-loaded" | "round-robin" | "random";
2730
+ match?: {
2731
+ property: string;
2732
+ equals: {
2733
+ source: "environment";
2734
+ } | {
2735
+ name: string;
2736
+ source: "entityProperty";
2737
+ } | {
2738
+ value: string;
2739
+ source: "literal";
2740
+ };
2741
+ }[] | undefined;
2742
+ }> | undefined;
2743
+ } | undefined;
2744
+ membership?: {
2745
+ derivedFrom: {
2746
+ property: string;
2747
+ value?: string | undefined;
2748
+ };
2749
+ } | undefined;
2750
+ }, {
2751
+ name: string;
2752
+ orgId: string;
2753
+ projectId: string;
2754
+ entityType: string;
2755
+ kind: "Cell";
2756
+ displayName?: string | undefined;
2757
+ constraints?: {
2758
+ max: number;
2759
+ metric: string;
2760
+ aggregate: "max" | "sum" | "avg" | "min";
2761
+ }[] | undefined;
2762
+ placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
2763
+ parentCells?: string[] | undefined;
2764
+ targetSelector?: {
2765
+ primary: {
2766
+ set: string;
2767
+ match?: {
2768
+ property: string;
2769
+ equals: {
2770
+ source: "environment";
2771
+ } | {
2772
+ name: string;
2773
+ source: "entityProperty";
2774
+ } | {
2775
+ value: string;
2776
+ source: "literal";
2777
+ };
2778
+ }[] | undefined;
2779
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2780
+ };
2781
+ roles?: Record<string, {
2782
+ set: string;
2783
+ match?: {
2784
+ property: string;
2785
+ equals: {
2786
+ source: "environment";
2787
+ } | {
2788
+ name: string;
2789
+ source: "entityProperty";
2790
+ } | {
2791
+ value: string;
2792
+ source: "literal";
2793
+ };
2794
+ }[] | undefined;
2795
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2796
+ }> | undefined;
2797
+ } | undefined;
2798
+ membership?: {
2799
+ derivedFrom: {
2800
+ property: string;
2801
+ value?: string | undefined;
2802
+ };
2803
+ } | undefined;
2804
+ }>, {
2805
+ name: string;
2806
+ createdAt: string;
2807
+ updatedAt: string;
2808
+ orgId: string;
2809
+ projectId: string;
2810
+ displayName: string | null;
2811
+ constraints: {
2812
+ max: number;
2813
+ metric: string;
2814
+ aggregate: "max" | "sum" | "avg" | "min";
2815
+ }[];
2816
+ entityTypeName: string;
2817
+ placementPolicy: "least-loaded" | "round-robin" | "random";
2818
+ parentCells: string[];
2819
+ membershipMode: string;
2820
+ membershipDerivedFrom: {
2821
+ property: string;
2822
+ value?: string | undefined;
2823
+ } | null;
2824
+ targetSelector: {
2825
+ primary: {
2826
+ set: string;
2827
+ policy: "least-loaded" | "round-robin" | "random";
2828
+ match?: {
2829
+ property: string;
2830
+ equals: {
2831
+ source: "environment";
2832
+ } | {
2833
+ name: string;
2834
+ source: "entityProperty";
2835
+ } | {
2836
+ value: string;
2837
+ source: "literal";
2838
+ };
2839
+ }[] | undefined;
2840
+ };
2841
+ roles?: {
2842
+ [x: string]: {
2843
+ set: string;
2844
+ policy: "least-loaded" | "round-robin" | "random";
2845
+ match?: {
2846
+ property: string;
2847
+ equals: {
2848
+ source: "environment";
2849
+ } | {
2850
+ name: string;
2851
+ source: "entityProperty";
2852
+ } | {
2853
+ value: string;
2854
+ source: "literal";
2855
+ };
2856
+ }[] | undefined;
2857
+ };
2858
+ } | undefined;
2859
+ } | null;
2860
+ }>;
2861
+ update: SchemaFn<zod.ZodObject<{
2862
+ kind: zod.ZodLiteral<"Cell">;
2863
+ name: zod.ZodString;
2864
+ displayName: zod.ZodOptional<zod.ZodString>;
2865
+ entityType: zod.ZodString;
2866
+ placementPolicy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
2867
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2868
+ metric: zod.ZodString;
2869
+ aggregate: zod.ZodEnum<["sum", "avg", "min", "max"]>;
2870
+ max: zod.ZodNumber;
2871
+ }, "strip", zod.ZodTypeAny, {
2872
+ max: number;
2873
+ metric: string;
2874
+ aggregate: "max" | "sum" | "avg" | "min";
2875
+ }, {
2876
+ max: number;
2877
+ metric: string;
2878
+ aggregate: "max" | "sum" | "avg" | "min";
2879
+ }>, "many">>>;
2880
+ parentCells: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
2881
+ membership: zod.ZodOptional<zod.ZodObject<{
2262
2882
  derivedFrom: zod.ZodObject<{
2263
2883
  property: zod.ZodString;
2264
2884
  value: zod.ZodOptional<zod.ZodString>;
2265
2885
  }, "strip", zod.ZodTypeAny, {
2266
- property: string;
2267
- value?: string | undefined;
2886
+ property: string;
2887
+ value?: string | undefined;
2888
+ }, {
2889
+ property: string;
2890
+ value?: string | undefined;
2891
+ }>;
2892
+ }, "strip", zod.ZodTypeAny, {
2893
+ derivedFrom: {
2894
+ property: string;
2895
+ value?: string | undefined;
2896
+ };
2897
+ }, {
2898
+ derivedFrom: {
2899
+ property: string;
2900
+ value?: string | undefined;
2901
+ };
2902
+ }>>;
2903
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
2904
+ primary: zod.ZodObject<{
2905
+ set: zod.ZodString;
2906
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2907
+ property: zod.ZodString;
2908
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
2909
+ source: zod.ZodLiteral<"environment">;
2910
+ }, "strip", zod.ZodTypeAny, {
2911
+ source: "environment";
2912
+ }, {
2913
+ source: "environment";
2914
+ }>, zod.ZodObject<{
2915
+ source: zod.ZodLiteral<"entityProperty">;
2916
+ name: zod.ZodString;
2917
+ }, "strip", zod.ZodTypeAny, {
2918
+ name: string;
2919
+ source: "entityProperty";
2920
+ }, {
2921
+ name: string;
2922
+ source: "entityProperty";
2923
+ }>, zod.ZodObject<{
2924
+ source: zod.ZodLiteral<"literal">;
2925
+ value: zod.ZodString;
2926
+ }, "strip", zod.ZodTypeAny, {
2927
+ value: string;
2928
+ source: "literal";
2929
+ }, {
2930
+ value: string;
2931
+ source: "literal";
2932
+ }>]>;
2933
+ }, "strip", zod.ZodTypeAny, {
2934
+ property: string;
2935
+ equals: {
2936
+ source: "environment";
2937
+ } | {
2938
+ name: string;
2939
+ source: "entityProperty";
2940
+ } | {
2941
+ value: string;
2942
+ source: "literal";
2943
+ };
2944
+ }, {
2945
+ property: string;
2946
+ equals: {
2947
+ source: "environment";
2948
+ } | {
2949
+ name: string;
2950
+ source: "entityProperty";
2951
+ } | {
2952
+ value: string;
2953
+ source: "literal";
2954
+ };
2955
+ }>, "many">>;
2956
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
2957
+ }, "strip", zod.ZodTypeAny, {
2958
+ set: string;
2959
+ policy: "least-loaded" | "round-robin" | "random";
2960
+ match?: {
2961
+ property: string;
2962
+ equals: {
2963
+ source: "environment";
2964
+ } | {
2965
+ name: string;
2966
+ source: "entityProperty";
2967
+ } | {
2968
+ value: string;
2969
+ source: "literal";
2970
+ };
2971
+ }[] | undefined;
2972
+ }, {
2973
+ set: string;
2974
+ match?: {
2975
+ property: string;
2976
+ equals: {
2977
+ source: "environment";
2978
+ } | {
2979
+ name: string;
2980
+ source: "entityProperty";
2981
+ } | {
2982
+ value: string;
2983
+ source: "literal";
2984
+ };
2985
+ }[] | undefined;
2986
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2987
+ }>;
2988
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
2989
+ set: zod.ZodString;
2990
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2991
+ property: zod.ZodString;
2992
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
2993
+ source: zod.ZodLiteral<"environment">;
2994
+ }, "strip", zod.ZodTypeAny, {
2995
+ source: "environment";
2996
+ }, {
2997
+ source: "environment";
2998
+ }>, zod.ZodObject<{
2999
+ source: zod.ZodLiteral<"entityProperty">;
3000
+ name: zod.ZodString;
3001
+ }, "strip", zod.ZodTypeAny, {
3002
+ name: string;
3003
+ source: "entityProperty";
3004
+ }, {
3005
+ name: string;
3006
+ source: "entityProperty";
3007
+ }>, zod.ZodObject<{
3008
+ source: zod.ZodLiteral<"literal">;
3009
+ value: zod.ZodString;
3010
+ }, "strip", zod.ZodTypeAny, {
3011
+ value: string;
3012
+ source: "literal";
3013
+ }, {
3014
+ value: string;
3015
+ source: "literal";
3016
+ }>]>;
3017
+ }, "strip", zod.ZodTypeAny, {
3018
+ property: string;
3019
+ equals: {
3020
+ source: "environment";
3021
+ } | {
3022
+ name: string;
3023
+ source: "entityProperty";
3024
+ } | {
3025
+ value: string;
3026
+ source: "literal";
3027
+ };
3028
+ }, {
3029
+ property: string;
3030
+ equals: {
3031
+ source: "environment";
3032
+ } | {
3033
+ name: string;
3034
+ source: "entityProperty";
3035
+ } | {
3036
+ value: string;
3037
+ source: "literal";
3038
+ };
3039
+ }>, "many">>;
3040
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
3041
+ }, "strip", zod.ZodTypeAny, {
3042
+ set: string;
3043
+ policy: "least-loaded" | "round-robin" | "random";
3044
+ match?: {
3045
+ property: string;
3046
+ equals: {
3047
+ source: "environment";
3048
+ } | {
3049
+ name: string;
3050
+ source: "entityProperty";
3051
+ } | {
3052
+ value: string;
3053
+ source: "literal";
3054
+ };
3055
+ }[] | undefined;
2268
3056
  }, {
2269
- property: string;
2270
- value?: string | undefined;
2271
- }>;
3057
+ set: string;
3058
+ match?: {
3059
+ property: string;
3060
+ equals: {
3061
+ source: "environment";
3062
+ } | {
3063
+ name: string;
3064
+ source: "entityProperty";
3065
+ } | {
3066
+ value: string;
3067
+ source: "literal";
3068
+ };
3069
+ }[] | undefined;
3070
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
3071
+ }>>>;
2272
3072
  }, "strip", zod.ZodTypeAny, {
2273
- derivedFrom: {
2274
- property: string;
2275
- value?: string | undefined;
3073
+ primary: {
3074
+ set: string;
3075
+ policy: "least-loaded" | "round-robin" | "random";
3076
+ match?: {
3077
+ property: string;
3078
+ equals: {
3079
+ source: "environment";
3080
+ } | {
3081
+ name: string;
3082
+ source: "entityProperty";
3083
+ } | {
3084
+ value: string;
3085
+ source: "literal";
3086
+ };
3087
+ }[] | undefined;
2276
3088
  };
3089
+ roles?: Record<string, {
3090
+ set: string;
3091
+ policy: "least-loaded" | "round-robin" | "random";
3092
+ match?: {
3093
+ property: string;
3094
+ equals: {
3095
+ source: "environment";
3096
+ } | {
3097
+ name: string;
3098
+ source: "entityProperty";
3099
+ } | {
3100
+ value: string;
3101
+ source: "literal";
3102
+ };
3103
+ }[] | undefined;
3104
+ }> | undefined;
2277
3105
  }, {
2278
- derivedFrom: {
2279
- property: string;
2280
- value?: string | undefined;
3106
+ primary: {
3107
+ set: string;
3108
+ match?: {
3109
+ property: string;
3110
+ equals: {
3111
+ source: "environment";
3112
+ } | {
3113
+ name: string;
3114
+ source: "entityProperty";
3115
+ } | {
3116
+ value: string;
3117
+ source: "literal";
3118
+ };
3119
+ }[] | undefined;
3120
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
2281
3121
  };
3122
+ roles?: Record<string, {
3123
+ set: string;
3124
+ match?: {
3125
+ property: string;
3126
+ equals: {
3127
+ source: "environment";
3128
+ } | {
3129
+ name: string;
3130
+ source: "entityProperty";
3131
+ } | {
3132
+ value: string;
3133
+ source: "literal";
3134
+ };
3135
+ }[] | undefined;
3136
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
3137
+ }> | undefined;
2282
3138
  }>>;
2283
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
2284
3139
  } & {
2285
3140
  orgId: zod.ZodString;
2286
3141
  projectId: zod.ZodString;
@@ -2294,11 +3149,44 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2294
3149
  metric: string;
2295
3150
  aggregate: "max" | "sum" | "avg" | "min";
2296
3151
  }[];
3152
+ kind: "Cell";
2297
3153
  placementPolicy: "least-loaded" | "round-robin" | "random";
2298
3154
  parentCells: string[];
2299
- kind: "Cell";
2300
3155
  displayName?: string | undefined;
2301
- deploymentTarget?: string | undefined;
3156
+ targetSelector?: {
3157
+ primary: {
3158
+ set: string;
3159
+ policy: "least-loaded" | "round-robin" | "random";
3160
+ match?: {
3161
+ property: string;
3162
+ equals: {
3163
+ source: "environment";
3164
+ } | {
3165
+ name: string;
3166
+ source: "entityProperty";
3167
+ } | {
3168
+ value: string;
3169
+ source: "literal";
3170
+ };
3171
+ }[] | undefined;
3172
+ };
3173
+ roles?: Record<string, {
3174
+ set: string;
3175
+ policy: "least-loaded" | "round-robin" | "random";
3176
+ match?: {
3177
+ property: string;
3178
+ equals: {
3179
+ source: "environment";
3180
+ } | {
3181
+ name: string;
3182
+ source: "entityProperty";
3183
+ } | {
3184
+ value: string;
3185
+ source: "literal";
3186
+ };
3187
+ }[] | undefined;
3188
+ }> | undefined;
3189
+ } | undefined;
2302
3190
  membership?: {
2303
3191
  derivedFrom: {
2304
3192
  property: string;
@@ -2319,7 +3207,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2319
3207
  }[] | undefined;
2320
3208
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
2321
3209
  parentCells?: string[] | undefined;
2322
- deploymentTarget?: string | undefined;
3210
+ targetSelector?: {
3211
+ primary: {
3212
+ set: string;
3213
+ match?: {
3214
+ property: string;
3215
+ equals: {
3216
+ source: "environment";
3217
+ } | {
3218
+ name: string;
3219
+ source: "entityProperty";
3220
+ } | {
3221
+ value: string;
3222
+ source: "literal";
3223
+ };
3224
+ }[] | undefined;
3225
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
3226
+ };
3227
+ roles?: Record<string, {
3228
+ set: string;
3229
+ match?: {
3230
+ property: string;
3231
+ equals: {
3232
+ source: "environment";
3233
+ } | {
3234
+ name: string;
3235
+ source: "entityProperty";
3236
+ } | {
3237
+ value: string;
3238
+ source: "literal";
3239
+ };
3240
+ }[] | undefined;
3241
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
3242
+ }> | undefined;
3243
+ } | undefined;
2323
3244
  membership?: {
2324
3245
  derivedFrom: {
2325
3246
  property: string;
@@ -2344,7 +3265,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2344
3265
  property: string;
2345
3266
  value?: string | undefined;
2346
3267
  } | null;
2347
- deploymentTarget: string | null;
3268
+ targetSelector: {
3269
+ primary: {
3270
+ set: string;
3271
+ policy: "least-loaded" | "round-robin" | "random";
3272
+ match?: {
3273
+ property: string;
3274
+ equals: {
3275
+ source: "environment";
3276
+ } | {
3277
+ name: string;
3278
+ source: "entityProperty";
3279
+ } | {
3280
+ value: string;
3281
+ source: "literal";
3282
+ };
3283
+ }[] | undefined;
3284
+ };
3285
+ roles?: {
3286
+ [x: string]: {
3287
+ set: string;
3288
+ policy: "least-loaded" | "round-robin" | "random";
3289
+ match?: {
3290
+ property: string;
3291
+ equals: {
3292
+ source: "environment";
3293
+ } | {
3294
+ name: string;
3295
+ source: "entityProperty";
3296
+ } | {
3297
+ value: string;
3298
+ source: "literal";
3299
+ };
3300
+ }[] | undefined;
3301
+ };
3302
+ } | undefined;
3303
+ } | null;
2348
3304
  createdAt: string;
2349
3305
  updatedAt: string;
2350
3306
  }>;
@@ -2504,11 +3460,15 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2504
3460
  title?: string | undefined;
2505
3461
  enum?: string[] | undefined;
2506
3462
  }[];
2507
- constraints: {
3463
+ constraints: ({
2508
3464
  type: "property-sum";
2509
3465
  property: string;
2510
3466
  leq: string;
2511
- }[];
3467
+ } | {
3468
+ type: "relationship-count";
3469
+ leq: string | number;
3470
+ })[];
3471
+ containment: boolean;
2512
3472
  createdAt: string;
2513
3473
  updatedAt: string;
2514
3474
  }[]>;
@@ -2542,11 +3502,15 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2542
3502
  title?: string | undefined;
2543
3503
  enum?: string[] | undefined;
2544
3504
  }[];
2545
- constraints: {
3505
+ constraints: ({
2546
3506
  type: "property-sum";
2547
3507
  property: string;
2548
3508
  leq: string;
2549
- }[];
3509
+ } | {
3510
+ type: "relationship-count";
3511
+ leq: string | number;
3512
+ })[];
3513
+ containment: boolean;
2550
3514
  createdAt: string;
2551
3515
  updatedAt: string;
2552
3516
  }>;
@@ -2583,7 +3547,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2583
3547
  title?: string | undefined;
2584
3548
  enum?: string[] | undefined;
2585
3549
  }>, "many">>>;
2586
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3550
+ containment: zod.ZodOptional<zod.ZodBoolean>;
3551
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
2587
3552
  type: zod.ZodLiteral<"property-sum">;
2588
3553
  property: zod.ZodString;
2589
3554
  leq: zod.ZodString;
@@ -2595,7 +3560,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2595
3560
  type: "property-sum";
2596
3561
  property: string;
2597
3562
  leq: string;
2598
- }>, "many">>>;
3563
+ }>, zod.ZodObject<{
3564
+ type: zod.ZodLiteral<"relationship-count">;
3565
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
3566
+ }, "strip", zod.ZodTypeAny, {
3567
+ type: "relationship-count";
3568
+ leq: string | number;
3569
+ }, {
3570
+ type: "relationship-count";
3571
+ leq: string | number;
3572
+ }>]>, "many">>>;
2599
3573
  } & {
2600
3574
  orgId: zod.ZodString;
2601
3575
  projectId: zod.ZodString;
@@ -2614,15 +3588,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2614
3588
  title?: string | undefined;
2615
3589
  enum?: string[] | undefined;
2616
3590
  }[];
2617
- constraints: {
3591
+ constraints: ({
2618
3592
  type: "property-sum";
2619
3593
  property: string;
2620
3594
  leq: string;
2621
- }[];
2622
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
3595
+ } | {
3596
+ type: "relationship-count";
3597
+ leq: string | number;
3598
+ })[];
2623
3599
  kind: "RelationshipType";
3600
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2624
3601
  to: string;
2625
3602
  displayName?: string | undefined;
3603
+ containment?: boolean | undefined;
2626
3604
  }, {
2627
3605
  name: string;
2628
3606
  from: string;
@@ -2641,12 +3619,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2641
3619
  title?: string | undefined;
2642
3620
  enum?: string[] | undefined;
2643
3621
  }[] | undefined;
2644
- constraints?: {
3622
+ constraints?: ({
2645
3623
  type: "property-sum";
2646
3624
  property: string;
2647
3625
  leq: string;
2648
- }[] | undefined;
3626
+ } | {
3627
+ type: "relationship-count";
3628
+ leq: string | number;
3629
+ })[] | undefined;
2649
3630
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
3631
+ containment?: boolean | undefined;
2650
3632
  }>, {
2651
3633
  name: string;
2652
3634
  createdAt: string;
@@ -2664,14 +3646,18 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2664
3646
  title?: string | undefined;
2665
3647
  enum?: string[] | undefined;
2666
3648
  }[];
2667
- constraints: {
3649
+ constraints: ({
2668
3650
  type: "property-sum";
2669
3651
  property: string;
2670
3652
  leq: string;
2671
- }[];
3653
+ } | {
3654
+ type: "relationship-count";
3655
+ leq: string | number;
3656
+ })[];
2672
3657
  cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2673
3658
  fromEntityTypeName: string;
2674
3659
  toEntityTypeName: string;
3660
+ containment: boolean;
2675
3661
  }>;
2676
3662
  update: SchemaFn<zod.ZodObject<{
2677
3663
  kind: zod.ZodLiteral<"RelationshipType">;
@@ -2706,7 +3692,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2706
3692
  title?: string | undefined;
2707
3693
  enum?: string[] | undefined;
2708
3694
  }>, "many">>>;
2709
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3695
+ containment: zod.ZodOptional<zod.ZodBoolean>;
3696
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
2710
3697
  type: zod.ZodLiteral<"property-sum">;
2711
3698
  property: zod.ZodString;
2712
3699
  leq: zod.ZodString;
@@ -2718,7 +3705,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2718
3705
  type: "property-sum";
2719
3706
  property: string;
2720
3707
  leq: string;
2721
- }>, "many">>>;
3708
+ }>, zod.ZodObject<{
3709
+ type: zod.ZodLiteral<"relationship-count">;
3710
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
3711
+ }, "strip", zod.ZodTypeAny, {
3712
+ type: "relationship-count";
3713
+ leq: string | number;
3714
+ }, {
3715
+ type: "relationship-count";
3716
+ leq: string | number;
3717
+ }>]>, "many">>>;
2722
3718
  } & {
2723
3719
  orgId: zod.ZodString;
2724
3720
  projectId: zod.ZodString;
@@ -2737,15 +3733,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2737
3733
  title?: string | undefined;
2738
3734
  enum?: string[] | undefined;
2739
3735
  }[];
2740
- constraints: {
3736
+ constraints: ({
2741
3737
  type: "property-sum";
2742
3738
  property: string;
2743
3739
  leq: string;
2744
- }[];
2745
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
3740
+ } | {
3741
+ type: "relationship-count";
3742
+ leq: string | number;
3743
+ })[];
2746
3744
  kind: "RelationshipType";
3745
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2747
3746
  to: string;
2748
3747
  displayName?: string | undefined;
3748
+ containment?: boolean | undefined;
2749
3749
  }, {
2750
3750
  name: string;
2751
3751
  from: string;
@@ -2764,12 +3764,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2764
3764
  title?: string | undefined;
2765
3765
  enum?: string[] | undefined;
2766
3766
  }[] | undefined;
2767
- constraints?: {
3767
+ constraints?: ({
2768
3768
  type: "property-sum";
2769
3769
  property: string;
2770
3770
  leq: string;
2771
- }[] | undefined;
3771
+ } | {
3772
+ type: "relationship-count";
3773
+ leq: string | number;
3774
+ })[] | undefined;
2772
3775
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
3776
+ containment?: boolean | undefined;
2773
3777
  }>, {
2774
3778
  orgId: string;
2775
3779
  projectId: string;
@@ -2788,11 +3792,15 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2788
3792
  title?: string | undefined;
2789
3793
  enum?: string[] | undefined;
2790
3794
  }[];
2791
- constraints: {
3795
+ constraints: ({
2792
3796
  type: "property-sum";
2793
3797
  property: string;
2794
3798
  leq: string;
2795
- }[];
3799
+ } | {
3800
+ type: "relationship-count";
3801
+ leq: string | number;
3802
+ })[];
3803
+ containment: boolean;
2796
3804
  createdAt: string;
2797
3805
  updatedAt: string;
2798
3806
  }>;
@@ -6440,6 +7448,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6440
7448
  name: string;
6441
7449
  orgId: string;
6442
7450
  projectId: string;
7451
+ kind: "Action";
6443
7452
  conditions: {
6444
7453
  value: string | number | boolean | string[];
6445
7454
  field: string;
@@ -6552,7 +7561,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6552
7561
  onFailure: string;
6553
7562
  to: string;
6554
7563
  };
6555
- kind: "Action";
6556
7564
  associatedWith: {
6557
7565
  scope: "collection" | "instance";
6558
7566
  entityType: string;
@@ -6876,6 +7884,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6876
7884
  name: string;
6877
7885
  orgId: string;
6878
7886
  projectId: string;
7887
+ kind: "Action";
6879
7888
  operation: {
6880
7889
  type: "create-entity";
6881
7890
  entityType: string;
@@ -6975,7 +7984,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6975
7984
  onFailure: string;
6976
7985
  to: string;
6977
7986
  };
6978
- kind: "Action";
6979
7987
  associatedWith: {
6980
7988
  scope: "collection" | "instance";
6981
7989
  entityType: string;
@@ -10273,6 +11281,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10273
11281
  name: string;
10274
11282
  orgId: string;
10275
11283
  projectId: string;
11284
+ kind: "Action";
10276
11285
  conditions: {
10277
11286
  value: string | number | boolean | string[];
10278
11287
  field: string;
@@ -10385,7 +11394,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10385
11394
  onFailure: string;
10386
11395
  to: string;
10387
11396
  };
10388
- kind: "Action";
10389
11397
  associatedWith: {
10390
11398
  scope: "collection" | "instance";
10391
11399
  entityType: string;
@@ -10709,6 +11717,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10709
11717
  name: string;
10710
11718
  orgId: string;
10711
11719
  projectId: string;
11720
+ kind: "Action";
10712
11721
  operation: {
10713
11722
  type: "create-entity";
10714
11723
  entityType: string;
@@ -10808,7 +11817,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10808
11817
  onFailure: string;
10809
11818
  to: string;
10810
11819
  };
10811
- kind: "Action";
10812
11820
  associatedWith: {
10813
11821
  scope: "collection" | "instance";
10814
11822
  entityType: string;
@@ -12063,6 +13071,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12063
13071
  yellowSeconds?: number | undefined;
12064
13072
  }>>;
12065
13073
  applier: zod.ZodOptional<zod.ZodString>;
13074
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
13075
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
13076
+ address: zod.ZodString;
13077
+ provider: zod.ZodString;
13078
+ }, "strip", zod.ZodTypeAny, {
13079
+ provider: string;
13080
+ kind: "data" | "resource" | "module";
13081
+ address: string;
13082
+ }, {
13083
+ provider: string;
13084
+ kind: "data" | "resource" | "module";
13085
+ address: string;
13086
+ }>, "many">>;
12066
13087
  }, "strip", zod.ZodTypeAny, {
12067
13088
  name: string;
12068
13089
  states: string[];
@@ -12097,9 +13118,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12097
13118
  max: number;
12098
13119
  metric: string;
12099
13120
  }[];
12100
- syncTracked: boolean;
12101
13121
  kind: "EntityType";
13122
+ syncTracked: boolean;
12102
13123
  displayName?: string | undefined;
13124
+ composition?: {
13125
+ provider: string;
13126
+ kind: "data" | "resource" | "module";
13127
+ address: string;
13128
+ }[] | undefined;
12103
13129
  syncFreshness?: {
12104
13130
  greenSeconds?: number | undefined;
12105
13131
  yellowSeconds?: number | undefined;
@@ -12141,6 +13167,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12141
13167
  max: number;
12142
13168
  metric: string;
12143
13169
  }[] | undefined;
13170
+ composition?: {
13171
+ provider: string;
13172
+ kind: "data" | "resource" | "module";
13173
+ address: string;
13174
+ }[] | undefined;
12144
13175
  syncTracked?: boolean | undefined;
12145
13176
  syncFreshness?: {
12146
13177
  greenSeconds?: number | undefined;
@@ -12179,17 +13210,252 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12179
13210
  value?: string | undefined;
12180
13211
  }>;
12181
13212
  }, "strip", zod.ZodTypeAny, {
12182
- derivedFrom: {
12183
- property: string;
12184
- value?: string | undefined;
13213
+ derivedFrom: {
13214
+ property: string;
13215
+ value?: string | undefined;
13216
+ };
13217
+ }, {
13218
+ derivedFrom: {
13219
+ property: string;
13220
+ value?: string | undefined;
13221
+ };
13222
+ }>>;
13223
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
13224
+ primary: zod.ZodObject<{
13225
+ set: zod.ZodString;
13226
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
13227
+ property: zod.ZodString;
13228
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
13229
+ source: zod.ZodLiteral<"environment">;
13230
+ }, "strip", zod.ZodTypeAny, {
13231
+ source: "environment";
13232
+ }, {
13233
+ source: "environment";
13234
+ }>, zod.ZodObject<{
13235
+ source: zod.ZodLiteral<"entityProperty">;
13236
+ name: zod.ZodString;
13237
+ }, "strip", zod.ZodTypeAny, {
13238
+ name: string;
13239
+ source: "entityProperty";
13240
+ }, {
13241
+ name: string;
13242
+ source: "entityProperty";
13243
+ }>, zod.ZodObject<{
13244
+ source: zod.ZodLiteral<"literal">;
13245
+ value: zod.ZodString;
13246
+ }, "strip", zod.ZodTypeAny, {
13247
+ value: string;
13248
+ source: "literal";
13249
+ }, {
13250
+ value: string;
13251
+ source: "literal";
13252
+ }>]>;
13253
+ }, "strip", zod.ZodTypeAny, {
13254
+ property: string;
13255
+ equals: {
13256
+ source: "environment";
13257
+ } | {
13258
+ name: string;
13259
+ source: "entityProperty";
13260
+ } | {
13261
+ value: string;
13262
+ source: "literal";
13263
+ };
13264
+ }, {
13265
+ property: string;
13266
+ equals: {
13267
+ source: "environment";
13268
+ } | {
13269
+ name: string;
13270
+ source: "entityProperty";
13271
+ } | {
13272
+ value: string;
13273
+ source: "literal";
13274
+ };
13275
+ }>, "many">>;
13276
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
13277
+ }, "strip", zod.ZodTypeAny, {
13278
+ set: string;
13279
+ policy: "least-loaded" | "round-robin" | "random";
13280
+ match?: {
13281
+ property: string;
13282
+ equals: {
13283
+ source: "environment";
13284
+ } | {
13285
+ name: string;
13286
+ source: "entityProperty";
13287
+ } | {
13288
+ value: string;
13289
+ source: "literal";
13290
+ };
13291
+ }[] | undefined;
13292
+ }, {
13293
+ set: string;
13294
+ match?: {
13295
+ property: string;
13296
+ equals: {
13297
+ source: "environment";
13298
+ } | {
13299
+ name: string;
13300
+ source: "entityProperty";
13301
+ } | {
13302
+ value: string;
13303
+ source: "literal";
13304
+ };
13305
+ }[] | undefined;
13306
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
13307
+ }>;
13308
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
13309
+ set: zod.ZodString;
13310
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
13311
+ property: zod.ZodString;
13312
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
13313
+ source: zod.ZodLiteral<"environment">;
13314
+ }, "strip", zod.ZodTypeAny, {
13315
+ source: "environment";
13316
+ }, {
13317
+ source: "environment";
13318
+ }>, zod.ZodObject<{
13319
+ source: zod.ZodLiteral<"entityProperty">;
13320
+ name: zod.ZodString;
13321
+ }, "strip", zod.ZodTypeAny, {
13322
+ name: string;
13323
+ source: "entityProperty";
13324
+ }, {
13325
+ name: string;
13326
+ source: "entityProperty";
13327
+ }>, zod.ZodObject<{
13328
+ source: zod.ZodLiteral<"literal">;
13329
+ value: zod.ZodString;
13330
+ }, "strip", zod.ZodTypeAny, {
13331
+ value: string;
13332
+ source: "literal";
13333
+ }, {
13334
+ value: string;
13335
+ source: "literal";
13336
+ }>]>;
13337
+ }, "strip", zod.ZodTypeAny, {
13338
+ property: string;
13339
+ equals: {
13340
+ source: "environment";
13341
+ } | {
13342
+ name: string;
13343
+ source: "entityProperty";
13344
+ } | {
13345
+ value: string;
13346
+ source: "literal";
13347
+ };
13348
+ }, {
13349
+ property: string;
13350
+ equals: {
13351
+ source: "environment";
13352
+ } | {
13353
+ name: string;
13354
+ source: "entityProperty";
13355
+ } | {
13356
+ value: string;
13357
+ source: "literal";
13358
+ };
13359
+ }>, "many">>;
13360
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
13361
+ }, "strip", zod.ZodTypeAny, {
13362
+ set: string;
13363
+ policy: "least-loaded" | "round-robin" | "random";
13364
+ match?: {
13365
+ property: string;
13366
+ equals: {
13367
+ source: "environment";
13368
+ } | {
13369
+ name: string;
13370
+ source: "entityProperty";
13371
+ } | {
13372
+ value: string;
13373
+ source: "literal";
13374
+ };
13375
+ }[] | undefined;
13376
+ }, {
13377
+ set: string;
13378
+ match?: {
13379
+ property: string;
13380
+ equals: {
13381
+ source: "environment";
13382
+ } | {
13383
+ name: string;
13384
+ source: "entityProperty";
13385
+ } | {
13386
+ value: string;
13387
+ source: "literal";
13388
+ };
13389
+ }[] | undefined;
13390
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
13391
+ }>>>;
13392
+ }, "strip", zod.ZodTypeAny, {
13393
+ primary: {
13394
+ set: string;
13395
+ policy: "least-loaded" | "round-robin" | "random";
13396
+ match?: {
13397
+ property: string;
13398
+ equals: {
13399
+ source: "environment";
13400
+ } | {
13401
+ name: string;
13402
+ source: "entityProperty";
13403
+ } | {
13404
+ value: string;
13405
+ source: "literal";
13406
+ };
13407
+ }[] | undefined;
12185
13408
  };
13409
+ roles?: Record<string, {
13410
+ set: string;
13411
+ policy: "least-loaded" | "round-robin" | "random";
13412
+ match?: {
13413
+ property: string;
13414
+ equals: {
13415
+ source: "environment";
13416
+ } | {
13417
+ name: string;
13418
+ source: "entityProperty";
13419
+ } | {
13420
+ value: string;
13421
+ source: "literal";
13422
+ };
13423
+ }[] | undefined;
13424
+ }> | undefined;
12186
13425
  }, {
12187
- derivedFrom: {
12188
- property: string;
12189
- value?: string | undefined;
13426
+ primary: {
13427
+ set: string;
13428
+ match?: {
13429
+ property: string;
13430
+ equals: {
13431
+ source: "environment";
13432
+ } | {
13433
+ name: string;
13434
+ source: "entityProperty";
13435
+ } | {
13436
+ value: string;
13437
+ source: "literal";
13438
+ };
13439
+ }[] | undefined;
13440
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
12190
13441
  };
13442
+ roles?: Record<string, {
13443
+ set: string;
13444
+ match?: {
13445
+ property: string;
13446
+ equals: {
13447
+ source: "environment";
13448
+ } | {
13449
+ name: string;
13450
+ source: "entityProperty";
13451
+ } | {
13452
+ value: string;
13453
+ source: "literal";
13454
+ };
13455
+ }[] | undefined;
13456
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
13457
+ }> | undefined;
12191
13458
  }>>;
12192
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
12193
13459
  }, "strip", zod.ZodTypeAny, {
12194
13460
  name: string;
12195
13461
  entityType: string;
@@ -12198,11 +13464,44 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12198
13464
  metric: string;
12199
13465
  aggregate: "max" | "sum" | "avg" | "min";
12200
13466
  }[];
13467
+ kind: "Cell";
12201
13468
  placementPolicy: "least-loaded" | "round-robin" | "random";
12202
13469
  parentCells: string[];
12203
- kind: "Cell";
12204
13470
  displayName?: string | undefined;
12205
- deploymentTarget?: string | undefined;
13471
+ targetSelector?: {
13472
+ primary: {
13473
+ set: string;
13474
+ policy: "least-loaded" | "round-robin" | "random";
13475
+ match?: {
13476
+ property: string;
13477
+ equals: {
13478
+ source: "environment";
13479
+ } | {
13480
+ name: string;
13481
+ source: "entityProperty";
13482
+ } | {
13483
+ value: string;
13484
+ source: "literal";
13485
+ };
13486
+ }[] | undefined;
13487
+ };
13488
+ roles?: Record<string, {
13489
+ set: string;
13490
+ policy: "least-loaded" | "round-robin" | "random";
13491
+ match?: {
13492
+ property: string;
13493
+ equals: {
13494
+ source: "environment";
13495
+ } | {
13496
+ name: string;
13497
+ source: "entityProperty";
13498
+ } | {
13499
+ value: string;
13500
+ source: "literal";
13501
+ };
13502
+ }[] | undefined;
13503
+ }> | undefined;
13504
+ } | undefined;
12206
13505
  membership?: {
12207
13506
  derivedFrom: {
12208
13507
  property: string;
@@ -12221,7 +13520,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12221
13520
  }[] | undefined;
12222
13521
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
12223
13522
  parentCells?: string[] | undefined;
12224
- deploymentTarget?: string | undefined;
13523
+ targetSelector?: {
13524
+ primary: {
13525
+ set: string;
13526
+ match?: {
13527
+ property: string;
13528
+ equals: {
13529
+ source: "environment";
13530
+ } | {
13531
+ name: string;
13532
+ source: "entityProperty";
13533
+ } | {
13534
+ value: string;
13535
+ source: "literal";
13536
+ };
13537
+ }[] | undefined;
13538
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
13539
+ };
13540
+ roles?: Record<string, {
13541
+ set: string;
13542
+ match?: {
13543
+ property: string;
13544
+ equals: {
13545
+ source: "environment";
13546
+ } | {
13547
+ name: string;
13548
+ source: "entityProperty";
13549
+ } | {
13550
+ value: string;
13551
+ source: "literal";
13552
+ };
13553
+ }[] | undefined;
13554
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
13555
+ }> | undefined;
13556
+ } | undefined;
12225
13557
  membership?: {
12226
13558
  derivedFrom: {
12227
13559
  property: string;
@@ -12261,7 +13593,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12261
13593
  title?: string | undefined;
12262
13594
  enum?: string[] | undefined;
12263
13595
  }>, "many">>>;
12264
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
13596
+ containment: zod.ZodOptional<zod.ZodBoolean>;
13597
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
12265
13598
  type: zod.ZodLiteral<"property-sum">;
12266
13599
  property: zod.ZodString;
12267
13600
  leq: zod.ZodString;
@@ -12273,7 +13606,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12273
13606
  type: "property-sum";
12274
13607
  property: string;
12275
13608
  leq: string;
12276
- }>, "many">>>;
13609
+ }>, zod.ZodObject<{
13610
+ type: zod.ZodLiteral<"relationship-count">;
13611
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
13612
+ }, "strip", zod.ZodTypeAny, {
13613
+ type: "relationship-count";
13614
+ leq: string | number;
13615
+ }, {
13616
+ type: "relationship-count";
13617
+ leq: string | number;
13618
+ }>]>, "many">>>;
12277
13619
  }, "strip", zod.ZodTypeAny, {
12278
13620
  name: string;
12279
13621
  from: string;
@@ -12287,15 +13629,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12287
13629
  title?: string | undefined;
12288
13630
  enum?: string[] | undefined;
12289
13631
  }[];
12290
- constraints: {
13632
+ constraints: ({
12291
13633
  type: "property-sum";
12292
13634
  property: string;
12293
13635
  leq: string;
12294
- }[];
12295
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
13636
+ } | {
13637
+ type: "relationship-count";
13638
+ leq: string | number;
13639
+ })[];
12296
13640
  kind: "RelationshipType";
13641
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
12297
13642
  to: string;
12298
13643
  displayName?: string | undefined;
13644
+ containment?: boolean | undefined;
12299
13645
  }, {
12300
13646
  name: string;
12301
13647
  from: string;
@@ -12312,12 +13658,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12312
13658
  title?: string | undefined;
12313
13659
  enum?: string[] | undefined;
12314
13660
  }[] | undefined;
12315
- constraints?: {
13661
+ constraints?: ({
12316
13662
  type: "property-sum";
12317
13663
  property: string;
12318
13664
  leq: string;
12319
- }[] | undefined;
13665
+ } | {
13666
+ type: "relationship-count";
13667
+ leq: string | number;
13668
+ })[] | undefined;
12320
13669
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
13670
+ containment?: boolean | undefined;
12321
13671
  }>, zod.ZodObject<{
12322
13672
  kind: zod.ZodLiteral<"Action">;
12323
13673
  name: zod.ZodString;
@@ -14778,6 +16128,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
14778
16128
  enum?: string[] | undefined;
14779
16129
  }[];
14780
16130
  name: string;
16131
+ kind: "Action";
14781
16132
  conditions: {
14782
16133
  value: string | number | boolean | string[];
14783
16134
  field: string;
@@ -14890,7 +16241,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
14890
16241
  onFailure: string;
14891
16242
  to: string;
14892
16243
  };
14893
- kind: "Action";
14894
16244
  associatedWith: {
14895
16245
  scope: "collection" | "instance";
14896
16246
  entityType: string;
@@ -15212,6 +16562,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15212
16562
  mutatesProperty?: string | undefined;
15213
16563
  }, {
15214
16564
  name: string;
16565
+ kind: "Action";
15215
16566
  operation: {
15216
16567
  type: "create-entity";
15217
16568
  entityType: string;
@@ -15311,7 +16662,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15311
16662
  onFailure: string;
15312
16663
  to: string;
15313
16664
  };
15314
- kind: "Action";
15315
16665
  associatedWith: {
15316
16666
  scope: "collection" | "instance";
15317
16667
  entityType: string;
@@ -15720,34 +17070,64 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15720
17070
  kind: zod.ZodLiteral<"DeploymentTarget">;
15721
17071
  name: zod.ZodString;
15722
17072
  displayName: zod.ZodOptional<zod.ZodString>;
15723
- provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
17073
+ set: zod.ZodOptional<zod.ZodString>;
17074
+ provider: zod.ZodOptional<zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>>;
15724
17075
  config: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
17076
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
17077
+ capacity: zod.ZodOptional<zod.ZodNumber>;
15725
17078
  credentialRef: zod.ZodOptional<zod.ZodString>;
15726
17079
  }, "strip", zod.ZodTypeAny, {
15727
17080
  name: string;
15728
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17081
+ properties: Record<string, string>;
15729
17082
  kind: "DeploymentTarget";
15730
17083
  config: Record<string, unknown>;
17084
+ set?: string | undefined;
17085
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
15731
17086
  displayName?: string | undefined;
15732
17087
  credentialRef?: string | undefined;
17088
+ capacity?: number | undefined;
15733
17089
  }, {
15734
17090
  name: string;
15735
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
15736
17091
  kind: "DeploymentTarget";
17092
+ set?: string | undefined;
17093
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
15737
17094
  displayName?: string | undefined;
17095
+ properties?: Record<string, string> | undefined;
15738
17096
  config?: Record<string, unknown> | undefined;
15739
17097
  credentialRef?: string | undefined;
17098
+ capacity?: number | undefined;
17099
+ }>, zod.ZodObject<{
17100
+ kind: zod.ZodLiteral<"DeploymentTargetSet">;
17101
+ name: zod.ZodString;
17102
+ displayName: zod.ZodOptional<zod.ZodString>;
17103
+ provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
17104
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
17105
+ credentialRef: zod.ZodOptional<zod.ZodString>;
17106
+ }, "strip", zod.ZodTypeAny, {
17107
+ name: string;
17108
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17109
+ properties: Record<string, string>;
17110
+ kind: "DeploymentTargetSet";
17111
+ displayName?: string | undefined;
17112
+ credentialRef?: string | undefined;
17113
+ }, {
17114
+ name: string;
17115
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17116
+ kind: "DeploymentTargetSet";
17117
+ displayName?: string | undefined;
17118
+ properties?: Record<string, string> | undefined;
17119
+ credentialRef?: string | undefined;
15740
17120
  }>]>, "many">;
15741
17121
  force: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
15742
17122
  deletions: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
15743
- kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget"]>;
17123
+ kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget", "DeploymentTargetSet"]>;
15744
17124
  name: zod.ZodString;
15745
17125
  }, "strip", zod.ZodTypeAny, {
15746
17126
  name: string;
15747
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
17127
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
15748
17128
  }, {
15749
17129
  name: string;
15750
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
17130
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
15751
17131
  }>, "many">>>;
15752
17132
  dryRun: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
15753
17133
  } & {
@@ -15769,6 +17149,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15769
17149
  enum?: string[] | undefined;
15770
17150
  }[];
15771
17151
  name: string;
17152
+ kind: "Action";
15772
17153
  conditions: {
15773
17154
  value: string | number | boolean | string[];
15774
17155
  field: string;
@@ -15881,7 +17262,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15881
17262
  onFailure: string;
15882
17263
  to: string;
15883
17264
  };
15884
- kind: "Action";
15885
17265
  associatedWith: {
15886
17266
  scope: "collection" | "instance";
15887
17267
  entityType: string;
@@ -16235,9 +17615,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16235
17615
  max: number;
16236
17616
  metric: string;
16237
17617
  }[];
16238
- syncTracked: boolean;
16239
17618
  kind: "EntityType";
17619
+ syncTracked: boolean;
16240
17620
  displayName?: string | undefined;
17621
+ composition?: {
17622
+ provider: string;
17623
+ kind: "data" | "resource" | "module";
17624
+ address: string;
17625
+ }[] | undefined;
16241
17626
  syncFreshness?: {
16242
17627
  greenSeconds?: number | undefined;
16243
17628
  yellowSeconds?: number | undefined;
@@ -16251,11 +17636,44 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16251
17636
  metric: string;
16252
17637
  aggregate: "max" | "sum" | "avg" | "min";
16253
17638
  }[];
17639
+ kind: "Cell";
16254
17640
  placementPolicy: "least-loaded" | "round-robin" | "random";
16255
17641
  parentCells: string[];
16256
- kind: "Cell";
16257
17642
  displayName?: string | undefined;
16258
- deploymentTarget?: string | undefined;
17643
+ targetSelector?: {
17644
+ primary: {
17645
+ set: string;
17646
+ policy: "least-loaded" | "round-robin" | "random";
17647
+ match?: {
17648
+ property: string;
17649
+ equals: {
17650
+ source: "environment";
17651
+ } | {
17652
+ name: string;
17653
+ source: "entityProperty";
17654
+ } | {
17655
+ value: string;
17656
+ source: "literal";
17657
+ };
17658
+ }[] | undefined;
17659
+ };
17660
+ roles?: Record<string, {
17661
+ set: string;
17662
+ policy: "least-loaded" | "round-robin" | "random";
17663
+ match?: {
17664
+ property: string;
17665
+ equals: {
17666
+ source: "environment";
17667
+ } | {
17668
+ name: string;
17669
+ source: "entityProperty";
17670
+ } | {
17671
+ value: string;
17672
+ source: "literal";
17673
+ };
17674
+ }[] | undefined;
17675
+ }> | undefined;
17676
+ } | undefined;
16259
17677
  membership?: {
16260
17678
  derivedFrom: {
16261
17679
  property: string;
@@ -16275,15 +17693,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16275
17693
  title?: string | undefined;
16276
17694
  enum?: string[] | undefined;
16277
17695
  }[];
16278
- constraints: {
17696
+ constraints: ({
16279
17697
  type: "property-sum";
16280
17698
  property: string;
16281
17699
  leq: string;
16282
- }[];
16283
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
17700
+ } | {
17701
+ type: "relationship-count";
17702
+ leq: string | number;
17703
+ })[];
16284
17704
  kind: "RelationshipType";
17705
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
16285
17706
  to: string;
16286
17707
  displayName?: string | undefined;
17708
+ containment?: boolean | undefined;
16287
17709
  } | {
16288
17710
  name: string;
16289
17711
  kind: "Secret";
@@ -16307,15 +17729,25 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16307
17729
  state?: string | undefined;
16308
17730
  } | {
16309
17731
  name: string;
16310
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17732
+ properties: Record<string, string>;
16311
17733
  kind: "DeploymentTarget";
16312
17734
  config: Record<string, unknown>;
17735
+ set?: string | undefined;
17736
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
17737
+ displayName?: string | undefined;
17738
+ credentialRef?: string | undefined;
17739
+ capacity?: number | undefined;
17740
+ } | {
17741
+ name: string;
17742
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17743
+ properties: Record<string, string>;
17744
+ kind: "DeploymentTargetSet";
16313
17745
  displayName?: string | undefined;
16314
17746
  credentialRef?: string | undefined;
16315
17747
  })[];
16316
17748
  deletions: {
16317
17749
  name: string;
16318
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
17750
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
16319
17751
  }[];
16320
17752
  force: boolean;
16321
17753
  dryRun: boolean;
@@ -16325,6 +17757,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16325
17757
  envName: string;
16326
17758
  items: ({
16327
17759
  name: string;
17760
+ kind: "Action";
16328
17761
  operation: {
16329
17762
  type: "create-entity";
16330
17763
  entityType: string;
@@ -16424,7 +17857,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16424
17857
  onFailure: string;
16425
17858
  to: string;
16426
17859
  };
16427
- kind: "Action";
16428
17860
  associatedWith: {
16429
17861
  scope: "collection" | "instance";
16430
17862
  entityType: string;
@@ -16802,6 +18234,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16802
18234
  max: number;
16803
18235
  metric: string;
16804
18236
  }[] | undefined;
18237
+ composition?: {
18238
+ provider: string;
18239
+ kind: "data" | "resource" | "module";
18240
+ address: string;
18241
+ }[] | undefined;
16805
18242
  syncTracked?: boolean | undefined;
16806
18243
  syncFreshness?: {
16807
18244
  greenSeconds?: number | undefined;
@@ -16820,7 +18257,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16820
18257
  }[] | undefined;
16821
18258
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
16822
18259
  parentCells?: string[] | undefined;
16823
- deploymentTarget?: string | undefined;
18260
+ targetSelector?: {
18261
+ primary: {
18262
+ set: string;
18263
+ match?: {
18264
+ property: string;
18265
+ equals: {
18266
+ source: "environment";
18267
+ } | {
18268
+ name: string;
18269
+ source: "entityProperty";
18270
+ } | {
18271
+ value: string;
18272
+ source: "literal";
18273
+ };
18274
+ }[] | undefined;
18275
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
18276
+ };
18277
+ roles?: Record<string, {
18278
+ set: string;
18279
+ match?: {
18280
+ property: string;
18281
+ equals: {
18282
+ source: "environment";
18283
+ } | {
18284
+ name: string;
18285
+ source: "entityProperty";
18286
+ } | {
18287
+ value: string;
18288
+ source: "literal";
18289
+ };
18290
+ }[] | undefined;
18291
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
18292
+ }> | undefined;
18293
+ } | undefined;
16824
18294
  membership?: {
16825
18295
  derivedFrom: {
16826
18296
  property: string;
@@ -16843,12 +18313,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16843
18313
  title?: string | undefined;
16844
18314
  enum?: string[] | undefined;
16845
18315
  }[] | undefined;
16846
- constraints?: {
18316
+ constraints?: ({
16847
18317
  type: "property-sum";
16848
18318
  property: string;
16849
18319
  leq: string;
16850
- }[] | undefined;
18320
+ } | {
18321
+ type: "relationship-count";
18322
+ leq: string | number;
18323
+ })[] | undefined;
16851
18324
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
18325
+ containment?: boolean | undefined;
16852
18326
  } | {
16853
18327
  name: string;
16854
18328
  kind: "Secret";
@@ -16872,15 +18346,25 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16872
18346
  labels?: Record<string, string> | undefined;
16873
18347
  } | {
16874
18348
  name: string;
16875
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
16876
18349
  kind: "DeploymentTarget";
18350
+ set?: string | undefined;
18351
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
16877
18352
  displayName?: string | undefined;
18353
+ properties?: Record<string, string> | undefined;
16878
18354
  config?: Record<string, unknown> | undefined;
16879
18355
  credentialRef?: string | undefined;
18356
+ capacity?: number | undefined;
18357
+ } | {
18358
+ name: string;
18359
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
18360
+ kind: "DeploymentTargetSet";
18361
+ displayName?: string | undefined;
18362
+ properties?: Record<string, string> | undefined;
18363
+ credentialRef?: string | undefined;
16880
18364
  })[];
16881
18365
  deletions?: {
16882
18366
  name: string;
16883
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
18367
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
16884
18368
  }[] | undefined;
16885
18369
  force?: boolean | undefined;
16886
18370
  dryRun?: boolean | undefined;
@@ -18069,6 +19553,29 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18069
19553
  decidedBy: string | null;
18070
19554
  }>;
18071
19555
  };
19556
+ resolveSource: SchemaFn<zod.ZodObject<{
19557
+ orgId: zod.ZodString;
19558
+ projectId: zod.ZodString;
19559
+ kind: zod.ZodLiteral<"registry">;
19560
+ ref: zod.ZodString;
19561
+ version: zod.ZodOptional<zod.ZodString>;
19562
+ }, "strip", zod.ZodTypeAny, {
19563
+ ref: string;
19564
+ orgId: string;
19565
+ projectId: string;
19566
+ kind: "registry";
19567
+ version?: string | undefined;
19568
+ }, {
19569
+ ref: string;
19570
+ orgId: string;
19571
+ projectId: string;
19572
+ kind: "registry";
19573
+ version?: string | undefined;
19574
+ }>, {
19575
+ name: string;
19576
+ inputs: _terrantula_types.RegistryInput[];
19577
+ outputs: _terrantula_types.RegistryOutput[];
19578
+ }>;
18072
19579
  exportCatalog: SchemaFn<zod.ZodObject<{
18073
19580
  orgId: zod.ZodString;
18074
19581
  projectId: zod.ZodString;
@@ -18181,7 +19688,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18181
19688
  property: string;
18182
19689
  value?: string | undefined;
18183
19690
  } | null;
18184
- deploymentTarget: string | null;
19691
+ targetSelector: {
19692
+ primary: {
19693
+ set: string;
19694
+ policy: "least-loaded" | "round-robin" | "random";
19695
+ match?: {
19696
+ property: string;
19697
+ equals: {
19698
+ source: "environment";
19699
+ } | {
19700
+ name: string;
19701
+ source: "entityProperty";
19702
+ } | {
19703
+ value: string;
19704
+ source: "literal";
19705
+ };
19706
+ }[] | undefined;
19707
+ };
19708
+ roles?: {
19709
+ [x: string]: {
19710
+ set: string;
19711
+ policy: "least-loaded" | "round-robin" | "random";
19712
+ match?: {
19713
+ property: string;
19714
+ equals: {
19715
+ source: "environment";
19716
+ } | {
19717
+ name: string;
19718
+ source: "entityProperty";
19719
+ } | {
19720
+ value: string;
19721
+ source: "literal";
19722
+ };
19723
+ }[] | undefined;
19724
+ };
19725
+ } | undefined;
19726
+ } | null;
18185
19727
  createdAt: string;
18186
19728
  updatedAt: string;
18187
19729
  }[]>;
@@ -18215,7 +19757,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18215
19757
  property: string;
18216
19758
  value?: string | undefined;
18217
19759
  } | null;
18218
- deploymentTarget: string | null;
19760
+ targetSelector: {
19761
+ primary: {
19762
+ set: string;
19763
+ policy: "least-loaded" | "round-robin" | "random";
19764
+ match?: {
19765
+ property: string;
19766
+ equals: {
19767
+ source: "environment";
19768
+ } | {
19769
+ name: string;
19770
+ source: "entityProperty";
19771
+ } | {
19772
+ value: string;
19773
+ source: "literal";
19774
+ };
19775
+ }[] | undefined;
19776
+ };
19777
+ roles?: {
19778
+ [x: string]: {
19779
+ set: string;
19780
+ policy: "least-loaded" | "round-robin" | "random";
19781
+ match?: {
19782
+ property: string;
19783
+ equals: {
19784
+ source: "environment";
19785
+ } | {
19786
+ name: string;
19787
+ source: "entityProperty";
19788
+ } | {
19789
+ value: string;
19790
+ source: "literal";
19791
+ };
19792
+ }[] | undefined;
19793
+ };
19794
+ } | undefined;
19795
+ } | null;
18219
19796
  createdAt: string;
18220
19797
  updatedAt: string;
18221
19798
  }>;
@@ -18244,24 +19821,259 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18244
19821
  property: zod.ZodString;
18245
19822
  value: zod.ZodOptional<zod.ZodString>;
18246
19823
  }, "strip", zod.ZodTypeAny, {
18247
- property: string;
18248
- value?: string | undefined;
19824
+ property: string;
19825
+ value?: string | undefined;
19826
+ }, {
19827
+ property: string;
19828
+ value?: string | undefined;
19829
+ }>;
19830
+ }, "strip", zod.ZodTypeAny, {
19831
+ derivedFrom: {
19832
+ property: string;
19833
+ value?: string | undefined;
19834
+ };
19835
+ }, {
19836
+ derivedFrom: {
19837
+ property: string;
19838
+ value?: string | undefined;
19839
+ };
19840
+ }>>;
19841
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
19842
+ primary: zod.ZodObject<{
19843
+ set: zod.ZodString;
19844
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
19845
+ property: zod.ZodString;
19846
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
19847
+ source: zod.ZodLiteral<"environment">;
19848
+ }, "strip", zod.ZodTypeAny, {
19849
+ source: "environment";
19850
+ }, {
19851
+ source: "environment";
19852
+ }>, zod.ZodObject<{
19853
+ source: zod.ZodLiteral<"entityProperty">;
19854
+ name: zod.ZodString;
19855
+ }, "strip", zod.ZodTypeAny, {
19856
+ name: string;
19857
+ source: "entityProperty";
19858
+ }, {
19859
+ name: string;
19860
+ source: "entityProperty";
19861
+ }>, zod.ZodObject<{
19862
+ source: zod.ZodLiteral<"literal">;
19863
+ value: zod.ZodString;
19864
+ }, "strip", zod.ZodTypeAny, {
19865
+ value: string;
19866
+ source: "literal";
19867
+ }, {
19868
+ value: string;
19869
+ source: "literal";
19870
+ }>]>;
19871
+ }, "strip", zod.ZodTypeAny, {
19872
+ property: string;
19873
+ equals: {
19874
+ source: "environment";
19875
+ } | {
19876
+ name: string;
19877
+ source: "entityProperty";
19878
+ } | {
19879
+ value: string;
19880
+ source: "literal";
19881
+ };
19882
+ }, {
19883
+ property: string;
19884
+ equals: {
19885
+ source: "environment";
19886
+ } | {
19887
+ name: string;
19888
+ source: "entityProperty";
19889
+ } | {
19890
+ value: string;
19891
+ source: "literal";
19892
+ };
19893
+ }>, "many">>;
19894
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
19895
+ }, "strip", zod.ZodTypeAny, {
19896
+ set: string;
19897
+ policy: "least-loaded" | "round-robin" | "random";
19898
+ match?: {
19899
+ property: string;
19900
+ equals: {
19901
+ source: "environment";
19902
+ } | {
19903
+ name: string;
19904
+ source: "entityProperty";
19905
+ } | {
19906
+ value: string;
19907
+ source: "literal";
19908
+ };
19909
+ }[] | undefined;
19910
+ }, {
19911
+ set: string;
19912
+ match?: {
19913
+ property: string;
19914
+ equals: {
19915
+ source: "environment";
19916
+ } | {
19917
+ name: string;
19918
+ source: "entityProperty";
19919
+ } | {
19920
+ value: string;
19921
+ source: "literal";
19922
+ };
19923
+ }[] | undefined;
19924
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
19925
+ }>;
19926
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
19927
+ set: zod.ZodString;
19928
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
19929
+ property: zod.ZodString;
19930
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
19931
+ source: zod.ZodLiteral<"environment">;
19932
+ }, "strip", zod.ZodTypeAny, {
19933
+ source: "environment";
19934
+ }, {
19935
+ source: "environment";
19936
+ }>, zod.ZodObject<{
19937
+ source: zod.ZodLiteral<"entityProperty">;
19938
+ name: zod.ZodString;
19939
+ }, "strip", zod.ZodTypeAny, {
19940
+ name: string;
19941
+ source: "entityProperty";
19942
+ }, {
19943
+ name: string;
19944
+ source: "entityProperty";
19945
+ }>, zod.ZodObject<{
19946
+ source: zod.ZodLiteral<"literal">;
19947
+ value: zod.ZodString;
19948
+ }, "strip", zod.ZodTypeAny, {
19949
+ value: string;
19950
+ source: "literal";
19951
+ }, {
19952
+ value: string;
19953
+ source: "literal";
19954
+ }>]>;
19955
+ }, "strip", zod.ZodTypeAny, {
19956
+ property: string;
19957
+ equals: {
19958
+ source: "environment";
19959
+ } | {
19960
+ name: string;
19961
+ source: "entityProperty";
19962
+ } | {
19963
+ value: string;
19964
+ source: "literal";
19965
+ };
19966
+ }, {
19967
+ property: string;
19968
+ equals: {
19969
+ source: "environment";
19970
+ } | {
19971
+ name: string;
19972
+ source: "entityProperty";
19973
+ } | {
19974
+ value: string;
19975
+ source: "literal";
19976
+ };
19977
+ }>, "many">>;
19978
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
19979
+ }, "strip", zod.ZodTypeAny, {
19980
+ set: string;
19981
+ policy: "least-loaded" | "round-robin" | "random";
19982
+ match?: {
19983
+ property: string;
19984
+ equals: {
19985
+ source: "environment";
19986
+ } | {
19987
+ name: string;
19988
+ source: "entityProperty";
19989
+ } | {
19990
+ value: string;
19991
+ source: "literal";
19992
+ };
19993
+ }[] | undefined;
18249
19994
  }, {
18250
- property: string;
18251
- value?: string | undefined;
18252
- }>;
19995
+ set: string;
19996
+ match?: {
19997
+ property: string;
19998
+ equals: {
19999
+ source: "environment";
20000
+ } | {
20001
+ name: string;
20002
+ source: "entityProperty";
20003
+ } | {
20004
+ value: string;
20005
+ source: "literal";
20006
+ };
20007
+ }[] | undefined;
20008
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20009
+ }>>>;
18253
20010
  }, "strip", zod.ZodTypeAny, {
18254
- derivedFrom: {
18255
- property: string;
18256
- value?: string | undefined;
20011
+ primary: {
20012
+ set: string;
20013
+ policy: "least-loaded" | "round-robin" | "random";
20014
+ match?: {
20015
+ property: string;
20016
+ equals: {
20017
+ source: "environment";
20018
+ } | {
20019
+ name: string;
20020
+ source: "entityProperty";
20021
+ } | {
20022
+ value: string;
20023
+ source: "literal";
20024
+ };
20025
+ }[] | undefined;
18257
20026
  };
20027
+ roles?: Record<string, {
20028
+ set: string;
20029
+ policy: "least-loaded" | "round-robin" | "random";
20030
+ match?: {
20031
+ property: string;
20032
+ equals: {
20033
+ source: "environment";
20034
+ } | {
20035
+ name: string;
20036
+ source: "entityProperty";
20037
+ } | {
20038
+ value: string;
20039
+ source: "literal";
20040
+ };
20041
+ }[] | undefined;
20042
+ }> | undefined;
18258
20043
  }, {
18259
- derivedFrom: {
18260
- property: string;
18261
- value?: string | undefined;
20044
+ primary: {
20045
+ set: string;
20046
+ match?: {
20047
+ property: string;
20048
+ equals: {
20049
+ source: "environment";
20050
+ } | {
20051
+ name: string;
20052
+ source: "entityProperty";
20053
+ } | {
20054
+ value: string;
20055
+ source: "literal";
20056
+ };
20057
+ }[] | undefined;
20058
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
18262
20059
  };
20060
+ roles?: Record<string, {
20061
+ set: string;
20062
+ match?: {
20063
+ property: string;
20064
+ equals: {
20065
+ source: "environment";
20066
+ } | {
20067
+ name: string;
20068
+ source: "entityProperty";
20069
+ } | {
20070
+ value: string;
20071
+ source: "literal";
20072
+ };
20073
+ }[] | undefined;
20074
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20075
+ }> | undefined;
18263
20076
  }>>;
18264
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
18265
20077
  } & {
18266
20078
  orgId: zod.ZodString;
18267
20079
  projectId: zod.ZodString;
@@ -18275,11 +20087,44 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18275
20087
  metric: string;
18276
20088
  aggregate: "max" | "sum" | "avg" | "min";
18277
20089
  }[];
20090
+ kind: "Cell";
18278
20091
  placementPolicy: "least-loaded" | "round-robin" | "random";
18279
20092
  parentCells: string[];
18280
- kind: "Cell";
18281
20093
  displayName?: string | undefined;
18282
- deploymentTarget?: string | undefined;
20094
+ targetSelector?: {
20095
+ primary: {
20096
+ set: string;
20097
+ policy: "least-loaded" | "round-robin" | "random";
20098
+ match?: {
20099
+ property: string;
20100
+ equals: {
20101
+ source: "environment";
20102
+ } | {
20103
+ name: string;
20104
+ source: "entityProperty";
20105
+ } | {
20106
+ value: string;
20107
+ source: "literal";
20108
+ };
20109
+ }[] | undefined;
20110
+ };
20111
+ roles?: Record<string, {
20112
+ set: string;
20113
+ policy: "least-loaded" | "round-robin" | "random";
20114
+ match?: {
20115
+ property: string;
20116
+ equals: {
20117
+ source: "environment";
20118
+ } | {
20119
+ name: string;
20120
+ source: "entityProperty";
20121
+ } | {
20122
+ value: string;
20123
+ source: "literal";
20124
+ };
20125
+ }[] | undefined;
20126
+ }> | undefined;
20127
+ } | undefined;
18283
20128
  membership?: {
18284
20129
  derivedFrom: {
18285
20130
  property: string;
@@ -18300,7 +20145,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18300
20145
  }[] | undefined;
18301
20146
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
18302
20147
  parentCells?: string[] | undefined;
18303
- deploymentTarget?: string | undefined;
20148
+ targetSelector?: {
20149
+ primary: {
20150
+ set: string;
20151
+ match?: {
20152
+ property: string;
20153
+ equals: {
20154
+ source: "environment";
20155
+ } | {
20156
+ name: string;
20157
+ source: "entityProperty";
20158
+ } | {
20159
+ value: string;
20160
+ source: "literal";
20161
+ };
20162
+ }[] | undefined;
20163
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20164
+ };
20165
+ roles?: Record<string, {
20166
+ set: string;
20167
+ match?: {
20168
+ property: string;
20169
+ equals: {
20170
+ source: "environment";
20171
+ } | {
20172
+ name: string;
20173
+ source: "entityProperty";
20174
+ } | {
20175
+ value: string;
20176
+ source: "literal";
20177
+ };
20178
+ }[] | undefined;
20179
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20180
+ }> | undefined;
20181
+ } | undefined;
18304
20182
  membership?: {
18305
20183
  derivedFrom: {
18306
20184
  property: string;
@@ -18327,7 +20205,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18327
20205
  property: string;
18328
20206
  value?: string | undefined;
18329
20207
  } | null;
18330
- deploymentTarget: string | null;
20208
+ targetSelector: {
20209
+ primary: {
20210
+ set: string;
20211
+ policy: "least-loaded" | "round-robin" | "random";
20212
+ match?: {
20213
+ property: string;
20214
+ equals: {
20215
+ source: "environment";
20216
+ } | {
20217
+ name: string;
20218
+ source: "entityProperty";
20219
+ } | {
20220
+ value: string;
20221
+ source: "literal";
20222
+ };
20223
+ }[] | undefined;
20224
+ };
20225
+ roles?: {
20226
+ [x: string]: {
20227
+ set: string;
20228
+ policy: "least-loaded" | "round-robin" | "random";
20229
+ match?: {
20230
+ property: string;
20231
+ equals: {
20232
+ source: "environment";
20233
+ } | {
20234
+ name: string;
20235
+ source: "entityProperty";
20236
+ } | {
20237
+ value: string;
20238
+ source: "literal";
20239
+ };
20240
+ }[] | undefined;
20241
+ };
20242
+ } | undefined;
20243
+ } | null;
18331
20244
  }>;
18332
20245
  update: SchemaFn<zod.ZodObject<{
18333
20246
  kind: zod.ZodLiteral<"Cell">;
@@ -18371,7 +20284,242 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18371
20284
  value?: string | undefined;
18372
20285
  };
18373
20286
  }>>;
18374
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
20287
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
20288
+ primary: zod.ZodObject<{
20289
+ set: zod.ZodString;
20290
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
20291
+ property: zod.ZodString;
20292
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
20293
+ source: zod.ZodLiteral<"environment">;
20294
+ }, "strip", zod.ZodTypeAny, {
20295
+ source: "environment";
20296
+ }, {
20297
+ source: "environment";
20298
+ }>, zod.ZodObject<{
20299
+ source: zod.ZodLiteral<"entityProperty">;
20300
+ name: zod.ZodString;
20301
+ }, "strip", zod.ZodTypeAny, {
20302
+ name: string;
20303
+ source: "entityProperty";
20304
+ }, {
20305
+ name: string;
20306
+ source: "entityProperty";
20307
+ }>, zod.ZodObject<{
20308
+ source: zod.ZodLiteral<"literal">;
20309
+ value: zod.ZodString;
20310
+ }, "strip", zod.ZodTypeAny, {
20311
+ value: string;
20312
+ source: "literal";
20313
+ }, {
20314
+ value: string;
20315
+ source: "literal";
20316
+ }>]>;
20317
+ }, "strip", zod.ZodTypeAny, {
20318
+ property: string;
20319
+ equals: {
20320
+ source: "environment";
20321
+ } | {
20322
+ name: string;
20323
+ source: "entityProperty";
20324
+ } | {
20325
+ value: string;
20326
+ source: "literal";
20327
+ };
20328
+ }, {
20329
+ property: string;
20330
+ equals: {
20331
+ source: "environment";
20332
+ } | {
20333
+ name: string;
20334
+ source: "entityProperty";
20335
+ } | {
20336
+ value: string;
20337
+ source: "literal";
20338
+ };
20339
+ }>, "many">>;
20340
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
20341
+ }, "strip", zod.ZodTypeAny, {
20342
+ set: string;
20343
+ policy: "least-loaded" | "round-robin" | "random";
20344
+ match?: {
20345
+ property: string;
20346
+ equals: {
20347
+ source: "environment";
20348
+ } | {
20349
+ name: string;
20350
+ source: "entityProperty";
20351
+ } | {
20352
+ value: string;
20353
+ source: "literal";
20354
+ };
20355
+ }[] | undefined;
20356
+ }, {
20357
+ set: string;
20358
+ match?: {
20359
+ property: string;
20360
+ equals: {
20361
+ source: "environment";
20362
+ } | {
20363
+ name: string;
20364
+ source: "entityProperty";
20365
+ } | {
20366
+ value: string;
20367
+ source: "literal";
20368
+ };
20369
+ }[] | undefined;
20370
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20371
+ }>;
20372
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
20373
+ set: zod.ZodString;
20374
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
20375
+ property: zod.ZodString;
20376
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
20377
+ source: zod.ZodLiteral<"environment">;
20378
+ }, "strip", zod.ZodTypeAny, {
20379
+ source: "environment";
20380
+ }, {
20381
+ source: "environment";
20382
+ }>, zod.ZodObject<{
20383
+ source: zod.ZodLiteral<"entityProperty">;
20384
+ name: zod.ZodString;
20385
+ }, "strip", zod.ZodTypeAny, {
20386
+ name: string;
20387
+ source: "entityProperty";
20388
+ }, {
20389
+ name: string;
20390
+ source: "entityProperty";
20391
+ }>, zod.ZodObject<{
20392
+ source: zod.ZodLiteral<"literal">;
20393
+ value: zod.ZodString;
20394
+ }, "strip", zod.ZodTypeAny, {
20395
+ value: string;
20396
+ source: "literal";
20397
+ }, {
20398
+ value: string;
20399
+ source: "literal";
20400
+ }>]>;
20401
+ }, "strip", zod.ZodTypeAny, {
20402
+ property: string;
20403
+ equals: {
20404
+ source: "environment";
20405
+ } | {
20406
+ name: string;
20407
+ source: "entityProperty";
20408
+ } | {
20409
+ value: string;
20410
+ source: "literal";
20411
+ };
20412
+ }, {
20413
+ property: string;
20414
+ equals: {
20415
+ source: "environment";
20416
+ } | {
20417
+ name: string;
20418
+ source: "entityProperty";
20419
+ } | {
20420
+ value: string;
20421
+ source: "literal";
20422
+ };
20423
+ }>, "many">>;
20424
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
20425
+ }, "strip", zod.ZodTypeAny, {
20426
+ set: string;
20427
+ policy: "least-loaded" | "round-robin" | "random";
20428
+ match?: {
20429
+ property: string;
20430
+ equals: {
20431
+ source: "environment";
20432
+ } | {
20433
+ name: string;
20434
+ source: "entityProperty";
20435
+ } | {
20436
+ value: string;
20437
+ source: "literal";
20438
+ };
20439
+ }[] | undefined;
20440
+ }, {
20441
+ set: string;
20442
+ match?: {
20443
+ property: string;
20444
+ equals: {
20445
+ source: "environment";
20446
+ } | {
20447
+ name: string;
20448
+ source: "entityProperty";
20449
+ } | {
20450
+ value: string;
20451
+ source: "literal";
20452
+ };
20453
+ }[] | undefined;
20454
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20455
+ }>>>;
20456
+ }, "strip", zod.ZodTypeAny, {
20457
+ primary: {
20458
+ set: string;
20459
+ policy: "least-loaded" | "round-robin" | "random";
20460
+ match?: {
20461
+ property: string;
20462
+ equals: {
20463
+ source: "environment";
20464
+ } | {
20465
+ name: string;
20466
+ source: "entityProperty";
20467
+ } | {
20468
+ value: string;
20469
+ source: "literal";
20470
+ };
20471
+ }[] | undefined;
20472
+ };
20473
+ roles?: Record<string, {
20474
+ set: string;
20475
+ policy: "least-loaded" | "round-robin" | "random";
20476
+ match?: {
20477
+ property: string;
20478
+ equals: {
20479
+ source: "environment";
20480
+ } | {
20481
+ name: string;
20482
+ source: "entityProperty";
20483
+ } | {
20484
+ value: string;
20485
+ source: "literal";
20486
+ };
20487
+ }[] | undefined;
20488
+ }> | undefined;
20489
+ }, {
20490
+ primary: {
20491
+ set: string;
20492
+ match?: {
20493
+ property: string;
20494
+ equals: {
20495
+ source: "environment";
20496
+ } | {
20497
+ name: string;
20498
+ source: "entityProperty";
20499
+ } | {
20500
+ value: string;
20501
+ source: "literal";
20502
+ };
20503
+ }[] | undefined;
20504
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20505
+ };
20506
+ roles?: Record<string, {
20507
+ set: string;
20508
+ match?: {
20509
+ property: string;
20510
+ equals: {
20511
+ source: "environment";
20512
+ } | {
20513
+ name: string;
20514
+ source: "entityProperty";
20515
+ } | {
20516
+ value: string;
20517
+ source: "literal";
20518
+ };
20519
+ }[] | undefined;
20520
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20521
+ }> | undefined;
20522
+ }>>;
18375
20523
  } & {
18376
20524
  orgId: zod.ZodString;
18377
20525
  projectId: zod.ZodString;
@@ -18385,11 +20533,44 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18385
20533
  metric: string;
18386
20534
  aggregate: "max" | "sum" | "avg" | "min";
18387
20535
  }[];
20536
+ kind: "Cell";
18388
20537
  placementPolicy: "least-loaded" | "round-robin" | "random";
18389
20538
  parentCells: string[];
18390
- kind: "Cell";
18391
20539
  displayName?: string | undefined;
18392
- deploymentTarget?: string | undefined;
20540
+ targetSelector?: {
20541
+ primary: {
20542
+ set: string;
20543
+ policy: "least-loaded" | "round-robin" | "random";
20544
+ match?: {
20545
+ property: string;
20546
+ equals: {
20547
+ source: "environment";
20548
+ } | {
20549
+ name: string;
20550
+ source: "entityProperty";
20551
+ } | {
20552
+ value: string;
20553
+ source: "literal";
20554
+ };
20555
+ }[] | undefined;
20556
+ };
20557
+ roles?: Record<string, {
20558
+ set: string;
20559
+ policy: "least-loaded" | "round-robin" | "random";
20560
+ match?: {
20561
+ property: string;
20562
+ equals: {
20563
+ source: "environment";
20564
+ } | {
20565
+ name: string;
20566
+ source: "entityProperty";
20567
+ } | {
20568
+ value: string;
20569
+ source: "literal";
20570
+ };
20571
+ }[] | undefined;
20572
+ }> | undefined;
20573
+ } | undefined;
18393
20574
  membership?: {
18394
20575
  derivedFrom: {
18395
20576
  property: string;
@@ -18410,7 +20591,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18410
20591
  }[] | undefined;
18411
20592
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
18412
20593
  parentCells?: string[] | undefined;
18413
- deploymentTarget?: string | undefined;
20594
+ targetSelector?: {
20595
+ primary: {
20596
+ set: string;
20597
+ match?: {
20598
+ property: string;
20599
+ equals: {
20600
+ source: "environment";
20601
+ } | {
20602
+ name: string;
20603
+ source: "entityProperty";
20604
+ } | {
20605
+ value: string;
20606
+ source: "literal";
20607
+ };
20608
+ }[] | undefined;
20609
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20610
+ };
20611
+ roles?: Record<string, {
20612
+ set: string;
20613
+ match?: {
20614
+ property: string;
20615
+ equals: {
20616
+ source: "environment";
20617
+ } | {
20618
+ name: string;
20619
+ source: "entityProperty";
20620
+ } | {
20621
+ value: string;
20622
+ source: "literal";
20623
+ };
20624
+ }[] | undefined;
20625
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20626
+ }> | undefined;
20627
+ } | undefined;
18414
20628
  membership?: {
18415
20629
  derivedFrom: {
18416
20630
  property: string;
@@ -18435,7 +20649,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18435
20649
  property: string;
18436
20650
  value?: string | undefined;
18437
20651
  } | null;
18438
- deploymentTarget: string | null;
20652
+ targetSelector: {
20653
+ primary: {
20654
+ set: string;
20655
+ policy: "least-loaded" | "round-robin" | "random";
20656
+ match?: {
20657
+ property: string;
20658
+ equals: {
20659
+ source: "environment";
20660
+ } | {
20661
+ name: string;
20662
+ source: "entityProperty";
20663
+ } | {
20664
+ value: string;
20665
+ source: "literal";
20666
+ };
20667
+ }[] | undefined;
20668
+ };
20669
+ roles?: {
20670
+ [x: string]: {
20671
+ set: string;
20672
+ policy: "least-loaded" | "round-robin" | "random";
20673
+ match?: {
20674
+ property: string;
20675
+ equals: {
20676
+ source: "environment";
20677
+ } | {
20678
+ name: string;
20679
+ source: "entityProperty";
20680
+ } | {
20681
+ value: string;
20682
+ source: "literal";
20683
+ };
20684
+ }[] | undefined;
20685
+ };
20686
+ } | undefined;
20687
+ } | null;
18439
20688
  createdAt: string;
18440
20689
  updatedAt: string;
18441
20690
  }>;