@stack-spot/portal-network 0.109.0 → 0.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,47 +24,6 @@ export type MetadataResource = {
24
24
  tags?: NameValuePairResource[];
25
25
  labels?: NameValuePairResource[];
26
26
  };
27
- export type RuntimeTenantResource = {
28
- name: string;
29
- id: string;
30
- kubeVersion: string;
31
- status: string;
32
- tags?: NameValuePairResource[];
33
- labels?: NameValuePairResource[];
34
- };
35
- export type ControlPlaneStatusResource = {
36
- health: string;
37
- control: string;
38
- };
39
- export type AddonResource = {
40
- name: string;
41
- };
42
- export type ControlPlaneResource = {
43
- id: string;
44
- version: string;
45
- status: ControlPlaneStatusResource;
46
- addons: AddonResource[];
47
- };
48
- export type TenantStatusResource = {
49
- runtimes?: RuntimeTenantResource[];
50
- controlPlane?: ControlPlaneResource[];
51
- };
52
- export type TenantResource = {
53
- apiVersion: string;
54
- kind: string;
55
- metadata: MetadataResource;
56
- status: TenantStatusResource;
57
- };
58
- export type ValidationDetail = {
59
- code: string;
60
- values: string[];
61
- };
62
- export type ErrorBody = {
63
- code: string;
64
- details: string;
65
- status: string;
66
- validationDetails?: ValidationDetail[];
67
- };
68
27
  export type FromRef = {
69
28
  id: string;
70
29
  };
@@ -124,6 +83,15 @@ export type SeleneApps = {
124
83
  manager: SeleneApp;
125
84
  platformGatewayUrl?: string;
126
85
  };
