@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/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { S as SnapshotOp, T as TokenSource, a as SchemaFn, P as ProjectNukeResponse, 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.js';
2
- export { k as AdminAuditEvent, l as AdminGitHubInstallation, m as AdminOrgMember, n as AdminOrgProject, o as AdminOrgSummary, p as TerrantulaError, w as withSchema } from './projects-CT3fGCOp.js';
1
+ import { S as SnapshotOp, T as TokenSource, a as SchemaFn, P as ProjectNukeResponse, 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.js';
2
+ export { k as AdminAuditEvent, l as AdminGitHubInstallation, m as AdminOrgMember, n as AdminOrgProject, o as AdminOrgSummary, p as TerrantulaError, w as withSchema } from './projects-D-LiD32g.js';
3
3
  import * as _terrantula_types from '@terrantula/types';
4
+ export { RegistryInput, RegistryOutput } from '@terrantula/types';
4
5
  import * as zod from 'zod';
5
6
  import * as hono_hono_base from 'hono/hono-base';
6
7
  import * as hono_utils_types from 'hono/utils/types';
@@ -1907,6 +1908,11 @@ declare const projectApp: hono_hono_base.HonoBase<{
1907
1908
  max: number;
1908
1909
  metric: string;
1909
1910
  }[];
1911
+ composition: {
1912
+ provider: string;
1913
+ kind: "data" | "resource" | "module";
1914
+ address: string;
1915
+ }[] | null;
1910
1916
  syncTracked: boolean;
1911
1917
  syncFreshness: {
1912
1918
  greenSeconds?: number | undefined;
@@ -1968,6 +1974,11 @@ declare const projectApp: hono_hono_base.HonoBase<{
1968
1974
  max: number;
1969
1975
  metric: string;
1970
1976
  }[];
1977
+ composition: {
1978
+ provider: string;
1979
+ kind: "data" | "resource" | "module";
1980
+ address: string;
1981
+ }[] | null;
1971
1982
  syncTracked: boolean;
1972
1983
  syncFreshness: {
1973
1984
  greenSeconds?: number | undefined;
@@ -2024,6 +2035,11 @@ declare const projectApp: hono_hono_base.HonoBase<{
2024
2035
  max: number;
2025
2036
  metric: string;
2026
2037
  }[];
2038
+ composition: {
2039
+ provider: string;
2040
+ kind: "data" | "resource" | "module";
2041
+ address: string;
2042
+ }[] | null;
2027
2043
  syncTracked: boolean;
2028
2044
  syncFreshness: {
2029
2045
  greenSeconds?: number | undefined;
@@ -2087,6 +2103,11 @@ declare const projectApp: hono_hono_base.HonoBase<{
2087
2103
  max: number;
2088
2104
  metric: string;
2089
2105
  }[];
2106
+ composition: {
2107
+ provider: string;
2108
+ kind: "data" | "resource" | "module";
2109
+ address: string;
2110
+ }[] | null;
2090
2111
  syncTracked: boolean;
2091
2112
  syncFreshness: {
2092
2113
  greenSeconds?: number | undefined;
@@ -2125,11 +2146,16 @@ declare const projectApp: hono_hono_base.HonoBase<{
2125
2146
  projectId: string;
2126
2147
  name: string;
2127
2148
  displayName: string | null;
2128
- provider: string;
2149
+ provider: string | null;
2129
2150
  config: {
2130
2151
  [x: string]: hono_utils_types.JSONValue;
2131
2152
  };
2132
2153
  credentialRef: string | null;
2154
+ set: string | null;
2155
+ properties: {
2156
+ [x: string]: string;
2157
+ };
2158
+ capacity: number | null;
2133
2159
  createdAt: string;
2134
2160
  updatedAt: string;
2135
2161
  }[];
@@ -2149,15 +2175,20 @@ declare const projectApp: hono_hono_base.HonoBase<{
2149
2175
  output: {
2150
2176
  name: string;
2151
2177
  createdAt: string;
2178
+ set: string | null;
2152
2179
  updatedAt: string;
2153
2180
  orgId: string;
2154
2181
  projectId: string;
2155
- provider: string;
2182
+ provider: string | null;
2156
2183
  displayName: string | null;
2184
+ properties: {
2185
+ [x: string]: string;
2186
+ };
2157
2187
  config: {
2158
2188
  [x: string]: hono_utils_types.JSONValue;
2159
2189
  };
2160
2190
  credentialRef: string | null;
2191
+ capacity: number | null;
2161
2192
  };
2162
2193
  outputFormat: "json";
2163
2194
  status: 201;
@@ -2176,11 +2207,16 @@ declare const projectApp: hono_hono_base.HonoBase<{
2176
2207
  projectId: string;
2177
2208
  name: string;
2178
2209
  displayName: string | null;
2179
- provider: string;
2210
+ provider: string | null;
2180
2211
  config: {
2181
2212
  [x: string]: hono_utils_types.JSONValue;
2182
2213
  };
2183
2214
  credentialRef: string | null;
2215
+ set: string | null;
2216
+ properties: {
2217
+ [x: string]: string;
2218
+ };
2219
+ capacity: number | null;
2184
2220
  createdAt: string;
2185
2221
  updatedAt: string;
2186
2222
  };
@@ -2206,11 +2242,16 @@ declare const projectApp: hono_hono_base.HonoBase<{
2206
2242
  projectId: string;
2207
2243
  name: string;
2208
2244
  displayName: string | null;
2209
- provider: string;
2245
+ provider: string | null;
2210
2246
  config: {
2211
2247
  [x: string]: hono_utils_types.JSONValue;
2212
2248
  };
2213
2249
  credentialRef: string | null;
2250
+ set: string | null;
2251
+ properties: {
2252
+ [x: string]: string;
2253
+ };
2254
+ capacity: number | null;
2214
2255
  createdAt: string;
2215
2256
  updatedAt: string;
2216
2257
  };
@@ -2235,6 +2276,98 @@ declare const projectApp: hono_hono_base.HonoBase<{
2235
2276
  };
2236
2277
  };
2237
2278
  }, "/deployment-targets"> | hono_types.MergeSchemaPath<{
2279
+ "/": {
2280
+ $get: {
2281
+ input: {};
2282
+ output: {
2283
+ orgId: string;
2284
+ projectId: string;
2285
+ name: string;
2286
+ displayName: string | null;
2287
+ provider: string;
2288
+ properties: {
2289
+ [x: string]: string;
2290
+ };
2291
+ credentialRef: string | null;
2292
+ createdAt: string;
2293
+ updatedAt: string;
2294
+ }[];
2295
+ outputFormat: "json";
2296
+ status: hono_utils_http_status.ContentfulStatusCode;
2297
+ };
2298
+ };
2299
+ } & {
2300
+ "/:name": {
2301
+ $get: {
2302
+ input: {
2303
+ param: {
2304
+ name: string;
2305
+ };
2306
+ };
2307
+ output: {
2308
+ orgId: string;
2309
+ projectId: string;
2310
+ name: string;
2311
+ displayName: string | null;
2312
+ provider: string;
2313
+ properties: {
2314
+ [x: string]: string;
2315
+ };
2316
+ credentialRef: string | null;
2317
+ createdAt: string;
2318
+ updatedAt: string;
2319
+ };
2320
+ outputFormat: "json";
2321
+ status: hono_utils_http_status.ContentfulStatusCode;
2322
+ };
2323
+ };
2324
+ } & {
2325
+ "/:name": {
2326
+ $put: {
2327
+ input: {
2328
+ json?: any;
2329
+ query?: {
2330
+ [x: string]: string | string[];
2331
+ } | undefined;
2332
+ } & {
2333
+ param: {
2334
+ name: string;
2335
+ };
2336
+ };
2337
+ output: {
2338
+ name: string;
2339
+ createdAt: string;
2340
+ updatedAt: string;
2341
+ orgId: string;
2342
+ projectId: string;
2343
+ provider: string;
2344
+ displayName: string | null;
2345
+ properties: {
2346
+ [x: string]: string;
2347
+ };
2348
+ credentialRef: string | null;
2349
+ };
2350
+ outputFormat: "json";
2351
+ status: hono_utils_http_status.ContentfulStatusCode;
2352
+ };
2353
+ };
2354
+ } & {
2355
+ "/:name": {
2356
+ $delete: {
2357
+ input: {
2358
+ param: {
2359
+ name: string;
2360
+ };
2361
+ };
2362
+ output: {
2363
+ deleted: true;
2364
+ name: string;
2365
+ };
2366
+ outputFormat: "json";
2367
+ status: hono_utils_http_status.ContentfulStatusCode;
2368
+ };
2369
+ };
2370
+ }, "/deployment-target-sets"> | hono_types.MergeSchemaPath<{
2238
2371
  "/": {
2239
2372
  $get: {
2240
2373
  input: {};
@@ -2256,7 +2389,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2256
2389
  property: string;
2257
2390
  value?: string | undefined;
2258
2391
  } | null;
2259
- deploymentTarget: string | null;
2392
+ targetSelector: {
2393
+ primary: {
2394
+ set: string;
2395
+ policy: "least-loaded" | "round-robin" | "random";
2396
+ match?: {
2397
+ property: string;
2398
+ equals: {
2399
+ source: "environment";
2400
+ } | {
2401
+ name: string;
2402
+ source: "entityProperty";
2403
+ } | {
2404
+ value: string;
2405
+ source: "literal";
2406
+ };
2407
+ }[] | undefined;
2408
+ };
2409
+ roles?: {
2410
+ [x: string]: {
2411
+ set: string;
2412
+ policy: "least-loaded" | "round-robin" | "random";
2413
+ match?: {
2414
+ property: string;
2415
+ equals: {
2416
+ source: "environment";
2417
+ } | {
2418
+ name: string;
2419
+ source: "entityProperty";
2420
+ } | {
2421
+ value: string;
2422
+ source: "literal";
2423
+ };
2424
+ }[] | undefined;
2425
+ };
2426
+ } | undefined;
2427
+ } | null;
2260
2428
  createdAt: string;
2261
2429
  updatedAt: string;
2262
2430
  }[];
@@ -2293,7 +2461,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2293
2461
  property: string;
2294
2462
  value?: string | undefined;
2295
2463
  } | null;
2296
- deploymentTarget: string | null;
2464
+ targetSelector: {
2465
+ primary: {
2466
+ set: string;
2467
+ policy: "least-loaded" | "round-robin" | "random";
2468
+ match?: {
2469
+ property: string;
2470
+ equals: {
2471
+ source: "environment";
2472
+ } | {
2473
+ name: string;
2474
+ source: "entityProperty";
2475
+ } | {
2476
+ value: string;
2477
+ source: "literal";
2478
+ };
2479
+ }[] | undefined;
2480
+ };
2481
+ roles?: {
2482
+ [x: string]: {
2483
+ set: string;
2484
+ policy: "least-loaded" | "round-robin" | "random";
2485
+ match?: {
2486
+ property: string;
2487
+ equals: {
2488
+ source: "environment";
2489
+ } | {
2490
+ name: string;
2491
+ source: "entityProperty";
2492
+ } | {
2493
+ value: string;
2494
+ source: "literal";
2495
+ };
2496
+ }[] | undefined;
2497
+ };
2498
+ } | undefined;
2499
+ } | null;
2297
2500
  };
2298
2501
  outputFormat: "json";
2299
2502
  status: 201;
@@ -2325,7 +2528,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2325
2528
  property: string;
2326
2529
  value?: string | undefined;
2327
2530
  } | null;
2328
- deploymentTarget: string | null;
2531
+ targetSelector: {
2532
+ primary: {
2533
+ set: string;
2534
+ policy: "least-loaded" | "round-robin" | "random";
2535
+ match?: {
2536
+ property: string;
2537
+ equals: {
2538
+ source: "environment";
2539
+ } | {
2540
+ name: string;
2541
+ source: "entityProperty";
2542
+ } | {
2543
+ value: string;
2544
+ source: "literal";
2545
+ };
2546
+ }[] | undefined;
2547
+ };
2548
+ roles?: {
2549
+ [x: string]: {
2550
+ set: string;
2551
+ policy: "least-loaded" | "round-robin" | "random";
2552
+ match?: {
2553
+ property: string;
2554
+ equals: {
2555
+ source: "environment";
2556
+ } | {
2557
+ name: string;
2558
+ source: "entityProperty";
2559
+ } | {
2560
+ value: string;
2561
+ source: "literal";
2562
+ };
2563
+ }[] | undefined;
2564
+ };
2565
+ } | undefined;
2566
+ } | null;
2329
2567
  createdAt: string;
2330
2568
  updatedAt: string;
2331
2569
  };
@@ -2364,7 +2602,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2364
2602
  property: string;
2365
2603
  value?: string | undefined;
2366
2604
  } | null;
2367
- deploymentTarget: string | null;
2605
+ targetSelector: {
2606
+ primary: {
2607
+ set: string;
2608
+ policy: "least-loaded" | "round-robin" | "random";
2609
+ match?: {
2610
+ property: string;
2611
+ equals: {
2612
+ source: "environment";
2613
+ } | {
2614
+ name: string;
2615
+ source: "entityProperty";
2616
+ } | {
2617
+ value: string;
2618
+ source: "literal";
2619
+ };
2620
+ }[] | undefined;
2621
+ };
2622
+ roles?: {
2623
+ [x: string]: {
2624
+ set: string;
2625
+ policy: "least-loaded" | "round-robin" | "random";
2626
+ match?: {
2627
+ property: string;
2628
+ equals: {
2629
+ source: "environment";
2630
+ } | {
2631
+ name: string;
2632
+ source: "entityProperty";
2633
+ } | {
2634
+ value: string;
2635
+ source: "literal";
2636
+ };
2637
+ }[] | undefined;
2638
+ };
2639
+ } | undefined;
2640
+ } | null;
2368
2641
  createdAt: string;
2369
2642
  updatedAt: string;
2370
2643
  };
@@ -2520,11 +2793,15 @@ declare const projectApp: hono_hono_base.HonoBase<{
2520
2793
  title?: string | undefined;
2521
2794
  enum?: string[] | undefined;
2522
2795
  }[];
2523
- constraints: {
2796
+ constraints: ({
2524
2797
  type: "property-sum";
2525
2798
  property: string;
2526
2799
  leq: string;
2527
- }[];
2800
+ } | {
2801
+ type: "relationship-count";
2802
+ leq: string | number;
2803
+ })[];
2804
+ containment: boolean;
2528
2805
  createdAt: string;
2529
2806
  updatedAt: string;
2530
2807
  }[];
@@ -2558,14 +2835,18 @@ declare const projectApp: hono_hono_base.HonoBase<{
2558
2835
  title?: string | undefined;
2559
2836
  enum?: string[] | undefined;
2560
2837
  }[];
2561
- constraints: {
2838
+ constraints: ({
2562
2839
  type: "property-sum";
2563
2840
  property: string;
2564
2841
  leq: string;
2565
- }[];
2842
+ } | {
2843
+ type: "relationship-count";
2844
+ leq: string | number;
2845
+ })[];
2566
2846
  cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2567
2847
  fromEntityTypeName: string;
2568
2848
  toEntityTypeName: string;
2849
+ containment: boolean;
2569
2850
  };
2570
2851
  outputFormat: "json";
2571
2852
  status: 201;
@@ -2597,11 +2878,15 @@ declare const projectApp: hono_hono_base.HonoBase<{
2597
2878
  title?: string | undefined;
2598
2879
  enum?: string[] | undefined;
2599
2880
  }[];
