@stack-spot/portal-network 0.127.1 → 0.128.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 +14 -0
- package/dist/api/ai.d.ts +67 -27
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +11 -8
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +230 -90
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +135 -25
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/client/ai.d.ts +11 -5
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +21 -3
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts +37 -9
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +37 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/package.json +1 -1
- package/src/api/ai.ts +72 -29
- package/src/api/cloudPlatformHorizon.ts +703 -126
- package/src/client/ai.ts +30 -4
- package/src/client/cloud-platform-horizon.ts +18 -2
|
@@ -8,11 +8,21 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://cloud-platform-horizon.
|
|
11
|
+
baseUrl: "https://cloud-platform-horizon.stg.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://cloud-platform-horizon.
|
|
15
|
+
generatedServerUrl: "https://cloud-platform-horizon.stg.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
export type ValidationDetail = {
|
|
18
|
+
code: string;
|
|
19
|
+
values: string[];
|
|
20
|
+
};
|
|
21
|
+
export type ErrorBody = {
|
|
22
|
+
code: string;
|
|
23
|
+
details: string;
|
|
24
|
+
status: string;
|
|
25
|
+
validationDetails?: ValidationDetail[];
|
|
16
26
|
};
|
|
17
27
|
export type NameValuePairResource = {
|
|
18
28
|
name: string;
|
|
@@ -38,6 +48,7 @@ export type IamRoles = {
|
|
|
38
48
|
stackspotCloudPlatformAgent?: string;
|
|
39
49
|
stackspotCloudPlatformManager?: string;
|
|
40
50
|
stackspotCloudPlatformGateway?: string;
|
|
51
|
+
externalSecrets?: string;
|
|
41
52
|
};
|
|
42
53
|
export type CloudAccountConfiguration = {
|
|
43
54
|
fromRef?: FromRef;
|
|
@@ -51,6 +62,10 @@ export type CloudAccountConfiguration = {
|
|
|
51
62
|
};
|
|
52
63
|
export type Addon = {
|
|
53
64
|
name: string;
|
|
65
|
+
version: string;
|
|
66
|
+
values?: {
|
|
67
|
+
[key: string]: object;
|
|
68
|
+
};
|
|
54
69
|
};
|
|
55
70
|
export type Kubernetes = {
|
|
56
71
|
publicAccess: boolean;
|
|
@@ -74,9 +89,20 @@ export type HelmResource = {
|
|
|
74
89
|
version: string;
|
|
75
90
|
repoUrl: string;
|
|
76
91
|
};
|
|
92
|
+
export type Env = {
|
|
93
|
+
name: string;
|
|
94
|
+
value: string;
|
|
95
|
+
};
|
|
77
96
|
export type SeleneApp = {
|
|
78
97
|
imageRepository: string;
|
|
79
98
|
imageVersion?: string;
|
|
99
|
+
labels?: {
|
|
100
|
+
[key: string]: string;
|
|
101
|
+
};
|
|
102
|
+
annotations?: {
|
|
103
|
+
[key: string]: string;
|
|
104
|
+
};
|
|
105
|
+
env?: Env[];
|
|
80
106
|
};
|
|
81
107
|
export type SeleneApps = {
|
|
82
108
|
agent: SeleneApp;
|
|
@@ -95,7 +121,7 @@ export type Karpenter = {
|
|
|
95
121
|
};
|
|
96
122
|
export type ControlPlane = {
|
|
97
123
|
addons: Addon[];
|
|
98
|
-
instanceTypes
|
|
124
|
+
instanceTypes?: string[];
|
|
99
125
|
kubernetes: Kubernetes;
|
|
100
126
|
nodeGroup: NodeGroup;
|
|
101
127
|
stackspotCloudPlatform: StackspotCloudPlatform;
|
|
@@ -104,6 +130,13 @@ export type ControlPlane = {
|
|
|
104
130
|
seleneHelm?: HelmResource;
|
|
105
131
|
seleneApps?: SeleneApps;
|
|
106
132
|
karpenter?: Karpenter;
|
|
133
|
+
iamProvider?: string;
|
|
134
|
+
postBootstrapUserData?: string;
|
|
135
|
+
bootstrapClusterCreatorAdminPermissions?: boolean;
|
|
136
|
+
enabledClusterLogTypes?: string[];
|
|
137
|
+
argoConfigs?: {
|
|
138
|
+
[key: string]: object;
|
|
139
|
+
};
|
|
107
140
|
};
|
|
108
141
|
export type TenantSpecResource = {
|
|
109
142
|
organizationId?: string;
|
|
@@ -115,8 +148,6 @@ export type RuntimeTenantResource = {
|
|
|
115
148
|
id: string;
|
|
116
149
|
kubeVersion: string;
|
|
117
150
|
status: string;
|
|
118
|
-
tags?: NameValuePairResource[];
|
|
119
|
-
labels?: NameValuePairResource[];
|
|
120
151
|
};
|
|
121
152
|
export type ControlPlaneStatusResource = {
|
|
122
153
|
health: string;
|
|
@@ -124,6 +155,10 @@ export type ControlPlaneStatusResource = {
|
|
|
124
155
|
};
|
|
125
156
|
export type AddonResource = {
|
|
126
157
|
name: string;
|
|
158
|
+
version: string;
|
|
159
|
+
values?: {
|
|
160
|
+
[key: string]: object;
|
|
161
|
+
};
|
|
127
162
|
};
|
|
128
163
|
export type ControlPlaneResource = {
|
|
129
164
|
id: string;
|
|
@@ -142,16 +177,6 @@ export type TenantResource = {
|
|
|
142
177
|
spec?: TenantSpecResource;
|
|
143
178
|
status?: TenantStatusResource;
|
|
144
179
|
};
|
|
145
|
-
export type ValidationDetail = {
|
|
146
|
-
code: string;
|
|
147
|
-
values: string[];
|
|
148
|
-
};
|
|
149
|
-
export type ErrorBody = {
|
|
150
|
-
code: string;
|
|
151
|
-
details: string;
|
|
152
|
-
status: string;
|
|
153
|
-
validationDetails?: ValidationDetail[];
|
|
154
|
-
};
|
|
155
180
|
export type RuntimeMetadataResource = {
|
|
156
181
|
id?: string;
|
|
157
182
|
name?: string;
|
|
@@ -162,6 +187,12 @@ export type RuntimeMetadataResource = {
|
|
|
162
187
|
tenantName?: string;
|
|
163
188
|
tenantId?: string;
|
|
164
189
|
};
|
|
190
|
+
export type RuntimeSpecResource = {
|
|
191
|
+
tenantId?: string;
|
|
192
|
+
/** Cloud account configuration. Either set fromRef to use a existing configuration or set each value to use a different one. */
|
|
193
|
+
cloudAccountConfiguration: CloudAccountConfiguration;
|
|
194
|
+
controlPlane: ControlPlane;
|
|
195
|
+
};
|
|
165
196
|
export type ApplicationDeploymentStatusResource = {
|
|
166
197
|
name?: string;
|
|
167
198
|
id: string;
|
|
@@ -184,7 +215,8 @@ export type RuntimeResource = {
|
|
|
184
215
|
apiVersion: string;
|
|
185
216
|
kind: string;
|
|
186
217
|
metadata: RuntimeMetadataResource;
|
|
187
|
-
|
|
218
|
+
spec: RuntimeSpecResource;
|
|
219
|
+
status?: RuntimeStatusResource;
|
|
188
220
|
};
|
|
189
221
|
export type MetadataResource = {
|
|
190
222
|
id?: string;
|
|
@@ -192,18 +224,6 @@ export type MetadataResource = {
|
|
|
192
224
|
tags?: NameValuePairResource[];
|
|
193
225
|
labels?: NameValuePairResource[];
|
|
194
226
|
};
|
|
195
|
-
export type RuntimeSpecResource = {
|
|
196
|
-
tenantId?: string;
|
|
197
|
-
/** Cloud account configuration. Either set fromRef to use a existing configuration or set each value to use a different one. */
|
|
198
|
-
cloudAccountConfiguration: CloudAccountConfiguration;
|
|
199
|
-
controlPlane: ControlPlane;
|
|
200
|
-
};
|
|
201
|
-
export type RuntimeDefinitionResource = {
|
|
202
|
-
apiVersion: string;
|
|
203
|
-
kind: string;
|
|
204
|
-
metadata: MetadataResource;
|
|
205
|
-
spec: RuntimeSpecResource;
|
|
206
|
-
};
|
|
207
227
|
export type TenantControlPlaneResource = {
|
|
208
228
|
status: string;
|
|
209
229
|
version: string;
|
|
@@ -223,40 +243,104 @@ export type OrganizationStatusResource = {
|
|
|
223
243
|
controlPlanes: ControlPlaneWithStatusResource[];
|
|
224
244
|
initialized: boolean;
|
|
225
245
|
};
|
|
226
|
-
export type OrganizationResource = {
|
|
227
|
-
apiVersion: string;
|
|
228
|
-
kind: string;
|
|
229
|
-
metadata: MetadataResource;
|
|
230
|
-
status: OrganizationStatusResource;
|
|
231
|
-
};
|
|
232
246
|
export type OrganizationSpecResource = {
|
|
233
247
|
stackspotAccountId?: string;
|
|
234
248
|
};
|
|
235
|
-
export type
|
|
249
|
+
export type OrganizationResource = {
|
|
236
250
|
apiVersion: string;
|
|
237
251
|
kind: string;
|
|
238
252
|
metadata: MetadataResource;
|
|
253
|
+
status?: OrganizationStatusResource;
|
|
239
254
|
spec?: OrganizationSpecResource;
|
|
240
255
|
};
|
|
241
|
-
export type
|
|
256
|
+
export type ManifestMetadata = {
|
|
257
|
+
name: string;
|
|
242
258
|
id?: string;
|
|
243
|
-
|
|
259
|
+
version: string;
|
|
260
|
+
labels?: {
|
|
261
|
+
[key: string]: string;
|
|
262
|
+
};
|
|
263
|
+
tags?: {
|
|
264
|
+
[key: string]: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
export type ManifestStatus = object;
|
|
268
|
+
export type ManifestSpec = object;
|
|
269
|
+
export type ApplicationDeploymentManifestBase = {
|
|
270
|
+
metadata: ManifestMetadata;
|
|
271
|
+
status?: ManifestStatus;
|
|
272
|
+
spec: ManifestSpec;
|
|
273
|
+
apiVersion: string;
|
|
274
|
+
};
|
|
275
|
+
export type Metadata = {
|
|
276
|
+
id?: string;
|
|
277
|
+
name: string;
|
|
244
278
|
appVersion: string;
|
|
245
|
-
tags
|
|
246
|
-
|
|
279
|
+
tags: {
|
|
280
|
+
[key: string]: string;
|
|
281
|
+
};
|
|
282
|
+
labels: {
|
|
283
|
+
[key: string]: string;
|
|
284
|
+
};
|
|
247
285
|
};
|
|
248
286
|
export type Spec = {
|
|
249
|
-
deployTemplate: string;
|
|
250
287
|
runtimeId: string;
|
|
288
|
+
applicationId: string;
|
|
289
|
+
deployTemplate: string;
|
|
251
290
|
deployTemplateValues: {
|
|
252
291
|
[key: string]: object;
|
|
253
292
|
};
|
|
254
293
|
};
|
|
255
|
-
export type
|
|
294
|
+
export type ApplicationDeploymentManifestV1Alpha1 = {
|
|
295
|
+
apiVersion: "ApplicationDeploymentManifestV1Alpha1";
|
|
296
|
+
} & ApplicationDeploymentManifestBase & {
|
|
297
|
+
metadata?: Metadata;
|
|
298
|
+
spec?: Spec;
|
|
299
|
+
};
|
|
300
|
+
export type MetadataV1 = {
|
|
301
|
+
id?: string;
|
|
302
|
+
name: string;
|
|
303
|
+
version: string;
|
|
304
|
+
tags?: {
|
|
305
|
+
[key: string]: string;
|
|
306
|
+
};
|
|
307
|
+
labels?: {
|
|
308
|
+
[key: string]: string;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
export type Status = {
|
|
312
|
+
revisionNumber?: number;
|
|
313
|
+
};
|
|
314
|
+
export type ApplicationDeploymentManifestV1Alpha2 = {
|
|
315
|
+
apiVersion: "ApplicationDeploymentManifestV1Alpha2";
|
|
316
|
+
} & ApplicationDeploymentManifestBase & {
|
|
317
|
+
metadata?: MetadataV1;
|
|
318
|
+
spec?: Spec;
|
|
319
|
+
status?: Status;
|
|
320
|
+
};
|
|
321
|
+
export type DeployTemplateManifestBase = {
|
|
322
|
+
metadata: ManifestMetadata;
|
|
323
|
+
status?: ManifestStatus;
|
|
324
|
+
spec: ManifestSpec;
|
|
256
325
|
apiVersion: string;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
326
|
+
};
|
|
327
|
+
export type DeployTemplateManifestV1Alpha1 = {
|
|
328
|
+
apiVersion: "DeployTemplateManifestV1Alpha1";
|
|
329
|
+
} & DeployTemplateManifestBase & {
|
|
330
|
+
metadata?: MetadataV1;
|
|
331
|
+
spec?: Spec;
|
|
332
|
+
};
|
|
333
|
+
export type AddonManifestBase = {
|
|
334
|
+
metadata: ManifestMetadata;
|
|
335
|
+
status?: ManifestStatus;
|
|
336
|
+
spec: ManifestSpec;
|
|
337
|
+
apiVersion: string;
|
|
338
|
+
};
|
|
339
|
+
export type AddonManifestV1Alpha1 = {
|
|
340
|
+
apiVersion: "AddonManifestV1Alpha1";
|
|
341
|
+
} & AddonManifestBase & {
|
|
342
|
+
metadata?: MetadataV1;
|
|
343
|
+
spec?: Spec;
|
|
260
344
|
};
|
|
261
345
|
export type ManifestResource = {
|
|
262
346
|
apiVersion: string;
|
|
@@ -286,26 +370,6 @@ export type LogResource = {
|
|
|
286
370
|
status?: LogStatusResource;
|
|
287
371
|
kind: string;
|
|
288
372
|
};
|
|
289
|
-
export type Resource = {
|
|
290
|
-
cpu: string;
|
|
291
|
-
memory: string;
|
|
292
|
-
};
|
|
293
|
-
export type Pod = {
|
|
294
|
-
name: string;
|
|
295
|
-
uptime: string;
|
|
296
|
-
restarts: string;
|
|
297
|
-
status: string;
|
|
298
|
-
containers: string;
|
|
299
|
-
healthStatus: string;
|
|
300
|
-
image: string;
|
|
301
|
-
limits: Resource;
|
|
302
|
-
requests: Resource;
|
|
303
|
-
};
|
|
304
|
-
export type Status = {
|
|
305
|
-
fetchHealthTimestamp: string;
|
|
306
|
-
healthStatus: string;
|
|
307
|
-
pods: Pod[];
|
|
308
|
-
};
|
|
309
373
|
export type HealthResource = {
|
|
310
374
|
apiVersion: string;
|
|
311
375
|
kind: string;
|
|
@@ -313,10 +377,138 @@ export type HealthResource = {
|
|
|
313
377
|
spec: Spec;
|
|
314
378
|
status?: Status;
|
|
315
379
|
};
|
|
380
|
+
/**
|
|
381
|
+
* Retrieves the organization's icon image.
|
|
382
|
+
*/
|
|
383
|
+
export function getOrganizationIcon({ organizationId }: {
|
|
384
|
+
organizationId: string;
|
|
385
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
386
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
387
|
+
status: 200;
|
|
388
|
+
data: Blob;
|
|
389
|
+
} | {
|
|
390
|
+
status: 400;
|
|
391
|
+
data: ErrorBody;
|
|
392
|
+
} | {
|
|
393
|
+
status: 401;
|
|
394
|
+
data: ErrorBody;
|
|
395
|
+
} | {
|
|
396
|
+
status: 404;
|
|
397
|
+
data: ErrorBody;
|
|
398
|
+
} | {
|
|
399
|
+
status: 422;
|
|
400
|
+
data: {
|
|
401
|
+
code?: string;
|
|
402
|
+
details?: string;
|
|
403
|
+
status?: string;
|
|
404
|
+
validationDetails?: ValidationDetail[];
|
|
405
|
+
};
|
|
406
|
+
} | {
|
|
407
|
+
status: 500;
|
|
408
|
+
data: {
|
|
409
|
+
code?: string;
|
|
410
|
+
details?: string;
|
|
411
|
+
status?: string;
|
|
412
|
+
validationDetails?: ValidationDetail[];
|
|
413
|
+
};
|
|
414
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, {
|
|
415
|
+
...opts
|
|
416
|
+
}));
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Uploads or update the organization's icon.
|
|
420
|
+
*/
|
|
421
|
+
export function createOrUpdateOrganizationIcon({ organizationId, body }: {
|
|
422
|
+
organizationId: string;
|
|
423
|
+
body?: {
|
|
424
|
+
icon: Blob;
|
|
425
|
+
};
|
|
426
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
427
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
428
|
+
status: 200;
|
|
429
|
+
data: object;
|
|
430
|
+
} | {
|
|
431
|
+
status: 400;
|
|
432
|
+
data: ErrorBody;
|
|
433
|
+
} | {
|
|
434
|
+
status: 401;
|
|
435
|
+
data: ErrorBody;
|
|
436
|
+
} | {
|
|
437
|
+
status: 404;
|
|
438
|
+
data: ErrorBody;
|
|
439
|
+
} | {
|
|
440
|
+
status: 422;
|
|
441
|
+
data: {
|
|
442
|
+
code?: string;
|
|
443
|
+
details?: string;
|
|
444
|
+
status?: string;
|
|
445
|
+
validationDetails?: ValidationDetail[];
|
|
446
|
+
};
|
|
447
|
+
} | {
|
|
448
|
+
status: 500;
|
|
449
|
+
data: {
|
|
450
|
+
code?: string;
|
|
451
|
+
details?: string;
|
|
452
|
+
status?: string;
|
|
453
|
+
validationDetails?: ValidationDetail[];
|
|
454
|
+
};
|
|
455
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
|
|
456
|
+
...opts,
|
|
457
|
+
method: "PUT",
|
|
458
|
+
body
|
|
459
|
+
})));
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Uploads the organization's icon.
|
|
463
|
+
*/
|
|
464
|
+
export function createOrganizationIcon({ organizationId, body }: {
|
|
465
|
+
organizationId: string;
|
|
466
|
+
body?: {
|
|
467
|
+
icon: Blob;
|
|
468
|
+
};
|
|
469
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
470
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
471
|
+
status: 200;
|
|
472
|
+
data: object;
|
|
473
|
+
} | {
|
|
474
|
+
status: 201;
|
|
475
|
+
data: object;
|
|
476
|
+
} | {
|
|
477
|
+
status: 400;
|
|
478
|
+
data: ErrorBody;
|
|
479
|
+
} | {
|
|
480
|
+
status: 401;
|
|
481
|
+
data: ErrorBody;
|
|
482
|
+
} | {
|
|
483
|
+
status: 404;
|
|
484
|
+
data: ErrorBody;
|
|
485
|
+
} | {
|
|
486
|
+
status: 422;
|
|
487
|
+
data: {
|
|
488
|
+
code?: string;
|
|
489
|
+
details?: string;
|
|
490
|
+
status?: string;
|
|
491
|
+
validationDetails?: ValidationDetail[];
|
|
492
|
+
};
|
|
493
|
+
} | {
|
|
494
|
+
status: 500;
|
|
495
|
+
data: {
|
|
496
|
+
code?: string;
|
|
497
|
+
details?: string;
|
|
498
|
+
status?: string;
|
|
499
|
+
validationDetails?: ValidationDetail[];
|
|
500
|
+
};
|
|
501
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
|
|
502
|
+
...opts,
|
|
503
|
+
method: "POST",
|
|
504
|
+
body
|
|
505
|
+
})));
|
|
506
|
+
}
|
|
316
507
|
/**
|
|
317
508
|
* List all tenants in the stackspot account
|
|
318
509
|
*/
|
|
319
|
-
export function listTenants({ page, perPage }: {
|
|
510
|
+
export function listTenants({ xAccountId, page, perPage }: {
|
|
511
|
+
xAccountId?: string;
|
|
320
512
|
page?: number;
|
|
321
513
|
perPage?: number;
|
|
322
514
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -355,7 +547,10 @@ export function listTenants({ page, perPage }: {
|
|
|
355
547
|
page,
|
|
356
548
|
perPage
|
|
357
549
|
}))}`, {
|
|
358
|
-
...opts
|
|
550
|
+
...opts,
|
|
551
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
552
|
+
"X-Account-Id": xAccountId
|
|
553
|
+
})
|
|
359
554
|
}));
|
|
360
555
|
}
|
|
361
556
|
/**
|
|
@@ -403,7 +598,8 @@ export function createTenant({ tenantResource }: {
|
|
|
403
598
|
/**
|
|
404
599
|
* Returns paginated runtimes.
|
|
405
600
|
*/
|
|
406
|
-
export function listRuntimes({ page, perPage }: {
|
|
601
|
+
export function listRuntimes({ xAccountId, page, perPage }: {
|
|
602
|
+
xAccountId?: string;
|
|
407
603
|
page?: number;
|
|
408
604
|
perPage?: number;
|
|
409
605
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -442,14 +638,17 @@ export function listRuntimes({ page, perPage }: {
|
|
|
442
638
|
page,
|
|
443
639
|
perPage
|
|
444
640
|
}))}`, {
|
|
445
|
-
...opts
|
|
641
|
+
...opts,
|
|
642
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
643
|
+
"X-Account-Id": xAccountId
|
|
644
|
+
})
|
|
446
645
|
}));
|
|
447
646
|
}
|
|
448
647
|
/**
|
|
449
648
|
* Creates a new runtime.
|
|
450
649
|
*/
|
|
451
|
-
export function createRuntime({
|
|
452
|
-
|
|
650
|
+
export function createRuntime({ runtimeResource }: {
|
|
651
|
+
runtimeResource: RuntimeResource;
|
|
453
652
|
}, opts?: Oazapfts.RequestOpts) {
|
|
454
653
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
455
654
|
status: 201;
|
|
@@ -484,7 +683,7 @@ export function createRuntime({ runtimeDefinitionResource }: {
|
|
|
484
683
|
}>("/v1/runtimes", oazapfts.json({
|
|
485
684
|
...opts,
|
|
486
685
|
method: "POST",
|
|
487
|
-
body:
|
|
686
|
+
body: runtimeResource
|
|
488
687
|
})));
|
|
489
688
|
}
|
|
490
689
|
/**
|
|
@@ -539,11 +738,12 @@ export function getOrganizations({ xAccountId, page, perPage }: {
|
|
|
539
738
|
/**
|
|
540
739
|
* Creates a new organization.
|
|
541
740
|
*/
|
|
542
|
-
export function createOrganization({
|
|
543
|
-
|
|
741
|
+
export function createOrganization({ organizationResource }: {
|
|
742
|
+
organizationResource: OrganizationResource;
|
|
544
743
|
}, opts?: Oazapfts.RequestOpts) {
|
|
545
744
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
546
745
|
status: 201;
|
|
746
|
+
data: OrganizationResource;
|
|
547
747
|
} | {
|
|
548
748
|
status: 400;
|
|
549
749
|
data: ErrorBody;
|
|
@@ -575,7 +775,7 @@ export function createOrganization({ organizationDefinitionResource }: {
|
|
|
575
775
|
}>("/v1/organizations", oazapfts.json({
|
|
576
776
|
...opts,
|
|
577
777
|
method: "POST",
|
|
578
|
-
body:
|
|
778
|
+
body: organizationResource
|
|
579
779
|
})));
|
|
580
780
|
}
|
|
581
781
|
/**
|
|
@@ -633,6 +833,7 @@ export function createTenant1({ organizationId, tenantResource }: {
|
|
|
633
833
|
}, opts?: Oazapfts.RequestOpts) {
|
|
634
834
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
635
835
|
status: 201;
|
|
836
|
+
data: TenantResource;
|
|
636
837
|
} | {
|
|
637
838
|
status: 400;
|
|
638
839
|
data: ErrorBody;
|
|
@@ -717,13 +918,14 @@ export function listRuntimes1({ organizationId, tenantId, page, perPage }: {
|
|
|
717
918
|
/**
|
|
718
919
|
* Creates a new runtime.
|
|
719
920
|
*/
|
|
720
|
-
export function createRuntime1({ organizationId, tenantId,
|
|
921
|
+
export function createRuntime1({ organizationId, tenantId, runtimeResource }: {
|
|
721
922
|
organizationId: string;
|
|
722
923
|
tenantId: string;
|
|
723
|
-
|
|
924
|
+
runtimeResource: RuntimeResource;
|
|
724
925
|
}, opts?: Oazapfts.RequestOpts) {
|
|
725
926
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
726
927
|
status: 201;
|
|
928
|
+
data: RuntimeResource;
|
|
727
929
|
} | {
|
|
728
930
|
status: 400;
|
|
729
931
|
data: ErrorBody;
|
|
@@ -755,7 +957,7 @@ export function createRuntime1({ organizationId, tenantId, runtimeDefinitionReso
|
|
|
755
957
|
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes`, oazapfts.json({
|
|
756
958
|
...opts,
|
|
757
959
|
method: "POST",
|
|
758
|
-
body:
|
|
960
|
+
body: runtimeResource
|
|
759
961
|
})));
|
|
760
962
|
}
|
|
761
963
|
/**
|
|
@@ -772,7 +974,7 @@ export function listApplicationDeployments({ organizationId, tenantId, runtimeId
|
|
|
772
974
|
}, opts?: Oazapfts.RequestOpts) {
|
|
773
975
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
774
976
|
status: 200;
|
|
775
|
-
data:
|
|
977
|
+
data: (ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2)[];
|
|
776
978
|
} | {
|
|
777
979
|
status: 400;
|
|
778
980
|
data: ErrorBody;
|
|
@@ -805,15 +1007,15 @@ export function listApplicationDeployments({ organizationId, tenantId, runtimeId
|
|
|
805
1007
|
/**
|
|
806
1008
|
* Apply manifesto resource yaml.
|
|
807
1009
|
*/
|
|
808
|
-
export function deploy({ organizationId, tenantId, runtimeId,
|
|
1010
|
+
export function deploy({ organizationId, tenantId, runtimeId, body }: {
|
|
809
1011
|
organizationId: string;
|
|
810
1012
|
tenantId: string;
|
|
811
1013
|
runtimeId: string;
|
|
812
|
-
|
|
1014
|
+
body: ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2;
|
|
813
1015
|
}, opts?: Oazapfts.RequestOpts) {
|
|
814
1016
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
815
1017
|
status: 202;
|
|
816
|
-
data:
|
|
1018
|
+
data: ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2;
|
|
817
1019
|
} | {
|
|
818
1020
|
status: 400;
|
|
819
1021
|
data: ErrorBody;
|
|
@@ -845,16 +1047,18 @@ export function deploy({ organizationId, tenantId, runtimeId, applicationDeploym
|
|
|
845
1047
|
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, oazapfts.json({
|
|
846
1048
|
...opts,
|
|
847
1049
|
method: "POST",
|
|
848
|
-
body
|
|
1050
|
+
body
|
|
849
1051
|
})));
|
|
850
1052
|
}
|
|
851
1053
|
/**
|
|
852
|
-
* List
|
|
1054
|
+
* List DeployTemplate's
|
|
853
1055
|
*/
|
|
854
|
-
export function
|
|
1056
|
+
export function listDeployTemplate({ organizationId }: {
|
|
1057
|
+
organizationId: string;
|
|
1058
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
855
1059
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
856
1060
|
status: 200;
|
|
857
|
-
data:
|
|
1061
|
+
data: (DeployTemplateManifestV1Alpha1)[];
|
|
858
1062
|
} | {
|
|
859
1063
|
status: 400;
|
|
860
1064
|
data: ErrorBody;
|
|
@@ -880,28 +1084,26 @@ export function listApplicationDeployments1(opts?: Oazapfts.RequestOpts) {
|
|
|
880
1084
|
status?: string;
|
|
881
1085
|
validationDetails?: ValidationDetail[];
|
|
882
1086
|
};
|
|
883
|
-
}>(
|
|
1087
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, {
|
|
884
1088
|
...opts
|
|
885
1089
|
}));
|
|
886
1090
|
}
|
|
887
1091
|
/**
|
|
888
|
-
*
|
|
1092
|
+
* Create DeployTemplate
|
|
889
1093
|
*/
|
|
890
|
-
export function
|
|
891
|
-
|
|
1094
|
+
export function createDeployTemplate({ organizationId, body }: {
|
|
1095
|
+
organizationId: string;
|
|
1096
|
+
body: DeployTemplateManifestV1Alpha1;
|
|
892
1097
|
}, opts?: Oazapfts.RequestOpts) {
|
|
893
1098
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
894
1099
|
status: 202;
|
|
895
|
-
data:
|
|
1100
|
+
data: DeployTemplateManifestV1Alpha1;
|
|
896
1101
|
} | {
|
|
897
1102
|
status: 400;
|
|
898
1103
|
data: ErrorBody;
|
|
899
1104
|
} | {
|
|
900
1105
|
status: 401;
|
|
901
1106
|
data: ErrorBody;
|
|
902
|
-
} | {
|
|
903
|
-
status: 403;
|
|
904
|
-
data: ErrorBody;
|
|
905
1107
|
} | {
|
|
906
1108
|
status: 404;
|
|
907
1109
|
data: ErrorBody;
|
|
@@ -921,29 +1123,27 @@ export function deploy1({ applicationDeploymentResource }: {
|
|
|
921
1123
|
status?: string;
|
|
922
1124
|
validationDetails?: ValidationDetail[];
|
|
923
1125
|
};
|
|
924
|
-
}>(
|
|
1126
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, oazapfts.json({
|
|
925
1127
|
...opts,
|
|
926
1128
|
method: "POST",
|
|
927
|
-
body
|
|
1129
|
+
body
|
|
928
1130
|
})));
|
|
929
1131
|
}
|
|
930
1132
|
/**
|
|
931
|
-
*
|
|
1133
|
+
* List Addon's
|
|
932
1134
|
*/
|
|
933
|
-
export function
|
|
934
|
-
|
|
1135
|
+
export function listAddon({ organizationId }: {
|
|
1136
|
+
organizationId: string;
|
|
935
1137
|
}, opts?: Oazapfts.RequestOpts) {
|
|
936
1138
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
937
|
-
status:
|
|
1139
|
+
status: 200;
|
|
1140
|
+
data: (AddonManifestV1Alpha1)[];
|
|
938
1141
|
} | {
|
|
939
1142
|
status: 400;
|
|
940
1143
|
data: ErrorBody;
|
|
941
1144
|
} | {
|
|
942
1145
|
status: 401;
|
|
943
1146
|
data: ErrorBody;
|
|
944
|
-
} | {
|
|
945
|
-
status: 403;
|
|
946
|
-
data: ErrorBody;
|
|
947
1147
|
} | {
|
|
948
1148
|
status: 404;
|
|
949
1149
|
data: ErrorBody;
|
|
@@ -963,21 +1163,20 @@ export function apply({ manifestResource }: {
|
|
|
963
1163
|
status?: string;
|
|
964
1164
|
validationDetails?: ValidationDetail[];
|
|
965
1165
|
};
|
|
966
|
-
}>(
|
|
967
|
-
...opts
|
|
968
|
-
|
|
969
|
-
body: manifestResource
|
|
970
|
-
})));
|
|
1166
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, {
|
|
1167
|
+
...opts
|
|
1168
|
+
}));
|
|
971
1169
|
}
|
|
972
1170
|
/**
|
|
973
|
-
*
|
|
1171
|
+
* Create Addon
|
|
974
1172
|
*/
|
|
975
|
-
export function
|
|
976
|
-
|
|
1173
|
+
export function createAddon({ organizationId, body }: {
|
|
1174
|
+
organizationId: string;
|
|
1175
|
+
body: AddonManifestV1Alpha1;
|
|
977
1176
|
}, opts?: Oazapfts.RequestOpts) {
|
|
978
1177
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
979
|
-
status:
|
|
980
|
-
data:
|
|
1178
|
+
status: 202;
|
|
1179
|
+
data: AddonManifestV1Alpha1;
|
|
981
1180
|
} | {
|
|
982
1181
|
status: 400;
|
|
983
1182
|
data: ErrorBody;
|
|
@@ -985,7 +1184,42 @@ export function getTenant({ id }: {
|
|
|
985
1184
|
status: 401;
|
|
986
1185
|
data: ErrorBody;
|
|
987
1186
|
} | {
|
|
988
|
-
status:
|
|
1187
|
+
status: 404;
|
|
1188
|
+
data: ErrorBody;
|
|
1189
|
+
} | {
|
|
1190
|
+
status: 422;
|
|
1191
|
+
data: {
|
|
1192
|
+
code?: string;
|
|
1193
|
+
details?: string;
|
|
1194
|
+
status?: string;
|
|
1195
|
+
validationDetails?: ValidationDetail[];
|
|
1196
|
+
};
|
|
1197
|
+
} | {
|
|
1198
|
+
status: 500;
|
|
1199
|
+
data: {
|
|
1200
|
+
code?: string;
|
|
1201
|
+
details?: string;
|
|
1202
|
+
status?: string;
|
|
1203
|
+
validationDetails?: ValidationDetail[];
|
|
1204
|
+
};
|
|
1205
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, oazapfts.json({
|
|
1206
|
+
...opts,
|
|
1207
|
+
method: "POST",
|
|
1208
|
+
body
|
|
1209
|
+
})));
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* List application deployments
|
|
1213
|
+
*/
|
|
1214
|
+
export function listApplicationDeployments1(opts?: Oazapfts.RequestOpts) {
|
|
1215
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1216
|
+
status: 200;
|
|
1217
|
+
data: (ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2)[];
|
|
1218
|
+
} | {
|
|
1219
|
+
status: 400;
|
|
1220
|
+
data: ErrorBody;
|
|
1221
|
+
} | {
|
|
1222
|
+
status: 401;
|
|
989
1223
|
data: ErrorBody;
|
|
990
1224
|
} | {
|
|
991
1225
|
status: 404;
|
|
@@ -1006,19 +1240,104 @@ export function getTenant({ id }: {
|
|
|
1006
1240
|
status?: string;
|
|
1007
1241
|
validationDetails?: ValidationDetail[];
|
|
1008
1242
|
};
|
|
1009
|
-
}>(
|
|
1243
|
+
}>("/v1/applications/deployments", {
|
|
1010
1244
|
...opts
|
|
1011
1245
|
}));
|
|
1012
1246
|
}
|
|
1013
1247
|
/**
|
|
1014
|
-
*
|
|
1248
|
+
* Apply manifesto resource yaml.
|
|
1015
1249
|
*/
|
|
1016
|
-
export function
|
|
1250
|
+
export function deploy1({ body }: {
|
|
1251
|
+
body: ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2;
|
|
1252
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1253
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1254
|
+
status: 202;
|
|
1255
|
+
data: ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2;
|
|
1256
|
+
} | {
|
|
1257
|
+
status: 400;
|
|
1258
|
+
data: ErrorBody;
|
|
1259
|
+
} | {
|
|
1260
|
+
status: 401;
|
|
1261
|
+
data: ErrorBody;
|
|
1262
|
+
} | {
|
|
1263
|
+
status: 403;
|
|
1264
|
+
data: ErrorBody;
|
|
1265
|
+
} | {
|
|
1266
|
+
status: 404;
|
|
1267
|
+
data: ErrorBody;
|
|
1268
|
+
} | {
|
|
1269
|
+
status: 422;
|
|
1270
|
+
data: {
|
|
1271
|
+
code?: string;
|
|
1272
|
+
details?: string;
|
|
1273
|
+
status?: string;
|
|
1274
|
+
validationDetails?: ValidationDetail[];
|
|
1275
|
+
};
|
|
1276
|
+
} | {
|
|
1277
|
+
status: 500;
|
|
1278
|
+
data: {
|
|
1279
|
+
code?: string;
|
|
1280
|
+
details?: string;
|
|
1281
|
+
status?: string;
|
|
1282
|
+
validationDetails?: ValidationDetail[];
|
|
1283
|
+
};
|
|
1284
|
+
}>("/v1/applications/deployments", oazapfts.json({
|
|
1285
|
+
...opts,
|
|
1286
|
+
method: "POST",
|
|
1287
|
+
body
|
|
1288
|
+
})));
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* Applies a manifest to the control plane.
|
|
1292
|
+
*/
|
|
1293
|
+
export function apply({ manifestResource }: {
|
|
1294
|
+
manifestResource: ManifestResource;
|
|
1295
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1296
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1297
|
+
status: 202;
|
|
1298
|
+
} | {
|
|
1299
|
+
status: 400;
|
|
1300
|
+
data: ErrorBody;
|
|
1301
|
+
} | {
|
|
1302
|
+
status: 401;
|
|
1303
|
+
data: ErrorBody;
|
|
1304
|
+
} | {
|
|
1305
|
+
status: 403;
|
|
1306
|
+
data: ErrorBody;
|
|
1307
|
+
} | {
|
|
1308
|
+
status: 404;
|
|
1309
|
+
data: ErrorBody;
|
|
1310
|
+
} | {
|
|
1311
|
+
status: 422;
|
|
1312
|
+
data: {
|
|
1313
|
+
code?: string;
|
|
1314
|
+
details?: string;
|
|
1315
|
+
status?: string;
|
|
1316
|
+
validationDetails?: ValidationDetail[];
|
|
1317
|
+
};
|
|
1318
|
+
} | {
|
|
1319
|
+
status: 500;
|
|
1320
|
+
data: {
|
|
1321
|
+
code?: string;
|
|
1322
|
+
details?: string;
|
|
1323
|
+
status?: string;
|
|
1324
|
+
validationDetails?: ValidationDetail[];
|
|
1325
|
+
};
|
|
1326
|
+
}>("/v1/admin/control-plane/apply", oazapfts.json({
|
|
1327
|
+
...opts,
|
|
1328
|
+
method: "POST",
|
|
1329
|
+
body: manifestResource
|
|
1330
|
+
})));
|
|
1331
|
+
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Retrieves the tenant details.
|
|
1334
|
+
*/
|
|
1335
|
+
export function getTenant({ id }: {
|
|
1017
1336
|
id: string;
|
|
1018
1337
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1019
1338
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1020
1339
|
status: 200;
|
|
1021
|
-
data:
|
|
1340
|
+
data: TenantResource;
|
|
1022
1341
|
} | {
|
|
1023
1342
|
status: 400;
|
|
1024
1343
|
data: ErrorBody;
|
|
@@ -1047,19 +1366,19 @@ export function getRuntime({ id }: {
|
|
|
1047
1366
|
status?: string;
|
|
1048
1367
|
validationDetails?: ValidationDetail[];
|
|
1049
1368
|
};
|
|
1050
|
-
}>(`/v1/
|
|
1369
|
+
}>(`/v1/tenants/${encodeURIComponent(id)}`, {
|
|
1051
1370
|
...opts
|
|
1052
1371
|
}));
|
|
1053
1372
|
}
|
|
1054
1373
|
/**
|
|
1055
|
-
* Retrieves the
|
|
1374
|
+
* Retrieves the runtime details.
|
|
1056
1375
|
*/
|
|
1057
|
-
export function
|
|
1058
|
-
|
|
1376
|
+
export function getRuntime({ id }: {
|
|
1377
|
+
id: string;
|
|
1059
1378
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1060
1379
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1061
1380
|
status: 200;
|
|
1062
|
-
data:
|
|
1381
|
+
data: RuntimeResource;
|
|
1063
1382
|
} | {
|
|
1064
1383
|
status: 400;
|
|
1065
1384
|
data: ErrorBody;
|
|
@@ -1088,7 +1407,7 @@ export function getOrganizationById({ organizationId }: {
|
|
|
1088
1407
|
status?: string;
|
|
1089
1408
|
validationDetails?: ValidationDetail[];
|
|
1090
1409
|
};
|
|
1091
|
-
}>(`/v1/
|
|
1410
|
+
}>(`/v1/runtimes/${encodeURIComponent(id)}`, {
|
|
1092
1411
|
...opts
|
|
1093
1412
|
}));
|
|
1094
1413
|
}
|
|
@@ -1107,7 +1426,7 @@ export function findApplicationDeploymentById({ organizationId, tenantId, runtim
|
|
|
1107
1426
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1108
1427
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1109
1428
|
status: 200;
|
|
1110
|
-
data:
|
|
1429
|
+
data: ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2;
|
|
1111
1430
|
} | {
|
|
1112
1431
|
status: 400;
|
|
1113
1432
|
data: ErrorBody;
|
|
@@ -1308,7 +1627,166 @@ export function getTenant1({ organizationId, id }: {
|
|
|
1308
1627
|
}));
|
|
1309
1628
|
}
|
|
1310
1629
|
/**
|
|
1311
|
-
*
|
|
1630
|
+
* Get DeployTemplate
|
|
1631
|
+
*/
|
|
1632
|
+
export function getDeployTemplate({ organizationId, deployTemplateId }: {
|
|
1633
|
+
organizationId: string;
|
|
1634
|
+
deployTemplateId: string;
|
|
1635
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1636
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1637
|
+
status: 200;
|
|
1638
|
+
data: DeployTemplateManifestV1Alpha1;
|
|
1639
|
+
} | {
|
|
1640
|
+
status: 400;
|
|
1641
|
+
data: ErrorBody;
|
|
1642
|
+
} | {
|
|
1643
|
+
status: 401;
|
|
1644
|
+
data: ErrorBody;
|
|
1645
|
+
} | {
|
|
1646
|
+
status: 404;
|
|
1647
|
+
data: ErrorBody;
|
|
1648
|
+
} | {
|
|
1649
|
+
status: 422;
|
|
1650
|
+
data: {
|
|
1651
|
+
code?: string;
|
|
1652
|
+
details?: string;
|
|
1653
|
+
status?: string;
|
|
1654
|
+
validationDetails?: ValidationDetail[];
|
|
1655
|
+
};
|
|
1656
|
+
} | {
|
|
1657
|
+
status: 500;
|
|
1658
|
+
data: {
|
|
1659
|
+
code?: string;
|
|
1660
|
+
details?: string;
|
|
1661
|
+
status?: string;
|
|
1662
|
+
validationDetails?: ValidationDetail[];
|
|
1663
|
+
};
|
|
1664
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
|
|
1665
|
+
...opts
|
|
1666
|
+
}));
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Delete DeployTemplate
|
|
1670
|
+
*/
|
|
1671
|
+
export function deleteDeployTemplate({ organizationId, deployTemplateId }: {
|
|
1672
|
+
organizationId: string;
|
|
1673
|
+
deployTemplateId: string;
|
|
1674
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1675
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1676
|
+
status: 200;
|
|
1677
|
+
data: DeployTemplateManifestV1Alpha1;
|
|
1678
|
+
} | {
|
|
1679
|
+
status: 400;
|
|
1680
|
+
data: ErrorBody;
|
|
1681
|
+
} | {
|
|
1682
|
+
status: 401;
|
|
1683
|
+
data: ErrorBody;
|
|
1684
|
+
} | {
|
|
1685
|
+
status: 404;
|
|
1686
|
+
data: ErrorBody;
|
|
1687
|
+
} | {
|
|
1688
|
+
status: 422;
|
|
1689
|
+
data: {
|
|
1690
|
+
code?: string;
|
|
1691
|
+
details?: string;
|
|
1692
|
+
status?: string;
|
|
1693
|
+
validationDetails?: ValidationDetail[];
|
|
1694
|
+
};
|
|
1695
|
+
} | {
|
|
1696
|
+
status: 500;
|
|
1697
|
+
data: {
|
|
1698
|
+
code?: string;
|
|
1699
|
+
details?: string;
|
|
1700
|
+
status?: string;
|
|
1701
|
+
validationDetails?: ValidationDetail[];
|
|
1702
|
+
};
|
|
1703
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
|
|
1704
|
+
...opts,
|
|
1705
|
+
method: "DELETE"
|
|
1706
|
+
}));
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* Get Addon
|
|
1710
|
+
*/
|
|
1711
|
+
export function getAddon({ organizationId, addonId }: {
|
|
1712
|
+
organizationId: string;
|
|
1713
|
+
addonId: string;
|
|
1714
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1715
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1716
|
+
status: 200;
|
|
1717
|
+
data: AddonManifestV1Alpha1;
|
|
1718
|
+
} | {
|
|
1719
|
+
status: 400;
|
|
1720
|
+
data: ErrorBody;
|
|
1721
|
+
} | {
|
|
1722
|
+
status: 401;
|
|
1723
|
+
data: ErrorBody;
|
|
1724
|
+
} | {
|
|
1725
|
+
status: 404;
|
|
1726
|
+
data: ErrorBody;
|
|
1727
|
+
} | {
|
|
1728
|
+
status: 422;
|
|
1729
|
+
data: {
|
|
1730
|
+
code?: string;
|
|
1731
|
+
details?: string;
|
|
1732
|
+
status?: string;
|
|
1733
|
+
validationDetails?: ValidationDetail[];
|
|
1734
|
+
};
|
|
1735
|
+
} | {
|
|
1736
|
+
status: 500;
|
|
1737
|
+
data: {
|
|
1738
|
+
code?: string;
|
|
1739
|
+
details?: string;
|
|
1740
|
+
status?: string;
|
|
1741
|
+
validationDetails?: ValidationDetail[];
|
|
1742
|
+
};
|
|
1743
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons/${encodeURIComponent(addonId)}`, {
|
|
1744
|
+
...opts
|
|
1745
|
+
}));
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* Retrieves the organization by ID
|
|
1749
|
+
*/
|
|
1750
|
+
export function getOrganizationById({ organizationId }: {
|
|
1751
|
+
organizationId: string;
|
|
1752
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1753
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1754
|
+
status: 200;
|
|
1755
|
+
data: OrganizationResource;
|
|
1756
|
+
} | {
|
|
1757
|
+
status: 400;
|
|
1758
|
+
data: ErrorBody;
|
|
1759
|
+
} | {
|
|
1760
|
+
status: 401;
|
|
1761
|
+
data: ErrorBody;
|
|
1762
|
+
} | {
|
|
1763
|
+
status: 403;
|
|
1764
|
+
data: ErrorBody;
|
|
1765
|
+
} | {
|
|
1766
|
+
status: 404;
|
|
1767
|
+
data: ErrorBody;
|
|
1768
|
+
} | {
|
|
1769
|
+
status: 422;
|
|
1770
|
+
data: {
|
|
1771
|
+
code?: string;
|
|
1772
|
+
details?: string;
|
|
1773
|
+
status?: string;
|
|
1774
|
+
validationDetails?: ValidationDetail[];
|
|
1775
|
+
};
|
|
1776
|
+
} | {
|
|
1777
|
+
status: 500;
|
|
1778
|
+
data: {
|
|
1779
|
+
code?: string;
|
|
1780
|
+
details?: string;
|
|
1781
|
+
status?: string;
|
|
1782
|
+
validationDetails?: ValidationDetail[];
|
|
1783
|
+
};
|
|
1784
|
+
}>(`/v1/organizations/${encodeURIComponent(organizationId)}`, {
|
|
1785
|
+
...opts
|
|
1786
|
+
}));
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Downloads the bootstrap module for creating a new organization.
|
|
1312
1790
|
*/
|
|
1313
1791
|
export function downloadBootstrapModule({ version }: {
|
|
1314
1792
|
version?: string;
|
|
@@ -1350,6 +1828,105 @@ export function downloadBootstrapModule({ version }: {
|
|
|
1350
1828
|
...opts
|
|
1351
1829
|
}));
|
|
1352
1830
|
}
|
|
1831
|
+
export function getTenantExample(opts?: Oazapfts.RequestOpts) {
|
|
1832
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1833
|
+
status: 200;
|
|
1834
|
+
data: TenantResource;
|
|
1835
|
+
} | {
|
|
1836
|
+
status: 400;
|
|
1837
|
+
data: ErrorBody;
|
|
1838
|
+
} | {
|
|
1839
|
+
status: 401;
|
|
1840
|
+
data: ErrorBody;
|
|
1841
|
+
} | {
|
|
1842
|
+
status: 404;
|
|
1843
|
+
data: ErrorBody;
|
|
1844
|
+
} | {
|
|
1845
|
+
status: 422;
|
|
1846
|
+
data: {
|
|
1847
|
+
code?: string;
|
|
1848
|
+
details?: string;
|
|
1849
|
+
status?: string;
|
|
1850
|
+
validationDetails?: ValidationDetail[];
|
|
1851
|
+
};
|
|
1852
|
+
} | {
|
|
1853
|
+
status: 500;
|
|
1854
|
+
data: {
|
|
1855
|
+
code?: string;
|
|
1856
|
+
details?: string;
|
|
1857
|
+
status?: string;
|
|
1858
|
+
validationDetails?: ValidationDetail[];
|
|
1859
|
+
};
|
|
1860
|
+
}>("/v1/examples/tenant", {
|
|
1861
|
+
...opts
|
|
1862
|
+
}));
|
|
1863
|
+
}
|
|
1864
|
+
export function getRuntimeExample(opts?: Oazapfts.RequestOpts) {
|
|
1865
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1866
|
+
status: 200;
|
|
1867
|
+
data: RuntimeResource;
|
|
1868
|
+
} | {
|
|
1869
|
+
status: 400;
|
|
1870
|
+
data: ErrorBody;
|
|
1871
|
+
} | {
|
|
1872
|
+
status: 401;
|
|
1873
|
+
data: ErrorBody;
|
|
1874
|
+
} | {
|
|
1875
|
+
status: 404;
|
|
1876
|
+
data: ErrorBody;
|
|
1877
|
+
} | {
|
|
1878
|
+
status: 422;
|
|
1879
|
+
data: {
|
|
1880
|
+
code?: string;
|
|
1881
|
+
details?: string;
|
|
1882
|
+
status?: string;
|
|
1883
|
+
validationDetails?: ValidationDetail[];
|
|
1884
|
+
};
|
|
1885
|
+
} | {
|
|
1886
|
+
status: 500;
|
|
1887
|
+
data: {
|
|
1888
|
+
code?: string;
|
|
1889
|
+
details?: string;
|
|
1890
|
+
status?: string;
|
|
1891
|
+
validationDetails?: ValidationDetail[];
|
|
1892
|
+
};
|
|
1893
|
+
}>("/v1/examples/runtime", {
|
|
1894
|
+
...opts
|
|
1895
|
+
}));
|
|
1896
|
+
}
|
|
1897
|
+
export function getApplicationDeploymentExample(opts?: Oazapfts.RequestOpts) {
|
|
1898
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1899
|
+
status: 200;
|
|
1900
|
+
data: ApplicationDeploymentManifestV1Alpha2;
|
|
1901
|
+
} | {
|
|
1902
|
+
status: 400;
|
|
1903
|
+
data: ErrorBody;
|
|
1904
|
+
} | {
|
|
1905
|
+
status: 401;
|
|
1906
|
+
data: ErrorBody;
|
|
1907
|
+
} | {
|
|
1908
|
+
status: 404;
|
|
1909
|
+
data: ErrorBody;
|
|
1910
|
+
} | {
|
|
1911
|
+
status: 422;
|
|
1912
|
+
data: {
|
|
1913
|
+
code?: string;
|
|
1914
|
+
details?: string;
|
|
1915
|
+
status?: string;
|
|
1916
|
+
validationDetails?: ValidationDetail[];
|
|
1917
|
+
};
|
|
1918
|
+
} | {
|
|
1919
|
+
status: 500;
|
|
1920
|
+
data: {
|
|
1921
|
+
code?: string;
|
|
1922
|
+
details?: string;
|
|
1923
|
+
status?: string;
|
|
1924
|
+
validationDetails?: ValidationDetail[];
|
|
1925
|
+
};
|
|
1926
|
+
}>("/v1/examples/applicationDeployment", {
|
|
1927
|
+
...opts
|
|
1928
|
+
}));
|
|
1929
|
+
}
|
|
1353
1930
|
/**
|
|
1354
1931
|
* Get application deployment by ID
|
|
1355
1932
|
*/
|
|
@@ -1358,7 +1935,7 @@ export function findApplicationDeploymentById1({ deploymentId }: {
|
|
|
1358
1935
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1359
1936
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1360
1937
|
status: 200;
|
|
1361
|
-
data:
|
|
1938
|
+
data: ApplicationDeploymentManifestV1Alpha1 | ApplicationDeploymentManifestV1Alpha2;
|
|
1362
1939
|
} | {
|
|
1363
1940
|
status: 400;
|
|
1364
1941
|
data: ErrorBody;
|