@stack-spot/portal-network 0.198.3 → 0.199.0-beta.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.
- package/CHANGELOG.md +131 -0
- package/dist/api/agent-tools.d.ts +150 -148
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +41 -4
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +288 -19
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +196 -11
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +316 -32
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +172 -8
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +72 -0
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +68 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/client/agent-tools.d.ts +36 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +35 -4
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts +137 -2
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +102 -2
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +19 -0
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/code-shift.d.ts +118 -4
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +100 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/data-integration.d.ts +30 -0
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +22 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +14 -0
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +28 -1
- package/dist/client/discover.js.map +1 -1
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/workspace-ai.d.ts +5 -5
- package/package.json +2 -2
- package/src/api/agent-tools.ts +199 -152
- package/src/api/ai.ts +521 -24
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +631 -37
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +145 -2
- package/src/client/agent-tools.ts +26 -4
- package/src/client/ai.ts +81 -10
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/code-shift.ts +64 -1
- package/src/client/data-integration.ts +15 -1
- package/src/client/discover.ts +14 -1
- package/src/client/secrets.ts +1 -1
|
@@ -35,6 +35,18 @@ export type MetadataV1 = {
|
|
|
35
35
|
[key: string]: string;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
+
export type DeploymentContextManifestV1Spec = {
|
|
39
|
+
runtimeId: string;
|
|
40
|
+
deployTemplateId: string;
|
|
41
|
+
workspaceId: string;
|
|
42
|
+
applications: string[];
|
|
43
|
+
environment: string;
|
|
44
|
+
isDefault: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type DeploymentContextManifestV1 = {
|
|
47
|
+
metadata: MetadataV1;
|
|
48
|
+
spec: DeploymentContextManifestV1Spec;
|
|
49
|
+
};
|
|
38
50
|
export type TenantManifestV1SpecCloudAccountConfigurationFromRef = {
|
|
39
51
|
id: string;
|
|
40
52
|
};
|
|
@@ -411,6 +423,7 @@ export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles = {
|
|
|
411
423
|
clusterNodeGroup?: string;
|
|
412
424
|
clusterAdminRoles: string[];
|
|
413
425
|
karpenter?: string;
|
|
426
|
+
crossAccountRoleArn?: string;
|
|
414
427
|
};
|
|
415
428
|
export type RuntimeManifestV1Alpha1SpecCloudAccountConfiguration = {
|
|
416
429
|
fromRef?: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef;
|
|
@@ -637,6 +650,7 @@ export type RuntimeManifestV1Alpha1StatusControlPlane = {
|
|
|
637
650
|
kubeVersion: string;
|
|
638
651
|
conditions: RuntimeManifestV1Alpha1StatusControlPlaneCondition[];
|
|
639
652
|
};
|
|
653
|
+
export type ManifestStatus = object;
|
|
640
654
|
export type ManifestMetadata = {
|
|
641
655
|
propagableLabels?: {
|
|
642
656
|
[key: string]: string;
|
|
@@ -648,31 +662,33 @@ export type ManifestMetadata = {
|
|
|
648
662
|
[key: string]: string;
|
|
649
663
|
};
|
|
650
664
|
};
|
|
651
|
-
export type ManifestStatus = object;
|
|
652
665
|
export type ManifestSpec = object;
|
|
653
666
|
export type ApplicationDeploymentManifestBase = {
|
|
654
|
-
metadata: ManifestMetadata;
|
|
655
667
|
status?: ManifestStatus;
|
|
668
|
+
metadata: ManifestMetadata;
|
|
656
669
|
spec: ManifestSpec;
|
|
657
670
|
apiVersion: string;
|
|
658
671
|
};
|
|
659
672
|
export type ApplicationDeploymentManifestV1Spec = {
|
|
660
|
-
runtimeId
|
|
673
|
+
runtimeId?: string;
|
|
661
674
|
destinationNamespace?: string;
|
|
662
675
|
applicationId: string;
|
|
663
|
-
|
|
676
|
+
environment?: string;
|
|
677
|
+
workspaceId?: string;
|
|
678
|
+
deployTemplate?: string;
|
|
664
679
|
deployTemplateValues: {
|
|
665
680
|
[key: string]: object;
|
|
666
681
|
};
|
|
667
682
|
};
|
|
668
683
|
export type ApplicationDeploymentManifestV1Status = {
|
|
669
684
|
revisionNumber?: number;
|
|
685
|
+
runtimeId?: string;
|
|
670
686
|
};
|
|
671
687
|
export type ApplicationDeploymentManifestV1 = {
|
|
672
688
|
apiVersion: "ApplicationDeploymentManifestV1";
|
|
673
689
|
} & ApplicationDeploymentManifestBase & {
|
|
674
|
-
metadata
|
|
675
|
-
spec
|
|
690
|
+
metadata: MetadataV1;
|
|
691
|
+
spec: ApplicationDeploymentManifestV1Spec;
|
|
676
692
|
status?: ApplicationDeploymentManifestV1Status;
|
|
677
693
|
};
|
|
678
694
|
export type Metadata = {
|
|
@@ -697,8 +713,8 @@ export type Spec = {
|
|
|
697
713
|
export type ApplicationDeploymentManifestV1Alpha1 = {
|
|
698
714
|
apiVersion: "ApplicationDeploymentManifestV1Alpha1";
|
|
699
715
|
} & ApplicationDeploymentManifestBase & {
|
|
700
|
-
metadata
|
|
701
|
-
spec
|
|
716
|
+
metadata: Metadata;
|
|
717
|
+
spec: Spec;
|
|
702
718
|
};
|
|
703
719
|
export type RuntimeManifestV1Alpha1Status = {
|
|
704
720
|
created: boolean;
|
|
@@ -799,6 +815,106 @@ export type Association = {
|
|
|
799
815
|
export type ListRuntimeWorkspaceEnvironmentAssociationsResponse = {
|
|
800
816
|
associations: Association[];
|
|
801
817
|
};
|
|
818
|
+
export type RolloutManifestV1Metadata = {
|
|
819
|
+
id?: string;
|
|
820
|
+
name: string;
|
|
821
|
+
version: string;
|
|
822
|
+
labels?: {
|
|
823
|
+
[key: string]: string;
|
|
824
|
+
};
|
|
825
|
+
propagableLabels?: {
|
|
826
|
+
[key: string]: string;
|
|
827
|
+
};
|
|
828
|
+
revision: string;
|
|
829
|
+
"namespace": string;
|
|
830
|
+
creationTimestamp?: string;
|
|
831
|
+
};
|
|
832
|
+
export type RolloutManifestV1Spec = {
|
|
833
|
+
resourceId: string;
|
|
834
|
+
replicas?: number;
|
|
835
|
+
strategy?: {
|
|
836
|
+
[key: string]: object;
|
|
837
|
+
};
|
|
838
|
+
template?: {
|
|
839
|
+
[key: string]: object;
|
|
840
|
+
};
|
|
841
|
+
"type": string;
|
|
842
|
+
};
|
|
843
|
+
export type RolloutManifestV1Status = {
|
|
844
|
+
availableReplicas?: number;
|
|
845
|
+
blueGreen?: {
|
|
846
|
+
[key: string]: object;
|
|
847
|
+
};
|
|
848
|
+
canary?: {
|
|
849
|
+
[key: string]: object;
|
|
850
|
+
};
|
|
851
|
+
conditions?: {
|
|
852
|
+
[key: string]: object;
|
|
853
|
+
}[];
|
|
854
|
+
currentPodHash?: string;
|
|
855
|
+
currentStepHash?: string;
|
|
856
|
+
currentStepIndex?: number;
|
|
857
|
+
observedGeneration?: string;
|
|
858
|
+
phase?: string;
|
|
859
|
+
readyReplicas?: number;
|
|
860
|
+
replicas?: number;
|
|
861
|
+
restartedAt?: string;
|
|
862
|
+
selector?: string;
|
|
863
|
+
stableRS?: string;
|
|
864
|
+
updatedReplicas?: number;
|
|
865
|
+
controllerPause?: boolean;
|
|
866
|
+
message?: string;
|
|
867
|
+
pauseConditions?: {
|
|
868
|
+
[key: string]: object;
|
|
869
|
+
}[];
|
|
870
|
+
abort?: boolean;
|
|
871
|
+
abortedAt?: string;
|
|
872
|
+
promoteFull?: boolean;
|
|
873
|
+
hpareplicas?: number;
|
|
874
|
+
};
|
|
875
|
+
export type RolloutManifestV1StatusWrite = {
|
|
876
|
+
HPAReplicas?: number;
|
|
877
|
+
availableReplicas?: number;
|
|
878
|
+
blueGreen?: {
|
|
879
|
+
[key: string]: object;
|
|
880
|
+
};
|
|
881
|
+
canary?: {
|
|
882
|
+
[key: string]: object;
|
|
883
|
+
};
|
|
884
|
+
conditions?: {
|
|
885
|
+
[key: string]: object;
|
|
886
|
+
}[];
|
|
887
|
+
currentPodHash?: string;
|
|
888
|
+
currentStepHash?: string;
|
|
889
|
+
currentStepIndex?: number;
|
|
890
|
+
observedGeneration?: string;
|
|
891
|
+
phase?: string;
|
|
892
|
+
readyReplicas?: number;
|
|
893
|
+
replicas?: number;
|
|
894
|
+
restartedAt?: string;
|
|
895
|
+
selector?: string;
|
|
896
|
+
stableRS?: string;
|
|
897
|
+
updatedReplicas?: number;
|
|
898
|
+
controllerPause?: boolean;
|
|
899
|
+
message?: string;
|
|
900
|
+
pauseConditions?: {
|
|
901
|
+
[key: string]: object;
|
|
902
|
+
}[];
|
|
903
|
+
abort?: boolean;
|
|
904
|
+
abortedAt?: string;
|
|
905
|
+
promoteFull?: boolean;
|
|
906
|
+
hpareplicas?: number;
|
|
907
|
+
};
|
|
908
|
+
export type RolloutManifestV1 = {
|
|
909
|
+
metadata: RolloutManifestV1Metadata;
|
|
910
|
+
spec: RolloutManifestV1Spec;
|
|
911
|
+
status?: RolloutManifestV1Status;
|
|
912
|
+
};
|
|
913
|
+
export type RolloutManifestV1Write = {
|
|
914
|
+
metadata: RolloutManifestV1Metadata;
|
|
915
|
+
spec: RolloutManifestV1Spec;
|
|
916
|
+
status?: RolloutManifestV1StatusWrite;
|
|
917
|
+
};
|
|
802
918
|
export type LogManifestV1Spec = {
|
|
803
919
|
resourceId: string;
|
|
804
920
|
controlPlaneId?: string;
|
|
@@ -972,6 +1088,133 @@ export function createOrganizationIcon({ organizationId, body }: {
|
|
|
972
1088
|
body
|
|
973
1089
|
})));
|
|
974
1090
|
}
|
|
1091
|
+
/**
|
|
1092
|
+
* List deployment contexts
|
|
1093
|
+
*/
|
|
1094
|
+
export function list({ environment, runtimeId, deployTemplateId, workspaceId, isDefault }: {
|
|
1095
|
+
environment?: string;
|
|
1096
|
+
runtimeId?: string;
|
|
1097
|
+
deployTemplateId?: string;
|
|
1098
|
+
workspaceId?: string;
|
|
1099
|
+
isDefault?: boolean;
|
|
1100
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1101
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1102
|
+
status: 200;
|
|
1103
|
+
data: DeploymentContextManifestV1[];
|
|
1104
|
+
} | {
|
|
1105
|
+
status: 400;
|
|
1106
|
+
data: ErrorBody;
|
|
1107
|
+
} | {
|
|
1108
|
+
status: 401;
|
|
1109
|
+
data: ErrorBody;
|
|
1110
|
+
} | {
|
|
1111
|
+
status: 404;
|
|
1112
|
+
data: ErrorBody;
|
|
1113
|
+
} | {
|
|
1114
|
+
status: 422;
|
|
1115
|
+
data: {
|
|
1116
|
+
code?: string;
|
|
1117
|
+
details?: string;
|
|
1118
|
+
status?: string;
|
|
1119
|
+
validationDetails?: ValidationDetail[];
|
|
1120
|
+
};
|
|
1121
|
+
} | {
|
|
1122
|
+
status: 500;
|
|
1123
|
+
data: {
|
|
1124
|
+
code?: string;
|
|
1125
|
+
details?: string;
|
|
1126
|
+
status?: string;
|
|
1127
|
+
validationDetails?: ValidationDetail[];
|
|
1128
|
+
};
|
|
1129
|
+
}>(`/v1/deployment-contexts${QS.query(QS.explode({
|
|
1130
|
+
environment,
|
|
1131
|
+
runtimeId,
|
|
1132
|
+
deployTemplateId,
|
|
1133
|
+
workspaceId,
|
|
1134
|
+
isDefault
|
|
1135
|
+
}))}`, {
|
|
1136
|
+
...opts
|
|
1137
|
+
}));
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Updates a deployment context
|
|
1141
|
+
*/
|
|
1142
|
+
export function update({ deploymentContextManifestV1 }: {
|
|
1143
|
+
deploymentContextManifestV1: DeploymentContextManifestV1;
|
|
1144
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1145
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1146
|
+
status: 200;
|
|
1147
|
+
} | {
|
|
1148
|
+
status: 400;
|
|
1149
|
+
data: ErrorBody;
|
|
1150
|
+
} | {
|
|
1151
|
+
status: 401;
|
|
1152
|
+
data: ErrorBody;
|
|
1153
|
+
} | {
|
|
1154
|
+
status: 404;
|
|
1155
|
+
data: ErrorBody;
|
|
1156
|
+
} | {
|
|
1157
|
+
status: 422;
|
|
1158
|
+
data: {
|
|
1159
|
+
code?: string;
|
|
1160
|
+
details?: string;
|
|
1161
|
+
status?: string;
|
|
1162
|
+
validationDetails?: ValidationDetail[];
|
|
1163
|
+
};
|
|
1164
|
+
} | {
|
|
1165
|
+
status: 500;
|
|
1166
|
+
data: {
|
|
1167
|
+
code?: string;
|
|
1168
|
+
details?: string;
|
|
1169
|
+
status?: string;
|
|
1170
|
+
validationDetails?: ValidationDetail[];
|
|
1171
|
+
};
|
|
1172
|
+
}>("/v1/deployment-contexts", oazapfts.json({
|
|
1173
|
+
...opts,
|
|
1174
|
+
method: "PUT",
|
|
1175
|
+
body: deploymentContextManifestV1
|
|
1176
|
+
})));
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* Create a Deployment Context
|
|
1180
|
+
*/
|
|
1181
|
+
export function create({ deploymentContextManifestV1 }: {
|
|
1182
|
+
deploymentContextManifestV1: DeploymentContextManifestV1;
|
|
1183
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1184
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1185
|
+
status: 201;
|
|
1186
|
+
data: DeploymentContextManifestV1;
|
|
1187
|
+
} | {
|
|
1188
|
+
status: 400;
|
|
1189
|
+
data: ErrorBody;
|
|
1190
|
+
} | {
|
|
1191
|
+
status: 401;
|
|
1192
|
+
data: ErrorBody;
|
|
1193
|
+
} | {
|
|
1194
|
+
status: 404;
|
|
1195
|
+
data: ErrorBody;
|
|
1196
|
+
} | {
|
|
1197
|
+
status: 422;
|
|
1198
|
+
data: {
|
|
1199
|
+
code?: string;
|
|
1200
|
+
details?: string;
|
|
1201
|
+
status?: string;
|
|
1202
|
+
validationDetails?: ValidationDetail[];
|
|
1203
|
+
};
|
|
1204
|
+
} | {
|
|
1205
|
+
status: 500;
|
|
1206
|
+
data: {
|
|
1207
|
+
code?: string;
|
|
1208
|
+
details?: string;
|
|
1209
|
+
status?: string;
|
|
1210
|
+
validationDetails?: ValidationDetail[];
|
|
1211
|
+
};
|
|
1212
|
+
}>("/v1/deployment-contexts", oazapfts.json({
|
|
1213
|
+
...opts,
|
|
1214
|
+
method: "POST",
|
|
1215
|
+
body: deploymentContextManifestV1
|
|
1216
|
+
})));
|
|
1217
|
+
}
|
|
975
1218
|
/**
|
|
976
1219
|
* List all tenants in the stackspot account
|
|
977
1220
|
*/
|
|
@@ -1518,6 +1761,49 @@ export function deploy({ organizationId, tenantId, runtimeId, applicationDeploym
|
|
|
1518
1761
|
body: applicationDeploymentManifestV1
|
|
1519
1762
|
})));
|
|
1520
1763
|
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Execute a rollout action on an application deployment.
|
|
1766
|
+
*/
|
|
1767
|
+
export function postApplicationDeploymentRolloutAction({ organizationId, tenantId, runtimeId, deploymentId, action }: {
|
|
1768
|
+
organizationId: string;
|
|
1769
|
+
tenantId: string;
|
|
1770
|
+
runtimeId: string;
|
|
1771
|
+
deploymentId: string;
|
|
1772
|
+
action: string;
|
|
1773
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1774
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1775
|
+
status: 200;
|
|
1776
|
+
data: string;
|
|
1777
|
+
} | {
|
|
1778
|
+
status: 400;
|
|
1779
|
+
data: ErrorBody;
|
|
1780
|
+
} | {
|
|
1781
|
+
status: 401;
|
|
1782
|
+
data: ErrorBody;
|
|
1783
|
+
} | {
|
|
1784
|
+
status: 404;
|
|
1785
|
+
data: ErrorBody;
|
|
1786
|
+
} | {
|
|
1787
|
+
status: 422;
|
|
1788
|
+
data: {
|
|
1789
|
+
code?: string;
|
|
1790
|
+
details?: string;
|
|
1791
|
+
status?: string;
|
|
1792
|
+
validationDetails?: ValidationDetail[];
|
|
1793
|
+
};
|
|
1794
|
+
} | {
|
|
1795
|
+
status: 500;
|
|
1796
|
+
data: {
|
|
1797
|
+
code?: string;
|
|
1798
|
+
details?: string;
|
|
1799
|
+
status?: string;
|
|
1800
|
+
validationDetails?: ValidationDetail[];
|
|
1801
|
+
};
|
|
1802
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/rollout/action/${encodeURIComponent(action)}`, {
|
|
1803
|
+
...opts,
|
|
1804
|
+
method: "POST"
|
|
1805
|
+
}));
|
|
1806
|
+
}
|
|
1521
1807
|
/**
|
|
1522
1808
|
* Associate a runtime with a workspace's environment
|
|
1523
1809
|
*/
|
|
@@ -1650,7 +1936,7 @@ export function createDeployTemplate({ organizationId, deployTemplateManifestV1
|
|
|
1650
1936
|
})));
|
|
1651
1937
|
}
|
|
1652
1938
|
/**
|
|
1653
|
-
* List
|
|
1939
|
+
* List Addons
|
|
1654
1940
|
*/
|
|
1655
1941
|
export function listAddon({ organizationId }: {
|
|
1656
1942
|
organizationId: string;
|
|
@@ -2065,6 +2351,47 @@ export function deleteApplicationDeployment({ organizationId, tenantId, runtimeI
|
|
|
2065
2351
|
method: "DELETE"
|
|
2066
2352
|
}));
|
|
2067
2353
|
}
|
|
2354
|
+
/**
|
|
2355
|
+
* Get application deployment rollout.
|
|
2356
|
+
*/
|
|
2357
|
+
export function listApplicationDeploymentRollouts({ organizationId, tenantId, runtimeId, deploymentId }: {
|
|
2358
|
+
organizationId: string;
|
|
2359
|
+
tenantId: string;
|
|
2360
|
+
runtimeId: string;
|
|
2361
|
+
deploymentId: string;
|
|
2362
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2363
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2364
|
+
status: 200;
|
|
2365
|
+
data: RolloutManifestV1[];
|
|
2366
|
+
} | {
|
|
2367
|
+
status: 400;
|
|
2368
|
+
data: ErrorBody;
|
|
2369
|
+
} | {
|
|
2370
|
+
status: 401;
|
|
2371
|
+
data: ErrorBody;
|
|
2372
|
+
} | {
|
|
2373
|
+
status: 404;
|
|
2374
|
+
data: ErrorBody;
|
|
2375
|
+
} | {
|
|
2376
|
+
status: 422;
|
|
2377
|
+
data: {
|
|
2378
|
+
code?: string;
|
|
2379
|
+
details?: string;
|
|
2380
|
+
status?: string;
|
|
2381
|
+
validationDetails?: ValidationDetail[];
|
|
2382
|
+
};
|
|
2383
|
+
} | {
|
|
2384
|
+
status: 500;
|
|
2385
|
+
data: {
|
|
2386
|
+
code?: string;
|
|
2387
|
+
details?: string;
|
|
2388
|
+
status?: string;
|
|
2389
|
+
validationDetails?: ValidationDetail[];
|
|
2390
|
+
};
|
|
2391
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/rollouts`, {
|
|
2392
|
+
...opts
|
|
2393
|
+
}));
|
|
2394
|
+
}
|
|
2068
2395
|
/**
|
|
2069
2396
|
* Get application deployment logs.
|
|
2070
2397
|
*/
|
|
@@ -2536,6 +2863,82 @@ export function getApplicationDeploymentExample(opts?: Oazapfts.RequestOpts) {
|
|
|
2536
2863
|
...opts
|
|
2537
2864
|
}));
|
|
2538
2865
|
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Get deployment context by ID
|
|
2868
|
+
*/
|
|
2869
|
+
export function getV1DeploymentContextsById({ id }: {
|
|
2870
|
+
id: string;
|
|
2871
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2872
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2873
|
+
status: 200;
|
|
2874
|
+
data: DeploymentContextManifestV1;
|
|
2875
|
+
} | {
|
|
2876
|
+
status: 400;
|
|
2877
|
+
data: ErrorBody;
|
|
2878
|
+
} | {
|
|
2879
|
+
status: 401;
|
|
2880
|
+
data: ErrorBody;
|
|
2881
|
+
} | {
|
|
2882
|
+
status: 404;
|
|
2883
|
+
data: ErrorBody;
|
|
2884
|
+
} | {
|
|
2885
|
+
status: 422;
|
|
2886
|
+
data: {
|
|
2887
|
+
code?: string;
|
|
2888
|
+
details?: string;
|
|
2889
|
+
status?: string;
|
|
2890
|
+
validationDetails?: ValidationDetail[];
|
|
2891
|
+
};
|
|
2892
|
+
} | {
|
|
2893
|
+
status: 500;
|
|
2894
|
+
data: {
|
|
2895
|
+
code?: string;
|
|
2896
|
+
details?: string;
|
|
2897
|
+
status?: string;
|
|
2898
|
+
validationDetails?: ValidationDetail[];
|
|
2899
|
+
};
|
|
2900
|
+
}>(`/v1/deployment-contexts/${encodeURIComponent(id)}`, {
|
|
2901
|
+
...opts
|
|
2902
|
+
}));
|
|
2903
|
+
}
|
|
2904
|
+
/**
|
|
2905
|
+
* Delete deployment context by ID
|
|
2906
|
+
*/
|
|
2907
|
+
export function deleteV1DeploymentContextsById({ id }: {
|
|
2908
|
+
id: string;
|
|
2909
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2910
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2911
|
+
status: 204;
|
|
2912
|
+
} | {
|
|
2913
|
+
status: 400;
|
|
2914
|
+
data: ErrorBody;
|
|
2915
|
+
} | {
|
|
2916
|
+
status: 401;
|
|
2917
|
+
data: ErrorBody;
|
|
2918
|
+
} | {
|
|
2919
|
+
status: 404;
|
|
2920
|
+
data: ErrorBody;
|
|
2921
|
+
} | {
|
|
2922
|
+
status: 422;
|
|
2923
|
+
data: {
|
|
2924
|
+
code?: string;
|
|
2925
|
+
details?: string;
|
|
2926
|
+
status?: string;
|
|
2927
|
+
validationDetails?: ValidationDetail[];
|
|
2928
|
+
};
|
|
2929
|
+
} | {
|
|
2930
|
+
status: 500;
|
|
2931
|
+
data: {
|
|
2932
|
+
code?: string;
|
|
2933
|
+
details?: string;
|
|
2934
|
+
status?: string;
|
|
2935
|
+
validationDetails?: ValidationDetail[];
|
|
2936
|
+
};
|
|
2937
|
+
}>(`/v1/deployment-contexts/${encodeURIComponent(id)}`, {
|
|
2938
|
+
...opts,
|
|
2939
|
+
method: "DELETE"
|
|
2940
|
+
}));
|
|
2941
|
+
}
|
|
2539
2942
|
/**
|
|
2540
2943
|
* Get application deployment by ID
|
|
2541
2944
|
*/
|