2600
- constraints: {
2881
+ constraints: ({
2601
2882
  type: "property-sum";
2602
2883
  property: string;
2603
2884
  leq: string;
2604
- }[];
2885
+ } | {
2886
+ type: "relationship-count";
2887
+ leq: string | number;
2888
+ })[];
2889
+ containment: boolean;
2605
2890
  createdAt: string;
2606
2891
  updatedAt: string;
2607
2892
  };
@@ -2640,11 +2925,15 @@ declare const projectApp: hono_hono_base.HonoBase<{
2640
2925
  title?: string | undefined;
2641
2926
  enum?: string[] | undefined;
2642
2927
  }[];
2643
- constraints: {
2928
+ constraints: ({
2644
2929
  type: "property-sum";
2645
2930
  property: string;
2646
2931
  leq: string;
2647
- }[];
2932
+ } | {
2933
+ type: "relationship-count";
2934
+ leq: string | number;
2935
+ })[];
2936
+ containment: boolean;
2648
2937
  createdAt: string;
2649
2938
  updatedAt: string;
2650
2939
  };
@@ -5428,6 +5717,33 @@ declare const projectApp: hono_hono_base.HonoBase<{
5428
5717
  };
5429
5718
  };
5430
5719
  }, "/import-sources"> | hono_types.MergeSchemaPath<{
5720
+ "/": {
5721
+ $post: {
5722
+ input: {
5723
+ json?: any;
5724
+ query?: {
5725
+ [x: string]: string | string[];
5726
+ } | undefined;
5727
+ };
5728
+ output: {
5729
+ name: string;
5730
+ inputs: {
5731
+ name: string;
5732
+ type: string;
5733
+ description?: string | undefined;
5734
+ required: boolean;
5735
+ default?: hono_utils_types.JSONValue | undefined;
5736
+ }[];
5737
+ outputs: {
5738
+ name: string;
5739
+ description?: string | undefined;
5740
+ }[];
5741
+ };
5742
+ outputFormat: "json";
5743
+ status: hono_utils_http_status.ContentfulStatusCode;
5744
+ };
5745
+ };
5746
+ }, "/resolve-source"> | hono_types.MergeSchemaPath<{
5431
5747
  "/github": {
5432
5748
  $post: {
5433
5749
  input: {};
@@ -6288,6 +6604,17 @@ declare function _cloudAppShape(): hono_hono_base.HonoBase<hono_types.BlankEnv,
6288
6604
  };
6289
6605
  outputFormat: "json";
6290
6606
  status: 401;
6607
+ } | {
6608
+ input: {
6609
+ param: {
6610
+ projectId: string;
6611
+ };
6612
+ };
6613
+ output: {
6614
+ error: string;
6615
+ };
6616
+ outputFormat: "json";
6617
+ status: 404;
6291
6618
  } | {
6292
6619
  input: {
6293
6620
  param: {
@@ -6340,6 +6667,22 @@ declare function _cloudAppShape(): hono_hono_base.HonoBase<hono_types.BlankEnv,
6340
6667
  };
6341
6668
  outputFormat: "json";
6342
6669
  status: 403;
6670
+ } | {
6671
+ input: {
6672
+ json?: any;
6673
+ query?: {
6674
+ [x: string]: string | string[];
6675
+ } | undefined;
6676
+ } & {
6677
+ param: {
6678
+ projectId: string;
6679
+ };
6680
+ };
6681
+ output: {
6682
+ error: string;
6683
+ };
6684
+ outputFormat: "json";
6685
+ status: 404;
6343
6686
  } | {
6344
6687
  input: {
6345
6688
  json?: any;
@@ -7172,6 +7515,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
7172
7515
  projectId: string;
7173
7516
  }>, {
7174
7517
  error: string;
7518
+ } | {
7519
+ error: string;
7175
7520
  } | {
7176
7521
  id: string;
7177
7522
  email: string;
@@ -7204,6 +7549,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
7204
7549
  error: string;
7205
7550
  } | {
7206
7551
  error: string;
7552
+ } | {
7553
+ error: string;
7207
7554
  } | {
7208
7555
  added: true;
7209
7556
  envName: any;
@@ -7711,6 +8058,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
7711
8058
  max: number;
7712
8059
  metric: string;
7713
8060
  }[];
8061
+ composition: {
8062
+ provider: string;
8063
+ kind: "data" | "resource" | "module";
8064
+ address: string;
8065
+ }[] | null;
7714
8066
  syncTracked: boolean;
7715
8067
  syncFreshness: {
7716
8068
  greenSeconds?: number | undefined;
@@ -7769,6 +8121,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
7769
8121
  max: number;
7770
8122
  metric: string;
7771
8123
  }[];
8124
+ composition: {
8125
+ provider: string;
8126
+ kind: "data" | "resource" | "module";
8127
+ address: string;
8128
+ }[] | null;
7772
8129
  syncTracked: boolean;
7773
8130
  syncFreshness: {
7774
8131
  greenSeconds?: number | undefined;
@@ -7912,6 +8269,19 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
7912
8269
  yellowSeconds?: number | undefined;
7913
8270
  }>>;
7914
8271
  applier: zod.ZodOptional<zod.ZodString>;
8272
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
8273
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
8274
+ address: zod.ZodString;
8275
+ provider: zod.ZodString;
8276
+ }, "strip", zod.ZodTypeAny, {
8277
+ provider: string;
8278
+ kind: "data" | "resource" | "module";
8279
+ address: string;
8280
+ }, {
8281
+ provider: string;
8282
+ kind: "data" | "resource" | "module";
8283
+ address: string;
8284
+ }>, "many">>;
7915
8285
  } & {
7916
8286
  orgId: zod.ZodString;
7917
8287
  projectId: zod.ZodString;
@@ -7951,9 +8321,14 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
7951
8321
  max: number;
7952
8322
  metric: string;
7953
8323
  }[];
7954
- syncTracked: boolean;
7955
8324
  kind: "EntityType";
8325
+ syncTracked: boolean;
7956
8326
  displayName?: string | undefined;
8327
+ composition?: {
8328
+ provider: string;
8329
+ kind: "data" | "resource" | "module";
8330
+ address: string;
8331
+ }[] | undefined;
7957
8332
  syncFreshness?: {
7958
8333
  greenSeconds?: number | undefined;
7959
8334
  yellowSeconds?: number | undefined;
@@ -7997,6 +8372,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
7997
8372
  max: number;
7998
8373
  metric: string;
7999
8374
  }[] | undefined;
8375
+ composition?: {
8376
+ provider: string;
8377
+ kind: "data" | "resource" | "module";
8378
+ address: string;
8379
+ }[] | undefined;
8000
8380
  syncTracked?: boolean | undefined;
8001
8381
  syncFreshness?: {
8002
8382
  greenSeconds?: number | undefined;
@@ -8042,6 +8422,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8042
8422
  max: number;
8043
8423
  metric: string;
8044
8424
  }[];
8425
+ composition: {
8426
+ provider: string;
8427
+ kind: "data" | "resource" | "module";
8428
+ address: string;
8429
+ }[] | null;
8045
8430
  syncTracked: boolean;
8046
8431
  syncFreshness: {
8047
8432
  greenSeconds?: number | undefined;
@@ -8183,6 +8568,19 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8183
8568
  yellowSeconds?: number | undefined;
8184
8569
  }>>;
8185
8570
  applier: zod.ZodOptional<zod.ZodString>;
8571
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
8572
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
8573
+ address: zod.ZodString;
8574
+ provider: zod.ZodString;
8575
+ }, "strip", zod.ZodTypeAny, {
8576
+ provider: string;
8577
+ kind: "data" | "resource" | "module";
8578
+ address: string;
8579
+ }, {
8580
+ provider: string;
8581
+ kind: "data" | "resource" | "module";
8582
+ address: string;
8583
+ }>, "many">>;
8186
8584
  } & {
8187
8585
  orgId: zod.ZodString;
8188
8586
  projectId: zod.ZodString;
@@ -8222,9 +8620,14 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8222
8620
  max: number;
8223
8621
  metric: string;
8224
8622
  }[];
8225
- syncTracked: boolean;
8226
8623
  kind: "EntityType";
8624
+ syncTracked: boolean;
8227
8625
  displayName?: string | undefined;
8626
+ composition?: {
8627
+ provider: string;
8628
+ kind: "data" | "resource" | "module";
8629
+ address: string;
8630
+ }[] | undefined;
8228
8631
  syncFreshness?: {
8229
8632
  greenSeconds?: number | undefined;
8230
8633
  yellowSeconds?: number | undefined;
@@ -8268,6 +8671,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8268
8671
  max: number;
8269
8672
  metric: string;
8270
8673
  }[] | undefined;
8674
+ composition?: {
8675
+ provider: string;
8676
+ kind: "data" | "resource" | "module";
8677
+ address: string;
8678
+ }[] | undefined;
8271
8679
  syncTracked?: boolean | undefined;
8272
8680
  syncFreshness?: {
8273
8681
  greenSeconds?: number | undefined;
@@ -8311,6 +8719,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8311
8719
  max: number;
8312
8720
  metric: string;
8313
8721
  }[];
8722
+ composition: {
8723
+ provider: string;
8724
+ kind: "data" | "resource" | "module";
8725
+ address: string;
8726
+ }[] | null;
8314
8727
  syncTracked: boolean;
8315
8728
  syncFreshness: {
8316
8729
  greenSeconds?: number | undefined;
@@ -8352,12 +8765,17 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8352
8765
  projectId: string;
8353
8766
  name: string;
8354
8767
  displayName: string | null;
8355
- provider: string;
8768
+ provider: string | null;
8356
8769
  config: {
8357
8770
  [x: string]: hono_utils_types.JSONValue;
8358
8771
  };
8359
8772
  credentialRef: string | null;
8360
- createdAt: string;
8773
+ set: string | null;
8774
+ properties: {
8775
+ [x: string]: string;
8776
+ };
8777
+ capacity: number | null;
8778
+ createdAt: string;
8361
8779
  updatedAt: string;
8362
8780
  }[]>;
8363
8781
  get: SchemaFn<zod.ZodObject<{
@@ -8377,11 +8795,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8377
8795
  projectId: string;
8378
8796
  name: string;
8379
8797
  displayName: string | null;
8380
- provider: string;
8798
+ provider: string | null;
8381
8799
  config: {
8382
8800
  [x: string]: hono_utils_types.JSONValue;
8383
8801
  };
8384
8802
  credentialRef: string | null;
8803
+ set: string | null;
8804
+ properties: {
8805
+ [x: string]: string;
8806
+ };
8807
+ capacity: number | null;
8385
8808
  createdAt: string;
8386
8809
  updatedAt: string;
8387
8810
  }>;
@@ -8389,8 +8812,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8389
8812
  kind: zod.ZodLiteral<"DeploymentTarget">;
8390
8813
  name: zod.ZodString;
8391
8814
  displayName: zod.ZodOptional<zod.ZodString>;
8392
- provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
8815
+ set: zod.ZodOptional<zod.ZodString>;
8816
+ provider: zod.ZodOptional<zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>>;
8393
8817
  config: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
8818
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
8819
+ capacity: zod.ZodOptional<zod.ZodNumber>;
8394
8820
  credentialRef: zod.ZodOptional<zod.ZodString>;
8395
8821
  } & {
8396
8822
  orgId: zod.ZodString;
@@ -8399,39 +8825,53 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8399
8825
  name: string;
8400
8826
  orgId: string;
8401
8827
  projectId: string;
8402
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8828
+ properties: Record<string, string>;
8403
8829
  kind: "DeploymentTarget";
8404
8830
  config: Record<string, unknown>;
8831
+ set?: string | undefined;
8832
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8405
8833
  displayName?: string | undefined;
8406
8834
  credentialRef?: string | undefined;
8835
+ capacity?: number | undefined;
8407
8836
  }, {
8408
8837
  name: string;
8409
8838
  orgId: string;
8410
8839
  projectId: string;
8411
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8412
8840
  kind: "DeploymentTarget";
8841
+ set?: string | undefined;
8842
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8413
8843
  displayName?: string | undefined;
8844
+ properties?: Record<string, string> | undefined;
8414
8845
  config?: Record<string, unknown> | undefined;
8415
8846
  credentialRef?: string | undefined;
8847
+ capacity?: number | undefined;
8416
8848
  }>, {
8417
8849
  name: string;
8418
8850
  createdAt: string;
8851
+ set: string | null;
8419
8852
  updatedAt: string;
8420
8853
  orgId: string;
8421
8854
  projectId: string;
8422
- provider: string;
8855
+ provider: string | null;
8423
8856
  displayName: string | null;
8857
+ properties: {
8858
+ [x: string]: string;
8859
+ };
8424
8860
  config: {
8425
8861
  [x: string]: hono_utils_types.JSONValue;
8426
8862
  };
8427
8863
  credentialRef: string | null;
8864
+ capacity: number | null;
8428
8865
  }>;
