@terrantula/sdk 0.11.1 → 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';
@@ -1642,11 +1642,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1642
1642
  projectId: string;
1643
1643
  name: string;
1644
1644
  displayName: string | null;
1645
- provider: string;
1645
+ provider: string | null;
1646
1646
  config: {
1647
1647
  [x: string]: hono_utils_types.JSONValue;
1648
1648
  };
1649
1649
  credentialRef: string | null;
1650
+ set: string | null;
1651
+ properties: {
1652
+ [x: string]: string;
1653
+ };
1654
+ capacity: number | null;
1650
1655
  createdAt: string;
1651
1656
  updatedAt: string;
1652
1657
  }[]>;
@@ -1667,11 +1672,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1667
1672
  projectId: string;
1668
1673
  name: string;
1669
1674
  displayName: string | null;
1670
- provider: string;
1675
+ provider: string | null;
1671
1676
  config: {
1672
1677
  [x: string]: hono_utils_types.JSONValue;
1673
1678
  };
1674
1679
  credentialRef: string | null;
1680
+ set: string | null;
1681
+ properties: {
1682
+ [x: string]: string;
1683
+ };
1684
+ capacity: number | null;
1675
1685
  createdAt: string;
1676
1686
  updatedAt: string;
1677
1687
  }>;
@@ -1679,8 +1689,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1679
1689
  kind: zod.ZodLiteral<"DeploymentTarget">;
1680
1690
  name: zod.ZodString;
1681
1691
  displayName: zod.ZodOptional<zod.ZodString>;
1682
- 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"]>>;
1683
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>;
1684
1697
  credentialRef: zod.ZodOptional<zod.ZodString>;
1685
1698
  } & {
1686
1699
  orgId: zod.ZodString;
@@ -1689,39 +1702,53 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1689
1702
  name: string;
1690
1703
  orgId: string;
1691
1704
  projectId: string;
1692
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1705
+ properties: Record<string, string>;
1693
1706
  kind: "DeploymentTarget";
1694
1707
  config: Record<string, unknown>;
1708
+ set?: string | undefined;
1709
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1695
1710
  displayName?: string | undefined;
1696
1711
  credentialRef?: string | undefined;
1712
+ capacity?: number | undefined;
1697
1713
  }, {
1698
1714
  name: string;
1699
1715
  orgId: string;
1700
1716
  projectId: string;
1701
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1702
1717
  kind: "DeploymentTarget";
1718
+ set?: string | undefined;
1719
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1703
1720
  displayName?: string | undefined;
1721
+ properties?: Record<string, string> | undefined;
1704
1722
  config?: Record<string, unknown> | undefined;
1705
1723
  credentialRef?: string | undefined;
1724
+ capacity?: number | undefined;
1706
1725
  }>, {
1707
1726
  name: string;
1708
1727
  createdAt: string;
1728
+ set: string | null;
1709
1729
  updatedAt: string;
1710
1730
  orgId: string;
1711
1731
  projectId: string;
1712
- provider: string;
1732
+ provider: string | null;
1713
1733
  displayName: string | null;
1734
+ properties: {
1735
+ [x: string]: string;
1736
+ };
1714
1737
  config: {
1715
1738
  [x: string]: hono_utils_types.JSONValue;
1716
1739
  };
1717
1740
  credentialRef: string | null;
1741
+ capacity: number | null;
1718
1742
  }>;
