@terrantula/sdk 0.10.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/local.d.ts CHANGED
@@ -392,6 +392,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
392
392
  projectId: string;
393
393
  }>, {
394
394
  error: string;
395
+ } | {
396
+ error: string;
395
397
  } | {
396
398
  id: string;
397
399
  email: string;
@@ -424,6 +426,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
424
426
  error: string;
425
427
  } | {
426
428
  error: string;
429
+ } | {
430
+ error: string;
427
431
  } | {
428
432
  added: true;
429
433
  envName: any;
@@ -931,6 +935,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
931
935
  max: number;
932
936
  metric: string;
933
937
  }[];
938
+ composition: {
939
+ provider: string;
940
+ kind: "data" | "resource" | "module";
941
+ address: string;
942
+ }[] | null;
934
943
  syncTracked: boolean;
935
944
  syncFreshness: {
936
945
  greenSeconds?: number | undefined;
@@ -989,6 +998,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
989
998
  max: number;
990
999
  metric: string;
991
1000
  }[];
1001
+ composition: {
1002
+ provider: string;
1003
+ kind: "data" | "resource" | "module";
1004
+ address: string;
1005
+ }[] | null;
992
1006
  syncTracked: boolean;
993
1007
  syncFreshness: {
994
1008
  greenSeconds?: number | undefined;
@@ -1132,6 +1146,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1132
1146
  yellowSeconds?: number | undefined;
1133
1147
  }>>;
1134
1148
  applier: zod.ZodOptional<zod.ZodString>;
1149
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1150
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
1151
+ address: zod.ZodString;
1152
+ provider: zod.ZodString;
1153
+ }, "strip", zod.ZodTypeAny, {
1154
+ provider: string;
1155
+ kind: "data" | "resource" | "module";
1156
+ address: string;
1157
+ }, {
1158
+ provider: string;
1159
+ kind: "data" | "resource" | "module";
1160
+ address: string;
1161
+ }>, "many">>;
1135
1162
  } & {
1136
1163
  orgId: zod.ZodString;
1137
1164
  projectId: zod.ZodString;
@@ -1171,9 +1198,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1171
1198
  max: number;
1172
1199
  metric: string;
1173
1200
  }[];
1174
- syncTracked: boolean;
1175
1201
  kind: "EntityType";
1202
+ syncTracked: boolean;
1176
1203
  displayName?: string | undefined;
1204
+ composition?: {
1205
+ provider: string;
1206
+ kind: "data" | "resource" | "module";
1207
+ address: string;
1208
+ }[] | undefined;
1177
1209
  syncFreshness?: {
1178
1210
  greenSeconds?: number | undefined;
1179
1211
  yellowSeconds?: number | undefined;
@@ -1217,6 +1249,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1217
1249
  max: number;
1218
1250
  metric: string;
1219
1251
  }[] | undefined;
1252
+ composition?: {
1253
+ provider: string;
1254
+ kind: "data" | "resource" | "module";
1255
+ address: string;
1256
+ }[] | undefined;
1220
1257
  syncTracked?: boolean | undefined;
1221
1258
  syncFreshness?: {
1222
1259
  greenSeconds?: number | undefined;
@@ -1262,6 +1299,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1262
1299
  max: number;
1263
1300
  metric: string;
1264
1301
  }[];
1302
+ composition: {
1303
+ provider: string;
1304
+ kind: "data" | "resource" | "module";
1305
+ address: string;
1306
+ }[] | null;
1265
1307
  syncTracked: boolean;
1266
1308
  syncFreshness: {
1267
1309
  greenSeconds?: number | undefined;
@@ -1403,6 +1445,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1403
1445
  yellowSeconds?: number | undefined;
1404
1446
  }>>;
1405
1447
  applier: zod.ZodOptional<zod.ZodString>;