8429
8866
  update: SchemaFn<zod.ZodObject<{
8430
8867
  kind: zod.ZodLiteral<"DeploymentTarget">;
8431
8868
  name: zod.ZodString;
8432
8869
  displayName: zod.ZodOptional<zod.ZodString>;
8433
- provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
8870
+ set: zod.ZodOptional<zod.ZodString>;
8871
+ provider: zod.ZodOptional<zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>>;
8434
8872
  config: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
8873
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
8874
+ capacity: zod.ZodOptional<zod.ZodNumber>;
8435
8875
  credentialRef: zod.ZodOptional<zod.ZodString>;
8436
8876
  } & {
8437
8877
  orgId: zod.ZodString;
@@ -8440,32 +8880,149 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8440
8880
  name: string;
8441
8881
  orgId: string;
8442
8882
  projectId: string;
8443
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8883
+ properties: Record<string, string>;
8444
8884
  kind: "DeploymentTarget";
8445
8885
  config: Record<string, unknown>;
8886
+ set?: string | undefined;
8887
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8446
8888
  displayName?: string | undefined;
8447
8889
  credentialRef?: string | undefined;
8890
+ capacity?: number | undefined;
8448
8891
  }, {
8449
8892
  name: string;
8450
8893
  orgId: string;
8451
8894
  projectId: string;
8452
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8453
8895
  kind: "DeploymentTarget";
8896
+ set?: string | undefined;
8897
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8454
8898
  displayName?: string | undefined;
8899
+ properties?: Record<string, string> | undefined;
8455
8900
  config?: Record<string, unknown> | undefined;
8456
8901
  credentialRef?: string | undefined;
8902
+ capacity?: number | undefined;
8457
8903
  }>, {
8458
8904
  orgId: string;
8459
8905
  projectId: string;
8460
8906
  name: string;
8461
8907
  displayName: string | null;
8462
- provider: string;
8908
+ provider: string | null;
8463
8909
  config: {
8464
8910
  [x: string]: hono_utils_types.JSONValue;
8465
8911
  };
8466
8912
  credentialRef: string | null;
8913
+ set: string | null;
8914
+ properties: {
8915
+ [x: string]: string;
8916
+ };
8917
+ capacity: number | null;
8918
+ createdAt: string;
8919
+ updatedAt: string;
8920
+ }>;
8921
+ delete: SchemaFn<zod.ZodObject<{
8922
+ orgId: zod.ZodString;
8923
+ projectId: zod.ZodString;
8924
+ name: zod.ZodString;
8925
+ }, "strip", zod.ZodTypeAny, {
8926
+ name: string;
8927
+ orgId: string;
8928
+ projectId: string;
8929
+ }, {
8930
+ name: string;
8931
+ orgId: string;
8932
+ projectId: string;
8933
+ }>, {
8934
+ deleted: true;
8935
+ name: string;
8936
+ }>;
8937
+ };
8938
+ deploymentTargetSets: {
8939
+ list: SchemaFn<zod.ZodObject<{
8940
+ orgId: zod.ZodString;
8941
+ projectId: zod.ZodString;
8942
+ }, "strip", zod.ZodTypeAny, {
8943
+ orgId: string;
8944
+ projectId: string;
8945
+ }, {
8946
+ orgId: string;
8947
+ projectId: string;
8948
+ }>, {
8949
+ orgId: string;
8950
+ projectId: string;
8951
+ name: string;
8952
+ displayName: string | null;
8953
+ provider: string;
8954
+ properties: {
8955
+ [x: string]: string;
8956
+ };
8957
+ credentialRef: string | null;
8958
+ createdAt: string;
8959
+ updatedAt: string;
8960
+ }[]>;
8961
+ get: SchemaFn<zod.ZodObject<{
8962
+ orgId: zod.ZodString;
8963
+ projectId: zod.ZodString;
8964
+ name: zod.ZodString;
8965
+ }, "strip", zod.ZodTypeAny, {
8966
+ name: string;
8967
+ orgId: string;
8968
+ projectId: string;
8969
+ }, {
8970
+ name: string;
8971
+ orgId: string;
8972
+ projectId: string;
8973
+ }>, {
8974
+ orgId: string;
8975
+ projectId: string;
8976
+ name: string;
8977
+ displayName: string | null;
8978
+ provider: string;
8979
+ properties: {
8980
+ [x: string]: string;
8981
+ };
8982
+ credentialRef: string | null;
8983
+ createdAt: string;
8984
+ updatedAt: string;
8985
+ }>;
8986
+ put: SchemaFn<zod.ZodObject<{
8987
+ kind: zod.ZodLiteral<"DeploymentTargetSet">;
8988
+ name: zod.ZodString;
8989
+ displayName: zod.ZodOptional<zod.ZodString>;
8990
+ provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
8991
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
8992
+ credentialRef: zod.ZodOptional<zod.ZodString>;
8993
+ } & {
8994
+ orgId: zod.ZodString;
8995
+ projectId: zod.ZodString;
8996
+ }, "strip", zod.ZodTypeAny, {
8997
+ name: string;
8998
+ orgId: string;
8999
+ projectId: string;
9000
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
9001
+ properties: Record<string, string>;
9002
+ kind: "DeploymentTargetSet";
9003
+ displayName?: string | undefined;
9004
+ credentialRef?: string | undefined;
9005
+ }, {
9006
+ name: string;
9007
+ orgId: string;
9008
+ projectId: string;
9009
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
9010
+ kind: "DeploymentTargetSet";
9011
+ displayName?: string | undefined;
9012
+ properties?: Record<string, string> | undefined;
9013
+ credentialRef?: string | undefined;
9014
+ }>, {
9015
+ name: string;
8467
9016
  createdAt: string;
8468
9017
  updatedAt: string;
9018
+ orgId: string;
9019
+ projectId: string;
9020
+ provider: string;
9021
+ displayName: string | null;
9022
+ properties: {
9023
+ [x: string]: string;
9024
+ };
9025
+ credentialRef: string | null;
8469
9026
  }>;
8470
9027
  delete: SchemaFn<zod.ZodObject<{
8471
9028
  orgId: zod.ZodString;
@@ -8542,8 +9099,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8542
9099
  owner?: string[] | undefined;
8543
9100
  cellKey?: string | undefined;
8544
9101
  state?: string[] | undefined;
8545
- cell?: string[] | undefined;
8546
9102
  kind?: string[] | undefined;
9103
+ cell?: string[] | undefined;
8547
9104
  }, {
8548
9105
  orgId: string;
8549
9106
  projectId: string;
@@ -8552,8 +9109,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8552
9109
  owner?: string[] | undefined;
8553
9110
  cellKey?: string | undefined;
8554
9111
  state?: string[] | undefined;
8555
- cell?: string[] | undefined;
8556
9112
  kind?: string[] | undefined;
9113
+ cell?: string[] | undefined;
8557
9114
  }>, {
8558
9115
  kind: {
8559
9116
  value: string;
@@ -8870,7 +9427,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8870
9427
  property: string;
8871
9428
  value?: string | undefined;
8872
9429
  } | null;
8873
- deploymentTarget: string | null;
9430
+ targetSelector: {
9431
+ primary: {
9432
+ set: string;
9433
+ policy: "least-loaded" | "round-robin" | "random";
9434
+ match?: {
9435
+ property: string;
9436
+ equals: {
9437
+ source: "environment";
9438
+ } | {
9439
+ name: string;
9440
+ source: "entityProperty";
9441
+ } | {
9442
+ value: string;
9443
+ source: "literal";
9444
+ };
9445
+ }[] | undefined;
9446
+ };
9447
+ roles?: {
9448
+ [x: string]: {
9449
+ set: string;
9450
+ policy: "least-loaded" | "round-robin" | "random";
9451
+ match?: {
9452
+ property: string;
9453
+ equals: {
9454
+ source: "environment";
9455
+ } | {
9456
+ name: string;
9457
+ source: "entityProperty";
9458
+ } | {
9459
+ value: string;
9460
+ source: "literal";
9461
+ };
9462
+ }[] | undefined;
9463
+ };
9464
+ } | undefined;
9465
+ } | null;
8874
9466
  createdAt: string;
8875
9467
  updatedAt: string;
8876
9468
  }[]>;
@@ -8904,7 +9496,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8904
9496
  property: string;
8905
9497
  value?: string | undefined;
8906
9498
  } | null;
8907
- deploymentTarget: string | null;
9499
+ targetSelector: {
9500
+ primary: {
9501
+ set: string;
9502
+ policy: "least-loaded" | "round-robin" | "random";
9503
+ match?: {
9504
+ property: string;
9505
+ equals: {
9506
+ source: "environment";
9507
+ } | {
9508
+ name: string;
9509
+ source: "entityProperty";
9510
+ } | {
9511
+ value: string;
9512
+ source: "literal";
9513
+ };
9514
+ }[] | undefined;
9515
+ };
9516
+ roles?: {
9517
+ [x: string]: {
9518
+ set: string;
9519
+ policy: "least-loaded" | "round-robin" | "random";
9520
+ match?: {
9521
+ property: string;
9522
+ equals: {
9523
+ source: "environment";
9524
+ } | {
9525
+ name: string;
9526
+ source: "entityProperty";
9527
+ } | {
9528
+ value: string;
9529
+ source: "literal";
9530
+ };
9531
+ }[] | undefined;
9532
+ };
9533
+ } | undefined;
9534
+ } | null;
8908
9535
  createdAt: string;
8909
9536
  updatedAt: string;
8910
9537
  }>;
@@ -8950,7 +9577,242 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8950
9577
  value?: string | undefined;
8951
9578
  };
8952
9579
  }>>;
8953
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
9580
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
9581
+ primary: zod.ZodObject<{
9582
+ set: zod.ZodString;
9583
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
9584
+ property: zod.ZodString;
9585
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
9586
+ source: zod.ZodLiteral<"environment">;
9587
+ }, "strip", zod.ZodTypeAny, {
9588
+ source: "environment";
9589
+ }, {
9590
+ source: "environment";
9591
+ }>, zod.ZodObject<{
9592
+ source: zod.ZodLiteral<"entityProperty">;
9593
+ name: zod.ZodString;
9594
+ }, "strip", zod.ZodTypeAny, {
9595
+ name: string;
9596
+ source: "entityProperty";
9597
+ }, {
9598
+ name: string;
9599
+ source: "entityProperty";
9600
+ }>, zod.ZodObject<{
9601
+ source: zod.ZodLiteral<"literal">;
9602
+ value: zod.ZodString;
9603
+ }, "strip", zod.ZodTypeAny, {
9604
+ value: string;
9605
+ source: "literal";
9606
+ }, {
9607
+ value: string;
9608
+ source: "literal";
9609
+ }>]>;
9610
+ }, "strip", zod.ZodTypeAny, {
9611
+ property: string;
9612
+ equals: {
9613
+ source: "environment";
9614
+ } | {
9615
+ name: string;
9616
+ source: "entityProperty";
9617
+ } | {
9618
+ value: string;
9619
+ source: "literal";
9620
+ };
9621
+ }, {
9622
+ property: string;
9623
+ equals: {
9624
+ source: "environment";
9625
+ } | {
9626
+ name: string;
9627
+ source: "entityProperty";
9628
+ } | {
9629
+ value: string;
9630
+ source: "literal";
9631
+ };
9632
+ }>, "many">>;
9633
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
9634
+ }, "strip", zod.ZodTypeAny, {
9635
+ set: string;
9636
+ policy: "least-loaded" | "round-robin" | "random";
9637
+ match?: {
9638
+ property: string;
9639
+ equals: {
9640
+ source: "environment";
9641
+ } | {
9642
+ name: string;
9643
+ source: "entityProperty";
9644
+ } | {
9645
+ value: string;
9646
+ source: "literal";
9647
+ };
9648
+ }[] | undefined;
9649
+ }, {
9650
+ set: string;
9651
+ match?: {
9652
+ property: string;
9653
+ equals: {
9654
+ source: "environment";
9655
+ } | {
9656
+ name: string;
9657
+ source: "entityProperty";
9658
+ } | {
9659
+ value: string;
9660
+ source: "literal";
9661
+ };
9662
+ }[] | undefined;
9663
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
9664
+ }>;
9665
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
9666
+ set: zod.ZodString;
9667
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
9668
+ property: zod.ZodString;
9669
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
9670
+ source: zod.ZodLiteral<"environment">;
9671
+ }, "strip", zod.ZodTypeAny, {
9672
+ source: "environment";
9673
+ }, {
9674
+ source: "environment";
9675
+ }>, zod.ZodObject<{
9676
+ source: zod.ZodLiteral<"entityProperty">;
9677
+ name: zod.ZodString;
9678
+ }, "strip", zod.ZodTypeAny, {
9679
+ name: string;
9680
+ source: "entityProperty";
9681
+ }, {
9682
+ name: string;
9683
+ source: "entityProperty";
9684
+ }>, zod.ZodObject<{
9685
+ source: zod.ZodLiteral<"literal">;
9686
+ value: zod.ZodString;
9687
+ }, "strip", zod.ZodTypeAny, {
9688
+ value: string;
9689
+ source: "literal";
9690
+ }, {
9691
+ value: string;
9692
+ source: "literal";
9693
+ }>]>;
9694
+ }, "strip", zod.ZodTypeAny, {
9695
+ property: string;
9696
+ equals: {
9697
+ source: "environment";
9698
+ } | {
9699
+ name: string;
9700
+ source: "entityProperty";
9701
+ } | {
9702
+ value: string;
9703
+ source: "literal";
9704
+ };
9705
+ }, {
9706
+ property: string;
9707
+ equals: {
9708
+ source: "environment";
9709
+ } | {
9710
+ name: string;
9711
+ source: "entityProperty";
9712
+ } | {
9713
+ value: string;
9714
+ source: "literal";
9715
+ };
9716
+ }>, "many">>;
9717
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
9718
+ }, "strip", zod.ZodTypeAny, {
9719
+ set: string;
9720
+ policy: "least-loaded" | "round-robin" | "random";
9721
+ match?: {
9722
+ property: string;
9723
+ equals: {
9724
+ source: "environment";
9725
+ } | {
9726
+ name: string;
9727
+ source: "entityProperty";
9728
+ } | {
9729
+ value: string;
9730
+ source: "literal";
9731
+ };
9732
+ }[] | undefined;
9733
+ }, {
9734
+ set: string;
9735
+ match?: {
9736
+ property: string;
9737
+ equals: {
9738
+ source: "environment";
9739
+ } | {
9740
+ name: string;
9741
+ source: "entityProperty";
9742
+ } | {
9743
+ value: string;
9744
+ source: "literal";
9745
+ };
9746
+ }[] | undefined;
9747
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
9748
+ }>>>;
9749
+ }, "strip", zod.ZodTypeAny, {
9750
+ primary: {
9751
+ set: string;
9752
+ policy: "least-loaded" | "round-robin" | "random";
9753
+ match?: {
9754
+ property: string;
9755
+ equals: {
9756
+ source: "environment";
9757
+ } | {
9758
+ name: string;
9759
+ source: "entityProperty";
9760
+ } | {
9761
+ value: string;
9762
+ source: "literal";
9763
+ };
9764
+ }[] | undefined;
9765
+ };
9766
+ roles?: Record<string, {
9767
+ set: string;
9768
+ policy: "least-loaded" | "round-robin" | "random";
9769
+ match?: {
9770
+ property: string;
9771
+ equals: {
9772
+ source: "environment";
9773
+ } | {
9774
+ name: string;
9775
+ source: "entityProperty";
9776
+ } | {
9777
+ value: string;
9778
+ source: "literal";
9779
+ };
9780
+ }[] | undefined;
9781
+ }> | undefined;
9782
+ }, {
9783
+ primary: {
9784
+ set: string;
9785
+ match?: {
9786
+ property: string;
9787
+ equals: {
9788
+ source: "environment";
9789
+ } | {
9790
+ name: string;
9791
+ source: "entityProperty";
9792
+ } | {
9793
+ value: string;
9794
+ source: "literal";
9795
+ };
9796
+ }[] | undefined;
9797
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
9798
+ };
9799
+ roles?: Record<string, {
9800
+ set: string;
9801
+ match?: {
9802
+ property: string;
9803
+ equals: {
9804
+ source: "environment";
9805
+ } | {
9806
+ name: string;
9807
+ source: "entityProperty";
9808
+ } | {
9809
+ value: string;
9810
+ source: "literal";
9811
+ };
9812
+ }[] | undefined;
9813
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
9814
+ }> | undefined;
9815
+ }>>;
8954
9816
  } & {
8955
9817
  orgId: zod.ZodString;
8956
9818
  projectId: zod.ZodString;
@@ -8964,11 +9826,44 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8964
9826
  metric: string;
8965
9827
  aggregate: "max" | "sum" | "avg" | "min";
8966
9828
  }[];
9829
+ kind: "Cell";
8967
9830
  placementPolicy: "least-loaded" | "round-robin" | "random";
8968
9831
  parentCells: string[];
8969
- kind: "Cell";
8970
9832
  displayName?: string | undefined;
