@terrantula/sdk 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -588,45 +588,45 @@ function createEntitiesClient(projEnv) {
588
588
  };
589
589
  }
590
590
 
591
- // src/cells.ts
591
+ // src/deployment-targets.ts
592
592
  import { z as z4 } from "zod";
593
- import { CellSchema } from "@terrantula/types";
594
- function createCellsClient(proj) {
593
+ import { DeploymentTargetSchema } from "@terrantula/types";
594
+ function createDeploymentTargetsClient(proj) {
595
595
  return {
596
596
  list: withSchema(
597
597
  z4.object({
598
598
  orgId: z4.string().describe("Organization slug"),
599
599
  projectId: z4.string().describe("Project ID")
600
600
  }),
601
- (params) => call(proj(params.orgId, params.projectId)["cells"].$get())
601
+ (params) => call(proj(params.orgId, params.projectId)["deployment-targets"].$get())
602
602
  ),
603
603
  get: withSchema(
604
604
  z4.object({
605
605
  orgId: z4.string().describe("Organization slug"),
606
606
  projectId: z4.string().describe("Project ID"),
607
- name: z4.string().describe("Cell name")
607
+ name: z4.string().describe("Deployment target name")
608
608
  }),
609
- (params) => call(proj(params.orgId, params.projectId)["cells"][":name"].$get({ param: { name: params.name } }))
609
+ (params) => call(proj(params.orgId, params.projectId)["deployment-targets"][":name"].$get({ param: { name: params.name } }))
610
610
  ),
611
611
  create: withSchema(
612
- CellSchema.extend({
612
+ DeploymentTargetSchema.extend({
613
613
  orgId: z4.string().describe("Organization slug"),
614
614
  projectId: z4.string().describe("Project ID")
615
615
  }),
616
616
  (params) => {
617
617
  const { orgId, projectId, ...body } = params;
618
- return call(proj(orgId, projectId)["cells"].$post({ json: body }));
618
+ return call(proj(orgId, projectId)["deployment-targets"].$post({ json: body }));
619
619
  }
620
620
  ),
621
621
  update: withSchema(
622
- CellSchema.extend({
622
+ DeploymentTargetSchema.extend({
623
623
  orgId: z4.string().describe("Organization slug"),
624
624
  projectId: z4.string().describe("Project ID")
625
625
  }),
626
626
  (params) => {
627
627
  const { orgId, projectId, ...body } = params;
628
628
  return call(
629
- proj(orgId, projectId)["cells"][":name"].$put({ param: { name: params.name }, json: body })
629
+ proj(orgId, projectId)["deployment-targets"][":name"].$put({ param: { name: params.name }, json: body })
630
630
  );
631
631
  }
632
632
  ),
@@ -634,16 +634,69 @@ function createCellsClient(proj) {
634
634
  z4.object({
635
635
  orgId: z4.string().describe("Organization slug"),
636
636
  projectId: z4.string().describe("Project ID"),
637
- name: z4.string().describe("Cell name")
637
+ name: z4.string().describe("Deployment target name")
638
+ }),
639
+ (params) => call(proj(params.orgId, params.projectId)["deployment-targets"][":name"].$delete({ param: { name: params.name } }))
640
+ )
641
+ };
642
+ }
643
+
644
+ // src/cells.ts
645
+ import { z as z5 } from "zod";
646
+ import { CellSchema } from "@terrantula/types";
647
+ function createCellsClient(proj) {
648
+ return {
649
+ list: withSchema(
650
+ z5.object({
651
+ orgId: z5.string().describe("Organization slug"),
652
+ projectId: z5.string().describe("Project ID")
653
+ }),
654
+ (params) => call(proj(params.orgId, params.projectId)["cells"].$get())
655
+ ),
656
+ get: withSchema(
657
+ z5.object({
658
+ orgId: z5.string().describe("Organization slug"),
659
+ projectId: z5.string().describe("Project ID"),
660
+ name: z5.string().describe("Cell name")
661
+ }),
662
+ (params) => call(proj(params.orgId, params.projectId)["cells"][":name"].$get({ param: { name: params.name } }))
663
+ ),
664
+ create: withSchema(
665
+ CellSchema.extend({
666
+ orgId: z5.string().describe("Organization slug"),
667
+ projectId: z5.string().describe("Project ID")
668
+ }),
669
+ (params) => {
670
+ const { orgId, projectId, ...body } = params;
671
+ return call(proj(orgId, projectId)["cells"].$post({ json: body }));
672
+ }
673
+ ),
674
+ update: withSchema(
675
+ CellSchema.extend({
676
+ orgId: z5.string().describe("Organization slug"),
677
+ projectId: z5.string().describe("Project ID")
678
+ }),
679
+ (params) => {
680
+ const { orgId, projectId, ...body } = params;
681
+ return call(
682
+ proj(orgId, projectId)["cells"][":name"].$put({ param: { name: params.name }, json: body })
683
+ );
684
+ }
685
+ ),
686
+ delete: withSchema(
687
+ z5.object({
688
+ orgId: z5.string().describe("Organization slug"),
689
+ projectId: z5.string().describe("Project ID"),
690
+ name: z5.string().describe("Cell name")
638
691
  }),
639
692
  (params) => call(proj(params.orgId, params.projectId)["cells"][":name"].$delete({ param: { name: params.name } }))
640
693
  ),
641
694
  listMembers: withSchema(
642
- z4.object({
643
- orgId: z4.string().describe("Organization slug"),
644
- projectId: z4.string().describe("Project ID"),
645
- name: z4.string().describe("Cell name"),
646
- envName: z4.string().describe("Environment name").default("default")
695
+ z5.object({
696
+ orgId: z5.string().describe("Organization slug"),
697
+ projectId: z5.string().describe("Project ID"),
698
+ name: z5.string().describe("Cell name"),
699
+ envName: z5.string().describe("Environment name").default("default")
647
700
  }),
648
701
  (params) => {
649
702
  const envName = params.envName ?? "default";
@@ -656,13 +709,13 @@ function createCellsClient(proj) {
656
709
  }
657
710
  ),
658
711
  addMember: withSchema(
659
- z4.object({
660
- orgId: z4.string().describe("Organization slug"),
661
- projectId: z4.string().describe("Project ID"),
662
- name: z4.string().describe("Cell name"),
663
- entityName: z4.string().describe("Entity name (M5-rework natural key)"),
664
- entityTypeName: z4.string().describe("Entity type name (M5-rework natural key)"),
665
- envName: z4.string().describe("Environment name").default("default")
712
+ z5.object({
713
+ orgId: z5.string().describe("Organization slug"),
714
+ projectId: z5.string().describe("Project ID"),
715
+ name: z5.string().describe("Cell name"),
716
+ entityName: z5.string().describe("Entity name (M5-rework natural key)"),
717
+ entityTypeName: z5.string().describe("Entity type name (M5-rework natural key)"),
718
+ envName: z5.string().describe("Environment name").default("default")
666
719
  }),
667
720
  (params) => {
668
721
  const { orgId, projectId, name, entityName, entityTypeName } = params;
@@ -676,12 +729,12 @@ function createCellsClient(proj) {
676
729
  }
677
730
  ),
678
731
  removeMember: withSchema(
679
- z4.object({
680
- orgId: z4.string().describe("Organization slug"),
681
- projectId: z4.string().describe("Project ID"),
682
- name: z4.string().describe("Cell name"),
683
- entityName: z4.string().describe("Entity name (M5-rework natural key)"),
684
- envName: z4.string().describe("Environment name").default("default")
732
+ z5.object({
733
+ orgId: z5.string().describe("Organization slug"),
734
+ projectId: z5.string().describe("Project ID"),
735
+ name: z5.string().describe("Cell name"),
736
+ entityName: z5.string().describe("Entity name (M5-rework natural key)"),
737
+ envName: z5.string().describe("Environment name").default("default")
685
738
  }),
686
739
  (params) => {
687
740
  const envName = params.envName ?? "default";
@@ -697,22 +750,22 @@ function createCellsClient(proj) {
697
750
  }
698
751
 
699
752
  // src/relationships.ts
700
- import { z as z5 } from "zod";
753
+ import { z as z6 } from "zod";
701
754
  import { RelationshipTypeSchema, RelationshipSchema } from "@terrantula/types";
702
755
  function createRelationshipTypesClient(proj) {
703
756
  return {
704
757
  list: withSchema(
705
- z5.object({
706
- orgId: z5.string().describe("Organization slug"),
707
- projectId: z5.string().describe("Project ID")
758
+ z6.object({
759
+ orgId: z6.string().describe("Organization slug"),
760
+ projectId: z6.string().describe("Project ID")
708
761
  }),
709
762
  (params) => call(proj(params.orgId, params.projectId)["relationship-types"].$get())
710
763
  ),
711
764
  get: withSchema(
712
- z5.object({
713
- orgId: z5.string().describe("Organization slug"),
714
- projectId: z5.string().describe("Project ID"),
715
- name: z5.string().describe("Relationship type name")
765
+ z6.object({
766
+ orgId: z6.string().describe("Organization slug"),
767
+ projectId: z6.string().describe("Project ID"),
768
+ name: z6.string().describe("Relationship type name")
716
769
  }),
717
770
  (params) => call(
718
771
  proj(params.orgId, params.projectId)["relationship-types"][":name"].$get({
@@ -722,8 +775,8 @@ function createRelationshipTypesClient(proj) {
722
775
  ),
723
776
  create: withSchema(
724
777
  RelationshipTypeSchema.extend({
725
- orgId: z5.string().describe("Organization slug"),
726
- projectId: z5.string().describe("Project ID")
778
+ orgId: z6.string().describe("Organization slug"),
779
+ projectId: z6.string().describe("Project ID")
727
780
  }),
728
781
  (params) => {
729
782
  const { orgId, projectId, ...body } = params;
@@ -732,8 +785,8 @@ function createRelationshipTypesClient(proj) {
732
785
  ),
733
786
  update: withSchema(
734
787
  RelationshipTypeSchema.extend({
735
- orgId: z5.string().describe("Organization slug"),
736
- projectId: z5.string().describe("Project ID")
788
+ orgId: z6.string().describe("Organization slug"),
789
+ projectId: z6.string().describe("Project ID")
737
790
  }),
738
791
  (params) => {
739
792
  const { orgId, projectId, ...body } = params;
@@ -746,10 +799,10 @@ function createRelationshipTypesClient(proj) {
746
799
  }
747
800
  ),
748
801
  delete: withSchema(
749
- z5.object({
750
- orgId: z5.string().describe("Organization slug"),
751
- projectId: z5.string().describe("Project ID"),
752
- name: z5.string().describe("Relationship type name")
802
+ z6.object({
803
+ orgId: z6.string().describe("Organization slug"),
804
+ projectId: z6.string().describe("Project ID"),
805
+ name: z6.string().describe("Relationship type name")
753
806
  }),
754
807
  (params) => call(
755
808
  proj(params.orgId, params.projectId)["relationship-types"][":name"].$delete({
@@ -762,17 +815,17 @@ function createRelationshipTypesClient(proj) {
762
815
  function createRelationshipsClient(projEnv) {
763
816
  return {
764
817
  list: withSchema(
765
- z5.object({
766
- orgId: z5.string().describe("Organization slug"),
767
- projectId: z5.string().describe("Project ID"),
768
- envName: z5.string().describe("Environment name"),
769
- relationshipType: z5.string().optional().describe("Filter by relationship type"),
770
- state: z5.string().optional().describe("Filter by state"),
771
- fromEntity: z5.string().uuid().optional().describe("Filter by from-entity ID"),
772
- toEntity: z5.string().uuid().optional().describe("Filter by to-entity ID"),
773
- fromEntityPool: z5.string().optional().describe("Filter by from-entity pool"),
774
- toEntityPool: z5.string().optional().describe("Filter by to-entity pool"),
775
- limit: z5.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
818
+ z6.object({
819
+ orgId: z6.string().describe("Organization slug"),
820
+ projectId: z6.string().describe("Project ID"),
821
+ envName: z6.string().describe("Environment name"),
822
+ relationshipType: z6.string().optional().describe("Filter by relationship type"),
823
+ state: z6.string().optional().describe("Filter by state"),
824
+ fromEntity: z6.string().uuid().optional().describe("Filter by from-entity ID"),
825
+ toEntity: z6.string().uuid().optional().describe("Filter by to-entity ID"),
826
+ fromEntityPool: z6.string().optional().describe("Filter by from-entity pool"),
827
+ toEntityPool: z6.string().optional().describe("Filter by to-entity pool"),
828
+ limit: z6.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
776
829
  }),
777
830
  (params) => {
778
831
  const { orgId, projectId, envName, ...query } = params;
@@ -782,11 +835,11 @@ function createRelationshipsClient(projEnv) {
782
835
  }
783
836
  ),
784
837
  get: withSchema(
785
- z5.object({
786
- orgId: z5.string().describe("Organization slug"),
787
- projectId: z5.string().describe("Project ID"),
788
- envName: z5.string().describe("Environment name"),
789
- id: z5.string().uuid().describe("Relationship ID")
838
+ z6.object({
839
+ orgId: z6.string().describe("Organization slug"),
840
+ projectId: z6.string().describe("Project ID"),
841
+ envName: z6.string().describe("Environment name"),
842
+ id: z6.string().uuid().describe("Relationship ID")
790
843
  }),
791
844
  (params) => call(
792
845
  projEnv(params.orgId, params.projectId, params.envName)["relationships"][":id"].$get({ param: { id: params.id } })
@@ -794,9 +847,9 @@ function createRelationshipsClient(projEnv) {
794
847
  ),
795
848
  create: withSchema(
796
849
  RelationshipSchema.extend({
797
- orgId: z5.string().describe("Organization slug"),
798
- projectId: z5.string().describe("Project ID"),
799
- envName: z5.string().describe("Environment name")
850
+ orgId: z6.string().describe("Organization slug"),
851
+ projectId: z6.string().describe("Project ID"),
852
+ envName: z6.string().describe("Environment name")
800
853
  }),
801
854
  (params) => {
802
855
  const { orgId, projectId, envName, ...body } = params;
@@ -804,11 +857,11 @@ function createRelationshipsClient(projEnv) {
804
857
  }
805
858
  ),
806
859
  delete: withSchema(
807
- z5.object({
808
- orgId: z5.string().describe("Organization slug"),
809
- projectId: z5.string().describe("Project ID"),
810
- envName: z5.string().describe("Environment name"),
811
- id: z5.string().uuid().describe("Relationship ID")
860
+ z6.object({
861
+ orgId: z6.string().describe("Organization slug"),
862
+ projectId: z6.string().describe("Project ID"),
863
+ envName: z6.string().describe("Environment name"),
864
+ id: z6.string().uuid().describe("Relationship ID")
812
865
  }),
813
866
  (params) => call(
814
867
  projEnv(params.orgId, params.projectId, params.envName)["relationships"][":id"].$delete({ param: { id: params.id } })
@@ -818,29 +871,29 @@ function createRelationshipsClient(projEnv) {
818
871
  }
819
872
 
820
873
  // src/actions.ts
821
- import { z as z6 } from "zod";
874
+ import { z as z7 } from "zod";
822
875
  import { ActionSchema } from "@terrantula/types";
823
876
  function createActionsClient(proj, projEnv) {
824
877
  return {
825
878
  list: withSchema(
826
- z6.object({
827
- orgId: z6.string().describe("Organization slug"),
828
- projectId: z6.string().describe("Project ID")
879
+ z7.object({
880
+ orgId: z7.string().describe("Organization slug"),
881
+ projectId: z7.string().describe("Project ID")
829
882
  }),
830
883
  (params) => call(proj(params.orgId, params.projectId)["actions"].$get())
831
884
  ),
832
885
  get: withSchema(
833
- z6.object({
834
- orgId: z6.string().describe("Organization slug"),
835
- projectId: z6.string().describe("Project ID"),
836
- name: z6.string().describe("Action name")
886
+ z7.object({
887
+ orgId: z7.string().describe("Organization slug"),
888
+ projectId: z7.string().describe("Project ID"),
889
+ name: z7.string().describe("Action name")
837
890
  }),
838
891
  (params) => call(proj(params.orgId, params.projectId)["actions"][":name"].$get({ param: { name: params.name } }))
839
892
  ),
840
893
  create: withSchema(
841
894
  ActionSchema.extend({
842
- orgId: z6.string().describe("Organization slug"),
843
- projectId: z6.string().describe("Project ID")
895
+ orgId: z7.string().describe("Organization slug"),
896
+ projectId: z7.string().describe("Project ID")
844
897
  }),
845
898
  (params) => {
846
899
  const { orgId, projectId, ...body } = params;
@@ -849,8 +902,8 @@ function createActionsClient(proj, projEnv) {
849
902
  ),
850
903
  update: withSchema(
851
904
  ActionSchema.extend({
852
- orgId: z6.string().describe("Organization slug"),
853
- projectId: z6.string().describe("Project ID")
905
+ orgId: z7.string().describe("Organization slug"),
906
+ projectId: z7.string().describe("Project ID")
854
907
  }),
855
908
  (params) => {
856
909
  const { orgId, projectId, ...body } = params;
@@ -860,23 +913,23 @@ function createActionsClient(proj, projEnv) {
860
913
  }
861
914
  ),
862
915
  delete: withSchema(
863
- z6.object({
864
- orgId: z6.string().describe("Organization slug"),
865
- projectId: z6.string().describe("Project ID"),
866
- name: z6.string().describe("Action name")
916
+ z7.object({
917
+ orgId: z7.string().describe("Organization slug"),
918
+ projectId: z7.string().describe("Project ID"),
919
+ name: z7.string().describe("Action name")
867
920
  }),
868
921
  (params) => call(
869
922
  proj(params.orgId, params.projectId)["actions"][":name"].$delete({ param: { name: params.name } })
870
923
  )
871
924
  ),
872
925
  run: withSchema(
873
- z6.object({
874
- orgId: z6.string().describe("Organization slug"),
875
- projectId: z6.string().describe("Project ID"),
876
- envName: z6.string().describe("Environment name"),
877
- actionName: z6.string().describe("Action name"),
878
- parameters: z6.record(z6.unknown()).optional().describe("Action parameters as JSON"),
879
- recommendations: z6.record(z6.string()).optional().describe("Recommendation selections as JSON")
926
+ z7.object({
927
+ orgId: z7.string().describe("Organization slug"),
928
+ projectId: z7.string().describe("Project ID"),
929
+ envName: z7.string().describe("Environment name"),
930
+ actionName: z7.string().describe("Action name"),
931
+ parameters: z7.record(z7.unknown()).optional().describe("Action parameters as JSON"),
932
+ recommendations: z7.record(z7.string()).optional().describe("Recommendation selections as JSON")
880
933
  }),
881
934
  (params) => {
882
935
  const { orgId, projectId, envName, actionName, parameters, recommendations } = params;
@@ -893,14 +946,14 @@ function createActionsClient(proj, projEnv) {
893
946
  function createActionRunsClient(projEnv) {
894
947
  return {
895
948
  list: withSchema(
896
- z6.object({
897
- orgId: z6.string().describe("Organization slug"),
898
- projectId: z6.string().describe("Project ID"),
899
- envName: z6.string().describe("Environment name"),
900
- actionName: z6.string().optional().describe("Filter by action name"),
901
- entityId: z6.string().uuid().optional().describe("Filter by entity ID"),
902
- status: z6.enum(["pending", "running", "succeeded", "failed", "cancelled"]).optional().describe("Filter by status"),
903
- limit: z6.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
949
+ z7.object({
950
+ orgId: z7.string().describe("Organization slug"),
951
+ projectId: z7.string().describe("Project ID"),
952
+ envName: z7.string().describe("Environment name"),
953
+ actionName: z7.string().optional().describe("Filter by action name"),
954
+ entityId: z7.string().uuid().optional().describe("Filter by entity ID"),
955
+ status: z7.enum(["pending", "running", "succeeded", "failed", "cancelled"]).optional().describe("Filter by status"),
956
+ limit: z7.coerce.number().int().min(1).max(100).optional().describe("Max results (1-100)")
904
957
  }),
905
958
  (params) => {
906
959
  const { orgId, projectId, envName, ...query } = params;
@@ -910,22 +963,22 @@ function createActionRunsClient(projEnv) {
910
963
  }
911
964
  ),
912
965
  get: withSchema(
913
- z6.object({
914
- orgId: z6.string().describe("Organization slug"),
915
- projectId: z6.string().describe("Project ID"),
916
- envName: z6.string().describe("Environment name"),
917
- id: z6.string().uuid().describe("Action run ID")
966
+ z7.object({
967
+ orgId: z7.string().describe("Organization slug"),
968
+ projectId: z7.string().describe("Project ID"),
969
+ envName: z7.string().describe("Environment name"),
970
+ id: z7.string().uuid().describe("Action run ID")
918
971
  }),
919
972
  (params) => call(
920
973
  projEnv(params.orgId, params.projectId, params.envName)["action-runs"][":id"].$get({ param: { id: params.id } })
921
974
  )
922
975
  ),
923
976
  cancel: withSchema(
924
- z6.object({
925
- orgId: z6.string().describe("Organization slug"),
926
- projectId: z6.string().describe("Project ID"),
927
- envName: z6.string().describe("Environment name"),
928
- id: z6.string().uuid().describe("Action run ID")
977
+ z7.object({
978
+ orgId: z7.string().describe("Organization slug"),
979
+ projectId: z7.string().describe("Project ID"),
980
+ envName: z7.string().describe("Environment name"),
981
+ id: z7.string().uuid().describe("Action run ID")
929
982
  }),
930
983
  (params) => call(
931
984
  projEnv(params.orgId, params.projectId, params.envName)["action-runs"][":id"].$delete({ param: { id: params.id } })
@@ -935,36 +988,36 @@ function createActionRunsClient(projEnv) {
935
988
  }
936
989
 
937
990
  // src/secrets.ts
938
- import { z as z7 } from "zod";
991
+ import { z as z8 } from "zod";
939
992
  import { ApplyRequestSchema } from "@terrantula/types";
940
993
  function createSecretsClient(projEnv) {
941
994
  return {
942
995
  list: withSchema(
943
- z7.object({
944
- orgId: z7.string().describe("Organization slug"),
945
- projectId: z7.string().describe("Project ID"),
946
- envName: z7.string().describe("Environment name")
996
+ z8.object({
997
+ orgId: z8.string().describe("Organization slug"),
998
+ projectId: z8.string().describe("Project ID"),
999
+ envName: z8.string().describe("Environment name")
947
1000
  }),
948
1001
  (params) => call(projEnv(params.orgId, params.projectId, params.envName)["secrets"].$get())
949
1002
  ),
950
1003
  get: withSchema(
951
- z7.object({
952
- orgId: z7.string().describe("Organization slug"),
953
- projectId: z7.string().describe("Project ID"),
954
- envName: z7.string().describe("Environment name"),
955
- name: z7.string().describe("Secret name")
1004
+ z8.object({
1005
+ orgId: z8.string().describe("Organization slug"),
1006
+ projectId: z8.string().describe("Project ID"),
1007
+ envName: z8.string().describe("Environment name"),
1008
+ name: z8.string().describe("Secret name")
956
1009
  }),
957
1010
  (params) => call(
958
1011
  projEnv(params.orgId, params.projectId, params.envName)["secrets"][":name"].$get({ param: { name: params.name } })
959
1012
  )
960
1013
  ),
961
1014
  create: withSchema(
962
- z7.object({
963
- orgId: z7.string().describe("Organization slug"),
964
- projectId: z7.string().describe("Project ID"),
965
- envName: z7.string().describe("Environment name"),
966
- name: z7.string().describe("Secret name"),
967
- description: z7.string().optional().describe("Description")
1015
+ z8.object({
1016
+ orgId: z8.string().describe("Organization slug"),
1017
+ projectId: z8.string().describe("Project ID"),
1018
+ envName: z8.string().describe("Environment name"),
1019
+ name: z8.string().describe("Secret name"),
1020
+ description: z8.string().optional().describe("Description")
968
1021
  }),
969
1022
  (params) => {
970
1023
  const { orgId, projectId, envName, name, description } = params;
@@ -974,23 +1027,23 @@ function createSecretsClient(projEnv) {
974
1027
  }
975
1028
  ),
976
1029
  delete: withSchema(
977
- z7.object({
978
- orgId: z7.string().describe("Organization slug"),
979
- projectId: z7.string().describe("Project ID"),
980
- envName: z7.string().describe("Environment name"),
981
- name: z7.string().describe("Secret name")
1030
+ z8.object({
1031
+ orgId: z8.string().describe("Organization slug"),
1032
+ projectId: z8.string().describe("Project ID"),
1033
+ envName: z8.string().describe("Environment name"),
1034
+ name: z8.string().describe("Secret name")
982
1035
  }),
983
1036
  (params) => call(
984
1037
  projEnv(params.orgId, params.projectId, params.envName)["secrets"][":name"].$delete({ param: { name: params.name } })
985
1038
  )
986
1039
  ),
987
1040
  setValue: withSchema(
988
- z7.object({
989
- orgId: z7.string().describe("Organization slug"),
990
- projectId: z7.string().describe("Project ID"),
991
- envName: z7.string().describe("Environment name"),
992
- name: z7.string().describe("Secret name"),
993
- value: z7.string().min(1).describe("Secret value")
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
+ name: z8.string().describe("Secret name"),
1046
+ value: z8.string().min(1).describe("Secret value")
994
1047
  }),
995
1048
  (params) => {
996
1049
  const { orgId, projectId, envName, name, value } = params;
@@ -1007,9 +1060,9 @@ function createSecretsClient(projEnv) {
1007
1060
  function createApplyClient(projEnv) {
1008
1061
  return withSchema(
1009
1062
  ApplyRequestSchema.extend({
1010
- orgId: z7.string().describe("Organization slug"),
1011
- projectId: z7.string().describe("Project ID"),
1012
- envName: z7.string().describe("Environment name")
1063
+ orgId: z8.string().describe("Organization slug"),
1064
+ projectId: z8.string().describe("Project ID"),
1065
+ envName: z8.string().describe("Environment name")
1013
1066
  }),
1014
1067
  (params) => {
1015
1068
  const { orgId, projectId, envName, ...body } = params;
@@ -1019,25 +1072,25 @@ function createApplyClient(projEnv) {
1019
1072
  }
1020
1073
 
1021
1074
  // src/github.ts
1022
- import { z as z8 } from "zod";
1075
+ import { z as z9 } from "zod";
1023
1076
  function createGithubClient(cloud, _baseUrl, _hcOpts) {
1024
1077
  return {
1025
1078
  connect: withSchema(
1026
- z8.object({
1027
- projectId: z8.string().describe("Project ID")
1079
+ z9.object({
1080
+ projectId: z9.string().describe("Project ID")
1028
1081
  }),
1029
1082
  (params) => call(cloud.github["install-url"].$post({ json: params }))
1030
1083
  ),
1031
1084
  installations: {
1032
1085
  list: withSchema(
1033
- z8.object({
1034
- orgId: z8.string().describe("Organization ID")
1086
+ z9.object({
1087
+ orgId: z9.string().describe("Organization ID")
1035
1088
  }),
1036
1089
  (params) => call(cloud.github.installations.$get({ query: params }))
1037
1090
  ),
1038
1091
  repos: withSchema(
1039
- z8.object({
1040
- installationId: z8.string().describe("Installation row ID")
1092
+ z9.object({
1093
+ installationId: z9.string().describe("Installation row ID")
1041
1094
  }),
1042
1095
  (params) => call(
1043
1096
  cloud.github.installations[":installationId"].repos.$get({
@@ -1046,8 +1099,8 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1046
1099
  )
1047
1100
  ),
1048
1101
  disconnect: withSchema(
1049
- z8.object({
1050
- installationId: z8.string().describe("Installation row ID")
1102
+ z9.object({
1103
+ installationId: z9.string().describe("Installation row ID")
1051
1104
  }),
1052
1105
  (params) => call(
1053
1106
  cloud.github.installations[":installationId"].$delete({
@@ -1056,18 +1109,18 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1056
1109
  )
1057
1110
  ),
1058
1111
  recover: withSchema(
1059
- z8.object({
1060
- orgId: z8.string().describe("Organization ID"),
1061
- installationId: z8.number().int().positive().describe("GitHub installation ID (from the GitHub install URL)")
1112
+ z9.object({
1113
+ orgId: z9.string().describe("Organization ID"),
1114
+ installationId: z9.number().int().positive().describe("GitHub installation ID (from the GitHub install URL)")
1062
1115
  }),
1063
1116
  (params) => call(cloud.github.installations.recover.$post({ json: params }))
1064
1117
  )
1065
1118
  },
1066
1119
  projects: {
1067
1120
  list: withSchema(
1068
- z8.object({
1069
- orgId: z8.string().describe("Organization ID"),
1070
- projectId: z8.string().describe("Project ID")
1121
+ z9.object({
1122
+ orgId: z9.string().describe("Organization ID"),
1123
+ projectId: z9.string().describe("Project ID")
1071
1124
  }),
1072
1125
  (params) => call(
1073
1126
  cloud.orgs[":orgId"].projects[":projectId"]["github-repos"].$get({
@@ -1076,11 +1129,11 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1076
1129
  )
1077
1130
  ),
1078
1131
  linkRepo: withSchema(
1079
- z8.object({
1080
- orgId: z8.string().describe("Organization ID"),
1081
- projectId: z8.string().describe("Project ID"),
1082
- installationId: z8.string().describe("github_installations.id (UUID)"),
1083
- repoFullName: z8.string().describe('GitHub repo "owner/name"')
1132
+ z9.object({
1133
+ orgId: z9.string().describe("Organization ID"),
1134
+ projectId: z9.string().describe("Project ID"),
1135
+ installationId: z9.string().describe("github_installations.id (UUID)"),
1136
+ repoFullName: z9.string().describe('GitHub repo "owner/name"')
1084
1137
  }),
1085
1138
  (params) => {
1086
1139
  const { orgId, projectId, ...body } = params;
@@ -1093,10 +1146,10 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1093
1146
  }
1094
1147
  ),
1095
1148
  unlinkRepo: withSchema(
1096
- z8.object({
1097
- orgId: z8.string().describe("Organization ID"),
1098
- projectId: z8.string().describe("Project ID"),
1099
- id: z8.string().describe("project_github_repos.id (UUID) \u2014 returned by linkRepo")
1149
+ z9.object({
1150
+ orgId: z9.string().describe("Organization ID"),
1151
+ projectId: z9.string().describe("Project ID"),
1152
+ id: z9.string().describe("project_github_repos.id (UUID) \u2014 returned by linkRepo")
1100
1153
  }),
1101
1154
  (params) => call(
1102
1155
  cloud.orgs[":orgId"].projects[":projectId"]["github-repos"][":id"].$delete({
@@ -1108,8 +1161,35 @@ function createGithubClient(cloud, _baseUrl, _hcOpts) {
1108
1161
  };
1109
1162
  }
1110
1163
 
1164
+ // src/blueprints.ts
1165
+ import { z as z10 } from "zod";
1166
+ var SpinInputSchema = z10.object({
1167
+ orgId: z10.string().describe("Organization slug"),
1168
+ blueprint: z10.string().describe("First-party blueprint name (e.g. k8s-fleet)"),
1169
+ substrate: z10.enum(["bare-tf", "tfc", "atmos"]).optional(),
1170
+ repo: z10.string().optional().describe("owner/repo to open the spin PR into (omit when createRepo is set)"),
1171
+ prBase: z10.string().optional(),
1172
+ githubToken: z10.string().optional(),
1173
+ createRepo: z10.object({ name: z10.string(), private: z10.boolean().optional() }).optional().describe("Cloud opt-in: auto-create the target GitHub repo before spinning"),
1174
+ 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"),
1175
+ vars: z10.record(z10.string()).default({})
1176
+ });
1177
+ function createBlueprintsClient(cloud) {
1178
+ return {
1179
+ list: () => call(cloud.blueprints.$get()),
1180
+ get: withSchema(
1181
+ z10.object({ name: z10.string().describe("Blueprint name") }),
1182
+ (params) => call(cloud.blueprints[":name"].$get({ param: params }))
1183
+ ),
1184
+ spin: withSchema(SpinInputSchema, (params) => {
1185
+ const { orgId, ...body } = params;
1186
+ return call(cloud.orgs[":orgId"].spin.$post({ param: { orgId }, json: body }));
1187
+ })
1188
+ };
1189
+ }
1190
+
1111
1191
  // src/export.ts
1112
- import { z as z9 } from "zod";
1192
+ import { z as z11 } from "zod";
1113
1193
  var SERVER_FIELDS = /* @__PURE__ */ new Set(["id", "projectId", "envId", "createdAt", "updatedAt"]);
1114
1194
  function stripServerFields(row) {
1115
1195
  const out = {};
@@ -1120,10 +1200,10 @@ function stripServerFields(row) {
1120
1200
  }
1121
1201
  function createExportCatalogFn(proj, projEnv) {
1122
1202
  return withSchema(
1123
- z9.object({
1124
- orgId: z9.string().describe("Organization slug"),
1125
- projectId: z9.string().describe("Project ID"),
1126
- envName: z9.string().describe("Environment name to export secret declarations from")
1203
+ z11.object({
1204
+ orgId: z11.string().describe("Organization slug"),
1205
+ projectId: z11.string().describe("Project ID"),
1206
+ envName: z11.string().describe("Environment name to export secret declarations from")
1127
1207
  }).describe("Export every catalog kind as a single apply-shaped payload"),
1128
1208
  async (params) => {
1129
1209
  const projClient = proj(params.orgId, params.projectId);
@@ -1162,14 +1242,14 @@ function createExportCatalogFn(proj, projEnv) {
1162
1242
  }
1163
1243
 
1164
1244
  // src/catalog-revisions.ts
1165
- import { z as z10 } from "zod";
1245
+ import { z as z12 } from "zod";
1166
1246
  function createCatalogRevisionsClient(proj) {
1167
1247
  return {
1168
1248
  list: withSchema(
1169
- z10.object({
1170
- orgId: z10.string().describe("Organization slug"),
1171
- projectId: z10.string().describe("Project ID"),
1172
- limit: z10.coerce.number().int().min(1).max(200).optional().describe("Max revisions to return (1-200)")
1249
+ z12.object({
1250
+ orgId: z12.string().describe("Organization slug"),
1251
+ projectId: z12.string().describe("Project ID"),
1252
+ limit: z12.coerce.number().int().min(1).max(200).optional().describe("Max revisions to return (1-200)")
1173
1253
  }),
1174
1254
  (params) => {
1175
1255
  const { orgId, projectId, ...query } = params;
@@ -1179,20 +1259,20 @@ function createCatalogRevisionsClient(proj) {
1179
1259
  }
1180
1260
  ),
1181
1261
  get: withSchema(
1182
- z10.object({
1183
- orgId: z10.string().describe("Organization slug"),
1184
- projectId: z10.string().describe("Project ID"),
1185
- id: z10.string().uuid().describe("Revision ID")
1262
+ z12.object({
1263
+ orgId: z12.string().describe("Organization slug"),
1264
+ projectId: z12.string().describe("Project ID"),
1265
+ id: z12.string().uuid().describe("Revision ID")
1186
1266
  }),
1187
1267
  (params) => call(
1188
1268
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"].$get({ param: { id: params.id } })
1189
1269
  )
1190
1270
  ),
1191
1271
  snapshots: withSchema(
1192
- z10.object({
1193
- orgId: z10.string().describe("Organization slug"),
1194
- projectId: z10.string().describe("Project ID"),
1195
- id: z10.string().uuid().describe("Revision ID to read snapshots for")
1272
+ z12.object({
1273
+ orgId: z12.string().describe("Organization slug"),
1274
+ projectId: z12.string().describe("Project ID"),
1275
+ id: z12.string().uuid().describe("Revision ID to read snapshots for")
1196
1276
  }),
1197
1277
  (params) => call(
1198
1278
  proj(params.orgId, params.projectId)["catalog-revisions"][":id"]["snapshots"].$get({
@@ -1206,12 +1286,12 @@ function createCatalogRevisionsClient(proj) {
1206
1286
  * `force: true`, mirroring POST /apply.
1207
1287
  */
1208
1288
  rollback: withSchema(
1209
- z10.object({
1210
- orgId: z10.string().describe("Organization slug"),
1211
- projectId: z10.string().describe("Project ID"),
1212
- id: z10.string().uuid().describe("Revision ID to roll back to"),
1213
- hunkId: z10.string().uuid().optional().describe("Single-hunk filter"),
1214
- force: z10.boolean().optional().describe("Required if the inverse diff is destructive")
1289
+ z12.object({
1290
+ orgId: z12.string().describe("Organization slug"),
1291
+ projectId: z12.string().describe("Project ID"),
1292
+ id: z12.string().uuid().describe("Revision ID to roll back to"),
1293
+ hunkId: z12.string().uuid().optional().describe("Single-hunk filter"),
1294
+ force: z12.boolean().optional().describe("Required if the inverse diff is destructive")
1215
1295
  }),
1216
1296
  (params) => {
1217
1297
  const { orgId, projectId, id, hunkId, force } = params;
@@ -1228,20 +1308,20 @@ function createCatalogRevisionsClient(proj) {
1228
1308
  }
1229
1309
 
1230
1310
  // src/audit-events.ts
1231
- import { z as z11 } from "zod";
1311
+ import { z as z13 } from "zod";
1232
1312
  function createAuditEventsClient(proj) {
1233
1313
  return {
1234
1314
  list: withSchema(
1235
- z11.object({
1236
- orgId: z11.string().describe("Organization slug"),
1237
- projectId: z11.string().describe("Project ID"),
1238
- envName: z11.string().optional().describe("Filter to a single env"),
1239
- actorType: z11.enum(["user", "token"]).optional().describe("Filter by actor type"),
1240
- actorId: z11.string().optional().describe("Filter by actor (user.id or apikey.id)"),
1241
- action: z11.string().optional().describe('Comma-separated actions (e.g. "create,delete")'),
1242
- resourceKind: z11.string().optional().describe("Filter to one resource kind (Entity | Token | Member | \u2026)"),
1243
- since: z11.string().datetime().optional().describe("ISO timestamp; only events strictly after this are returned"),
1244
- limit: z11.coerce.number().int().min(1).max(500).optional().describe("Max rows (1-500)")
1315
+ z13.object({
1316
+ orgId: z13.string().describe("Organization slug"),
1317
+ projectId: z13.string().describe("Project ID"),
1318
+ envName: z13.string().optional().describe("Filter to a single env"),
1319
+ actorType: z13.enum(["user", "token"]).optional().describe("Filter by actor type"),
1320
+ actorId: z13.string().optional().describe("Filter by actor (user.id or apikey.id)"),
1321
+ action: z13.string().optional().describe('Comma-separated actions (e.g. "create,delete")'),
1322
+ resourceKind: z13.string().optional().describe("Filter to one resource kind (Entity | Token | Member | \u2026)"),
1323
+ since: z13.string().datetime().optional().describe("ISO timestamp; only events strictly after this are returned"),
1324
+ limit: z13.coerce.number().int().min(1).max(500).optional().describe("Max rows (1-500)")
1245
1325
  }).describe("List audit events for a project \u2014 auditor-friendly read-only feed"),
1246
1326
  (params) => {
1247
1327
  const { orgId, projectId, ...query } = params;
@@ -1252,21 +1332,21 @@ function createAuditEventsClient(proj) {
1252
1332
  }
1253
1333
 
1254
1334
  // src/environments.ts
1255
- import { z as z12 } from "zod";
1335
+ import { z as z14 } from "zod";
1256
1336
  function createEnvironmentsClient(proj) {
1257
1337
  return {
1258
1338
  list: withSchema(
1259
- z12.object({
1260
- orgId: z12.string().describe("Organization slug"),
1261
- projectId: z12.string().describe("Project ID")
1339
+ z14.object({
1340
+ orgId: z14.string().describe("Organization slug"),
1341
+ projectId: z14.string().describe("Project ID")
1262
1342
  }),
1263
1343
  (params) => call(proj(params.orgId, params.projectId)["environments"].$get())
1264
1344
  ),
1265
1345
  create: withSchema(
1266
- z12.object({
1267
- orgId: z12.string().describe("Organization slug"),
1268
- projectId: z12.string().describe("Project ID"),
1269
- name: z12.string().min(1).max(31).regex(/^[a-z0-9][a-z0-9-]{0,30}$/).describe("Environment name (lowercase letters, digits, hyphens; max 31 chars)")
1346
+ z14.object({
1347
+ orgId: z14.string().describe("Organization slug"),
1348
+ projectId: z14.string().describe("Project ID"),
1349
+ 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)")
1270
1350
  }),
1271
1351
  (params) => {
1272
1352
  const { orgId, projectId, name } = params;
@@ -1274,10 +1354,10 @@ function createEnvironmentsClient(proj) {
1274
1354
  }
1275
1355
  ),
1276
1356
  delete: withSchema(
1277
- z12.object({
1278
- orgId: z12.string().describe("Organization slug"),
1279
- projectId: z12.string().describe("Project ID"),
1280
- name: z12.string().describe("Environment name")
1357
+ z14.object({
1358
+ orgId: z14.string().describe("Organization slug"),
1359
+ projectId: z14.string().describe("Project ID"),
1360
+ name: z14.string().describe("Environment name")
1281
1361
  }),
1282
1362
  (params) => call(
1283
1363
  proj(params.orgId, params.projectId)["environments"][":envName"].$delete({
@@ -1289,19 +1369,19 @@ function createEnvironmentsClient(proj) {
1289
1369
  }
1290
1370
 
1291
1371
  // src/drift-events.ts
1292
- import { z as z13 } from "zod";
1372
+ import { z as z15 } from "zod";
1293
1373
  function createDriftEventsClient(projEnv) {
1294
1374
  return {
1295
1375
  list: withSchema(
1296
- z13.object({
1297
- orgId: z13.string().describe("Organization slug"),
1298
- projectId: z13.string().describe("Project ID"),
1299
- envName: z13.string().describe("Environment name"),
1300
- status: z13.enum(["open", "accepted", "reapplied", "snoozed"]).optional(),
1301
- kind: z13.string().optional().describe("Filter by entity type name"),
1302
- entityId: z13.string().uuid().optional(),
1303
- since: z13.string().optional().describe("ISO timestamp lower bound on detectedAt"),
1304
- limit: z13.coerce.number().int().min(1).max(500).optional()
1376
+ z15.object({
1377
+ orgId: z15.string().describe("Organization slug"),
1378
+ projectId: z15.string().describe("Project ID"),
1379
+ envName: z15.string().describe("Environment name"),
1380
+ status: z15.enum(["open", "accepted", "reapplied", "snoozed"]).optional(),
1381
+ kind: z15.string().optional().describe("Filter by entity type name"),
1382
+ entityId: z15.string().uuid().optional(),
1383
+ since: z15.string().optional().describe("ISO timestamp lower bound on detectedAt"),
1384
+ limit: z15.coerce.number().int().min(1).max(500).optional()
1305
1385
  }),
1306
1386
  (params) => {
1307
1387
  const { orgId, projectId, envName, ...query } = params;
@@ -1311,19 +1391,19 @@ function createDriftEventsClient(projEnv) {
1311
1391
  }
1312
1392
  ),
1313
1393
  count: withSchema(
1314
- z13.object({
1315
- orgId: z13.string().describe("Organization slug"),
1316
- projectId: z13.string().describe("Project ID"),
1317
- envName: z13.string().describe("Environment name")
1394
+ z15.object({
1395
+ orgId: z15.string().describe("Organization slug"),
1396
+ projectId: z15.string().describe("Project ID"),
1397
+ envName: z15.string().describe("Environment name")
1318
1398
  }),
1319
1399
  (params) => call(projEnv(params.orgId, params.projectId, params.envName)["drift-events"].count.$get())
1320
1400
  ),
1321
1401
  get: withSchema(
1322
- z13.object({
1323
- orgId: z13.string().describe("Organization slug"),
1324
- projectId: z13.string().describe("Project ID"),
1325
- envName: z13.string().describe("Environment name"),
1326
- id: z13.string().uuid()
1402
+ z15.object({
1403
+ orgId: z15.string().describe("Organization slug"),
1404
+ projectId: z15.string().describe("Project ID"),
1405
+ envName: z15.string().describe("Environment name"),
1406
+ id: z15.string().uuid()
1327
1407
  }),
1328
1408
  (params) => call(
1329
1409
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].$get({
@@ -1332,11 +1412,11 @@ function createDriftEventsClient(projEnv) {
1332
1412
  )
1333
1413
  ),
1334
1414
  accept: withSchema(
1335
- z13.object({
1336
- orgId: z13.string().describe("Organization slug"),
1337
- projectId: z13.string().describe("Project ID"),
1338
- envName: z13.string().describe("Environment name"),
1339
- id: z13.string().uuid()
1415
+ z15.object({
1416
+ orgId: z15.string().describe("Organization slug"),
1417
+ projectId: z15.string().describe("Project ID"),
1418
+ envName: z15.string().describe("Environment name"),
1419
+ id: z15.string().uuid()
1340
1420
  }),
1341
1421
  (params) => call(
1342
1422
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].accept.$post({
@@ -1345,11 +1425,11 @@ function createDriftEventsClient(projEnv) {
1345
1425
  )
1346
1426
  ),
1347
1427
  reapply: withSchema(
1348
- z13.object({
1349
- orgId: z13.string().describe("Organization slug"),
1350
- projectId: z13.string().describe("Project ID"),
1351
- envName: z13.string().describe("Environment name"),
1352
- id: z13.string().uuid()
1428
+ z15.object({
1429
+ orgId: z15.string().describe("Organization slug"),
1430
+ projectId: z15.string().describe("Project ID"),
1431
+ envName: z15.string().describe("Environment name"),
1432
+ id: z15.string().uuid()
1353
1433
  }),
1354
1434
  (params) => call(
1355
1435
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].reapply.$post({
@@ -1358,12 +1438,12 @@ function createDriftEventsClient(projEnv) {
1358
1438
  )
1359
1439
  ),
1360
1440
  snooze: withSchema(
1361
- z13.object({
1362
- orgId: z13.string().describe("Organization slug"),
1363
- projectId: z13.string().describe("Project ID"),
1364
- envName: z13.string().describe("Environment name"),
1365
- id: z13.string().uuid(),
1366
- untilSeconds: z13.number().int().positive().optional()
1441
+ z15.object({
1442
+ orgId: z15.string().describe("Organization slug"),
1443
+ projectId: z15.string().describe("Project ID"),
1444
+ envName: z15.string().describe("Environment name"),
1445
+ id: z15.string().uuid(),
1446
+ untilSeconds: z15.number().int().positive().optional()
1367
1447
  }),
1368
1448
  (params) => call(
1369
1449
  projEnv(params.orgId, params.projectId, params.envName)["drift-events"][":id"].snooze.$post({
@@ -1376,15 +1456,15 @@ function createDriftEventsClient(projEnv) {
1376
1456
  }
1377
1457
 
1378
1458
  // src/stats.ts
1379
- import { z as z14 } from "zod";
1380
- var WindowSchema = z14.enum(["1h", "24h", "7d"]).optional().describe("Time window \u2014 default 24h");
1381
- var BucketSchema = z14.enum(["1m", "5m", "1h", "1d"]).optional().describe("Bucket granularity \u2014 default 1h");
1459
+ import { z as z16 } from "zod";
1460
+ var WindowSchema = z16.enum(["1h", "24h", "7d"]).optional().describe("Time window \u2014 default 24h");
1461
+ var BucketSchema = z16.enum(["1m", "5m", "1h", "1d"]).optional().describe("Bucket granularity \u2014 default 1h");
1382
1462
  function createStatsClient(proj) {
1383
1463
  return {
1384
1464
  entitiesByState: withSchema(
1385
- z14.object({
1386
- orgId: z14.string().describe("Organization slug"),
1387
- projectId: z14.string().describe("Project ID"),
1465
+ z16.object({
1466
+ orgId: z16.string().describe("Organization slug"),
1467
+ projectId: z16.string().describe("Project ID"),
1388
1468
  window: WindowSchema,
1389
1469
  bucket: BucketSchema
1390
1470
  }),
@@ -1394,9 +1474,9 @@ function createStatsClient(proj) {
1394
1474
  }
1395
1475
  ),
1396
1476
  runsByType: withSchema(
1397
- z14.object({
1398
- orgId: z14.string().describe("Organization slug"),
1399
- projectId: z14.string().describe("Project ID"),
1477
+ z16.object({
1478
+ orgId: z16.string().describe("Organization slug"),
1479
+ projectId: z16.string().describe("Project ID"),
1400
1480
  window: WindowSchema
1401
1481
  }),
1402
1482
  (params) => {
@@ -1405,9 +1485,9 @@ function createStatsClient(proj) {
1405
1485
  }
1406
1486
  ),
1407
1487
  failingKinds: withSchema(
1408
- z14.object({
1409
- orgId: z14.string().describe("Organization slug"),
1410
- projectId: z14.string().describe("Project ID"),
1488
+ z16.object({
1489
+ orgId: z16.string().describe("Organization slug"),
1490
+ projectId: z16.string().describe("Project ID"),
1411
1491
  window: WindowSchema
1412
1492
  }),
1413
1493
  (params) => {
@@ -1416,10 +1496,10 @@ function createStatsClient(proj) {
1416
1496
  }
1417
1497
  ),
1418
1498
  driftDensity: withSchema(
1419
- z14.object({
1420
- orgId: z14.string().describe("Organization slug"),
1421
- projectId: z14.string().describe("Project ID"),
1422
- dim: z14.string().optional().describe('Dimensions to bucket \u2014 e.g. "kind,cell"')
1499
+ z16.object({
1500
+ orgId: z16.string().describe("Organization slug"),
1501
+ projectId: z16.string().describe("Project ID"),
1502
+ dim: z16.string().optional().describe('Dimensions to bucket \u2014 e.g. "kind,cell"')
1423
1503
  }),
1424
1504
  (params) => {
1425
1505
  const { orgId, projectId, ...query } = params;
@@ -1430,32 +1510,32 @@ function createStatsClient(proj) {
1430
1510
  }
1431
1511
 
1432
1512
  // src/graph-views.ts
1433
- import { z as z15 } from "zod";
1434
- var ViewConfigSchema = z15.unknown();
1435
- var PinnedPositionsSchema = z15.record(z15.string(), z15.object({ x: z15.number(), y: z15.number() })).nullable();
1513
+ import { z as z17 } from "zod";
1514
+ var ViewConfigSchema = z17.unknown();
1515
+ var PinnedPositionsSchema = z17.record(z17.string(), z17.object({ x: z17.number(), y: z17.number() })).nullable();
1436
1516
  function createGraphViewsClient(proj) {
1437
1517
  return {
1438
1518
  list: withSchema(
1439
- z15.object({
1440
- orgId: z15.string().describe("Organization slug"),
1441
- projectId: z15.string().describe("Project ID")
1519
+ z17.object({
1520
+ orgId: z17.string().describe("Organization slug"),
1521
+ projectId: z17.string().describe("Project ID")
1442
1522
  }),
1443
1523
  (params) => call(proj(params.orgId, params.projectId)["graph-views"].$get())
1444
1524
  ),
1445
1525
  get: withSchema(
1446
- z15.object({
1447
- orgId: z15.string().describe("Organization slug"),
1448
- projectId: z15.string().describe("Project ID"),
1449
- id: z15.string().describe("View id")
1526
+ z17.object({
1527
+ orgId: z17.string().describe("Organization slug"),
1528
+ projectId: z17.string().describe("Project ID"),
1529
+ id: z17.string().describe("View id")
1450
1530
  }),
1451
1531
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$get({ param: { id: params.id } }))
1452
1532
  ),
1453
1533
  create: withSchema(
1454
- z15.object({
1455
- orgId: z15.string().describe("Organization slug"),
1456
- projectId: z15.string().describe("Project ID"),
1457
- name: z15.string().describe("View name"),
1458
- scope: z15.enum(["user", "project"]).describe("Personal or project scope"),
1534
+ z17.object({
1535
+ orgId: z17.string().describe("Organization slug"),
1536
+ projectId: z17.string().describe("Project ID"),
1537
+ name: z17.string().describe("View name"),
1538
+ scope: z17.enum(["user", "project"]).describe("Personal or project scope"),
1459
1539
  config: ViewConfigSchema.describe("ViewConfig JSON"),
1460
1540
  pinnedPositions: PinnedPositionsSchema.optional().describe("Pinned node positions")
1461
1541
  }),
@@ -1465,11 +1545,11 @@ function createGraphViewsClient(proj) {
1465
1545
  }
1466
1546
  ),
1467
1547
  update: withSchema(
1468
- z15.object({
1469
- orgId: z15.string().describe("Organization slug"),
1470
- projectId: z15.string().describe("Project ID"),
1471
- id: z15.string().describe("View id"),
1472
- name: z15.string().optional().describe("New name"),
1548
+ z17.object({
1549
+ orgId: z17.string().describe("Organization slug"),
1550
+ projectId: z17.string().describe("Project ID"),
1551
+ id: z17.string().describe("View id"),
1552
+ name: z17.string().optional().describe("New name"),
1473
1553
  config: ViewConfigSchema.optional().describe("Replacement ViewConfig JSON"),
1474
1554
  pinnedPositions: PinnedPositionsSchema.optional().describe("Replacement pinned positions")
1475
1555
  }),
@@ -1481,18 +1561,18 @@ function createGraphViewsClient(proj) {
1481
1561
  }
1482
1562
  ),
1483
1563
  delete: withSchema(
1484
- z15.object({
1485
- orgId: z15.string().describe("Organization slug"),
1486
- projectId: z15.string().describe("Project ID"),
1487
- id: z15.string().describe("View id")
1564
+ z17.object({
1565
+ orgId: z17.string().describe("Organization slug"),
1566
+ projectId: z17.string().describe("Project ID"),
1567
+ id: z17.string().describe("View id")
1488
1568
  }),
1489
1569
  (params) => call(proj(params.orgId, params.projectId)["graph-views"][":id"].$delete({ param: { id: params.id } }))
1490
1570
  ),
1491
1571
  setDefault: withSchema(
1492
- z15.object({
1493
- orgId: z15.string().describe("Organization slug"),
1494
- projectId: z15.string().describe("Project ID"),
1495
- id: z15.string().describe("View id")
1572
+ z17.object({
1573
+ orgId: z17.string().describe("Organization slug"),
1574
+ projectId: z17.string().describe("Project ID"),
1575
+ id: z17.string().describe("View id")
1496
1576
  }),
1497
1577
  (params) => call(
1498
1578
  proj(params.orgId, params.projectId)["graph-views"][":id"]["default"].$patch({
@@ -1504,15 +1584,15 @@ function createGraphViewsClient(proj) {
1504
1584
  }
1505
1585
 
1506
1586
  // src/notifications.ts
1507
- import { z as z16 } from "zod";
1587
+ import { z as z18 } from "zod";
1508
1588
  import { hc as hc2 } from "hono/client";
1509
1589
  function createNotificationsClient(baseUrl, hcOpts) {
1510
1590
  const c = hc2(`${baseUrl}/notifications`, hcOpts);
1511
1591
  return {
1512
1592
  list: withSchema(
1513
- z16.object({
1514
- limit: z16.coerce.number().int().min(1).max(100).optional(),
1515
- unread: z16.boolean().optional()
1593
+ z18.object({
1594
+ limit: z18.coerce.number().int().min(1).max(100).optional(),
1595
+ unread: z18.boolean().optional()
1516
1596
  }),
1517
1597
  (params) => {
1518
1598
  const query = {};
@@ -1522,18 +1602,18 @@ function createNotificationsClient(baseUrl, hcOpts) {
1522
1602
  }
1523
1603
  ),
1524
1604
  read: withSchema(
1525
- z16.object({ id: z16.string().uuid() }),
1605
+ z18.object({ id: z18.string().uuid() }),
1526
1606
  (params) => call(c[":id"].read.$post({ param: { id: params.id } }))
1527
1607
  ),
1528
1608
  readAll: withSchema(
1529
- z16.object({}),
1609
+ z18.object({}),
1530
1610
  () => call(c["read-all"].$post())
1531
1611
  )
1532
1612
  };
1533
1613
  }
1534
1614
 
1535
1615
  // src/audit-export.ts
1536
- import { z as z17 } from "zod";
1616
+ import { z as z19 } from "zod";
1537
1617
  async function rawRequest(baseUrl, hcOpts, path, init = {}) {
1538
1618
  const fetchImpl = hcOpts?.fetch ?? fetch;
1539
1619
  const rawHeaders = hcOpts?.headers;
@@ -1562,19 +1642,19 @@ function createAuditExportClient(baseUrl, hcOpts) {
1562
1642
  return {
1563
1643
  /** GET /orgs/:orgId/audit-export/config — returns current config or throws 404. */
1564
1644
  getConfig: withSchema(
1565
- z17.object({ orgId: z17.string().describe("Organization ID") }),
1645
+ z19.object({ orgId: z19.string().describe("Organization ID") }),
1566
1646
  async (params) => callRaw(
1567
1647
  await rawRequest(baseUrl, hcOpts, `/orgs/${params.orgId}/audit-export/config`)
1568
1648
  )
1569
1649
  ),
1570
1650
  /** POST /orgs/:orgId/audit-export/config — upsert the S3 export config. */
1571
1651
  setConfig: withSchema(
1572
- z17.object({
1573
- orgId: z17.string().describe("Organization ID"),
1574
- bucket: z17.string().describe("S3 bucket name"),
1575
- region: z17.string().describe("AWS region"),
1576
- roleArn: z17.string().describe("IAM role ARN for assume-role"),
1577
- enabled: z17.boolean().optional().describe("Enable/disable export")
1652
+ z19.object({
1653
+ orgId: z19.string().describe("Organization ID"),
1654
+ bucket: z19.string().describe("S3 bucket name"),
1655
+ region: z19.string().describe("AWS region"),
1656
+ roleArn: z19.string().describe("IAM role ARN for assume-role"),
1657
+ enabled: z19.boolean().optional().describe("Enable/disable export")
1578
1658
  }),
1579
1659
  async (params) => {
1580
1660
  const { orgId, ...body } = params;
@@ -1589,11 +1669,11 @@ function createAuditExportClient(baseUrl, hcOpts) {
1589
1669
  ),
1590
1670
  /** POST /orgs/:orgId/audit-export/test-connection — dry-run write+delete. */
1591
1671
  testConnection: withSchema(
1592
- z17.object({
1593
- orgId: z17.string().describe("Organization ID"),
1594
- bucket: z17.string().describe("S3 bucket name"),
1595
- region: z17.string().describe("AWS region"),
1596
- roleArn: z17.string().describe("IAM role ARN for assume-role")
1672
+ z19.object({
1673
+ orgId: z19.string().describe("Organization ID"),
1674
+ bucket: z19.string().describe("S3 bucket name"),
1675
+ region: z19.string().describe("AWS region"),
1676
+ roleArn: z19.string().describe("IAM role ARN for assume-role")
1597
1677
  }),
1598
1678
  async (params) => {
1599
1679
  const { orgId, ...body } = params;
@@ -1608,9 +1688,9 @@ function createAuditExportClient(baseUrl, hcOpts) {
1608
1688
  ),
1609
1689
  /** GET /orgs/:orgId/audit-export/runs — recent batch run history. */
1610
1690
  listRuns: withSchema(
1611
- z17.object({
1612
- orgId: z17.string().describe("Organization ID"),
1613
- limit: z17.number().optional().describe("Max results (default 20, max 100)")
1691
+ z19.object({
1692
+ orgId: z19.string().describe("Organization ID"),
1693
+ limit: z19.number().optional().describe("Max results (default 20, max 100)")
1614
1694
  }),
1615
1695
  async (params) => {
1616
1696
  const qs = params.limit ? `?limit=${params.limit}` : "";
@@ -1646,33 +1726,33 @@ function createUserPreferencesClient(baseUrl, hcOpts) {
1646
1726
  }
1647
1727
 
1648
1728
  // src/import-sources.ts
1649
- import { z as z18 } from "zod";
1650
- var SourceKindEnum = z18.enum(["tf-state", "atmos-manifests"]);
1651
- var PolicyEnum = z18.enum(["auto-update", "human-approval"]);
1729
+ import { z as z20 } from "zod";
1730
+ var SourceKindEnum = z20.enum(["tf-state", "atmos-manifests"]);
1731
+ var PolicyEnum = z20.enum(["auto-update", "human-approval"]);
1652
1732
  function createImportSourcesClient(proj) {
1653
1733
  return {
1654
1734
  list: withSchema(
1655
- z18.object({
1656
- orgId: z18.string().describe("Organization slug"),
1657
- projectId: z18.string().describe("Project ID")
1735
+ z20.object({
1736
+ orgId: z20.string().describe("Organization slug"),
1737
+ projectId: z20.string().describe("Project ID")
1658
1738
  }),
1659
1739
  (params) => call(proj(params.orgId, params.projectId)["import-sources"].$get())
1660
1740
  ),
1661
1741
  get: withSchema(
1662
- z18.object({
1663
- orgId: z18.string().describe("Organization slug"),
1664
- projectId: z18.string().describe("Project ID"),
1665
- id: z18.string().uuid().describe("ImportSource ID")
1742
+ z20.object({
1743
+ orgId: z20.string().describe("Organization slug"),
1744
+ projectId: z20.string().describe("Project ID"),
1745
+ id: z20.string().uuid().describe("ImportSource ID")
1666
1746
  }),
1667
1747
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].$get({ param: { id: params.id } }))
1668
1748
  ),
1669
1749
  registerOrUpdate: withSchema(
1670
- z18.object({
1671
- orgId: z18.string().describe("Organization slug"),
1672
- projectId: z18.string().describe("Project ID"),
1673
- envName: z18.string().describe("Env name the source belongs to"),
1750
+ z20.object({
1751
+ orgId: z20.string().describe("Organization slug"),
1752
+ projectId: z20.string().describe("Project ID"),
1753
+ envName: z20.string().describe("Env name the source belongs to"),
1674
1754
  sourceKind: SourceKindEnum,
1675
- sourceUri: z18.string().describe("Stable URI identifying the source"),
1755
+ sourceUri: z20.string().describe("Stable URI identifying the source"),
1676
1756
  reconciliationPolicy: PolicyEnum.optional()
1677
1757
  }),
1678
1758
  (params) => {
@@ -1681,13 +1761,13 @@ function createImportSourcesClient(proj) {
1681
1761
  }
1682
1762
  ),
1683
1763
  rescan: withSchema(
1684
- z18.object({
1685
- orgId: z18.string().describe("Organization slug"),
1686
- projectId: z18.string().describe("Project ID"),
1687
- id: z18.string().uuid(),
1688
- envName: z18.string(),
1689
- items: z18.array(z18.unknown()),
1690
- deletions: z18.array(z18.object({ kind: z18.string(), name: z18.string() })).optional()
1764
+ z20.object({
1765
+ orgId: z20.string().describe("Organization slug"),
1766
+ projectId: z20.string().describe("Project ID"),
1767
+ id: z20.string().uuid(),
1768
+ envName: z20.string(),
1769
+ items: z20.array(z20.unknown()),
1770
+ deletions: z20.array(z20.object({ kind: z20.string(), name: z20.string() })).optional()
1691
1771
  }),
1692
1772
  (params) => {
1693
1773
  const { orgId, projectId, id, ...body } = params;
@@ -1703,19 +1783,19 @@ function createImportSourcesClient(proj) {
1703
1783
  }
1704
1784
  ),
1705
1785
  drift: withSchema(
1706
- z18.object({
1707
- orgId: z18.string().describe("Organization slug"),
1708
- projectId: z18.string().describe("Project ID"),
1709
- id: z18.string().uuid()
1786
+ z20.object({
1787
+ orgId: z20.string().describe("Organization slug"),
1788
+ projectId: z20.string().describe("Project ID"),
1789
+ id: z20.string().uuid()
1710
1790
  }),
1711
1791
  (params) => call(proj(params.orgId, params.projectId)["import-sources"][":id"].drift.$get({ param: { id: params.id } }))
1712
1792
  ),
1713
1793
  approveProposal: withSchema(
1714
- z18.object({
1715
- orgId: z18.string().describe("Organization slug"),
1716
- projectId: z18.string().describe("Project ID"),
1717
- id: z18.string().uuid(),
1718
- proposalId: z18.string().uuid()
1794
+ z20.object({
1795
+ orgId: z20.string().describe("Organization slug"),
1796
+ projectId: z20.string().describe("Project ID"),
1797
+ id: z20.string().uuid(),
1798
+ proposalId: z20.string().uuid()
1719
1799
  }),
1720
1800
  (params) => call(
1721
1801
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].approve.$post({
@@ -1724,11 +1804,11 @@ function createImportSourcesClient(proj) {
1724
1804
  )
1725
1805
  ),
1726
1806
  rejectProposal: withSchema(
1727
- z18.object({
1728
- orgId: z18.string().describe("Organization slug"),
1729
- projectId: z18.string().describe("Project ID"),
1730
- id: z18.string().uuid(),
1731
- proposalId: z18.string().uuid()
1807
+ z20.object({
1808
+ orgId: z20.string().describe("Organization slug"),
1809
+ projectId: z20.string().describe("Project ID"),
1810
+ id: z20.string().uuid(),
1811
+ proposalId: z20.string().uuid()
1732
1812
  }),
1733
1813
  (params) => call(
1734
1814
  proj(params.orgId, params.projectId)["import-sources"][":id"]["drift-proposals"][":proposalId"].reject.$post({
@@ -1740,7 +1820,7 @@ function createImportSourcesClient(proj) {
1740
1820
  }
1741
1821
 
1742
1822
  // src/admin.ts
1743
- import { z as z19 } from "zod";
1823
+ import { z as z21 } from "zod";
1744
1824
  async function rawRequest2(baseUrl, hcOpts, path, init = {}) {
1745
1825
  const fetchImpl = hcOpts?.fetch ?? fetch;
1746
1826
  const rawHeaders = hcOpts?.headers;
@@ -1773,14 +1853,14 @@ function createAdminClient(baseUrl, hcOpts) {
1773
1853
  * List super-admin audit events with optional filters.
1774
1854
  */
1775
1855
  list: withSchema(
1776
- z19.object({
1777
- actor: z19.string().optional().describe("Filter by actor user ID"),
1778
- action: z19.string().optional().describe("Filter by action name"),
1779
- resourceKind: z19.string().optional().describe("Filter by resource kind"),
1780
- since: z19.string().optional().describe("ISO 8601 datetime lower bound"),
1781
- until: z19.string().optional().describe("ISO 8601 datetime upper bound"),
1782
- limit: z19.coerce.number().int().min(1).max(200).optional().describe("Max results (1-200)"),
1783
- offset: z19.coerce.number().int().min(0).optional().describe("Pagination offset")
1856
+ z21.object({
1857
+ actor: z21.string().optional().describe("Filter by actor user ID"),
1858
+ action: z21.string().optional().describe("Filter by action name"),
1859
+ resourceKind: z21.string().optional().describe("Filter by resource kind"),
1860
+ since: z21.string().optional().describe("ISO 8601 datetime lower bound"),
1861
+ until: z21.string().optional().describe("ISO 8601 datetime upper bound"),
1862
+ limit: z21.coerce.number().int().min(1).max(200).optional().describe("Max results (1-200)"),
1863
+ offset: z21.coerce.number().int().min(0).optional().describe("Pagination offset")
1784
1864
  }),
1785
1865
  async (params) => {
1786
1866
  const qs = new URLSearchParams();
@@ -1804,7 +1884,7 @@ function createAdminClient(baseUrl, hcOpts) {
1804
1884
  * List all organizations across tenants with member + project counts.
1805
1885
  */
1806
1886
  list: withSchema(
1807
- z19.object({}),
1887
+ z21.object({}),
1808
1888
  async () => callRaw2(
1809
1889
  await rawRequest2(baseUrl, hcOpts, "/admin/orgs")
1810
1890
  )
@@ -1814,7 +1894,7 @@ function createAdminClient(baseUrl, hcOpts) {
1814
1894
  * Detail view: org fields + member list + project list.
1815
1895
  */
1816
1896
  get: withSchema(
1817
- z19.object({ id: z19.string().describe("Organization ID") }),
1897
+ z21.object({ id: z21.string().describe("Organization ID") }),
1818
1898
  async (params) => callRaw2(
1819
1899
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}`)
1820
1900
  )
@@ -1824,7 +1904,7 @@ function createAdminClient(baseUrl, hcOpts) {
1824
1904
  * Set suspended_at = now(). Idempotent.
1825
1905
  */
1826
1906
  suspend: withSchema(
1827
- z19.object({ id: z19.string().describe("Organization ID") }),
1907
+ z21.object({ id: z21.string().describe("Organization ID") }),
1828
1908
  async (params) => callRaw2(
1829
1909
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/suspend`, {
1830
1910
  method: "POST"
@@ -1836,7 +1916,7 @@ function createAdminClient(baseUrl, hcOpts) {
1836
1916
  * Clear suspended_at.
1837
1917
  */
1838
1918
  unsuspend: withSchema(
1839
- z19.object({ id: z19.string().describe("Organization ID") }),
1919
+ z21.object({ id: z21.string().describe("Organization ID") }),
1840
1920
  async (params) => callRaw2(
1841
1921
  await rawRequest2(baseUrl, hcOpts, `/admin/orgs/${params.id}/unsuspend`, {
1842
1922
  method: "POST"
@@ -1852,7 +1932,7 @@ function createAdminClient(baseUrl, hcOpts) {
1852
1932
  * api tokens, and environments. Idempotent. Super-admin only.
1853
1933
  */
1854
1934
  nuke: withSchema(
1855
- z19.object({ projectId: z19.string().describe("Project ID to nuke") }),
1935
+ z21.object({ projectId: z21.string().describe("Project ID to nuke") }),
1856
1936
  async (params) => callRaw2(
1857
1937
  await rawRequest2(
1858
1938
  baseUrl,
@@ -1870,7 +1950,7 @@ function createAdminClient(baseUrl, hcOpts) {
1870
1950
  * all derived from single-table COUNT queries.
1871
1951
  */
1872
1952
  overview: withSchema(
1873
- z19.object({}),
1953
+ z21.object({}),
1874
1954
  async () => callRaw2(
1875
1955
  await rawRequest2(baseUrl, hcOpts, "/admin/metrics/overview")
1876
1956
  )
@@ -1885,7 +1965,7 @@ function createAdminClient(baseUrl, hcOpts) {
1885
1965
  * Requires super-admin.
1886
1966
  */
1887
1967
  list: withSchema(
1888
- z19.object({}),
1968
+ z21.object({}),
1889
1969
  async () => callRaw2(
1890
1970
  await rawRequest2(
1891
1971
  baseUrl,
@@ -1915,8 +1995,10 @@ var createClient = (baseUrl, options = {}) => {
1915
1995
  orgs: createOrgsClient(cloud, baseUrl, hcOpts),
1916
1996
  projects: createProjectsClient(cloud, baseUrl, hcOpts),
1917
1997
  github: createGithubClient(cloud, baseUrl, hcOpts),
1998
+ blueprints: createBlueprintsClient(cloud),
1918
1999
  environments: createEnvironmentsClient(proj),
1919
2000
  entityTypes: createEntityTypesClient(proj),
2001
+ deploymentTargets: createDeploymentTargetsClient(proj),
1920
2002
  entities: createEntitiesClient(projEnv),
1921
2003
  cells,
1922
2004
  relationshipTypes: createRelationshipTypesClient(proj),