@stack-spot/portal-network 0.99.4 → 0.99.5
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 +18 -0
- package/dist/api/cloudPlatformHorizon.d.ts +114 -75
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +43 -11
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +1 -4
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +2 -11
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatformHorizon.ts +202 -82
- package/src/client/cloud-platform-horizon.ts +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.99.5](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.99.4...portal-network@v0.99.5) (2025-03-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* change query list organizations ([abf9a19](https://github.com/stack-spot/portal-commons/commit/abf9a19e262407cbf1ce52e41fb3d0bb7b223ebc))
|
|
9
|
+
* change readme ([f6df58f](https://github.com/stack-spot/portal-commons/commit/f6df58f3d2c6bd019d9206d25972660e1c9429b1))
|
|
10
|
+
* readme ([#829](https://github.com/stack-spot/portal-commons/issues/829)) ([cc29d2c](https://github.com/stack-spot/portal-commons/commit/cc29d2cca8482fa197f9c6af00a501f08a0f7a75))
|
|
11
|
+
|
|
12
|
+
## [0.99.4](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.99.3...portal-network@v0.99.4) (2025-03-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* change query list organizations ([abf9a19](https://github.com/stack-spot/portal-commons/commit/abf9a19e262407cbf1ce52e41fb3d0bb7b223ebc))
|
|
18
|
+
* change readme ([f6df58f](https://github.com/stack-spot/portal-commons/commit/f6df58f3d2c6bd019d9206d25972660e1c9429b1))
|
|
19
|
+
* update workflow open api ([f9c1c67](https://github.com/stack-spot/portal-commons/commit/f9c1c67634285919f318ff809b707446a9ead46c))
|
|
20
|
+
|
|
3
21
|
## [0.99.4](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.99.3...portal-network@v0.99.4) (2025-03-21)
|
|
4
22
|
|
|
5
23
|
|
|
@@ -9,23 +9,23 @@ export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
|
|
|
9
9
|
export declare const servers: {
|
|
10
10
|
generatedServerUrl: string;
|
|
11
11
|
};
|
|
12
|
-
export type
|
|
12
|
+
export type NameValuePairResource = {
|
|
13
13
|
name: string;
|
|
14
14
|
value: string;
|
|
15
15
|
};
|
|
16
16
|
export type MetadataResource = {
|
|
17
17
|
id?: string;
|
|
18
18
|
name: string;
|
|
19
|
-
tags
|
|
20
|
-
labels
|
|
19
|
+
tags?: NameValuePairResource[];
|
|
20
|
+
labels?: NameValuePairResource[];
|
|
21
21
|
};
|
|
22
22
|
export type RuntimeTenantResource = {
|
|
23
23
|
name: string;
|
|
24
24
|
id: string;
|
|
25
25
|
kubeVersion: string;
|
|
26
26
|
status: string;
|
|
27
|
-
tags
|
|
28
|
-
labels
|
|
27
|
+
tags?: NameValuePairResource[];
|
|
28
|
+
labels?: NameValuePairResource[];
|
|
29
29
|
};
|
|
30
30
|
export type ControlPlaneStatusResource = {
|
|
31
31
|
health: string;
|
|
@@ -41,8 +41,8 @@ export type ControlPlaneResource = {
|
|
|
41
41
|
addons: AddonResource[];
|
|
42
42
|
};
|
|
43
43
|
export type TenantStatusResource = {
|
|
44
|
-
runtimes
|
|
45
|
-
controlPlane
|
|
44
|
+
runtimes?: RuntimeTenantResource[];
|
|
45
|
+
controlPlane?: ControlPlaneResource[];
|
|
46
46
|
};
|
|
47
47
|
export type TenantResource = {
|
|
48
48
|
apiVersion: string;
|
|
@@ -64,15 +64,15 @@ export type FromRef = {
|
|
|
64
64
|
id: string;
|
|
65
65
|
};
|
|
66
66
|
export type IamRoles = {
|
|
67
|
-
clusterRole
|
|
68
|
-
clusterNodeGroup
|
|
69
|
-
clusterAdminRoles
|
|
70
|
-
crossplane
|
|
71
|
-
argocd
|
|
72
|
-
karpenter
|
|
73
|
-
stackspotCloudPlatformAgent
|
|
74
|
-
stackspotCloudPlatformManager
|
|
75
|
-
stackspotCloudPlatformGateway
|
|
67
|
+
clusterRole?: string;
|
|
68
|
+
clusterNodeGroup?: string;
|
|
69
|
+
clusterAdminRoles?: string[];
|
|
70
|
+
crossplane?: string;
|
|
71
|
+
argocd?: string;
|
|
72
|
+
karpenter?: string;
|
|
73
|
+
stackspotCloudPlatformAgent?: string;
|
|
74
|
+
stackspotCloudPlatformManager?: string;
|
|
75
|
+
stackspotCloudPlatformGateway?: string;
|
|
76
76
|
};
|
|
77
77
|
export type CloudAccountConfiguration = {
|
|
78
78
|
fromRef?: FromRef;
|
|
@@ -104,13 +104,31 @@ export type NodeGroup = {
|
|
|
104
104
|
export type StackspotCloudPlatform = {
|
|
105
105
|
createIamRoles: boolean;
|
|
106
106
|
};
|
|
107
|
+
export type HelmResource = {
|
|
108
|
+
chartName: string;
|
|
109
|
+
version: string;
|
|
110
|
+
repoUrl: string;
|
|
111
|
+
};
|
|
112
|
+
export type SeleneApp = {
|
|
113
|
+
imageRepository: string;
|
|
114
|
+
imageVersion?: string;
|
|
115
|
+
};
|
|
116
|
+
export type SeleneApps = {
|
|
117
|
+
agent: SeleneApp;
|
|
118
|
+
gateway: SeleneApp;
|
|
119
|
+
manager: SeleneApp;
|
|
120
|
+
platformGatewayUrl?: string;
|
|
121
|
+
};
|
|
107
122
|
export type ControlPlane = {
|
|
108
123
|
addons: Addon[];
|
|
109
124
|
instanceTypes: string[];
|
|
110
125
|
kubernetes: Kubernetes;
|
|
111
126
|
nodeGroup: NodeGroup;
|
|
112
127
|
stackspotCloudPlatform: StackspotCloudPlatform;
|
|
113
|
-
crossplaneNamespace
|
|
128
|
+
crossplaneNamespace?: string;
|
|
129
|
+
eksHelm?: HelmResource;
|
|
130
|
+
seleneHelm?: HelmResource;
|
|
131
|
+
seleneApps?: SeleneApps;
|
|
114
132
|
};
|
|
115
133
|
export type TenantSpecResource = {
|
|
116
134
|
organizationId: string;
|
|
@@ -124,12 +142,12 @@ export type TenantDefinitionResource = {
|
|
|
124
142
|
spec: TenantSpecResource;
|
|
125
143
|
};
|
|
126
144
|
export type ApplicationDeploymentStatusResource = {
|
|
127
|
-
name
|
|
145
|
+
name?: string;
|
|
128
146
|
id: string;
|
|
129
147
|
appVersion: string;
|
|
130
148
|
status: string;
|
|
131
|
-
tags:
|
|
132
|
-
labels:
|
|
149
|
+
tags: NameValuePairResource[];
|
|
150
|
+
labels: NameValuePairResource[];
|
|
133
151
|
};
|
|
134
152
|
export type KubeResource = {
|
|
135
153
|
status: string;
|
|
@@ -183,65 +201,33 @@ export type OrganizationResource = {
|
|
|
183
201
|
metadata: MetadataResource;
|
|
184
202
|
status: OrganizationStatusResource;
|
|
185
203
|
};
|
|
204
|
+
export type OrganizationSpecResource = {
|
|
205
|
+
stackspotAccountId?: string;
|
|
206
|
+
};
|
|
186
207
|
export type OrganizationDefinitionResource = {
|
|
187
208
|
apiVersion: string;
|
|
188
209
|
kind: string;
|
|
189
210
|
metadata: MetadataResource;
|
|
211
|
+
spec?: OrganizationSpecResource;
|
|
190
212
|
};
|
|
191
|
-
export type
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
max: number;
|
|
198
|
-
};
|
|
199
|
-
export type Resources = {
|
|
200
|
-
cpu: string;
|
|
201
|
-
memory: string;
|
|
202
|
-
volumeSize: string;
|
|
203
|
-
};
|
|
204
|
-
export type Env = {
|
|
205
|
-
name: string;
|
|
206
|
-
value: string;
|
|
207
|
-
};
|
|
208
|
-
export type SecretEnv = {
|
|
209
|
-
name: string;
|
|
210
|
-
secretName: string;
|
|
211
|
-
secretKey: string;
|
|
212
|
-
};
|
|
213
|
-
export type Probe = {
|
|
214
|
-
port: number;
|
|
215
|
-
path: string;
|
|
216
|
-
};
|
|
217
|
-
export type Health = {
|
|
218
|
-
readiness: Probe;
|
|
219
|
-
liveness: Probe;
|
|
220
|
-
startupProbe: Probe;
|
|
221
|
-
};
|
|
222
|
-
export type Container = {
|
|
223
|
-
port: number;
|
|
224
|
-
resources: Resources;
|
|
225
|
-
env?: Env[];
|
|
226
|
-
secretEnv?: SecretEnv[];
|
|
227
|
-
health: Health;
|
|
228
|
-
};
|
|
229
|
-
export type BlueprintValues = {
|
|
230
|
-
dockerImage: string;
|
|
231
|
-
dockerImageTag: string;
|
|
232
|
-
service: Service;
|
|
233
|
-
hpa: Hpa;
|
|
234
|
-
container: Container;
|
|
213
|
+
export type ApplicationDeploymentMetadataResource = {
|
|
214
|
+
id?: string;
|
|
215
|
+
name?: string;
|
|
216
|
+
appVersion: string;
|
|
217
|
+
tags?: NameValuePairResource[];
|
|
218
|
+
labels?: NameValuePairResource[];
|
|
235
219
|
};
|
|
236
220
|
export type Spec = {
|
|
237
|
-
|
|
221
|
+
deployTemplate: string;
|
|
238
222
|
runtimeId: string;
|
|
239
|
-
|
|
223
|
+
deployTemplateValues: {
|
|
224
|
+
[key: string]: object;
|
|
225
|
+
};
|
|
240
226
|
};
|
|
241
227
|
export type ApplicationDeploymentResource = {
|
|
242
228
|
apiVersion: string;
|
|
243
229
|
kind: string;
|
|
244
|
-
metadata:
|
|
230
|
+
metadata: ApplicationDeploymentMetadataResource;
|
|
245
231
|
spec: Spec;
|
|
246
232
|
};
|
|
247
233
|
export type ManifestResource = {
|
|
@@ -272,6 +258,32 @@ export type LogResource = {
|
|
|
272
258
|
status?: LogStatusResource;
|
|
273
259
|
kind: string;
|
|
274
260
|
};
|
|
261
|
+
export type Resource = {
|
|
262
|
+
cpu: string;
|
|
263
|
+
memory: string;
|
|
264
|
+
};
|
|
265
|
+
export type Pod = {
|
|
266
|
+
name: string;
|
|
267
|
+
uptime: string;
|
|
268
|
+
restarts: string;
|
|
269
|
+
status: string;
|
|
270
|
+
containers: string;
|
|
271
|
+
healthStatus: string;
|
|
272
|
+
image: string;
|
|
273
|
+
limits: Resource;
|
|
274
|
+
requests: Resource;
|
|
275
|
+
};
|
|
276
|
+
export type Status = {
|
|
277
|
+
fetchHealthTimestamp: string;
|
|
278
|
+
pods: Pod[];
|
|
279
|
+
};
|
|
280
|
+
export type HealthResource = {
|
|
281
|
+
apiVersion: string;
|
|
282
|
+
kind: string;
|
|
283
|
+
metadata: MetadataResource;
|
|
284
|
+
spec: Spec;
|
|
285
|
+
status?: Status;
|
|
286
|
+
};
|
|
275
287
|
/**
|
|
276
288
|
* Returns paginated tenants.
|
|
277
289
|
*/
|
|
@@ -299,15 +311,26 @@ export declare function createRuntime({ runtimeDefinitionResource }: {
|
|
|
299
311
|
runtimeDefinitionResource: RuntimeDefinitionResource;
|
|
300
312
|
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
301
313
|
/**
|
|
302
|
-
* Retrieves the organization
|
|
314
|
+
* Retrieves the Stackspot account organization
|
|
303
315
|
*/
|
|
304
|
-
export declare function
|
|
316
|
+
export declare function getOrganizations({ xAccountId, page, perPage }: {
|
|
317
|
+
xAccountId?: string;
|
|
318
|
+
page?: number;
|
|
319
|
+
perPage?: number;
|
|
320
|
+
}, opts?: Oazapfts.RequestOpts): Promise<OrganizationResource[]>;
|
|
305
321
|
/**
|
|
306
322
|
* Creates a new organization.
|
|
307
323
|
*/
|
|
308
324
|
export declare function createOrganization({ organizationDefinitionResource }: {
|
|
309
325
|
organizationDefinitionResource: OrganizationDefinitionResource;
|
|
310
326
|
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* Requires one of the following permissions:
|
|
330
|
+
* - cloud_platform:*:view
|
|
331
|
+
* - cloud_platform:*:support
|
|
332
|
+
*
|
|
333
|
+
*/
|
|
311
334
|
export declare function listApplicationDeployments(opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentResource[]>;
|
|
312
335
|
/**
|
|
313
336
|
* Apply manifesto resource yaml.
|
|
@@ -334,16 +357,32 @@ export declare function getRuntime({ id }: {
|
|
|
334
357
|
id: string;
|
|
335
358
|
}, opts?: Oazapfts.RequestOpts): Promise<RuntimeResource>;
|
|
336
359
|
/**
|
|
337
|
-
*
|
|
360
|
+
* Retrieves the organization details.
|
|
361
|
+
*/
|
|
362
|
+
export declare function downloadBootstrapModule({ version }: {
|
|
363
|
+
version?: string;
|
|
364
|
+
}, opts?: Oazapfts.RequestOpts): Promise<Blob>;
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* Requires one of the following permissions:
|
|
368
|
+
* - cloud_platform:*:view
|
|
369
|
+
* - cloud_platform:*:support
|
|
370
|
+
*
|
|
338
371
|
*/
|
|
339
|
-
export declare function listOrganizations({ page, perPage }: {
|
|
340
|
-
page?: number;
|
|
341
|
-
perPage?: number;
|
|
342
|
-
}, opts?: Oazapfts.RequestOpts): Promise<OrganizationResource[]>;
|
|
343
372
|
export declare function findApplicationDeploymentById({ deploymentId }: {
|
|
344
373
|
deploymentId: string;
|
|
345
374
|
}, opts?: Oazapfts.RequestOpts): Promise<ApplicationDeploymentResource>;
|
|
346
|
-
|
|
375
|
+
/**
|
|
376
|
+
* Get application deployment logs.
|
|
377
|
+
*/
|
|
378
|
+
export declare function getApplicationDeploymentLogs({ deploymentId, numberOfLines }: {
|
|
347
379
|
deploymentId: string;
|
|
380
|
+
numberOfLines?: number;
|
|
348
381
|
}, opts?: Oazapfts.RequestOpts): Promise<LogResource>;
|
|
382
|
+
/**
|
|
383
|
+
* Get application deployment health.
|
|
384
|
+
*/
|
|
385
|
+
export declare function getApplicationDeploymentHealth({ deploymentId }: {
|
|
386
|
+
deploymentId: string;
|
|
387
|
+
}, opts?: Oazapfts.RequestOpts): Promise<HealthResource>;
|
|
349
388
|
//# sourceMappingURL=cloudPlatformHorizon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudPlatformHorizon.d.ts","sourceRoot":"","sources":["../../src/api/cloudPlatformHorizon.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAG9D,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC;AACF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"cloudPlatformHorizon.d.ts","sourceRoot":"","sources":["../../src/api/cloudPlatformHorizon.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAG9D,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC/B,MAAM,CAAC,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AC7D,YAAY,EAAE,MAAM,CAAC;CACxB,EAAE,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,2BAgC7B"}
|
|
@@ -57,11 +57,17 @@ export function createRuntime({ runtimeDefinitionResource }, opts) {
|
|
|
57
57
|
})));
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* Retrieves the organization
|
|
60
|
+
* Retrieves the Stackspot account organization
|
|
61
61
|
*/
|
|
62
|
-
export function
|
|
63
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
64
|
-
|
|
62
|
+
export function getOrganizations({ xAccountId, page, perPage }, opts) {
|
|
63
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/organizations${QS.query(QS.explode({
|
|
64
|
+
page,
|
|
65
|
+
perPage
|
|
66
|
+
}))}`, {
|
|
67
|
+
...opts,
|
|
68
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
69
|
+
"X-Account-Id": xAccountId
|
|
70
|
+
})
|
|
65
71
|
}));
|
|
66
72
|
}
|
|
67
73
|
/**
|
|
@@ -74,6 +80,13 @@ export function createOrganization({ organizationDefinitionResource }, opts) {
|
|
|
74
80
|
body: organizationDefinitionResource
|
|
75
81
|
})));
|
|
76
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* Requires one of the following permissions:
|
|
86
|
+
* - cloud_platform:*:view
|
|
87
|
+
* - cloud_platform:*:support
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
77
90
|
export function listApplicationDeployments(opts) {
|
|
78
91
|
return oazapfts.ok(oazapfts.fetchJson("/v1/applications/deployments", {
|
|
79
92
|
...opts
|
|
@@ -116,23 +129,42 @@ export function getRuntime({ id }, opts) {
|
|
|
116
129
|
}));
|
|
117
130
|
}
|
|
118
131
|
/**
|
|
119
|
-
*
|
|
132
|
+
* Retrieves the organization details.
|
|
120
133
|
*/
|
|
121
|
-
export function
|
|
122
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/organizations/
|
|
123
|
-
|
|
124
|
-
perPage
|
|
134
|
+
export function downloadBootstrapModule({ version }, opts) {
|
|
135
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/organizations/bootstrap${QS.query(QS.explode({
|
|
136
|
+
version
|
|
125
137
|
}))}`, {
|
|
126
138
|
...opts
|
|
127
139
|
}));
|
|
128
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* Requires one of the following permissions:
|
|
144
|
+
* - cloud_platform:*:view
|
|
145
|
+
* - cloud_platform:*:support
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
129
148
|
export function findApplicationDeploymentById({ deploymentId }, opts) {
|
|
130
149
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}`, {
|
|
131
150
|
...opts
|
|
132
151
|
}));
|
|
133
152
|
}
|
|
134
|
-
|
|
135
|
-
|
|
153
|
+
/**
|
|
154
|
+
* Get application deployment logs.
|
|
155
|
+
*/
|
|
156
|
+
export function getApplicationDeploymentLogs({ deploymentId, numberOfLines }, opts) {
|
|
157
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
|
|
158
|
+
numberOfLines
|
|
159
|
+
}))}`, {
|
|
160
|
+
...opts
|
|
161
|
+
}));
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Get application deployment health.
|
|
165
|
+
*/
|
|
166
|
+
export function getApplicationDeploymentHealth({ deploymentId }, opts) {
|
|
167
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
136
168
|
...opts
|
|
137
169
|
}));
|
|
138
170
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudPlatformHorizon.js","sourceRoot":"","sources":["../../src/api/cloudPlatformHorizon.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,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SAAS,CA4BlC,gCAAgC,kBAAkB,CAAC,YAAY,CAAC,SAAS,EAAE;QAC1E,GAAG,IAAI;KACV,CAAC,CAAC,CAAC;AACR,CAAC"}
|
|
@@ -14,13 +14,10 @@ declare class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
14
14
|
* Get a list of organizations
|
|
15
15
|
*/
|
|
16
16
|
listOrganizations: import("../network/types.js").QueryObject<Omit<{
|
|
17
|
+
xAccountId?: string | undefined;
|
|
17
18
|
page?: number | undefined;
|
|
18
19
|
perPage?: number | undefined;
|
|
19
20
|
}, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatformHorizon.js").OrganizationResource[]>;
|
|
20
|
-
/**
|
|
21
|
-
* Get details of an organization
|
|
22
|
-
*/
|
|
23
|
-
getOrganization: import("../network/types.js").QueryObject<Omit<import("@oazapfts/runtime").RequestOpts | undefined, "authorization" | "jwtToken"> & {}, import("../api/cloudPlatformHorizon.js").OrganizationResource>;
|
|
24
21
|
/**
|
|
25
22
|
* Get details of an tenant
|
|
26
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform-horizon.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform-horizon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAK5E,cAAM,0BAA2B,SAAQ,uBAAuB;;IAK9D,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,KAAK;;oDAAiD;IACtD;;OAEG;IACH,iBAAiB
|
|
1
|
+
{"version":3,"file":"cloud-platform-horizon.d.ts","sourceRoot":"","sources":["../../src/client/cloud-platform-horizon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAI7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAK5E,cAAM,0BAA2B,SAAQ,uBAAuB;;IAK9D,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,KAAK;;oDAAiD;IACtD;;OAEG;IACH,iBAAiB;;;;yGAAwD;IACzE;;OAEG;IACH,aAAa;;iGAAiD;IAC9D;;OAEG;IACH,cAAc;;kGAAkD;IAChE;;OAEG;IACH,YAAY;;oDAAwD;IACpE;;OAEG;IACH,aAAa;;oDAAyD;IACtE;;OAEG;IACH,kBAAkB;;oDAA8D;IAChF;;OAEG;IACH,YAAY;;;oGAAqD;IACjE;;OAEG;IACH,iBAAiB;;gHAAkD;CACpE;AAED,eAAO,MAAM,0BAA0B,4BAAmC,CAAA"}
|
|
@@ -2,7 +2,7 @@ import apis from '../apis.json';
|
|
|
2
2
|
import { DefaultAPIError } from '../error/DefaultAPIError.js';
|
|
3
3
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
|
|
4
4
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
|
|
5
|
-
import { apply, createOrganization, createRuntime, createTenant, defaults, deploy,
|
|
5
|
+
import { apply, createOrganization, createRuntime, createTenant, defaults, deploy, getOrganizations, getRuntime, getTenant, listRuntimes } from '../api/cloudPlatformHorizon.js';
|
|
6
6
|
import { baseDictionary } from '../error/dictionary/base.js';
|
|
7
7
|
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
8
8
|
constructor() {
|
|
@@ -23,16 +23,7 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
23
23
|
enumerable: true,
|
|
24
24
|
configurable: true,
|
|
25
25
|
writable: true,
|
|
26
|
-
value: this.query(removeAuthorizationParam(
|
|
27
|
-
});
|
|
28
|
-
/**
|
|
29
|
-
* Get details of an organization
|
|
30
|
-
*/
|
|
31
|
-
Object.defineProperty(this, "getOrganization", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true,
|
|
35
|
-
value: this.query(removeAuthorizationParam(getOrganization))
|
|
26
|
+
value: this.query(removeAuthorizationParam(getOrganizations))
|
|
36
27
|
});
|
|
37
28
|
/**
|
|
38
29
|
* Get details of an tenant
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-platform-horizon.js","sourceRoot":"","sources":["../../src/client/cloud-platform-horizon.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"cloud-platform-horizon.js","sourceRoot":"","sources":["../../src/client/cloud-platform-horizon.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC7K,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAEzD,MAAM,0BAA2B,SAAQ,uBAAuB;IAC9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);
|
|
|
14
14
|
export const servers = {
|
|
15
15
|
generatedServerUrl: "https://cloud-platform-horizon.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
17
|
+
export type NameValuePairResource = {
|
|
18
18
|
name: string;
|
|
19
19
|
value: string;
|
|
20
20
|
};
|
|
21
21
|
export type MetadataResource = {
|
|
22
22
|
id?: string;
|
|
23
23
|
name: string;
|
|
24
|
-
tags
|
|
25
|
-
labels
|
|
24
|
+
tags?: NameValuePairResource[];
|
|
25
|
+
labels?: NameValuePairResource[];
|
|
26
26
|
};
|
|
27
27
|
export type RuntimeTenantResource = {
|
|
28
28
|
name: string;
|
|
29
29
|
id: string;
|
|
30
30
|
kubeVersion: string;
|
|
31
31
|
status: string;
|
|
32
|
-
tags
|
|
33
|
-
labels
|
|
32
|
+
tags?: NameValuePairResource[];
|
|
33
|
+
labels?: NameValuePairResource[];
|
|
34
34
|
};
|
|
35
35
|
export type ControlPlaneStatusResource = {
|
|
36
36
|
health: string;
|
|
@@ -46,8 +46,8 @@ export type ControlPlaneResource = {
|
|
|
46
46
|
addons: AddonResource[];
|
|
47
47
|
};
|
|
48
48
|
export type TenantStatusResource = {
|
|
49
|
-
runtimes
|
|
50
|
-
controlPlane
|
|
49
|
+
runtimes?: RuntimeTenantResource[];
|
|
50
|
+
controlPlane?: ControlPlaneResource[];
|
|
51
51
|
};
|
|
52
52
|
export type TenantResource = {
|
|
53
53
|
apiVersion: string;
|
|
@@ -69,15 +69,15 @@ export type FromRef = {
|
|
|
69
69
|
id: string;
|
|
70
70
|
};
|
|
71
71
|
export type IamRoles = {
|
|
72
|
-
clusterRole
|
|
73
|
-
clusterNodeGroup
|
|
74
|
-
clusterAdminRoles
|
|
75
|
-
crossplane
|
|
76
|
-
argocd
|
|
77
|
-
karpenter
|
|
78
|
-
stackspotCloudPlatformAgent
|
|
79
|
-
stackspotCloudPlatformManager
|
|
80
|
-
stackspotCloudPlatformGateway
|
|
72
|
+
clusterRole?: string;
|
|
73
|
+
clusterNodeGroup?: string;
|
|
74
|
+
clusterAdminRoles?: string[];
|
|
75
|
+
crossplane?: string;
|
|
76
|
+
argocd?: string;
|
|
77
|
+
karpenter?: string;
|
|
78
|
+
stackspotCloudPlatformAgent?: string;
|
|
79
|
+
stackspotCloudPlatformManager?: string;
|
|
80
|
+
stackspotCloudPlatformGateway?: string;
|
|
81
81
|
};
|
|
82
82
|
export type CloudAccountConfiguration = {
|
|
83
83
|
fromRef?: FromRef;
|
|
@@ -109,13 +109,31 @@ export type NodeGroup = {
|
|
|
109
109
|
export type StackspotCloudPlatform = {
|
|
110
110
|
createIamRoles: boolean;
|
|
111
111
|
};
|
|
112
|
+
export type HelmResource = {
|
|
113
|
+
chartName: string;
|
|
114
|
+
version: string;
|
|
115
|
+
repoUrl: string;
|
|
116
|
+
};
|
|
117
|
+
export type SeleneApp = {
|
|
118
|
+
imageRepository: string;
|
|
119
|
+
imageVersion?: string;
|
|
120
|
+
};
|
|
121
|
+
export type SeleneApps = {
|
|
122
|
+
agent: SeleneApp;
|
|
123
|
+
gateway: SeleneApp;
|
|
124
|
+
manager: SeleneApp;
|
|
125
|
+
platformGatewayUrl?: string;
|
|
126
|
+
};
|
|
112
127
|
export type ControlPlane = {
|
|
113
128
|
addons: Addon[];
|
|
114
129
|
instanceTypes: string[];
|
|
115
130
|
kubernetes: Kubernetes;
|
|
116
131
|
nodeGroup: NodeGroup;
|
|
117
132
|
stackspotCloudPlatform: StackspotCloudPlatform;
|
|
118
|
-
crossplaneNamespace
|
|
133
|
+
crossplaneNamespace?: string;
|
|
134
|
+
eksHelm?: HelmResource;
|
|
135
|
+
seleneHelm?: HelmResource;
|
|
136
|
+
seleneApps?: SeleneApps;
|
|
119
137
|
};
|
|
120
138
|
export type TenantSpecResource = {
|
|
121
139
|
organizationId: string;
|
|
@@ -129,12 +147,12 @@ export type TenantDefinitionResource = {
|
|
|
129
147
|
spec: TenantSpecResource;
|
|
130
148
|
};
|
|
131
149
|
export type ApplicationDeploymentStatusResource = {
|
|
132
|
-
name
|
|
150
|
+
name?: string;
|
|
133
151
|
id: string;
|
|
134
152
|
appVersion: string;
|
|
135
153
|
status: string;
|
|
136
|
-
tags:
|
|
137
|
-
labels:
|
|
154
|
+
tags: NameValuePairResource[];
|
|
155
|
+
labels: NameValuePairResource[];
|
|
138
156
|
};
|
|
139
157
|
export type KubeResource = {
|
|
140
158
|
status: string;
|
|
@@ -188,65 +206,33 @@ export type OrganizationResource = {
|
|
|
188
206
|
metadata: MetadataResource;
|
|
189
207
|
status: OrganizationStatusResource;
|
|
190
208
|
};
|
|
209
|
+
export type OrganizationSpecResource = {
|
|
210
|
+
stackspotAccountId?: string;
|
|
211
|
+
};
|
|
191
212
|
export type OrganizationDefinitionResource = {
|
|
192
213
|
apiVersion: string;
|
|
193
214
|
kind: string;
|
|
194
215
|
metadata: MetadataResource;
|
|
216
|
+
spec?: OrganizationSpecResource;
|
|
195
217
|
};
|
|
196
|
-
export type
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
max: number;
|
|
203
|
-
};
|
|
204
|
-
export type Resources = {
|
|
205
|
-
cpu: string;
|
|
206
|
-
memory: string;
|
|
207
|
-
volumeSize: string;
|
|
208
|
-
};
|
|
209
|
-
export type Env = {
|
|
210
|
-
name: string;
|
|
211
|
-
value: string;
|
|
212
|
-
};
|
|
213
|
-
export type SecretEnv = {
|
|
214
|
-
name: string;
|
|
215
|
-
secretName: string;
|
|
216
|
-
secretKey: string;
|
|
217
|
-
};
|
|
218
|
-
export type Probe = {
|
|
219
|
-
port: number;
|
|
220
|
-
path: string;
|
|
221
|
-
};
|
|
222
|
-
export type Health = {
|
|
223
|
-
readiness: Probe;
|
|
224
|
-
liveness: Probe;
|
|
225
|
-
startupProbe: Probe;
|
|
226
|
-
};
|
|
227
|
-
export type Container = {
|
|
228
|
-
port: number;
|
|
229
|
-
resources: Resources;
|
|
230
|
-
env?: Env[];
|
|
231
|
-
secretEnv?: SecretEnv[];
|
|
232
|
-
health: Health;
|
|
233
|
-
};
|
|
234
|
-
export type BlueprintValues = {
|
|
235
|
-
dockerImage: string;
|
|
236
|
-
dockerImageTag: string;
|
|
237
|
-
service: Service;
|
|
238
|
-
hpa: Hpa;
|
|
239
|
-
container: Container;
|
|
218
|
+
export type ApplicationDeploymentMetadataResource = {
|
|
219
|
+
id?: string;
|
|
220
|
+
name?: string;
|
|
221
|
+
appVersion: string;
|
|
222
|
+
tags?: NameValuePairResource[];
|
|
223
|
+
labels?: NameValuePairResource[];
|
|
240
224
|
};
|
|
241
225
|
export type Spec = {
|
|
242
|
-
|
|
226
|
+
deployTemplate: string;
|
|
243
227
|
runtimeId: string;
|
|
244
|
-
|
|
228
|
+
deployTemplateValues: {
|
|
229
|
+
[key: string]: object;
|
|
230
|
+
};
|
|
245
231
|
};
|
|
246
232
|
export type ApplicationDeploymentResource = {
|
|
247
233
|
apiVersion: string;
|
|
248
234
|
kind: string;
|
|
249
|
-
metadata:
|
|
235
|
+
metadata: ApplicationDeploymentMetadataResource;
|
|
250
236
|
spec: Spec;
|
|
251
237
|
};
|
|
252
238
|
export type ManifestResource = {
|
|
@@ -277,6 +263,32 @@ export type LogResource = {
|
|
|
277
263
|
status?: LogStatusResource;
|
|
278
264
|
kind: string;
|
|
279
265
|
};
|
|
266
|
+
export type Resource = {
|
|
267
|
+
cpu: string;
|
|
268
|
+
memory: string;
|
|
269
|
+
};
|
|
270
|
+
export type Pod = {
|
|
271
|
+
name: string;
|
|
272
|
+
uptime: string;
|
|
273
|
+
restarts: string;
|
|
274
|
+
status: string;
|
|
275
|
+
containers: string;
|
|
276
|
+
healthStatus: string;
|
|
277
|
+
image: string;
|
|
278
|
+
limits: Resource;
|
|
279
|
+
requests: Resource;
|
|
280
|
+
};
|
|
281
|
+
export type Status = {
|
|
282
|
+
fetchHealthTimestamp: string;
|
|
283
|
+
pods: Pod[];
|
|
284
|
+
};
|
|
285
|
+
export type HealthResource = {
|
|
286
|
+
apiVersion: string;
|
|
287
|
+
kind: string;
|
|
288
|
+
metadata: MetadataResource;
|
|
289
|
+
spec: Spec;
|
|
290
|
+
status?: Status;
|
|
291
|
+
};
|
|
280
292
|
/**
|
|
281
293
|
* Returns paginated tenants.
|
|
282
294
|
*/
|
|
@@ -290,6 +302,9 @@ export function listTenants({ page, perPage }: {
|
|
|
290
302
|
} | {
|
|
291
303
|
status: 400;
|
|
292
304
|
data: ErrorBody;
|
|
305
|
+
} | {
|
|
306
|
+
status: 401;
|
|
307
|
+
data: ErrorBody;
|
|
293
308
|
} | {
|
|
294
309
|
status: 403;
|
|
295
310
|
data: ErrorBody;
|
|
@@ -330,6 +345,9 @@ export function createTenant({ tenantDefinitionResource }: {
|
|
|
330
345
|
} | {
|
|
331
346
|
status: 400;
|
|
332
347
|
data: ErrorBody;
|
|
348
|
+
} | {
|
|
349
|
+
status: 401;
|
|
350
|
+
data: ErrorBody;
|
|
333
351
|
} | {
|
|
334
352
|
status: 403;
|
|
335
353
|
data: ErrorBody;
|
|
@@ -371,6 +389,9 @@ export function listRuntimes({ page, perPage }: {
|
|
|
371
389
|
} | {
|
|
372
390
|
status: 400;
|
|
373
391
|
data: ErrorBody;
|
|
392
|
+
} | {
|
|
393
|
+
status: 401;
|
|
394
|
+
data: ErrorBody;
|
|
374
395
|
} | {
|
|
375
396
|
status: 403;
|
|
376
397
|
data: ErrorBody;
|
|
@@ -411,6 +432,9 @@ export function createRuntime({ runtimeDefinitionResource }: {
|
|
|
411
432
|
} | {
|
|
412
433
|
status: 400;
|
|
413
434
|
data: ErrorBody;
|
|
435
|
+
} | {
|
|
436
|
+
status: 401;
|
|
437
|
+
data: ErrorBody;
|
|
414
438
|
} | {
|
|
415
439
|
status: 403;
|
|
416
440
|
data: ErrorBody;
|
|
@@ -440,15 +464,22 @@ export function createRuntime({ runtimeDefinitionResource }: {
|
|
|
440
464
|
})));
|
|
441
465
|
}
|
|
442
466
|
/**
|
|
443
|
-
* Retrieves the organization
|
|
467
|
+
* Retrieves the Stackspot account organization
|
|
444
468
|
*/
|
|
445
|
-
export function
|
|
469
|
+
export function getOrganizations({ xAccountId, page, perPage }: {
|
|
470
|
+
xAccountId?: string;
|
|
471
|
+
page?: number;
|
|
472
|
+
perPage?: number;
|
|
473
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
446
474
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
447
475
|
status: 200;
|
|
448
|
-
data: OrganizationResource;
|
|
476
|
+
data: OrganizationResource[];
|
|
449
477
|
} | {
|
|
450
478
|
status: 400;
|
|
451
479
|
data: ErrorBody;
|
|
480
|
+
} | {
|
|
481
|
+
status: 401;
|
|
482
|
+
data: ErrorBody;
|
|
452
483
|
} | {
|
|
453
484
|
status: 403;
|
|
454
485
|
data: ErrorBody;
|
|
@@ -471,8 +502,14 @@ export function getOrganization(opts?: Oazapfts.RequestOpts) {
|
|
|
471
502
|
status?: string;
|
|
472
503
|
validationDetails?: ValidationDetail[];
|
|
473
504
|
};
|
|
474
|
-
}>(
|
|
475
|
-
|
|
505
|
+
}>(`/v1/organizations${QS.query(QS.explode({
|
|
506
|
+
page,
|
|
507
|
+
perPage
|
|
508
|
+
}))}`, {
|
|
509
|
+
...opts,
|
|
510
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
511
|
+
"X-Account-Id": xAccountId
|
|
512
|
+
})
|
|
476
513
|
}));
|
|
477
514
|
}
|
|
478
515
|
/**
|
|
@@ -486,6 +523,9 @@ export function createOrganization({ organizationDefinitionResource }: {
|
|
|
486
523
|
} | {
|
|
487
524
|
status: 400;
|
|
488
525
|
data: ErrorBody;
|
|
526
|
+
} | {
|
|
527
|
+
status: 401;
|
|
528
|
+
data: ErrorBody;
|
|
489
529
|
} | {
|
|
490
530
|
status: 403;
|
|
491
531
|
data: ErrorBody;
|
|
@@ -514,6 +554,13 @@ export function createOrganization({ organizationDefinitionResource }: {
|
|
|
514
554
|
body: organizationDefinitionResource
|
|
515
555
|
})));
|
|
516
556
|
}
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* Requires one of the following permissions:
|
|
560
|
+
* - cloud_platform:*:view
|
|
561
|
+
* - cloud_platform:*:support
|
|
562
|
+
*
|
|
563
|
+
*/
|
|
517
564
|
export function listApplicationDeployments(opts?: Oazapfts.RequestOpts) {
|
|
518
565
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
519
566
|
status: 200;
|
|
@@ -521,6 +568,9 @@ export function listApplicationDeployments(opts?: Oazapfts.RequestOpts) {
|
|
|
521
568
|
} | {
|
|
522
569
|
status: 400;
|
|
523
570
|
data: ErrorBody;
|
|
571
|
+
} | {
|
|
572
|
+
status: 401;
|
|
573
|
+
data: ErrorBody;
|
|
524
574
|
} | {
|
|
525
575
|
status: 404;
|
|
526
576
|
data: ErrorBody;
|
|
@@ -556,6 +606,9 @@ export function deploy({ applicationDeploymentResource }: {
|
|
|
556
606
|
} | {
|
|
557
607
|
status: 400;
|
|
558
608
|
data: ErrorBody;
|
|
609
|
+
} | {
|
|
610
|
+
status: 401;
|
|
611
|
+
data: ErrorBody;
|
|
559
612
|
} | {
|
|
560
613
|
status: 403;
|
|
561
614
|
data: ErrorBody;
|
|
@@ -595,6 +648,9 @@ export function apply({ manifestResource }: {
|
|
|
595
648
|
} | {
|
|
596
649
|
status: 400;
|
|
597
650
|
data: ErrorBody;
|
|
651
|
+
} | {
|
|
652
|
+
status: 401;
|
|
653
|
+
data: ErrorBody;
|
|
598
654
|
} | {
|
|
599
655
|
status: 403;
|
|
600
656
|
data: ErrorBody;
|
|
@@ -635,6 +691,9 @@ export function getTenant({ id }: {
|
|
|
635
691
|
} | {
|
|
636
692
|
status: 400;
|
|
637
693
|
data: ErrorBody;
|
|
694
|
+
} | {
|
|
695
|
+
status: 401;
|
|
696
|
+
data: ErrorBody;
|
|
638
697
|
} | {
|
|
639
698
|
status: 403;
|
|
640
699
|
data: ErrorBody;
|
|
@@ -673,6 +732,9 @@ export function getRuntime({ id }: {
|
|
|
673
732
|
} | {
|
|
674
733
|
status: 400;
|
|
675
734
|
data: ErrorBody;
|
|
735
|
+
} | {
|
|
736
|
+
status: 401;
|
|
737
|
+
data: ErrorBody;
|
|
676
738
|
} | {
|
|
677
739
|
status: 403;
|
|
678
740
|
data: ErrorBody;
|
|
@@ -700,18 +762,20 @@ export function getRuntime({ id }: {
|
|
|
700
762
|
}));
|
|
701
763
|
}
|
|
702
764
|
/**
|
|
703
|
-
*
|
|
765
|
+
* Retrieves the organization details.
|
|
704
766
|
*/
|
|
705
|
-
export function
|
|
706
|
-
|
|
707
|
-
perPage?: number;
|
|
767
|
+
export function downloadBootstrapModule({ version }: {
|
|
768
|
+
version?: string;
|
|
708
769
|
}, opts?: Oazapfts.RequestOpts) {
|
|
709
770
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
710
771
|
status: 200;
|
|
711
|
-
data:
|
|
772
|
+
data: Blob;
|
|
712
773
|
} | {
|
|
713
774
|
status: 400;
|
|
714
775
|
data: ErrorBody;
|
|
776
|
+
} | {
|
|
777
|
+
status: 401;
|
|
778
|
+
data: ErrorBody;
|
|
715
779
|
} | {
|
|
716
780
|
status: 403;
|
|
717
781
|
data: ErrorBody;
|
|
@@ -734,13 +798,19 @@ export function listOrganizations({ page, perPage }: {
|
|
|
734
798
|
status?: string;
|
|
735
799
|
validationDetails?: ValidationDetail[];
|
|
736
800
|
};
|
|
737
|
-
}>(`/v1/organizations/
|
|
738
|
-
|
|
739
|
-
perPage
|
|
801
|
+
}>(`/v1/organizations/bootstrap${QS.query(QS.explode({
|
|
802
|
+
version
|
|
740
803
|
}))}`, {
|
|
741
804
|
...opts
|
|
742
805
|
}));
|
|
743
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* Requires one of the following permissions:
|
|
810
|
+
* - cloud_platform:*:view
|
|
811
|
+
* - cloud_platform:*:support
|
|
812
|
+
*
|
|
813
|
+
*/
|
|
744
814
|
export function findApplicationDeploymentById({ deploymentId }: {
|
|
745
815
|
deploymentId: string;
|
|
746
816
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -750,6 +820,9 @@ export function findApplicationDeploymentById({ deploymentId }: {
|
|
|
750
820
|
} | {
|
|
751
821
|
status: 400;
|
|
752
822
|
data: ErrorBody;
|
|
823
|
+
} | {
|
|
824
|
+
status: 401;
|
|
825
|
+
data: ErrorBody;
|
|
753
826
|
} | {
|
|
754
827
|
status: 404;
|
|
755
828
|
data: ErrorBody;
|
|
@@ -773,8 +846,12 @@ export function findApplicationDeploymentById({ deploymentId }: {
|
|
|
773
846
|
...opts
|
|
774
847
|
}));
|
|
775
848
|
}
|
|
776
|
-
|
|
849
|
+
/**
|
|
850
|
+
* Get application deployment logs.
|
|
851
|
+
*/
|
|
852
|
+
export function getApplicationDeploymentLogs({ deploymentId, numberOfLines }: {
|
|
777
853
|
deploymentId: string;
|
|
854
|
+
numberOfLines?: number;
|
|
778
855
|
}, opts?: Oazapfts.RequestOpts) {
|
|
779
856
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
780
857
|
status: 200;
|
|
@@ -782,6 +859,49 @@ export function getApplicationDeploymentLogs({ deploymentId }: {
|
|
|
782
859
|
} | {
|
|
783
860
|
status: 400;
|
|
784
861
|
data: ErrorBody;
|
|
862
|
+
} | {
|
|
863
|
+
status: 401;
|
|
864
|
+
data: ErrorBody;
|
|
865
|
+
} | {
|
|
866
|
+
status: 404;
|
|
867
|
+
data: ErrorBody;
|
|
868
|
+
} | {
|
|
869
|
+
status: 422;
|
|
870
|
+
data: {
|
|
871
|
+
code?: string;
|
|
872
|
+
details?: string;
|
|
873
|
+
status?: string;
|
|
874
|
+
validationDetails?: ValidationDetail[];
|
|
875
|
+
};
|
|
876
|
+
} | {
|
|
877
|
+
status: 500;
|
|
878
|
+
data: {
|
|
879
|
+
code?: string;
|
|
880
|
+
details?: string;
|
|
881
|
+
status?: string;
|
|
882
|
+
validationDetails?: ValidationDetail[];
|
|
883
|
+
};
|
|
884
|
+
}>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
|
|
885
|
+
numberOfLines
|
|
886
|
+
}))}`, {
|
|
887
|
+
...opts
|
|
888
|
+
}));
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Get application deployment health.
|
|
892
|
+
*/
|
|
893
|
+
export function getApplicationDeploymentHealth({ deploymentId }: {
|
|
894
|
+
deploymentId: string;
|
|
895
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
896
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
897
|
+
status: 200;
|
|
898
|
+
data: HealthResource;
|
|
899
|
+
} | {
|
|
900
|
+
status: 400;
|
|
901
|
+
data: ErrorBody;
|
|
902
|
+
} | {
|
|
903
|
+
status: 401;
|
|
904
|
+
data: ErrorBody;
|
|
785
905
|
} | {
|
|
786
906
|
status: 404;
|
|
787
907
|
data: ErrorBody;
|
|
@@ -801,7 +921,7 @@ export function getApplicationDeploymentLogs({ deploymentId }: {
|
|
|
801
921
|
status?: string;
|
|
802
922
|
validationDetails?: ValidationDetail[];
|
|
803
923
|
};
|
|
804
|
-
}>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/
|
|
924
|
+
}>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
805
925
|
...opts
|
|
806
926
|
}));
|
|
807
927
|
}
|
|
@@ -5,7 +5,7 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
|
5
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
6
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
7
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
8
|
-
import { apply, createOrganization, createRuntime, createTenant, defaults, deploy,
|
|
8
|
+
import { apply, createOrganization, createRuntime, createTenant, defaults, deploy, getOrganizations, getRuntime, getTenant, listRuntimes } from '../api/cloudPlatformHorizon'
|
|
9
9
|
import { baseDictionary } from '../error/dictionary/base'
|
|
10
10
|
|
|
11
11
|
class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
@@ -23,11 +23,7 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
|
|
|
23
23
|
/**
|
|
24
24
|
* Get a list of organizations
|
|
25
25
|
*/
|
|
26
|
-
listOrganizations= this.query(removeAuthorizationParam(
|
|
27
|
-
/**
|
|
28
|
-
* Get details of an organization
|
|
29
|
-
*/
|
|
30
|
-
getOrganization= this.query(removeAuthorizationParam(getOrganization))
|
|
26
|
+
listOrganizations= this.query(removeAuthorizationParam(getOrganizations))
|
|
31
27
|
/**
|
|
32
28
|
* Get details of an tenant
|
|
33
29
|
*/
|