@terrantula/sdk 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
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.mjs';
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.mjs';
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.mjs';
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.mjs';
3
3
  import * as _terrantula_types from '@terrantula/types';
4
4
  export { RegistryInput, RegistryOutput } from '@terrantula/types';
5
5
  import * as zod from 'zod';
@@ -2146,11 +2146,16 @@ declare const projectApp: hono_hono_base.HonoBase<{
2146
2146
  projectId: string;
2147
2147
  name: string;
2148
2148
  displayName: string | null;
2149
- provider: string;
2149
+ provider: string | null;
2150
2150
  config: {
2151
2151
  [x: string]: hono_utils_types.JSONValue;
2152
2152
  };
2153
2153
  credentialRef: string | null;
2154
+ set: string | null;
2155
+ properties: {
2156
+ [x: string]: string;
2157
+ };
2158
+ capacity: number | null;
2154
2159
  createdAt: string;
2155
2160
  updatedAt: string;
2156
2161
  }[];
@@ -2170,15 +2175,20 @@ declare const projectApp: hono_hono_base.HonoBase<{
2170
2175
  output: {
2171
2176
  name: string;
2172
2177
  createdAt: string;
2178
+ set: string | null;
2173
2179
  updatedAt: string;
2174
2180
  orgId: string;
2175
2181
  projectId: string;
2176
- provider: string;
2182
+ provider: string | null;
2177
2183
  displayName: string | null;
2184
+ properties: {
2185
+ [x: string]: string;
2186
+ };
2178
2187
  config: {
2179
2188
  [x: string]: hono_utils_types.JSONValue;
2180
2189
  };
2181
2190
  credentialRef: string | null;
2191
+ capacity: number | null;
2182
2192
  };
2183
2193
  outputFormat: "json";
2184
2194
  status: 201;
@@ -2197,11 +2207,16 @@ declare const projectApp: hono_hono_base.HonoBase<{
2197
2207
  projectId: string;
2198
2208
  name: string;
2199
2209
  displayName: string | null;
2200
- provider: string;
2210
+ provider: string | null;
2201
2211
  config: {
2202
2212
  [x: string]: hono_utils_types.JSONValue;
2203
2213
  };
2204
2214
  credentialRef: string | null;
2215
+ set: string | null;
2216
+ properties: {
2217
+ [x: string]: string;
2218
+ };
2219
+ capacity: number | null;
2205
2220
  createdAt: string;
2206
2221
  updatedAt: string;
2207
2222
  };
@@ -2227,11 +2242,16 @@ declare const projectApp: hono_hono_base.HonoBase<{
2227
2242
  projectId: string;
2228
2243
  name: string;
2229
2244
  displayName: string | null;
2230
- provider: string;
2245
+ provider: string | null;
2231
2246
  config: {
2232
2247
  [x: string]: hono_utils_types.JSONValue;
2233
2248
  };
2234
2249
  credentialRef: string | null;
2250
+ set: string | null;
2251
+ properties: {
2252
+ [x: string]: string;
2253
+ };
2254
+ capacity: number | null;
2235
2255
  createdAt: string;
2236
2256
  updatedAt: string;
2237
2257
  };
@@ -2256,6 +2276,98 @@ declare const projectApp: hono_hono_base.HonoBase<{
2256
2276
  };
2257
2277
  };
2258
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<{
2259
2371
  "/": {
2260
2372
  $get: {
2261
2373
  input: {};
@@ -2277,7 +2389,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2277
2389
  property: string;
2278
2390
  value?: string | undefined;
2279
2391
  } | null;
2280
- 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;
2281
2428
  createdAt: string;
2282
2429
  updatedAt: string;
2283
2430
  }[];
@@ -2314,7 +2461,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2314
2461
  property: string;
2315
2462
  value?: string | undefined;
2316
2463
  } | null;
2317
- 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;
2318
2500
  };
2319
2501
  outputFormat: "json";
2320
2502
  status: 201;
@@ -2346,7 +2528,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2346
2528
  property: string;
2347
2529
  value?: string | undefined;
2348
2530
  } | null;
2349
- 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;
2350
2567
  createdAt: string;
2351
2568
  updatedAt: string;
2352
2569
  };
@@ -2385,7 +2602,42 @@ declare const projectApp: hono_hono_base.HonoBase<{
2385
2602
  property: string;
2386
2603
  value?: string | undefined;
2387
2604
  } | null;
2388
- 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;
2389
2641
  createdAt: string;