1719
1743
  update: SchemaFn<zod.ZodObject<{
1720
1744
  kind: zod.ZodLiteral<"DeploymentTarget">;
1721
1745
  name: zod.ZodString;
1722
1746
  displayName: zod.ZodOptional<zod.ZodString>;
1723
- 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"]>>;
1724
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>;
1725
1752
  credentialRef: zod.ZodOptional<zod.ZodString>;
1726
1753
  } & {
1727
1754
  orgId: zod.ZodString;
@@ -1730,32 +1757,149 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1730
1757
  name: string;
1731
1758
  orgId: string;
1732
1759
  projectId: string;
1733
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1760
+ properties: Record<string, string>;
1734
1761
  kind: "DeploymentTarget";
1735
1762
  config: Record<string, unknown>;
1763
+ set?: string | undefined;
1764
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1736
1765
  displayName?: string | undefined;
1737
1766
  credentialRef?: string | undefined;
1767
+ capacity?: number | undefined;
1738
1768
  }, {
1739
1769
  name: string;
1740
1770
  orgId: string;
1741
1771
  projectId: string;
1742
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
1743
1772
  kind: "DeploymentTarget";
1773
+ set?: string | undefined;
1774
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
1744
1775
  displayName?: string | undefined;
1776
+ properties?: Record<string, string> | undefined;
1745
1777
  config?: Record<string, unknown> | undefined;
1746
1778
  credentialRef?: string | undefined;
1779
+ capacity?: number | undefined;
1747
1780
  }>, {
1748
1781
  orgId: string;
1749
1782
  projectId: string;
1750
1783
  name: string;
1751
1784
  displayName: string | null;
1752
- provider: string;
1785
+ provider: string | null;
1753
1786
  config: {
1754
1787
  [x: string]: hono_utils_types.JSONValue;
1755
1788
  };
1756
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;
1757
1893
  createdAt: string;
1758
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;
1759
1903
  }>;
1760
1904
  delete: SchemaFn<zod.ZodObject<{
1761
1905
  orgId: zod.ZodString;
@@ -2160,7 +2304,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2160
2304
  property: string;
2161
2305
  value?: string | undefined;
2162
2306
  } | null;
2163
- 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;
2164
2343
  createdAt: string;
2165
2344
  updatedAt: string;
2166
2345
  }[]>;
@@ -2194,7 +2373,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2194
2373
  property: string;
2195
2374
  value?: string | undefined;
2196
2375
  } | null;
2197
- 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;
2198
2412
  createdAt: string;
2199
2413
  updatedAt: string;
2200
2414
  }>;
@@ -2240,7 +2454,242 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2240
2454
  value?: string | undefined;
2241
2455
  };
2242
2456
  }>>;
2243
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
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
+ }>>;
2244
2693
  } & {
2245
2694
  orgId: zod.ZodString;
2246
2695
  projectId: zod.ZodString;
@@ -2258,15 +2707,48 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2258
2707
  placementPolicy: "least-loaded" | "round-robin" | "random";
2259
2708
  parentCells: string[];
2260
2709
  displayName?: string | undefined;
2261
- deploymentTarget?: string | undefined;
2262
- membership?: {
2263
- derivedFrom: {
2264
- property: string;
2265
- value?: 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;
2266
2726
  };
2267
- } | undefined;
2268
- }, {
2269
- name: string;
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;
2270
2752
  orgId: string;
2271
2753
  projectId: string;
2272
2754
  entityType: string;
@@ -2279,7 +2761,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2279
2761
  }[] | undefined;
2280
2762
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
2281
2763
  parentCells?: string[] | undefined;
2282
- deploymentTarget?: 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;
2283
2798
  membership?: {
2284
2799
  derivedFrom: {
2285
2800
  property: string;
@@ -2306,7 +2821,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2306
2821
  property: string;
2307
2822
  value?: string | undefined;
2308
2823
  } | null;
2309
- deploymentTarget: string | 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;
2310
2860
  }>;
2311
2861
  update: SchemaFn<zod.ZodObject<{
2312
2862
  kind: zod.ZodLiteral<"Cell">;
@@ -2350,7 +2900,242 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2350
2900
  value?: string | undefined;
2351
2901
  };
2352
2902
  }>>;
2353
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
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;
3056
+ }, {
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
+ }>>>;
3072
+ }, "strip", zod.ZodTypeAny, {
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;
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;
3105
+ }, {
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;
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;
3138
+ }>>;
2354
3139
  } & {
2355
3140
  orgId: zod.ZodString;
2356
3141
  projectId: zod.ZodString;
@@ -2368,7 +3153,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2368
3153
  placementPolicy: "least-loaded" | "round-robin" | "random";
2369
3154
  parentCells: string[];
2370
3155
  displayName?: string | undefined;
2371
- 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;
2372
3190
  membership?: {
2373
3191
  derivedFrom: {
2374
3192
  property: string;
@@ -2389,7 +3207,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2389
3207
  }[] | undefined;
2390
3208
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
2391
3209
  parentCells?: string[] | undefined;
2392
- 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;
2393
3244
  membership?: {
2394
3245
  derivedFrom: {
2395
3246
  property: string;
@@ -2414,7 +3265,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2414
3265
  property: string;
2415
3266
  value?: string | undefined;
2416
3267
  } | null;
2417
- 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;
2418
3304
  createdAt: string;
2419
3305
  updatedAt: string;
2420
3306
  }>;
@@ -12334,78 +13220,379 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12334
13220
  value?: string | undefined;
12335
13221
  };
12336
13222
  }>>;
