@terrantula/sdk 0.11.1 → 0.12.0

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,15 @@ 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)"),
1363
+ before: z13.string().datetime().optional().describe("ISO timestamp; only revisions with appliedAt strictly before this are returned (keyset upper-bound)")
1301
1364
  }),
1302
1365
  (params) => {
1303
1366
  const { orgId, projectId, ...query } = params;
@@ -1307,20 +1370,20 @@ function createCatalogRevisionsClient(proj) {
1307
1370
  }
1308
1371
  ),
1309
1372
  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")
1373
+ z13.object({
1374
+ orgId: z13.string().describe("Organization slug"),
1375
+ projectId: z13.string().describe("Project ID"),
1376
+ id: z13.string().uuid().describe("Revision ID")
1314
1377
  }),
1315
1378
  (params) => call(
1316
1379
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"].$get({ param: { id: params.id } })
1317
1380
  )
1318
1381
  ),
1319
1382
  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")
1383
+ z13.object({
1384
+ orgId: z13.string().describe("Organization slug"),
1385
+ projectId: z13.string().describe("Project ID"),
1386
+ id: z13.string().uuid().describe("Revision ID to read snapshots for")
1324
1387
  }),
1325
1388
  (params) => call(
1326
1389
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"]["snapshots"].$get({
@@ -1334,12 +1397,12 @@ function createCatalogRevisionsClient(proj) {
1334
1397
  * `force: true`, mirroring POST /apply.
1335
1398
  */
1336
1399
  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")
1400
+ z13.object({
1401
+ orgId: z13.string().describe("Organization slug"),
1402
+ projectId: z13.string().describe("Project ID"),
1403
+ id: z13.string().uuid().describe("Revision ID to roll back to"),
1404
+ hunkId: z13.string().uuid().optional().describe("Single-hunk filter"),
1405
+ force: z13.boolean().optional().describe("Required if the inverse diff is destructive")
1343
1406
  }),
1344
1407
  (params) => {
1345
1408
  const { orgId, projectId, id, hunkId, force } = params;
@@ -1356,20 +1419,21 @@ function createCatalogRevisionsClient(proj) {
1356
1419
  }
1357
1420
 
1358
1421
  // src/audit-events.ts
1359
- import { z as z13 } from "zod";
1422
+ import { z as z14 } from "zod";
1360
1423
  function createAuditEventsClient(proj) {
1361
1424
  return {
1362
1425
  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)")
1426
+ z14.object({
1427
+ orgId: z14.string().describe("Organization slug"),
1428
+ projectId: z14.string().describe("Project name"),
1429
+ envName: z14.string().optional().describe("Filter to a single env"),
1430
+ actorType: z14.enum(["user", "token"]).optional().describe("Filter by actor type"),
1431
+ actorId: z14.string().optional().describe("Filter by actor (user.id or apikey.id)"),
1432
+ action: z14.string().optional().describe('Comma-separated actions (e.g. "create,delete")'),
1433
+ resourceKind: z14.string().optional().describe("Filter to one resource kind (Entity | Token | Member | \u2026)"),
1434
+ since: z14.string().datetime().optional().describe("ISO timestamp; only events strictly after this are returned"),
1435
+ before: z14.string().datetime().optional().describe("ISO timestamp; only events strictly before this are returned (keyset upper-bound)"),
1436
+ limit: z14.coerce.number().int().min(1).max(500).optional().describe("Max rows (1-500)")
1373
1437
  }).describe("List audit events for a project \u2014 auditor-friendly read-only feed"),
1374
1438
  (params) => {
1375
1439
  const { orgId, projectId, ...query } = params;
@@ -1380,21 +1444,21 @@ function createAuditEventsClient(proj) {
1380
1444
  }
1381
1445
 
1382
1446
  // src/environments.ts
1383
- import { z as z14 } from "zod";
1447
+ import { z as z15 } from "zod";
1384
1448
  function createEnvironmentsClient(proj) {
1385
1449
  return {
1386
1450
  list: withSchema(
1387
- z14.object({
1388
- orgId: z14.string().describe("Organization slug"),
1389
- projectId: z14.string().describe("Project name")
1451
+ z15.object({
1452
+ orgId: z15.string().describe("Organization slug"),
1453
+ projectId: z15.string().describe("Project name")
1390
1454
  }),
1391
1455
  (params) => call(proj(params.orgId, params.projectId)["environments"].$get())
1392
1456
  ),
1393
1457
  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)")
1458
+ z15.object({
1459
+ orgId: z15.string().describe("Organization slug"),
1460
+ projectId: z15.string().describe("Project name"),
1461
+ 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
1462
  }),
1399
1463
  (params) => {
1400
1464
  const { orgId, projectId, name } = params;
@@ -1402,10 +1466,10 @@ function createEnvironmentsClient(proj) {
1402
1466
  }
1403
1467
  ),
1404
1468
  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")
1469
+ z15.object({
1470
+ orgId: z15.string().describe("Organization slug"),
1471
+ projectId: z15.string().describe("Project name"),
1472
+ name: z15.string().describe("Environment name")
1409
1473
  }),
1410
1474
  (params) => call(
1411
1475
  proj(params.orgId, params.projectId)["environments"][":envName"].$delete({
@@ -1417,19 +1481,20 @@ function createEnvironmentsClient(proj) {
1417
1481
  }
1418
1482
 
1419
1483
  // src/drift-events.ts
1420
- import { z as z15 } from "zod";
1484
+ import { z as z16 } from "zod";
1421
1485
  function createDriftEventsClient(projEnv) {
1422
1486
  return {
1423
1487
  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()
1488
+ z16.object({
1489
+ orgId: z16.string().describe("Organization slug"),
1490
+ projectId: z16.string().describe("Project name"),
1491
+ envName: z16.string().describe("Environment name"),
1492
+ status: z16.enum(["open", "accepted", "reapplied", "snoozed"]).optional(),
1493
+ kind: z16.string().optional().describe("Filter by entity type name"),
1494
+ entityName: z16.string().optional().describe("Filter by entity name"),
1495
+ since: z16.string().optional().describe("ISO timestamp lower bound on detectedAt"),
1496
+ before: z16.string().datetime().optional().describe("ISO timestamp upper bound on detectedAt (keyset cursor)"),
1497
+ limit: z16.coerce.number().int().min(1).max(500).optional()
1433
1498
  }),
1434
1499
  (params) => {
1435
1500
  const { orgId, projectId, envName, ...query } = params;
@@ -1439,19 +1504,19 @@ function createDriftEventsClient(projEnv) {
1439
1504
  }
1440
1505
  ),
1441
1506
  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")
1507
+ z16.object({
1508
+ orgId: z16.string().describe("Organization slug"),
1509
+ projectId: z16.string().describe("Project name"),
1510
+ envName: z16.string().describe("Environment name")
1446
1511
  }),
1447
1512
  (params) => call(projEnv(params.orgId, params.projectId, params.envName)["drift-events"].count.$get())
1448
1513
  ),
1449
1514
  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()
1515
+ z16.object({
1516
+ orgId: z16.string().describe("Organization slug"),
1517
+ projectId: z16.string().describe("Project name"),
1518
+ envName: z16.string().describe("Environment name"),
1519
+ id: z16.string().uuid()
1455
1520
  }),
1456
1521
  (params) => call(
1457
1522
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].$get({
@@ -1460,11 +1525,11 @@ function createDriftEventsClient(projEnv) {
1460
1525
  )
1461
1526
  ),
1462
1527
  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()
1528
+ z16.object({
1529
+ orgId: z16.string().describe("Organization slug"),
1530
+ projectId: z16.string().describe("Project name"),
1531
+ envName: z16.string().describe("Environment name"),
1532
+ id: z16.string().uuid()
1468
1533
  }),
1469
1534
  (params) => call(
1470
1535
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].accept.$post({
@@ -1473,11 +1538,11 @@ function createDriftEventsClient(projEnv) {
1473
1538
  )
1474
1539
  ),
1475
1540
  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()
1541
+ z16.object({
1542
+ orgId: z16.string().describe("Organization slug"),
1543
+ projectId: z16.string().describe("Project name"),
1544
+ envName: z16.string().describe("Environment name"),
1545
+ id: z16.string().uuid()
1481
1546
  }),
1482
1547
  (params) => call(
1483
1548
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].reapply.$post({
@@ -1486,12 +1551,12 @@ function createDriftEventsClient(projEnv) {
1486
1551
  )
1487
1552
  ),
1488
1553
  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()
1554
+ z16.object({
1555
+ orgId: z16.string().describe("Organization slug"),
1556
+ projectId: z16.string().describe("Project name"),
1557
+ envName: z16.string().describe("Environment name"),
1558
+ id: z16.string().uuid(),
1559
+ untilSeconds: z16.number().int().positive().optional()
1495
1560
  }),
1496
1561
  (params) => call(
1497
1562
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].snooze.$post({
@@ -1504,15 +1569,15 @@ function createDriftEventsClient(projEnv) {
1504
1569
  }
1505
1570
 
1506
1571
  // 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");
1572
+ import { z as z17 } from "zod";
1573
+ var WindowSchema = z17.enum(["1h", "24h", "7d"]).optional().describe("Time window \u2014 default 24h");
1574
+ var BucketSchema = z17.enum(["1m", "5m", "1h", "1d"]).optional().describe("Bucket granularity \u2014 default 1h");
1510
1575
  function createStatsClient(proj) {
1511
1576
  return {
1512
1577
  entitiesByState: withSchema(
1513
- z16.object({
1514
- orgId: z16.string().describe("Organization slug"),
1515
- projectId: z16.string().describe("Project name"),
1578
+ z17.object({
1579
+ orgId: z17.string().describe("Organization slug"),
1580
+ projectId: z17.string().describe("Project name"),
1516
1581
  window: WindowSchema,
1517
1582
  bucket: BucketSchema
1518
1583
  }),
@@ -1522,9 +1587,9 @@ function createStatsClient(proj) {
1522
1587
  }
1523
1588
  ),
1524
1589
  runsByType: withSchema(
1525
- z16.object({
1526
- orgId: z16.string().describe("Organization slug"),
1527
- projectId: z16.string().describe("Project name"),
1590
+ z17.object({
1591
+ orgId: z17.string().describe("Organization slug"),
1592
+ projectId: z17.string().describe("Project name"),
1528
1593
  window: WindowSchema
1529
1594
  }),
1530
1595
  (params) => {
@@ -1533,9 +1598,9 @@ function createStatsClient(proj) {
1533
1598
  }
1534
1599
  ),
1535
1600
  failingKinds: withSchema(
1536
- z16.object({
1537
- orgId: z16.string().describe("Organization slug"),
1538
- projectId: z16.string().describe("Project name"),
1601
+ z17.object({
1602
+ orgId: z17.string().describe("Organization slug"),
1603
+ projectId: z17.string().describe("Project name"),
1539
1604
  window: WindowSchema
1540
1605
  }),
1541
1606
  (params) => {
@@ -1544,10 +1609,10 @@ function createStatsClient(proj) {
1544
1609
  }
1545
1610
  ),
1546
1611
  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"')
1612
+ z17.object({
1613
+ orgId: z17.string().describe("Organization slug"),
1614
+ projectId: z17.string().describe("Project name"),
1615
+ dim: z17.string().optional().describe('Dimensions to bucket \u2014 e.g. "kind,cell"')
1551
1616
  }),
1552
1617
  (params) => {
1553
1618
  const { orgId, projectId, ...query } = params;
@@ -1558,32 +1623,32 @@ function createStatsClient(proj) {
1558
1623
  }
1559
1624
 
1560
1625
  // 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();
1626
+ import { z as z18 } from "zod";
1627
+ var ViewConfigSchema = z18.unknown();
1628
+ var PinnedPositionsSchema = z18.record(z18.string(), z18.object({ x: z18.number(), y: z18.number() })).nullable();
1564
1629
  function createGraphViewsClient(proj) {
1565
1630
  return {
1566
1631
  list: withSchema(
1567
- z17.object({
1568
- orgId: z17.string().describe("Organization slug"),
1569
- projectId: z17.string().describe("Project ID")
1632
+ z18.object({
1633
+ orgId: z18.string().describe("Organization slug"),
1634
+ projectId: z18.string().describe("Project ID")
1570
1635
  }),
1571
1636
  (params) => call(proj(params.orgId, params.projectId)["graph-views"].$get())
1572
1637
  ),
1573
1638
  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")
1639
+ z18.object({
1640
+ orgId: z18.string().describe("Organization slug"),
1641
+ projectId: z18.string().describe("Project ID"),
1642
+ id: z18.string().describe("View id")
1578
1643
  }),
1579
1644
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$get({ param: { id: params.id } }))
1580
1645
  ),
1581
1646
  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"),
1647
+ z18.object({
1648
+ orgId: z18.string().describe("Organization slug"),
1649
+ projectId: z18.string().describe("Project ID"),
1650
+ name: z18.string().describe("View name"),
1651
+ scope: z18.enum(["user", "project"]).describe("Personal or project scope"),
1587
1652
  config: ViewConfigSchema.describe("ViewConfig JSON"),
1588
1653
  pinnedPositions: PinnedPositionsSchema.optional().describe("Pinned node positions")
1589
1654
  }),
@@ -1593,11 +1658,11 @@ function createGraphViewsClient(proj) {
1593
1658
  }
1594
1659
  ),
1595
1660
  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"),
1661
+ z18.object({
1662
+ orgId: z18.string().describe("Organization slug"),
1663
+ projectId: z18.string().describe("Project ID"),
1664
+ id: z18.string().describe("View id"),
1665
+ name: z18.string().optional().describe("New name"),
1601
1666
  config: ViewConfigSchema.optional().describe("Replacement ViewConfig JSON"),
1602
1667
  pinnedPositions: PinnedPositionsSchema.optional().describe("Replacement pinned positions")
1603
1668
  }),
@@ -1609,18 +1674,18 @@ function createGraphViewsClient(proj) {
1609
1674
  }
1610
1675
  ),
1611
1676
  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")
1677
+ z18.object({
1678
+ orgId: z18.string().describe("Organization slug"),
1679
+ projectId: z18.string().describe("Project ID"),
1680
+ id: z18.string().describe("View id")
1616
1681
  }),
1617
1682
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$delete({ param: { id: params.id } }))
1618
1683
  ),
1619
1684
  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")
1685
+ z18.object({
1686
+ orgId: z18.string().describe("Organization slug"),
1687
+ projectId: z18.string().describe("Project ID"),
1688
+ id: z18.string().describe("View id")
1624
1689
  }),
1625
1690
  (params) => call(
1626
1691
  proj(params.orgId, params.projectId)["graph-views"][":id"]["default"].$patch({
@@ -1632,15 +1697,15 @@ function createGraphViewsClient(proj) {
1632
1697
  }
1633
1698
 
1634
1699
  // src/notifications.ts
1635
- import { z as z18 } from "zod";
1700
+ import { z as z19 } from "zod";
1636
1701
  import { hc as hc2 } from "hono/client";
1637
1702
  function createNotificationsClient(baseUrl, hcOpts) {
1638
1703
  const c = hc2(`${baseUrl}/notifications`, hcOpts);
1639
1704
  return {
1640
1705
  list: withSchema(
1641
- z18.object({
1642
- limit: z18.coerce.number().int().min(1).max(100).optional(),
1643
- unread: z18.boolean().optional()
1706
+ z19.object({
1707
+ limit: z19.coerce.number().int().min(1).max(100).optional(),
1708
+ unread: z19.boolean().optional()
1644
1709
  }),
1645
1710
  (params) => {
1646
1711
  const query = {};
@@ -1650,18 +1715,18 @@ function createNotificationsClient(baseUrl, hcOpts) {
1650
1715
  }
1651
1716
  ),
1652
1717
  read: withSchema(
1653
- z18.object({ id: z18.string().uuid() }),
1718
+ z19.object({ id: z19.string().uuid() }),
1654
1719
  (params) => call(c[":id"].read.$post({ param: { id: params.id } }))
1655
1720
  ),
1656
1721
  readAll: withSchema(
1657
- z18.object({}),
1722
+ z19.object({}),
1658
1723
  () => call(c["read-all"].$post())
1659
1724
  )
1660
1725
  };
1661
1726
  }
1662
1727
 
1663
1728
  // src/audit-export.ts
1664
- import { z as z19 } from "zod";
1729
+ import { z as z20 } from "zod";
1665
1730
  async function rawRequest(baseUrl, hcOpts, path, init = {}) {
1666
1731
  const fetchImpl = hcOpts?.fetch ?? fetch;
1667
1732
  const rawHeaders = hcOpts?.headers;
@@ -1690,19 +1755,19 @@ function createAuditExportClient(baseUrl, hcOpts) {
1690
1755
  return {
1691
1756
  /** GET /orgs/:orgId/audit-export/config — returns current config or throws 404. */
1692
1757
  getConfig: withSchema(
1693
- z19.object({ orgId: z19.string().describe("Organization ID") }),
1758
+ z20.object({ orgId: z20.string().describe("Organization ID") }),
1694
1759
  async (params) => callRaw(
1695
1760
  await rawRequest(baseUrl, hcOpts, `/orgs/${params.orgId}/audit-export/config`)
1696
1761
  )
1697
1762
  ),
1698
1763
  /** POST /orgs/:orgId/audit-export/config — upsert the S3 export config. */
1699
1764
  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")
1765
+ z20.object({
1766
+ orgId: z20.string().describe("Organization ID"),
1767
+ bucket: z20.string().describe("S3 bucket name"),
1768
+ region: z20.string().describe("AWS region"),
1769
+ roleArn: z20.string().describe("IAM role ARN for assume-role"),
1770
+ enabled: z20.boolean().optional().describe("Enable/disable export")
1706
1771
  }),
1707
1772
  async (params) => {
1708
1773
  const { orgId, ...body } = params;
@@ -1717,11 +1782,11 @@ function createAuditExportClient(baseUrl, hcOpts) {
1717
1782
  ),
1718
1783
  /** POST /orgs/:orgId/audit-export/test-connection — dry-run write+delete. */
1719
1784
  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")
1785
+ z20.object({
1786
+ orgId: z20.string().describe("Organization ID"),
1787
+ bucket: z20.string().describe("S3 bucket name"),
1788
+ region: z20.string().describe("AWS region"),
1789
+ roleArn: z20.string().describe("IAM role ARN for assume-role")
1725
1790
  }),
1726
1791
  async (params) => {
1727
1792
  const { orgId, ...body } = params;
@@ -1736,9 +1801,9 @@ function createAuditExportClient(baseUrl, hcOpts) {
1736
1801
  ),
1737
1802
  /** GET /orgs/:orgId/audit-export/runs — recent batch run history. */
1738
1803
  listRuns: withSchema(
1739
- z19.object({
1740
- orgId: z19.string().describe("Organization ID"),
1741
- limit: z19.number().optional().describe("Max results (default 20, max 100)")
1804
+ z20.object({
1805
+ orgId: z20.string().describe("Organization ID"),
1806
+ limit: z20.number().optional().describe("Max results (default 20, max 100)")
1742
1807
  }),
1743
1808
  async (params) => {
1744
1809
  const qs = params.limit ? `?limit=${params.limit}` : "";
@@ -1782,33 +1847,33 @@ function createUserPreferencesClient(baseUrl, hcOpts) {
1782
1847
  }
1783
1848
 
1784
1849
  // 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"]);
1850
+ import { z as z21 } from "zod";
1851
+ var SourceKindEnum = z21.enum(["tf-state", "atmos-manifests"]);
1852
+ var PolicyEnum = z21.enum(["auto-update", "human-approval"]);
1788
1853
  function createImportSourcesClient(proj) {
1789
1854
  return {
1790
1855
  list: withSchema(
1791
- z20.object({
1792
- orgId: z20.string().describe("Organization slug"),
1793
- projectId: z20.string().describe("Project ID")
1856
+ z21.object({
1857
+ orgId: z21.string().describe("Organization slug"),
1858
+ projectId: z21.string().describe("Project ID")
1794
1859
  }),
1795
1860
  (params) => call(proj(params.orgId, params.projectId)["import-sources"].$get())
1796
1861
  ),
1797
1862
  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")
1863
+ z21.object({
1864
+ orgId: z21.string().describe("Organization slug"),
1865
+ projectId: z21.string().describe("Project ID"),
1866
+ id: z21.string().uuid().describe("ImportSource ID")
1802
1867
  }),
1803
1868
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].$get({ param: { id: params.id } }))
1804
1869
  ),
1805
1870
  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"),
1871
+ z21.object({
1872
+ orgId: z21.string().describe("Organization slug"),
1873
+ projectId: z21.string().describe("Project ID"),
1874
+ envName: z21.string().describe("Env name the source belongs to"),
1810
1875
  sourceKind: SourceKindEnum,
1811
- sourceUri: z20.string().describe("Stable URI identifying the source"),
1876
+ sourceUri: z21.string().describe("Stable URI identifying the source"),
1812
1877
  reconciliationPolicy: PolicyEnum.optional()
1813
1878
  }),
1814
1879
  (params) => {
@@ -1817,13 +1882,13 @@ function createImportSourcesClient(proj) {
1817
1882
  }
1818
1883
  ),
1819
1884
  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()
1885
+ z21.object({
1886
+ orgId: z21.string().describe("Organization slug"),
1887
+ projectId: z21.string().describe("Project ID"),
1888
+ id: z21.string().uuid(),
1889
+ envName: z21.string(),
1890
+ items: z21.array(z21.unknown()),
1891
+ deletions: z21.array(z21.object({ kind: z21.string(), name: z21.string() })).optional()
1827
1892
  }),
1828
1893
  (params) => {
1829
1894
  const { orgId, projectId, id, ...body } = params;
@@ -1839,19 +1904,19 @@ function createImportSourcesClient(proj) {
1839
1904
  }
1840
1905
  ),
1841
1906
  drift: withSchema(
1842
- z20.object({
1843
- orgId: z20.string().describe("Organization slug"),
1844
- projectId: z20.string().describe("Project ID"),
1845
- id: z20.string().uuid()
1907
+ z21.object({
1908
+ orgId: z21.string().describe("Organization slug"),
1909
+ projectId: z21.string().describe("Project ID"),
1910
+ id: z21.string().uuid()
1846
1911
  }),
1847
1912
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].drift.$get({ param: { id: params.id } }))
1848
1913
  ),
1849
1914
  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()
1915
+ z21.object({
1916
+ orgId: z21.string().describe("Organization slug"),
1917
+ projectId: z21.string().describe("Project ID"),
1918
+ id: z21.string().uuid(),
1919
+ proposalId: z21.string().uuid()
1855
1920
  }),
1856
1921
  (params) => call(
1857
1922
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].approve.$post({
@@ -1860,11 +1925,11 @@ function createImportSourcesClient(proj) {
1860
1925
  )
1861
1926
  ),
1862
1927
  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()
1928
+ z21.object({
1929
+ orgId: z21.string().describe("Organization slug"),
1930
+ projectId: z21.string().describe("Project ID"),
1931
+ id: z21.string().uuid(),
1932
+ proposalId: z21.string().uuid()
1868
1933
  }),
1869
1934
  (params) => call(
1870
1935
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].reject.$post({
@@ -1876,7 +1941,7 @@ function createImportSourcesClient(proj) {
1876
1941
  }
1877
1942
 
1878
1943
  // src/admin.ts
1879
- import { z as z21 } from "zod";
1944
+ import { z as z22 } from "zod";
1880
1945
  async function rawRequest2(baseUrl, hcOpts, path, init = {}) {
1881
1946
  const fetchImpl = hcOpts?.fetch ?? fetch;
1882
1947
  const rawHeaders = hcOpts?.headers;
@@ -1909,14 +1974,14 @@ function createAdminClient(baseUrl, hcOpts) {
1909
1974
  * List super-admin audit events with optional filters.
1910
1975
  */
1911
1976
  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")
1977
+ z22.object({
1978
+ actor: z22.string().optional().describe("Filter by actor user ID"),
1979
+ action: z22.string().optional().describe("Filter by action name"),
1980
+ resourceKind: z22.string().optional().describe("Filter by resource kind"),
1981
+ since: z22.string().optional().describe("ISO 8601 datetime lower bound"),
1982
+ until: z22.string().optional().describe("ISO 8601 datetime upper bound"),
1983
+ limit: z22.coerce.number().int().min(1).max(200).optional().describe("Max results (1-200)"),
1984
+ offset: z22.coerce.number().int().min(0).optional().describe("Pagination offset")
1920
1985
  }),
1921
1986
  async (params) => {
1922
1987
  const qs = new URLSearchParams();
@@ -1940,7 +2005,7 @@ function createAdminClient(baseUrl, hcOpts) {
1940
2005
  * List all organizations across tenants with member + project counts.
1941
2006
  */
1942
2007
  list: withSchema(
1943
- z21.object({}),
2008
+ z22.object({}),
1944
2009
  async () => callRaw2(
1945
2010
  await rawRequest2(baseUrl, hcOpts, "/admin/orgs")
1946
2011
  )
@@ -1950,7 +2015,7 @@ function createAdminClient(baseUrl, hcOpts) {
1950
2015
  * Detail view: org fields + member list + project list.
1951
2016
  */
1952
2017
  get: withSchema(
1953
- z21.object({ id: z21.string().describe("Organization ID") }),
2018
+ z22.object({ id: z22.string().describe("Organization ID") }),
1954
2019
  async (params) => callRaw2(
1955
2020
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}`)
1956
2021
  )
@@ -1960,7 +2025,7 @@ function createAdminClient(baseUrl, hcOpts) {
1960
2025
  * Set suspended_at = now(). Idempotent.
1961
2026
  */
1962
2027
  suspend: withSchema(
1963
- z21.object({ id: z21.string().describe("Organization ID") }),
2028
+ z22.object({ id: z22.string().describe("Organization ID") }),
1964
2029
  async (params) => callRaw2(
1965
2030
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/suspend`, {
1966
2031
  method: "POST"
@@ -1972,7 +2037,7 @@ function createAdminClient(baseUrl, hcOpts) {
1972
2037
  * Clear suspended_at.
1973
2038
  */
1974
2039
  unsuspend: withSchema(
1975
- z21.object({ id: z21.string().describe("Organization ID") }),
2040
+ z22.object({ id: z22.string().describe("Organization ID") }),
1976
2041
  async (params) => callRaw2(
1977
2042
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/unsuspend`, {
1978
2043
  method: "POST"
@@ -1988,7 +2053,7 @@ function createAdminClient(baseUrl, hcOpts) {
1988
2053
  * api tokens, and environments. Idempotent. Super-admin only.
1989
2054
  */
1990
2055
  nuke: withSchema(
1991
- z21.object({ projectId: z21.string().describe("Project ID to nuke") }),
2056
+ z22.object({ projectId: z22.string().describe("Project ID to nuke") }),
1992
2057
  async (params) => callRaw2(
1993
2058
  await rawRequest2(
1994
2059
  baseUrl,
@@ -2006,7 +2071,7 @@ function createAdminClient(baseUrl, hcOpts) {
2006
2071
  * all derived from single-table COUNT queries.
2007
2072
  */
2008
2073
  overview: withSchema(
2009
- z21.object({}),
2074
+ z22.object({}),
2010
2075
  async () => callRaw2(
2011
2076
  await rawRequest2(baseUrl, hcOpts, "/admin/metrics/overview")
2012
2077
  )
@@ -2021,7 +2086,7 @@ function createAdminClient(baseUrl, hcOpts) {
2021
2086
  * Requires super-admin.
2022
2087
  */
2023
2088
  list: withSchema(
2024
- z21.object({}),
2089
+ z22.object({}),
2025
2090
  async () => callRaw2(
2026
2091
  await rawRequest2(
2027
2092
  baseUrl,
@@ -2036,15 +2101,15 @@ function createAdminClient(baseUrl, hcOpts) {
2036
2101
  }
2037
2102
 
2038
2103
  // src/resolve-source.ts
2039
- import { z as z22 } from "zod";
2104
+ import { z as z23 } from "zod";
2040
2105
  function createResolveSourceFn(proj) {
2041
2106
  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")
2107
+ z23.object({
2108
+ orgId: z23.string().describe("Organization slug"),
2109
+ projectId: z23.string().describe("Project ID"),
2110
+ kind: z23.literal("registry").describe('Source kind \u2014 only "registry" is supported today'),
2111
+ ref: z23.string().regex(/^[^/]+\/[^/]+\/[^/]+$/, { message: "ref must be <namespace>/<name>/<provider>" }).describe("Terraform Registry module ref (<namespace>/<name>/<provider>)"),
2112
+ version: z23.string().optional().describe("Module version semver \u2014 resolves latest if omitted")
2048
2113
  }),
2049
2114
  (params) => {
2050
2115
  const { orgId, projectId, kind, ref, version } = params;
@@ -2076,6 +2141,7 @@ var createClient = (baseUrl, options = {}) => {
2076
2141
  environments: createEnvironmentsClient(proj),
2077
2142
  entityTypes: createEntityTypesClient(proj),
2078
2143
  deploymentTargets: createDeploymentTargetsClient(proj),
2144
+ deploymentTargetSets: createDeploymentTargetSetsClient(proj),
2079
2145
  entities: createEntitiesClient(projEnv),
2080
2146
  cells,
2081
2147
  relationshipTypes: createRelationshipTypesClient(proj),