8971
- deploymentTarget?: string | undefined;
9833
+ targetSelector?: {
9834
+ primary: {
9835
+ set: string;
9836
+ policy: "least-loaded" | "round-robin" | "random";
9837
+ match?: {
9838
+ property: string;
9839
+ equals: {
9840
+ source: "environment";
9841
+ } | {
9842
+ name: string;
9843
+ source: "entityProperty";
9844
+ } | {
9845
+ value: string;
9846
+ source: "literal";
9847
+ };
9848
+ }[] | undefined;
9849
+ };
9850
+ roles?: Record<string, {
9851
+ set: string;
9852
+ policy: "least-loaded" | "round-robin" | "random";
9853
+ match?: {
9854
+ property: string;
9855
+ equals: {
9856
+ source: "environment";
9857
+ } | {
9858
+ name: string;
9859
+ source: "entityProperty";
9860
+ } | {
9861
+ value: string;
9862
+ source: "literal";
9863
+ };
9864
+ }[] | undefined;
9865
+ }> | undefined;
9866
+ } | undefined;
8972
9867
  membership?: {
8973
9868
  derivedFrom: {
8974
9869
  property: string;
@@ -8989,7 +9884,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8989
9884
  }[] | undefined;
8990
9885
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
8991
9886
  parentCells?: string[] | undefined;
8992
- deploymentTarget?: string | undefined;
9887
+ targetSelector?: {
9888
+ primary: {
9889
+ set: string;
9890
+ match?: {
9891
+ property: string;
9892
+ equals: {
9893
+ source: "environment";
9894
+ } | {
9895
+ name: string;
9896
+ source: "entityProperty";
9897
+ } | {
9898
+ value: string;
9899
+ source: "literal";
9900
+ };
9901
+ }[] | undefined;
9902
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
9903
+ };
9904
+ roles?: Record<string, {
9905
+ set: string;
9906
+ match?: {
9907
+ property: string;
9908
+ equals: {
9909
+ source: "environment";
9910
+ } | {
9911
+ name: string;
9912
+ source: "entityProperty";
9913
+ } | {
9914
+ value: string;
9915
+ source: "literal";
9916
+ };
9917
+ }[] | undefined;
9918
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
9919
+ }> | undefined;
9920
+ } | undefined;
8993
9921
  membership?: {
8994
9922
  derivedFrom: {
8995
9923
  property: string;
@@ -9016,7 +9944,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9016
9944
  property: string;
9017
9945
  value?: string | undefined;
9018
9946
  } | null;
9019
- deploymentTarget: string | null;
9947
+ targetSelector: {
9948
+ primary: {
9949
+ set: string;
9950
+ policy: "least-loaded" | "round-robin" | "random";
9951
+ match?: {
9952
+ property: string;
9953
+ equals: {
9954
+ source: "environment";
9955
+ } | {
9956
+ name: string;
9957
+ source: "entityProperty";
9958
+ } | {
9959
+ value: string;
9960
+ source: "literal";
9961
+ };
9962
+ }[] | undefined;
9963
+ };
9964
+ roles?: {
9965
+ [x: string]: {
9966
+ set: string;
9967
+ policy: "least-loaded" | "round-robin" | "random";
9968
+ match?: {
9969
+ property: string;
9970
+ equals: {
9971
+ source: "environment";
9972
+ } | {
9973
+ name: string;
9974
+ source: "entityProperty";
9975
+ } | {
9976
+ value: string;
9977
+ source: "literal";
9978
+ };
9979
+ }[] | undefined;
9980
+ };
9981
+ } | undefined;
9982
+ } | null;
9020
9983
  }>;
9021
9984
  update: SchemaFn<zod.ZodObject<{
9022
9985
  kind: zod.ZodLiteral<"Cell">;
@@ -9060,7 +10023,242 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9060
10023
  value?: string | undefined;
9061
10024
  };
9062
10025
  }>>;
9063
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
10026
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
10027
+ primary: zod.ZodObject<{
10028
+ set: zod.ZodString;
10029
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
10030
+ property: zod.ZodString;
10031
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
10032
+ source: zod.ZodLiteral<"environment">;
10033
+ }, "strip", zod.ZodTypeAny, {
10034
+ source: "environment";
10035
+ }, {
10036
+ source: "environment";
10037
+ }>, zod.ZodObject<{
10038
+ source: zod.ZodLiteral<"entityProperty">;
10039
+ name: zod.ZodString;
10040
+ }, "strip", zod.ZodTypeAny, {
10041
+ name: string;
10042
+ source: "entityProperty";
10043
+ }, {
10044
+ name: string;
10045
+ source: "entityProperty";
10046
+ }>, zod.ZodObject<{
10047
+ source: zod.ZodLiteral<"literal">;
10048
+ value: zod.ZodString;
10049
+ }, "strip", zod.ZodTypeAny, {
10050
+ value: string;
10051
+ source: "literal";
10052
+ }, {
10053
+ value: string;
10054
+ source: "literal";
10055
+ }>]>;
10056
+ }, "strip", zod.ZodTypeAny, {
10057
+ property: string;
10058
+ equals: {
10059
+ source: "environment";
10060
+ } | {
10061
+ name: string;
10062
+ source: "entityProperty";
10063
+ } | {
10064
+ value: string;
10065
+ source: "literal";
10066
+ };
10067
+ }, {
10068
+ property: string;
10069
+ equals: {
10070
+ source: "environment";
10071
+ } | {
10072
+ name: string;
10073
+ source: "entityProperty";
10074
+ } | {
10075
+ value: string;
10076
+ source: "literal";
10077
+ };
10078
+ }>, "many">>;
10079
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
10080
+ }, "strip", zod.ZodTypeAny, {
10081
+ set: string;
10082
+ policy: "least-loaded" | "round-robin" | "random";
10083
+ match?: {
10084
+ property: string;
10085
+ equals: {
10086
+ source: "environment";
10087
+ } | {
10088
+ name: string;
10089
+ source: "entityProperty";
10090
+ } | {
10091
+ value: string;
10092
+ source: "literal";
10093
+ };
10094
+ }[] | undefined;
10095
+ }, {
10096
+ set: string;
10097
+ match?: {
10098
+ property: string;
10099
+ equals: {
10100
+ source: "environment";
10101
+ } | {
10102
+ name: string;
10103
+ source: "entityProperty";
10104
+ } | {
10105
+ value: string;
10106
+ source: "literal";
10107
+ };
10108
+ }[] | undefined;
10109
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
10110
+ }>;
10111
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
10112
+ set: zod.ZodString;
10113
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
10114
+ property: zod.ZodString;
10115
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
10116
+ source: zod.ZodLiteral<"environment">;
10117
+ }, "strip", zod.ZodTypeAny, {
10118
+ source: "environment";
10119
+ }, {
10120
+ source: "environment";
10121
+ }>, zod.ZodObject<{
10122
+ source: zod.ZodLiteral<"entityProperty">;
10123
+ name: zod.ZodString;
10124
+ }, "strip", zod.ZodTypeAny, {
10125
+ name: string;
10126
+ source: "entityProperty";
10127
+ }, {
10128
+ name: string;
10129
+ source: "entityProperty";
10130
+ }>, zod.ZodObject<{
10131
+ source: zod.ZodLiteral<"literal">;
10132
+ value: zod.ZodString;
10133
+ }, "strip", zod.ZodTypeAny, {
10134
+ value: string;
10135
+ source: "literal";
10136
+ }, {
10137
+ value: string;
10138
+ source: "literal";
10139
+ }>]>;
10140
+ }, "strip", zod.ZodTypeAny, {
10141
+ property: string;
10142
+ equals: {
10143
+ source: "environment";
10144
+ } | {
10145
+ name: string;
10146
+ source: "entityProperty";
10147
+ } | {
10148
+ value: string;
10149
+ source: "literal";
10150
+ };
10151
+ }, {
10152
+ property: string;
10153
+ equals: {
10154
+ source: "environment";
10155
+ } | {
10156
+ name: string;
10157
+ source: "entityProperty";
10158
+ } | {
10159
+ value: string;
10160
+ source: "literal";
10161
+ };
10162
+ }>, "many">>;
10163
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
10164
+ }, "strip", zod.ZodTypeAny, {
10165
+ set: string;
10166
+ policy: "least-loaded" | "round-robin" | "random";
10167
+ match?: {
10168
+ property: string;
10169
+ equals: {
10170
+ source: "environment";
10171
+ } | {
10172
+ name: string;
10173
+ source: "entityProperty";
10174
+ } | {
10175
+ value: string;
10176
+ source: "literal";
10177
+ };
10178
+ }[] | undefined;
10179
+ }, {
10180
+ set: string;
10181
+ match?: {
10182
+ property: string;
10183
+ equals: {
10184
+ source: "environment";
10185
+ } | {
10186
+ name: string;
10187
+ source: "entityProperty";
10188
+ } | {
10189
+ value: string;
10190
+ source: "literal";
10191
+ };
10192
+ }[] | undefined;
10193
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
10194
+ }>>>;
10195
+ }, "strip", zod.ZodTypeAny, {
10196
+ primary: {
10197
+ set: string;
10198
+ policy: "least-loaded" | "round-robin" | "random";
10199
+ match?: {
10200
+ property: string;
10201
+ equals: {
10202
+ source: "environment";
10203
+ } | {
10204
+ name: string;
10205
+ source: "entityProperty";
10206
+ } | {
10207
+ value: string;
10208
+ source: "literal";
10209
+ };
10210
+ }[] | undefined;
10211
+ };
10212
+ roles?: Record<string, {
10213
+ set: string;
10214
+ policy: "least-loaded" | "round-robin" | "random";
10215
+ match?: {
10216
+ property: string;
10217
+ equals: {
10218
+ source: "environment";
10219
+ } | {
10220
+ name: string;
10221
+ source: "entityProperty";
10222
+ } | {
10223
+ value: string;
10224
+ source: "literal";
10225
+ };
10226
+ }[] | undefined;
10227
+ }> | undefined;
10228
+ }, {
10229
+ primary: {
10230
+ set: string;
10231
+ match?: {
10232
+ property: string;
10233
+ equals: {
10234
+ source: "environment";
10235
+ } | {
10236
+ name: string;
10237
+ source: "entityProperty";
10238
+ } | {
10239
+ value: string;
10240
+ source: "literal";
10241
+ };
10242
+ }[] | undefined;
10243
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
10244
+ };
10245
+ roles?: Record<string, {
10246
+ set: string;
10247
+ match?: {
10248
+ property: string;
10249
+ equals: {
10250
+ source: "environment";
10251
+ } | {
10252
+ name: string;
10253
+ source: "entityProperty";
10254
+ } | {
10255
+ value: string;
10256
+ source: "literal";
10257
+ };
10258
+ }[] | undefined;
10259
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
10260
+ }> | undefined;
10261
+ }>>;
9064
10262
  } & {
9065
10263
  orgId: zod.ZodString;
9066
10264
  projectId: zod.ZodString;
@@ -9074,11 +10272,44 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9074
10272
  metric: string;
9075
10273
  aggregate: "max" | "sum" | "avg" | "min";
9076
10274
  }[];
10275
+ kind: "Cell";
9077
10276
  placementPolicy: "least-loaded" | "round-robin" | "random";
9078
10277
  parentCells: string[];
9079
- kind: "Cell";
9080
10278
  displayName?: string | undefined;
9081
- deploymentTarget?: string | undefined;
10279
+ targetSelector?: {
10280
+ primary: {
10281
+ set: string;
10282
+ policy: "least-loaded" | "round-robin" | "random";
10283
+ match?: {
10284
+ property: string;
10285
+ equals: {
10286
+ source: "environment";
10287
+ } | {
10288
+ name: string;
10289
+ source: "entityProperty";
10290
+ } | {
10291
+ value: string;
10292
+ source: "literal";
10293
+ };
10294
+ }[] | undefined;
10295
+ };
10296
+ roles?: Record<string, {
10297
+ set: string;
10298
+ policy: "least-loaded" | "round-robin" | "random";
10299
+ match?: {
10300
+ property: string;
10301
+ equals: {
10302
+ source: "environment";
10303
+ } | {
10304
+ name: string;
10305
+ source: "entityProperty";
10306
+ } | {
10307
+ value: string;
10308
+ source: "literal";
10309
+ };
10310
+ }[] | undefined;
10311
+ }> | undefined;
10312
+ } | undefined;
9082
10313
  membership?: {
9083
10314
  derivedFrom: {
9084
10315
  property: string;
@@ -9099,7 +10330,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9099
10330
  }[] | undefined;
9100
10331
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
9101
10332
  parentCells?: string[] | undefined;
9102
- deploymentTarget?: string | undefined;
10333
+ targetSelector?: {
10334
+ primary: {
10335
+ set: string;
10336
+ match?: {
10337
+ property: string;
10338
+ equals: {
10339
+ source: "environment";
10340
+ } | {
10341
+ name: string;
10342
+ source: "entityProperty";
10343
+ } | {
10344
+ value: string;
10345
+ source: "literal";
10346
+ };
10347
+ }[] | undefined;
10348
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
10349
+ };
10350
+ roles?: Record<string, {
10351
+ set: string;
10352
+ match?: {
10353
+ property: string;
10354
+ equals: {
10355
+ source: "environment";
10356
+ } | {
10357
+ name: string;
10358
+ source: "entityProperty";
10359
+ } | {
10360
+ value: string;
10361
+ source: "literal";
10362
+ };
10363
+ }[] | undefined;
10364
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
10365
+ }> | undefined;
10366
+ } | undefined;
9103
10367
  membership?: {
9104
10368
  derivedFrom: {
9105
10369
  property: string;
@@ -9124,7 +10388,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9124
10388
  property: string;
9125
10389
  value?: string | undefined;
9126
10390
  } | null;
9127
- deploymentTarget: string | null;
10391
+ targetSelector: {
10392
+ primary: {
10393
+ set: string;
10394
+ policy: "least-loaded" | "round-robin" | "random";
10395
+ match?: {
10396
+ property: string;
10397
+ equals: {
10398
+ source: "environment";
10399
+ } | {
10400
+ name: string;
10401
+ source: "entityProperty";
10402
+ } | {
10403
+ value: string;
10404
+ source: "literal";
10405
+ };
10406
+ }[] | undefined;
10407
+ };
10408
+ roles?: {
10409
+ [x: string]: {
10410
+ set: string;
10411
+ policy: "least-loaded" | "round-robin" | "random";
10412
+ match?: {
10413
+ property: string;
10414
+ equals: {
10415
+ source: "environment";
10416
+ } | {
10417
+ name: string;
10418
+ source: "entityProperty";
10419
+ } | {
10420
+ value: string;
10421
+ source: "literal";
10422
+ };
10423
+ }[] | undefined;
10424
+ };
10425
+ } | undefined;
10426
+ } | null;
9128
10427
  createdAt: string;
9129
10428
  updatedAt: string;
9130
10429
  }>;
@@ -9284,11 +10583,15 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9284
10583
  title?: string | undefined;
9285
10584
  enum?: string[] | undefined;
9286
10585
  }[];
9287
- constraints: {
10586
+ constraints: ({
9288
10587
  type: "property-sum";
9289
10588
  property: string;
9290
10589
  leq: string;
9291
- }[];
10590
+ } | {
10591
+ type: "relationship-count";
10592
+ leq: string | number;
10593
+ })[];
10594
+ containment: boolean;
9292
10595
  createdAt: string;
9293
10596
  updatedAt: string;
9294
10597
  }[]>;
@@ -9322,11 +10625,15 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9322
10625
  title?: string | undefined;
9323
10626
  enum?: string[] | undefined;
9324
10627
  }[];
9325
- constraints: {
10628
+ constraints: ({
9326
10629
  type: "property-sum";
9327
10630
  property: string;
9328
10631
  leq: string;
9329
- }[];
10632
+ } | {
10633
+ type: "relationship-count";
10634
+ leq: string | number;
10635
+ })[];
10636
+ containment: boolean;
9330
10637
  createdAt: string;
9331
10638
  updatedAt: string;
9332
10639
  }>;
@@ -9363,7 +10670,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9363
10670
  title?: string | undefined;
9364
10671
  enum?: string[] | undefined;
9365
10672
  }>, "many">>>;
9366
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
10673
+ containment: zod.ZodOptional<zod.ZodBoolean>;
10674
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
9367
10675
  type: zod.ZodLiteral<"property-sum">;
9368
10676
  property: zod.ZodString;
9369
10677
  leq: zod.ZodString;
@@ -9375,7 +10683,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9375
10683
  type: "property-sum";
9376
10684
  property: string;
9377
10685
  leq: string;