12337
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
12338
- }, "strip", zod.ZodTypeAny, {
12339
- name: string;
12340
- entityType: string;
12341
- constraints: {
12342
- max: number;
12343
- metric: string;
12344
- aggregate: "max" | "sum" | "avg" | "min";
12345
- }[];
12346
- kind: "Cell";
12347
- placementPolicy: "least-loaded" | "round-robin" | "random";
12348
- parentCells: string[];
12349
- displayName?: string | undefined;
12350
- deploymentTarget?: string | undefined;
12351
- membership?: {
12352
- derivedFrom: {
12353
- property: string;
12354
- value?: string | undefined;
12355
- };
12356
- } | undefined;
12357
- }, {
12358
- name: string;
12359
- entityType: string;
12360
- kind: "Cell";
12361
- displayName?: string | undefined;
12362
- constraints?: {
12363
- max: number;
12364
- metric: string;
12365
- aggregate: "max" | "sum" | "avg" | "min";
12366
- }[] | undefined;
12367
- placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
12368
- parentCells?: string[] | undefined;
12369
- deploymentTarget?: string | undefined;
12370
- membership?: {
12371
- derivedFrom: {
12372
- property: string;
12373
- value?: string | undefined;
12374
- };
12375
- } | undefined;
12376
- }>, zod.ZodObject<{
12377
- kind: zod.ZodLiteral<"RelationshipType">;
12378
- name: zod.ZodString;
12379
- displayName: zod.ZodOptional<zod.ZodString>;
12380
- from: zod.ZodString;
12381
- to: zod.ZodString;
12382
- cardinality: zod.ZodDefault<zod.ZodEnum<["one-to-one", "one-to-many", "many-to-one", "many-to-many"]>>;
12383
- states: zod.ZodArray<zod.ZodString, "many">;
12384
- properties: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
12385
- name: zod.ZodString;
12386
- type: zod.ZodEnum<["string", "integer", "number", "boolean"]>;
12387
- title: zod.ZodOptional<zod.ZodString>;
12388
- description: zod.ZodOptional<zod.ZodString>;
12389
- required: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
12390
- default: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>>;
12391
- enum: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
12392
- }, "strip", zod.ZodTypeAny, {
12393
- name: string;
12394
- type: "string" | "number" | "boolean" | "integer";
12395
- required: boolean;
12396
- description?: string | undefined;
12397
- default?: string | number | boolean | undefined;
12398
- title?: string | undefined;
12399
- enum?: string[] | undefined;
12400
- }, {
12401
- name: string;
12402
- type: "string" | "number" | "boolean" | "integer";
12403
- description?: string | undefined;
12404
- default?: string | number | boolean | undefined;
12405
- required?: boolean | undefined;
12406
- title?: string | undefined;
12407
- enum?: string[] | undefined;
12408
- }>, "many">>>;
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;
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;
13425
+ }, {
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;
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;
13458
+ }>>;
13459
+ }, "strip", zod.ZodTypeAny, {
13460
+ name: string;
13461
+ entityType: string;
13462
+ constraints: {
13463
+ max: number;
13464
+ metric: string;
13465
+ aggregate: "max" | "sum" | "avg" | "min";
13466
+ }[];
13467
+ kind: "Cell";
13468
+ placementPolicy: "least-loaded" | "round-robin" | "random";
13469
+ parentCells: string[];
13470
+ displayName?: 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;
13505
+ membership?: {
13506
+ derivedFrom: {
13507
+ property: string;
13508
+ value?: string | undefined;
13509
+ };
13510
+ } | undefined;
13511
+ }, {
13512
+ name: string;
13513
+ entityType: string;
13514
+ kind: "Cell";
13515
+ displayName?: string | undefined;
13516
+ constraints?: {
13517
+ max: number;
13518
+ metric: string;
13519
+ aggregate: "max" | "sum" | "avg" | "min";
13520
+ }[] | undefined;
13521
+ placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
13522
+ parentCells?: 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;
13557
+ membership?: {
13558
+ derivedFrom: {
13559
+ property: string;
13560
+ value?: string | undefined;
13561
+ };
13562
+ } | undefined;
13563
+ }>, zod.ZodObject<{
13564
+ kind: zod.ZodLiteral<"RelationshipType">;
13565
+ name: zod.ZodString;
13566
+ displayName: zod.ZodOptional<zod.ZodString>;
13567
+ from: zod.ZodString;
13568
+ to: zod.ZodString;
13569
+ cardinality: zod.ZodDefault<zod.ZodEnum<["one-to-one", "one-to-many", "many-to-one", "many-to-many"]>>;
13570
+ states: zod.ZodArray<zod.ZodString, "many">;
13571
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
13572
+ name: zod.ZodString;
13573
+ type: zod.ZodEnum<["string", "integer", "number", "boolean"]>;
13574
+ title: zod.ZodOptional<zod.ZodString>;
13575
+ description: zod.ZodOptional<zod.ZodString>;
13576
+ required: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
13577
+ default: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>>;
13578
+ enum: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
13579
+ }, "strip", zod.ZodTypeAny, {
13580
+ name: string;
13581
+ type: "string" | "number" | "boolean" | "integer";
13582
+ required: boolean;
13583
+ description?: string | undefined;
13584
+ default?: string | number | boolean | undefined;
13585
+ title?: string | undefined;
13586
+ enum?: string[] | undefined;
13587
+ }, {
13588
+ name: string;
13589
+ type: "string" | "number" | "boolean" | "integer";
13590
+ description?: string | undefined;
13591
+ default?: string | number | boolean | undefined;
13592
+ required?: boolean | undefined;
13593
+ title?: string | undefined;
13594
+ enum?: string[] | undefined;
13595
+ }>, "many">>>;
12409
13596
  containment: zod.ZodOptional<zod.ZodBoolean>;
