@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.
@@ -666,30 +666,84 @@ function createDeploymentTargetsClient(proj) {
666
666
  };
667
667
  }
668
668
 
669
- // src/cells.ts
669
+ // src/deployment-target-sets.ts
670
670
  import { z as z5 } from "zod";
671
- import { CellSchema } from "@terrantula/types";
672
- function createCellsClient(proj) {
671
+ import { DeploymentTargetSetSchema } from "@terrantula/types";
672
+ function createDeploymentTargetSetsClient(proj) {
673
673
  return {
674
674
  list: withSchema(
675
675
  z5.object({
676
676
  orgId: z5.string().describe("Organization slug"),
677
677
  projectId: z5.string().describe("Project ID")
678
678
  }),
679
- (params) => call(proj(params.orgId, params.projectId)["cells"].$get())
679
+ (params) => call(proj(params.orgId, params.projectId)["deployment-target-sets"].$get())
680
680
  ),
681
681
  get: withSchema(
682
682
  z5.object({
683
683
  orgId: z5.string().describe("Organization slug"),
684
684
  projectId: z5.string().describe("Project ID"),
685
- name: z5.string().describe("Cell name")
685
+ name: z5.string().describe("Deployment target set name")
686
+ }),
687
+ (params) => call(
688
+ proj(params.orgId, params.projectId)["deployment-target-sets"][":name"].$get({
689
+ param: { name: params.name }
690
+ })
691
+ )
692
+ ),
693
+ put: withSchema(
694
+ DeploymentTargetSetSchema.extend({
695
+ orgId: z5.string().describe("Organization slug"),
696
+ projectId: z5.string().describe("Project ID")
697
+ }),
698
+ (params) => {
699
+ const { orgId, projectId, ...body } = params;
700
+ return call(
701
+ proj(orgId, projectId)["deployment-target-sets"][":name"].$put({
702
+ param: { name: params.name },
703
+ json: body
704
+ })
705
+ );
706
+ }
707
+ ),
708
+ delete: withSchema(
709
+ z5.object({
710
+ orgId: z5.string().describe("Organization slug"),
711
+ projectId: z5.string().describe("Project ID"),
712
+ name: z5.string().describe("Deployment target set name")
713
+ }),
714
+ (params) => call(
715
+ proj(params.orgId, params.projectId)["deployment-target-sets"][":name"].$delete({
716
+ param: { name: params.name }
717
+ })
718
+ )
719
+ )
720
+ };
721
+ }
722
+
723
+ // src/cells.ts
724
+ import { z as z6 } from "zod";
725
+ import { CellSchema } from "@terrantula/types";
726
+ function createCellsClient(proj) {
727
+ return {
728
+ list: withSchema(
729
+ z6.object({
730
+ orgId: z6.string().describe("Organization slug"),
731
+ projectId: z6.string().describe("Project ID")
732
+ }),
733
+ (params) => call(proj(params.orgId, params.projectId)["cells"].$get())
734
+ ),
735
+ get: withSchema(
736
+ z6.object({
737
+ orgId: z6.string().describe("Organization slug"),
738
+ projectId: z6.string().describe("Project ID"),
739
+ name: z6.string().describe("Cell name")
686
740
  }),
687
741
  (params) => call(proj(params.orgId, params.projectId)["cells"][":name"].$get({ param: { name: params.name } }))
688
742
  ),
689
743
  create: withSchema(
690
744
  CellSchema.extend({
691
- orgId: z5.string().describe("Organization slug"),
692
- projectId: z5.string().describe("Project ID")
745
+ orgId: z6.string().describe("Organization slug"),
746
+ projectId: z6.string().describe("Project ID")
693
747
  }),
694
748
  (params) => {
695
749
  const { orgId, projectId, ...body } = params;
@@ -698,8 +752,8 @@ function createCellsClient(proj) {
698
752
  ),
699
753
  update: withSchema(
700
754
  CellSchema.extend({
701
- orgId: z5.string().describe("Organization slug"),
702
- projectId: z5.string().describe("Project ID")
755
+ orgId: z6.string().describe("Organization slug"),
756
+ projectId: z6.string().describe("Project ID")
703
757
  }),
704
758
  (params) => {
705
759
  const { orgId, projectId, ...body } = params;
@@ -709,19 +763,19 @@ function createCellsClient(proj) {
709
763
  }
710
764
  ),
711
765
  delete: withSchema(
712
- z5.object({
713
- orgId: z5.string().describe("Organization slug"),
714
- projectId: z5.string().describe("Project ID"),
715
- name: z5.string().describe("Cell name")
766
+ z6.object({
767
+ orgId: z6.string().describe("Organization slug"),
768
+ projectId: z6.string().describe("Project ID"),
769
+ name: z6.string().describe("Cell name")
716
770
  }),
717
771
  (params) => call(proj(params.orgId, params.projectId)["cells"][":name"].$delete({ param: { name: params.name } }))
718
772
  ),
719
773
  listMembers: withSchema(
720
- z5.object({
721
- orgId: z5.string().describe("Organization slug"),
722
- projectId: z5.string().describe("Project ID"),
723
- name: z5.string().describe("Cell name"),
724
- envName: z5.string().describe("Environment name").default("default")
774
+ z6.object({
775
+ orgId: z6.string().describe("Organization slug"),
776
+ projectId: z6.string().describe("Project ID"),
777
+ name: z6.string().describe("Cell name"),
778
+ envName: z6.string().describe("Environment name").default("default")
725
779
  }),
726
780
  (params) => {
727
781
  const envName = params.envName ?? "default";
@@ -734,13 +788,13 @@ function createCellsClient(proj) {
734
788
  }
735
789
  ),
736
790
  addMember: withSchema(
737
- z5.object({
738
- orgId: z5.string().describe("Organization slug"),
739
- projectId: z5.string().describe("Project ID"),
740
- name: z5.string().describe("Cell name"),
741
- entityName: z5.string().describe("Entity name (M5-rework natural key)"),
742
- entityTypeName: z5.string().describe("Entity type name (M5-rework natural key)"),
743
- envName: z5.string().describe("Environment name").default("default")
791
+ z6.object({
792
+ orgId: z6.string().describe("Organization slug"),
793
+ projectId: z6.string().describe("Project ID"),
794
+ name: z6.string().describe("Cell name"),
795
+ entityName: z6.string().describe("Entity name (M5-rework natural key)"),
796
+ entityTypeName: z6.string().describe("Entity type name (M5-rework natural key)"),
797
+ envName: z6.string().describe("Environment name").default("default")
744
798
  }),
745
799
  (params) => {
746
800
  const { orgId, projectId, name, entityName, entityTypeName } = params;
@@ -754,12 +808,12 @@ function createCellsClient(proj) {
754
808
  }
755
809
  ),
756
810
  removeMember: withSchema(
757
- z5.object({
758
- orgId: z5.string().describe("Organization slug"),
759
- projectId: z5.string().describe("Project ID"),
760
- name: z5.string().describe("Cell name"),
761
- entityName: z5.string().describe("Entity name (M5-rework natural key)"),
762
- envName: z5.string().describe("Environment name").default("default")
811
+ z6.object({
812
+ orgId: z6.string().describe("Organization slug"),
813
+ projectId: z6.string().describe("Project ID"),
814
+ name: z6.string().describe("Cell name"),
815
+ entityName: z6.string().describe("Entity name (M5-rework natural key)"),
816
+ envName: z6.string().describe("Environment name").default("default")
763
817
  }),
764
818
  (params) => {
765
819
  const envName = params.envName ?? "default";
@@ -772,10 +826,10 @@ function createCellsClient(proj) {
772
826
  }
773
827
  ),
774
828
  recommendations: withSchema(
775
- z5.object({
776
- orgId: z5.string().describe("Organization slug"),
777
- projectId: z5.string().describe("Project ID"),
778
- name: z5.string().describe("Cell name")
829
+ z6.object({
830
+ orgId: z6.string().describe("Organization slug"),
831
+ projectId: z6.string().describe("Project ID"),
832
+ name: z6.string().describe("Cell name")
779
833
  }),
780
834
  (params) => call(
781
835
  proj(params.orgId, params.projectId)["cells"][":name"]["recommendations"].$get({
@@ -787,22 +841,22 @@ function createCellsClient(proj) {
787
841
  }
788
842
 
789
843
  // src/relationships.ts
790
- import { z as z6 } from "zod";
844
+ import { z as z7 } from "zod";
791
845
  import { RelationshipTypeSchema, RelationshipSchema } from "@terrantula/types";
792
846
  function createRelationshipTypesClient(proj) {
793
847
  return {
794
848
  list: withSchema(
795
- z6.object({
796
- orgId: z6.string().describe("Organization slug"),
797
- projectId: z6.string().describe("Project name")
849
+ z7.object({
850
+ orgId: z7.string().describe("Organization slug"),
851
+ projectId: z7.string().describe("Project name")
798
852
  }),
799
853
  (params) => call(proj(params.orgId, params.projectId)["relationship-types"].$get())
800
854
  ),
801
855
  get: withSchema(
802
- z6.object({
803
- orgId: z6.string().describe("Organization slug"),
804
- projectId: z6.string().describe("Project name"),
805
- name: z6.string().describe("Relationship type name")
856
+ z7.object({
857
+ orgId: z7.string().describe("Organization slug"),
858
+ projectId: z7.string().describe("Project name"),
859
+ name: z7.string().describe("Relationship type name")
806
860
  }),
807
861
  (params) => call(
808
862
  proj(params.orgId, params.projectId)["relationship-types"][":name"].$get({
@@ -812,8 +866,8 @@ function createRelationshipTypesClient(proj) {
812
866
  ),
813
867
  create: withSchema(
814
868
  RelationshipTypeSchema.extend({
815
- orgId: z6.string().describe("Organization slug"),
816
- projectId: z6.string().describe("Project name")
869
+ orgId: z7.string().describe("Organization slug"),
870
+ projectId: z7.string().describe("Project name")
817
871
  }),
818
872
  (params) => {
819
873
  const { orgId, projectId, ...body } = params;
@@ -822,8 +876,8 @@ function createRelationshipTypesClient(proj) {
822
876
  ),
823
877
  update: withSchema(
824
878
  RelationshipTypeSchema.extend({
825
- orgId: z6.string().describe("Organization slug"),
826
- projectId: z6.string().describe("Project name")
879
+ orgId: z7.string().describe("Organization slug"),
880
+ projectId: z7.string().describe("Project name")
827
881
  }),
828
882
  (params) => {
829
883
  const { orgId, projectId, ...body } = params;
@@ -836,10 +890,10 @@ function createRelationshipTypesClient(proj) {
836
890
  }
837
891
  ),
838
892
  delete: withSchema(
839
- z6.object({
840
- orgId: z6.string().describe("Organization slug"),
841
- projectId: z6.string().describe("Project name"),
842
- name: z6.string().describe("Relationship type name")
893
+ z7.object({
894
+ orgId: z7.string().describe("Organization slug"),
895
+ projectId: z7.string().describe("Project name"),
896
+ name: z7.string().describe("Relationship type name")
843
897
  }),
844
898
  (params) => call(
845
899
  proj(params.orgId, params.projectId)["relationship-types"][":name"].$delete({
@@ -852,18 +906,18 @@ function createRelationshipTypesClient(proj) {
852
906
  function createRelationshipsClient(projEnv) {
853
907
  return {
854
908
  list: withSchema(
855
- z6.object({
856
- orgId: z6.string().describe("Organization slug"),
857
- projectId: z6.string().describe("Project name"),
858
- envName: z6.string().describe("Environment name"),
859
- relationshipType: z6.string().optional().describe("Filter by relationship type"),
860
- state: z6.string().optional().describe("Filter by state"),
861
- fromEntity: z6.string().uuid().optional().describe("Filter by from-entity ID"),
862
- toEntity: z6.string().uuid().optional().describe("Filter by to-entity ID"),
863
- fromEntityCell: z6.string().optional().describe("Filter by from-entity cell membership"),
864
- toEntityCell: z6.string().optional().describe("Filter by to-entity cell membership"),
865
- limit: z6.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)"),
866
- cursor: z6.string().optional().describe("Pagination cursor")
909
+ z7.object({
910
+ orgId: z7.string().describe("Organization slug"),
911
+ projectId: z7.string().describe("Project name"),
912
+ envName: z7.string().describe("Environment name"),
913
+ relationshipType: z7.string().optional().describe("Filter by relationship type"),
914
+ state: z7.string().optional().describe("Filter by state"),
915
+ fromEntity: z7.string().uuid().optional().describe("Filter by from-entity ID"),
916
+ toEntity: z7.string().uuid().optional().describe("Filter by to-entity ID"),
917
+ fromEntityCell: z7.string().optional().describe("Filter by from-entity cell membership"),
918
+ toEntityCell: z7.string().optional().describe("Filter by to-entity cell membership"),
919
+ limit: z7.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)"),
920
+ cursor: z7.string().optional().describe("Pagination cursor")
867
921
  }),
868
922
  (params) => {
869
923
  const { orgId, projectId, envName, ...query } = params;
@@ -873,11 +927,11 @@ function createRelationshipsClient(projEnv) {
873
927
  }
874
928
  ),
875
929
  get: withSchema(
876
- z6.object({
877
- orgId: z6.string().describe("Organization slug"),
878
- projectId: z6.string().describe("Project name"),
879
- envName: z6.string().describe("Environment name"),
880
- id: z6.string().uuid().describe("Relationship ID")
930
+ z7.object({
931
+ orgId: z7.string().describe("Organization slug"),
932
+ projectId: z7.string().describe("Project name"),
933
+ envName: z7.string().describe("Environment name"),
934
+ id: z7.string().uuid().describe("Relationship ID")
881
935
  }),
882
936
  (params) => call(
883
937
  projEnv(params.orgId, params.projectId, params.envName)["relationships"][":id"].$get({ param: { id: params.id } })
@@ -885,9 +939,9 @@ function createRelationshipsClient(projEnv) {
885
939
  ),
886
940
  create: withSchema(
887
941
  RelationshipSchema.extend({
888
- orgId: z6.string().describe("Organization slug"),
889
- projectId: z6.string().describe("Project name"),
890
- envName: z6.string().describe("Environment name")
942
+ orgId: z7.string().describe("Organization slug"),
943
+ projectId: z7.string().describe("Project name"),
944
+ envName: z7.string().describe("Environment name")
891
945
  }),
892
946
  (params) => {
893
947
  const { orgId, projectId, envName, ...body } = params;
@@ -895,11 +949,11 @@ function createRelationshipsClient(projEnv) {
895
949
  }
896
950
  ),
897
951
  delete: withSchema(
898
- z6.object({
899
- orgId: z6.string().describe("Organization slug"),
900
- projectId: z6.string().describe("Project name"),
901
- envName: z6.string().describe("Environment name"),
902
- id: z6.string().uuid().describe("Relationship ID")
952
+ z7.object({
953
+ orgId: z7.string().describe("Organization slug"),
954
+ projectId: z7.string().describe("Project name"),
955
+ envName: z7.string().describe("Environment name"),
956
+ id: z7.string().uuid().describe("Relationship ID")
903
957
  }),
904
958
  (params) => call(
905
959
  projEnv(params.orgId, params.projectId, params.envName)["relationships"][":id"].$delete({ param: { id: params.id } })
@@ -909,29 +963,29 @@ function createRelationshipsClient(projEnv) {
909
963
  }
910
964
 
911
965
  // src/actions.ts
912
- import { z as z7 } from "zod";
966
+ import { z as z8 } from "zod";
913
967
  import { ActionSchema } from "@terrantula/types";
914
968
  function createActionsClient(proj, projEnv) {
915
969
  return {
916
970
  list: withSchema(
917
- z7.object({
918
- orgId: z7.string().describe("Organization slug"),
919
- projectId: z7.string().describe("Project ID")
971
+ z8.object({
972
+ orgId: z8.string().describe("Organization slug"),
973
+ projectId: z8.string().describe("Project ID")
920
974
  }),
921
975
  (params) => call(proj(params.orgId, params.projectId)["actions"].$get())
922
976
  ),
923
977
  get: withSchema(
924
- z7.object({
925
- orgId: z7.string().describe("Organization slug"),
926
- projectId: z7.string().describe("Project ID"),
927
- name: z7.string().describe("Action name")
978
+ z8.object({
979
+ orgId: z8.string().describe("Organization slug"),
980
+ projectId: z8.string().describe("Project ID"),
981
+ name: z8.string().describe("Action name")
928
982
  }),
929
983
  (params) => call(proj(params.orgId, params.projectId)["actions"][":name"].$get({ param: { name: params.name } }))
930
984
  ),
931
985
  create: withSchema(
932
986
  ActionSchema.extend({
933
- orgId: z7.string().describe("Organization slug"),
934
- projectId: z7.string().describe("Project ID")
987
+ orgId: z8.string().describe("Organization slug"),
988
+ projectId: z8.string().describe("Project ID")
935
989
  }),
936
990
  (params) => {
937
991
  const { orgId, projectId, ...body } = params;
@@ -940,8 +994,8 @@ function createActionsClient(proj, projEnv) {
940
994
  ),
941
995
  update: withSchema(
942
996
  ActionSchema.extend({
943
- orgId: z7.string().describe("Organization slug"),
944
- projectId: z7.string().describe("Project ID")
997
+ orgId: z8.string().describe("Organization slug"),
998
+ projectId: z8.string().describe("Project ID")
945
999
  }),
946
1000
  (params) => {
947
1001
  const { orgId, projectId, ...body } = params;
@@ -951,23 +1005,23 @@ function createActionsClient(proj, projEnv) {
951
1005
  }
952
1006
  ),
953
1007
  delete: withSchema(
954
- z7.object({
955
- orgId: z7.string().describe("Organization slug"),
956
- projectId: z7.string().describe("Project ID"),
957
- name: z7.string().describe("Action name")
1008
+ z8.object({
1009
+ orgId: z8.string().describe("Organization slug"),
1010
+ projectId: z8.string().describe("Project ID"),
1011
+ name: z8.string().describe("Action name")
958
1012
  }),
959
1013
  (params) => call(
960
1014
  proj(params.orgId, params.projectId)["actions"][":name"].$delete({ param: { name: params.name } })
961
1015
  )
962
1016
  ),
963
1017
  run: withSchema(
964
- z7.object({
965
- orgId: z7.string().describe("Organization slug"),
966
- projectId: z7.string().describe("Project ID"),
967
- envName: z7.string().describe("Environment name"),
968
- actionName: z7.string().describe("Action name"),
969
- parameters: z7.record(z7.unknown()).optional().describe("Action parameters as JSON"),
970
- recommendations: z7.record(z7.string()).optional().describe("Recommendation selections as JSON")
1018
+ z8.object({
1019
+ orgId: z8.string().describe("Organization slug"),
1020
+ projectId: z8.string().describe("Project ID"),
1021
+ envName: z8.string().describe("Environment name"),
1022
+ actionName: z8.string().describe("Action name"),
1023
+ parameters: z8.record(z8.unknown()).optional().describe("Action parameters as JSON"),
1024
+ recommendations: z8.record(z8.string()).optional().describe("Recommendation selections as JSON")
971
1025
  }),
972
1026
  (params) => {
973
1027
  const { orgId, projectId, envName, actionName, parameters, recommendations } = params;
@@ -984,14 +1038,14 @@ function createActionsClient(proj, projEnv) {
984
1038
  function createActionRunsClient(projEnv) {
985
1039
  return {
986
1040
  list: withSchema(
987
- z7.object({
988
- orgId: z7.string().describe("Organization slug"),
989
- projectId: z7.string().describe("Project ID"),
990
- envName: z7.string().describe("Environment name"),
991
- actionName: z7.string().optional().describe("Filter by action name"),
992
- entityId: z7.string().uuid().optional().describe("Filter by entity ID"),
993
- status: z7.enum(["pending", "running", "succeeded", "failed", "cancelled"]).optional().describe("Filter by status"),
994
- limit: z7.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
1041
+ z8.object({
1042
+ orgId: z8.string().describe("Organization slug"),
1043
+ projectId: z8.string().describe("Project ID"),
1044
+ envName: z8.string().describe("Environment name"),
1045
+ actionName: z8.string().optional().describe("Filter by action name"),
1046
+ entityId: z8.string().uuid().optional().describe("Filter by entity ID"),
1047
+ status: z8.enum(["pending", "running", "succeeded", "failed", "cancelled"]).optional().describe("Filter by status"),
1048
+ limit: z8.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
995
1049
  }),
996
1050
  (params) => {
997
1051
  const { orgId, projectId, envName, ...query } = params;
@@ -1001,22 +1055,22 @@ function createActionRunsClient(projEnv) {
1001
1055
  }
1002
1056
  ),
1003
1057
  get: withSchema(
1004
- z7.object({
1005
- orgId: z7.string().describe("Organization slug"),
1006
- projectId: z7.string().describe("Project ID"),
1007
- envName: z7.string().describe("Environment name"),
1008
- id: z7.string().uuid().describe("Action run ID")
1058
+ z8.object({
1059
+ orgId: z8.string().describe("Organization slug"),
1060
+ projectId: z8.string().describe("Project ID"),
1061
+ envName: z8.string().describe("Environment name"),
1062
+ id: z8.string().uuid().describe("Action run ID")
1009
1063
  }),
1010
1064
  (params) => call(
1011
1065
  projEnv(params.orgId, params.projectId, params.envName)["action-runs"][":id"].$get({ param: { id: params.id } })
1012
1066
  )
1013
1067
  ),
1014
1068
  cancel: withSchema(
1015
- z7.object({
1016
- orgId: z7.string().describe("Organization slug"),
1017
- projectId: z7.string().describe("Project ID"),
1018
- envName: z7.string().describe("Environment name"),
1019
- id: z7.string().uuid().describe("Action run ID")
1069
+ z8.object({
1070
+ orgId: z8.string().describe("Organization slug"),
1071
+ projectId: z8.string().describe("Project ID"),
1072
+ envName: z8.string().describe("Environment name"),
1073
+ id: z8.string().uuid().describe("Action run ID")
1020
1074
  }),
1021
1075
  (params) => call(
1022
1076
  projEnv(params.orgId, params.projectId, params.envName)["action-runs"][":id"].$delete({ param: { id: params.id } })
@@ -1026,36 +1080,36 @@ function createActionRunsClient(projEnv) {
1026
1080
  }
1027
1081
 
1028
1082
  // src/secrets.ts
1029
- import { z as z8 } from "zod";
1083
+ import { z as z9 } from "zod";
1030
1084
  import { ApplyRequestSchema } from "@terrantula/types";
1031
1085
  function createSecretsClient(projEnv) {
1032
1086
  return {
1033
1087
  list: withSchema(
1034
- z8.object({
1035
- orgId: z8.string().describe("Organization slug"),
1036
- projectId: z8.string().describe("Project ID"),
1037
- envName: z8.string().describe("Environment name")
1088
+ z9.object({
1089
+ orgId: z9.string().describe("Organization slug"),
1090
+ projectId: z9.string().describe("Project ID"),
1091
+ envName: z9.string().describe("Environment name")
1038
1092
  }),
1039
1093
  (params) => call(projEnv(params.orgId, params.projectId, params.envName)["secrets"].$get())
1040
1094
  ),
1041
1095
  get: withSchema(
1042
- z8.object({
1043
- orgId: z8.string().describe("Organization slug"),
1044
- projectId: z8.string().describe("Project ID"),
1045
- envName: z8.string().describe("Environment name"),
1046
- name: z8.string().describe("Secret name")
1096
+ z9.object({
1097
+ orgId: z9.string().describe("Organization slug"),
1098
+ projectId: z9.string().describe("Project ID"),
1099
+ envName: z9.string().describe("Environment name"),
1100
+ name: z9.string().describe("Secret name")
1047
1101
  }),
1048
1102
  (params) => call(
1049
1103
  projEnv(params.orgId, params.projectId, params.envName)["secrets"][":name"].$get({ param: { name: params.name } })
1050
1104
  )
1051
1105
  ),
1052
1106
  create: withSchema(
1053
- z8.object({
1054
- orgId: z8.string().describe("Organization slug"),
1055
- projectId: z8.string().describe("Project ID"),
1056
- envName: z8.string().describe("Environment name"),
1057
- name: z8.string().describe("Secret name"),
1058
- description: z8.string().optional().describe("Description")
1107
+ z9.object({
1108
+ orgId: z9.string().describe("Organization slug"),
1109
+ projectId: z9.string().describe("Project ID"),
1110
+ envName: z9.string().describe("Environment name"),
1111
+ name: z9.string().describe("Secret name"),
1112
+ description: z9.string().optional().describe("Description")
1059
1113
  }),
1060
1114
  (params) => {
1061
1115
  const { orgId, projectId, envName, name, description } = params;
@@ -1065,23 +1119,23 @@ function createSecretsClient(projEnv) {
1065
1119
  }
1066
1120
  ),
1067
1121
  delete: withSchema(
1068
- z8.object({
1069
- orgId: z8.string().describe("Organization slug"),
1070
- projectId: z8.string().describe("Project ID"),
1071
- envName: z8.string().describe("Environment name"),
1072
- name: z8.string().describe("Secret name")
1122
+ z9.object({
1123
+ orgId: z9.string().describe("Organization slug"),
1124
+ projectId: z9.string().describe("Project ID"),
1125
+ envName: z9.string().describe("Environment name"),
1126
+ name: z9.string().describe("Secret name")
1073
1127
  }),
1074
1128
  (params) => call(
1075
1129
  projEnv(params.orgId, params.projectId, params.envName)["secrets"][":name"].$delete({ param: { name: params.name } })
1076
1130
  )
1077
1131
  ),
1078
1132
  setValue: withSchema(
1079
- z8.object({
1080
- orgId: z8.string().describe("Organization slug"),
1081
- projectId: z8.string().describe("Project ID"),
1082
- envName: z8.string().describe("Environment name"),
1083
- name: z8.string().describe("Secret name"),
1084
- value: z8.string().min(1).describe("Secret value")
1133
+ z9.object({
1134
+ orgId: z9.string().describe("Organization slug"),
1135
+ projectId: z9.string().describe("Project ID"),
1136
+ envName: z9.string().describe("Environment name"),
1137
+ name: z9.string().describe("Secret name"),
1138
+ value: z9.string().min(1).describe("Secret value")
1085
1139
  }),
1086
1140
  (params) => {
1087
1141
  const { orgId, projectId, envName, name, value } = params;
@@ -1098,9 +1152,9 @@ function createSecretsClient(projEnv) {
1098
1152
  function createApplyClient(projEnv) {
1099
1153
  return withSchema(
1100
1154
  ApplyRequestSchema.extend({
1101
- orgId: z8.string().describe("Organization slug"),
1102
- projectId: z8.string().describe("Project ID"),
1103
- envName: z8.string().describe("Environment name")
1155
+ orgId: z9.string().describe("Organization slug"),
1156
+ projectId: z9.string().describe("Project ID"),
1157
+ envName: z9.string().describe("Environment name")
1104
1158
  }),
1105
1159
  (params) => {
1106
1160
  const { orgId, projectId, envName, ...body } = params;
@@ -1110,12 +1164,12 @@ function createApplyClient(projEnv) {
1110
1164
  }
1111
1165
 
1112
1166
  // src/github.ts
1113
- import { z as z9 } from "zod";
1167
+ import { z as z10 } from "zod";
1114
1168
  function createGithubClient(cloud, _baseUrl, _hcOpts) {
1115
1169
  return {
1116
1170
  connect: withSchema(
1117
- z9.object({
1118
- projectId: z9.string().describe("Project name")
1171
+ z10.object({
1172
+ projectId: z10.string().describe("Project name")
1119
1173
  }),
1120
1174
  // why: the install-url route has a "GitHub App not configured" branch
1121
1175
  // that returns a bare `new Response(...)` (see notConfiguredResponse in
@@ -1125,14 +1179,14 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1125
1179
  ),
1126
1180
  installations: {
1127
1181
  list: withSchema(
1128
- z9.object({
1129
- orgId: z9.string().describe("Organization slug")
1182
+ z10.object({
1183
+ orgId: z10.string().describe("Organization slug")
1130
1184
  }),
1131
1185
  (params) => call(cloud.github.installations.$get({ query: params }))
1132
1186
  ),
1133
1187
  repos: withSchema(
1134
- z9.object({
1135
- installationId: z9.string().describe("Installation row ID")
1188
+ z10.object({
1189
+ installationId: z10.string().describe("Installation row ID")
1136
1190
  }),
1137
1191
  (params) => call(
1138
1192
  cloud.github.installations[":installationId"].repos.$get({
@@ -1141,8 +1195,8 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1141
1195
  )
1142
1196
  ),
1143
1197
  disconnect: withSchema(
1144
- z9.object({
1145
- installationId: z9.string().describe("Installation row ID")
1198
+ z10.object({
1199
+ installationId: z10.string().describe("Installation row ID")
1146
1200
  }),
1147
1201
  (params) => call(
1148
1202
  cloud.github.installations[":installationId"].$delete({
@@ -1151,9 +1205,9 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1151
1205
  )
1152
1206
  ),
1153
1207
  recover: withSchema(
1154
- z9.object({
1155
- orgId: z9.string().describe("Organization slug"),
1156
- installationId: z9.number().int().positive().describe("GitHub installation ID (from the GitHub install URL)")
1208
+ z10.object({
1209
+ orgId: z10.string().describe("Organization slug"),
1210
+ installationId: z10.number().int().positive().describe("GitHub installation ID (from the GitHub install URL)")
1157
1211
  }),
1158
1212
  // why: same bare-Response inference break as `connect` (the route's
1159
1213
  // not-configured branch returns `new Response(...)`), so the 200 body
@@ -1163,9 +1217,9 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1163
1217
  },
1164
1218
  projects: {
1165
1219
  list: withSchema(
1166
- z9.object({
1167
- orgId: z9.string().describe("Organization slug"),
1168
- projectId: z9.string().describe("Project name")
1220
+ z10.object({
1221
+ orgId: z10.string().describe("Organization slug"),
1222
+ projectId: z10.string().describe("Project name")
1169
1223
  }),
1170
1224
  (params) => call(
1171
1225
  cloud.orgs[":orgId"].projects[":projectId"]["github-repos"].$get({
@@ -1174,11 +1228,11 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1174
1228
  )
1175
1229
  ),
1176
1230
  linkRepo: withSchema(
1177
- z9.object({
1178
- orgId: z9.string().describe("Organization slug"),
1179
- projectId: z9.string().describe("Project name"),
1180
- installationId: z9.string().describe("github_installations.id (UUID)"),
1181
- repoFullName: z9.string().describe('GitHub repo "owner/name"')
1231
+ z10.object({
1232
+ orgId: z10.string().describe("Organization slug"),
1233
+ projectId: z10.string().describe("Project name"),
1234
+ installationId: z10.string().describe("github_installations.id (UUID)"),
1235
+ repoFullName: z10.string().describe('GitHub repo "owner/name"')
1182
1236
  }),
1183
1237
  (params) => {
1184
1238
  const { orgId, projectId, ...body } = params;
@@ -1191,10 +1245,10 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1191
1245
  }
1192
1246
  ),
1193
1247
  unlinkRepo: withSchema(
1194
- z9.object({
1195
- orgId: z9.string().describe("Organization slug"),
1196
- projectId: z9.string().describe("Project name"),
1197
- id: z9.string().describe("project_github_repos.id (UUID) \u2014 returned by linkRepo")
1248
+ z10.object({
1249
+ orgId: z10.string().describe("Organization slug"),
1250
+ projectId: z10.string().describe("Project name"),
1251
+ id: z10.string().describe("project_github_repos.id (UUID) \u2014 returned by linkRepo")
1198
1252
  }),
1199
1253
  (params) => call(
1200
1254
  cloud.orgs[":orgId"].projects[":projectId"]["github-repos"][":id"].$delete({
@@ -1207,23 +1261,23 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1207
1261
  }
1208
1262
 
1209
1263
  // src/blueprints.ts
1210
- import { z as z10 } from "zod";
1211
- var SpinInputSchema = z10.object({
1212
- orgId: z10.string().describe("Organization slug"),
1213
- blueprint: z10.string().describe("First-party blueprint name (e.g. k8s-fleet)"),
1214
- substrate: z10.enum(["bare-tf", "tfc", "atmos"]).optional(),
1215
- repo: z10.string().optional().describe("owner/repo to open the spin PR into (omit when createRepo is set)"),
1216
- prBase: z10.string().optional(),
1217
- githubToken: z10.string().optional(),
1218
- createRepo: z10.object({ name: z10.string(), private: z10.boolean().optional() }).optional().describe("Cloud opt-in: auto-create the target GitHub repo before spinning"),
1219
- createWorkspace: z10.object({ organization: z10.string(), name: z10.string(), apiToken: z10.string(), apiBaseUrl: z10.string().optional() }).optional().describe("Cloud opt-in: auto-create the TFC workspace shell before spinning"),
1220
- vars: z10.record(z10.string()).default({})
1264
+ import { z as z11 } from "zod";
1265
+ var SpinInputSchema = z11.object({
1266
+ orgId: z11.string().describe("Organization slug"),
1267
+ blueprint: z11.string().describe("First-party blueprint name (e.g. k8s-fleet)"),
1268
+ substrate: z11.enum(["bare-tf", "tfc", "atmos"]).optional(),
1269
+ repo: z11.string().optional().describe("owner/repo to open the spin PR into (omit when createRepo is set)"),
1270
+ prBase: z11.string().optional(),
1271
+ githubToken: z11.string().optional(),
1272
+ createRepo: z11.object({ name: z11.string(), private: z11.boolean().optional() }).optional().describe("Cloud opt-in: auto-create the target GitHub repo before spinning"),
1273
+ createWorkspace: z11.object({ organization: z11.string(), name: z11.string(), apiToken: z11.string(), apiBaseUrl: z11.string().optional() }).optional().describe("Cloud opt-in: auto-create the TFC workspace shell before spinning"),
1274
+ vars: z11.record(z11.string()).default({})
1221
1275
  });
1222
1276
  function createBlueprintsClient(cloud) {
1223
1277
  return {
1224
1278
  list: () => call(cloud.blueprints.$get()),
1225
1279
  get: withSchema(
1226
- z10.object({ name: z10.string().describe("Blueprint name") }),
1280
+ z11.object({ name: z11.string().describe("Blueprint name") }),
1227
1281
  (params) => call(cloud.blueprints[":name"].$get({ param: params }))
1228
1282
  ),
1229
1283
  spin: withSchema(SpinInputSchema, (params) => {
@@ -1234,7 +1288,7 @@ function createBlueprintsClient(cloud) {
1234
1288
  }
1235
1289
 
1236
1290
  // src/export.ts
1237
- import { z as z11 } from "zod";
1291
+ import { z as z12 } from "zod";
1238
1292
  var SERVER_FIELDS = /* @__PURE__ */ new Set(["id", "projectId", "envId", "createdAt", "updatedAt"]);
1239
1293
  function stripServerFields(row) {
1240
1294
  const out = {};
@@ -1245,20 +1299,22 @@ function stripServerFields(row) {
1245
1299
  }
1246
1300
  function createExportCatalogFn(proj, projEnv) {
1247
1301
  return withSchema(
1248
- z11.object({
1249
- orgId: z11.string().describe("Organization slug"),
1250
- projectId: z11.string().describe("Project ID"),
1251
- envName: z11.string().describe("Environment name to export secret declarations from")
1302
+ z12.object({
1303
+ orgId: z12.string().describe("Organization slug"),
1304
+ projectId: z12.string().describe("Project ID"),
1305
+ envName: z12.string().describe("Environment name to export secret declarations from")
1252
1306
  }).describe("Export every catalog kind as a single apply-shaped payload"),
1253
1307
  async (params) => {
1254
1308
  const projClient = proj(params.orgId, params.projectId);
1255
1309
  const envClient = projEnv(params.orgId, params.projectId, params.envName);
1256
- const [entityTypes, cells, relationshipTypes, actions, secrets] = await Promise.all([
1310
+ const [entityTypes, cells, relationshipTypes, actions, secrets, deploymentTargetSets, deploymentTargets] = await Promise.all([
1257
1311
  call(projClient["entity-types"].$get()),
1258
1312
  call(projClient["cells"].$get()),
1259
1313
  call(projClient["relationship-types"].$get()),
1260
1314
  call(projClient["actions"].$get()),
1261
- call(envClient["secrets"].$get())
1315
+ call(envClient["secrets"].$get()),
1316
+ call(projClient["deployment-target-sets"].$get()),
1317
+ call(projClient["deployment-targets"].$get())
1262
1318
  ]);
1263
1319
  const items = [
1264
1320
  ...entityTypes.map(
@@ -1282,6 +1338,12 @@ function createExportCatalogFn(proj, projEnv) {
1282
1338
  ),
1283
1339
  ...secrets.map(
1284
1340
  (r) => ({ kind: "Secret", ...stripServerFields(r) })
1341
+ ),
1342
+ ...deploymentTargetSets.map(
1343
+ (r) => ({ kind: "DeploymentTargetSet", ...stripServerFields(r) })
1344
+ ),
1345
+ ...deploymentTargets.map(
1346
+ (r) => ({ kind: "DeploymentTarget", ...stripServerFields(r) })
1285
1347
  )
1286
1348
  ];
1287
1349
  return { items };
@@ -1290,14 +1352,14 @@ function createExportCatalogFn(proj, projEnv) {
1290
1352
  }
1291
1353
 
1292
1354
  // src/catalog-revisions.ts
1293
- import { z as z12 } from "zod";
1355
+ import { z as z13 } from "zod";
1294
1356
  function createCatalogRevisionsClient(proj) {
1295
1357
  return {
1296
1358
  list: withSchema(
1297
- z12.object({
1298
- orgId: z12.string().describe("Organization slug"),
1299
- projectId: z12.string().describe("Project ID"),
1300
- limit: z12.coerce.number().int().min(1).max(200).optional().describe("Max revisions to return (1-200)")
1359
+ z13.object({
1360
+ orgId: z13.string().describe("Organization slug"),
1361
+ projectId: z13.string().describe("Project ID"),
1362
+ limit: z13.coerce.number().int().min(1).max(200).optional().describe("Max revisions to return (1-200)")
1301
1363
  }),
1302
1364
  (params) => {
1303
1365
  const { orgId, projectId, ...query } = params;
@@ -1307,20 +1369,20 @@ function createCatalogRevisionsClient(proj) {
1307
1369
  }
1308
1370
  ),
1309
1371
  get: withSchema(
1310
- z12.object({
1311
- orgId: z12.string().describe("Organization slug"),
1312
- projectId: z12.string().describe("Project ID"),
1313
- id: z12.string().uuid().describe("Revision ID")
1372
+ z13.object({
1373
+ orgId: z13.string().describe("Organization slug"),
1374
+ projectId: z13.string().describe("Project ID"),
1375
+ id: z13.string().uuid().describe("Revision ID")
1314
1376
  }),
1315
1377
  (params) => call(
1316
1378
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"].$get({ param: { id: params.id } })
1317
1379
  )
1318
1380
  ),
1319
1381
  snapshots: withSchema(
1320
- z12.object({
1321
- orgId: z12.string().describe("Organization slug"),
1322
- projectId: z12.string().describe("Project ID"),
1323
- id: z12.string().uuid().describe("Revision ID to read snapshots for")
1382
+ z13.object({
1383
+ orgId: z13.string().describe("Organization slug"),
1384
+ projectId: z13.string().describe("Project ID"),
1385
+ id: z13.string().uuid().describe("Revision ID to read snapshots for")
1324
1386
  }),
1325
1387
  (params) => call(
1326
1388
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"]["snapshots"].$get({
@@ -1334,12 +1396,12 @@ function createCatalogRevisionsClient(proj) {
1334
1396
  * `force: true`, mirroring POST /apply.
1335
1397
  */
1336
1398
  rollback: withSchema(
1337
- z12.object({
1338
- orgId: z12.string().describe("Organization slug"),
1339
- projectId: z12.string().describe("Project ID"),
1340
- id: z12.string().uuid().describe("Revision ID to roll back to"),
1341
- hunkId: z12.string().uuid().optional().describe("Single-hunk filter"),
1342
- force: z12.boolean().optional().describe("Required if the inverse diff is destructive")
1399
+ z13.object({
1400
+ orgId: z13.string().describe("Organization slug"),
1401
+ projectId: z13.string().describe("Project ID"),
1402
+ id: z13.string().uuid().describe("Revision ID to roll back to"),
1403
+ hunkId: z13.string().uuid().optional().describe("Single-hunk filter"),
1404
+ force: z13.boolean().optional().describe("Required if the inverse diff is destructive")
1343
1405
  }),
1344
1406
  (params) => {
1345
1407
  const { orgId, projectId, id, hunkId, force } = params;
@@ -1356,20 +1418,20 @@ function createCatalogRevisionsClient(proj) {
1356
1418
  }
1357
1419
 
1358
1420
  // src/audit-events.ts
1359
- import { z as z13 } from "zod";
1421
+ import { z as z14 } from "zod";
1360
1422
  function createAuditEventsClient(proj) {
1361
1423
  return {
1362
1424
  list: withSchema(
1363
- z13.object({
1364
- orgId: z13.string().describe("Organization slug"),
1365
- projectId: z13.string().describe("Project name"),
1366
- envName: z13.string().optional().describe("Filter to a single env"),
1367
- actorType: z13.enum(["user", "token"]).optional().describe("Filter by actor type"),
1368
- actorId: z13.string().optional().describe("Filter by actor (user.id or apikey.id)"),
1369
- action: z13.string().optional().describe('Comma-separated actions (e.g. "create,delete")'),
1370
- resourceKind: z13.string().optional().describe("Filter to one resource kind (Entity | Token | Member | \u2026)"),
1371
- since: z13.string().datetime().optional().describe("ISO timestamp; only events strictly after this are returned"),
1372
- limit: z13.coerce.number().int().min(1).max(500).optional().describe("Max rows (1-500)")
1425
+ z14.object({
1426
+ orgId: z14.string().describe("Organization slug"),
1427
+ projectId: z14.string().describe("Project name"),
1428
+ envName: z14.string().optional().describe("Filter to a single env"),
1429
+ actorType: z14.enum(["user", "token"]).optional().describe("Filter by actor type"),
1430
+ actorId: z14.string().optional().describe("Filter by actor (user.id or apikey.id)"),
1431
+ action: z14.string().optional().describe('Comma-separated actions (e.g. "create,delete")'),
1432
+ resourceKind: z14.string().optional().describe("Filter to one resource kind (Entity | Token | Member | \u2026)"),
1433
+ since: z14.string().datetime().optional().describe("ISO timestamp; only events strictly after this are returned"),
1434
+ limit: z14.coerce.number().int().min(1).max(500).optional().describe("Max rows (1-500)")
1373
1435
  }).describe("List audit events for a project \u2014 auditor-friendly read-only feed"),
1374
1436
  (params) => {
1375
1437
  const { orgId, projectId, ...query } = params;
@@ -1380,21 +1442,21 @@ function createAuditEventsClient(proj) {
1380
1442
  }
1381
1443
 
1382
1444
  // src/environments.ts
1383
- import { z as z14 } from "zod";
1445
+ import { z as z15 } from "zod";
1384
1446
  function createEnvironmentsClient(proj) {
1385
1447
  return {
1386
1448
  list: withSchema(
1387
- z14.object({
1388
- orgId: z14.string().describe("Organization slug"),
1389
- projectId: z14.string().describe("Project name")
1449
+ z15.object({
1450
+ orgId: z15.string().describe("Organization slug"),
1451
+ projectId: z15.string().describe("Project name")
1390
1452
  }),
1391
1453
  (params) => call(proj(params.orgId, params.projectId)["environments"].$get())
1392
1454
  ),
1393
1455
  create: withSchema(
1394
- z14.object({
1395
- orgId: z14.string().describe("Organization slug"),
1396
- projectId: z14.string().describe("Project name"),
1397
- name: z14.string().min(1).max(31).regex(/^[a-z0-9][a-z0-9-]{0,30}$/).describe("Environment name (lowercase letters, digits, hyphens; max 31 chars)")
1456
+ z15.object({
1457
+ orgId: z15.string().describe("Organization slug"),
1458
+ projectId: z15.string().describe("Project name"),
1459
+ name: z15.string().min(1).max(31).regex(/^[a-z0-9][a-z0-9-]{0,30}$/).describe("Environment name (lowercase letters, digits, hyphens; max 31 chars)")
1398
1460
  }),
1399
1461
  (params) => {
1400
1462
  const { orgId, projectId, name } = params;
@@ -1402,10 +1464,10 @@ function createEnvironmentsClient(proj) {
1402
1464
  }
1403
1465
  ),
1404
1466
  delete: withSchema(
1405
- z14.object({
1406
- orgId: z14.string().describe("Organization slug"),
1407
- projectId: z14.string().describe("Project name"),
1408
- name: z14.string().describe("Environment name")
1467
+ z15.object({
1468
+ orgId: z15.string().describe("Organization slug"),
1469
+ projectId: z15.string().describe("Project name"),
1470
+ name: z15.string().describe("Environment name")
1409
1471
  }),
1410
1472
  (params) => call(
1411
1473
  proj(params.orgId, params.projectId)["environments"][":envName"].$delete({
@@ -1417,19 +1479,19 @@ function createEnvironmentsClient(proj) {
1417
1479
  }
1418
1480
 
1419
1481
  // src/drift-events.ts
1420
- import { z as z15 } from "zod";
1482
+ import { z as z16 } from "zod";
1421
1483
  function createDriftEventsClient(projEnv) {
1422
1484
  return {
1423
1485
  list: withSchema(
1424
- z15.object({
1425
- orgId: z15.string().describe("Organization slug"),
1426
- projectId: z15.string().describe("Project name"),
1427
- envName: z15.string().describe("Environment name"),
1428
- status: z15.enum(["open", "accepted", "reapplied", "snoozed"]).optional(),
1429
- kind: z15.string().optional().describe("Filter by entity type name"),
1430
- entityName: z15.string().optional().describe("Filter by entity name"),
1431
- since: z15.string().optional().describe("ISO timestamp lower bound on detectedAt"),
1432
- limit: z15.coerce.number().int().min(1).max(500).optional()
1486
+ z16.object({
1487
+ orgId: z16.string().describe("Organization slug"),
1488
+ projectId: z16.string().describe("Project name"),
1489
+ envName: z16.string().describe("Environment name"),
1490
+ status: z16.enum(["open", "accepted", "reapplied", "snoozed"]).optional(),
1491
+ kind: z16.string().optional().describe("Filter by entity type name"),
1492
+ entityName: z16.string().optional().describe("Filter by entity name"),
1493
+ since: z16.string().optional().describe("ISO timestamp lower bound on detectedAt"),
1494
+ limit: z16.coerce.number().int().min(1).max(500).optional()
1433
1495
  }),
1434
1496
  (params) => {
1435
1497
  const { orgId, projectId, envName, ...query } = params;
@@ -1439,19 +1501,19 @@ function createDriftEventsClient(projEnv) {
1439
1501
  }
1440
1502
  ),
1441
1503
  count: withSchema(
1442
- z15.object({
1443
- orgId: z15.string().describe("Organization slug"),
1444
- projectId: z15.string().describe("Project name"),
1445
- envName: z15.string().describe("Environment name")
1504
+ z16.object({
1505
+ orgId: z16.string().describe("Organization slug"),
1506
+ projectId: z16.string().describe("Project name"),
1507
+ envName: z16.string().describe("Environment name")
1446
1508
  }),
1447
1509
  (params) => call(projEnv(params.orgId, params.projectId, params.envName)["drift-events"].count.$get())
1448
1510
  ),
1449
1511
  get: withSchema(
1450
- z15.object({
1451
- orgId: z15.string().describe("Organization slug"),
1452
- projectId: z15.string().describe("Project name"),
1453
- envName: z15.string().describe("Environment name"),
1454
- id: z15.string().uuid()
1512
+ z16.object({
1513
+ orgId: z16.string().describe("Organization slug"),
1514
+ projectId: z16.string().describe("Project name"),
1515
+ envName: z16.string().describe("Environment name"),
1516
+ id: z16.string().uuid()
1455
1517
  }),
1456
1518
  (params) => call(
1457
1519
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].$get({
@@ -1460,11 +1522,11 @@ function createDriftEventsClient(projEnv) {
1460
1522
  )
1461
1523
  ),
1462
1524
  accept: withSchema(
1463
- z15.object({
1464
- orgId: z15.string().describe("Organization slug"),
1465
- projectId: z15.string().describe("Project name"),
1466
- envName: z15.string().describe("Environment name"),
1467
- id: z15.string().uuid()
1525
+ z16.object({
1526
+ orgId: z16.string().describe("Organization slug"),
1527
+ projectId: z16.string().describe("Project name"),
1528
+ envName: z16.string().describe("Environment name"),
1529
+ id: z16.string().uuid()
1468
1530
  }),
1469
1531
  (params) => call(
1470
1532
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].accept.$post({
@@ -1473,11 +1535,11 @@ function createDriftEventsClient(projEnv) {
1473
1535
  )
1474
1536
  ),
1475
1537
  reapply: withSchema(
1476
- z15.object({
1477
- orgId: z15.string().describe("Organization slug"),
1478
- projectId: z15.string().describe("Project name"),
1479
- envName: z15.string().describe("Environment name"),
1480
- id: z15.string().uuid()
1538
+ z16.object({
1539
+ orgId: z16.string().describe("Organization slug"),
1540
+ projectId: z16.string().describe("Project name"),
1541
+ envName: z16.string().describe("Environment name"),
1542
+ id: z16.string().uuid()
1481
1543
  }),
1482
1544
  (params) => call(
1483
1545
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].reapply.$post({
@@ -1486,12 +1548,12 @@ function createDriftEventsClient(projEnv) {
1486
1548
  )
1487
1549
  ),
1488
1550
  snooze: withSchema(
1489
- z15.object({
1490
- orgId: z15.string().describe("Organization slug"),
1491
- projectId: z15.string().describe("Project name"),
1492
- envName: z15.string().describe("Environment name"),
1493
- id: z15.string().uuid(),
1494
- untilSeconds: z15.number().int().positive().optional()
1551
+ z16.object({
1552
+ orgId: z16.string().describe("Organization slug"),
1553
+ projectId: z16.string().describe("Project name"),
1554
+ envName: z16.string().describe("Environment name"),
1555
+ id: z16.string().uuid(),
1556
+ untilSeconds: z16.number().int().positive().optional()
1495
1557
  }),
1496
1558
  (params) => call(
1497
1559
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].snooze.$post({
@@ -1504,15 +1566,15 @@ function createDriftEventsClient(projEnv) {
1504
1566
  }
1505
1567
 
1506
1568
  // src/stats.ts
1507
- import { z as z16 } from "zod";
1508
- var WindowSchema = z16.enum(["1h", "24h", "7d"]).optional().describe("Time window \u2014 default 24h");
1509
- var BucketSchema = z16.enum(["1m", "5m", "1h", "1d"]).optional().describe("Bucket granularity \u2014 default 1h");
1569
+ import { z as z17 } from "zod";
1570
+ var WindowSchema = z17.enum(["1h", "24h", "7d"]).optional().describe("Time window \u2014 default 24h");
1571
+ var BucketSchema = z17.enum(["1m", "5m", "1h", "1d"]).optional().describe("Bucket granularity \u2014 default 1h");
1510
1572
  function createStatsClient(proj) {
1511
1573
  return {
1512
1574
  entitiesByState: withSchema(
1513
- z16.object({
1514
- orgId: z16.string().describe("Organization slug"),
1515
- projectId: z16.string().describe("Project name"),
1575
+ z17.object({
1576
+ orgId: z17.string().describe("Organization slug"),
1577
+ projectId: z17.string().describe("Project name"),
1516
1578
  window: WindowSchema,
1517
1579
  bucket: BucketSchema
1518
1580
  }),
@@ -1522,9 +1584,9 @@ function createStatsClient(proj) {
1522
1584
  }
1523
1585
  ),
1524
1586
  runsByType: withSchema(
1525
- z16.object({
1526
- orgId: z16.string().describe("Organization slug"),
1527
- projectId: z16.string().describe("Project name"),
1587
+ z17.object({
1588
+ orgId: z17.string().describe("Organization slug"),
1589
+ projectId: z17.string().describe("Project name"),
1528
1590
  window: WindowSchema
1529
1591
  }),
1530
1592
  (params) => {
@@ -1533,9 +1595,9 @@ function createStatsClient(proj) {
1533
1595
  }
1534
1596
  ),
1535
1597
  failingKinds: withSchema(
1536
- z16.object({
1537
- orgId: z16.string().describe("Organization slug"),
1538
- projectId: z16.string().describe("Project name"),
1598
+ z17.object({
1599
+ orgId: z17.string().describe("Organization slug"),
1600
+ projectId: z17.string().describe("Project name"),
1539
1601
  window: WindowSchema
1540
1602
  }),
1541
1603
  (params) => {
@@ -1544,10 +1606,10 @@ function createStatsClient(proj) {
1544
1606
  }
1545
1607
  ),
1546
1608
  driftDensity: withSchema(
1547
- z16.object({
1548
- orgId: z16.string().describe("Organization slug"),
1549
- projectId: z16.string().describe("Project name"),
1550
- dim: z16.string().optional().describe('Dimensions to bucket \u2014 e.g. "kind,cell"')
1609
+ z17.object({
1610
+ orgId: z17.string().describe("Organization slug"),
1611
+ projectId: z17.string().describe("Project name"),
1612
+ dim: z17.string().optional().describe('Dimensions to bucket \u2014 e.g. "kind,cell"')
1551
1613
  }),
1552
1614
  (params) => {
1553
1615
  const { orgId, projectId, ...query } = params;
@@ -1558,32 +1620,32 @@ function createStatsClient(proj) {
1558
1620
  }
1559
1621
 
1560
1622
  // src/graph-views.ts
1561
- import { z as z17 } from "zod";
1562
- var ViewConfigSchema = z17.unknown();
1563
- var PinnedPositionsSchema = z17.record(z17.string(), z17.object({ x: z17.number(), y: z17.number() })).nullable();
1623
+ import { z as z18 } from "zod";
1624
+ var ViewConfigSchema = z18.unknown();
1625
+ var PinnedPositionsSchema = z18.record(z18.string(), z18.object({ x: z18.number(), y: z18.number() })).nullable();
1564
1626
  function createGraphViewsClient(proj) {
1565
1627
  return {
1566
1628
  list: withSchema(
1567
- z17.object({
1568
- orgId: z17.string().describe("Organization slug"),
1569
- projectId: z17.string().describe("Project ID")
1629
+ z18.object({
1630
+ orgId: z18.string().describe("Organization slug"),
1631
+ projectId: z18.string().describe("Project ID")
1570
1632
  }),
1571
1633
  (params) => call(proj(params.orgId, params.projectId)["graph-views"].$get())
1572
1634
  ),
1573
1635
  get: withSchema(
1574
- z17.object({
1575
- orgId: z17.string().describe("Organization slug"),
1576
- projectId: z17.string().describe("Project ID"),
1577
- id: z17.string().describe("View id")
1636
+ z18.object({
1637
+ orgId: z18.string().describe("Organization slug"),
1638
+ projectId: z18.string().describe("Project ID"),
1639
+ id: z18.string().describe("View id")
1578
1640
  }),
1579
1641
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$get({ param: { id: params.id } }))
1580
1642
  ),
1581
1643
  create: withSchema(
1582
- z17.object({
1583
- orgId: z17.string().describe("Organization slug"),
1584
- projectId: z17.string().describe("Project ID"),
1585
- name: z17.string().describe("View name"),
1586
- scope: z17.enum(["user", "project"]).describe("Personal or project scope"),
1644
+ z18.object({
1645
+ orgId: z18.string().describe("Organization slug"),
1646
+ projectId: z18.string().describe("Project ID"),
1647
+ name: z18.string().describe("View name"),
1648
+ scope: z18.enum(["user", "project"]).describe("Personal or project scope"),
1587
1649
  config: ViewConfigSchema.describe("ViewConfig JSON"),
1588
1650
  pinnedPositions: PinnedPositionsSchema.optional().describe("Pinned node positions")
1589
1651
  }),
@@ -1593,11 +1655,11 @@ function createGraphViewsClient(proj) {
1593
1655
  }
1594
1656
  ),
1595
1657
  update: withSchema(
1596
- z17.object({
1597
- orgId: z17.string().describe("Organization slug"),
1598
- projectId: z17.string().describe("Project ID"),
1599
- id: z17.string().describe("View id"),
1600
- name: z17.string().optional().describe("New name"),
1658
+ z18.object({
1659
+ orgId: z18.string().describe("Organization slug"),
1660
+ projectId: z18.string().describe("Project ID"),
1661
+ id: z18.string().describe("View id"),
1662
+ name: z18.string().optional().describe("New name"),
1601
1663
  config: ViewConfigSchema.optional().describe("Replacement ViewConfig JSON"),
1602
1664
  pinnedPositions: PinnedPositionsSchema.optional().describe("Replacement pinned positions")
1603
1665
  }),
@@ -1609,18 +1671,18 @@ function createGraphViewsClient(proj) {
1609
1671
  }
1610
1672
  ),
1611
1673
  delete: withSchema(
1612
- z17.object({
1613
- orgId: z17.string().describe("Organization slug"),
1614
- projectId: z17.string().describe("Project ID"),
1615
- id: z17.string().describe("View id")
1674
+ z18.object({
1675
+ orgId: z18.string().describe("Organization slug"),
1676
+ projectId: z18.string().describe("Project ID"),
1677
+ id: z18.string().describe("View id")
1616
1678
  }),
1617
1679
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$delete({ param: { id: params.id } }))
1618
1680
  ),
1619
1681
  setDefault: withSchema(
1620
- z17.object({
1621
- orgId: z17.string().describe("Organization slug"),
1622
- projectId: z17.string().describe("Project ID"),
1623
- id: z17.string().describe("View id")
1682
+ z18.object({
1683
+ orgId: z18.string().describe("Organization slug"),
1684
+ projectId: z18.string().describe("Project ID"),
1685
+ id: z18.string().describe("View id")
1624
1686
  }),
1625
1687
  (params) => call(
1626
1688
  proj(params.orgId, params.projectId)["graph-views"][":id"]["default"].$patch({
@@ -1632,15 +1694,15 @@ function createGraphViewsClient(proj) {
1632
1694
  }
1633
1695
 
1634
1696
  // src/notifications.ts
1635
- import { z as z18 } from "zod";
1697
+ import { z as z19 } from "zod";
1636
1698
  import { hc as hc2 } from "hono/client";
1637
1699
  function createNotificationsClient(baseUrl, hcOpts) {
1638
1700
  const c = hc2(`${baseUrl}/notifications`, hcOpts);
1639
1701
  return {
1640
1702
  list: withSchema(
1641
- z18.object({
1642
- limit: z18.coerce.number().int().min(1).max(100).optional(),
1643
- unread: z18.boolean().optional()
1703
+ z19.object({
1704
+ limit: z19.coerce.number().int().min(1).max(100).optional(),
1705
+ unread: z19.boolean().optional()
1644
1706
  }),
1645
1707
  (params) => {
1646
1708
  const query = {};
@@ -1650,18 +1712,18 @@ function createNotificationsClient(baseUrl, hcOpts) {
1650
1712
  }
1651
1713
  ),
1652
1714
  read: withSchema(
1653
- z18.object({ id: z18.string().uuid() }),
1715
+ z19.object({ id: z19.string().uuid() }),
1654
1716
  (params) => call(c[":id"].read.$post({ param: { id: params.id } }))
1655
1717
  ),
1656
1718
  readAll: withSchema(
1657
- z18.object({}),
1719
+ z19.object({}),
1658
1720
  () => call(c["read-all"].$post())
1659
1721
  )
1660
1722
  };
1661
1723
  }
1662
1724
 
1663
1725
  // src/audit-export.ts
1664
- import { z as z19 } from "zod";
1726
+ import { z as z20 } from "zod";
1665
1727
  async function rawRequest(baseUrl, hcOpts, path, init = {}) {
1666
1728
  const fetchImpl = hcOpts?.fetch ?? fetch;
1667
1729
  const rawHeaders = hcOpts?.headers;
@@ -1690,19 +1752,19 @@ function createAuditExportClient(baseUrl, hcOpts) {
1690
1752
  return {
1691
1753
  /** GET /orgs/:orgId/audit-export/config — returns current config or throws 404. */
1692
1754
  getConfig: withSchema(
1693
- z19.object({ orgId: z19.string().describe("Organization ID") }),
1755
+ z20.object({ orgId: z20.string().describe("Organization ID") }),
1694
1756
  async (params) => callRaw(
1695
1757
  await rawRequest(baseUrl, hcOpts, `/orgs/${params.orgId}/audit-export/config`)
1696
1758
  )
1697
1759
  ),
1698
1760
  /** POST /orgs/:orgId/audit-export/config — upsert the S3 export config. */
1699
1761
  setConfig: withSchema(
1700
- z19.object({
1701
- orgId: z19.string().describe("Organization ID"),
1702
- bucket: z19.string().describe("S3 bucket name"),
1703
- region: z19.string().describe("AWS region"),
1704
- roleArn: z19.string().describe("IAM role ARN for assume-role"),
1705
- enabled: z19.boolean().optional().describe("Enable/disable export")
1762
+ z20.object({
1763
+ orgId: z20.string().describe("Organization ID"),
1764
+ bucket: z20.string().describe("S3 bucket name"),
1765
+ region: z20.string().describe("AWS region"),
1766
+ roleArn: z20.string().describe("IAM role ARN for assume-role"),
1767
+ enabled: z20.boolean().optional().describe("Enable/disable export")
1706
1768
  }),
1707
1769
  async (params) => {
1708
1770
  const { orgId, ...body } = params;
@@ -1717,11 +1779,11 @@ function createAuditExportClient(baseUrl, hcOpts) {
1717
1779
  ),
1718
1780
  /** POST /orgs/:orgId/audit-export/test-connection — dry-run write+delete. */
1719
1781
  testConnection: withSchema(
1720
- z19.object({
1721
- orgId: z19.string().describe("Organization ID"),
1722
- bucket: z19.string().describe("S3 bucket name"),
1723
- region: z19.string().describe("AWS region"),
1724
- roleArn: z19.string().describe("IAM role ARN for assume-role")
1782
+ z20.object({
1783
+ orgId: z20.string().describe("Organization ID"),
1784
+ bucket: z20.string().describe("S3 bucket name"),
1785
+ region: z20.string().describe("AWS region"),
1786
+ roleArn: z20.string().describe("IAM role ARN for assume-role")
1725
1787
  }),
1726
1788
  async (params) => {
1727
1789
  const { orgId, ...body } = params;
@@ -1736,9 +1798,9 @@ function createAuditExportClient(baseUrl, hcOpts) {
1736
1798
  ),
1737
1799
  /** GET /orgs/:orgId/audit-export/runs — recent batch run history. */
1738
1800
  listRuns: withSchema(
1739
- z19.object({
1740
- orgId: z19.string().describe("Organization ID"),
1741
- limit: z19.number().optional().describe("Max results (default 20, max 100)")
1801
+ z20.object({
1802
+ orgId: z20.string().describe("Organization ID"),
1803
+ limit: z20.number().optional().describe("Max results (default 20, max 100)")
1742
1804
  }),
1743
1805
  async (params) => {
1744
1806
  const qs = params.limit ? `?limit=${params.limit}` : "";
@@ -1782,33 +1844,33 @@ function createUserPreferencesClient(baseUrl, hcOpts) {
1782
1844
  }
1783
1845
 
1784
1846
  // src/import-sources.ts
1785
- import { z as z20 } from "zod";
1786
- var SourceKindEnum = z20.enum(["tf-state", "atmos-manifests"]);
1787
- var PolicyEnum = z20.enum(["auto-update", "human-approval"]);
1847
+ import { z as z21 } from "zod";
1848
+ var SourceKindEnum = z21.enum(["tf-state", "atmos-manifests"]);
1849
+ var PolicyEnum = z21.enum(["auto-update", "human-approval"]);
1788
1850
  function createImportSourcesClient(proj) {
1789
1851
  return {
1790
1852
  list: withSchema(
1791
- z20.object({
1792
- orgId: z20.string().describe("Organization slug"),
1793
- projectId: z20.string().describe("Project ID")
1853
+ z21.object({
1854
+ orgId: z21.string().describe("Organization slug"),
1855
+ projectId: z21.string().describe("Project ID")
1794
1856
  }),
1795
1857
  (params) => call(proj(params.orgId, params.projectId)["import-sources"].$get())
1796
1858
  ),
1797
1859
  get: withSchema(
1798
- z20.object({
1799
- orgId: z20.string().describe("Organization slug"),
1800
- projectId: z20.string().describe("Project ID"),
1801
- id: z20.string().uuid().describe("ImportSource ID")
1860
+ z21.object({
1861
+ orgId: z21.string().describe("Organization slug"),
1862
+ projectId: z21.string().describe("Project ID"),
1863
+ id: z21.string().uuid().describe("ImportSource ID")
1802
1864
  }),
1803
1865
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].$get({ param: { id: params.id } }))
1804
1866
  ),
1805
1867
  registerOrUpdate: withSchema(
1806
- z20.object({
1807
- orgId: z20.string().describe("Organization slug"),
1808
- projectId: z20.string().describe("Project ID"),
1809
- envName: z20.string().describe("Env name the source belongs to"),
1868
+ z21.object({
1869
+ orgId: z21.string().describe("Organization slug"),
1870
+ projectId: z21.string().describe("Project ID"),
1871
+ envName: z21.string().describe("Env name the source belongs to"),
1810
1872
  sourceKind: SourceKindEnum,
1811
- sourceUri: z20.string().describe("Stable URI identifying the source"),
1873
+ sourceUri: z21.string().describe("Stable URI identifying the source"),
1812
1874
  reconciliationPolicy: PolicyEnum.optional()
1813
1875
  }),
1814
1876
  (params) => {
@@ -1817,13 +1879,13 @@ function createImportSourcesClient(proj) {
1817
1879
  }
1818
1880
  ),
1819
1881
  rescan: withSchema(
1820
- z20.object({
1821
- orgId: z20.string().describe("Organization slug"),
1822
- projectId: z20.string().describe("Project ID"),
1823
- id: z20.string().uuid(),
1824
- envName: z20.string(),
1825
- items: z20.array(z20.unknown()),
1826
- deletions: z20.array(z20.object({ kind: z20.string(), name: z20.string() })).optional()
1882
+ z21.object({
1883
+ orgId: z21.string().describe("Organization slug"),
1884
+ projectId: z21.string().describe("Project ID"),
1885
+ id: z21.string().uuid(),
1886
+ envName: z21.string(),
1887
+ items: z21.array(z21.unknown()),
1888
+ deletions: z21.array(z21.object({ kind: z21.string(), name: z21.string() })).optional()
1827
1889
  }),
1828
1890
  (params) => {
1829
1891
  const { orgId, projectId, id, ...body } = params;
@@ -1839,19 +1901,19 @@ function createImportSourcesClient(proj) {
1839
1901
  }
1840
1902
  ),
1841
1903
  drift: withSchema(
1842
- z20.object({
1843
- orgId: z20.string().describe("Organization slug"),
1844
- projectId: z20.string().describe("Project ID"),
1845
- id: z20.string().uuid()
1904
+ z21.object({
1905
+ orgId: z21.string().describe("Organization slug"),
1906
+ projectId: z21.string().describe("Project ID"),
1907
+ id: z21.string().uuid()
1846
1908
  }),
1847
1909
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].drift.$get({ param: { id: params.id } }))
1848
1910
  ),
1849
1911
  approveProposal: withSchema(
1850
- z20.object({
1851
- orgId: z20.string().describe("Organization slug"),
1852
- projectId: z20.string().describe("Project ID"),
1853
- id: z20.string().uuid(),
1854
- proposalId: z20.string().uuid()
1912
+ z21.object({
1913
+ orgId: z21.string().describe("Organization slug"),
1914
+ projectId: z21.string().describe("Project ID"),
1915
+ id: z21.string().uuid(),
1916
+ proposalId: z21.string().uuid()
1855
1917
  }),
1856
1918
  (params) => call(
1857
1919
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].approve.$post({
@@ -1860,11 +1922,11 @@ function createImportSourcesClient(proj) {
1860
1922
  )
1861
1923
  ),
1862
1924
  rejectProposal: withSchema(
1863
- z20.object({
1864
- orgId: z20.string().describe("Organization slug"),
1865
- projectId: z20.string().describe("Project ID"),
1866
- id: z20.string().uuid(),
1867
- proposalId: z20.string().uuid()
1925
+ z21.object({
1926
+ orgId: z21.string().describe("Organization slug"),
1927
+ projectId: z21.string().describe("Project ID"),
1928
+ id: z21.string().uuid(),
1929
+ proposalId: z21.string().uuid()
1868
1930
  }),
1869
1931
  (params) => call(
1870
1932
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].reject.$post({
@@ -1876,7 +1938,7 @@ function createImportSourcesClient(proj) {
1876
1938
  }
1877
1939
 
1878
1940
  // src/admin.ts
1879
- import { z as z21 } from "zod";
1941
+ import { z as z22 } from "zod";
1880
1942
  async function rawRequest2(baseUrl, hcOpts, path, init = {}) {
1881
1943
  const fetchImpl = hcOpts?.fetch ?? fetch;
1882
1944
  const rawHeaders = hcOpts?.headers;
@@ -1909,14 +1971,14 @@ function createAdminClient(baseUrl, hcOpts) {
1909
1971
  * List super-admin audit events with optional filters.
1910
1972
  */
1911
1973
  list: withSchema(
1912
- z21.object({
1913
- actor: z21.string().optional().describe("Filter by actor user ID"),
1914
- action: z21.string().optional().describe("Filter by action name"),
1915
- resourceKind: z21.string().optional().describe("Filter by resource kind"),
1916
- since: z21.string().optional().describe("ISO 8601 datetime lower bound"),
1917
- until: z21.string().optional().describe("ISO 8601 datetime upper bound"),
1918
- limit: z21.coerce.number().int().min(1).max(200).optional().describe("Max results (1-200)"),
1919
- offset: z21.coerce.number().int().min(0).optional().describe("Pagination offset")
1974
+ z22.object({
1975
+ actor: z22.string().optional().describe("Filter by actor user ID"),
1976
+ action: z22.string().optional().describe("Filter by action name"),
1977
+ resourceKind: z22.string().optional().describe("Filter by resource kind"),
1978
+ since: z22.string().optional().describe("ISO 8601 datetime lower bound"),
1979
+ until: z22.string().optional().describe("ISO 8601 datetime upper bound"),
1980
+ limit: z22.coerce.number().int().min(1).max(200).optional().describe("Max results (1-200)"),
1981
+ offset: z22.coerce.number().int().min(0).optional().describe("Pagination offset")
1920
1982
  }),
1921
1983
  async (params) => {
1922
1984
  const qs = new URLSearchParams();
@@ -1940,7 +2002,7 @@ function createAdminClient(baseUrl, hcOpts) {
1940
2002
  * List all organizations across tenants with member + project counts.
1941
2003
  */
1942
2004
  list: withSchema(
1943
- z21.object({}),
2005
+ z22.object({}),
1944
2006
  async () => callRaw2(
1945
2007
  await rawRequest2(baseUrl, hcOpts, "/admin/orgs")
1946
2008
  )
@@ -1950,7 +2012,7 @@ function createAdminClient(baseUrl, hcOpts) {
1950
2012
  * Detail view: org fields + member list + project list.
1951
2013
  */
1952
2014
  get: withSchema(
1953
- z21.object({ id: z21.string().describe("Organization ID") }),
2015
+ z22.object({ id: z22.string().describe("Organization ID") }),
1954
2016
  async (params) => callRaw2(
1955
2017
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}`)
1956
2018
  )
@@ -1960,7 +2022,7 @@ function createAdminClient(baseUrl, hcOpts) {
1960
2022
  * Set suspended_at = now(). Idempotent.
1961
2023
  */
1962
2024
  suspend: withSchema(
1963
- z21.object({ id: z21.string().describe("Organization ID") }),
2025
+ z22.object({ id: z22.string().describe("Organization ID") }),
1964
2026
  async (params) => callRaw2(
1965
2027
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/suspend`, {
1966
2028
  method: "POST"
@@ -1972,7 +2034,7 @@ function createAdminClient(baseUrl, hcOpts) {
1972
2034
  * Clear suspended_at.
1973
2035
  */
1974
2036
  unsuspend: withSchema(
1975
- z21.object({ id: z21.string().describe("Organization ID") }),
2037
+ z22.object({ id: z22.string().describe("Organization ID") }),
1976
2038
  async (params) => callRaw2(
1977
2039
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/unsuspend`, {
1978
2040
  method: "POST"
@@ -1988,7 +2050,7 @@ function createAdminClient(baseUrl, hcOpts) {
1988
2050
  * api tokens, and environments. Idempotent. Super-admin only.
1989
2051
  */
1990
2052
  nuke: withSchema(
1991
- z21.object({ projectId: z21.string().describe("Project ID to nuke") }),
2053
+ z22.object({ projectId: z22.string().describe("Project ID to nuke") }),
1992
2054
  async (params) => callRaw2(
1993
2055
  await rawRequest2(
1994
2056
  baseUrl,
@@ -2006,7 +2068,7 @@ function createAdminClient(baseUrl, hcOpts) {
2006
2068
  * all derived from single-table COUNT queries.
2007
2069
  */
2008
2070
  overview: withSchema(
2009
- z21.object({}),
2071
+ z22.object({}),
2010
2072
  async () => callRaw2(
2011
2073
  await rawRequest2(baseUrl, hcOpts, "/admin/metrics/overview")
2012
2074
  )
@@ -2021,7 +2083,7 @@ function createAdminClient(baseUrl, hcOpts) {
2021
2083
  * Requires super-admin.
2022
2084
  */
2023
2085
  list: withSchema(
2024
- z21.object({}),
2086
+ z22.object({}),
2025
2087
  async () => callRaw2(
2026
2088
  await rawRequest2(
2027
2089
  baseUrl,
@@ -2036,15 +2098,15 @@ function createAdminClient(baseUrl, hcOpts) {
2036
2098
  }
2037
2099
 
2038
2100
  // src/resolve-source.ts
2039
- import { z as z22 } from "zod";
2101
+ import { z as z23 } from "zod";
2040
2102
  function createResolveSourceFn(proj) {
2041
2103
  return withSchema(
2042
- z22.object({
2043
- orgId: z22.string().describe("Organization slug"),
2044
- projectId: z22.string().describe("Project ID"),
2045
- kind: z22.literal("registry").describe('Source kind \u2014 only "registry" is supported today'),
2046
- ref: z22.string().regex(/^[^/]+\/[^/]+\/[^/]+$/, { message: "ref must be <namespace>/<name>/<provider>" }).describe("Terraform Registry module ref (<namespace>/<name>/<provider>)"),
2047
- version: z22.string().optional().describe("Module version semver \u2014 resolves latest if omitted")
2104
+ z23.object({
2105
+ orgId: z23.string().describe("Organization slug"),
2106
+ projectId: z23.string().describe("Project ID"),
2107
+ kind: z23.literal("registry").describe('Source kind \u2014 only "registry" is supported today'),
2108
+ ref: z23.string().regex(/^[^/]+\/[^/]+\/[^/]+$/, { message: "ref must be <namespace>/<name>/<provider>" }).describe("Terraform Registry module ref (<namespace>/<name>/<provider>)"),
2109
+ version: z23.string().optional().describe("Module version semver \u2014 resolves latest if omitted")
2048
2110
  }),
2049
2111
  (params) => {
2050
2112
  const { orgId, projectId, kind, ref, version } = params;
@@ -2076,6 +2138,7 @@ var createClient = (baseUrl, options = {}) => {
2076
2138
  environments: createEnvironmentsClient(proj),
2077
2139
  entityTypes: createEntityTypesClient(proj),
2078
2140
  deploymentTargets: createDeploymentTargetsClient(proj),
2141
+ deploymentTargetSets: createDeploymentTargetSetsClient(proj),
2079
2142
  entities: createEntitiesClient(projEnv),
2080
2143
  cells,
2081
2144
  relationshipTypes: createRelationshipTypesClient(proj),