1448
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1449
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
1450
+ address: zod.ZodString;
1451
+ provider: zod.ZodString;
1452
+ }, "strip", zod.ZodTypeAny, {
1453
+ provider: string;
1454
+ kind: "data" | "resource" | "module";
1455
+ address: string;
1456
+ }, {
1457
+ provider: string;
1458
+ kind: "data" | "resource" | "module";
1459
+ address: string;
1460
+ }>, "many">>;
1406
1461
  } & {
1407
1462
  orgId: zod.ZodString;
1408
1463
  projectId: zod.ZodString;
@@ -1442,9 +1497,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1442
1497
  max: number;
1443
1498
  metric: string;
1444
1499
  }[];
1445
- syncTracked: boolean;
1446
1500
  kind: "EntityType";
1501
+ syncTracked: boolean;
1447
1502
  displayName?: string | undefined;
1503
+ composition?: {
1504
+ provider: string;
1505
+ kind: "data" | "resource" | "module";
1506
+ address: string;
1507
+ }[] | undefined;
1448
1508
  syncFreshness?: {
1449
1509
  greenSeconds?: number | undefined;
1450
1510
  yellowSeconds?: number | undefined;
@@ -1488,6 +1548,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1488
1548
  max: number;
1489
1549
  metric: string;
1490
1550
  }[] | undefined;
1551
+ composition?: {
1552
+ provider: string;
1553
+ kind: "data" | "resource" | "module";
1554
+ address: string;
1555
+ }[] | undefined;
1491
1556
  syncTracked?: boolean | undefined;
1492
1557
  syncFreshness?: {
1493
1558
  greenSeconds?: number | undefined;
@@ -1531,6 +1596,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1531
1596
  max: number;
1532
1597
  metric: string;
1533
1598
  }[];
1599
+ composition: {
1600
+ provider: string;
1601
+ kind: "data" | "resource" | "module";
1602
+ address: string;
1603
+ }[] | null;
1534
1604
  syncTracked: boolean;
1535
1605
  syncFreshness: {
1536
1606
  greenSeconds?: number | undefined;
@@ -1744,6 +1814,55 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
1744
1814
  projectId: string;
1745
1815
  envId: string;
1746
1816
  }[]>;
1817
+ facets: SchemaFn<zod.ZodObject<{
1818
+ orgId: zod.ZodString;
1819
+ projectId: zod.ZodString;
1820
+ envName: zod.ZodString;
1821
+ kind: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1822
+ state: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1823
+ owner: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1824
+ cell: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1825
+ search: zod.ZodOptional<zod.ZodString>;
1826
+ cellKey: zod.ZodOptional<zod.ZodString>;
1827
+ }, "strip", zod.ZodTypeAny, {
1828
+ orgId: string;
1829
+ projectId: string;
1830
+ envName: string;
1831
+ search?: string | undefined;
1832
+ owner?: string[] | undefined;
1833
+ cellKey?: string | undefined;
1834
+ state?: string[] | undefined;
1835
+ kind?: string[] | undefined;
1836
+ cell?: string[] | undefined;
1837
+ }, {
1838
+ orgId: string;
1839
+ projectId: string;
1840
+ envName: string;
1841
+ search?: string | undefined;
1842
+ owner?: string[] | undefined;
1843
+ cellKey?: string | undefined;
1844
+ state?: string[] | undefined;
1845
+ kind?: string[] | undefined;
1846
+ cell?: string[] | undefined;
1847
+ }>, {
1848
+ kind: {
1849
+ value: string;
1850
+ count: number;
1851
+ }[];
1852
+ state: {
1853
+ value: string;
1854
+ count: number;
1855
+ }[];
1856
+ owner: {
1857
+ value: string;
1858
+ count: number;
1859
+ }[];
1860
+ cell: {
1861
+ value: string;
1862
+ count: number;
1863
+ }[];
1864
+ total: number;
1865
+ }>;
1747
1866
  get: SchemaFn<zod.ZodObject<{
1748
1867
  orgId: zod.ZodString;
1749
1868
  projectId: zod.ZodString;
@@ -2135,9 +2254,9 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2135
2254
  metric: string;
2136
2255
  aggregate: "max" | "sum" | "avg" | "min";
2137
2256
  }[];
2257
+ kind: "Cell";
2138
2258
  placementPolicy: "least-loaded" | "round-robin" | "random";
2139
2259
  parentCells: string[];