2390
2642
  updatedAt: string;
2391
2643
  };
@@ -8513,11 +8765,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8513
8765
  projectId: string;
8514
8766
  name: string;
8515
8767
  displayName: string | null;
8516
- provider: string;
8768
+ provider: string | null;
8517
8769
  config: {
8518
8770
  [x: string]: hono_utils_types.JSONValue;
8519
8771
  };
8520
8772
  credentialRef: string | null;
8773
+ set: string | null;
8774
+ properties: {
8775
+ [x: string]: string;
8776
+ };
8777
+ capacity: number | null;
8521
8778
  createdAt: string;
8522
8779
  updatedAt: string;
8523
8780
  }[]>;
@@ -8538,11 +8795,16 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8538
8795
  projectId: string;
8539
8796
  name: string;
8540
8797
  displayName: string | null;
8541
- provider: string;
8798
+ provider: string | null;
8542
8799
  config: {
8543
8800
  [x: string]: hono_utils_types.JSONValue;
8544
8801
  };
8545
8802
  credentialRef: string | null;
8803
+ set: string | null;
8804
+ properties: {
8805
+ [x: string]: string;
8806
+ };
8807
+ capacity: number | null;
8546
8808
  createdAt: string;
8547
8809
  updatedAt: string;
8548
8810
  }>;
@@ -8550,8 +8812,11 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8550
8812
  kind: zod.ZodLiteral<"DeploymentTarget">;
8551
8813
  name: zod.ZodString;
8552
8814
  displayName: zod.ZodOptional<zod.ZodString>;
8553
- 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"]>>;
8554
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>;
8555
8820
  credentialRef: zod.ZodOptional<zod.ZodString>;
8556
8821
  } & {
8557
8822
  orgId: zod.ZodString;
@@ -8560,39 +8825,53 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8560
8825
  name: string;
8561
8826
  orgId: string;
8562
8827
  projectId: string;
8563
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8828
+ properties: Record<string, string>;
8564
8829
  kind: "DeploymentTarget";
8565
8830
  config: Record<string, unknown>;
8831
+ set?: string | undefined;
8832
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8566
8833
  displayName?: string | undefined;
8567
8834
  credentialRef?: string | undefined;
8835
+ capacity?: number | undefined;
8568
8836
  }, {
8569
8837
  name: string;
8570
8838
  orgId: string;
8571
8839
  projectId: string;
8572
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8573
8840
  kind: "DeploymentTarget";
8841
+ set?: string | undefined;
8842
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8574
8843
  displayName?: string | undefined;
8844
+ properties?: Record<string, string> | undefined;
8575
8845
  config?: Record<string, unknown> | undefined;
8576
8846
  credentialRef?: string | undefined;
8847
+ capacity?: number | undefined;
8577
8848
  }>, {
8578
8849
  name: string;
8579
8850
  createdAt: string;
8851
+ set: string | null;
8580
8852
  updatedAt: string;
8581
8853
  orgId: string;
8582
8854
  projectId: string;
8583
- provider: string;
8855
+ provider: string | null;
8584
8856
  displayName: string | null;
8857
+ properties: {
8858
+ [x: string]: string;
8859
+ };
8585
8860
  config: {
8586
8861
  [x: string]: hono_utils_types.JSONValue;
8587
8862
  };
8588
8863
  credentialRef: string | null;
8864
+ capacity: number | null;
8589
8865
  }>;