12410
13597
  constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
12411
13598
  type: zod.ZodLiteral<"property-sum">;
@@ -15883,34 +17070,64 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15883
17070
  kind: zod.ZodLiteral<"DeploymentTarget">;
15884
17071
  name: zod.ZodString;
15885
17072
  displayName: zod.ZodOptional<zod.ZodString>;
15886
- 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"]>>;
15887
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>;
15888
17078
  credentialRef: zod.ZodOptional<zod.ZodString>;
15889
17079
  }, "strip", zod.ZodTypeAny, {
15890
17080
  name: string;
15891
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17081
+ properties: Record<string, string>;
15892
17082
  kind: "DeploymentTarget";
15893
17083
  config: Record<string, unknown>;
17084
+ set?: string | undefined;
17085
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
15894
17086
  displayName?: string | undefined;
15895
17087
  credentialRef?: string | undefined;
17088
+ capacity?: number | undefined;
15896
17089
  }, {
15897
17090
  name: string;
15898
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
15899
17091
  kind: "DeploymentTarget";
17092
+ set?: string | undefined;
17093
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
15900
17094
  displayName?: string | undefined;
17095
+ properties?: Record<string, string> | undefined;
15901
17096
  config?: Record<string, unknown> | undefined;
15902
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;
15903
17120
  }>]>, "many">;
15904
17121
  force: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
15905
17122
  deletions: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
15906
- kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget"]>;
17123
+ kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget", "DeploymentTargetSet"]>;
15907
17124
  name: zod.ZodString;
15908
17125
  }, "strip", zod.ZodTypeAny, {
15909
17126
  name: string;
15910
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
17127
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
15911
17128
  }, {
15912
17129
  name: string;
15913
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
17130
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
15914
17131
  }>, "many">>>;
15915
17132
  dryRun: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
15916
17133
  } & {
@@ -16423,7 +17640,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16423
17640
  placementPolicy: "least-loaded" | "round-robin" | "random";
16424
17641
  parentCells: string[];
16425
17642
  displayName?: string | undefined;
16426
- 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;
16427
17677
  membership?: {
16428
17678
  derivedFrom: {
16429
17679
  property: string;
@@ -16479,15 +17729,25 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16479
17729
  state?: string | undefined;
16480
17730
  } | {
16481
17731
  name: string;
16482
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17732
+ properties: Record<string, string>;
16483
17733
  kind: "DeploymentTarget";
16484
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";
16485
17745
  displayName?: string | undefined;
16486
17746
  credentialRef?: string | undefined;
16487
17747
  })[];
16488
17748
  deletions: {
16489
17749
  name: string;
16490
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
17750
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
16491
17751
  }[];
16492
17752
  force: boolean;
16493
17753
  dryRun: boolean;
@@ -16997,7 +18257,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16997
18257
  }[] | undefined;