2140
- kind: "Cell";
2141
2260
  displayName?: string | undefined;
2142
2261
  deploymentTarget?: string | undefined;
2143
2262
  membership?: {
@@ -2245,9 +2364,9 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2245
2364
  metric: string;
2246
2365
  aggregate: "max" | "sum" | "avg" | "min";
2247
2366
  }[];
2367
+ kind: "Cell";
2248
2368
  placementPolicy: "least-loaded" | "round-robin" | "random";
2249
2369
  parentCells: string[];
2250
- kind: "Cell";
2251
2370
  displayName?: string | undefined;
2252
2371
  deploymentTarget?: string | undefined;
2253
2372
  membership?: {
@@ -2455,11 +2574,15 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2455
2574
  title?: string | undefined;
2456
2575
  enum?: string[] | undefined;
2457
2576
  }[];
2458
- constraints: {
2577
+ constraints: ({
2459
2578
  type: "property-sum";
2460
2579
  property: string;
2461
2580
  leq: string;
2462
- }[];
2581
+ } | {
2582
+ type: "relationship-count";
2583
+ leq: string | number;
2584
+ })[];
2585
+ containment: boolean;
2463
2586
  createdAt: string;
2464
2587
  updatedAt: string;
2465
2588
  }[]>;
@@ -2493,11 +2616,15 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2493
2616
  title?: string | undefined;
2494
2617
  enum?: string[] | undefined;
2495
2618
  }[];
2496
- constraints: {
2619
+ constraints: ({
2497
2620
  type: "property-sum";
2498
2621
  property: string;
2499
2622
  leq: string;
2500
- }[];
2623
+ } | {
2624
+ type: "relationship-count";
2625
+ leq: string | number;
2626
+ })[];
2627
+ containment: boolean;
2501
2628
  createdAt: string;
2502
2629
  updatedAt: string;
2503
2630
  }>;
@@ -2534,7 +2661,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2534
2661
  title?: string | undefined;
2535
2662
  enum?: string[] | undefined;
2536
2663
  }>, "many">>>;
2537
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2664
+ containment: zod.ZodOptional<zod.ZodBoolean>;
2665
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
2538
2666
  type: zod.ZodLiteral<"property-sum">;
2539
2667
  property: zod.ZodString;
2540
2668
  leq: zod.ZodString;
@@ -2546,7 +2674,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2546
2674
  type: "property-sum";
2547
2675
  property: string;
2548
2676
  leq: string;
2549
- }>, "many">>>;
2677
+ }>, zod.ZodObject<{
2678
+ type: zod.ZodLiteral<"relationship-count">;
2679
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
2680
+ }, "strip", zod.ZodTypeAny, {
2681
+ type: "relationship-count";
2682
+ leq: string | number;
2683
+ }, {
2684
+ type: "relationship-count";
2685
+ leq: string | number;
2686
+ }>]>, "many">>>;
2550
2687
  } & {
2551
2688
  orgId: zod.ZodString;
2552
2689
  projectId: zod.ZodString;
@@ -2565,15 +2702,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2565
2702
  title?: string | undefined;
2566
2703
  enum?: string[] | undefined;
2567
2704
  }[];
2568
- constraints: {
2705
+ constraints: ({
2569
2706
  type: "property-sum";
2570
2707
  property: string;
2571
2708
  leq: string;
2572
- }[];
2573
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2709
+ } | {
2710
+ type: "relationship-count";
2711
+ leq: string | number;
2712
+ })[];
2574
2713
  kind: "RelationshipType";
2714
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2575
2715
  to: string;
2576
2716
  displayName?: string | undefined;
2717
+ containment?: boolean | undefined;
2577
2718
  }, {
2578
2719
  name: string;
2579
2720
  from: string;
@@ -2592,12 +2733,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2592
2733
  title?: string | undefined;
2593
2734
  enum?: string[] | undefined;
2594
2735
  }[] | undefined;