8590
8866
  update: SchemaFn<zod.ZodObject<{
8591
8867
  kind: zod.ZodLiteral<"DeploymentTarget">;
8592
8868
  name: zod.ZodString;
8593
8869
  displayName: zod.ZodOptional<zod.ZodString>;
8594
- 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"]>>;
8595
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>;
8596
8875
  credentialRef: zod.ZodOptional<zod.ZodString>;
8597
8876
  } & {
8598
8877
  orgId: zod.ZodString;
@@ -8601,30 +8880,41 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8601
8880
  name: string;
8602
8881
  orgId: string;
8603
8882
  projectId: string;
8604
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8883
+ properties: Record<string, string>;
8605
8884
  kind: "DeploymentTarget";
8606
8885
  config: Record<string, unknown>;
8886
+ set?: string | undefined;
8887
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8607
8888
  displayName?: string | undefined;
8608
8889
  credentialRef?: string | undefined;
8890
+ capacity?: number | undefined;
8609
8891
  }, {
8610
8892
  name: string;
8611
8893
  orgId: string;
8612
8894
  projectId: string;
8613
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
8614
8895
  kind: "DeploymentTarget";
8896
+ set?: string | undefined;
8897
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
8615
8898
  displayName?: string | undefined;
8899
+ properties?: Record<string, string> | undefined;
8616
8900
  config?: Record<string, unknown> | undefined;
8617
8901
  credentialRef?: string | undefined;
8902
+ capacity?: number | undefined;
8618
8903
  }>, {
8619
8904
  orgId: string;
8620
8905
  projectId: string;
8621
8906
  name: string;
8622
8907
  displayName: string | null;
8623
- provider: string;
8908
+ provider: string | null;
8624
8909
  config: {
8625
8910
  [x: string]: hono_utils_types.JSONValue;
8626
8911
  };
8627
8912
  credentialRef: string | null;
8913
+ set: string | null;
8914
+ properties: {
8915
+ [x: string]: string;
8916
+ };
8917
+ capacity: number | null;
8628
8918
  createdAt: string;
8629
8919
  updatedAt: string;
8630
8920
  }>;
@@ -8645,101 +8935,207 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
8645
8935
  name: string;
8646
8936
  }>;
8647
8937
  };