9378
- }>, "many">>>;
10686
+ }>, zod.ZodObject<{
10687
+ type: zod.ZodLiteral<"relationship-count">;
10688
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
10689
+ }, "strip", zod.ZodTypeAny, {
10690
+ type: "relationship-count";
10691
+ leq: string | number;
10692
+ }, {
10693
+ type: "relationship-count";
10694
+ leq: string | number;
10695
+ }>]>, "many">>>;
9379
10696
  } & {
9380
10697
  orgId: zod.ZodString;
9381
10698
  projectId: zod.ZodString;
@@ -9394,15 +10711,19 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9394
10711
  title?: string | undefined;
9395
10712
  enum?: string[] | undefined;
9396
10713
  }[];
9397
- constraints: {
10714
+ constraints: ({
9398
10715
  type: "property-sum";
9399
10716
  property: string;
9400
10717
  leq: string;
9401
- }[];
9402
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
10718
+ } | {
10719
+ type: "relationship-count";
10720
+ leq: string | number;
10721
+ })[];
9403
10722
  kind: "RelationshipType";
10723
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
9404
10724
  to: string;
9405
10725
  displayName?: string | undefined;
10726
+ containment?: boolean | undefined;
9406
10727
  }, {
9407
10728
  name: string;
9408
10729
  from: string;
@@ -9421,12 +10742,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9421
10742
  title?: string | undefined;
9422
10743
  enum?: string[] | undefined;
9423
10744
  }[] | undefined;
9424
- constraints?: {
10745
+ constraints?: ({
9425
10746
  type: "property-sum";
9426
10747
  property: string;
9427
10748
  leq: string;
9428
- }[] | undefined;
10749
+ } | {
10750
+ type: "relationship-count";
10751
+ leq: string | number;
10752
+ })[] | undefined;
9429
10753
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
10754
+ containment?: boolean | undefined;
9430
10755
  }>, {
9431
10756
  name: string;
9432
10757
  createdAt: string;
@@ -9444,14 +10769,18 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9444
10769
  title?: string | undefined;
9445
10770
  enum?: string[] | undefined;
9446
10771
  }[];
9447
- constraints: {
10772
+ constraints: ({
9448
10773
  type: "property-sum";
9449
10774
  property: string;
9450
10775
  leq: string;
9451
- }[];
10776
+ } | {
10777
+ type: "relationship-count";
10778
+ leq: string | number;
10779
+ })[];
9452
10780
  cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
9453
10781
  fromEntityTypeName: string;
9454
10782
  toEntityTypeName: string;
10783
+ containment: boolean;
9455
10784
  }>;
9456
10785
  update: SchemaFn<zod.ZodObject<{
9457
10786
  kind: zod.ZodLiteral<"RelationshipType">;
@@ -9486,7 +10815,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9486
10815
  title?: string | undefined;
9487
10816
  enum?: string[] | undefined;
9488
10817
  }>, "many">>>;
9489
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
10818
+ containment: zod.ZodOptional<zod.ZodBoolean>;
10819
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
9490
10820
  type: zod.ZodLiteral<"property-sum">;
9491
10821
  property: zod.ZodString;
9492
10822
  leq: zod.ZodString;
@@ -9498,7 +10828,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9498
10828
  type: "property-sum";
9499
10829
  property: string;
9500
10830
  leq: string;
9501
- }>, "many">>>;
10831
+ }>, zod.ZodObject<{
10832
+ type: zod.ZodLiteral<"relationship-count">;
10833
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
10834
+ }, "strip", zod.ZodTypeAny, {
10835
+ type: "relationship-count";
10836
+ leq: string | number;
10837
+ }, {
10838
+ type: "relationship-count";
10839
+ leq: string | number;
10840
+ }>]>, "many">>>;
9502
10841
  } & {
9503
10842
  orgId: zod.ZodString;
9504
10843
  projectId: zod.ZodString;
@@ -9517,15 +10856,19 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9517
10856
  title?: string | undefined;
9518
10857
  enum?: string[] | undefined;
9519
10858
  }[];
9520
- constraints: {
10859
+ constraints: ({
9521
10860
  type: "property-sum";
9522
10861
  property: string;
9523
10862
  leq: string;
9524
- }[];
9525
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
10863
+ } | {
10864
+ type: "relationship-count";
10865
+ leq: string | number;
10866
+ })[];
9526
10867
  kind: "RelationshipType";
10868
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
9527
10869
  to: string;
9528
10870
  displayName?: string | undefined;
10871
+ containment?: boolean | undefined;
9529
10872
  }, {
9530
10873
  name: string;
9531
10874
  from: string;
@@ -9544,12 +10887,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9544
10887
  title?: string | undefined;
9545
10888
  enum?: string[] | undefined;
9546
10889
  }[] | undefined;
9547
- constraints?: {
10890
+ constraints?: ({
9548
10891
  type: "property-sum";
9549
10892
  property: string;
9550
10893
  leq: string;
9551
- }[] | undefined;
10894
+ } | {
10895
+ type: "relationship-count";
10896
+ leq: string | number;
10897
+ })[] | undefined;
9552
10898
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
10899
+ containment?: boolean | undefined;
9553
10900
  }>, {
9554
10901
  orgId: string;
9555
10902
  projectId: string;
@@ -9568,11 +10915,15 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9568
10915
  title?: string | undefined;
9569
10916
  enum?: string[] | undefined;
9570
10917
  }[];
9571
- constraints: {
10918
+ constraints: ({
9572
10919
  type: "property-sum";
9573
10920
  property: string;
9574
10921
  leq: string;
9575
- }[];
10922
+ } | {
10923
+ type: "relationship-count";
10924
+ leq: string | number;
10925
+ })[];
10926
+ containment: boolean;
9576
10927
  createdAt: string;
9577
10928
  updatedAt: string;
9578
10929
  }>;
@@ -13220,6 +14571,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
13220
14571
  name: string;
13221
14572
  orgId: string;
13222
14573
  projectId: string;
14574
+ kind: "Action";
13223
14575
  conditions: {
13224
14576
  value: string | number | boolean | string[];
13225
14577
  field: string;
@@ -13332,7 +14684,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
13332
14684
  onFailure: string;
13333
14685
  to: string;
13334
14686
  };
13335
- kind: "Action";
13336
14687
  associatedWith: {
13337
14688
  scope: "collection" | "instance";
13338
14689
  entityType: string;
@@ -13656,6 +15007,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
13656
15007
  name: string;
13657
15008
  orgId: string;
13658
15009
  projectId: string;
15010
+ kind: "Action";
13659
15011
  operation: {
13660
15012
  type: "create-entity";
13661
15013
  entityType: string;
@@ -13755,7 +15107,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
13755
15107
  onFailure: string;
13756
15108
  to: string;
13757
15109
  };
13758
- kind: "Action";
13759
15110
  associatedWith: {
13760
15111
  scope: "collection" | "instance";
13761
15112
  entityType: string;
@@ -17053,6 +18404,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
17053
18404
  name: string;
17054
18405
  orgId: string;
17055
18406
  projectId: string;
18407
+ kind: "Action";
17056
18408
  conditions: {
17057
18409
  value: string | number | boolean | string[];
17058
18410
  field: string;
@@ -17165,7 +18517,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
17165
18517
  onFailure: string;
17166
18518
  to: string;
17167
18519
  };
17168
- kind: "Action";
17169
18520
  associatedWith: {
17170
18521
  scope: "collection" | "instance";
17171
18522
  entityType: string;
@@ -17489,6 +18840,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
17489
18840
  name: string;
17490
18841
  orgId: string;
17491
18842
  projectId: string;
18843
+ kind: "Action";
17492
18844
  operation: {
17493
18845
  type: "create-entity";
17494
18846
  entityType: string;
@@ -17588,7 +18940,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
17588
18940
  onFailure: string;
17589
18941
  to: string;
17590
18942
  };
17591
- kind: "Action";
17592
18943
  associatedWith: {
17593
18944
  scope: "collection" | "instance";
17594
18945
  entityType: string;
@@ -18843,6 +20194,19 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
18843
20194
  yellowSeconds?: number | undefined;
18844
20195
  }>>;
18845
20196
  applier: zod.ZodOptional<zod.ZodString>;
20197
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
20198
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
20199
+ address: zod.ZodString;
20200
+ provider: zod.ZodString;
20201
+ }, "strip", zod.ZodTypeAny, {
20202
+ provider: string;
20203
+ kind: "data" | "resource" | "module";
20204
+ address: string;
20205
+ }, {
20206
+ provider: string;
20207
+ kind: "data" | "resource" | "module";
20208
+ address: string;
20209
+ }>, "many">>;
18846
20210
  }, "strip", zod.ZodTypeAny, {
18847
20211
  name: string;
18848
20212
  states: string[];
@@ -18877,9 +20241,14 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
18877
20241
  max: number;
18878
20242
  metric: string;
18879
20243
  }[];
18880
- syncTracked: boolean;
18881
20244
  kind: "EntityType";
20245
+ syncTracked: boolean;
18882
20246
  displayName?: string | undefined;
20247
+ composition?: {
20248
+ provider: string;
20249
+ kind: "data" | "resource" | "module";
20250
+ address: string;
20251
+ }[] | undefined;
18883
20252
  syncFreshness?: {
18884
20253
  greenSeconds?: number | undefined;
18885
20254
  yellowSeconds?: number | undefined;
@@ -18921,6 +20290,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
18921
20290
  max: number;
18922
20291
  metric: string;
18923
20292
  }[] | undefined;
20293
+ composition?: {
20294
+ provider: string;
20295
+ kind: "data" | "resource" | "module";
20296
+ address: string;
20297
+ }[] | undefined;
18924
20298
  syncTracked?: boolean | undefined;
18925
20299
  syncFreshness?: {
18926
20300
  greenSeconds?: number | undefined;
@@ -18969,20 +20343,288 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
18969
20343
  value?: string | undefined;
18970
20344
  };
18971
20345
  }>>;
18972
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
18973
- }, "strip", zod.ZodTypeAny, {
18974
- name: string;
20346
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
20347
+ primary: zod.ZodObject<{
20348
+ set: zod.ZodString;
20349
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
20350
+ property: zod.ZodString;
20351
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
20352
+ source: zod.ZodLiteral<"environment">;
20353
+ }, "strip", zod.ZodTypeAny, {
20354
+ source: "environment";
20355
+ }, {
20356
+ source: "environment";
20357
+ }>, zod.ZodObject<{
20358
+ source: zod.ZodLiteral<"entityProperty">;
20359
+ name: zod.ZodString;
20360
+ }, "strip", zod.ZodTypeAny, {
20361
+ name: string;
20362
+ source: "entityProperty";
20363
+ }, {
20364
+ name: string;
20365
+ source: "entityProperty";
20366
+ }>, zod.ZodObject<{
20367
+ source: zod.ZodLiteral<"literal">;
20368
+ value: zod.ZodString;
20369
+ }, "strip", zod.ZodTypeAny, {
20370
+ value: string;
20371
+ source: "literal";
20372
+ }, {
20373
+ value: string;
20374
+ source: "literal";
20375
+ }>]>;
20376
+ }, "strip", zod.ZodTypeAny, {
20377
+ property: string;
20378
+ equals: {
20379
+ source: "environment";
20380
+ } | {
20381
+ name: string;
20382
+ source: "entityProperty";
20383
+ } | {
20384
+ value: string;
20385
+ source: "literal";
20386
+ };
20387
+ }, {
20388
+ property: string;
20389
+ equals: {
20390
+ source: "environment";
20391
+ } | {
20392
+ name: string;
20393
+ source: "entityProperty";
20394
+ } | {
20395
+ value: string;
20396
+ source: "literal";
20397
+ };
20398
+ }>, "many">>;
20399
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
20400
+ }, "strip", zod.ZodTypeAny, {
20401
+ set: string;
20402
+ policy: "least-loaded" | "round-robin" | "random";
20403
+ match?: {
20404
+ property: string;
20405
+ equals: {
20406
+ source: "environment";
20407
+ } | {
20408
+ name: string;
20409
+ source: "entityProperty";
20410
+ } | {
20411
+ value: string;
20412
+ source: "literal";
20413
+ };
20414
+ }[] | undefined;
20415
+ }, {
20416
+ set: string;
20417
+ match?: {
20418
+ property: string;
20419
+ equals: {
20420
+ source: "environment";
20421
+ } | {
20422
+ name: string;
20423
+ source: "entityProperty";
20424
+ } | {
20425
+ value: string;
20426
+ source: "literal";
20427
+ };
20428
+ }[] | undefined;
20429
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20430
+ }>;
20431
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
20432
+ set: zod.ZodString;
20433
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
20434
+ property: zod.ZodString;
20435
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
20436
+ source: zod.ZodLiteral<"environment">;
20437
+ }, "strip", zod.ZodTypeAny, {
20438
+ source: "environment";
20439
+ }, {
20440
+ source: "environment";
20441
+ }>, zod.ZodObject<{
20442
+ source: zod.ZodLiteral<"entityProperty">;
20443
+ name: zod.ZodString;
20444
+ }, "strip", zod.ZodTypeAny, {
20445
+ name: string;
20446
+ source: "entityProperty";
20447
+ }, {
20448
+ name: string;
20449
+ source: "entityProperty";
20450
+ }>, zod.ZodObject<{
20451
+ source: zod.ZodLiteral<"literal">;
20452
+ value: zod.ZodString;
20453
+ }, "strip", zod.ZodTypeAny, {
20454
+ value: string;
20455
+ source: "literal";
20456
+ }, {
20457
+ value: string;
20458
+ source: "literal";
20459
+ }>]>;
20460
+ }, "strip", zod.ZodTypeAny, {
20461
+ property: string;
20462
+ equals: {
20463
+ source: "environment";
20464
+ } | {
20465
+ name: string;
20466
+ source: "entityProperty";
20467
+ } | {
20468
+ value: string;
20469
+ source: "literal";
20470
+ };
20471
+ }, {
20472
+ property: string;
20473
+ equals: {
20474
+ source: "environment";
20475
+ } | {
20476
+ name: string;
20477
+ source: "entityProperty";
20478
+ } | {
20479
+ value: string;
20480
+ source: "literal";
20481
+ };
20482
+ }>, "many">>;
20483
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
20484
+ }, "strip", zod.ZodTypeAny, {
20485
+ set: string;
20486
+ policy: "least-loaded" | "round-robin" | "random";
20487
+ match?: {
20488
+ property: string;
20489
+ equals: {
20490
+ source: "environment";
20491
+ } | {
20492
+ name: string;
20493
+ source: "entityProperty";
20494
+ } | {
20495
+ value: string;
20496
+ source: "literal";
20497
+ };
20498
+ }[] | undefined;
20499
+ }, {
20500
+ set: string;
20501
+ match?: {
20502
+ property: string;
20503
+ equals: {
20504
+ source: "environment";
20505
+ } | {
20506
+ name: string;
20507
+ source: "entityProperty";
20508
+ } | {
20509
+ value: string;
20510
+ source: "literal";
20511
+ };
20512
+ }[] | undefined;
20513
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20514
+ }>>>;
20515
+ }, "strip", zod.ZodTypeAny, {
20516
+ primary: {
20517
+ set: string;
20518
+ policy: "least-loaded" | "round-robin" | "random";
20519
+ match?: {
20520
+ property: string;
20521
+ equals: {
20522
+ source: "environment";
20523
+ } | {
20524
+ name: string;
20525
+ source: "entityProperty";
20526
+ } | {
20527
+ value: string;
20528
+ source: "literal";
20529
+ };
20530
+ }[] | undefined;
20531
+ };
20532
+ roles?: Record<string, {
20533
+ set: string;
20534
+ policy: "least-loaded" | "round-robin" | "random";
20535
+ match?: {
20536
+ property: string;
20537
+ equals: {
20538
+ source: "environment";
20539
+ } | {
20540
+ name: string;
20541
+ source: "entityProperty";
20542
+ } | {
20543
+ value: string;
20544
+ source: "literal";
20545
+ };
20546
+ }[] | undefined;
20547
+ }> | undefined;
20548
+ }, {
20549
+ primary: {
20550
+ set: string;
20551
+ match?: {
20552
+ property: string;
20553
+ equals: {
20554
+ source: "environment";
20555
+ } | {
20556
+ name: string;
20557
+ source: "entityProperty";
20558
+ } | {
20559
+ value: string;
20560
+ source: "literal";
20561
+ };
20562
+ }[] | undefined;
20563
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20564
+ };
20565
+ roles?: Record<string, {
20566
+ set: string;
20567
+ match?: {
20568
+ property: string;
20569
+ equals: {
20570
+ source: "environment";
20571
+ } | {
20572
+ name: string;
20573
+ source: "entityProperty";
20574
+ } | {
20575
+ value: string;
20576
+ source: "literal";
20577
+ };
20578
+ }[] | undefined;
20579
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20580
+ }> | undefined;
20581
+ }>>;
20582
+ }, "strip", zod.ZodTypeAny, {
20583
+ name: string;
18975
20584
  entityType: string;
18976
20585
  constraints: {
18977
20586
  max: number;
18978
20587
  metric: string;
18979
20588
  aggregate: "max" | "sum" | "avg" | "min";
18980
20589
  }[];
20590
+ kind: "Cell";
18981
20591
  placementPolicy: "least-loaded" | "round-robin" | "random";
18982
20592
  parentCells: string[];
18983
- kind: "Cell";
18984
20593
  displayName?: string | undefined;
18985
- deploymentTarget?: string | undefined;
20594
+ targetSelector?: {
20595
+ primary: {
20596
+ set: string;
20597
+ policy: "least-loaded" | "round-robin" | "random";
20598
+ match?: {
20599
+ property: string;
20600
+ equals: {
20601
+ source: "environment";
20602
+ } | {
20603
+ name: string;
20604
+ source: "entityProperty";
20605
+ } | {
20606
+ value: string;
20607
+ source: "literal";
20608
+ };
20609
+ }[] | undefined;
20610
+ };
20611
+ roles?: Record<string, {
20612
+ set: string;
20613
+ policy: "least-loaded" | "round-robin" | "random";
20614
+ match?: {
20615
+ property: string;
20616
+ equals: {
20617
+ source: "environment";
20618
+ } | {
20619
+ name: string;
20620
+ source: "entityProperty";
20621
+ } | {
20622
+ value: string;
20623
+ source: "literal";
20624
+ };
20625
+ }[] | undefined;
20626
+ }> | undefined;
20627
+ } | undefined;
18986
20628
  membership?: {
18987
20629
  derivedFrom: {
18988
20630
  property: string;
@@ -19001,7 +20643,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19001
20643
  }[] | undefined;
19002
20644
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
19003
20645
  parentCells?: string[] | undefined;
19004
- deploymentTarget?: string | undefined;
20646
+ targetSelector?: {
20647
+ primary: {
20648
+ set: string;
20649
+ match?: {
20650
+ property: string;
20651
+ equals: {
20652
+ source: "environment";
20653
+ } | {
20654
+ name: string;
20655
+ source: "entityProperty";
20656
+ } | {
20657
+ value: string;
20658
+ source: "literal";
20659
+ };
20660
+ }[] | undefined;
20661
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20662
+ };
20663
+ roles?: Record<string, {
20664
+ set: string;
20665
+ match?: {
20666
+ property: string;
20667
+ equals: {
20668
+ source: "environment";
20669
+ } | {
20670
+ name: string;
20671
+ source: "entityProperty";
20672
+ } | {
20673
+ value: string;
20674
+ source: "literal";
20675
+ };
20676
+ }[] | undefined;
20677
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
20678
+ }> | undefined;
20679
+ } | undefined;
19005
20680
  membership?: {
19006
20681
  derivedFrom: {
19007
20682
  property: string;
@@ -19041,7 +20716,8 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19041
20716
  title?: string | undefined;
19042
20717
  enum?: string[] | undefined;
19043
20718
  }>, "many">>>;
19044
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
20719
+ containment: zod.ZodOptional<zod.ZodBoolean>;
20720
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
19045
20721
  type: zod.ZodLiteral<"property-sum">;
19046
20722
  property: zod.ZodString;
19047
20723
  leq: zod.ZodString;
@@ -19053,7 +20729,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19053
20729
  type: "property-sum";
19054
20730
  property: string;
19055
20731
  leq: string;
19056
- }>, "many">>>;
20732
+ }>, zod.ZodObject<{
20733
+ type: zod.ZodLiteral<"relationship-count">;
20734
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
20735
+ }, "strip", zod.ZodTypeAny, {
20736
+ type: "relationship-count";
20737
+ leq: string | number;
20738
+ }, {
20739
+ type: "relationship-count";
20740
+ leq: string | number;
20741
+ }>]>, "many">>>;
19057
20742
  }, "strip", zod.ZodTypeAny, {
19058
20743
  name: string;
19059
20744
  from: string;
@@ -19067,15 +20752,19 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19067
20752
  title?: string | undefined;
19068
20753
  enum?: string[] | undefined;
19069
20754
  }[];