2595
- constraints?: {
2736
+ constraints?: ({
2596
2737
  type: "property-sum";
2597
2738
  property: string;
2598
2739
  leq: string;
2599
- }[] | undefined;
2740
+ } | {
2741
+ type: "relationship-count";
2742
+ leq: string | number;
2743
+ })[] | undefined;
2600
2744
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
2745
+ containment?: boolean | undefined;
2601
2746
  }>, {
2602
2747
  name: string;
2603
2748
  createdAt: string;
@@ -2615,14 +2760,18 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2615
2760
  title?: string | undefined;
2616
2761
  enum?: string[] | undefined;
2617
2762
  }[];
2618
- constraints: {
2763
+ constraints: ({
2619
2764
  type: "property-sum";
2620
2765
  property: string;
2621
2766
  leq: string;
2622
- }[];
2767
+ } | {
2768
+ type: "relationship-count";
2769
+ leq: string | number;
2770
+ })[];
2623
2771
  cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2624
2772
  fromEntityTypeName: string;
2625
2773
  toEntityTypeName: string;
2774
+ containment: boolean;
2626
2775
  }>;
2627
2776
  update: SchemaFn<zod.ZodObject<{
2628
2777
  kind: zod.ZodLiteral<"RelationshipType">;
@@ -2657,7 +2806,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2657
2806
  title?: string | undefined;
2658
2807
  enum?: string[] | undefined;
2659
2808
  }>, "many">>>;
2660
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2809
+ containment: zod.ZodOptional<zod.ZodBoolean>;
2810
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
2661
2811
  type: zod.ZodLiteral<"property-sum">;
2662
2812
  property: zod.ZodString;
2663
2813
  leq: zod.ZodString;
@@ -2669,7 +2819,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2669
2819
  type: "property-sum";
2670
2820
  property: string;
2671
2821
  leq: string;
2672
- }>, "many">>>;
2822
+ }>, zod.ZodObject<{
2823
+ type: zod.ZodLiteral<"relationship-count">;
2824
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
2825
+ }, "strip", zod.ZodTypeAny, {
2826
+ type: "relationship-count";
2827
+ leq: string | number;
2828
+ }, {
2829
+ type: "relationship-count";
2830
+ leq: string | number;
2831
+ }>]>, "many">>>;
2673
2832
  } & {
2674
2833
  orgId: zod.ZodString;
2675
2834
  projectId: zod.ZodString;
@@ -2688,15 +2847,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2688
2847
  title?: string | undefined;
2689
2848
  enum?: string[] | undefined;
2690
2849
  }[];
2691
- constraints: {
2850
+ constraints: ({
2692
2851
  type: "property-sum";
2693
2852
  property: string;
2694
2853
  leq: string;
2695
- }[];
2696
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2854
+ } | {
2855
+ type: "relationship-count";
2856
+ leq: string | number;
2857
+ })[];
2697
2858
  kind: "RelationshipType";
2859
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
2698
2860
  to: string;
2699
2861
  displayName?: string | undefined;
2862
+ containment?: boolean | undefined;
2700
2863
  }, {
2701
2864
  name: string;
2702
2865
  from: string;
@@ -2715,12 +2878,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2715
2878
  title?: string | undefined;
2716
2879
  enum?: string[] | undefined;
2717
2880
  }[] | undefined;
2718
- constraints?: {
2881
+ constraints?: ({
2719
2882
  type: "property-sum";
2720
2883
  property: string;
2721
2884
  leq: string;
2722
- }[] | undefined;
2885
+ } | {
2886
+ type: "relationship-count";
2887
+ leq: string | number;
2888
+ })[] | undefined;
2723
2889
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
2890
+ containment?: boolean | undefined;
2724
2891
  }>, {
2725
2892
  orgId: string;
2726
2893
  projectId: string;
@@ -2739,11 +2906,15 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2739
2906
  title?: string | undefined;
2740
2907
  enum?: string[] | undefined;
2741
2908
  }[];
2742
- constraints: {
2909
+ constraints: ({
2743
2910
  type: "property-sum";
2744
2911
  property: string;
2745
2912
  leq: string;
2746
- }[];
2913
+ } | {
2914
+ type: "relationship-count";
2915
+ leq: string | number;
2916
+ })[];
2917
+ containment: boolean;
2747
2918
  createdAt: string;