86
+ export type Karpenter = {
87
+ instanceProfile: string;
88
+ securityGroupId: string;
89
+ replicas: number;
90
+ additionalLabels: {
91
+ [key: string]: string;
92
+ };
93
+ volumeSize: number;
94
+ };
127
95
  export type ControlPlane = {
128
96
  addons: Addon[];
129
97
  instanceTypes: string[];
@@ -134,17 +102,54 @@ export type ControlPlane = {
134
102
  eksHelm?: HelmResource;
135
103
  seleneHelm?: HelmResource;
136
104
  seleneApps?: SeleneApps;
105
+ karpenter?: Karpenter;
137
106
  };
138
107
  export type TenantSpecResource = {
139
108
  organizationId: string;
140
109
  cloudAccountConfiguration: CloudAccountConfiguration;
141
110
  controlPlane: ControlPlane;
142
111
  };
143
- export type TenantDefinitionResource = {
112
+ export type RuntimeTenantResource = {
113
+ name: string;
114
+ id: string;
115
+ kubeVersion: string;
116
+ status: string;
117
+ tags?: NameValuePairResource[];
118
+ labels?: NameValuePairResource[];
119
+ };
120
+ export type ControlPlaneStatusResource = {
121
+ health: string;
122
+ control: string;
123
+ };
124
+ export type AddonResource = {
125
+ name: string;
126
+ };
127
+ export type ControlPlaneResource = {
128
+ id: string;
129
+ version: string;
130
+ status: ControlPlaneStatusResource;
131
+ addons: AddonResource[];
132
+ };
133
+ export type TenantStatusResource = {
134
+ runtimes?: RuntimeTenantResource[];
135
+ controlPlane?: ControlPlaneResource[];
136
+ };
137
+ export type TenantResource = {
144
138
  apiVersion: string;
145
139
  kind: string;
146
140
  metadata: MetadataResource;
147
- spec: TenantSpecResource;
141
+ spec?: TenantSpecResource;
142
+ status?: TenantStatusResource;
143
+ };
144
+ export type ValidationDetail = {
145
+ code: string;
146
+ values: string[];
147
+ };
148
+ export type ErrorBody = {
149
+ code: string;
150
+ details: string;
151
+ status: string;
152
+ validationDetails?: ValidationDetail[];
148
153
  };
149
154
  export type ApplicationDeploymentStatusResource = {
150
155
  name?: string;
@@ -199,6 +204,7 @@ export type ControlPlaneWithStatusResource = {
199
204
  export type OrganizationStatusResource = {
200
205
  tenants: TenantWithControlPlaneResource[];
201
206
  controlPlanes: ControlPlaneWithStatusResource[];
207
+ initialized: boolean;
202
208
  };
203
209
  export type OrganizationResource = {
204
210
  apiVersion: string;
@@ -290,7 +296,7 @@ export type HealthResource = {
290
296
  status?: Status;
291
297
  };
292
298
  /**
293
- * Returns paginated tenants.
299
+ * List all tenants in the stackspot account
294
300
  */
295
301
  export function listTenants({ page, perPage }: {
296
302
  page?: number;
@@ -337,8 +343,8 @@ export function listTenants({ page, perPage }: {
337
343
  /**
338
344
  * Creates a new tenant.
339
345
  */
340
- export function createTenant({ tenantDefinitionResource }: {
341
- tenantDefinitionResource: TenantDefinitionResource;
346
+ export function createTenant({ tenantResource }: {
347
+ tenantResource: TenantResource;
342
348
  }, opts?: Oazapfts.RequestOpts) {
343
349
  return oazapfts.ok(oazapfts.fetchJson<{
344
350
  status: 201;
@@ -373,7 +379,7 @@ export function createTenant({ tenantDefinitionResource }: {
373
379
  }>("/v1/tenants", oazapfts.json({
374
380
  ...opts,
375
381
  method: "POST",
376
- body: tenantDefinitionResource
382
+ body: tenantResource
377
383
  })));
378
384
  }
379
385
  /**
@@ -555,22 +561,25 @@ export function createOrganization({ organizationDefinitionResource }: {
555
561
  })));
556
562
  }
557
563
  /**
558
- *
559
- * Requires one of the following permissions:
560
- * - cloud_platform:*:view
561
- * - cloud_platform:*:support
562
- *
564
+ * Returns paginated tenants.
563
565
  */
564
- export function listApplicationDeployments(opts?: Oazapfts.RequestOpts) {
566
+ export function listTenants1({ organizationId, page, perPage }: {
567
+ organizationId: string;
568
+ page?: number;
569
+ perPage?: number;
570
+ }, opts?: Oazapfts.RequestOpts) {
565
571
  return oazapfts.ok(oazapfts.fetchJson<{
566
572
  status: 200;
567
- data: ApplicationDeploymentResource[];
573
+ data: TenantResource[];
568
574
  } | {
569
575
  status: 400;
570
576
  data: ErrorBody;
571
577
  } | {
572
578
  status: 401;
573
579
  data: ErrorBody;
580
+ } | {
581
+ status: 403;
582
+ data: ErrorBody;
574
583
  } | {
575
584
  status: 404;
576
585
  data: ErrorBody;
@@ -590,19 +599,22 @@ export function listApplicationDeployments(opts?: Oazapfts.RequestOpts) {
590
599
  status?: string;
591
600
  validationDetails?: ValidationDetail[];
592
601
  };
593
- }>("/v1/applications/deployments", {
602
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants${QS.query(QS.explode({
603
+ page,
604
+ perPage
605
+ }))}`, {
594
606
  ...opts
595
607
  }));
596
608
  }
597
609
  /**
598
- * Apply manifesto resource yaml.
610
+ * Creates a new tenant.
599
611
  */
600
- export function deploy({ applicationDeploymentResource }: {
601
- applicationDeploymentResource: ApplicationDeploymentResource;
612
+ export function createTenant1({ organizationId, tenantResource }: {
613
+ organizationId: string;
614
+ tenantResource: TenantResource;
602
615
  }, opts?: Oazapfts.RequestOpts) {
603
616
  return oazapfts.ok(oazapfts.fetchJson<{
604
- status: 202;
605
- data: ApplicationDeploymentResource;
617
+ status: 201;
606
618
  } | {
607
619
  status: 400;
608
620
  data: ErrorBody;
@@ -631,20 +643,24 @@ export function deploy({ applicationDeploymentResource }: {
631
643
  status?: string;
632
644
  validationDetails?: ValidationDetail[];
633
645
  };
634
- }>("/v1/applications/deployments", oazapfts.json({
646
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants`, oazapfts.json({
635
647
  ...opts,
636
648
  method: "POST",
637
- body: applicationDeploymentResource
649
+ body: tenantResource
638
650
  })));
639
651
  }
640
652
  /**
641
- * Applies a manifest to the control plane.
653
+ * Returns paginated runtimes.
642
654
  */
643
- export function apply({ manifestResource }: {
644
- manifestResource: ManifestResource;
655
+ export function listRuntimes1({ organizationId, tenantId, page, perPage }: {
656
+ organizationId: string;
657
+ tenantId: string;
658
+ page?: number;
659
+ perPage?: number;
645
660
  }, opts?: Oazapfts.RequestOpts) {
646
661
  return oazapfts.ok(oazapfts.fetchJson<{
647
- status: 202;
662
+ status: 200;
663
+ data: RuntimeResource[];
648
664
  } | {
649
665
  status: 400;
650
666
  data: ErrorBody;
@@ -673,30 +689,78 @@ export function apply({ manifestResource }: {
673
689
  status?: string;
674
690
  validationDetails?: ValidationDetail[];
675
691
  };
676
- }>("/v1/admin/control-plane/apply", oazapfts.json({
692
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes${QS.query(QS.explode({
693
+ page,
694
+ perPage
695
+ }))}`, {
696
+ ...opts
697
+ }));
698
+ }
699
+ /**
700
+ * Creates a new runtime.
701
+ */
702
+ export function createRuntime1({ organizationId, tenantId, runtimeDefinitionResource }: {
703
+ organizationId: string;
704
+ tenantId: string;
705
+ runtimeDefinitionResource: RuntimeDefinitionResource;
706
+ }, opts?: Oazapfts.RequestOpts) {
707
+ return oazapfts.ok(oazapfts.fetchJson<{
708
+ status: 201;
709
+ } | {
710
+ status: 400;
711
+ data: ErrorBody;
712
+ } | {
713
+ status: 401;
714
+ data: ErrorBody;
715
+ } | {
716
+ status: 403;
717
+ data: ErrorBody;
718
+ } | {
719
+ status: 404;
720
+ data: ErrorBody;
721
+ } | {
722
+ status: 422;
723
+ data: {
724
+ code?: string;
725
+ details?: string;
726
+ status?: string;
727
+ validationDetails?: ValidationDetail[];
728
+ };
729
+ } | {
730
+ status: 500;
731
+ data: {
732
+ code?: string;
733
+ details?: string;
734
+ status?: string;
735
+ validationDetails?: ValidationDetail[];
736
+ };
737
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes`, oazapfts.json({
677
738
  ...opts,
678
739
  method: "POST",
679
- body: manifestResource
740
+ body: runtimeDefinitionResource
680
741
  })));
681
742
  }
682
743
  /**
683
- * Retrieves the tenant details.
744
+ *
745
+ * Requires one of the following permissions:
746
+ * - cloud_platform:*:view
747
+ * - cloud_platform:*:support
748
+ *
684
749
  */
685
- export function getTenant({ id }: {
686
- id: string;
750
+ export function listApplicationDeployments({ organizationId, tenantId, runtimeId }: {
751
+ organizationId: string;
752
+ tenantId: string;
753
+ runtimeId: string;
687
754
  }, opts?: Oazapfts.RequestOpts) {
688
755
  return oazapfts.ok(oazapfts.fetchJson<{
689
756
  status: 200;
690
- data: TenantResource;
757
+ data: ApplicationDeploymentResource[];
691
758
  } | {
692
759
  status: 400;
693
760
  data: ErrorBody;
694
761
  } | {
695
762
  status: 401;
696
763
  data: ErrorBody;
697
- } | {
698
- status: 403;
699
- data: ErrorBody;
700
764
  } | {
701
765
  status: 404;
702
766
  data: ErrorBody;
@@ -716,19 +780,22 @@ export function getTenant({ id }: {
716
780
  status?: string;
717
781
  validationDetails?: ValidationDetail[];
718
782
  };
719
- }>(`/v1/tenants/${encodeURIComponent(id)}`, {
783
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, {
720
784
  ...opts
721
785
  }));
722
786
  }
723
787
  /**
724
- * Retrieves the runtime details.
788
+ * Apply manifesto resource yaml.
725
789
  */
726
- export function getRuntime({ id }: {
727
- id: string;
790
+ export function deploy({ organizationId, tenantId, runtimeId, applicationDeploymentResource }: {
791
+ organizationId: string;
792
+ tenantId: string;
793
+ runtimeId: string;
794
+ applicationDeploymentResource: ApplicationDeploymentResource;
728
795
  }, opts?: Oazapfts.RequestOpts) {
729
796
  return oazapfts.ok(oazapfts.fetchJson<{
730
- status: 200;
731
- data: RuntimeResource;
797
+ status: 202;
798
+ data: ApplicationDeploymentResource;
732
799
  } | {
733
800
  status: 400;
734
801
  data: ErrorBody;
@@ -757,19 +824,57 @@ export function getRuntime({ id }: {
757
824
  status?: string;
758
825
  validationDetails?: ValidationDetail[];
759
826
  };
760
- }>(`/v1/runtimes/${encodeURIComponent(id)}`, {
827
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, oazapfts.json({
828
+ ...opts,
829
+ method: "POST",
830
+ body: applicationDeploymentResource
831
+ })));
832
+ }
833
+ /**
834
+ * List application deployments
835
+ */
836
+ export function listApplicationDeployments1(opts?: Oazapfts.RequestOpts) {
837
+ return oazapfts.ok(oazapfts.fetchJson<{
838
+ status: 200;
839
+ data: ApplicationDeploymentResource[];
840
+ } | {
841
+ status: 400;
842
+ data: ErrorBody;
843
+ } | {
844
+ status: 401;
845
+ data: ErrorBody;
846
+ } | {
847
+ status: 404;
848
+ data: ErrorBody;
849
+ } | {
850
+ status: 422;
851
+ data: {
852
+ code?: string;
853
+ details?: string;
854
+ status?: string;
855
+ validationDetails?: ValidationDetail[];
856
+ };
857
+ } | {
858
+ status: 500;
859
+ data: {
860
+ code?: string;
861
+ details?: string;
862
+ status?: string;
863
+ validationDetails?: ValidationDetail[];
864
+ };
865
+ }>("/v1/applications/deployments", {
761
866
  ...opts
762
867
  }));
763
868
  }
764
869
  /**
765
- * Retrieves the organization details.
870
+ * Apply manifesto resource yaml.
766
871
  */
767
- export function downloadBootstrapModule({ version }: {
768
- version?: string;
872
+ export function deploy1({ applicationDeploymentResource }: {
873
+ applicationDeploymentResource: ApplicationDeploymentResource;
769
874
  }, opts?: Oazapfts.RequestOpts) {
770
875
  return oazapfts.ok(oazapfts.fetchJson<{
771
- status: 200;
772
- data: Blob;
876
+ status: 202;
877
+ data: ApplicationDeploymentResource;
773
878
  } | {
774
879
  status: 400;
775
880
  data: ErrorBody;
@@ -798,20 +903,439 @@ export function downloadBootstrapModule({ version }: {
798
903
  status?: string;
799
904
  validationDetails?: ValidationDetail[];
800
905
  };
801
- }>(`/v1/organizations/bootstrap${QS.query(QS.explode({
802
- version
803
- }))}`, {
804
- ...opts
805
- }));
906
+ }>("/v1/applications/deployments", oazapfts.json({
907
+ ...opts,
908
+ method: "POST",
909
+ body: applicationDeploymentResource
910
+ })));
806
911
  }
807
912
  /**
808
- *
809
- * Requires one of the following permissions:
810
- * - cloud_platform:*:view
811
- * - cloud_platform:*:support
812
- *
913
+ * Applies a manifest to the control plane.
914
+ */
915
+ export function apply({ manifestResource }: {
916
+ manifestResource: ManifestResource;
917
+ }, opts?: Oazapfts.RequestOpts) {
918
+ return oazapfts.ok(oazapfts.fetchJson<{
919
+ status: 202;
920
+ } | {
921
+ status: 400;
922
+ data: ErrorBody;
923
+ } | {
924
+ status: 401;
925
+ data: ErrorBody;
926
+ } | {
927
+ status: 403;
928
+ data: ErrorBody;
929
+ } | {
930
+ status: 404;
931
+ data: ErrorBody;
932
+ } | {
933
+ status: 422;
934
+ data: {
935
+ code?: string;
936
+ details?: string;
937
+ status?: string;
938
+ validationDetails?: ValidationDetail[];
939
+ };
940
+ } | {
941
+ status: 500;
942
+ data: {
943
+ code?: string;
944
+ details?: string;
945
+ status?: string;
946
+ validationDetails?: ValidationDetail[];
947
+ };
948
+ }>("/v1/admin/control-plane/apply", oazapfts.json({
949
+ ...opts,
950
+ method: "POST",
951
+ body: manifestResource
952
+ })));
953
+ }
954
+ /**
955
+ * Retrieves the tenant details.
956
+ */
957
+ export function getTenant({ id }: {
958
+ id: string;
959
+ }, opts?: Oazapfts.RequestOpts) {
960
+ return oazapfts.ok(oazapfts.fetchJson<{
961
+ status: 200;
962
+ data: TenantResource;
963
+ } | {
964
+ status: 400;
965
+ data: ErrorBody;
966
+ } | {
967
+ status: 401;
968
+ data: ErrorBody;
969
+ } | {
970
+ status: 403;
971
+ data: ErrorBody;
972
+ } | {
973
+ status: 404;
974
+ data: ErrorBody;
975
+ } | {
976
+ status: 422;
977
+ data: {
978
+ code?: string;
979
+ details?: string;
980
+ status?: string;
981
+ validationDetails?: ValidationDetail[];
982
+ };
983
+ } | {
984
+ status: 500;
985
+ data: {
986
+ code?: string;
987
+ details?: string;
988
+ status?: string;
989
+ validationDetails?: ValidationDetail[];
990
+ };
991
+ }>(`/v1/tenants/${encodeURIComponent(id)}`, {
992
+ ...opts
993
+ }));
994
+ }
995
+ /**
996
+ * Retrieves the runtime details.
997
+ */
998
+ export function getRuntime({ id }: {
999
+ id: string;
1000
+ }, opts?: Oazapfts.RequestOpts) {
1001
+ return oazapfts.ok(oazapfts.fetchJson<{
1002
+ status: 200;
1003
+ data: RuntimeResource;
1004
+ } | {
1005
+ status: 400;
1006
+ data: ErrorBody;
1007
+ } | {
1008
+ status: 401;
1009
+ data: ErrorBody;
1010
+ } | {
1011
+ status: 403;
1012
+ data: ErrorBody;
1013
+ } | {
1014
+ status: 404;
1015
+ data: ErrorBody;
1016
+ } | {
1017
+ status: 422;
1018
+ data: {
1019
+ code?: string;
1020
+ details?: string;
1021
+ status?: string;
1022
+ validationDetails?: ValidationDetail[];
1023
+ };
1024
+ } | {
1025
+ status: 500;
1026
+ data: {
1027
+ code?: string;
1028
+ details?: string;
1029
+ status?: string;
1030
+ validationDetails?: ValidationDetail[];
1031
+ };
1032
+ }>(`/v1/runtimes/${encodeURIComponent(id)}`, {
1033
+ ...opts
1034
+ }));
1035
+ }
1036
+ /**
1037
+ * Retrieves the organization by ID
1038
+ */
1039
+ export function getOrganizationById({ organizationId }: {
1040
+ organizationId: string;
1041
+ }, opts?: Oazapfts.RequestOpts) {
1042
+ return oazapfts.ok(oazapfts.fetchJson<{
1043
+ status: 200;
1044
+ data: OrganizationResource;
1045
+ } | {
1046
+ status: 400;
1047
+ data: ErrorBody;
1048
+ } | {
1049
+ status: 401;
1050
+ data: ErrorBody;
1051
+ } | {
1052
+ status: 403;
1053
+ data: ErrorBody;
1054
+ } | {
1055
+ status: 404;
1056
+ data: ErrorBody;
1057
+ } | {
1058
+ status: 422;
1059
+ data: {
1060
+ code?: string;
1061
+ details?: string;
1062
+ status?: string;
1063
+ validationDetails?: ValidationDetail[];
1064
+ };
1065
+ } | {
1066
+ status: 500;
1067
+ data: {
1068
+ code?: string;
1069
+ details?: string;
1070
+ status?: string;
1071
+ validationDetails?: ValidationDetail[];
1072
+ };
1073
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}`, {
1074
+ ...opts
1075
+ }));
1076
+ }
1077
+ /**
1078
+ *
1079
+ * Requires one of the following permissions:
1080
+ * - cloud_platform:*:view
1081
+ * - cloud_platform:*:support
1082
+ *
1083
+ */
1084
+ export function findApplicationDeploymentById({ organizationId, tenantId, runtimeId, deploymentId }: {
1085
+ organizationId: string;
1086
+ tenantId: string;
1087
+ runtimeId: string;
1088
+ deploymentId: string;
1089
+ }, opts?: Oazapfts.RequestOpts) {
1090
+ return oazapfts.ok(oazapfts.fetchJson<{
1091
+ status: 200;
1092
+ data: ApplicationDeploymentResource;
1093
+ } | {
1094
+ status: 400;
1095
+ data: ErrorBody;
1096
+ } | {
1097
+ status: 401;
1098
+ data: ErrorBody;
1099
+ } | {
1100
+ status: 404;
1101
+ data: ErrorBody;
1102
+ } | {
1103
+ status: 422;
1104
+ data: {
1105
+ code?: string;
1106
+ details?: string;
1107
+ status?: string;
1108
+ validationDetails?: ValidationDetail[];
1109
+ };
1110
+ } | {
1111
+ status: 500;
1112
+ data: {
1113
+ code?: string;
1114
+ details?: string;
1115
+ status?: string;
1116
+ validationDetails?: ValidationDetail[];
1117
+ };
1118
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}`, {
1119
+ ...opts
1120
+ }));
1121
+ }
1122
+ /**
1123
+ * Get application deployment logs.
1124
+ */
1125
+ export function getApplicationDeploymentLogs({ organizationId, tenantId, runtimeId, deploymentId, numberOfLines }: {
1126
+ organizationId: string;
1127
+ tenantId: string;
1128
+ runtimeId: string;
1129
+ deploymentId: string;
1130
+ numberOfLines?: number;
1131
+ }, opts?: Oazapfts.RequestOpts) {
1132
+ return oazapfts.ok(oazapfts.fetchJson<{
1133
+ status: 200;
1134
+ data: LogResource;
1135
+ } | {
1136
+ status: 400;
1137
+ data: ErrorBody;
1138
+ } | {
1139
+ status: 401;
1140
+ data: ErrorBody;
1141
+ } | {
1142
+ status: 404;
1143
+ data: ErrorBody;
1144
+ } | {
1145
+ status: 422;
1146
+ data: {
1147
+ code?: string;
1148
+ details?: string;
1149
+ status?: string;
1150
+ validationDetails?: ValidationDetail[];
1151
+ };
1152
+ } | {
1153
+ status: 500;
1154
+ data: {
1155
+ code?: string;
1156
+ details?: string;
1157
+ status?: string;
1158
+ validationDetails?: ValidationDetail[];
1159
+ };
1160
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
1161
+ numberOfLines
1162
+ }))}`, {
1163
+ ...opts
1164
+ }));
1165
+ }
1166
+ /**
1167
+ * Get application deployment health.
1168
+ */
1169
+ export function getApplicationDeploymentHealth({ organizationId, tenantId, runtimeId, deploymentId }: {
1170
+ organizationId: string;
1171
+ tenantId: string;
1172
+ runtimeId: string;
1173
+ deploymentId: string;
1174
+ }, opts?: Oazapfts.RequestOpts) {
1175
+ return oazapfts.ok(oazapfts.fetchJson<{
1176
+ status: 200;
1177
+ data: HealthResource;
1178
+ } | {
1179
+ status: 400;
1180
+ data: ErrorBody;
1181
+ } | {
1182
+ status: 401;
1183
+ data: ErrorBody;
1184
+ } | {
1185
+ status: 404;
1186
+ data: ErrorBody;
1187
+ } | {
1188
+ status: 422;
1189
+ data: {
1190
+ code?: string;
1191
+ details?: string;
1192
+ status?: string;
1193
+ validationDetails?: ValidationDetail[];
1194
+ };
1195
+ } | {
1196
+ status: 500;
1197
+ data: {
1198
+ code?: string;
1199
+ details?: string;
1200
+ status?: string;
1201
+ validationDetails?: ValidationDetail[];
1202
+ };
1203
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
1204
+ ...opts
1205
+ }));
1206
+ }
1207
+ /**
1208
+ * Retrieves the runtime details.
1209
+ */
1210
+ export function getRuntime1({ organizationId, tenantId, id }: {
1211
+ organizationId: string;
1212
+ tenantId: string;
1213
+ id: string;
1214
+ }, opts?: Oazapfts.RequestOpts) {
1215
+ return oazapfts.ok(oazapfts.fetchJson<{
1216
+ status: 200;
1217
+ data: RuntimeResource;
1218
+ } | {
1219
+ status: 400;
1220
+ data: ErrorBody;
1221
+ } | {
1222
+ status: 401;
1223
+ data: ErrorBody;
1224
+ } | {
1225
+ status: 403;
1226
+ data: ErrorBody;
1227
+ } | {
1228
+ status: 404;
1229
+ data: ErrorBody;
1230
+ } | {
1231
+ status: 422;
1232
+ data: {
1233
+ code?: string;
1234
+ details?: string;
1235
+ status?: string;
1236
+ validationDetails?: ValidationDetail[];
1237
+ };
1238
+ } | {
1239
+ status: 500;
1240
+ data: {
1241
+ code?: string;
1242
+ details?: string;
1243
+ status?: string;
1244
+ validationDetails?: ValidationDetail[];
1245
+ };
1246
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(id)}`, {
1247
+ ...opts
1248
+ }));
1249
+ }
1250
+ /**
1251
+ * Retrieves the tenant details.
1252
+ */
1253
+ export function getTenant1({ organizationId, id }: {
1254
+ organizationId: string;
1255
+ id: string;
1256
+ }, opts?: Oazapfts.RequestOpts) {
1257
+ return oazapfts.ok(oazapfts.fetchJson<{
1258
+ status: 200;
1259
+ data: TenantResource;
1260
+ } | {
1261
+ status: 400;
1262
+ data: ErrorBody;
1263
+ } | {
1264
+ status: 401;
1265
+ data: ErrorBody;
1266
+ } | {
1267
+ status: 403;
1268
+ data: ErrorBody;
1269
+ } | {
1270
+ status: 404;
1271
+ data: ErrorBody;
1272
+ } | {
1273
+ status: 422;
1274
+ data: {
1275
+ code?: string;
1276
+ details?: string;
1277
+ status?: string;
1278
+ validationDetails?: ValidationDetail[];
1279
+ };
1280
+ } | {
1281
+ status: 500;
1282
+ data: {
1283
+ code?: string;
1284
+ details?: string;
1285
+ status?: string;
1286
+ validationDetails?: ValidationDetail[];
1287
+ };
1288
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(id)}`, {
1289
+ ...opts
1290
+ }));
1291
+ }
1292
+ /**
1293
+ * Retrieves the organization details.
1294
+ */
1295
+ export function downloadBootstrapModule({ version }: {
1296
+ version?: string;
1297
+ }, opts?: Oazapfts.RequestOpts) {
1298
+ return oazapfts.ok(oazapfts.fetchJson<{
1299
+ status: 200;
1300
+ data: Blob;
1301
+ } | {
1302
+ status: 400;
1303
+ data: ErrorBody;
1304
+ } | {
1305
+ status: 401;
1306
+ data: ErrorBody;
1307
+ } | {
1308
+ status: 403;
1309
+ data: ErrorBody;
1310
+ } | {
1311
+ status: 404;
1312
+ data: ErrorBody;
1313
+ } | {
1314
+ status: 422;
1315
+ data: {
1316
+ code?: string;
1317
+ details?: string;
1318
+ status?: string;
1319
+ validationDetails?: ValidationDetail[];
1320
+ };
1321
+ } | {
1322
+ status: 500;
1323
+ data: {
1324
+ code?: string;
1325
+ details?: string;
1326
+ status?: string;
1327
+ validationDetails?: ValidationDetail[];
1328
+ };
1329
+ }>(`/v1/organizations/bootstrap${QS.query(QS.explode({
1330
+ version
1331
+ }))}`, {
1332
+ ...opts
1333
+ }));
1334
+ }
1335
+ /**
1336
+ * Get application deployment by ID
813
1337
  */
814
- export function findApplicationDeploymentById({ deploymentId }: {
1338
+ export function findApplicationDeploymentById1({ deploymentId }: {
815
1339
  deploymentId: string;
816
1340
  }, opts?: Oazapfts.RequestOpts) {
817
1341
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -849,7 +1373,7 @@ export function findApplicationDeploymentById({ deploymentId }: {
849
1373
  /**
850
1374
  * Get application deployment logs.
851
1375
  */
852
- export function getApplicationDeploymentLogs({ deploymentId, numberOfLines }: {
1376
+ export function getApplicationDeploymentLogs1({ deploymentId, numberOfLines }: {
853
1377
  deploymentId: string;
854
1378
  numberOfLines?: number;
855
1379
  }, opts?: Oazapfts.RequestOpts) {
@@ -890,7 +1414,7 @@ export function getApplicationDeploymentLogs({ deploymentId, numberOfLines }: {
890
1414
  /**
891
1415
  * Get application deployment health.
892
1416
  */
893
- export function getApplicationDeploymentHealth({ deploymentId }: {
1417
+ export function getApplicationDeploymentHealth1({ deploymentId }: {
894
1418
  deploymentId: string;
895
1419
  }, opts?: Oazapfts.RequestOpts) {
896
1420
  return oazapfts.ok(oazapfts.fetchJson<{