19070
- constraints: {
20755
+ constraints: ({
19071
20756
  type: "property-sum";
19072
20757
  property: string;
19073
20758
  leq: string;
19074
- }[];
19075
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
20759
+ } | {
20760
+ type: "relationship-count";
20761
+ leq: string | number;
20762
+ })[];
19076
20763
  kind: "RelationshipType";
20764
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
19077
20765
  to: string;
19078
20766
  displayName?: string | undefined;
20767
+ containment?: boolean | undefined;
19079
20768
  }, {
19080
20769
  name: string;
19081
20770
  from: string;
@@ -19092,12 +20781,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19092
20781
  title?: string | undefined;
19093
20782
  enum?: string[] | undefined;
19094
20783
  }[] | undefined;
19095
- constraints?: {
20784
+ constraints?: ({
19096
20785
  type: "property-sum";
19097
20786
  property: string;
19098
20787
  leq: string;
19099
- }[] | undefined;
20788
+ } | {
20789
+ type: "relationship-count";
20790
+ leq: string | number;
20791
+ })[] | undefined;
19100
20792
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
20793
+ containment?: boolean | undefined;
19101
20794
  }>, zod.ZodObject<{
19102
20795
  kind: zod.ZodLiteral<"Action">;
19103
20796
  name: zod.ZodString;
@@ -21558,6 +23251,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
21558
23251
  enum?: string[] | undefined;
21559
23252
  }[];
21560
23253
  name: string;
23254
+ kind: "Action";
21561
23255
  conditions: {
21562
23256
  value: string | number | boolean | string[];
21563
23257
  field: string;
@@ -21670,7 +23364,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
21670
23364
  onFailure: string;
21671
23365
  to: string;
21672
23366
  };
21673
- kind: "Action";
21674
23367
  associatedWith: {
21675
23368
  scope: "collection" | "instance";
21676
23369
  entityType: string;
@@ -21992,6 +23685,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
21992
23685
  mutatesProperty?: string | undefined;
21993
23686
  }, {
21994
23687
  name: string;
23688
+ kind: "Action";
21995
23689
  operation: {
21996
23690
  type: "create-entity";
21997
23691
  entityType: string;
@@ -22091,7 +23785,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
22091
23785
  onFailure: string;
22092
23786
  to: string;
22093
23787
  };
22094
- kind: "Action";
22095
23788
  associatedWith: {
22096
23789
  scope: "collection" | "instance";
22097
23790
  entityType: string;
@@ -22500,34 +24193,64 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
22500
24193
  kind: zod.ZodLiteral<"DeploymentTarget">;
22501
24194
  name: zod.ZodString;
22502
24195
  displayName: zod.ZodOptional<zod.ZodString>;
22503
- provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
24196
+ set: zod.ZodOptional<zod.ZodString>;
24197
+ provider: zod.ZodOptional<zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>>;
22504
24198
  config: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>>;
24199
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
24200
+ capacity: zod.ZodOptional<zod.ZodNumber>;
22505
24201
  credentialRef: zod.ZodOptional<zod.ZodString>;
22506
24202
  }, "strip", zod.ZodTypeAny, {
22507
24203
  name: string;
22508
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
24204
+ properties: Record<string, string>;
22509
24205
  kind: "DeploymentTarget";
22510
24206
  config: Record<string, unknown>;
24207
+ set?: string | undefined;
24208
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
22511
24209
  displayName?: string | undefined;
22512
24210
  credentialRef?: string | undefined;
24211
+ capacity?: number | undefined;
22513
24212
  }, {
22514
24213
  name: string;
22515
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
22516
24214
  kind: "DeploymentTarget";
24215
+ set?: string | undefined;
24216
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
22517
24217
  displayName?: string | undefined;
24218
+ properties?: Record<string, string> | undefined;
22518
24219
  config?: Record<string, unknown> | undefined;
22519
24220
  credentialRef?: string | undefined;
24221
+ capacity?: number | undefined;
24222
+ }>, zod.ZodObject<{
24223
+ kind: zod.ZodLiteral<"DeploymentTargetSet">;
24224
+ name: zod.ZodString;
24225
+ displayName: zod.ZodOptional<zod.ZodString>;
24226
+ provider: zod.ZodEnum<["aws", "gcp", "s3-backend", "tfc-workspace", "generic"]>;
24227
+ properties: zod.ZodDefault<zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
24228
+ credentialRef: zod.ZodOptional<zod.ZodString>;
24229
+ }, "strip", zod.ZodTypeAny, {
24230
+ name: string;
24231
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
24232
+ properties: Record<string, string>;
24233
+ kind: "DeploymentTargetSet";
24234
+ displayName?: string | undefined;
24235
+ credentialRef?: string | undefined;
24236
+ }, {
24237
+ name: string;
24238
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
24239
+ kind: "DeploymentTargetSet";
24240
+ displayName?: string | undefined;
24241
+ properties?: Record<string, string> | undefined;
24242
+ credentialRef?: string | undefined;
22520
24243
  }>]>, "many">;
22521
24244
  force: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
22522
24245
  deletions: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
22523
- kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget"]>;
24246
+ kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget", "DeploymentTargetSet"]>;
22524
24247
  name: zod.ZodString;
22525
24248
  }, "strip", zod.ZodTypeAny, {
22526
24249
  name: string;
22527
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
24250
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
22528
24251
  }, {
22529
24252
  name: string;
22530
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
24253
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
22531
24254
  }>, "many">>>;
22532
24255
  dryRun: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
22533
24256
  } & {
@@ -22549,6 +24272,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
22549
24272
  enum?: string[] | undefined;
22550
24273
  }[];
22551
24274
  name: string;
24275
+ kind: "Action";
22552
24276
  conditions: {
22553
24277
  value: string | number | boolean | string[];
22554
24278
  field: string;
@@ -22661,7 +24385,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
22661
24385
  onFailure: string;
22662
24386
  to: string;
22663
24387
  };
22664
- kind: "Action";
22665
24388
  associatedWith: {
22666
24389
  scope: "collection" | "instance";
22667
24390
  entityType: string;
@@ -23015,9 +24738,14 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23015
24738
  max: number;
23016
24739
  metric: string;
23017
24740
  }[];
23018
- syncTracked: boolean;
23019
24741
  kind: "EntityType";
24742
+ syncTracked: boolean;
23020
24743
  displayName?: string | undefined;
24744
+ composition?: {
24745
+ provider: string;
24746
+ kind: "data" | "resource" | "module";
24747
+ address: string;
24748
+ }[] | undefined;
23021
24749
  syncFreshness?: {
23022
24750
  greenSeconds?: number | undefined;
23023
24751
  yellowSeconds?: number | undefined;
@@ -23031,11 +24759,44 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23031
24759
  metric: string;
23032
24760
  aggregate: "max" | "sum" | "avg" | "min";
23033
24761
  }[];
24762
+ kind: "Cell";
23034
24763
  placementPolicy: "least-loaded" | "round-robin" | "random";
23035
24764
  parentCells: string[];
23036
- kind: "Cell";
23037
24765
  displayName?: string | undefined;
23038
- deploymentTarget?: string | undefined;
24766
+ targetSelector?: {
24767
+ primary: {
24768
+ set: string;
24769
+ policy: "least-loaded" | "round-robin" | "random";
24770
+ match?: {
24771
+ property: string;
24772
+ equals: {
24773
+ source: "environment";
24774
+ } | {
24775
+ name: string;
24776
+ source: "entityProperty";
24777
+ } | {
24778
+ value: string;
24779
+ source: "literal";
24780
+ };
24781
+ }[] | undefined;
24782
+ };
24783
+ roles?: Record<string, {
24784
+ set: string;
24785
+ policy: "least-loaded" | "round-robin" | "random";
24786
+ match?: {
24787
+ property: string;
24788
+ equals: {
24789
+ source: "environment";
24790
+ } | {
24791
+ name: string;
24792
+ source: "entityProperty";
24793
+ } | {
24794
+ value: string;
24795
+ source: "literal";
24796
+ };
24797
+ }[] | undefined;
24798
+ }> | undefined;
24799
+ } | undefined;
23039
24800
  membership?: {
23040
24801
  derivedFrom: {
23041
24802
  property: string;
@@ -23055,15 +24816,19 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23055
24816
  title?: string | undefined;
23056
24817
  enum?: string[] | undefined;
23057
24818
  }[];
23058
- constraints: {
24819
+ constraints: ({
23059
24820
  type: "property-sum";
23060
24821
  property: string;
23061
24822
  leq: string;
23062
- }[];
23063
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
24823
+ } | {
24824
+ type: "relationship-count";
24825
+ leq: string | number;
24826
+ })[];
23064
24827
  kind: "RelationshipType";
24828
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
23065
24829
  to: string;
23066
24830
  displayName?: string | undefined;
24831
+ containment?: boolean | undefined;
23067
24832
  } | {
23068
24833
  name: string;
23069
24834
  kind: "Secret";
@@ -23087,15 +24852,25 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23087
24852
  state?: string | undefined;
23088
24853
  } | {
23089
24854
  name: string;
23090
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
24855
+ properties: Record<string, string>;
23091
24856
  kind: "DeploymentTarget";
23092
24857
  config: Record<string, unknown>;
24858
+ set?: string | undefined;
24859
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
24860
+ displayName?: string | undefined;
24861
+ credentialRef?: string | undefined;
24862
+ capacity?: number | undefined;
24863
+ } | {
24864
+ name: string;
24865
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
24866
+ properties: Record<string, string>;
24867
+ kind: "DeploymentTargetSet";
23093
24868
  displayName?: string | undefined;
23094
24869
  credentialRef?: string | undefined;
23095
24870
  })[];
23096
24871
  deletions: {
23097
24872
  name: string;
23098
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
24873
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
23099
24874
  }[];
23100
24875
  force: boolean;
23101
24876
  dryRun: boolean;
@@ -23105,6 +24880,7 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23105
24880
  envName: string;