8648
- entities: {
8938
+ deploymentTargetSets: {
8649
8939
  list: SchemaFn<zod.ZodObject<{
8650
8940
  orgId: zod.ZodString;
8651
8941
  projectId: zod.ZodString;
8652
- envName: zod.ZodString;
8653
- entityType: zod.ZodOptional<zod.ZodString>;
8654
- state: zod.ZodOptional<zod.ZodString>;
8655
- limit: zod.ZodOptional<zod.ZodNumber>;
8656
- cursor: zod.ZodOptional<zod.ZodString>;
8657
8942
  }, "strip", zod.ZodTypeAny, {
8658
8943
  orgId: string;
8659
8944
  projectId: string;
8660
- envName: string;
8661
- limit?: number | undefined;
8662
- state?: string | undefined;
8663
- entityType?: string | undefined;
8664
- cursor?: string | undefined;
8665
8945
  }, {
8666
8946
  orgId: string;
8667
8947
  projectId: string;
8668
- envName: string;
8669
- limit?: number | undefined;
8670
- state?: string | undefined;
8671
- entityType?: string | undefined;
8672
- cursor?: string | undefined;
8673
8948
  }>, {
8674
- id: string;
8675
- entityTypeName: string;
8949
+ orgId: string;
8950
+ projectId: string;
8676
8951
  name: string;
8677
- state: string;
8678
- properties: hono_utils_types.JSONValue;
8679
- labels: hono_utils_types.JSONValue;
8680
- lastSyncedAt: string | null;
8681
- syncSource: string | null;
8952
+ displayName: string | null;
8953
+ provider: string;
8954
+ properties: {
8955
+ [x: string]: string;
8956
+ };
8957
+ credentialRef: string | null;
8682
8958
  createdAt: string;
8683
8959
  updatedAt: string;
8684
- orgId: string;
8685
- projectId: string;
8686
- envId: string;
8687
8960
  }[]>;
8688
- facets: SchemaFn<zod.ZodObject<{
8961
+ get: SchemaFn<zod.ZodObject<{
8689
8962
  orgId: zod.ZodString;
8690
8963
  projectId: zod.ZodString;
8691
- envName: zod.ZodString;
8692
- kind: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
8693
- state: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
8694
- owner: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
8695
- cell: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
8696
- search: zod.ZodOptional<zod.ZodString>;
8697
- cellKey: zod.ZodOptional<zod.ZodString>;
8964
+ name: zod.ZodString;
8698
8965
  }, "strip", zod.ZodTypeAny, {
8966
+ name: string;
8699
8967
  orgId: string;
8700
8968
  projectId: string;
8701
- envName: string;
8702
- search?: string | undefined;
8703
- owner?: string[] | undefined;
8704
- cellKey?: string | undefined;
8705
- state?: string[] | undefined;
8706
- kind?: string[] | undefined;
8707
- cell?: string[] | undefined;
8708
8969
  }, {
8970
+ name: string;
8709
8971
  orgId: string;
8710
8972
  projectId: string;
8711
- envName: string;
8712
- search?: string | undefined;
8713
- owner?: string[] | undefined;
8714
- cellKey?: string | undefined;
8715
- state?: string[] | undefined;
8716
- kind?: string[] | undefined;
8717
- cell?: string[] | undefined;
8718
8973
  }>, {
8719
- kind: {
8720
- value: string;
8721
- count: number;
8722
- }[];
8723
- state: {
8724
- value: string;
8725
- count: number;
8726
- }[];
8727
- owner: {
8728
- value: string;
8729
- count: number;
8730
- }[];
8731
- cell: {
8732
- value: string;
8733
- count: number;
8734
- }[];
8735
- total: number;
8736
- }>;
8737
- get: SchemaFn<zod.ZodObject<{
8738
- orgId: zod.ZodString;
8739
- projectId: zod.ZodString;
8740
- envName: zod.ZodString;
8741
- name: zod.ZodString;
8742
- }, "strip", zod.ZodTypeAny, {
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;
9016
+ createdAt: string;
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;
9026
+ }>;
9027
+ delete: SchemaFn<zod.ZodObject<{
9028
+ orgId: zod.ZodString;
9029
+ projectId: zod.ZodString;
9030
+ name: zod.ZodString;
9031
+ }, "strip", zod.ZodTypeAny, {
9032
+ name: string;
9033
+ orgId: string;
9034
+ projectId: string;
9035
+ }, {
9036
+ name: string;
9037
+ orgId: string;
9038
+ projectId: string;
9039
+ }>, {
9040
+ deleted: true;
9041
+ name: string;
9042
+ }>;
9043
+ };
9044
+ entities: {
9045
+ list: SchemaFn<zod.ZodObject<{
9046
+ orgId: zod.ZodString;
9047
+ projectId: zod.ZodString;
9048
+ envName: zod.ZodString;
9049
+ entityType: zod.ZodOptional<zod.ZodString>;
9050
+ state: zod.ZodOptional<zod.ZodString>;
9051
+ limit: zod.ZodOptional<zod.ZodNumber>;
9052
+ cursor: zod.ZodOptional<zod.ZodString>;
9053
+ }, "strip", zod.ZodTypeAny, {
9054
+ orgId: string;
9055
+ projectId: string;
9056
+ envName: string;
9057
+ limit?: number | undefined;
9058
+ state?: string | undefined;
9059
+ entityType?: string | undefined;
9060
+ cursor?: string | undefined;
9061
+ }, {
9062
+ orgId: string;
9063
+ projectId: string;
9064
+ envName: string;
9065
+ limit?: number | undefined;
9066
+ state?: string | undefined;
9067
+ entityType?: string | undefined;
9068
+ cursor?: string | undefined;
9069
+ }>, {
9070
+ id: string;
9071
+ entityTypeName: string;
9072
+ name: string;
9073
+ state: string;
9074
+ properties: hono_utils_types.JSONValue;
9075
+ labels: hono_utils_types.JSONValue;
9076
+ lastSyncedAt: string | null;
9077
+ syncSource: string | null;
9078
+ createdAt: string;
9079
+ updatedAt: string;
9080
+ orgId: string;
9081
+ projectId: string;
9082
+ envId: string;
9083
+ }[]>;
9084
+ facets: SchemaFn<zod.ZodObject<{
9085
+ orgId: zod.ZodString;
9086
+ projectId: zod.ZodString;
9087
+ envName: zod.ZodString;
9088
+ kind: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
9089
+ state: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
9090
+ owner: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
9091
+ cell: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
9092
+ search: zod.ZodOptional<zod.ZodString>;
9093
+ cellKey: zod.ZodOptional<zod.ZodString>;
9094
+ }, "strip", zod.ZodTypeAny, {
9095
+ orgId: string;
9096
+ projectId: string;
9097
+ envName: string;
9098
+ search?: string | undefined;
9099
+ owner?: string[] | undefined;
9100
+ cellKey?: string | undefined;
9101
+ state?: string[] | undefined;
9102
+ kind?: string[] | undefined;
9103
+ cell?: string[] | undefined;
9104
+ }, {
9105
+ orgId: string;
9106
+ projectId: string;
9107
+ envName: string;
9108
+ search?: string | undefined;
9109
+ owner?: string[] | undefined;
9110
+ cellKey?: string | undefined;
9111
+ state?: string[] | undefined;
9112
+ kind?: string[] | undefined;
9113
+ cell?: string[] | undefined;
9114
+ }>, {
9115
+ kind: {
9116
+ value: string;
9117
+ count: number;
9118
+ }[];
9119
+ state: {
9120
+ value: string;
9121
+ count: number;
9122
+ }[];
9123
+ owner: {
9124
+ value: string;
9125
+ count: number;
9126
+ }[];
9127
+ cell: {
9128
+ value: string;
9129
+ count: number;
9130
+ }[];
9131
+ total: number;
9132
+ }>;
9133
+ get: SchemaFn<zod.ZodObject<{
9134
+ orgId: zod.ZodString;
9135
+ projectId: zod.ZodString;
9136
+ envName: zod.ZodString;
9137
+ name: zod.ZodString;
9138
+ }, "strip", zod.ZodTypeAny, {
8743
9139
  name: string;
8744
9140
  orgId: string;
8745
9141
  projectId: string;
@@ -9031,7 +9427,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9031
9427
  property: string;
9032
9428
  value?: string | undefined;
9033
9429
  } | null;
9034
- 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;
9035
9466
  createdAt: string;
9036
9467
  updatedAt: string;
9037
9468
  }[]>;
@@ -9065,7 +9496,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9065
9496
  property: string;
9066
9497
  value?: string | undefined;
9067
9498
  } | null;
9068
- 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;
9069
9535
  createdAt: string;
9070
9536
  updatedAt: string;
9071
9537
  }>;