2748
2919
  updatedAt: string;
2749
2920
  }>;
@@ -2776,6 +2947,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2776
2947
  fromEntityCell: zod.ZodOptional<zod.ZodString>;
2777
2948
  toEntityCell: zod.ZodOptional<zod.ZodString>;
2778
2949
  limit: zod.ZodOptional<zod.ZodNumber>;
2950
+ cursor: zod.ZodOptional<zod.ZodString>;
2779
2951
  }, "strip", zod.ZodTypeAny, {
2780
2952
  orgId: string;
2781
2953
  projectId: string;
@@ -2783,6 +2955,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2783
2955
  limit?: number | undefined;
2784
2956
  state?: string | undefined;
2785
2957
  relationshipType?: string | undefined;
2958
+ cursor?: string | undefined;
2786
2959
  fromEntity?: string | undefined;
2787
2960
  toEntity?: string | undefined;
2788
2961
  fromEntityCell?: string | undefined;
@@ -2794,6 +2967,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
2794
2967
  limit?: number | undefined;
2795
2968
  state?: string | undefined;
2796
2969
  relationshipType?: string | undefined;
2970
+ cursor?: string | undefined;
2797
2971
  fromEntity?: string | undefined;
2798
2972
  toEntity?: string | undefined;
2799
2973
  fromEntityCell?: string | undefined;
@@ -6388,6 +6562,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6388
6562
  name: string;
6389
6563
  orgId: string;
6390
6564
  projectId: string;
6565
+ kind: "Action";
6391
6566
  conditions: {
6392
6567
  value: string | number | boolean | string[];
6393
6568
  field: string;
@@ -6500,7 +6675,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6500
6675
  onFailure: string;
6501
6676
  to: string;
6502
6677
  };
6503
- kind: "Action";
6504
6678
  associatedWith: {
6505
6679
  scope: "collection" | "instance";
6506
6680
  entityType: string;
@@ -6824,6 +6998,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6824
6998
  name: string;
6825
6999
  orgId: string;
6826
7000
  projectId: string;
7001
+ kind: "Action";
6827
7002
  operation: {
6828
7003
  type: "create-entity";
6829
7004
  entityType: string;
@@ -6923,7 +7098,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
6923
7098
  onFailure: string;
6924
7099
  to: string;
6925
7100
  };
6926
- kind: "Action";
6927
7101
  associatedWith: {
6928
7102
  scope: "collection" | "instance";
6929
7103
  entityType: string;
@@ -10221,6 +10395,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10221
10395
  name: string;
10222
10396
  orgId: string;
10223
10397
  projectId: string;
10398
+ kind: "Action";
10224
10399
  conditions: {
10225
10400
  value: string | number | boolean | string[];
10226
10401
  field: string;
@@ -10333,7 +10508,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10333
10508
  onFailure: string;
10334
10509
  to: string;
10335
10510
  };
10336
- kind: "Action";
10337
10511
  associatedWith: {
10338
10512
  scope: "collection" | "instance";
10339
10513
  entityType: string;
@@ -10657,6 +10831,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10657
10831
  name: string;
10658
10832
  orgId: string;
10659
10833
  projectId: string;
10834
+ kind: "Action";
10660
10835
  operation: {
10661
10836
  type: "create-entity";
10662
10837
  entityType: string;
@@ -10756,7 +10931,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
10756
10931
  onFailure: string;
10757
10932
  to: string;
10758
10933
  };
10759
- kind: "Action";
10760
10934
  associatedWith: {
10761
10935
  scope: "collection" | "instance";
10762
10936
  entityType: string;
@@ -12011,6 +12185,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12011
12185
  yellowSeconds?: number | undefined;
12012
12186
  }>>;
12013
12187
  applier: zod.ZodOptional<zod.ZodString>;
12188
+ composition: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
12189
+ kind: zod.ZodEnum<["resource", "module", "data"]>;
12190
+ address: zod.ZodString;
12191
+ provider: zod.ZodString;
12192
+ }, "strip", zod.ZodTypeAny, {
12193
+ provider: string;
12194
+ kind: "data" | "resource" | "module";
12195
+ address: string;
12196
+ }, {
12197
+ provider: string;
12198
+ kind: "data" | "resource" | "module";
12199
+ address: string;
12200
+ }>, "many">>;
12014
12201
  }, "strip", zod.ZodTypeAny, {
12015
12202
  name: string;
12016
12203
  states: string[];
@@ -12045,9 +12232,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12045
12232
  max: number;
12046
12233
  metric: string;
12047
12234
  }[];
12048
- syncTracked: boolean;
12049
12235
  kind: "EntityType";
12236
+ syncTracked: boolean;
12050
12237
  displayName?: string | undefined;
12238
+ composition?: {
12239
+ provider: string;
12240
+ kind: "data" | "resource" | "module";
12241
+ address: string;
12242
+ }[] | undefined;
12051
12243
  syncFreshness?: {
12052
12244
  greenSeconds?: number | undefined;
12053
12245
  yellowSeconds?: number | undefined;
@@ -12089,6 +12281,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12089
12281
  max: number;
12090
12282
  metric: string;
12091
12283
  }[] | undefined;
12284
+ composition?: {
12285
+ provider: string;
12286
+ kind: "data" | "resource" | "module";
12287
+ address: string;
12288
+ }[] | undefined;
12092
12289
  syncTracked?: boolean | undefined;
12093
12290
  syncFreshness?: {
12094
12291
  greenSeconds?: number | undefined;
@@ -12146,9 +12343,9 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12146
12343
  metric: string;
12147
12344
  aggregate: "max" | "sum" | "avg" | "min";
12148
12345
  }[];
12346
+ kind: "Cell";
12149
12347
  placementPolicy: "least-loaded" | "round-robin" | "random";
12150
12348
  parentCells: string[];
12151
- kind: "Cell";
12152
12349
  displayName?: string | undefined;
12153
12350
  deploymentTarget?: string | undefined;
12154
12351
  membership?: {
@@ -12209,7 +12406,8 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12209
12406
  title?: string | undefined;
12210
12407
  enum?: string[] | undefined;
12211
12408
  }>, "many">>>;
12212
- constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
12409
+ containment: zod.ZodOptional<zod.ZodBoolean>;
12410
+ constraints: zod.ZodDefault<zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
12213
12411
  type: zod.ZodLiteral<"property-sum">;
12214
12412
  property: zod.ZodString;
12215
12413
  leq: zod.ZodString;
@@ -12221,7 +12419,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12221
12419
  type: "property-sum";
12222
12420
  property: string;
12223
12421
  leq: string;
12224
- }>, "many">>>;
12422
+ }>, zod.ZodObject<{
12423
+ type: zod.ZodLiteral<"relationship-count">;
12424
+ leq: zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>;
12425
+ }, "strip", zod.ZodTypeAny, {
12426
+ type: "relationship-count";
12427
+ leq: string | number;
12428
+ }, {
12429
+ type: "relationship-count";
12430
+ leq: string | number;
12431
+ }>]>, "many">>>;
12225
12432
  }, "strip", zod.ZodTypeAny, {
12226
12433
  name: string;
12227
12434
  from: string;
@@ -12235,15 +12442,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12235
12442
  title?: string | undefined;
12236
12443
  enum?: string[] | undefined;
12237
12444
  }[];