23106
24881
  items: ({
23107
24882
  name: string;
24883
+ kind: "Action";
23108
24884
  operation: {
23109
24885
  type: "create-entity";
23110
24886
  entityType: string;
@@ -23204,7 +24980,6 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23204
24980
  onFailure: string;
23205
24981
  to: string;
23206
24982
  };
23207
- kind: "Action";
23208
24983
  associatedWith: {
23209
24984
  scope: "collection" | "instance";
23210
24985
  entityType: string;
@@ -23582,6 +25357,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23582
25357
  max: number;
23583
25358
  metric: string;
23584
25359
  }[] | undefined;
25360
+ composition?: {
25361
+ provider: string;
25362
+ kind: "data" | "resource" | "module";
25363
+ address: string;
25364
+ }[] | undefined;
23585
25365
  syncTracked?: boolean | undefined;
23586
25366
  syncFreshness?: {
23587
25367
  greenSeconds?: number | undefined;
@@ -23600,7 +25380,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23600
25380
  }[] | undefined;
23601
25381
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
23602
25382
  parentCells?: string[] | undefined;
23603
- deploymentTarget?: string | undefined;
25383
+ targetSelector?: {
25384
+ primary: {
25385
+ set: string;
25386
+ match?: {
25387
+ property: string;
25388
+ equals: {
25389
+ source: "environment";
25390
+ } | {
25391
+ name: string;
25392
+ source: "entityProperty";
25393
+ } | {
25394
+ value: string;
25395
+ source: "literal";
25396
+ };
25397
+ }[] | undefined;
25398
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
25399
+ };
25400
+ roles?: Record<string, {
25401
+ set: string;
25402
+ match?: {
25403
+ property: string;
25404
+ equals: {
25405
+ source: "environment";
25406
+ } | {
25407
+ name: string;
25408
+ source: "entityProperty";
25409
+ } | {
25410
+ value: string;
25411
+ source: "literal";
25412
+ };
25413
+ }[] | undefined;
25414
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
25415
+ }> | undefined;
25416
+ } | undefined;
23604
25417
  membership?: {
23605
25418
  derivedFrom: {
23606
25419
  property: string;
@@ -23623,12 +25436,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23623
25436
  title?: string | undefined;
23624
25437
  enum?: string[] | undefined;
23625
25438
  }[] | undefined;
23626
- constraints?: {
25439
+ constraints?: ({
23627
25440
  type: "property-sum";
23628
25441
  property: string;
23629
25442
  leq: string;
23630
- }[] | undefined;
25443
+ } | {
25444
+ type: "relationship-count";
25445
+ leq: string | number;
25446
+ })[] | undefined;
23631
25447
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
25448
+ containment?: boolean | undefined;
23632
25449
  } | {
23633
25450
  name: string;
23634
25451
  kind: "Secret";
@@ -23652,15 +25469,25 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23652
25469
  labels?: Record<string, string> | undefined;
23653
25470
  } | {
23654
25471
  name: string;
23655
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
23656
25472
  kind: "DeploymentTarget";
25473
+ set?: string | undefined;
25474
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
23657
25475
  displayName?: string | undefined;
25476
+ properties?: Record<string, string> | undefined;
23658
25477
  config?: Record<string, unknown> | undefined;
23659
25478
  credentialRef?: string | undefined;
25479
+ capacity?: number | undefined;
25480
+ } | {
25481
+ name: string;
25482
+ provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
25483
+ kind: "DeploymentTargetSet";
25484
+ displayName?: string | undefined;
25485
+ properties?: Record<string, string> | undefined;
25486
+ credentialRef?: string | undefined;
23660
25487
  })[];
23661
25488
  deletions?: {
23662
25489
  name: string;
23663
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
25490
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
23664
25491
  }[] | undefined;
23665
25492
  force?: boolean | undefined;
23666
25493
  dryRun?: boolean | undefined;
@@ -24849,6 +26676,29 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
24849
26676
  decidedBy: string | null;
24850
26677
  }>;
24851
26678
  };
26679
+ resolveSource: SchemaFn<zod.ZodObject<{
26680
+ orgId: zod.ZodString;
26681
+ projectId: zod.ZodString;
26682
+ kind: zod.ZodLiteral<"registry">;
26683
+ ref: zod.ZodString;
26684
+ version: zod.ZodOptional<zod.ZodString>;
26685
+ }, "strip", zod.ZodTypeAny, {
26686
+ ref: string;
26687
+ orgId: string;
26688
+ projectId: string;
26689
+ kind: "registry";
26690
+ version?: string | undefined;
26691
+ }, {
26692
+ ref: string;
26693
+ orgId: string;
26694
+ projectId: string;
26695
+ kind: "registry";
26696
+ version?: string | undefined;
26697
+ }>, {
26698
+ name: string;
26699
+ inputs: _terrantula_types.RegistryInput[];
26700
+ outputs: _terrantula_types.RegistryOutput[];
26701
+ }>;
24852
26702
  exportCatalog: SchemaFn<zod.ZodObject<{
24853
26703
  orgId: zod.ZodString;
24854
26704
  projectId: zod.ZodString;
@@ -24961,23 +26811,58 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
24961
26811
  property: string;
24962
26812
  value?: string | undefined;
24963
26813
  } | null;
24964
- deploymentTarget: string | null;
24965
- createdAt: string;
24966
- updatedAt: string;
24967
- }[]>;
24968
- get: SchemaFn<zod.ZodObject<{
24969
- orgId: zod.ZodString;
24970
- projectId: zod.ZodString;
24971
- name: zod.ZodString;
24972
- }, "strip", zod.ZodTypeAny, {
24973
- name: string;
24974
- orgId: string;
24975
- projectId: string;
24976
- }, {
24977
- name: string;
24978
- orgId: string;
24979
- projectId: string;
24980
- }>, {
26814
+ targetSelector: {
26815
+ primary: {
26816
+ set: string;
26817
+ policy: "least-loaded" | "round-robin" | "random";
26818
+ match?: {
26819
+ property: string;
26820
+ equals: {
26821
+ source: "environment";
26822
+ } | {
26823
+ name: string;
26824
+ source: "entityProperty";
26825
+ } | {
26826
+ value: string;
26827
+ source: "literal";
26828
+ };
26829
+ }[] | undefined;
26830
+ };
26831
+ roles?: {
26832
+ [x: string]: {
26833
+ set: string;
26834
+ policy: "least-loaded" | "round-robin" | "random";
26835
+ match?: {
26836
+ property: string;
26837
+ equals: {
26838
+ source: "environment";
26839
+ } | {
26840
+ name: string;
26841
+ source: "entityProperty";
26842
+ } | {
26843
+ value: string;
26844
+ source: "literal";
26845
+ };
26846
+ }[] | undefined;
26847
+ };
26848
+ } | undefined;
26849
+ } | null;
26850
+ createdAt: string;
26851
+ updatedAt: string;
26852
+ }[]>;
26853
+ get: SchemaFn<zod.ZodObject<{
26854
+ orgId: zod.ZodString;
26855
+ projectId: zod.ZodString;
26856
+ name: zod.ZodString;
26857
+ }, "strip", zod.ZodTypeAny, {
26858
+ name: string;
26859
+ orgId: string;
26860
+ projectId: string;
26861
+ }, {
26862
+ name: string;
26863
+ orgId: string;
26864
+ projectId: string;
26865
+ }>, {
24981
26866
  orgId: string;
24982
26867
  projectId: string;
24983
26868
  name: string;
@@ -24995,7 +26880,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
24995
26880
  property: string;
24996
26881
  value?: string | undefined;
24997
26882
  } | null;
24998
- deploymentTarget: string | null;
26883
+ targetSelector: {
26884
+ primary: {
26885
+ set: string;
26886
+ policy: "least-loaded" | "round-robin" | "random";
26887
+ match?: {
26888
+ property: string;
26889
+ equals: {
26890
+ source: "environment";
26891
+ } | {
26892
+ name: string;
26893
+ source: "entityProperty";
26894
+ } | {
26895
+ value: string;
26896
+ source: "literal";
26897
+ };
26898
+ }[] | undefined;
26899
+ };
26900
+ roles?: {
26901
+ [x: string]: {
26902
+ set: string;
26903
+ policy: "least-loaded" | "round-robin" | "random";
26904
+ match?: {
26905
+ property: string;
26906
+ equals: {
26907
+ source: "environment";
26908
+ } | {
26909
+ name: string;
26910
+ source: "entityProperty";
26911
+ } | {
26912
+ value: string;
26913
+ source: "literal";
26914
+ };
26915
+ }[] | undefined;
26916
+ };
26917
+ } | undefined;
26918
+ } | null;
24999
26919
  createdAt: string;
25000
26920
  updatedAt: string;
25001
26921
  }>;
@@ -25041,7 +26961,242 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25041
26961
  value?: string | undefined;
25042
26962
  };
25043
26963
  }>>;
25044
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
26964
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
26965
+ primary: zod.ZodObject<{
26966
+ set: zod.ZodString;
26967
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
26968
+ property: zod.ZodString;
26969
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
26970
+ source: zod.ZodLiteral<"environment">;
26971
+ }, "strip", zod.ZodTypeAny, {
26972
+ source: "environment";
26973
+ }, {
26974
+ source: "environment";
26975
+ }>, zod.ZodObject<{
26976
+ source: zod.ZodLiteral<"entityProperty">;
26977
+ name: zod.ZodString;
26978
+ }, "strip", zod.ZodTypeAny, {
26979
+ name: string;
26980
+ source: "entityProperty";
26981
+ }, {
26982
+ name: string;
26983
+ source: "entityProperty";
26984
+ }>, zod.ZodObject<{
26985
+ source: zod.ZodLiteral<"literal">;
26986
+ value: zod.ZodString;
26987
+ }, "strip", zod.ZodTypeAny, {
26988
+ value: string;
26989
+ source: "literal";
26990
+ }, {
26991
+ value: string;
26992
+ source: "literal";
26993
+ }>]>;
26994
+ }, "strip", zod.ZodTypeAny, {
26995
+ property: string;
26996
+ equals: {
26997
+ source: "environment";
26998
+ } | {
26999
+ name: string;
27000
+ source: "entityProperty";
27001
+ } | {
27002
+ value: string;
27003
+ source: "literal";
27004
+ };
27005
+ }, {
27006
+ property: string;
27007
+ equals: {
27008
+ source: "environment";
27009
+ } | {
27010
+ name: string;
27011
+ source: "entityProperty";
27012
+ } | {
27013
+ value: string;
27014
+ source: "literal";
27015
+ };
27016
+ }>, "many">>;
27017
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
27018
+ }, "strip", zod.ZodTypeAny, {
27019
+ set: string;
27020
+ policy: "least-loaded" | "round-robin" | "random";
27021
+ match?: {
27022
+ property: string;
27023
+ equals: {
27024
+ source: "environment";
27025
+ } | {
27026
+ name: string;
27027
+ source: "entityProperty";
27028
+ } | {
27029
+ value: string;
27030
+ source: "literal";
27031
+ };
27032
+ }[] | undefined;
27033
+ }, {
27034
+ set: string;
27035
+ match?: {
27036
+ property: string;
27037
+ equals: {
27038
+ source: "environment";
27039
+ } | {
27040
+ name: string;
27041
+ source: "entityProperty";
27042
+ } | {
27043
+ value: string;
27044
+ source: "literal";
27045
+ };
27046
+ }[] | undefined;
27047
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27048
+ }>;
27049
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
27050
+ set: zod.ZodString;
27051
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
27052
+ property: zod.ZodString;
27053
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
27054
+ source: zod.ZodLiteral<"environment">;
27055
+ }, "strip", zod.ZodTypeAny, {
27056
+ source: "environment";
27057
+ }, {
27058
+ source: "environment";
27059
+ }>, zod.ZodObject<{
27060
+ source: zod.ZodLiteral<"entityProperty">;
27061
+ name: zod.ZodString;
27062
+ }, "strip", zod.ZodTypeAny, {
27063
+ name: string;
27064
+ source: "entityProperty";
27065
+ }, {
27066
+ name: string;
27067
+ source: "entityProperty";
27068
+ }>, zod.ZodObject<{
27069
+ source: zod.ZodLiteral<"literal">;
27070
+ value: zod.ZodString;
27071
+ }, "strip", zod.ZodTypeAny, {
27072
+ value: string;
27073
+ source: "literal";
27074
+ }, {
27075
+ value: string;
27076
+ source: "literal";
27077
+ }>]>;
27078
+ }, "strip", zod.ZodTypeAny, {
27079
+ property: string;
27080
+ equals: {
27081
+ source: "environment";
27082
+ } | {
27083
+ name: string;
27084
+ source: "entityProperty";
27085
+ } | {
27086
+ value: string;
27087
+ source: "literal";
27088
+ };
27089
+ }, {
27090
+ property: string;
27091
+ equals: {
27092
+ source: "environment";
27093
+ } | {
27094
+ name: string;
27095
+ source: "entityProperty";
27096
+ } | {
27097
+ value: string;
27098
+ source: "literal";
27099
+ };
27100
+ }>, "many">>;
27101
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
27102
+ }, "strip", zod.ZodTypeAny, {
27103
+ set: string;
27104
+ policy: "least-loaded" | "round-robin" | "random";
27105
+ match?: {
27106
+ property: string;
27107
+ equals: {
27108
+ source: "environment";
27109
+ } | {
27110
+ name: string;
27111
+ source: "entityProperty";
27112
+ } | {
27113
+ value: string;
27114
+ source: "literal";
27115
+ };
27116
+ }[] | undefined;
27117
+ }, {
27118
+ set: string;
27119
+ match?: {
27120
+ property: string;
27121
+ equals: {
27122
+ source: "environment";
27123
+ } | {
27124
+ name: string;
27125
+ source: "entityProperty";
27126
+ } | {
27127
+ value: string;
27128
+ source: "literal";
27129
+ };
27130
+ }[] | undefined;
27131
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27132
+ }>>>;
27133
+ }, "strip", zod.ZodTypeAny, {
27134
+ primary: {
27135
+ set: string;
27136
+ policy: "least-loaded" | "round-robin" | "random";
27137
+ match?: {
27138
+ property: string;
27139
+ equals: {
27140
+ source: "environment";
27141
+ } | {
27142
+ name: string;
27143
+ source: "entityProperty";
27144
+ } | {
27145
+ value: string;
27146
+ source: "literal";
27147
+ };
27148
+ }[] | undefined;
27149
+ };
27150
+ roles?: Record<string, {
27151
+ set: string;
27152
+ policy: "least-loaded" | "round-robin" | "random";
27153
+ match?: {
27154
+ property: string;
27155
+ equals: {
27156
+ source: "environment";
27157
+ } | {
27158
+ name: string;
27159
+ source: "entityProperty";
27160
+ } | {
27161
+ value: string;
27162
+ source: "literal";
27163
+ };
27164
+ }[] | undefined;
27165
+ }> | undefined;
27166
+ }, {
27167
+ primary: {
27168
+ set: string;
27169
+ match?: {
27170
+ property: string;
27171
+ equals: {
27172
+ source: "environment";
27173
+ } | {
27174
+ name: string;
27175
+ source: "entityProperty";
27176
+ } | {
27177
+ value: string;
27178
+ source: "literal";
27179
+ };
27180
+ }[] | undefined;
27181
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27182
+ };
27183
+ roles?: Record<string, {
27184
+ set: string;
27185
+ match?: {
27186
+ property: string;
27187
+ equals: {
27188
+ source: "environment";
27189
+ } | {
27190
+ name: string;
27191
+ source: "entityProperty";
27192
+ } | {
27193
+ value: string;
27194
+ source: "literal";
27195
+ };
27196
+ }[] | undefined;
27197
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27198
+ }> | undefined;
27199
+ }>>;
25045
27200
  } & {
25046
27201
  orgId: zod.ZodString;
25047
27202
  projectId: zod.ZodString;
@@ -25055,11 +27210,44 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25055
27210
  metric: string;
25056
27211
  aggregate: "max" | "sum" | "avg" | "min";
25057
27212
  }[];