@@ -9111,76 +9577,412 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9111
9577
  value?: string | undefined;
9112
9578
  };
9113
9579
  }>>;
9114
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
9115
- } & {
9116
- orgId: zod.ZodString;
9117
- projectId: zod.ZodString;
9118
- }, "strip", zod.ZodTypeAny, {
9119
- name: string;
9120
- orgId: string;
9121
- projectId: string;
9122
- entityType: string;
9123
- constraints: {
9124
- max: number;
9125
- metric: string;
9126
- aggregate: "max" | "sum" | "avg" | "min";
9127
- }[];
9128
- kind: "Cell";
9129
- placementPolicy: "least-loaded" | "round-robin" | "random";
9130
- parentCells: string[];
9131
- displayName?: string | undefined;
9132
- deploymentTarget?: string | undefined;
9133
- membership?: {
9134
- derivedFrom: {
9135
- property: string;
9136
- value?: string | undefined;
9137
- };
9138
- } | undefined;
9139
- }, {
9140
- name: string;
9141
- orgId: string;
9142
- projectId: string;
9143
- entityType: string;
9144
- kind: "Cell";
9145
- displayName?: string | undefined;
9146
- constraints?: {
9147
- max: number;
9148
- metric: string;
9149
- aggregate: "max" | "sum" | "avg" | "min";
9150
- }[] | undefined;
9151
- placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
9152
- parentCells?: string[] | undefined;
9153
- deploymentTarget?: string | undefined;
9154
- membership?: {
9155
- derivedFrom: {
9156
- property: string;
9157
- value?: string | undefined;
9158
- };
9159
- } | undefined;
9160
- }>, {
9161
- name: string;
9162
- createdAt: string;
9163
- updatedAt: string;
9164
- orgId: string;
9165
- projectId: string;
9166
- displayName: string | null;
9167
- constraints: {
9168
- max: number;
9169
- metric: string;
9170
- aggregate: "max" | "sum" | "avg" | "min";
9171
- }[];
9172
- entityTypeName: string;
9173
- placementPolicy: "least-loaded" | "round-robin" | "random";
9174
- parentCells: string[];
9175
- membershipMode: string;
9176
- membershipDerivedFrom: {
9177
- property: string;
9178
- value?: string | undefined;
9179
- } | null;
9180
- deploymentTarget: string | null;
9181
- }>;
9182
- update: SchemaFn<zod.ZodObject<{
9183
- kind: zod.ZodLiteral<"Cell">;
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
+ }>>;
9816
+ } & {
9817
+ orgId: zod.ZodString;
9818
+ projectId: zod.ZodString;
9819
+ }, "strip", zod.ZodTypeAny, {
9820
+ name: string;
9821
+ orgId: string;
9822
+ projectId: string;
9823
+ entityType: string;
9824
+ constraints: {
9825
+ max: number;
9826
+ metric: string;
9827
+ aggregate: "max" | "sum" | "avg" | "min";
9828
+ }[];
9829
+ kind: "Cell";
9830
+ placementPolicy: "least-loaded" | "round-robin" | "random";
9831
+ parentCells: string[];
9832
+ displayName?: 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;
9867
+ membership?: {
9868
+ derivedFrom: {
9869
+ property: string;
9870
+ value?: string | undefined;
9871
+ };
9872
+ } | undefined;
9873
+ }, {
9874
+ name: string;
9875
+ orgId: string;
9876
+ projectId: string;
9877
+ entityType: string;
9878
+ kind: "Cell";
9879
+ displayName?: string | undefined;
9880
+ constraints?: {
9881
+ max: number;
9882
+ metric: string;
9883
+ aggregate: "max" | "sum" | "avg" | "min";
9884
+ }[] | undefined;
9885
+ placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
9886
+ parentCells?: 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;
9921
+ membership?: {
9922
+ derivedFrom: {
9923
+ property: string;
9924
+ value?: string | undefined;
9925
+ };
9926
+ } | undefined;
9927
+ }>, {
9928
+ name: string;
9929
+ createdAt: string;
9930
+ updatedAt: string;
9931
+ orgId: string;
9932
+ projectId: string;
9933
+ displayName: string | null;
9934
+ constraints: {
9935
+ max: number;
9936
+ metric: string;
9937
+ aggregate: "max" | "sum" | "avg" | "min";
9938
+ }[];
9939
+ entityTypeName: string;
9940
+ placementPolicy: "least-loaded" | "round-robin" | "random";
9941
+ parentCells: string[];
9942
+ membershipMode: string;
9943
+ membershipDerivedFrom: {
9944
+ property: string;
9945
+ value?: string | undefined;
9946
+ } | 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;
9983
+ }>;
9984
+ update: SchemaFn<zod.ZodObject<{
9985
+ kind: zod.ZodLiteral<"Cell">;
9184
9986
  name: zod.ZodString;
9185
9987
  displayName: zod.ZodOptional<zod.ZodString>;
9186
9988
  entityType: zod.ZodString;
@@ -9221,7 +10023,242 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9221
10023
  value?: string | undefined;
9222
10024
  };