12238
- constraints: {
12445
+ constraints: ({
12239
12446
  type: "property-sum";
12240
12447
  property: string;
12241
12448
  leq: string;
12242
- }[];
12243
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
12449
+ } | {
12450
+ type: "relationship-count";
12451
+ leq: string | number;
12452
+ })[];
12244
12453
  kind: "RelationshipType";
12454
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
12245
12455
  to: string;
12246
12456
  displayName?: string | undefined;
12457
+ containment?: boolean | undefined;
12247
12458
  }, {
12248
12459
  name: string;
12249
12460
  from: string;
@@ -12260,12 +12471,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
12260
12471
  title?: string | undefined;
12261
12472
  enum?: string[] | undefined;
12262
12473
  }[] | undefined;
12263
- constraints?: {
12474
+ constraints?: ({
12264
12475
  type: "property-sum";
12265
12476
  property: string;
12266
12477
  leq: string;
12267
- }[] | undefined;
12478
+ } | {
12479
+ type: "relationship-count";
12480
+ leq: string | number;
12481
+ })[] | undefined;
12268
12482
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
12483
+ containment?: boolean | undefined;
12269
12484
  }>, zod.ZodObject<{
12270
12485
  kind: zod.ZodLiteral<"Action">;
12271
12486
  name: zod.ZodString;
@@ -14726,6 +14941,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
14726
14941
  enum?: string[] | undefined;
14727
14942
  }[];