16998
18258
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
16999
18259
  parentCells?: string[] | undefined;
17000
- 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;
17001
18294
  membership?: {
17002
18295
  derivedFrom: {
17003
18296
  property: string;
@@ -17053,15 +18346,25 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
17053
18346
  labels?: Record<string, string> | undefined;
17054
18347
  } | {
17055
18348
  name: string;
17056
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
17057
18349
  kind: "DeploymentTarget";
18350
+ set?: string | undefined;
18351
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
17058
18352
  displayName?: string | undefined;
18353
+ properties?: Record<string, string> | undefined;
17059
18354
  config?: Record<string, unknown> | undefined;
17060
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;
17061
18364
  })[];
17062
18365
  deletions?: {
17063
18366
  name: string;
17064
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
18367
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
17065
18368
  }[] | undefined;
17066
18369
  force?: boolean | undefined;
17067
18370
  dryRun?: boolean | undefined;
@@ -18385,7 +19688,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18385
19688
  property: string;
18386
19689
  value?: string | undefined;
18387
19690
  } | null;
18388
- 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;
18389
19727
  createdAt: string;
18390
19728
  updatedAt: string;
18391
19729
  }[]>;
@@ -18419,7 +19757,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18419
19757
  property: string;
18420
19758
  value?: string | undefined;
18421
19759
  } | null;
18422
- 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;
18423
19796
  createdAt: string;
18424
19797
  updatedAt: string;
18425
19798
  }>;
@@ -18465,7 +19838,242 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18465
19838
  value?: string | undefined;
18466
19839
  };
18467
19840
  }>>;
18468
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
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;
19994
+ }, {
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
+ }>>>;
20010
+ }, "strip", zod.ZodTypeAny, {
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;
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;
20043
+ }, {
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;
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;
20076
+ }>>;
18469
20077
  } & {
18470
20078
  orgId: zod.ZodString;
18471
20079
  projectId: zod.ZodString;
@@ -18483,7 +20091,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18483
20091
  placementPolicy: "least-loaded" | "round-robin" | "random";
18484
20092
  parentCells: string[];
18485
20093
  displayName?: string | undefined;
18486
- 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;
18487
20128
  membership?: {
18488
20129
  derivedFrom: {
18489
20130
  property: string;
@@ -18504,7 +20145,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18504
20145
  }[] | undefined;
18505
20146
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
18506
20147
  parentCells?: string[] | undefined;
18507
- 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;
18508
20182
  membership?: {
18509
20183
  derivedFrom: {
18510
20184
  property: string;
@@ -18531,7 +20205,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18531
20205
  property: string;
18532
20206
  value?: string | undefined;
18533
20207
  } | null;
18534
- 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;
18535
20244
  }>;
18536
20245
  update: SchemaFn<zod.ZodObject<{
18537
20246
  kind: zod.ZodLiteral<"Cell">;
@@ -18575,7 +20284,242 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18575
20284
  value?: string | undefined;
18576
20285
  };
18577
20286
  }>>;
18578
- 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
+ }>>;
18579
20523
  } & {
18580
20524
  orgId: zod.ZodString;
18581
20525
  projectId: zod.ZodString;
@@ -18593,7 +20537,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18593
20537
  placementPolicy: "least-loaded" | "round-robin" | "random";
18594
20538
  parentCells: string[];
18595
20539
  displayName?: string | undefined;
18596
- 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;
18597
20574
  membership?: {
18598
20575
  derivedFrom: {
18599
20576
  property: string;
@@ -18614,7 +20591,40 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18614
20591
  }[] | undefined;
18615
20592
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
18616
20593
  parentCells?: string[] | undefined;
18617
- 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;
18618
20628
  membership?: {
18619
20629
  derivedFrom: {
18620
20630
  property: string;
@@ -18639,7 +20649,42 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18639
20649
  property: string;
18640
20650
  value?: string | undefined;
18641
20651
  } | null;
18642
- 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;
18643
20688
  createdAt: string;
18644
20689
  updatedAt: string;
18645
20690
  }>;