9223
10025
  }>>;
9224
- 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
+ }>>;
9225
10262
  } & {
9226
10263
  orgId: zod.ZodString;
9227
10264
  projectId: zod.ZodString;
@@ -9239,7 +10276,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9239
10276
  placementPolicy: "least-loaded" | "round-robin" | "random";
9240
10277
  parentCells: string[];
9241
10278
  displayName?: string | undefined;
9242
- 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;
9243
10313
  membership?: {
9244
10314
  derivedFrom: {
9245
10315
  property: string;
@@ -9260,7 +10330,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9260
10330
  }[] | undefined;
9261
10331
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
9262
10332
  parentCells?: string[] | undefined;
9263
- 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;
9264
10367
  membership?: {
9265
10368
  derivedFrom: {
9266
10369
  property: string;
@@ -9285,7 +10388,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
9285
10388
  property: string;
9286
10389
  value?: string | undefined;
9287
10390
  } | null;
9288
- 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;
9289
10427
  createdAt: string;
9290
10428
  updatedAt: string;
9291
10429
  }>;
@@ -19188,24 +20326,259 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19188
20326
  property: zod.ZodString;
19189
20327
  value: zod.ZodOptional<zod.ZodString>;
19190
20328
  }, "strip", zod.ZodTypeAny, {
19191
- property: string;
19192
- value?: string | undefined;
20329
+ property: string;
20330
+ value?: string | undefined;
20331
+ }, {
20332
+ property: string;
20333
+ value?: string | undefined;
20334
+ }>;
20335
+ }, "strip", zod.ZodTypeAny, {
20336
+ derivedFrom: {
20337
+ property: string;
20338
+ value?: string | undefined;
20339
+ };
20340
+ }, {
20341
+ derivedFrom: {
20342
+ property: string;
20343
+ value?: string | undefined;
20344
+ };
20345
+ }>>;
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;
19193
20499
  }, {
19194
- property: string;
19195
- value?: string | undefined;
19196
- }>;
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
+ }>>>;
19197
20515
  }, "strip", zod.ZodTypeAny, {
19198
- derivedFrom: {
19199
- property: string;
19200
- value?: string | undefined;
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;
19201
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;
19202
20548
  }, {
19203
- derivedFrom: {
19204
- property: string;
19205
- value?: string | undefined;
19206
- };
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;
19207
20581
  }>>;
19208
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
19209
20582
  }, "strip", zod.ZodTypeAny, {
19210
20583
  name: string;
19211
20584
  entityType: string;
@@ -19218,7 +20591,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19218
20591
  placementPolicy: "least-loaded" | "round-robin" | "random";
19219
20592
  parentCells: string[];
19220
20593
  displayName?: string | undefined;
19221
- 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;
19222
20628
  membership?: {
19223
20629
  derivedFrom: {
19224
20630
  property: string;
@@ -19237,7 +20643,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
19237
20643
  }[] | undefined;
19238
20644
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
19239
20645
  parentCells?: string[] | undefined;
19240
- 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;
19241
20680
  membership?: {
19242
20681
  derivedFrom: {
19243
20682
  property: string;
@@ -22754,34 +24193,64 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
22754
24193
  kind: zod.ZodLiteral<"DeploymentTarget">;
22755
24194
  name: zod.ZodString;
22756
24195
  displayName: zod.ZodOptional<zod.ZodString>;
22757
- 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"]>>;
22758
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>;
22759
24201
  credentialRef: zod.ZodOptional<zod.ZodString>;
22760
24202
  }, "strip", zod.ZodTypeAny, {
22761
24203
  name: string;
22762
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
24204
+ properties: Record<string, string>;
22763
24205
  kind: "DeploymentTarget";
22764
24206
  config: Record<string, unknown>;
24207
+ set?: string | undefined;
24208
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
22765
24209
  displayName?: string | undefined;
22766
24210
  credentialRef?: string | undefined;
24211
+ capacity?: number | undefined;
22767
24212
  }, {
22768
24213
  name: string;
22769
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
22770
24214
  kind: "DeploymentTarget";
24215
+ set?: string | undefined;
24216
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
22771
24217
  displayName?: string | undefined;
24218
+ properties?: Record<string, string> | undefined;
22772
24219
  config?: Record<string, unknown> | undefined;
22773
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;
22774
24243
  }>]>, "many">;
22775
24244
  force: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
22776
24245
  deletions: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
22777
- kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget"]>;
24246
+ kind: zod.ZodEnum<["EntityType", "Cell", "RelationshipType", "Action", "Secret", "DeploymentTarget", "DeploymentTargetSet"]>;
22778
24247
  name: zod.ZodString;
22779
24248
  }, "strip", zod.ZodTypeAny, {
22780
24249
  name: string;
22781
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
24250
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
22782
24251
  }, {
22783
24252
  name: string;
22784
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
24253
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
22785
24254
  }>, "many">>>;
22786
24255
  dryRun: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
22787
24256
  } & {
@@ -23294,7 +24763,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23294
24763
  placementPolicy: "least-loaded" | "round-robin" | "random";
23295
24764
  parentCells: string[];
23296
24765
  displayName?: string | undefined;
23297
- 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;
23298
24800
  membership?: {
23299
24801
  derivedFrom: {
23300
24802
  property: string;
@@ -23350,15 +24852,25 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23350
24852
  state?: string | undefined;
23351
24853
  } | {
23352
24854
  name: string;
23353
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
24855
+ properties: Record<string, string>;
23354
24856
  kind: "DeploymentTarget";
23355
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";
23356
24868
  displayName?: string | undefined;
23357
24869
  credentialRef?: string | undefined;
23358
24870
  })[];
23359
24871
  deletions: {
23360
24872
  name: string;
23361
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
24873
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
23362
24874
  }[];
23363
24875
  force: boolean;
23364
24876
  dryRun: boolean;
@@ -23868,7 +25380,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23868
25380
  }[] | undefined;