27213
+ kind: "Cell";
25058
27214
  placementPolicy: "least-loaded" | "round-robin" | "random";
25059
27215
  parentCells: string[];
25060
- kind: "Cell";
25061
27216
  displayName?: string | undefined;
25062
- deploymentTarget?: string | undefined;
27217
+ targetSelector?: {
27218
+ primary: {
27219
+ set: string;
27220
+ policy: "least-loaded" | "round-robin" | "random";
27221
+ match?: {
27222
+ property: string;
27223
+ equals: {
27224
+ source: "environment";
27225
+ } | {
27226
+ name: string;
27227
+ source: "entityProperty";
27228
+ } | {
27229
+ value: string;
27230
+ source: "literal";
27231
+ };
27232
+ }[] | undefined;
27233
+ };
27234
+ roles?: Record<string, {
27235
+ set: string;
27236
+ policy: "least-loaded" | "round-robin" | "random";
27237
+ match?: {
27238
+ property: string;
27239
+ equals: {
27240
+ source: "environment";
27241
+ } | {
27242
+ name: string;
27243
+ source: "entityProperty";
27244
+ } | {
27245
+ value: string;
27246
+ source: "literal";
27247
+ };
27248
+ }[] | undefined;
27249
+ }> | undefined;
27250
+ } | undefined;
25063
27251
  membership?: {
25064
27252
  derivedFrom: {
25065
27253
  property: string;
@@ -25080,7 +27268,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25080
27268
  }[] | undefined;
25081
27269
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
25082
27270
  parentCells?: string[] | undefined;
25083
- deploymentTarget?: string | undefined;
27271
+ targetSelector?: {
27272
+ primary: {
27273
+ set: string;
27274
+ match?: {
27275
+ property: string;
27276
+ equals: {
27277
+ source: "environment";
27278
+ } | {
27279
+ name: string;
27280
+ source: "entityProperty";
27281
+ } | {
27282
+ value: string;
27283
+ source: "literal";
27284
+ };
27285
+ }[] | undefined;
27286
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27287
+ };
27288
+ roles?: Record<string, {
27289
+ set: string;
27290
+ match?: {
27291
+ property: string;
27292
+ equals: {
27293
+ source: "environment";
27294
+ } | {
27295
+ name: string;
27296
+ source: "entityProperty";
27297
+ } | {
27298
+ value: string;
27299
+ source: "literal";
27300
+ };
27301
+ }[] | undefined;
27302
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27303
+ }> | undefined;
27304
+ } | undefined;
25084
27305
  membership?: {
25085
27306
  derivedFrom: {
25086
27307
  property: string;
@@ -25107,7 +27328,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25107
27328
  property: string;
25108
27329
  value?: string | undefined;
25109
27330
  } | null;
25110
- deploymentTarget: string | null;
27331
+ targetSelector: {
27332
+ primary: {
27333
+ set: string;
27334
+ policy: "least-loaded" | "round-robin" | "random";
27335
+ match?: {
27336
+ property: string;
27337
+ equals: {
27338
+ source: "environment";
27339
+ } | {
27340
+ name: string;
27341
+ source: "entityProperty";
27342
+ } | {
27343
+ value: string;
27344
+ source: "literal";
27345
+ };
27346
+ }[] | undefined;
27347
+ };
27348
+ roles?: {
27349
+ [x: string]: {
27350
+ set: string;
27351
+ policy: "least-loaded" | "round-robin" | "random";
27352
+ match?: {
27353
+ property: string;
27354
+ equals: {
27355
+ source: "environment";
27356
+ } | {
27357
+ name: string;
27358
+ source: "entityProperty";
27359
+ } | {
27360
+ value: string;
27361
+ source: "literal";
27362
+ };
27363
+ }[] | undefined;
27364
+ };
27365
+ } | undefined;
27366
+ } | null;
25111
27367
  }>;
25112
27368
  update: SchemaFn<zod.ZodObject<{
25113
27369
  kind: zod.ZodLiteral<"Cell">;
@@ -25151,7 +27407,242 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25151
27407
  value?: string | undefined;
25152
27408
  };
25153
27409
  }>>;
25154
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
27410
+ targetSelector: zod.ZodOptional<zod.ZodObject<{
27411
+ primary: zod.ZodObject<{
27412
+ set: zod.ZodString;
27413
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
27414
+ property: zod.ZodString;
27415
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
27416
+ source: zod.ZodLiteral<"environment">;
27417
+ }, "strip", zod.ZodTypeAny, {
27418
+ source: "environment";
27419
+ }, {
27420
+ source: "environment";
27421
+ }>, zod.ZodObject<{
27422
+ source: zod.ZodLiteral<"entityProperty">;
27423
+ name: zod.ZodString;
27424
+ }, "strip", zod.ZodTypeAny, {
27425
+ name: string;
27426
+ source: "entityProperty";
27427
+ }, {
27428
+ name: string;
27429
+ source: "entityProperty";
27430
+ }>, zod.ZodObject<{
27431
+ source: zod.ZodLiteral<"literal">;
27432
+ value: zod.ZodString;
27433
+ }, "strip", zod.ZodTypeAny, {
27434
+ value: string;
27435
+ source: "literal";
27436
+ }, {
27437
+ value: string;
27438
+ source: "literal";
27439
+ }>]>;
27440
+ }, "strip", zod.ZodTypeAny, {
27441
+ property: string;
27442
+ equals: {
27443
+ source: "environment";
27444
+ } | {
27445
+ name: string;
27446
+ source: "entityProperty";
27447
+ } | {
27448
+ value: string;
27449
+ source: "literal";
27450
+ };
27451
+ }, {
27452
+ property: string;
27453
+ equals: {
27454
+ source: "environment";
27455
+ } | {
27456
+ name: string;
27457
+ source: "entityProperty";
27458
+ } | {
27459
+ value: string;
27460
+ source: "literal";
27461
+ };
27462
+ }>, "many">>;
27463
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
27464
+ }, "strip", zod.ZodTypeAny, {
27465
+ set: string;
27466
+ policy: "least-loaded" | "round-robin" | "random";
27467
+ match?: {
27468
+ property: string;
27469
+ equals: {
27470
+ source: "environment";
27471
+ } | {
27472
+ name: string;
27473
+ source: "entityProperty";
27474
+ } | {
27475
+ value: string;
27476
+ source: "literal";
27477
+ };
27478
+ }[] | undefined;
27479
+ }, {
27480
+ set: string;
27481
+ match?: {
27482
+ property: string;
27483
+ equals: {
27484
+ source: "environment";
27485
+ } | {
27486
+ name: string;
27487
+ source: "entityProperty";
27488
+ } | {
27489
+ value: string;
27490
+ source: "literal";
27491
+ };
27492
+ }[] | undefined;
27493
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27494
+ }>;
27495
+ roles: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
27496
+ set: zod.ZodString;
27497
+ match: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
27498
+ property: zod.ZodString;
27499
+ equals: zod.ZodDiscriminatedUnion<"source", [zod.ZodObject<{
27500
+ source: zod.ZodLiteral<"environment">;
27501
+ }, "strip", zod.ZodTypeAny, {
27502
+ source: "environment";
27503
+ }, {
27504
+ source: "environment";
27505
+ }>, zod.ZodObject<{
27506
+ source: zod.ZodLiteral<"entityProperty">;
27507
+ name: zod.ZodString;
27508
+ }, "strip", zod.ZodTypeAny, {
27509
+ name: string;
27510
+ source: "entityProperty";
27511
+ }, {
27512
+ name: string;
27513
+ source: "entityProperty";
27514
+ }>, zod.ZodObject<{
27515
+ source: zod.ZodLiteral<"literal">;
27516
+ value: zod.ZodString;
27517
+ }, "strip", zod.ZodTypeAny, {
27518
+ value: string;
27519
+ source: "literal";
27520
+ }, {
27521
+ value: string;
27522
+ source: "literal";
27523
+ }>]>;
27524
+ }, "strip", zod.ZodTypeAny, {
27525
+ property: string;
27526
+ equals: {
27527
+ source: "environment";
27528
+ } | {
27529
+ name: string;
27530
+ source: "entityProperty";
27531
+ } | {
27532
+ value: string;
27533
+ source: "literal";
27534
+ };
27535
+ }, {
27536
+ property: string;
27537
+ equals: {
27538
+ source: "environment";
27539
+ } | {
27540
+ name: string;
27541
+ source: "entityProperty";
27542
+ } | {
27543
+ value: string;
27544
+ source: "literal";
27545
+ };
27546
+ }>, "many">>;
27547
+ policy: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<["least-loaded", "round-robin", "random"]>>>;
27548
+ }, "strip", zod.ZodTypeAny, {
27549
+ set: string;
27550
+ policy: "least-loaded" | "round-robin" | "random";
27551
+ match?: {
27552
+ property: string;
27553
+ equals: {
27554
+ source: "environment";
27555
+ } | {
27556
+ name: string;
27557
+ source: "entityProperty";
27558
+ } | {
27559
+ value: string;
27560
+ source: "literal";
27561
+ };
27562
+ }[] | undefined;
27563
+ }, {
27564
+ set: string;
27565
+ match?: {
27566
+ property: string;
27567
+ equals: {
27568
+ source: "environment";
27569
+ } | {
27570
+ name: string;
27571
+ source: "entityProperty";
27572
+ } | {
27573
+ value: string;
27574
+ source: "literal";
27575
+ };
27576
+ }[] | undefined;
27577
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27578
+ }>>>;
27579
+ }, "strip", zod.ZodTypeAny, {
27580
+ primary: {
27581
+ set: string;
27582
+ policy: "least-loaded" | "round-robin" | "random";
27583
+ match?: {
27584
+ property: string;
27585
+ equals: {
27586
+ source: "environment";
27587
+ } | {
27588
+ name: string;
27589
+ source: "entityProperty";
27590
+ } | {
27591
+ value: string;
27592
+ source: "literal";
27593
+ };
27594
+ }[] | undefined;
27595
+ };
27596
+ roles?: Record<string, {
27597
+ set: string;
27598
+ policy: "least-loaded" | "round-robin" | "random";
27599
+ match?: {
27600
+ property: string;
27601
+ equals: {
27602
+ source: "environment";
27603
+ } | {
27604
+ name: string;
27605
+ source: "entityProperty";
27606
+ } | {
27607
+ value: string;
27608
+ source: "literal";
27609
+ };
27610
+ }[] | undefined;
27611
+ }> | undefined;
27612
+ }, {
27613
+ primary: {
27614
+ set: string;
27615
+ match?: {
27616
+ property: string;
27617
+ equals: {
27618
+ source: "environment";
27619
+ } | {
27620
+ name: string;
27621
+ source: "entityProperty";
27622
+ } | {
27623
+ value: string;
27624
+ source: "literal";
27625
+ };
27626
+ }[] | undefined;
27627
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27628
+ };
27629
+ roles?: Record<string, {
27630
+ set: string;
27631
+ match?: {
27632
+ property: string;
27633
+ equals: {
27634
+ source: "environment";
27635
+ } | {
27636
+ name: string;
27637
+ source: "entityProperty";
27638
+ } | {
27639
+ value: string;
27640
+ source: "literal";
27641
+ };
27642
+ }[] | undefined;
27643
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27644
+ }> | undefined;
27645
+ }>>;
25155
27646
  } & {
25156
27647
  orgId: zod.ZodString;
25157
27648
  projectId: zod.ZodString;
@@ -25165,11 +27656,44 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25165
27656
  metric: string;
25166
27657
  aggregate: "max" | "sum" | "avg" | "min";
25167
27658
  }[];
27659
+ kind: "Cell";
25168
27660
  placementPolicy: "least-loaded" | "round-robin" | "random";
25169
27661
  parentCells: string[];
25170
- kind: "Cell";
25171
27662
  displayName?: string | undefined;
25172
- deploymentTarget?: string | undefined;
27663
+ targetSelector?: {
27664
+ primary: {
27665
+ set: string;
27666
+ policy: "least-loaded" | "round-robin" | "random";
27667
+ match?: {
27668
+ property: string;
27669
+ equals: {
27670
+ source: "environment";
27671
+ } | {
27672
+ name: string;
27673
+ source: "entityProperty";
27674
+ } | {
27675
+ value: string;
27676
+ source: "literal";
27677
+ };
27678
+ }[] | undefined;
27679
+ };
27680
+ roles?: Record<string, {
27681
+ set: string;
27682
+ policy: "least-loaded" | "round-robin" | "random";
27683
+ match?: {
27684
+ property: string;
27685
+ equals: {
27686
+ source: "environment";
27687
+ } | {
27688
+ name: string;
27689
+ source: "entityProperty";
27690
+ } | {
27691
+ value: string;
27692
+ source: "literal";
27693
+ };
27694
+ }[] | undefined;
27695
+ }> | undefined;
27696
+ } | undefined;
25173
27697
  membership?: {
25174
27698
  derivedFrom: {
25175
27699
  property: string;
@@ -25190,7 +27714,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25190
27714
  }[] | undefined;
25191
27715
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
25192
27716
  parentCells?: string[] | undefined;
25193
- deploymentTarget?: string | undefined;
27717
+ targetSelector?: {
27718
+ primary: {
27719
+ set: string;
27720
+ match?: {
27721
+ property: string;
27722
+ equals: {
27723
+ source: "environment";
27724
+ } | {
27725
+ name: string;
27726
+ source: "entityProperty";
27727
+ } | {
27728
+ value: string;
27729
+ source: "literal";
27730
+ };
27731
+ }[] | undefined;
27732
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27733
+ };
27734
+ roles?: Record<string, {
27735
+ set: string;
27736
+ match?: {
27737
+ property: string;
27738
+ equals: {
27739
+ source: "environment";
27740
+ } | {
27741
+ name: string;
27742
+ source: "entityProperty";
27743
+ } | {
27744
+ value: string;
27745
+ source: "literal";
27746
+ };
27747
+ }[] | undefined;
27748
+ policy?: "least-loaded" | "round-robin" | "random" | undefined;
27749
+ }> | undefined;
27750
+ } | undefined;
25194
27751
  membership?: {
25195
27752
  derivedFrom: {
25196
27753
  property: string;
@@ -25215,7 +27772,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25215
27772
  property: string;
25216
27773
  value?: string | undefined;
25217
27774
  } | null;
25218
- deploymentTarget: string | null;
27775
+ targetSelector: {
27776
+ primary: {
27777
+ set: string;
27778
+ policy: "least-loaded" | "round-robin" | "random";
27779
+ match?: {
27780
+ property: string;
27781
+ equals: {
27782
+ source: "environment";
27783
+ } | {
27784
+ name: string;
27785
+ source: "entityProperty";
27786
+ } | {
27787
+ value: string;
27788
+ source: "literal";
27789
+ };
27790
+ }[] | undefined;
27791
+ };
27792
+ roles?: {
27793
+ [x: string]: {
27794
+ set: string;
27795
+ policy: "least-loaded" | "round-robin" | "random";
27796
+ match?: {
27797
+ property: string;
27798
+ equals: {
27799
+ source: "environment";
27800
+ } | {
27801
+ name: string;
27802
+ source: "entityProperty";
27803
+ } | {
27804
+ value: string;
27805
+ source: "literal";
27806
+ };
27807
+ }[] | undefined;
27808
+ };
27809
+ } | undefined;
27810
+ } | null;
25219
27811
  createdAt: string;
25220
27812
  updatedAt: string;
25221
27813
  }>;