@terrantula/sdk 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,28 +1299,33 @@ 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(
1265
1321
  (r) => ({ kind: "EntityType", ...stripServerFields(r) })
1266
1322
  ),
1267
- ...cells.map(
1268
- (r) => ({ kind: "Cell", ...stripServerFields(r) })
1269
- ),
1323
+ ...cells.map((r) => {
1324
+ const { entityTypeName, ...rest } = r;
1325
+ const stripped = stripServerFields(rest);
1326
+ if (entityTypeName != null) stripped.entityType = entityTypeName;
1327
+ return { kind: "Cell", ...stripped };
1328
+ }),
1270
1329
  ...relationshipTypes.map((r) => {
1271
1330
  const { fromEntityTypeName, toEntityTypeName, ...rest } = r;
1272
1331
  const stripped = stripServerFields(rest);
@@ -1279,6 +1338,12 @@ function createExportCatalogFn(proj, projEnv) {
1279
1338
  ),
1280
1339
  ...secrets.map(
1281
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) })
1282
1347
  )
1283
1348
  ];
1284
1349
  return { items };
@@ -1287,14 +1352,14 @@ function createExportCatalogFn(proj, projEnv) {
1287
1352
  }
1288
1353
 
1289
1354
  // src/catalog-revisions.ts
1290
- import { z as z12 } from "zod";
1355
+ import { z as z13 } from "zod";
1291
1356
  function createCatalogRevisionsClient(proj) {
1292
1357
  return {
1293
1358
  list: withSchema(
1294
- z12.object({
1295
- orgId: z12.string().describe("Organization slug"),
1296
- projectId: z12.string().describe("Project ID"),
1297
- 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)")
1298
1363
  }),
1299
1364
  (params) => {
1300
1365
  const { orgId, projectId, ...query } = params;
@@ -1304,20 +1369,20 @@ function createCatalogRevisionsClient(proj) {
1304
1369
  }
1305
1370
  ),
1306
1371
  get: withSchema(
1307
- z12.object({
1308
- orgId: z12.string().describe("Organization slug"),
1309
- projectId: z12.string().describe("Project ID"),
1310
- 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")
1311
1376
  }),
1312
1377
  (params) => call(
1313
1378
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"].$get({ param: { id: params.id } })
1314
1379
  )
1315
1380
  ),
1316
1381
  snapshots: withSchema(
1317
- z12.object({
1318
- orgId: z12.string().describe("Organization slug"),
1319
- projectId: z12.string().describe("Project ID"),
1320
- 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")
1321
1386
  }),
1322
1387
  (params) => call(
1323
1388
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"]["snapshots"].$get({
@@ -1331,12 +1396,12 @@ function createCatalogRevisionsClient(proj) {
1331
1396
  * `force: true`, mirroring POST /apply.
1332
1397
  */
1333
1398
  rollback: withSchema(
1334
- z12.object({
1335
- orgId: z12.string().describe("Organization slug"),
1336
- projectId: z12.string().describe("Project ID"),
1337
- id: z12.string().uuid().describe("Revision ID to roll back to"),
1338
- hunkId: z12.string().uuid().optional().describe("Single-hunk filter"),
1339
- 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")
1340
1405
  }),
1341
1406
  (params) => {
1342
1407
  const { orgId, projectId, id, hunkId, force } = params;
@@ -1353,20 +1418,20 @@ function createCatalogRevisionsClient(proj) {
1353
1418
  }
1354
1419
 
1355
1420
  // src/audit-events.ts
1356
- import { z as z13 } from "zod";
1421
+ import { z as z14 } from "zod";
1357
1422
  function createAuditEventsClient(proj) {
1358
1423
  return {
1359
1424
  list: withSchema(
1360
- z13.object({
1361
- orgId: z13.string().describe("Organization slug"),
1362
- projectId: z13.string().describe("Project name"),
1363
- envName: z13.string().optional().describe("Filter to a single env"),
1364
- actorType: z13.enum(["user", "token"]).optional().describe("Filter by actor type"),
1365
- actorId: z13.string().optional().describe("Filter by actor (user.id or apikey.id)"),
1366
- action: z13.string().optional().describe('Comma-separated actions (e.g. "create,delete")'),
1367
- resourceKind: z13.string().optional().describe("Filter to one resource kind (Entity | Token | Member | \u2026)"),
1368
- since: z13.string().datetime().optional().describe("ISO timestamp; only events strictly after this are returned"),
1369
- 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)")
1370
1435
  }).describe("List audit events for a project \u2014 auditor-friendly read-only feed"),
1371
1436
  (params) => {
1372
1437
  const { orgId, projectId, ...query } = params;
@@ -1377,21 +1442,21 @@ function createAuditEventsClient(proj) {
1377
1442
  }
1378
1443
 
1379
1444
  // src/environments.ts
1380
- import { z as z14 } from "zod";
1445
+ import { z as z15 } from "zod";
1381
1446
  function createEnvironmentsClient(proj) {
1382
1447
  return {
1383
1448
  list: withSchema(
1384
- z14.object({
1385
- orgId: z14.string().describe("Organization slug"),
1386
- projectId: z14.string().describe("Project name")
1449
+ z15.object({
1450
+ orgId: z15.string().describe("Organization slug"),
1451
+ projectId: z15.string().describe("Project name")
1387
1452
  }),
1388
1453
  (params) => call(proj(params.orgId, params.projectId)["environments"].$get())
1389
1454
  ),
1390
1455
  create: withSchema(
1391
- z14.object({
1392
- orgId: z14.string().describe("Organization slug"),
1393
- projectId: z14.string().describe("Project name"),
1394
- 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)")
1395
1460
  }),
1396
1461
  (params) => {
1397
1462
  const { orgId, projectId, name } = params;
@@ -1399,10 +1464,10 @@ function createEnvironmentsClient(proj) {
1399
1464
  }
1400
1465
  ),
1401
1466
  delete: withSchema(
1402
- z14.object({
1403
- orgId: z14.string().describe("Organization slug"),
1404
- projectId: z14.string().describe("Project name"),
1405
- 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")
1406
1471
  }),
1407
1472
  (params) => call(
1408
1473
  proj(params.orgId, params.projectId)["environments"][":envName"].$delete({
@@ -1414,19 +1479,19 @@ function createEnvironmentsClient(proj) {
1414
1479
  }
1415
1480
 
1416
1481
  // src/drift-events.ts
1417
- import { z as z15 } from "zod";
1482
+ import { z as z16 } from "zod";
1418
1483
  function createDriftEventsClient(projEnv) {
1419
1484
  return {
1420
1485
  list: withSchema(
1421
- z15.object({
1422
- orgId: z15.string().describe("Organization slug"),
1423
- projectId: z15.string().describe("Project name"),
1424
- envName: z15.string().describe("Environment name"),
1425
- status: z15.enum(["open", "accepted", "reapplied", "snoozed"]).optional(),
1426
- kind: z15.string().optional().describe("Filter by entity type name"),
1427
- entityName: z15.string().optional().describe("Filter by entity name"),
1428
- since: z15.string().optional().describe("ISO timestamp lower bound on detectedAt"),
1429
- 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()
1430
1495
  }),
1431
1496
  (params) => {
1432
1497
  const { orgId, projectId, envName, ...query } = params;
@@ -1436,19 +1501,19 @@ function createDriftEventsClient(projEnv) {
1436
1501
  }
1437
1502
  ),
1438
1503
  count: withSchema(
1439
- z15.object({
1440
- orgId: z15.string().describe("Organization slug"),
1441
- projectId: z15.string().describe("Project name"),
1442
- 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")
1443
1508
  }),
1444
1509
  (params) => call(projEnv(params.orgId, params.projectId, params.envName)["drift-events"].count.$get())
1445
1510
  ),
1446
1511
  get: withSchema(
1447
- z15.object({
1448
- orgId: z15.string().describe("Organization slug"),
1449
- projectId: z15.string().describe("Project name"),
1450
- envName: z15.string().describe("Environment name"),
1451
- 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()
1452
1517
  }),
1453
1518
  (params) => call(
1454
1519
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].$get({
@@ -1457,11 +1522,11 @@ function createDriftEventsClient(projEnv) {
1457
1522
  )
1458
1523
  ),
1459
1524
  accept: withSchema(
1460
- z15.object({
1461
- orgId: z15.string().describe("Organization slug"),
1462
- projectId: z15.string().describe("Project name"),
1463
- envName: z15.string().describe("Environment name"),
1464
- 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()
1465
1530
  }),
1466
1531
  (params) => call(
1467
1532
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].accept.$post({
@@ -1470,11 +1535,11 @@ function createDriftEventsClient(projEnv) {
1470
1535
  )
1471
1536
  ),
1472
1537
  reapply: withSchema(
1473
- z15.object({
1474
- orgId: z15.string().describe("Organization slug"),
1475
- projectId: z15.string().describe("Project name"),
1476
- envName: z15.string().describe("Environment name"),
1477
- 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()
1478
1543
  }),
1479
1544
  (params) => call(
1480
1545
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].reapply.$post({
@@ -1483,12 +1548,12 @@ function createDriftEventsClient(projEnv) {
1483
1548
  )
1484
1549
  ),
1485
1550
  snooze: withSchema(
1486
- z15.object({
1487
- orgId: z15.string().describe("Organization slug"),
1488
- projectId: z15.string().describe("Project name"),
1489
- envName: z15.string().describe("Environment name"),
1490
- id: z15.string().uuid(),
1491
- 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()
1492
1557
  }),
1493
1558
  (params) => call(
1494
1559
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].snooze.$post({
@@ -1501,15 +1566,15 @@ function createDriftEventsClient(projEnv) {
1501
1566
  }
1502
1567
 
1503
1568
  // src/stats.ts
1504
- import { z as z16 } from "zod";
1505
- var WindowSchema = z16.enum(["1h", "24h", "7d"]).optional().describe("Time window \u2014 default 24h");
1506
- 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");
1507
1572
  function createStatsClient(proj) {
1508
1573
  return {
1509
1574
  entitiesByState: withSchema(
1510
- z16.object({
1511
- orgId: z16.string().describe("Organization slug"),
1512
- projectId: z16.string().describe("Project name"),
1575
+ z17.object({
1576
+ orgId: z17.string().describe("Organization slug"),
1577
+ projectId: z17.string().describe("Project name"),
1513
1578
  window: WindowSchema,
1514
1579
  bucket: BucketSchema
1515
1580
  }),
@@ -1519,9 +1584,9 @@ function createStatsClient(proj) {
1519
1584
  }
1520
1585
  ),
1521
1586
  runsByType: withSchema(
1522
- z16.object({
1523
- orgId: z16.string().describe("Organization slug"),
1524
- projectId: z16.string().describe("Project name"),
1587
+ z17.object({
1588
+ orgId: z17.string().describe("Organization slug"),
1589
+ projectId: z17.string().describe("Project name"),
1525
1590
  window: WindowSchema
1526
1591
  }),
1527
1592
  (params) => {
@@ -1530,9 +1595,9 @@ function createStatsClient(proj) {
1530
1595
  }
1531
1596
  ),
1532
1597
  failingKinds: withSchema(
1533
- z16.object({
1534
- orgId: z16.string().describe("Organization slug"),
1535
- projectId: z16.string().describe("Project name"),
1598
+ z17.object({
1599
+ orgId: z17.string().describe("Organization slug"),
1600
+ projectId: z17.string().describe("Project name"),
1536
1601
  window: WindowSchema
1537
1602
  }),
1538
1603
  (params) => {
@@ -1541,10 +1606,10 @@ function createStatsClient(proj) {
1541
1606
  }
1542
1607
  ),
1543
1608
  driftDensity: withSchema(
1544
- z16.object({
1545
- orgId: z16.string().describe("Organization slug"),
1546
- projectId: z16.string().describe("Project name"),
1547
- 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"')
1548
1613
  }),
1549
1614
  (params) => {
1550
1615
  const { orgId, projectId, ...query } = params;
@@ -1555,32 +1620,32 @@ function createStatsClient(proj) {
1555
1620
  }
1556
1621
 
1557
1622
  // src/graph-views.ts
1558
- import { z as z17 } from "zod";
1559
- var ViewConfigSchema = z17.unknown();
1560
- 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();
1561
1626
  function createGraphViewsClient(proj) {
1562
1627
  return {
1563
1628
  list: withSchema(
1564
- z17.object({
1565
- orgId: z17.string().describe("Organization slug"),
1566
- projectId: z17.string().describe("Project ID")
1629
+ z18.object({
1630
+ orgId: z18.string().describe("Organization slug"),
1631
+ projectId: z18.string().describe("Project ID")
1567
1632
  }),
1568
1633
  (params) => call(proj(params.orgId, params.projectId)["graph-views"].$get())
1569
1634
  ),
1570
1635
  get: withSchema(
1571
- z17.object({
1572
- orgId: z17.string().describe("Organization slug"),
1573
- projectId: z17.string().describe("Project ID"),
1574
- 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")
1575
1640
  }),
1576
1641
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$get({ param: { id: params.id } }))
1577
1642
  ),
1578
1643
  create: withSchema(
1579
- z17.object({
1580
- orgId: z17.string().describe("Organization slug"),
1581
- projectId: z17.string().describe("Project ID"),
1582
- name: z17.string().describe("View name"),
1583
- 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"),
1584
1649
  config: ViewConfigSchema.describe("ViewConfig JSON"),
1585
1650
  pinnedPositions: PinnedPositionsSchema.optional().describe("Pinned node positions")
1586
1651
  }),
@@ -1590,11 +1655,11 @@ function createGraphViewsClient(proj) {
1590
1655
  }
1591
1656
  ),
1592
1657
  update: withSchema(
1593
- z17.object({
1594
- orgId: z17.string().describe("Organization slug"),
1595
- projectId: z17.string().describe("Project ID"),
1596
- id: z17.string().describe("View id"),
1597
- 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"),
1598
1663
  config: ViewConfigSchema.optional().describe("Replacement ViewConfig JSON"),
1599
1664
  pinnedPositions: PinnedPositionsSchema.optional().describe("Replacement pinned positions")
1600
1665
  }),
@@ -1606,18 +1671,18 @@ function createGraphViewsClient(proj) {
1606
1671
  }
1607
1672
  ),
1608
1673
  delete: withSchema(
1609
- z17.object({
1610
- orgId: z17.string().describe("Organization slug"),
1611
- projectId: z17.string().describe("Project ID"),
1612
- 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")
1613
1678
  }),
1614
1679
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$delete({ param: { id: params.id } }))
1615
1680
  ),
1616
1681
  setDefault: withSchema(
1617
- z17.object({
1618
- orgId: z17.string().describe("Organization slug"),
1619
- projectId: z17.string().describe("Project ID"),
1620
- 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")
1621
1686
  }),
1622
1687
  (params) => call(
1623
1688
  proj(params.orgId, params.projectId)["graph-views"][":id"]["default"].$patch({
@@ -1629,15 +1694,15 @@ function createGraphViewsClient(proj) {
1629
1694
  }
1630
1695
 
1631
1696
  // src/notifications.ts
1632
- import { z as z18 } from "zod";
1697
+ import { z as z19 } from "zod";
1633
1698
  import { hc as hc2 } from "hono/client";
1634
1699
  function createNotificationsClient(baseUrl, hcOpts) {
1635
1700
  const c = hc2(`${baseUrl}/notifications`, hcOpts);
1636
1701
  return {
1637
1702
  list: withSchema(
1638
- z18.object({
1639
- limit: z18.coerce.number().int().min(1).max(100).optional(),
1640
- unread: z18.boolean().optional()
1703
+ z19.object({
1704
+ limit: z19.coerce.number().int().min(1).max(100).optional(),
1705
+ unread: z19.boolean().optional()
1641
1706
  }),
1642
1707
  (params) => {
1643
1708
  const query = {};
@@ -1647,18 +1712,18 @@ function createNotificationsClient(baseUrl, hcOpts) {
1647
1712
  }
1648
1713
  ),
1649
1714
  read: withSchema(
1650
- z18.object({ id: z18.string().uuid() }),
1715
+ z19.object({ id: z19.string().uuid() }),
1651
1716
  (params) => call(c[":id"].read.$post({ param: { id: params.id } }))
1652
1717
  ),
1653
1718
  readAll: withSchema(
1654
- z18.object({}),
1719
+ z19.object({}),
1655
1720
  () => call(c["read-all"].$post())
1656
1721
  )
1657
1722
  };
1658
1723
  }
1659
1724
 
1660
1725
  // src/audit-export.ts
1661
- import { z as z19 } from "zod";
1726
+ import { z as z20 } from "zod";
1662
1727
  async function rawRequest(baseUrl, hcOpts, path, init = {}) {
1663
1728
  const fetchImpl = hcOpts?.fetch ?? fetch;
1664
1729
  const rawHeaders = hcOpts?.headers;
@@ -1687,19 +1752,19 @@ function createAuditExportClient(baseUrl, hcOpts) {
1687
1752
  return {
1688
1753
  /** GET /orgs/:orgId/audit-export/config — returns current config or throws 404. */
1689
1754
  getConfig: withSchema(
1690
- z19.object({ orgId: z19.string().describe("Organization ID") }),
1755
+ z20.object({ orgId: z20.string().describe("Organization ID") }),
1691
1756
  async (params) => callRaw(
1692
1757
  await rawRequest(baseUrl, hcOpts, `/orgs/${params.orgId}/audit-export/config`)
1693
1758
  )
1694
1759
  ),
1695
1760
  /** POST /orgs/:orgId/audit-export/config — upsert the S3 export config. */
1696
1761
  setConfig: withSchema(
1697
- z19.object({
1698
- orgId: z19.string().describe("Organization ID"),
1699
- bucket: z19.string().describe("S3 bucket name"),
1700
- region: z19.string().describe("AWS region"),
1701
- roleArn: z19.string().describe("IAM role ARN for assume-role"),
1702
- 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")
1703
1768
  }),
1704
1769
  async (params) => {
1705
1770
  const { orgId, ...body } = params;
@@ -1714,11 +1779,11 @@ function createAuditExportClient(baseUrl, hcOpts) {
1714
1779
  ),
1715
1780
  /** POST /orgs/:orgId/audit-export/test-connection — dry-run write+delete. */
1716
1781
  testConnection: withSchema(
1717
- z19.object({
1718
- orgId: z19.string().describe("Organization ID"),
1719
- bucket: z19.string().describe("S3 bucket name"),
1720
- region: z19.string().describe("AWS region"),
1721
- 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")
1722
1787
  }),
1723
1788
  async (params) => {
1724
1789
  const { orgId, ...body } = params;
@@ -1733,9 +1798,9 @@ function createAuditExportClient(baseUrl, hcOpts) {
1733
1798
  ),
1734
1799
  /** GET /orgs/:orgId/audit-export/runs — recent batch run history. */
1735
1800
  listRuns: withSchema(
1736
- z19.object({
1737
- orgId: z19.string().describe("Organization ID"),
1738
- 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)")
1739
1804
  }),
1740
1805
  async (params) => {
1741
1806
  const qs = params.limit ? `?limit=${params.limit}` : "";
@@ -1779,33 +1844,33 @@ function createUserPreferencesClient(baseUrl, hcOpts) {
1779
1844
  }
1780
1845
 
1781
1846
  // src/import-sources.ts
1782
- import { z as z20 } from "zod";
1783
- var SourceKindEnum = z20.enum(["tf-state", "atmos-manifests"]);
1784
- 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"]);
1785
1850
  function createImportSourcesClient(proj) {
1786
1851
  return {
1787
1852
  list: withSchema(
1788
- z20.object({
1789
- orgId: z20.string().describe("Organization slug"),
1790
- projectId: z20.string().describe("Project ID")
1853
+ z21.object({
1854
+ orgId: z21.string().describe("Organization slug"),
1855
+ projectId: z21.string().describe("Project ID")
1791
1856
  }),
1792
1857
  (params) => call(proj(params.orgId, params.projectId)["import-sources"].$get())
1793
1858
  ),
1794
1859
  get: withSchema(
1795
- z20.object({
1796
- orgId: z20.string().describe("Organization slug"),
1797
- projectId: z20.string().describe("Project ID"),
1798
- 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")
1799
1864
  }),
1800
1865
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].$get({ param: { id: params.id } }))
1801
1866
  ),
1802
1867
  registerOrUpdate: withSchema(
1803
- z20.object({
1804
- orgId: z20.string().describe("Organization slug"),
1805
- projectId: z20.string().describe("Project ID"),
1806
- 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"),
1807
1872
  sourceKind: SourceKindEnum,
1808
- sourceUri: z20.string().describe("Stable URI identifying the source"),
1873
+ sourceUri: z21.string().describe("Stable URI identifying the source"),
1809
1874
  reconciliationPolicy: PolicyEnum.optional()
1810
1875
  }),
1811
1876
  (params) => {
@@ -1814,13 +1879,13 @@ function createImportSourcesClient(proj) {
1814
1879
  }
1815
1880
  ),
1816
1881
  rescan: withSchema(
1817
- z20.object({
1818
- orgId: z20.string().describe("Organization slug"),
1819
- projectId: z20.string().describe("Project ID"),
1820
- id: z20.string().uuid(),
1821
- envName: z20.string(),
1822
- items: z20.array(z20.unknown()),
1823
- 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()
1824
1889
  }),
1825
1890
  (params) => {
1826
1891
  const { orgId, projectId, id, ...body } = params;
@@ -1836,19 +1901,19 @@ function createImportSourcesClient(proj) {
1836
1901
  }
1837
1902
  ),
1838
1903
  drift: withSchema(
1839
- z20.object({
1840
- orgId: z20.string().describe("Organization slug"),
1841
- projectId: z20.string().describe("Project ID"),
1842
- 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()
1843
1908
  }),
1844
1909
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].drift.$get({ param: { id: params.id } }))
1845
1910
  ),
1846
1911
  approveProposal: withSchema(
1847
- z20.object({
1848
- orgId: z20.string().describe("Organization slug"),
1849
- projectId: z20.string().describe("Project ID"),
1850
- id: z20.string().uuid(),
1851
- 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()
1852
1917
  }),
1853
1918
  (params) => call(
1854
1919
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].approve.$post({
@@ -1857,11 +1922,11 @@ function createImportSourcesClient(proj) {
1857
1922
  )
1858
1923
  ),
1859
1924
  rejectProposal: withSchema(
1860
- z20.object({
1861
- orgId: z20.string().describe("Organization slug"),
1862
- projectId: z20.string().describe("Project ID"),
1863
- id: z20.string().uuid(),
1864
- 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()
1865
1930
  }),
1866
1931
  (params) => call(
1867
1932
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].reject.$post({
@@ -1873,7 +1938,7 @@ function createImportSourcesClient(proj) {
1873
1938
  }
1874
1939
 
1875
1940
  // src/admin.ts
1876
- import { z as z21 } from "zod";
1941
+ import { z as z22 } from "zod";
1877
1942
  async function rawRequest2(baseUrl, hcOpts, path, init = {}) {
1878
1943
  const fetchImpl = hcOpts?.fetch ?? fetch;
1879
1944
  const rawHeaders = hcOpts?.headers;
@@ -1906,14 +1971,14 @@ function createAdminClient(baseUrl, hcOpts) {
1906
1971
  * List super-admin audit events with optional filters.
1907
1972
  */
1908
1973
  list: withSchema(
1909
- z21.object({
1910
- actor: z21.string().optional().describe("Filter by actor user ID"),
1911
- action: z21.string().optional().describe("Filter by action name"),
1912
- resourceKind: z21.string().optional().describe("Filter by resource kind"),
1913
- since: z21.string().optional().describe("ISO 8601 datetime lower bound"),
1914
- until: z21.string().optional().describe("ISO 8601 datetime upper bound"),
1915
- limit: z21.coerce.number().int().min(1).max(200).optional().describe("Max results (1-200)"),
1916
- 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")
1917
1982
  }),
1918
1983
  async (params) => {
1919
1984
  const qs = new URLSearchParams();
@@ -1937,7 +2002,7 @@ function createAdminClient(baseUrl, hcOpts) {
1937
2002
  * List all organizations across tenants with member + project counts.
1938
2003
  */
1939
2004
  list: withSchema(
1940
- z21.object({}),
2005
+ z22.object({}),
1941
2006
  async () => callRaw2(
1942
2007
  await rawRequest2(baseUrl, hcOpts, "/admin/orgs")
1943
2008
  )
@@ -1947,7 +2012,7 @@ function createAdminClient(baseUrl, hcOpts) {
1947
2012
  * Detail view: org fields + member list + project list.
1948
2013
  */
1949
2014
  get: withSchema(
1950
- z21.object({ id: z21.string().describe("Organization ID") }),
2015
+ z22.object({ id: z22.string().describe("Organization ID") }),
1951
2016
  async (params) => callRaw2(
1952
2017
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}`)
1953
2018
  )
@@ -1957,7 +2022,7 @@ function createAdminClient(baseUrl, hcOpts) {
1957
2022
  * Set suspended_at = now(). Idempotent.
1958
2023
  */
1959
2024
  suspend: withSchema(
1960
- z21.object({ id: z21.string().describe("Organization ID") }),
2025
+ z22.object({ id: z22.string().describe("Organization ID") }),
1961
2026
  async (params) => callRaw2(
1962
2027
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/suspend`, {
1963
2028
  method: "POST"
@@ -1969,7 +2034,7 @@ function createAdminClient(baseUrl, hcOpts) {
1969
2034
  * Clear suspended_at.
1970
2035
  */
1971
2036
  unsuspend: withSchema(
1972
- z21.object({ id: z21.string().describe("Organization ID") }),
2037
+ z22.object({ id: z22.string().describe("Organization ID") }),
1973
2038
  async (params) => callRaw2(
1974
2039
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/unsuspend`, {
1975
2040
  method: "POST"
@@ -1985,7 +2050,7 @@ function createAdminClient(baseUrl, hcOpts) {
1985
2050
  * api tokens, and environments. Idempotent. Super-admin only.
1986
2051
  */
1987
2052
  nuke: withSchema(
1988
- z21.object({ projectId: z21.string().describe("Project ID to nuke") }),
2053
+ z22.object({ projectId: z22.string().describe("Project ID to nuke") }),
1989
2054
  async (params) => callRaw2(
1990
2055
  await rawRequest2(
1991
2056
  baseUrl,
@@ -2003,7 +2068,7 @@ function createAdminClient(baseUrl, hcOpts) {
2003
2068
  * all derived from single-table COUNT queries.
2004
2069
  */
2005
2070
  overview: withSchema(
2006
- z21.object({}),
2071
+ z22.object({}),
2007
2072
  async () => callRaw2(
2008
2073
  await rawRequest2(baseUrl, hcOpts, "/admin/metrics/overview")
2009
2074
  )
@@ -2018,7 +2083,7 @@ function createAdminClient(baseUrl, hcOpts) {
2018
2083
  * Requires super-admin.
2019
2084
  */
2020
2085
  list: withSchema(
2021
- z21.object({}),
2086
+ z22.object({}),
2022
2087
  async () => callRaw2(
2023
2088
  await rawRequest2(
2024
2089
  baseUrl,
@@ -2032,6 +2097,27 @@ function createAdminClient(baseUrl, hcOpts) {
2032
2097
  };
2033
2098
  }
2034
2099
 
2100
+ // src/resolve-source.ts
2101
+ import { z as z23 } from "zod";
2102
+ function createResolveSourceFn(proj) {
2103
+ return withSchema(
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")
2110
+ }),
2111
+ (params) => {
2112
+ const { orgId, projectId, kind, ref, version } = params;
2113
+ const json = version !== void 0 ? { kind, ref, version } : { kind, ref };
2114
+ return call(
2115
+ proj(orgId, projectId)["resolve-source"].$post({ json })
2116
+ );
2117
+ }
2118
+ );
2119
+ }
2120
+
2035
2121
  // src/index.ts
2036
2122
  var createClient = (baseUrl, options = {}) => {
2037
2123
  const opts = typeof options === "string" || typeof options === "function" ? { token: options } : options;
@@ -2052,6 +2138,7 @@ var createClient = (baseUrl, options = {}) => {
2052
2138
  environments: createEnvironmentsClient(proj),
2053
2139
  entityTypes: createEntityTypesClient(proj),
2054
2140
  deploymentTargets: createDeploymentTargetsClient(proj),
2141
+ deploymentTargetSets: createDeploymentTargetSetsClient(proj),
2055
2142
  entities: createEntitiesClient(projEnv),
2056
2143
  cells,
2057
2144
  relationshipTypes: createRelationshipTypesClient(proj),
@@ -2069,6 +2156,7 @@ var createClient = (baseUrl, options = {}) => {
2069
2156
  auditExport: createAuditExportClient(baseUrl, hcOpts),
2070
2157
  userPreferences: createUserPreferencesClient(baseUrl, hcOpts),
2071
2158
  importSources: createImportSourcesClient(proj),
2159
+ resolveSource: createResolveSourceFn(proj),
2072
2160
  exportCatalog,
2073
2161
  admin: createAdminClient(baseUrl, hcOpts)
2074
2162
  };