23869
25381
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
23870
25382
  parentCells?: string[] | undefined;
23871
- 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;
23872
25417
  membership?: {
23873
25418
  derivedFrom: {
23874
25419
  property: string;
@@ -23924,15 +25469,25 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
23924
25469
  labels?: Record<string, string> | undefined;
23925
25470
  } | {
23926
25471
  name: string;
23927
- provider: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic";
23928
25472
  kind: "DeploymentTarget";
25473
+ set?: string | undefined;
25474
+ provider?: "aws" | "gcp" | "s3-backend" | "tfc-workspace" | "generic" | undefined;
23929
25475
  displayName?: string | undefined;
25476
+ properties?: Record<string, string> | undefined;
23930
25477
  config?: Record<string, unknown> | undefined;
23931
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;
23932
25487
  })[];
23933
25488
  deletions?: {
23934
25489
  name: string;
23935
- kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget";
25490
+ kind: "Action" | "EntityType" | "Cell" | "RelationshipType" | "Secret" | "DeploymentTarget" | "DeploymentTargetSet";
23936
25491
  }[] | undefined;
23937
25492
  force?: boolean | undefined;
23938
25493
  dryRun?: boolean | undefined;
@@ -25256,7 +26811,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25256
26811
  property: string;
25257
26812
  value?: string | undefined;