14728
14943
  name: string;
14944
+ kind: "Action";
14729
14945
  conditions: {
14730
14946
  value: string | number | boolean | string[];
14731
14947
  field: string;
@@ -14838,7 +15054,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
14838
15054
  onFailure: string;
14839
15055
  to: string;
14840
15056
  };
14841
- kind: "Action";
14842
15057
  associatedWith: {
14843
15058
  scope: "collection" | "instance";
14844
15059
  entityType: string;
@@ -15160,6 +15375,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15160
15375
  mutatesProperty?: string | undefined;
15161
15376
  }, {
15162
15377
  name: string;
15378
+ kind: "Action";
15163
15379
  operation: {
15164
15380
  type: "create-entity";
15165
15381
  entityType: string;
@@ -15259,7 +15475,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15259
15475
  onFailure: string;
15260
15476
  to: string;
15261
15477
  };
15262
- kind: "Action";
15263
15478
  associatedWith: {
15264
15479
  scope: "collection" | "instance";
15265
15480
  entityType: string;
@@ -15717,6 +15932,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15717
15932
  enum?: string[] | undefined;
15718
15933
  }[];
15719
15934
  name: string;
15935
+ kind: "Action";
15720
15936
  conditions: {
15721
15937
  value: string | number | boolean | string[];
15722
15938
  field: string;
@@ -15829,7 +16045,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
15829
16045
  onFailure: string;
15830
16046
  to: string;
15831
16047
  };
15832
- kind: "Action";
15833
16048
  associatedWith: {
15834
16049
  scope: "collection" | "instance";
15835
16050
  entityType: string;
@@ -16183,9 +16398,14 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16183
16398
  max: number;
16184
16399
  metric: string;
16185
16400
  }[];
16186
- syncTracked: boolean;
16187
16401
  kind: "EntityType";
16402
+ syncTracked: boolean;
16188
16403
  displayName?: string | undefined;
16404
+ composition?: {
16405
+ provider: string;
16406
+ kind: "data" | "resource" | "module";
16407
+ address: string;
16408
+ }[] | undefined;
16189
16409
  syncFreshness?: {
16190
16410
  greenSeconds?: number | undefined;
16191
16411
  yellowSeconds?: number | undefined;
@@ -16199,9 +16419,9 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16199
16419
  metric: string;
16200
16420
  aggregate: "max" | "sum" | "avg" | "min";
16201
16421
  }[];
16422
+ kind: "Cell";
16202
16423
  placementPolicy: "least-loaded" | "round-robin" | "random";
16203
16424
  parentCells: string[];
16204
- kind: "Cell";
16205
16425
  displayName?: string | undefined;
16206
16426
  deploymentTarget?: string | undefined;
16207
16427
  membership?: {
@@ -16223,15 +16443,19 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16223
16443
  title?: string | undefined;
16224
16444
  enum?: string[] | undefined;
16225
16445
  }[];
16226
- constraints: {
16446
+ constraints: ({
16227
16447
  type: "property-sum";
16228
16448
  property: string;
16229
16449
  leq: string;
16230
- }[];
16231
- cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
16450
+ } | {
16451
+ type: "relationship-count";
16452
+ leq: string | number;
16453
+ })[];
16232
16454
  kind: "RelationshipType";
16455
+ cardinality: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
16233
16456
  to: string;
16234
16457
  displayName?: string | undefined;
16458
+ containment?: boolean | undefined;
16235
16459
  } | {
16236
16460
  name: string;
16237
16461
  kind: "Secret";
@@ -16273,6 +16497,7 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16273
16497
  envName: string;
16274
16498
  items: ({
16275
16499
  name: string;
16500
+ kind: "Action";
16276
16501
  operation: {
16277
16502
  type: "create-entity";
16278
16503
  entityType: string;
@@ -16372,7 +16597,6 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16372
16597
  onFailure: string;
16373
16598
  to: string;
16374
16599
  };
16375
- kind: "Action";
16376
16600
  associatedWith: {
16377
16601
  scope: "collection" | "instance";
16378
16602
  entityType: string;
@@ -16750,6 +16974,11 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16750
16974
  max: number;
16751
16975
  metric: string;
16752
16976
  }[] | undefined;
16977
+ composition?: {
16978
+ provider: string;
16979
+ kind: "data" | "resource" | "module";
16980
+ address: string;
16981
+ }[] | undefined;
16753
16982
  syncTracked?: boolean | undefined;
16754
16983
  syncFreshness?: {
16755
16984
  greenSeconds?: number | undefined;
@@ -16791,12 +17020,16 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
16791
17020
  title?: string | undefined;
16792
17021
  enum?: string[] | undefined;
16793
17022
  }[] | undefined;
16794
- constraints?: {
17023
+ constraints?: ({
16795
17024
  type: "property-sum";
16796
17025
  property: string;
16797
17026
  leq: string;
16798
- }[] | undefined;
17027
+ } | {
17028
+ type: "relationship-count";
17029
+ leq: string | number;
17030
+ })[] | undefined;
16799
17031
  cardinality?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
17032
+ containment?: boolean | undefined;
16800
17033
  } | {
16801
17034
  name: string;
16802
17035
  kind: "Secret";
@@ -18017,6 +18250,29 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18017
18250
  decidedBy: string | null;
18018
18251
  }>;
18019
18252
  };
18253
+ resolveSource: SchemaFn<zod.ZodObject<{
18254
+ orgId: zod.ZodString;
18255
+ projectId: zod.ZodString;
18256
+ kind: zod.ZodLiteral<"registry">;
18257
+ ref: zod.ZodString;
18258
+ version: zod.ZodOptional<zod.ZodString>;
18259
+ }, "strip", zod.ZodTypeAny, {
18260
+ ref: string;
18261
+ orgId: string;
18262
+ projectId: string;
18263
+ kind: "registry";
18264
+ version?: string | undefined;
18265
+ }, {
18266
+ ref: string;
18267
+ orgId: string;
18268
+ projectId: string;
18269
+ kind: "registry";
18270
+ version?: string | undefined;
18271
+ }>, {
18272
+ name: string;
18273
+ inputs: _terrantula_types.RegistryInput[];
18274
+ outputs: _terrantula_types.RegistryOutput[];
18275
+ }>;
18020
18276
  exportCatalog: SchemaFn<zod.ZodObject<{
18021
18277
  orgId: zod.ZodString;
18022
18278
  projectId: zod.ZodString;
@@ -18223,9 +18479,9 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18223
18479
  metric: string;
18224
18480
  aggregate: "max" | "sum" | "avg" | "min";
18225
18481
  }[];
18482
+ kind: "Cell";
18226
18483
  placementPolicy: "least-loaded" | "round-robin" | "random";
18227
18484
  parentCells: string[];
18228
- kind: "Cell";
18229
18485
  displayName?: string | undefined;
18230
18486
  deploymentTarget?: string | undefined;
18231
18487
  membership?: {
@@ -18333,9 +18589,9 @@ declare const createLocalClient: (options?: CreateLocalClientOptions) => {
18333
18589
  metric: string;
18334
18590
  aggregate: "max" | "sum" | "avg" | "min";
18335
18591
  }[];
18592
+ kind: "Cell";
18336
18593
  placementPolicy: "least-loaded" | "round-robin" | "random";
18337
18594
  parentCells: string[];
18338
- kind: "Cell";
18339
18595
  displayName?: string | undefined;
18340
18596
  deploymentTarget?: string | undefined;
18341
18597
  membership?: {