25258
26813
  } | null;
25259
- deploymentTarget: string | null;
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;
25260
26850
  createdAt: string;
25261
26851
  updatedAt: string;
25262
26852
  }[]>;
@@ -25290,7 +26880,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25290
26880
  property: string;
25291
26881
  value?: string | undefined;
25292
26882
  } | null;
25293
- 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;
25294
26919
  createdAt: string;
25295
26920
  updatedAt: string;
25296
26921
  }>;
@@ -25319,24 +26944,259 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25319
26944
  property: zod.ZodString;
25320
26945
  value: zod.ZodOptional<zod.ZodString>;
25321
26946
  }, "strip", zod.ZodTypeAny, {
25322
- property: string;
25323
- value?: string | undefined;
26947
+ property: string;
26948
+ value?: string | undefined;
26949
+ }, {
26950
+ property: string;
26951
+ value?: string | undefined;
26952
+ }>;
26953
+ }, "strip", zod.ZodTypeAny, {
26954
+ derivedFrom: {
26955
+ property: string;
26956
+ value?: string | undefined;
26957
+ };
26958
+ }, {
26959
+ derivedFrom: {
26960
+ property: string;
26961
+ value?: string | undefined;
26962
+ };
26963
+ }>>;
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;
25324
27117
  }, {
25325
- property: string;
25326
- value?: string | undefined;
25327
- }>;
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
+ }>>>;
25328
27133
  }, "strip", zod.ZodTypeAny, {
25329
- derivedFrom: {
25330
- property: string;
25331
- value?: string | undefined;
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;
25332
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;
25333
27166
  }, {
25334
- derivedFrom: {
25335
- property: string;
25336
- value?: string | undefined;
25337
- };
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;
25338
27199
  }>>;
25339
- deploymentTarget: zod.ZodOptional<zod.ZodString>;
25340
27200
  } & {
25341
27201
  orgId: zod.ZodString;
25342
27202
  projectId: zod.ZodString;
@@ -25354,7 +27214,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25354
27214
  placementPolicy: "least-loaded" | "round-robin" | "random";
25355
27215
  parentCells: string[];
25356
27216
  displayName?: string | undefined;
25357
- 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;
25358
27251
  membership?: {
25359
27252
  derivedFrom: {
25360
27253
  property: string;
@@ -25375,7 +27268,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25375
27268
  }[] | undefined;
25376
27269
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
25377
27270
  parentCells?: string[] | undefined;
25378
- 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;
25379
27305
  membership?: {
25380
27306
  derivedFrom: {
25381
27307
  property: string;
@@ -25402,7 +27328,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25402
27328
  property: string;
25403
27329
  value?: string | undefined;
25404
27330
  } | null;
25405
- 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;
25406
27367
  }>;
25407
27368
  update: SchemaFn<zod.ZodObject<{
25408
27369
  kind: zod.ZodLiteral<"Cell">;
@@ -25446,7 +27407,242 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25446
27407
  value?: string | undefined;
25447
27408
  };
25448
27409
  }>>;
25449
- 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
+ }>>;
25450
27646
  } & {
25451
27647
  orgId: zod.ZodString;
25452
27648
  projectId: zod.ZodString;
@@ -25464,7 +27660,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25464
27660
  placementPolicy: "least-loaded" | "round-robin" | "random";
25465
27661
  parentCells: string[];
25466
27662
  displayName?: string | undefined;
25467
- 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;
25468
27697
  membership?: {
25469
27698
  derivedFrom: {
25470
27699
  property: string;
@@ -25485,7 +27714,40 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25485
27714
  }[] | undefined;
25486
27715
  placementPolicy?: "least-loaded" | "round-robin" | "random" | undefined;
25487
27716
  parentCells?: string[] | undefined;
25488
- 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;
25489
27751
  membership?: {
25490
27752
  derivedFrom: {
25491
27753
  property: string;
@@ -25510,7 +27772,42 @@ declare const createClient: (baseUrl: string, options?: CreateClientOptions | To
25510
27772
  property: string;
25511
27773
  value?: string | undefined;
25512
27774
  } | null;
25513
- 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;
25514
27811
  createdAt: string;
25515
27812
  updatedAt: string;
25516
27813
  }>;