@stack-spot/portal-network 0.184.0 → 0.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +2419 -2412
  2. package/dist/api/account.js +1 -1
  3. package/dist/api/agent-tools.js +1 -1
  4. package/dist/api/agent.js +1 -1
  5. package/dist/api/ai.js +1 -1
  6. package/dist/api/apiManagement.js +1 -1
  7. package/dist/api/apiRuntime.js +1 -1
  8. package/dist/api/cloudAccount.js +1 -1
  9. package/dist/api/cloudPlatform.js +1 -1
  10. package/dist/api/cloudPlatformHorizon.js +1 -1
  11. package/dist/api/cloudRuntimes.js +1 -1
  12. package/dist/api/cloudServices.js +1 -1
  13. package/dist/api/codeShift.d.ts +63 -4
  14. package/dist/api/codeShift.d.ts.map +1 -1
  15. package/dist/api/codeShift.js +14 -1
  16. package/dist/api/codeShift.js.map +1 -1
  17. package/dist/api/content.js +1 -1
  18. package/dist/api/dataIntegration.js +1 -1
  19. package/dist/api/discover.js +1 -1
  20. package/dist/api/genAiInference.js +1 -1
  21. package/dist/api/insights.js +1 -1
  22. package/dist/api/notification.js +1 -1
  23. package/dist/api/secrets.js +1 -1
  24. package/dist/api/serviceCatalog.js +1 -1
  25. package/dist/api/workspace-ai.js +1 -1
  26. package/dist/api/workspace.js +1 -1
  27. package/dist/api/workspaceManager.js +1 -1
  28. package/dist/api/workspaceSearchEngine.js +1 -1
  29. package/dist/client/code-shift.d.ts +22 -0
  30. package/dist/client/code-shift.d.ts.map +1 -1
  31. package/dist/client/code-shift.js +28 -1
  32. package/dist/client/code-shift.js.map +1 -1
  33. package/package.json +6 -6
  34. package/scripts/generate-apis.ts +134 -134
  35. package/src/api/account.ts +8367 -8367
  36. package/src/api/agent-tools.ts +2169 -2169
  37. package/src/api/agent.ts +1083 -1083
  38. package/src/api/ai.ts +3388 -3388
  39. package/src/api/apiManagement.ts +570 -570
  40. package/src/api/apiRuntime.ts +2103 -2103
  41. package/src/api/cloudAccount.ts +1239 -1239
  42. package/src/api/cloudPlatform.ts +927 -927
  43. package/src/api/cloudPlatformHorizon.ts +2655 -2655
  44. package/src/api/cloudRuntimes.ts +2043 -2043
  45. package/src/api/cloudServices.ts +1445 -1445
  46. package/src/api/codeShift.ts +3567 -3481
  47. package/src/api/content.ts +9785 -9785
  48. package/src/api/dataIntegration.ts +1657 -1657
  49. package/src/api/discover.ts +435 -435
  50. package/src/api/eventBus.ts +171 -171
  51. package/src/api/genAiInference.ts +603 -603
  52. package/src/api/insights.ts +310 -310
  53. package/src/api/notification.ts +334 -334
  54. package/src/api/secrets.ts +342 -342
  55. package/src/api/serviceCatalog.ts +2908 -2908
  56. package/src/api/workflows.ts +1669 -1669
  57. package/src/api/workspace-ai.ts +677 -677
  58. package/src/api/workspace.ts +5889 -5889
  59. package/src/api/workspaceManager.ts +2951 -2951
  60. package/src/api/workspaceSearchEngine.ts +153 -153
  61. package/src/api-addresses.ts +120 -120
  62. package/src/apis-itau.json +225 -225
  63. package/src/apis.json +225 -225
  64. package/src/client/account.ts +902 -902
  65. package/src/client/agent-tools.ts +210 -210
  66. package/src/client/agent.ts +81 -81
  67. package/src/client/ai.ts +395 -395
  68. package/src/client/api-management.ts +40 -40
  69. package/src/client/cloud-account.ts +70 -70
  70. package/src/client/cloud-platform-horizon.ts +113 -113
  71. package/src/client/cloud-platform.ts +163 -163
  72. package/src/client/cloud-runtimes.ts +129 -129
  73. package/src/client/cloud-services.ts +94 -94
  74. package/src/client/code-shift.ts +364 -349
  75. package/src/client/content.ts +538 -538
  76. package/src/client/data-integration.ts +191 -191
  77. package/src/client/discover.ts +89 -89
  78. package/src/client/event-bus.ts +84 -84
  79. package/src/client/gen-ai-inference.ts +65 -65
  80. package/src/client/insights.ts +28 -28
  81. package/src/client/notification.ts +32 -32
  82. package/src/client/runtime-manager.ts +76 -76
  83. package/src/client/secrets.ts +60 -60
  84. package/src/client/types.ts +377 -377
  85. package/src/client/workflow.ts +83 -83
  86. package/src/client/workspace-ai.ts +191 -191
  87. package/src/client/workspace-manager.ts +564 -564
  88. package/src/client/workspace-search.ts +39 -39
  89. package/src/client/workspace.ts +480 -480
  90. package/src/error/DefaultAPIError.ts +151 -151
  91. package/src/error/FileUploadError.ts +18 -18
  92. package/src/error/IgnoredErrorCodes.ts +3 -3
  93. package/src/error/StackspotAPIError.ts +101 -101
  94. package/src/error/StreamCanceledError.ts +10 -10
  95. package/src/error/StreamError.ts +7 -7
  96. package/src/error/StreamJsonError.ts +10 -10
  97. package/src/error/dictionary/account.ts +58 -58
  98. package/src/error/dictionary/action-details.ts +20 -20
  99. package/src/error/dictionary/action.ts +211 -211
  100. package/src/error/dictionary/agent-tools.ts +75 -75
  101. package/src/error/dictionary/ai-inference.ts +28 -28
  102. package/src/error/dictionary/base.ts +22 -22
  103. package/src/error/dictionary/cloud-platform.ts +82 -82
  104. package/src/error/dictionary/cnt-fields.ts +14 -14
  105. package/src/error/dictionary/cnt.ts +103 -103
  106. package/src/error/dictionary/code-shift.ts +12 -12
  107. package/src/error/dictionary/rte.ts +24 -24
  108. package/src/error/dictionary/rtm.ts +10 -10
  109. package/src/error/dictionary/secrets.ts +14 -14
  110. package/src/error/dictionary/workspace-ai.ts +10 -10
  111. package/src/error/dictionary/workspace-details.ts +15 -15
  112. package/src/error/dictionary/workspace-fields.ts +10 -10
  113. package/src/error/dictionary/workspace.ts +209 -209
  114. package/src/error/types.ts +21 -21
  115. package/src/index.ts +43 -43
  116. package/src/network/AutoInfiniteQuery.ts +115 -115
  117. package/src/network/AutoMutation.ts +27 -27
  118. package/src/network/AutoOperation.ts +73 -73
  119. package/src/network/AutoQuery.ts +75 -75
  120. package/src/network/ManualInfiniteQuery.ts +95 -95
  121. package/src/network/ManualMutation.ts +40 -40
  122. package/src/network/ManualOperation.ts +52 -52
  123. package/src/network/ManualQuery.ts +82 -82
  124. package/src/network/NetworkClient.ts +167 -167
  125. package/src/network/ReactQueryNetworkClient.ts +312 -312
  126. package/src/network/react-query-client.ts +14 -14
  127. package/src/network/types.ts +294 -294
  128. package/src/types.ts +1 -1
  129. package/src/utils/StreamedArray.tsx +146 -146
  130. package/src/utils/StreamedJson.tsx +166 -166
  131. package/src/utils/remove-authorization-param.ts +6 -6
  132. package/src/utils/string.ts +19 -19
  133. package/src/utils/use-extended-list.ts +80 -80
  134. package/src/utils/use-streamed-array.ts +17 -17
  135. package/tsconfig.build.json +4 -4
  136. package/tsconfig.json +10 -10
@@ -1,2655 +1,2655 @@
1
- /**
2
- * PlatformHorizonApplication
3
- * 0.0.2
4
- * DO NOT MODIFY - This file has been generated using oazapfts.
5
- * See https://www.npmjs.com/package/oazapfts
6
- */
7
- import * as Oazapfts from "@oazapfts/runtime";
8
- import * as QS from "@oazapfts/runtime/query";
9
- export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
- headers: {},
11
- baseUrl: "https://cloud-platform-horizon.dev.stackspot.com",
12
- };
13
- const oazapfts = Oazapfts.runtime(defaults);
14
- export const servers = {
15
- generatedServerUrl: "https://cloud-platform-horizon.dev.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[];
26
- };
27
- export type MetadataV1 = {
28
- id?: string;
29
- name: string;
30
- version: string;
31
- labels?: {
32
- [key: string]: string;
33
- };
34
- propagableLabels?: {
35
- [key: string]: string;
36
- };
37
- };
38
- export type TenantManifestV1SpecCloudAccountConfigurationFromRef = {
39
- id: string;
40
- };
41
- export type TenantManifestV1SpecCloudAccountConfigurationIamRoles = {
42
- clusterRole?: string;
43
- clusterNodeGroup?: string;
44
- clusterAdminRoles: string[];
45
- crossplane?: string;
46
- crossAccountRoleArn?: string;
47
- argocd?: string;
48
- karpenter?: string;
49
- externalSecrets?: string;
50
- stackspotCloudPlatformAgent?: string;
51
- stackspotCloudPlatformManager?: string;
52
- stackspotCloudPlatformGateway?: string;
53
- nodeRole?: string;
54
- };
55
- export type TenantManifestV1SpecCloudAccountConfiguration = {
56
- fromRef?: TenantManifestV1SpecCloudAccountConfigurationFromRef;
57
- cloudProvider?: string;
58
- accountId?: string;
59
- region?: string;
60
- vpcId?: string;
61
- subnetIds?: string[];
62
- customAmi?: string;
63
- iamRoles?: TenantManifestV1SpecCloudAccountConfigurationIamRoles;
64
- };
65
- export type TenantManifestV1SpecAddonReference = {
66
- /** Name of the registered addon */
67
- name: string;
68
- /** Version of the registered addon */
69
- version: string;
70
- /** Context for this addon */
71
- context: string;
72
- "namespace": string;
73
- values?: {
74
- [key: string]: object;
75
- };
76
- };
77
- export type TenantManifestV1SpecKubernetesNetworkConfig = {
78
- ipFamily?: string;
79
- serviceIpv4Cidr?: string;
80
- };
81
- export type TenantManifestV1SpecKubernetes = {
82
- publicAccess: boolean;
83
- privateAccess: boolean;
84
- version: string;
85
- publicCidrsAllowed: string[];
86
- privateCidrsAllowed?: string[];
87
- extraCidrsInbound?: string[];
88
- networkConfig?: TenantManifestV1SpecKubernetesNetworkConfig;
89
- };
90
- export type TenantManifestV1SpecNodeGroup = {
91
- volumeSize?: number;
92
- amiType?: string;
93
- capacityType?: string;
94
- desiredSize?: number;
95
- maxSize?: number;
96
- minSize?: number;
97
- };
98
- export type TenantManifestV1SpecStackspotCloudPlatform = {
99
- createIamRoles: boolean;
100
- };
101
- export type TenantManifestV1SpecHelmResource = {
102
- chartName: string;
103
- version: string;
104
- repoUrl: string;
105
- };
106
- export type TenantManifestV1SpecSeleneAppsSeleneAppEnv = {
107
- name: string;
108
- value: string;
109
- };
110
- export type TenantManifestV1SpecSeleneAppsSeleneApp = {
111
- imageRepository: string;
112
- imageVersion?: string;
113
- labels?: {
114
- [key: string]: string;
115
- };
116
- annotations?: {
117
- [key: string]: string;
118
- };
119
- env?: TenantManifestV1SpecSeleneAppsSeleneAppEnv[];
120
- };
121
- export type TenantManifestV1SpecSeleneApps = {
122
- agent: TenantManifestV1SpecSeleneAppsSeleneApp;
123
- gateway: TenantManifestV1SpecSeleneAppsSeleneApp;
124
- manager: TenantManifestV1SpecSeleneAppsSeleneApp;
125
- platformGatewayUrl: string;
126
- };
127
- export type TenantManifestV1SpecArgoCdMetrics = {
128
- enabled: boolean;
129
- };
130
- export type TenantManifestV1SpecArgoCdComponentConfig = {
131
- metrics?: TenantManifestV1SpecArgoCdMetrics;
132
- podAnnotations?: {
133
- [key: string]: string;
134
- };
135
- };
136
- export type TenantManifestV1SpecArgoCdConfigsSsh = {
137
- extraHosts: string;
138
- };
139
- export type TenantManifestV1SpecArgoCdConfigsTls = {
140
- certificates: {
141
- [key: string]: string;
142
- };
143
- };
144
- export type TenantManifestV1SpecArgoCdConfigs = {
145
- ssh?: TenantManifestV1SpecArgoCdConfigsSsh;
146
- tls?: TenantManifestV1SpecArgoCdConfigsTls;
147
- repositories?: {
148
- [key: string]: object;
149
- };
150
- credentialTemplates?: {
151
- [key: string]: object;
152
- };
153
- };
154
- export type TenantManifestV1SpecArgoCd = {
155
- chart?: TenantManifestV1SpecHelmResource;
156
- server?: TenantManifestV1SpecArgoCdComponentConfig;
157
- controller?: TenantManifestV1SpecArgoCdComponentConfig;
158
- applicationSet?: TenantManifestV1SpecArgoCdComponentConfig;
159
- repoServer?: TenantManifestV1SpecArgoCdComponentConfig;
160
- configs?: TenantManifestV1SpecArgoCdConfigs;
161
- };
162
- export type TenantManifestV1SpecKarpenterNodeClass = {
163
- name?: string;
164
- amiType?: string;
165
- amiVersion?: string;
166
- amiId?: string;
167
- detailedMonitoring?: boolean;
168
- volumeSize?: number;
169
- metadataOptions?: {
170
- [key: string]: object;
171
- };
172
- subnetIds?: string[];
173
- userData?: string;
174
- };
175
- export type TenantManifestV1SpecKarpenterNodePoolLimits = {
176
- cpu: string;
177
- memory: string;
178
- };
179
- export type TenantManifestV1SpecKarpenterNodePoolInstanceFamilies = {
180
- amd?: string[];
181
- arm?: string[];
182
- };
183
- export type TenantManifestV1SpecKarpenterNodePool = {
184
- /** Name of the NodePool */
185
- name?: string;
186
- /** Resource limits for the NodePool */
187
- limits?: TenantManifestV1SpecKarpenterNodePoolLimits;
188
- /** The amount of time a node can live on the cluster before being deleted by Karpenter */
189
- expireAfter?: string;
190
- /** Instance sizes to use with this NodePool */
191
- instanceSizes?: string[];
192
- /** Instance families to use with this NodePool */
193
- instanceFamilies?: TenantManifestV1SpecKarpenterNodePoolInstanceFamilies;
194
- /** Instance architecture to use with this NodePool (valid values: amd, arm) */
195
- architecture?: string;
196
- /** Availability zones to use with this NodePool */
197
- zones?: string[];
198
- /** Instance capacity type to use with this NodePool (valid values: spot, on-demand, reserved) */
199
- capacityType?: string;
200
- /** Node Class resource to associate this NodePool with */
201
- nodeClassName?: string;
202
- /** Configuration for Karpenter to disrupt nodes through your NodePool */
203
- disruption?: {
204
- [key: string]: object;
205
- };
206
- /** Taints to add to provisioned nodes */
207
- taints?: {
208
- [key: string]: object;
209
- }[];
210
- };
211
- export type TenantManifestV1SpecKarpenter = {
212
- chart?: TenantManifestV1SpecHelmResource;
213
- customAnnotations?: {
214
- [key: string]: string;
215
- };
216
- replicas?: number;
217
- podAnnotations?: {
218
- [key: string]: string;
219
- };
220
- defaultNodeClass?: TenantManifestV1SpecKarpenterNodeClass;
221
- additionalNodeClasses?: TenantManifestV1SpecKarpenterNodeClass[];
222
- defaultNodePool?: TenantManifestV1SpecKarpenterNodePool;
223
- additionalNodePools?: TenantManifestV1SpecKarpenterNodePool[];
224
- };
225
- export type TenantManifestV1SpecExternalSecretsHelmRepoConfig = {
226
- url: string;
227
- username?: string;
228
- password?: string;
229
- };
230
- export type TenantManifestV1SpecExternalSecrets = {
231
- enabled?: boolean;
232
- chart?: TenantManifestV1SpecHelmResource;
233
- helmRepo?: TenantManifestV1SpecExternalSecretsHelmRepoConfig;
234
- enableMetrics?: boolean;
235
- podAnnotations?: {
236
- [key: string]: string;
237
- };
238
- };
239
- export type TenantManifestV1SpecFargateConfiguration = {
240
- /** Set the Fargate Profile IAM role. If empty, it will be autocreated */
241
- roleArn?: string;
242
- /** Define selectors use with the Fargate Profile (defaults to Karpenter and coreDNS) */
243
- selector?: {
244
- [key: string]: object;
245
- }[];
246
- };
247
- export type TenantManifestV1SpecCrossplaneMetrics = {
248
- enabled?: boolean;
249
- };
250
- export type TenantManifestV1SpecCrossplaneProvider = {
251
- services?: string[];
252
- version: string;
253
- repo: string;
254
- };
255
- export type TenantManifestV1SpecCrossplaneDefaultProvider = {
256
- aws?: TenantManifestV1SpecCrossplaneProvider;
257
- kubernetes?: TenantManifestV1SpecCrossplaneProvider;
258
- };
259
- export type TenantManifestV1SpecCrossplaneFunction = {
260
- name: string;
261
- version: string;
262
- repo: string;
263
- };
264
- export type TenantManifestV1SpecCrossplane = {
265
- chart?: TenantManifestV1SpecHelmResource;
266
- replicas?: number;
267
- registryCaBundleConfig?: {
268
- [key: string]: object;
269
- };
270
- metrics?: TenantManifestV1SpecCrossplaneMetrics;
271
- customAnnotations?: {
272
- [key: string]: string;
273
- };
274
- defaultProviders?: TenantManifestV1SpecCrossplaneDefaultProvider;
275
- defaultFunctions?: TenantManifestV1SpecCrossplaneFunction[];
276
- additionalFunctions?: TenantManifestV1SpecCrossplaneFunction[];
277
- };
278
- export type TenantManifestV1SpecDefaultEksAddonsVersions = {
279
- coreDns?: string;
280
- podIdentity?: string;
281
- vpcCni?: string;
282
- kubeProxy?: string;
283
- };
284
- export type TenantManifestV1SpecDefaultEksAddonsConfigurationValues = {
285
- coreDns?: string;
286
- podIdentity?: string;
287
- vpcCni?: string;
288
- kubeProxy?: string;
289
- };
290
- export type TenantManifestV1SpecDefaultEksAddons = {
291
- versions?: TenantManifestV1SpecDefaultEksAddonsVersions;
292
- configurationValues?: TenantManifestV1SpecDefaultEksAddonsConfigurationValues;
293
- };
294
- export type TenantManifestV1SpecEksAddon = {
295
- name: string;
296
- version: string;
297
- configurationValues?: string;
298
- };
299
- export type TenantManifestV1SpecEncryptionConfig = {
300
- autoCreate?: boolean;
301
- kmsKeyArn?: string;
302
- };
303
- export type TenantManifestV1SpecCustomLogGroup = {
304
- enabled?: boolean;
305
- retention?: number;
306
- kmsKeyArn?: string;
307
- autoCreateKmsKey?: boolean;
308
- };
309
- export type TenantManifestV1SpecSecurityGroupRule = {
310
- name: string;
311
- "type": string;
312
- description: string;
313
- protocol: string;
314
- fromPort: number;
315
- toPort: number;
316
- sourceCidr?: string;
317
- sourceIsNodeGroup?: boolean;
318
- sourcePrefixListId?: string;
319
- sourceIsCluster?: boolean;
320
- sourceIsSelf?: boolean;
321
- destinationCidr?: string;
322
- };
323
- export type TenantManifestV1SpecSecurityGroup = {
324
- autoCreate?: boolean;
325
- ids?: string[];
326
- additionalRules?: TenantManifestV1SpecSecurityGroupRule[];
327
- };
328
- export type TenantManifestV1SpecControlPlane = {
329
- addons: TenantManifestV1SpecAddonReference[];
330
- instanceTypes?: string[];
331
- kubernetes: TenantManifestV1SpecKubernetes;
332
- nodeGroup?: TenantManifestV1SpecNodeGroup;
333
- stackspotCloudPlatform?: TenantManifestV1SpecStackspotCloudPlatform;
334
- crossplaneNamespace: string;
335
- eksHelm?: TenantManifestV1SpecHelmResource;
336
- seleneHelm?: TenantManifestV1SpecHelmResource;
337
- seleneApps?: TenantManifestV1SpecSeleneApps;
338
- iamProvider?: "AWS" | "ITAU";
339
- postBootstrapUserData?: string;
340
- bootstrapClusterCreatorAdminPermissions?: boolean;
341
- enabledClusterLogTypes?: string[];
342
- argoCd?: TenantManifestV1SpecArgoCd;
343
- controlPlaneCustomAnnotations?: {
344
- [key: string]: string;
345
- };
346
- karpenter?: TenantManifestV1SpecKarpenter;
347
- authenticationMode?: "API" | "API_AND_CONFIG_MAP" | "CONFIG_MAP";
348
- supportType?: string;
349
- externalSecrets?: TenantManifestV1SpecExternalSecrets;
350
- fargateConfiguration?: TenantManifestV1SpecFargateConfiguration;
351
- crossplane?: TenantManifestV1SpecCrossplane;
352
- defaultEksAddons?: TenantManifestV1SpecDefaultEksAddons;
353
- additionalEksAddons?: TenantManifestV1SpecEksAddon[];
354
- encryptionConfig?: TenantManifestV1SpecEncryptionConfig;
355
- customLogGroup?: TenantManifestV1SpecCustomLogGroup;
356
- clusterSecurityGroup?: TenantManifestV1SpecSecurityGroup;
357
- nodeSecurityGroup?: TenantManifestV1SpecSecurityGroup;
358
- };
359
- export type TenantManifestV1SpecItauConfig = {
360
- iamsrProviderRoleArn: string;
361
- iamsrApiToken?: string;
362
- iamsrCerts?: string;
363
- };
364
- export type TenantManifestV1Spec = {
365
- context: string;
366
- additionalSuffix?: string;
367
- organizationId: string;
368
- cloudAccountConfiguration: TenantManifestV1SpecCloudAccountConfiguration;
369
- controlPlane: TenantManifestV1SpecControlPlane;
370
- itau?: TenantManifestV1SpecItauConfig;
371
- };
372
- export type TenantManifestV1StatusControlPlaneCondition = {
373
- id?: string;
374
- "type": string;
375
- status: string;
376
- reason: string;
377
- message: string;
378
- lastTransitionTime: string;
379
- };
380
- export type TenantManifestV1StatusControlPlane = {
381
- id: string;
382
- name: string;
383
- active?: boolean;
384
- status: string;
385
- kubeVersion: string;
386
- conditions: TenantManifestV1StatusControlPlaneCondition[];
387
- };
388
- export type TenantManifestV1Runtime = {
389
- id: string;
390
- name: string;
391
- status: string;
392
- };
393
- export type TenantManifestV1Status = {
394
- created: boolean;
395
- ready: boolean;
396
- organizationName?: string;
397
- controlPlanes?: TenantManifestV1StatusControlPlane[];
398
- runtimes?: TenantManifestV1Runtime[];
399
- };
400
- export type TenantManifestV1 = {
401
- metadata: MetadataV1;
402
- spec: TenantManifestV1Spec;
403
- status?: TenantManifestV1Status;
404
- };
405
- export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef = {
406
- id: string;
407
- };
408
- export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles = {
409
- clusterRole?: string;
410
- nodeRole?: string;
411
- clusterNodeGroup?: string;
412
- clusterAdminRoles: string[];
413
- karpenter?: string;
414
- };
415
- export type RuntimeManifestV1Alpha1SpecCloudAccountConfiguration = {
416
- fromRef?: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef;
417
- cloudProvider: string;
418
- accountId: string;
419
- region: string;
420
- vpcId: string;
421
- subnetIds: string[];
422
- customAmi?: string;
423
- iamRoles: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles;
424
- };
425
- export type RuntimeManifestV1Alpha1SpecControlPlaneAddonReference = {
426
- /** Name of the registered addon */
427
- name: string;
428
- /** Version of the registered addon */
429
- version: string;
430
- /** Context for this addon */
431
- context: string;
432
- "namespace": string;
433
- values?: {
434
- [key: string]: object;
435
- };
436
- };
437
- export type RuntimeManifestV1Alpha1SpecKubernetesNetworkConfig = {
438
- ipFamily?: string;
439
- serviceIpv4Cidr?: string;
440
- };
441
- export type RuntimeManifestV1Alpha1SpecKubernetes = {
442
- publicAccess: boolean;
443
- privateAccess: boolean;
444
- version: string;
445
- publicCidrsAllowed: string[];
446
- privateCidrsAllowed?: string[];
447
- extraCidrsInbound?: string[];
448
- networkConfig?: RuntimeManifestV1Alpha1SpecKubernetesNetworkConfig;
449
- };
450
- export type RuntimeManifestV1Alpha1SpecNodeGroup = {
451
- volumeSize?: number;
452
- amiType?: string;
453
- capacityType?: string;
454
- desiredSize?: number;
455
- maxSize?: number;
456
- minSize?: number;
457
- };
458
- export type RuntimeManifestV1Alpha1SpecStackspotCloudPlatform = {
459
- createIamRoles: boolean;
460
- };
461
- export type RuntimeManifestV1Alpha1SpecHelmResource = {
462
- chartName: string;
463
- version: string;
464
- repoUrl: string;
465
- };
466
- export type RuntimeManifestV1Alpha1SpecKarpenterNodeClass = {
467
- name?: string;
468
- amiType?: string;
469
- amiVersion?: string;
470
- amiId?: string;
471
- detailedMonitoring?: boolean;
472
- volumeSize?: number;
473
- metadataOptions?: {
474
- [key: string]: object;
475
- };
476
- subnetIds?: string[];
477
- userData?: string;
478
- };
479
- export type RuntimeManifestV1Alpha1SpecKarpenterNodePoolLimits = {
480
- cpu: string;
481
- memory: string;
482
- };
483
- export type RuntimeManifestV1Alpha1SpecKarpenterNodePoolInstanceFamilies = {
484
- amd?: string[];
485
- arm?: string[];
486
- };
487
- export type RuntimeManifestV1Alpha1SpecKarpenterNodePool = {
488
- /** Name of the NodePool */
489
- name?: string;
490
- /** Resource limits for the NodePool */
491
- limits?: RuntimeManifestV1Alpha1SpecKarpenterNodePoolLimits;
492
- /** The amount of time a node can live on the cluster before being deleted by Karpenter */
493
- expireAfter?: string;
494
- /** Instance sizes to use with this NodePool */
495
- instanceSizes?: string[];
496
- /** Instance families to use with this NodePool */
497
- instanceFamilies?: RuntimeManifestV1Alpha1SpecKarpenterNodePoolInstanceFamilies;
498
- /** Instance architecture to use with this NodePool (valid values: amd, arm) */
499
- architecture?: string;
500
- /** Availability zones to use with this NodePool */
501
- zones?: string[];
502
- /** Instance capacity type to use with this NodePool (valid values: spot, on-demand, reserved) */
503
- capacityType?: string;
504
- /** Node Class resource to associate this NodePool with */
505
- nodeClassName?: string;
506
- /** Configuration for Karpenter to disrupt nodes through your NodePool */
507
- disruption?: {
508
- [key: string]: object;
509
- };
510
- /** Taints to add to provisioned nodes */
511
- taints?: {
512
- [key: string]: object;
513
- }[];
514
- };
515
- export type RuntimeManifestV1Alpha1SpecKarpenter = {
516
- chart?: RuntimeManifestV1Alpha1SpecHelmResource;
517
- customAnnotations?: {
518
- [key: string]: string;
519
- };
520
- replicas?: number;
521
- podAnnotations?: {
522
- [key: string]: string;
523
- };
524
- defaultNodeClass?: RuntimeManifestV1Alpha1SpecKarpenterNodeClass;
525
- additionalNodeClasses?: RuntimeManifestV1Alpha1SpecKarpenterNodeClass[];
526
- defaultNodePool?: RuntimeManifestV1Alpha1SpecKarpenterNodePool;
527
- additionalNodePools?: RuntimeManifestV1Alpha1SpecKarpenterNodePool[];
528
- };
529
- export type RuntimeManifestV1Alpha1SpecFargateConfiguration = {
530
- /** Set the Fargate Profile IAM role. If empty, it will be autocreated */
531
- roleArn?: string;
532
- /** Define selectors use with the Fargate Profile (defaults to Karpenter and coreDNS) */
533
- selector?: {
534
- [key: string]: object;
535
- }[];
536
- };
537
- export type RuntimeManifestV1Alpha1SpecDefaultEksAddonsVersions = {
538
- coreDns?: string;
539
- podIdentity?: string;
540
- vpcCni?: string;
541
- kubeProxy?: string;
542
- };
543
- export type RuntimeManifestV1Alpha1SpecDefaultEksAddonsConfigurationValues = {
544
- coreDns?: string;
545
- podIdentity?: string;
546
- vpcCni?: string;
547
- kubeProxy?: string;
548
- };
549
- export type RuntimeManifestV1Alpha1SpecDefaultEksAddons = {
550
- versions?: RuntimeManifestV1Alpha1SpecDefaultEksAddonsVersions;
551
- configurationValues?: RuntimeManifestV1Alpha1SpecDefaultEksAddonsConfigurationValues;
552
- };
553
- export type RuntimeManifestV1Alpha1SpecEksAddon = {
554
- name: string;
555
- version: string;
556
- configurationValues?: string;
557
- };
558
- export type RuntimeManifestV1Alpha1SpecEncryptionConfig = {
559
- autoCreate?: boolean;
560
- kmsKeyArn?: string;
561
- };
562
- export type RuntimeManifestV1Alpha1SpecCustomLogGroup = {
563
- enabled?: boolean;
564
- retention?: number;
565
- kmsKeyArn?: string;
566
- autoCreateKmsKey?: boolean;
567
- };
568
- export type RuntimeManifestV1Alpha1SpecSecurityGroupRule = {
569
- name: string;
570
- "type": string;
571
- description: string;
572
- protocol: string;
573
- fromPort: number;
574
- toPort: number;
575
- sourceCidr?: string;
576
- sourceIsNodeGroup?: boolean;
577
- sourcePrefixListId?: string;
578
- sourceIsCluster?: boolean;
579
- sourceIsSelf?: boolean;
580
- destinationCidr?: string;
581
- };
582
- export type RuntimeManifestV1Alpha1SpecSecurityGroup = {
583
- autoCreate?: boolean;
584
- ids?: string[];
585
- additionalRules?: RuntimeManifestV1Alpha1SpecSecurityGroupRule[];
586
- };
587
- export type RuntimeManifestV1Alpha1SpecControlPlane = {
588
- addons?: RuntimeManifestV1Alpha1SpecControlPlaneAddonReference[];
589
- instanceTypes?: string[];
590
- kubernetes: RuntimeManifestV1Alpha1SpecKubernetes;
591
- nodeGroup?: RuntimeManifestV1Alpha1SpecNodeGroup;
592
- stackspotCloudPlatform?: RuntimeManifestV1Alpha1SpecStackspotCloudPlatform;
593
- eksHelm?: RuntimeManifestV1Alpha1SpecHelmResource;
594
- iamProvider?: "AWS" | "ITAU";
595
- authenticationMode?: "API" | "API_AND_CONFIG_MAP" | "CONFIG_MAP";
596
- postBootstrapUserData?: string;
597
- bootstrapClusterCreatorAdminPermissions?: boolean;
598
- enabledClusterLogTypes?: string[];
599
- argoConfigs?: {
600
- [key: string]: object;
601
- };
602
- karpenter?: RuntimeManifestV1Alpha1SpecKarpenter;
603
- fargateConfiguration?: RuntimeManifestV1Alpha1SpecFargateConfiguration;
604
- defaultEksAddons?: RuntimeManifestV1Alpha1SpecDefaultEksAddons;
605
- additionalEksAddons?: RuntimeManifestV1Alpha1SpecEksAddon[];
606
- encryptionConfig?: RuntimeManifestV1Alpha1SpecEncryptionConfig;
607
- customLogGroup?: RuntimeManifestV1Alpha1SpecCustomLogGroup;
608
- clusterSecurityGroup?: RuntimeManifestV1Alpha1SpecSecurityGroup;
609
- nodeSecurityGroup?: RuntimeManifestV1Alpha1SpecSecurityGroup;
610
- };
611
- export type RuntimeManifestV1Alpha1SpecItauConfig = {
612
- iamsrProviderRoleArn: string;
613
- iamsrApiToken?: string;
614
- iamsrCerts?: string;
615
- };
616
- export type RuntimeManifestV1Alpha1Spec = {
617
- context: string;
618
- additionalSuffix?: string;
619
- tenantId: string;
620
- cloudAccountConfiguration: RuntimeManifestV1Alpha1SpecCloudAccountConfiguration;
621
- controlPlane: RuntimeManifestV1Alpha1SpecControlPlane;
622
- itau?: RuntimeManifestV1Alpha1SpecItauConfig;
623
- };
624
- export type RuntimeManifestV1Alpha1StatusControlPlaneCondition = {
625
- id?: string;
626
- "type": string;
627
- status: string;
628
- reason: string;
629
- message: string;
630
- lastTransitionTime: string;
631
- };
632
- export type RuntimeManifestV1Alpha1StatusControlPlane = {
633
- id: string;
634
- name: string;
635
- active?: boolean;
636
- status: string;
637
- kubeVersion: string;
638
- conditions: RuntimeManifestV1Alpha1StatusControlPlaneCondition[];
639
- };
640
- export type ManifestMetadata = {
641
- propagableLabels?: {
642
- [key: string]: string;
643
- };
644
- name: string;
645
- id?: string;
646
- version: string;
647
- labels?: {
648
- [key: string]: string;
649
- };
650
- };
651
- export type ManifestStatus = object;
652
- export type ManifestSpec = object;
653
- export type ApplicationDeploymentManifestBase = {
654
- metadata: ManifestMetadata;
655
- status?: ManifestStatus;
656
- spec: ManifestSpec;
657
- apiVersion: string;
658
- };
659
- export type ApplicationDeploymentManifestV1Spec = {
660
- runtimeId: string;
661
- destinationNamespace?: string;
662
- applicationId: string;
663
- deployTemplate: string;
664
- deployTemplateValues: {
665
- [key: string]: object;
666
- };
667
- };
668
- export type ApplicationDeploymentManifestV1Status = {
669
- revisionNumber?: number;
670
- };
671
- export type ApplicationDeploymentManifestV1 = {
672
- apiVersion: "ApplicationDeploymentManifestV1";
673
- } & ApplicationDeploymentManifestBase & {
674
- metadata?: MetadataV1;
675
- spec?: ApplicationDeploymentManifestV1Spec;
676
- status?: ApplicationDeploymentManifestV1Status;
677
- };
678
- export type Metadata = {
679
- id?: string;
680
- name: string;
681
- appVersion: string;
682
- labels: {
683
- [key: string]: string;
684
- };
685
- tags: {
686
- [key: string]: string;
687
- };
688
- };
689
- export type Spec = {
690
- runtimeId: string;
691
- applicationId?: string;
692
- blueprint: string;
693
- blueprintValues: {
694
- [key: string]: object;
695
- };
696
- };
697
- export type ApplicationDeploymentManifestV1Alpha1 = {
698
- apiVersion: "ApplicationDeploymentManifestV1Alpha1";
699
- } & ApplicationDeploymentManifestBase & {
700
- metadata?: Metadata;
701
- spec?: Spec;
702
- };
703
- export type RuntimeManifestV1Alpha1Status = {
704
- created: boolean;
705
- ready: boolean;
706
- organizationName?: string;
707
- organizationId?: string;
708
- tenantName?: string;
709
- controlPlanes?: RuntimeManifestV1Alpha1StatusControlPlane[];
710
- applicationDeployments?: (ApplicationDeploymentManifestV1 | ApplicationDeploymentManifestV1Alpha1)[];
711
- };
712
- export type RuntimeManifestV1 = {
713
- metadata: MetadataV1;
714
- spec: RuntimeManifestV1Alpha1Spec;
715
- status?: RuntimeManifestV1Alpha1Status;
716
- };
717
- export type OrganizationManifestV1Spec = {
718
- stackspotAccountId: string;
719
- };
720
- export type OrganizationManifestV1StatusControlPlane = {
721
- id: string;
722
- name: string;
723
- active: boolean;
724
- status: string;
725
- kubeVersion: string;
726
- };
727
- export type OrganizationManifestV1Status = {
728
- created: boolean;
729
- ready: boolean;
730
- controlPlanes?: OrganizationManifestV1StatusControlPlane[];
731
- };
732
- export type OrganizationManifestV1 = {
733
- metadata: MetadataV1;
734
- spec: OrganizationManifestV1Spec;
735
- status?: OrganizationManifestV1Status;
736
- };
737
- export type AssociateRuntimeWithWorkspaceEnvironmentRequest = {
738
- runtimeIds: string[];
739
- workspaceId: string;
740
- workspaceName: string;
741
- environmentId: string;
742
- environmentName: string;
743
- applicationId?: string;
744
- applicationName?: string;
745
- };
746
- export type AssociateRuntimeWithWorkspaceEnvironmentResponse = {
747
- runtimeId: string;
748
- workspaceId: string;
749
- workspaceName: string;
750
- environmentId: string;
751
- environmentName: string;
752
- applicationId?: string;
753
- applicationName?: string;
754
- };
755
- export type DeployTemplateManifestV1SpecHelm = {
756
- chartName: string;
757
- repositoryUrl: string;
758
- version: string;
759
- };
760
- export type DeployTemplateManifestV1Spec = {
761
- helm: DeployTemplateManifestV1SpecHelm;
762
- valuesSchema?: object;
763
- organizationId: string;
764
- };
765
- export type DeployTemplateManifestV1 = {
766
- metadata: MetadataV1;
767
- spec: DeployTemplateManifestV1Spec;
768
- };
769
- export type AddonManifestV1Alpha1SpecSpecHelm = {
770
- chartName: string;
771
- repositoryUrl: string;
772
- version: string;
773
- };
774
- export type AddonManifestV1Alpha1Spec = {
775
- helm: AddonManifestV1Alpha1SpecSpecHelm;
776
- valuesSchema?: object;
777
- organizationId: string;
778
- };
779
- export type AddonManifestV1 = {
780
- metadata: MetadataV1;
781
- spec: AddonManifestV1Alpha1Spec;
782
- };
783
- export type RuntimeSummary = {
784
- runtimeName: string;
785
- runtimeId: string;
786
- environmentId: string;
787
- tenantName: string;
788
- tenantId: string;
789
- organizationName: string;
790
- organizationId: string;
791
- addons: string[];
792
- };
793
- export type Association = {
794
- workspaceId: string;
795
- environmentId: string;
796
- applicationId?: string;
797
- runtimes: RuntimeSummary[];
798
- };
799
- export type ListRuntimeWorkspaceEnvironmentAssociationsResponse = {
800
- associations: Association[];
801
- };
802
- export type LogManifestV1Spec = {
803
- resourceId: string;
804
- controlPlaneId?: string;
805
- name?: string;
806
- numberOfLines: number;
807
- "type": string;
808
- };
809
- export type LogManifestV1Status = {
810
- fetchLogsTimestamp: string;
811
- logs: string[];
812
- };
813
- export type LogManifestV1 = {
814
- metadata: MetadataV1;
815
- spec: LogManifestV1Spec;
816
- status?: LogManifestV1Status;
817
- };
818
- export type HealthManifestV1Spec = {
819
- "type": string;
820
- resourceId: string;
821
- controlPlaneId?: string;
822
- };
823
- export type HealthManifestV1StatusPodResource = {
824
- cpu: string;
825
- memory: string;
826
- };
827
- export type HealthManifestV1StatusPod = {
828
- name: string;
829
- uptime: string;
830
- restarts: string;
831
- status: string;
832
- containers: string;
833
- healthStatus: string;
834
- image: string;
835
- limits: HealthManifestV1StatusPodResource;
836
- requests: HealthManifestV1StatusPodResource;
837
- };
838
- export type HealthManifestV1Status = {
839
- fetchHealthTimestamp: string;
840
- healthStatus: string;
841
- pods: HealthManifestV1StatusPod[];
842
- };
843
- export type HealthManifestV1 = {
844
- metadata: MetadataV1;
845
- spec: HealthManifestV1Spec;
846
- status?: HealthManifestV1Status;
847
- };
848
- /**
849
- * Retrieves the organization's icon image.
850
- */
851
- export function getOrganizationIcon({ organizationId }: {
852
- organizationId: string;
853
- }, opts?: Oazapfts.RequestOpts) {
854
- return oazapfts.ok(oazapfts.fetchJson<{
855
- status: 200;
856
- data: Blob;
857
- } | {
858
- status: 400;
859
- data: ErrorBody;
860
- } | {
861
- status: 401;
862
- data: ErrorBody;
863
- } | {
864
- status: 404;
865
- data: ErrorBody;
866
- } | {
867
- status: 422;
868
- data: {
869
- code?: string;
870
- details?: string;
871
- status?: string;
872
- validationDetails?: ValidationDetail[];
873
- };
874
- } | {
875
- status: 500;
876
- data: {
877
- code?: string;
878
- details?: string;
879
- status?: string;
880
- validationDetails?: ValidationDetail[];
881
- };
882
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, {
883
- ...opts
884
- }));
885
- }
886
- /**
887
- * Uploads or update the organization's icon.
888
- */
889
- export function createOrUpdateOrganizationIcon({ organizationId, body }: {
890
- organizationId: string;
891
- body?: {
892
- icon: Blob;
893
- };
894
- }, opts?: Oazapfts.RequestOpts) {
895
- return oazapfts.ok(oazapfts.fetchJson<{
896
- status: 200;
897
- data: object;
898
- } | {
899
- status: 400;
900
- data: ErrorBody;
901
- } | {
902
- status: 401;
903
- data: ErrorBody;
904
- } | {
905
- status: 404;
906
- data: ErrorBody;
907
- } | {
908
- status: 422;
909
- data: {
910
- code?: string;
911
- details?: string;
912
- status?: string;
913
- validationDetails?: ValidationDetail[];
914
- };
915
- } | {
916
- status: 500;
917
- data: {
918
- code?: string;
919
- details?: string;
920
- status?: string;
921
- validationDetails?: ValidationDetail[];
922
- };
923
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
924
- ...opts,
925
- method: "PUT",
926
- body
927
- })));
928
- }
929
- /**
930
- * Uploads the organization's icon.
931
- */
932
- export function createOrganizationIcon({ organizationId, body }: {
933
- organizationId: string;
934
- body?: {
935
- icon: Blob;
936
- };
937
- }, opts?: Oazapfts.RequestOpts) {
938
- return oazapfts.ok(oazapfts.fetchJson<{
939
- status: 200;
940
- data: object;
941
- } | {
942
- status: 201;
943
- data: object;
944
- } | {
945
- status: 400;
946
- data: ErrorBody;
947
- } | {
948
- status: 401;
949
- data: ErrorBody;
950
- } | {
951
- status: 404;
952
- data: ErrorBody;
953
- } | {
954
- status: 422;
955
- data: {
956
- code?: string;
957
- details?: string;
958
- status?: string;
959
- validationDetails?: ValidationDetail[];
960
- };
961
- } | {
962
- status: 500;
963
- data: {
964
- code?: string;
965
- details?: string;
966
- status?: string;
967
- validationDetails?: ValidationDetail[];
968
- };
969
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
970
- ...opts,
971
- method: "POST",
972
- body
973
- })));
974
- }
975
- /**
976
- * List all tenants in the stackspot account
977
- */
978
- export function listTenants({ xAccountId, page, perPage }: {
979
- xAccountId?: string;
980
- page?: number;
981
- perPage?: number;
982
- }, opts?: Oazapfts.RequestOpts) {
983
- return oazapfts.ok(oazapfts.fetchJson<{
984
- status: 200;
985
- data: TenantManifestV1[];
986
- } | {
987
- status: 400;
988
- data: ErrorBody;
989
- } | {
990
- status: 401;
991
- data: ErrorBody;
992
- } | {
993
- status: 403;
994
- data: ErrorBody;
995
- } | {
996
- status: 404;
997
- data: ErrorBody;
998
- } | {
999
- status: 422;
1000
- data: {
1001
- code?: string;
1002
- details?: string;
1003
- status?: string;
1004
- validationDetails?: ValidationDetail[];
1005
- };
1006
- } | {
1007
- status: 500;
1008
- data: {
1009
- code?: string;
1010
- details?: string;
1011
- status?: string;
1012
- validationDetails?: ValidationDetail[];
1013
- };
1014
- }>(`/v1/tenants${QS.query(QS.explode({
1015
- page,
1016
- perPage
1017
- }))}`, {
1018
- ...opts,
1019
- headers: oazapfts.mergeHeaders(opts?.headers, {
1020
- "X-Account-Id": xAccountId
1021
- })
1022
- }));
1023
- }
1024
- /**
1025
- * Creates a new tenant.
1026
- */
1027
- export function createTenant({ tenantManifestV1 }: {
1028
- tenantManifestV1: TenantManifestV1;
1029
- }, opts?: Oazapfts.RequestOpts) {
1030
- return oazapfts.ok(oazapfts.fetchJson<{
1031
- status: 201;
1032
- } | {
1033
- status: 400;
1034
- data: ErrorBody;
1035
- } | {
1036
- status: 401;
1037
- data: ErrorBody;
1038
- } | {
1039
- status: 403;
1040
- data: ErrorBody;
1041
- } | {
1042
- status: 404;
1043
- data: ErrorBody;
1044
- } | {
1045
- status: 422;
1046
- data: {
1047
- code?: string;
1048
- details?: string;
1049
- status?: string;
1050
- validationDetails?: ValidationDetail[];
1051
- };
1052
- } | {
1053
- status: 500;
1054
- data: {
1055
- code?: string;
1056
- details?: string;
1057
- status?: string;
1058
- validationDetails?: ValidationDetail[];
1059
- };
1060
- }>("/v1/tenants", oazapfts.json({
1061
- ...opts,
1062
- method: "POST",
1063
- body: tenantManifestV1
1064
- })));
1065
- }
1066
- /**
1067
- * Returns paginated runtimes.
1068
- */
1069
- export function listRuntimes({ xAccountId, page, perPage }: {
1070
- xAccountId?: string;
1071
- page?: number;
1072
- perPage?: number;
1073
- }, opts?: Oazapfts.RequestOpts) {
1074
- return oazapfts.ok(oazapfts.fetchJson<{
1075
- status: 200;
1076
- data: RuntimeManifestV1[];
1077
- } | {
1078
- status: 400;
1079
- data: ErrorBody;
1080
- } | {
1081
- status: 401;
1082
- data: ErrorBody;
1083
- } | {
1084
- status: 403;
1085
- data: ErrorBody;
1086
- } | {
1087
- status: 404;
1088
- data: ErrorBody;
1089
- } | {
1090
- status: 422;
1091
- data: {
1092
- code?: string;
1093
- details?: string;
1094
- status?: string;
1095
- validationDetails?: ValidationDetail[];
1096
- };
1097
- } | {
1098
- status: 500;
1099
- data: {
1100
- code?: string;
1101
- details?: string;
1102
- status?: string;
1103
- validationDetails?: ValidationDetail[];
1104
- };
1105
- }>(`/v1/runtimes${QS.query(QS.explode({
1106
- page,
1107
- perPage
1108
- }))}`, {
1109
- ...opts,
1110
- headers: oazapfts.mergeHeaders(opts?.headers, {
1111
- "X-Account-Id": xAccountId
1112
- })
1113
- }));
1114
- }
1115
- /**
1116
- * Creates a new runtime.
1117
- */
1118
- export function createRuntime({ runtimeManifestV1 }: {
1119
- runtimeManifestV1: RuntimeManifestV1;
1120
- }, opts?: Oazapfts.RequestOpts) {
1121
- return oazapfts.ok(oazapfts.fetchJson<{
1122
- status: 201;
1123
- } | {
1124
- status: 400;
1125
- data: ErrorBody;
1126
- } | {
1127
- status: 401;
1128
- data: ErrorBody;
1129
- } | {
1130
- status: 403;
1131
- data: ErrorBody;
1132
- } | {
1133
- status: 404;
1134
- data: ErrorBody;
1135
- } | {
1136
- status: 422;
1137
- data: {
1138
- code?: string;
1139
- details?: string;
1140
- status?: string;
1141
- validationDetails?: ValidationDetail[];
1142
- };
1143
- } | {
1144
- status: 500;
1145
- data: {
1146
- code?: string;
1147
- details?: string;
1148
- status?: string;
1149
- validationDetails?: ValidationDetail[];
1150
- };
1151
- }>("/v1/runtimes", oazapfts.json({
1152
- ...opts,
1153
- method: "POST",
1154
- body: runtimeManifestV1
1155
- })));
1156
- }
1157
- /**
1158
- * Retrieves the Stackspot account organization
1159
- */
1160
- export function getOrganizations({ xAccountId, page, perPage }: {
1161
- xAccountId?: string;
1162
- page?: number;
1163
- perPage?: number;
1164
- }, opts?: Oazapfts.RequestOpts) {
1165
- return oazapfts.ok(oazapfts.fetchJson<{
1166
- status: 200;
1167
- data: OrganizationManifestV1[];
1168
- } | {
1169
- status: 400;
1170
- data: ErrorBody;
1171
- } | {
1172
- status: 401;
1173
- data: ErrorBody;
1174
- } | {
1175
- status: 403;
1176
- data: ErrorBody;
1177
- } | {
1178
- status: 404;
1179
- data: ErrorBody;
1180
- } | {
1181
- status: 422;
1182
- data: {
1183
- code?: string;
1184
- details?: string;
1185
- status?: string;
1186
- validationDetails?: ValidationDetail[];
1187
- };
1188
- } | {
1189
- status: 500;
1190
- data: {
1191
- code?: string;
1192
- details?: string;
1193
- status?: string;
1194
- validationDetails?: ValidationDetail[];
1195
- };
1196
- }>(`/v1/organizations${QS.query(QS.explode({
1197
- page,
1198
- perPage
1199
- }))}`, {
1200
- ...opts,
1201
- headers: oazapfts.mergeHeaders(opts?.headers, {
1202
- "X-Account-Id": xAccountId
1203
- })
1204
- }));
1205
- }
1206
- /**
1207
- * Creates a new organization.
1208
- */
1209
- export function createOrganization({ organizationManifestV1 }: {
1210
- organizationManifestV1: OrganizationManifestV1;
1211
- }, opts?: Oazapfts.RequestOpts) {
1212
- return oazapfts.ok(oazapfts.fetchJson<{
1213
- status: 201;
1214
- data: OrganizationManifestV1;
1215
- } | {
1216
- status: 400;
1217
- data: ErrorBody;
1218
- } | {
1219
- status: 401;
1220
- data: ErrorBody;
1221
- } | {
1222
- status: 403;
1223
- data: ErrorBody;
1224
- } | {
1225
- status: 404;
1226
- data: ErrorBody;
1227
- } | {
1228
- status: 422;
1229
- data: {
1230
- code?: string;
1231
- details?: string;
1232
- status?: string;
1233
- validationDetails?: ValidationDetail[];
1234
- };
1235
- } | {
1236
- status: 500;
1237
- data: {
1238
- code?: string;
1239
- details?: string;
1240
- status?: string;
1241
- validationDetails?: ValidationDetail[];
1242
- };
1243
- }>("/v1/organizations", oazapfts.json({
1244
- ...opts,
1245
- method: "POST",
1246
- body: organizationManifestV1
1247
- })));
1248
- }
1249
- /**
1250
- * Returns paginated tenants.
1251
- */
1252
- export function listTenants1({ organizationId, page, perPage }: {
1253
- organizationId: string;
1254
- page?: number;
1255
- perPage?: number;
1256
- }, opts?: Oazapfts.RequestOpts) {
1257
- return oazapfts.ok(oazapfts.fetchJson<{
1258
- status: 200;
1259
- data: TenantManifestV1[];
1260
- } | {
1261
- status: 400;
1262
- data: ErrorBody;
1263
- } | {
1264
- status: 401;
1265
- data: ErrorBody;
1266
- } | {
1267
- status: 403;
1268
- data: ErrorBody;
1269
- } | {
1270
- status: 404;
1271
- data: ErrorBody;
1272
- } | {
1273
- status: 422;
1274
- data: {
1275
- code?: string;
1276
- details?: string;
1277
- status?: string;
1278
- validationDetails?: ValidationDetail[];
1279
- };
1280
- } | {
1281
- status: 500;
1282
- data: {
1283
- code?: string;
1284
- details?: string;
1285
- status?: string;
1286
- validationDetails?: ValidationDetail[];
1287
- };
1288
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants${QS.query(QS.explode({
1289
- page,
1290
- perPage
1291
- }))}`, {
1292
- ...opts
1293
- }));
1294
- }
1295
- /**
1296
- * Creates a new tenant.
1297
- */
1298
- export function createTenant1({ organizationId, tenantManifestV1 }: {
1299
- organizationId: string;
1300
- tenantManifestV1: TenantManifestV1;
1301
- }, opts?: Oazapfts.RequestOpts) {
1302
- return oazapfts.ok(oazapfts.fetchJson<{
1303
- status: 201;
1304
- data: TenantManifestV1;
1305
- } | {
1306
- status: 400;
1307
- data: ErrorBody;
1308
- } | {
1309
- status: 401;
1310
- data: ErrorBody;
1311
- } | {
1312
- status: 403;
1313
- data: ErrorBody;
1314
- } | {
1315
- status: 404;
1316
- data: ErrorBody;
1317
- } | {
1318
- status: 422;
1319
- data: {
1320
- code?: string;
1321
- details?: string;
1322
- status?: string;
1323
- validationDetails?: ValidationDetail[];
1324
- };
1325
- } | {
1326
- status: 500;
1327
- data: {
1328
- code?: string;
1329
- details?: string;
1330
- status?: string;
1331
- validationDetails?: ValidationDetail[];
1332
- };
1333
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants`, oazapfts.json({
1334
- ...opts,
1335
- method: "POST",
1336
- body: tenantManifestV1
1337
- })));
1338
- }
1339
- /**
1340
- * Returns paginated runtimes.
1341
- */
1342
- export function listRuntimes1({ organizationId, tenantId, page, perPage }: {
1343
- organizationId: string;
1344
- tenantId: string;
1345
- page?: number;
1346
- perPage?: number;
1347
- }, opts?: Oazapfts.RequestOpts) {
1348
- return oazapfts.ok(oazapfts.fetchJson<{
1349
- status: 200;
1350
- data: RuntimeManifestV1[];
1351
- } | {
1352
- status: 400;
1353
- data: ErrorBody;
1354
- } | {
1355
- status: 401;
1356
- data: ErrorBody;
1357
- } | {
1358
- status: 403;
1359
- data: ErrorBody;
1360
- } | {
1361
- status: 404;
1362
- data: ErrorBody;
1363
- } | {
1364
- status: 422;
1365
- data: {
1366
- code?: string;
1367
- details?: string;
1368
- status?: string;
1369
- validationDetails?: ValidationDetail[];
1370
- };
1371
- } | {
1372
- status: 500;
1373
- data: {
1374
- code?: string;
1375
- details?: string;
1376
- status?: string;
1377
- validationDetails?: ValidationDetail[];
1378
- };
1379
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes${QS.query(QS.explode({
1380
- page,
1381
- perPage
1382
- }))}`, {
1383
- ...opts
1384
- }));
1385
- }
1386
- /**
1387
- * Creates a new runtime.
1388
- */
1389
- export function createRuntime1({ organizationId, tenantId, runtimeManifestV1 }: {
1390
- organizationId: string;
1391
- tenantId: string;
1392
- runtimeManifestV1: RuntimeManifestV1;
1393
- }, opts?: Oazapfts.RequestOpts) {
1394
- return oazapfts.ok(oazapfts.fetchJson<{
1395
- status: 201;
1396
- data: RuntimeManifestV1;
1397
- } | {
1398
- status: 400;
1399
- data: ErrorBody;
1400
- } | {
1401
- status: 401;
1402
- data: ErrorBody;
1403
- } | {
1404
- status: 403;
1405
- data: ErrorBody;
1406
- } | {
1407
- status: 404;
1408
- data: ErrorBody;
1409
- } | {
1410
- status: 422;
1411
- data: {
1412
- code?: string;
1413
- details?: string;
1414
- status?: string;
1415
- validationDetails?: ValidationDetail[];
1416
- };
1417
- } | {
1418
- status: 500;
1419
- data: {
1420
- code?: string;
1421
- details?: string;
1422
- status?: string;
1423
- validationDetails?: ValidationDetail[];
1424
- };
1425
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes`, oazapfts.json({
1426
- ...opts,
1427
- method: "POST",
1428
- body: runtimeManifestV1
1429
- })));
1430
- }
1431
- /**
1432
- *
1433
- * Requires one of the following permissions:
1434
- * - cloud_platform:*:view
1435
- * - cloud_platform:*:support
1436
- *
1437
- */
1438
- export function listApplicationDeployments({ organizationId, tenantId, runtimeId }: {
1439
- organizationId: string;
1440
- tenantId: string;
1441
- runtimeId: string;
1442
- }, opts?: Oazapfts.RequestOpts) {
1443
- return oazapfts.ok(oazapfts.fetchJson<{
1444
- status: 200;
1445
- data: ApplicationDeploymentManifestV1[];
1446
- } | {
1447
- status: 400;
1448
- data: ErrorBody;
1449
- } | {
1450
- status: 401;
1451
- data: ErrorBody;
1452
- } | {
1453
- status: 404;
1454
- data: ErrorBody;
1455
- } | {
1456
- status: 422;
1457
- data: {
1458
- code?: string;
1459
- details?: string;
1460
- status?: string;
1461
- validationDetails?: ValidationDetail[];
1462
- };
1463
- } | {
1464
- status: 500;
1465
- data: {
1466
- code?: string;
1467
- details?: string;
1468
- status?: string;
1469
- validationDetails?: ValidationDetail[];
1470
- };
1471
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, {
1472
- ...opts
1473
- }));
1474
- }
1475
- /**
1476
- * Apply manifesto resource yaml.
1477
- */
1478
- export function deploy({ organizationId, tenantId, runtimeId, applicationDeploymentManifestV1 }: {
1479
- organizationId: string;
1480
- tenantId: string;
1481
- runtimeId: string;
1482
- applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
1483
- }, opts?: Oazapfts.RequestOpts) {
1484
- return oazapfts.ok(oazapfts.fetchJson<{
1485
- status: 202;
1486
- data: ApplicationDeploymentManifestV1;
1487
- } | {
1488
- status: 400;
1489
- data: ErrorBody;
1490
- } | {
1491
- status: 401;
1492
- data: ErrorBody;
1493
- } | {
1494
- status: 403;
1495
- data: ErrorBody;
1496
- } | {
1497
- status: 404;
1498
- data: ErrorBody;
1499
- } | {
1500
- status: 422;
1501
- data: {
1502
- code?: string;
1503
- details?: string;
1504
- status?: string;
1505
- validationDetails?: ValidationDetail[];
1506
- };
1507
- } | {
1508
- status: 500;
1509
- data: {
1510
- code?: string;
1511
- details?: string;
1512
- status?: string;
1513
- validationDetails?: ValidationDetail[];
1514
- };
1515
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, oazapfts.json({
1516
- ...opts,
1517
- method: "POST",
1518
- body: applicationDeploymentManifestV1
1519
- })));
1520
- }
1521
- /**
1522
- * Associate a runtime with a workspace's environment
1523
- */
1524
- export function associateWithWorkspaceEnvironment({ xAccountId, organizationId, tenantId, associateRuntimeWithWorkspaceEnvironmentRequest }: {
1525
- xAccountId?: string;
1526
- organizationId: string;
1527
- tenantId: string;
1528
- associateRuntimeWithWorkspaceEnvironmentRequest: AssociateRuntimeWithWorkspaceEnvironmentRequest;
1529
- }, opts?: Oazapfts.RequestOpts) {
1530
- return oazapfts.ok(oazapfts.fetchJson<{
1531
- status: 200;
1532
- data: AssociateRuntimeWithWorkspaceEnvironmentResponse[];
1533
- } | {
1534
- status: 400;
1535
- data: ErrorBody;
1536
- } | {
1537
- status: 401;
1538
- data: ErrorBody;
1539
- } | {
1540
- status: 403;
1541
- data: ErrorBody;
1542
- } | {
1543
- status: 404;
1544
- data: ErrorBody;
1545
- } | {
1546
- status: 409;
1547
- data: ErrorBody;
1548
- } | {
1549
- status: 422;
1550
- data: {
1551
- code?: string;
1552
- details?: string;
1553
- status?: string;
1554
- validationDetails?: ValidationDetail[];
1555
- };
1556
- } | {
1557
- status: 500;
1558
- data: {
1559
- code?: string;
1560
- details?: string;
1561
- status?: string;
1562
- validationDetails?: ValidationDetail[];
1563
- };
1564
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/associations`, oazapfts.json({
1565
- ...opts,
1566
- method: "POST",
1567
- body: associateRuntimeWithWorkspaceEnvironmentRequest,
1568
- headers: oazapfts.mergeHeaders(opts?.headers, {
1569
- "X-Account-Id": xAccountId
1570
- })
1571
- })));
1572
- }
1573
- /**
1574
- * List DeployTemplate's
1575
- */
1576
- export function listDeployTemplate({ organizationId }: {
1577
- organizationId: string;
1578
- }, opts?: Oazapfts.RequestOpts) {
1579
- return oazapfts.ok(oazapfts.fetchJson<{
1580
- status: 200;
1581
- data: DeployTemplateManifestV1[];
1582
- } | {
1583
- status: 400;
1584
- data: ErrorBody;
1585
- } | {
1586
- status: 401;
1587
- data: ErrorBody;
1588
- } | {
1589
- status: 404;
1590
- data: ErrorBody;
1591
- } | {
1592
- status: 422;
1593
- data: {
1594
- code?: string;
1595
- details?: string;
1596
- status?: string;
1597
- validationDetails?: ValidationDetail[];
1598
- };
1599
- } | {
1600
- status: 500;
1601
- data: {
1602
- code?: string;
1603
- details?: string;
1604
- status?: string;
1605
- validationDetails?: ValidationDetail[];
1606
- };
1607
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, {
1608
- ...opts
1609
- }));
1610
- }
1611
- /**
1612
- * Create DeployTemplate
1613
- */
1614
- export function createDeployTemplate({ organizationId, deployTemplateManifestV1 }: {
1615
- organizationId: string;
1616
- deployTemplateManifestV1: DeployTemplateManifestV1;
1617
- }, opts?: Oazapfts.RequestOpts) {
1618
- return oazapfts.ok(oazapfts.fetchJson<{
1619
- status: 202;
1620
- data: DeployTemplateManifestV1;
1621
- } | {
1622
- status: 400;
1623
- data: ErrorBody;
1624
- } | {
1625
- status: 401;
1626
- data: ErrorBody;
1627
- } | {
1628
- status: 404;
1629
- data: ErrorBody;
1630
- } | {
1631
- status: 422;
1632
- data: {
1633
- code?: string;
1634
- details?: string;
1635
- status?: string;
1636
- validationDetails?: ValidationDetail[];
1637
- };
1638
- } | {
1639
- status: 500;
1640
- data: {
1641
- code?: string;
1642
- details?: string;
1643
- status?: string;
1644
- validationDetails?: ValidationDetail[];
1645
- };
1646
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, oazapfts.json({
1647
- ...opts,
1648
- method: "POST",
1649
- body: deployTemplateManifestV1
1650
- })));
1651
- }
1652
- /**
1653
- * List Addon's
1654
- */
1655
- export function listAddon({ organizationId }: {
1656
- organizationId: string;
1657
- }, opts?: Oazapfts.RequestOpts) {
1658
- return oazapfts.ok(oazapfts.fetchJson<{
1659
- status: 200;
1660
- data: AddonManifestV1[];
1661
- } | {
1662
- status: 400;
1663
- data: ErrorBody;
1664
- } | {
1665
- status: 401;
1666
- data: ErrorBody;
1667
- } | {
1668
- status: 404;
1669
- data: ErrorBody;
1670
- } | {
1671
- status: 422;
1672
- data: {
1673
- code?: string;
1674
- details?: string;
1675
- status?: string;
1676
- validationDetails?: ValidationDetail[];
1677
- };
1678
- } | {
1679
- status: 500;
1680
- data: {
1681
- code?: string;
1682
- details?: string;
1683
- status?: string;
1684
- validationDetails?: ValidationDetail[];
1685
- };
1686
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, {
1687
- ...opts
1688
- }));
1689
- }
1690
- /**
1691
- * Create Addon
1692
- */
1693
- export function createAddon({ organizationId, addonManifestV1 }: {
1694
- organizationId: string;
1695
- addonManifestV1: AddonManifestV1;
1696
- }, opts?: Oazapfts.RequestOpts) {
1697
- return oazapfts.ok(oazapfts.fetchJson<{
1698
- status: 202;
1699
- data: AddonManifestV1;
1700
- } | {
1701
- status: 400;
1702
- data: ErrorBody;
1703
- } | {
1704
- status: 401;
1705
- data: ErrorBody;
1706
- } | {
1707
- status: 404;
1708
- data: ErrorBody;
1709
- } | {
1710
- status: 422;
1711
- data: {
1712
- code?: string;
1713
- details?: string;
1714
- status?: string;
1715
- validationDetails?: ValidationDetail[];
1716
- };
1717
- } | {
1718
- status: 500;
1719
- data: {
1720
- code?: string;
1721
- details?: string;
1722
- status?: string;
1723
- validationDetails?: ValidationDetail[];
1724
- };
1725
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, oazapfts.json({
1726
- ...opts,
1727
- method: "POST",
1728
- body: addonManifestV1
1729
- })));
1730
- }
1731
- /**
1732
- * List application deployments
1733
- */
1734
- export function listApplicationDeployments1(opts?: Oazapfts.RequestOpts) {
1735
- return oazapfts.ok(oazapfts.fetchJson<{
1736
- status: 200;
1737
- data: ApplicationDeploymentManifestV1[];
1738
- } | {
1739
- status: 400;
1740
- data: ErrorBody;
1741
- } | {
1742
- status: 401;
1743
- data: ErrorBody;
1744
- } | {
1745
- status: 404;
1746
- data: ErrorBody;
1747
- } | {
1748
- status: 422;
1749
- data: {
1750
- code?: string;
1751
- details?: string;
1752
- status?: string;
1753
- validationDetails?: ValidationDetail[];
1754
- };
1755
- } | {
1756
- status: 500;
1757
- data: {
1758
- code?: string;
1759
- details?: string;
1760
- status?: string;
1761
- validationDetails?: ValidationDetail[];
1762
- };
1763
- }>("/v1/applications/deployments", {
1764
- ...opts
1765
- }));
1766
- }
1767
- /**
1768
- * Apply manifesto resource yaml.
1769
- */
1770
- export function deploy1({ applicationDeploymentManifestV1 }: {
1771
- applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
1772
- }, opts?: Oazapfts.RequestOpts) {
1773
- return oazapfts.ok(oazapfts.fetchJson<{
1774
- status: 202;
1775
- data: ApplicationDeploymentManifestV1;
1776
- } | {
1777
- status: 400;
1778
- data: ErrorBody;
1779
- } | {
1780
- status: 401;
1781
- data: ErrorBody;
1782
- } | {
1783
- status: 403;
1784
- data: ErrorBody;
1785
- } | {
1786
- status: 404;
1787
- data: ErrorBody;
1788
- } | {
1789
- status: 422;
1790
- data: {
1791
- code?: string;
1792
- details?: string;
1793
- status?: string;
1794
- validationDetails?: ValidationDetail[];
1795
- };
1796
- } | {
1797
- status: 500;
1798
- data: {
1799
- code?: string;
1800
- details?: string;
1801
- status?: string;
1802
- validationDetails?: ValidationDetail[];
1803
- };
1804
- }>("/v1/applications/deployments", oazapfts.json({
1805
- ...opts,
1806
- method: "POST",
1807
- body: applicationDeploymentManifestV1
1808
- })));
1809
- }
1810
- /**
1811
- * Retrieves the tenant details.
1812
- */
1813
- export function getTenant({ id }: {
1814
- id: string;
1815
- }, opts?: Oazapfts.RequestOpts) {
1816
- return oazapfts.ok(oazapfts.fetchJson<{
1817
- status: 200;
1818
- data: TenantManifestV1;
1819
- } | {
1820
- status: 400;
1821
- data: ErrorBody;
1822
- } | {
1823
- status: 401;
1824
- data: ErrorBody;
1825
- } | {
1826
- status: 403;
1827
- data: ErrorBody;
1828
- } | {
1829
- status: 404;
1830
- data: ErrorBody;
1831
- } | {
1832
- status: 422;
1833
- data: {
1834
- code?: string;
1835
- details?: string;
1836
- status?: string;
1837
- validationDetails?: ValidationDetail[];
1838
- };
1839
- } | {
1840
- status: 500;
1841
- data: {
1842
- code?: string;
1843
- details?: string;
1844
- status?: string;
1845
- validationDetails?: ValidationDetail[];
1846
- };
1847
- }>(`/v1/tenants/${encodeURIComponent(id)}`, {
1848
- ...opts
1849
- }));
1850
- }
1851
- /**
1852
- * Retrieves the runtime details.
1853
- */
1854
- export function getRuntime({ id }: {
1855
- id: string;
1856
- }, opts?: Oazapfts.RequestOpts) {
1857
- return oazapfts.ok(oazapfts.fetchJson<{
1858
- status: 200;
1859
- data: RuntimeManifestV1;
1860
- } | {
1861
- status: 400;
1862
- data: ErrorBody;
1863
- } | {
1864
- status: 401;
1865
- data: ErrorBody;
1866
- } | {
1867
- status: 403;
1868
- data: ErrorBody;
1869
- } | {
1870
- status: 404;
1871
- data: ErrorBody;
1872
- } | {
1873
- status: 422;
1874
- data: {
1875
- code?: string;
1876
- details?: string;
1877
- status?: string;
1878
- validationDetails?: ValidationDetail[];
1879
- };
1880
- } | {
1881
- status: 500;
1882
- data: {
1883
- code?: string;
1884
- details?: string;
1885
- status?: string;
1886
- validationDetails?: ValidationDetail[];
1887
- };
1888
- }>(`/v1/runtimes/${encodeURIComponent(id)}`, {
1889
- ...opts
1890
- }));
1891
- }
1892
- export function listAssociations({ xAccountId, workspaceId, envId, applicationId }: {
1893
- xAccountId?: string;
1894
- workspaceId: string;
1895
- envId?: string;
1896
- applicationId?: string;
1897
- }, opts?: Oazapfts.RequestOpts) {
1898
- return oazapfts.ok(oazapfts.fetchJson<{
1899
- status: 200;
1900
- data: ListRuntimeWorkspaceEnvironmentAssociationsResponse;
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/runtimes/associations/workspaces${QS.query(QS.explode({
1927
- workspaceId,
1928
- envId,
1929
- applicationId
1930
- }))}`, {
1931
- ...opts,
1932
- headers: oazapfts.mergeHeaders(opts?.headers, {
1933
- "X-Account-Id": xAccountId
1934
- })
1935
- }));
1936
- }
1937
- /**
1938
- * Retrieves associate a runtime with a workspace's environment
1939
- */
1940
- export function getAssociationWorkspaceEnvironmentByRuntimeId({ xAccountId, organizationId, tenantId, runtimeId }: {
1941
- xAccountId?: string;
1942
- organizationId: string;
1943
- tenantId: string;
1944
- runtimeId: string;
1945
- }, opts?: Oazapfts.RequestOpts) {
1946
- return oazapfts.ok(oazapfts.fetchJson<{
1947
- status: 200;
1948
- data: AssociateRuntimeWithWorkspaceEnvironmentResponse[];
1949
- } | {
1950
- status: 400;
1951
- data: ErrorBody;
1952
- } | {
1953
- status: 401;
1954
- data: ErrorBody;
1955
- } | {
1956
- status: 404;
1957
- data: ErrorBody;
1958
- } | {
1959
- status: 422;
1960
- data: {
1961
- code?: string;
1962
- details?: string;
1963
- status?: string;
1964
- validationDetails?: ValidationDetail[];
1965
- };
1966
- } | {
1967
- status: 500;
1968
- data: {
1969
- code?: string;
1970
- details?: string;
1971
- status?: string;
1972
- validationDetails?: ValidationDetail[];
1973
- };
1974
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/associations`, {
1975
- ...opts,
1976
- headers: oazapfts.mergeHeaders(opts?.headers, {
1977
- "X-Account-Id": xAccountId
1978
- })
1979
- }));
1980
- }
1981
- /**
1982
- *
1983
- * Requires one of the following permissions:
1984
- * - cloud_platform:*:view
1985
- * - cloud_platform:*:support
1986
- *
1987
- */
1988
- export function findApplicationDeploymentById({ organizationId, tenantId, runtimeId, deploymentId }: {
1989
- organizationId: string;
1990
- tenantId: string;
1991
- runtimeId: string;
1992
- deploymentId: string;
1993
- }, opts?: Oazapfts.RequestOpts) {
1994
- return oazapfts.ok(oazapfts.fetchJson<{
1995
- status: 200;
1996
- data: ApplicationDeploymentManifestV1;
1997
- } | {
1998
- status: 400;
1999
- data: ErrorBody;
2000
- } | {
2001
- status: 401;
2002
- data: ErrorBody;
2003
- } | {
2004
- status: 404;
2005
- data: ErrorBody;
2006
- } | {
2007
- status: 422;
2008
- data: {
2009
- code?: string;
2010
- details?: string;
2011
- status?: string;
2012
- validationDetails?: ValidationDetail[];
2013
- };
2014
- } | {
2015
- status: 500;
2016
- data: {
2017
- code?: string;
2018
- details?: string;
2019
- status?: string;
2020
- validationDetails?: ValidationDetail[];
2021
- };
2022
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2023
- ...opts
2024
- }));
2025
- }
2026
- /**
2027
- * Delete application deployment
2028
- */
2029
- export function deleteApplicationDeployment({ organizationId, tenantId, runtimeId, deploymentId }: {
2030
- organizationId: string;
2031
- tenantId: string;
2032
- runtimeId: string;
2033
- deploymentId: string;
2034
- }, opts?: Oazapfts.RequestOpts) {
2035
- return oazapfts.ok(oazapfts.fetchJson<{
2036
- status: 200;
2037
- data: string;
2038
- } | {
2039
- status: 400;
2040
- data: ErrorBody;
2041
- } | {
2042
- status: 401;
2043
- data: ErrorBody;
2044
- } | {
2045
- status: 404;
2046
- data: ErrorBody;
2047
- } | {
2048
- status: 422;
2049
- data: {
2050
- code?: string;
2051
- details?: string;
2052
- status?: string;
2053
- validationDetails?: ValidationDetail[];
2054
- };
2055
- } | {
2056
- status: 500;
2057
- data: {
2058
- code?: string;
2059
- details?: string;
2060
- status?: string;
2061
- validationDetails?: ValidationDetail[];
2062
- };
2063
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2064
- ...opts,
2065
- method: "DELETE"
2066
- }));
2067
- }
2068
- /**
2069
- * Get application deployment logs.
2070
- */
2071
- export function getApplicationDeploymentLogs({ organizationId, tenantId, runtimeId, deploymentId, numberOfLines }: {
2072
- organizationId: string;
2073
- tenantId: string;
2074
- runtimeId: string;
2075
- deploymentId: string;
2076
- numberOfLines?: number;
2077
- }, opts?: Oazapfts.RequestOpts) {
2078
- return oazapfts.ok(oazapfts.fetchJson<{
2079
- status: 200;
2080
- data: LogManifestV1;
2081
- } | {
2082
- status: 400;
2083
- data: ErrorBody;
2084
- } | {
2085
- status: 401;
2086
- data: ErrorBody;
2087
- } | {
2088
- status: 404;
2089
- data: ErrorBody;
2090
- } | {
2091
- status: 422;
2092
- data: {
2093
- code?: string;
2094
- details?: string;
2095
- status?: string;
2096
- validationDetails?: ValidationDetail[];
2097
- };
2098
- } | {
2099
- status: 500;
2100
- data: {
2101
- code?: string;
2102
- details?: string;
2103
- status?: string;
2104
- validationDetails?: ValidationDetail[];
2105
- };
2106
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
2107
- numberOfLines
2108
- }))}`, {
2109
- ...opts
2110
- }));
2111
- }
2112
- /**
2113
- * Get application deployment health.
2114
- */
2115
- export function getApplicationDeploymentHealth({ organizationId, tenantId, runtimeId, deploymentId }: {
2116
- organizationId: string;
2117
- tenantId: string;
2118
- runtimeId: string;
2119
- deploymentId: string;
2120
- }, opts?: Oazapfts.RequestOpts) {
2121
- return oazapfts.ok(oazapfts.fetchJson<{
2122
- status: 200;
2123
- data: HealthManifestV1;
2124
- } | {
2125
- status: 400;
2126
- data: ErrorBody;
2127
- } | {
2128
- status: 401;
2129
- data: ErrorBody;
2130
- } | {
2131
- status: 404;
2132
- data: ErrorBody;
2133
- } | {
2134
- status: 422;
2135
- data: {
2136
- code?: string;
2137
- details?: string;
2138
- status?: string;
2139
- validationDetails?: ValidationDetail[];
2140
- };
2141
- } | {
2142
- status: 500;
2143
- data: {
2144
- code?: string;
2145
- details?: string;
2146
- status?: string;
2147
- validationDetails?: ValidationDetail[];
2148
- };
2149
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
2150
- ...opts
2151
- }));
2152
- }
2153
- /**
2154
- * Retrieves the runtime details.
2155
- */
2156
- export function getRuntime1({ organizationId, tenantId, id }: {
2157
- organizationId: string;
2158
- tenantId: string;
2159
- id: string;
2160
- }, opts?: Oazapfts.RequestOpts) {
2161
- return oazapfts.ok(oazapfts.fetchJson<{
2162
- status: 200;
2163
- data: RuntimeManifestV1;
2164
- } | {
2165
- status: 400;
2166
- data: ErrorBody;
2167
- } | {
2168
- status: 401;
2169
- data: ErrorBody;
2170
- } | {
2171
- status: 403;
2172
- data: ErrorBody;
2173
- } | {
2174
- status: 404;
2175
- data: ErrorBody;
2176
- } | {
2177
- status: 422;
2178
- data: {
2179
- code?: string;
2180
- details?: string;
2181
- status?: string;
2182
- validationDetails?: ValidationDetail[];
2183
- };
2184
- } | {
2185
- status: 500;
2186
- data: {
2187
- code?: string;
2188
- details?: string;
2189
- status?: string;
2190
- validationDetails?: ValidationDetail[];
2191
- };
2192
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(id)}`, {
2193
- ...opts
2194
- }));
2195
- }
2196
- /**
2197
- * Retrieves the tenant details.
2198
- */
2199
- export function getTenant1({ organizationId, id }: {
2200
- organizationId: string;
2201
- id: string;
2202
- }, opts?: Oazapfts.RequestOpts) {
2203
- return oazapfts.ok(oazapfts.fetchJson<{
2204
- status: 200;
2205
- data: TenantManifestV1;
2206
- } | {
2207
- status: 400;
2208
- data: ErrorBody;
2209
- } | {
2210
- status: 401;
2211
- data: ErrorBody;
2212
- } | {
2213
- status: 403;
2214
- data: ErrorBody;
2215
- } | {
2216
- status: 404;
2217
- data: ErrorBody;
2218
- } | {
2219
- status: 422;
2220
- data: {
2221
- code?: string;
2222
- details?: string;
2223
- status?: string;
2224
- validationDetails?: ValidationDetail[];
2225
- };
2226
- } | {
2227
- status: 500;
2228
- data: {
2229
- code?: string;
2230
- details?: string;
2231
- status?: string;
2232
- validationDetails?: ValidationDetail[];
2233
- };
2234
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(id)}`, {
2235
- ...opts
2236
- }));
2237
- }
2238
- /**
2239
- * Get DeployTemplate
2240
- */
2241
- export function getDeployTemplate({ organizationId, deployTemplateId }: {
2242
- organizationId: string;
2243
- deployTemplateId: string;
2244
- }, opts?: Oazapfts.RequestOpts) {
2245
- return oazapfts.ok(oazapfts.fetchJson<{
2246
- status: 200;
2247
- data: DeployTemplateManifestV1;
2248
- } | {
2249
- status: 400;
2250
- data: ErrorBody;
2251
- } | {
2252
- status: 401;
2253
- data: ErrorBody;
2254
- } | {
2255
- status: 404;
2256
- data: ErrorBody;
2257
- } | {
2258
- status: 422;
2259
- data: {
2260
- code?: string;
2261
- details?: string;
2262
- status?: string;
2263
- validationDetails?: ValidationDetail[];
2264
- };
2265
- } | {
2266
- status: 500;
2267
- data: {
2268
- code?: string;
2269
- details?: string;
2270
- status?: string;
2271
- validationDetails?: ValidationDetail[];
2272
- };
2273
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
2274
- ...opts
2275
- }));
2276
- }
2277
- /**
2278
- * Delete DeployTemplate
2279
- */
2280
- export function deleteDeployTemplate({ organizationId, deployTemplateId }: {
2281
- organizationId: string;
2282
- deployTemplateId: string;
2283
- }, opts?: Oazapfts.RequestOpts) {
2284
- return oazapfts.ok(oazapfts.fetchJson<{
2285
- status: 200;
2286
- data: DeployTemplateManifestV1;
2287
- } | {
2288
- status: 400;
2289
- data: ErrorBody;
2290
- } | {
2291
- status: 401;
2292
- data: ErrorBody;
2293
- } | {
2294
- status: 404;
2295
- data: ErrorBody;
2296
- } | {
2297
- status: 422;
2298
- data: {
2299
- code?: string;
2300
- details?: string;
2301
- status?: string;
2302
- validationDetails?: ValidationDetail[];
2303
- };
2304
- } | {
2305
- status: 500;
2306
- data: {
2307
- code?: string;
2308
- details?: string;
2309
- status?: string;
2310
- validationDetails?: ValidationDetail[];
2311
- };
2312
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
2313
- ...opts,
2314
- method: "DELETE"
2315
- }));
2316
- }
2317
- /**
2318
- * Get Addon
2319
- */
2320
- export function getAddon({ organizationId, addonId }: {
2321
- organizationId: string;
2322
- addonId: string;
2323
- }, opts?: Oazapfts.RequestOpts) {
2324
- return oazapfts.ok(oazapfts.fetchJson<{
2325
- status: 200;
2326
- data: AddonManifestV1;
2327
- } | {
2328
- status: 400;
2329
- data: ErrorBody;
2330
- } | {
2331
- status: 401;
2332
- data: ErrorBody;
2333
- } | {
2334
- status: 404;
2335
- data: ErrorBody;
2336
- } | {
2337
- status: 422;
2338
- data: {
2339
- code?: string;
2340
- details?: string;
2341
- status?: string;
2342
- validationDetails?: ValidationDetail[];
2343
- };
2344
- } | {
2345
- status: 500;
2346
- data: {
2347
- code?: string;
2348
- details?: string;
2349
- status?: string;
2350
- validationDetails?: ValidationDetail[];
2351
- };
2352
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons/${encodeURIComponent(addonId)}`, {
2353
- ...opts
2354
- }));
2355
- }
2356
- /**
2357
- * Retrieves the organization by ID
2358
- */
2359
- export function getOrganizationById({ organizationId }: {
2360
- organizationId: string;
2361
- }, opts?: Oazapfts.RequestOpts) {
2362
- return oazapfts.ok(oazapfts.fetchJson<{
2363
- status: 200;
2364
- data: OrganizationManifestV1;
2365
- } | {
2366
- status: 400;
2367
- data: ErrorBody;
2368
- } | {
2369
- status: 401;
2370
- data: ErrorBody;
2371
- } | {
2372
- status: 403;
2373
- data: ErrorBody;
2374
- } | {
2375
- status: 404;
2376
- data: ErrorBody;
2377
- } | {
2378
- status: 422;
2379
- data: {
2380
- code?: string;
2381
- details?: string;
2382
- status?: string;
2383
- validationDetails?: ValidationDetail[];
2384
- };
2385
- } | {
2386
- status: 500;
2387
- data: {
2388
- code?: string;
2389
- details?: string;
2390
- status?: string;
2391
- validationDetails?: ValidationDetail[];
2392
- };
2393
- }>(`/v1/organizations/${encodeURIComponent(organizationId)}`, {
2394
- ...opts
2395
- }));
2396
- }
2397
- /**
2398
- * Downloads the bootstrap module for creating a new organization.
2399
- */
2400
- export function downloadBootstrapModule({ version }: {
2401
- version?: string;
2402
- }, opts?: Oazapfts.RequestOpts) {
2403
- return oazapfts.ok(oazapfts.fetchJson<{
2404
- status: 200;
2405
- data: Blob;
2406
- } | {
2407
- status: 400;
2408
- data: ErrorBody;
2409
- } | {
2410
- status: 401;
2411
- data: ErrorBody;
2412
- } | {
2413
- status: 403;
2414
- data: ErrorBody;
2415
- } | {
2416
- status: 404;
2417
- data: ErrorBody;
2418
- } | {
2419
- status: 422;
2420
- data: {
2421
- code?: string;
2422
- details?: string;
2423
- status?: string;
2424
- validationDetails?: ValidationDetail[];
2425
- };
2426
- } | {
2427
- status: 500;
2428
- data: {
2429
- code?: string;
2430
- details?: string;
2431
- status?: string;
2432
- validationDetails?: ValidationDetail[];
2433
- };
2434
- }>(`/v1/organizations/bootstrap${QS.query(QS.explode({
2435
- version
2436
- }))}`, {
2437
- ...opts
2438
- }));
2439
- }
2440
- export function getTenantExample(opts?: Oazapfts.RequestOpts) {
2441
- return oazapfts.ok(oazapfts.fetchJson<{
2442
- status: 200;
2443
- data: TenantManifestV1;
2444
- } | {
2445
- status: 400;
2446
- data: ErrorBody;
2447
- } | {
2448
- status: 401;
2449
- data: ErrorBody;
2450
- } | {
2451
- status: 404;
2452
- data: ErrorBody;
2453
- } | {
2454
- status: 422;
2455
- data: {
2456
- code?: string;
2457
- details?: string;
2458
- status?: string;
2459
- validationDetails?: ValidationDetail[];
2460
- };
2461
- } | {
2462
- status: 500;
2463
- data: {
2464
- code?: string;
2465
- details?: string;
2466
- status?: string;
2467
- validationDetails?: ValidationDetail[];
2468
- };
2469
- }>("/v1/examples/tenant", {
2470
- ...opts
2471
- }));
2472
- }
2473
- export function getRuntimeExample(opts?: Oazapfts.RequestOpts) {
2474
- return oazapfts.ok(oazapfts.fetchJson<{
2475
- status: 200;
2476
- data: RuntimeManifestV1;
2477
- } | {
2478
- status: 400;
2479
- data: ErrorBody;
2480
- } | {
2481
- status: 401;
2482
- data: ErrorBody;
2483
- } | {
2484
- status: 404;
2485
- data: ErrorBody;
2486
- } | {
2487
- status: 422;
2488
- data: {
2489
- code?: string;
2490
- details?: string;
2491
- status?: string;
2492
- validationDetails?: ValidationDetail[];
2493
- };
2494
- } | {
2495
- status: 500;
2496
- data: {
2497
- code?: string;
2498
- details?: string;
2499
- status?: string;
2500
- validationDetails?: ValidationDetail[];
2501
- };
2502
- }>("/v1/examples/runtime", {
2503
- ...opts
2504
- }));
2505
- }
2506
- export function getApplicationDeploymentExample(opts?: Oazapfts.RequestOpts) {
2507
- return oazapfts.ok(oazapfts.fetchJson<{
2508
- status: 200;
2509
- data: ApplicationDeploymentManifestV1;
2510
- } | {
2511
- status: 400;
2512
- data: ErrorBody;
2513
- } | {
2514
- status: 401;
2515
- data: ErrorBody;
2516
- } | {
2517
- status: 404;
2518
- data: ErrorBody;
2519
- } | {
2520
- status: 422;
2521
- data: {
2522
- code?: string;
2523
- details?: string;
2524
- status?: string;
2525
- validationDetails?: ValidationDetail[];
2526
- };
2527
- } | {
2528
- status: 500;
2529
- data: {
2530
- code?: string;
2531
- details?: string;
2532
- status?: string;
2533
- validationDetails?: ValidationDetail[];
2534
- };
2535
- }>("/v1/examples/applicationDeployment", {
2536
- ...opts
2537
- }));
2538
- }
2539
- /**
2540
- * Get application deployment by ID
2541
- */
2542
- export function findApplicationDeploymentById1({ deploymentId }: {
2543
- deploymentId: string;
2544
- }, opts?: Oazapfts.RequestOpts) {
2545
- return oazapfts.ok(oazapfts.fetchJson<{
2546
- status: 200;
2547
- data: ApplicationDeploymentManifestV1;
2548
- } | {
2549
- status: 400;
2550
- data: ErrorBody;
2551
- } | {
2552
- status: 401;
2553
- data: ErrorBody;
2554
- } | {
2555
- status: 404;
2556
- data: ErrorBody;
2557
- } | {
2558
- status: 422;
2559
- data: {
2560
- code?: string;
2561
- details?: string;
2562
- status?: string;
2563
- validationDetails?: ValidationDetail[];
2564
- };
2565
- } | {
2566
- status: 500;
2567
- data: {
2568
- code?: string;
2569
- details?: string;
2570
- status?: string;
2571
- validationDetails?: ValidationDetail[];
2572
- };
2573
- }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2574
- ...opts
2575
- }));
2576
- }
2577
- /**
2578
- * Get application deployment logs.
2579
- */
2580
- export function getApplicationDeploymentLogs1({ deploymentId, numberOfLines }: {
2581
- deploymentId: string;
2582
- numberOfLines?: number;
2583
- }, opts?: Oazapfts.RequestOpts) {
2584
- return oazapfts.ok(oazapfts.fetchJson<{
2585
- status: 200;
2586
- data: LogManifestV1;
2587
- } | {
2588
- status: 400;
2589
- data: ErrorBody;
2590
- } | {
2591
- status: 401;
2592
- data: ErrorBody;
2593
- } | {
2594
- status: 404;
2595
- data: ErrorBody;
2596
- } | {
2597
- status: 422;
2598
- data: {
2599
- code?: string;
2600
- details?: string;
2601
- status?: string;
2602
- validationDetails?: ValidationDetail[];
2603
- };
2604
- } | {
2605
- status: 500;
2606
- data: {
2607
- code?: string;
2608
- details?: string;
2609
- status?: string;
2610
- validationDetails?: ValidationDetail[];
2611
- };
2612
- }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
2613
- numberOfLines
2614
- }))}`, {
2615
- ...opts
2616
- }));
2617
- }
2618
- /**
2619
- * Get application deployment health.
2620
- */
2621
- export function getApplicationDeploymentHealth1({ deploymentId }: {
2622
- deploymentId: string;
2623
- }, opts?: Oazapfts.RequestOpts) {
2624
- return oazapfts.ok(oazapfts.fetchJson<{
2625
- status: 200;
2626
- data: HealthManifestV1;
2627
- } | {
2628
- status: 400;
2629
- data: ErrorBody;
2630
- } | {
2631
- status: 401;
2632
- data: ErrorBody;
2633
- } | {
2634
- status: 404;
2635
- data: ErrorBody;
2636
- } | {
2637
- status: 422;
2638
- data: {
2639
- code?: string;
2640
- details?: string;
2641
- status?: string;
2642
- validationDetails?: ValidationDetail[];
2643
- };
2644
- } | {
2645
- status: 500;
2646
- data: {
2647
- code?: string;
2648
- details?: string;
2649
- status?: string;
2650
- validationDetails?: ValidationDetail[];
2651
- };
2652
- }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
2653
- ...opts
2654
- }));
2655
- }
1
+ /**
2
+ * PlatformHorizonApplication
3
+ * 0.0.2
4
+ * DO NOT MODIFY - This file has been generated using oazapfts.
5
+ * See https://www.npmjs.com/package/oazapfts
6
+ */
7
+ import * as Oazapfts from "@oazapfts/runtime";
8
+ import * as QS from "@oazapfts/runtime/query";
9
+ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
+ headers: {},
11
+ baseUrl: "https://cloud-platform-horizon.dev.stackspot.com",
12
+ };
13
+ const oazapfts = Oazapfts.runtime(defaults);
14
+ export const servers = {
15
+ generatedServerUrl: "https://cloud-platform-horizon.dev.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[];
26
+ };
27
+ export type MetadataV1 = {
28
+ id?: string;
29
+ name: string;
30
+ version: string;
31
+ labels?: {
32
+ [key: string]: string;
33
+ };
34
+ propagableLabels?: {
35
+ [key: string]: string;
36
+ };
37
+ };
38
+ export type TenantManifestV1SpecCloudAccountConfigurationFromRef = {
39
+ id: string;
40
+ };
41
+ export type TenantManifestV1SpecCloudAccountConfigurationIamRoles = {
42
+ clusterRole?: string;
43
+ clusterNodeGroup?: string;
44
+ clusterAdminRoles: string[];
45
+ crossplane?: string;
46
+ crossAccountRoleArn?: string;
47
+ argocd?: string;
48
+ karpenter?: string;
49
+ externalSecrets?: string;
50
+ stackspotCloudPlatformAgent?: string;
51
+ stackspotCloudPlatformManager?: string;
52
+ stackspotCloudPlatformGateway?: string;
53
+ nodeRole?: string;
54
+ };
55
+ export type TenantManifestV1SpecCloudAccountConfiguration = {
56
+ fromRef?: TenantManifestV1SpecCloudAccountConfigurationFromRef;
57
+ cloudProvider?: string;
58
+ accountId?: string;
59
+ region?: string;
60
+ vpcId?: string;
61
+ subnetIds?: string[];
62
+ customAmi?: string;
63
+ iamRoles?: TenantManifestV1SpecCloudAccountConfigurationIamRoles;
64
+ };
65
+ export type TenantManifestV1SpecAddonReference = {
66
+ /** Name of the registered addon */
67
+ name: string;
68
+ /** Version of the registered addon */
69
+ version: string;
70
+ /** Context for this addon */
71
+ context: string;
72
+ "namespace": string;
73
+ values?: {
74
+ [key: string]: object;
75
+ };
76
+ };
77
+ export type TenantManifestV1SpecKubernetesNetworkConfig = {
78
+ ipFamily?: string;
79
+ serviceIpv4Cidr?: string;
80
+ };
81
+ export type TenantManifestV1SpecKubernetes = {
82
+ publicAccess: boolean;
83
+ privateAccess: boolean;
84
+ version: string;
85
+ publicCidrsAllowed: string[];
86
+ privateCidrsAllowed?: string[];
87
+ extraCidrsInbound?: string[];
88
+ networkConfig?: TenantManifestV1SpecKubernetesNetworkConfig;
89
+ };
90
+ export type TenantManifestV1SpecNodeGroup = {
91
+ volumeSize?: number;
92
+ amiType?: string;
93
+ capacityType?: string;
94
+ desiredSize?: number;
95
+ maxSize?: number;
96
+ minSize?: number;
97
+ };
98
+ export type TenantManifestV1SpecStackspotCloudPlatform = {
99
+ createIamRoles: boolean;
100
+ };
101
+ export type TenantManifestV1SpecHelmResource = {
102
+ chartName: string;
103
+ version: string;
104
+ repoUrl: string;
105
+ };
106
+ export type TenantManifestV1SpecSeleneAppsSeleneAppEnv = {
107
+ name: string;
108
+ value: string;
109
+ };
110
+ export type TenantManifestV1SpecSeleneAppsSeleneApp = {
111
+ imageRepository: string;
112
+ imageVersion?: string;
113
+ labels?: {
114
+ [key: string]: string;
115
+ };
116
+ annotations?: {
117
+ [key: string]: string;
118
+ };
119
+ env?: TenantManifestV1SpecSeleneAppsSeleneAppEnv[];
120
+ };
121
+ export type TenantManifestV1SpecSeleneApps = {
122
+ agent: TenantManifestV1SpecSeleneAppsSeleneApp;
123
+ gateway: TenantManifestV1SpecSeleneAppsSeleneApp;
124
+ manager: TenantManifestV1SpecSeleneAppsSeleneApp;
125
+ platformGatewayUrl: string;
126
+ };
127
+ export type TenantManifestV1SpecArgoCdMetrics = {
128
+ enabled: boolean;
129
+ };
130
+ export type TenantManifestV1SpecArgoCdComponentConfig = {
131
+ metrics?: TenantManifestV1SpecArgoCdMetrics;
132
+ podAnnotations?: {
133
+ [key: string]: string;
134
+ };
135
+ };
136
+ export type TenantManifestV1SpecArgoCdConfigsSsh = {
137
+ extraHosts: string;
138
+ };
139
+ export type TenantManifestV1SpecArgoCdConfigsTls = {
140
+ certificates: {
141
+ [key: string]: string;
142
+ };
143
+ };
144
+ export type TenantManifestV1SpecArgoCdConfigs = {
145
+ ssh?: TenantManifestV1SpecArgoCdConfigsSsh;
146
+ tls?: TenantManifestV1SpecArgoCdConfigsTls;
147
+ repositories?: {
148
+ [key: string]: object;
149
+ };
150
+ credentialTemplates?: {
151
+ [key: string]: object;
152
+ };
153
+ };
154
+ export type TenantManifestV1SpecArgoCd = {
155
+ chart?: TenantManifestV1SpecHelmResource;
156
+ server?: TenantManifestV1SpecArgoCdComponentConfig;
157
+ controller?: TenantManifestV1SpecArgoCdComponentConfig;
158
+ applicationSet?: TenantManifestV1SpecArgoCdComponentConfig;
159
+ repoServer?: TenantManifestV1SpecArgoCdComponentConfig;
160
+ configs?: TenantManifestV1SpecArgoCdConfigs;
161
+ };
162
+ export type TenantManifestV1SpecKarpenterNodeClass = {
163
+ name?: string;
164
+ amiType?: string;
165
+ amiVersion?: string;
166
+ amiId?: string;
167
+ detailedMonitoring?: boolean;
168
+ volumeSize?: number;
169
+ metadataOptions?: {
170
+ [key: string]: object;
171
+ };
172
+ subnetIds?: string[];
173
+ userData?: string;
174
+ };
175
+ export type TenantManifestV1SpecKarpenterNodePoolLimits = {
176
+ cpu: string;
177
+ memory: string;
178
+ };
179
+ export type TenantManifestV1SpecKarpenterNodePoolInstanceFamilies = {
180
+ amd?: string[];
181
+ arm?: string[];
182
+ };
183
+ export type TenantManifestV1SpecKarpenterNodePool = {
184
+ /** Name of the NodePool */
185
+ name?: string;
186
+ /** Resource limits for the NodePool */
187
+ limits?: TenantManifestV1SpecKarpenterNodePoolLimits;
188
+ /** The amount of time a node can live on the cluster before being deleted by Karpenter */
189
+ expireAfter?: string;
190
+ /** Instance sizes to use with this NodePool */
191
+ instanceSizes?: string[];
192
+ /** Instance families to use with this NodePool */
193
+ instanceFamilies?: TenantManifestV1SpecKarpenterNodePoolInstanceFamilies;
194
+ /** Instance architecture to use with this NodePool (valid values: amd, arm) */
195
+ architecture?: string;
196
+ /** Availability zones to use with this NodePool */
197
+ zones?: string[];
198
+ /** Instance capacity type to use with this NodePool (valid values: spot, on-demand, reserved) */
199
+ capacityType?: string;
200
+ /** Node Class resource to associate this NodePool with */
201
+ nodeClassName?: string;
202
+ /** Configuration for Karpenter to disrupt nodes through your NodePool */
203
+ disruption?: {
204
+ [key: string]: object;
205
+ };
206
+ /** Taints to add to provisioned nodes */
207
+ taints?: {
208
+ [key: string]: object;
209
+ }[];
210
+ };
211
+ export type TenantManifestV1SpecKarpenter = {
212
+ chart?: TenantManifestV1SpecHelmResource;
213
+ customAnnotations?: {
214
+ [key: string]: string;
215
+ };
216
+ replicas?: number;
217
+ podAnnotations?: {
218
+ [key: string]: string;
219
+ };
220
+ defaultNodeClass?: TenantManifestV1SpecKarpenterNodeClass;
221
+ additionalNodeClasses?: TenantManifestV1SpecKarpenterNodeClass[];
222
+ defaultNodePool?: TenantManifestV1SpecKarpenterNodePool;
223
+ additionalNodePools?: TenantManifestV1SpecKarpenterNodePool[];
224
+ };
225
+ export type TenantManifestV1SpecExternalSecretsHelmRepoConfig = {
226
+ url: string;
227
+ username?: string;
228
+ password?: string;
229
+ };
230
+ export type TenantManifestV1SpecExternalSecrets = {
231
+ enabled?: boolean;
232
+ chart?: TenantManifestV1SpecHelmResource;
233
+ helmRepo?: TenantManifestV1SpecExternalSecretsHelmRepoConfig;
234
+ enableMetrics?: boolean;
235
+ podAnnotations?: {
236
+ [key: string]: string;
237
+ };
238
+ };
239
+ export type TenantManifestV1SpecFargateConfiguration = {
240
+ /** Set the Fargate Profile IAM role. If empty, it will be autocreated */
241
+ roleArn?: string;
242
+ /** Define selectors use with the Fargate Profile (defaults to Karpenter and coreDNS) */
243
+ selector?: {
244
+ [key: string]: object;
245
+ }[];
246
+ };
247
+ export type TenantManifestV1SpecCrossplaneMetrics = {
248
+ enabled?: boolean;
249
+ };
250
+ export type TenantManifestV1SpecCrossplaneProvider = {
251
+ services?: string[];
252
+ version: string;
253
+ repo: string;
254
+ };
255
+ export type TenantManifestV1SpecCrossplaneDefaultProvider = {
256
+ aws?: TenantManifestV1SpecCrossplaneProvider;
257
+ kubernetes?: TenantManifestV1SpecCrossplaneProvider;
258
+ };
259
+ export type TenantManifestV1SpecCrossplaneFunction = {
260
+ name: string;
261
+ version: string;
262
+ repo: string;
263
+ };
264
+ export type TenantManifestV1SpecCrossplane = {
265
+ chart?: TenantManifestV1SpecHelmResource;
266
+ replicas?: number;
267
+ registryCaBundleConfig?: {
268
+ [key: string]: object;
269
+ };
270
+ metrics?: TenantManifestV1SpecCrossplaneMetrics;
271
+ customAnnotations?: {
272
+ [key: string]: string;
273
+ };
274
+ defaultProviders?: TenantManifestV1SpecCrossplaneDefaultProvider;
275
+ defaultFunctions?: TenantManifestV1SpecCrossplaneFunction[];
276
+ additionalFunctions?: TenantManifestV1SpecCrossplaneFunction[];
277
+ };
278
+ export type TenantManifestV1SpecDefaultEksAddonsVersions = {
279
+ coreDns?: string;
280
+ podIdentity?: string;
281
+ vpcCni?: string;
282
+ kubeProxy?: string;
283
+ };
284
+ export type TenantManifestV1SpecDefaultEksAddonsConfigurationValues = {
285
+ coreDns?: string;
286
+ podIdentity?: string;
287
+ vpcCni?: string;
288
+ kubeProxy?: string;
289
+ };
290
+ export type TenantManifestV1SpecDefaultEksAddons = {
291
+ versions?: TenantManifestV1SpecDefaultEksAddonsVersions;
292
+ configurationValues?: TenantManifestV1SpecDefaultEksAddonsConfigurationValues;
293
+ };
294
+ export type TenantManifestV1SpecEksAddon = {
295
+ name: string;
296
+ version: string;
297
+ configurationValues?: string;
298
+ };
299
+ export type TenantManifestV1SpecEncryptionConfig = {
300
+ autoCreate?: boolean;
301
+ kmsKeyArn?: string;
302
+ };
303
+ export type TenantManifestV1SpecCustomLogGroup = {
304
+ enabled?: boolean;
305
+ retention?: number;
306
+ kmsKeyArn?: string;
307
+ autoCreateKmsKey?: boolean;
308
+ };
309
+ export type TenantManifestV1SpecSecurityGroupRule = {
310
+ name: string;
311
+ "type": string;
312
+ description: string;
313
+ protocol: string;
314
+ fromPort: number;
315
+ toPort: number;
316
+ sourceCidr?: string;
317
+ sourceIsNodeGroup?: boolean;
318
+ sourcePrefixListId?: string;
319
+ sourceIsCluster?: boolean;
320
+ sourceIsSelf?: boolean;
321
+ destinationCidr?: string;
322
+ };
323
+ export type TenantManifestV1SpecSecurityGroup = {
324
+ autoCreate?: boolean;
325
+ ids?: string[];
326
+ additionalRules?: TenantManifestV1SpecSecurityGroupRule[];
327
+ };
328
+ export type TenantManifestV1SpecControlPlane = {
329
+ addons: TenantManifestV1SpecAddonReference[];
330
+ instanceTypes?: string[];
331
+ kubernetes: TenantManifestV1SpecKubernetes;
332
+ nodeGroup?: TenantManifestV1SpecNodeGroup;
333
+ stackspotCloudPlatform?: TenantManifestV1SpecStackspotCloudPlatform;
334
+ crossplaneNamespace: string;
335
+ eksHelm?: TenantManifestV1SpecHelmResource;
336
+ seleneHelm?: TenantManifestV1SpecHelmResource;
337
+ seleneApps?: TenantManifestV1SpecSeleneApps;
338
+ iamProvider?: "AWS" | "ITAU";
339
+ postBootstrapUserData?: string;
340
+ bootstrapClusterCreatorAdminPermissions?: boolean;
341
+ enabledClusterLogTypes?: string[];
342
+ argoCd?: TenantManifestV1SpecArgoCd;
343
+ controlPlaneCustomAnnotations?: {
344
+ [key: string]: string;
345
+ };
346
+ karpenter?: TenantManifestV1SpecKarpenter;
347
+ authenticationMode?: "API" | "API_AND_CONFIG_MAP" | "CONFIG_MAP";
348
+ supportType?: string;
349
+ externalSecrets?: TenantManifestV1SpecExternalSecrets;
350
+ fargateConfiguration?: TenantManifestV1SpecFargateConfiguration;
351
+ crossplane?: TenantManifestV1SpecCrossplane;
352
+ defaultEksAddons?: TenantManifestV1SpecDefaultEksAddons;
353
+ additionalEksAddons?: TenantManifestV1SpecEksAddon[];
354
+ encryptionConfig?: TenantManifestV1SpecEncryptionConfig;
355
+ customLogGroup?: TenantManifestV1SpecCustomLogGroup;
356
+ clusterSecurityGroup?: TenantManifestV1SpecSecurityGroup;
357
+ nodeSecurityGroup?: TenantManifestV1SpecSecurityGroup;
358
+ };
359
+ export type TenantManifestV1SpecItauConfig = {
360
+ iamsrProviderRoleArn: string;
361
+ iamsrApiToken?: string;
362
+ iamsrCerts?: string;
363
+ };
364
+ export type TenantManifestV1Spec = {
365
+ context: string;
366
+ additionalSuffix?: string;
367
+ organizationId: string;
368
+ cloudAccountConfiguration: TenantManifestV1SpecCloudAccountConfiguration;
369
+ controlPlane: TenantManifestV1SpecControlPlane;
370
+ itau?: TenantManifestV1SpecItauConfig;
371
+ };
372
+ export type TenantManifestV1StatusControlPlaneCondition = {
373
+ id?: string;
374
+ "type": string;
375
+ status: string;
376
+ reason: string;
377
+ message: string;
378
+ lastTransitionTime: string;
379
+ };
380
+ export type TenantManifestV1StatusControlPlane = {
381
+ id: string;
382
+ name: string;
383
+ active?: boolean;
384
+ status: string;
385
+ kubeVersion: string;
386
+ conditions: TenantManifestV1StatusControlPlaneCondition[];
387
+ };
388
+ export type TenantManifestV1Runtime = {
389
+ id: string;
390
+ name: string;
391
+ status: string;
392
+ };
393
+ export type TenantManifestV1Status = {
394
+ created: boolean;
395
+ ready: boolean;
396
+ organizationName?: string;
397
+ controlPlanes?: TenantManifestV1StatusControlPlane[];
398
+ runtimes?: TenantManifestV1Runtime[];
399
+ };
400
+ export type TenantManifestV1 = {
401
+ metadata: MetadataV1;
402
+ spec: TenantManifestV1Spec;
403
+ status?: TenantManifestV1Status;
404
+ };
405
+ export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef = {
406
+ id: string;
407
+ };
408
+ export type RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles = {
409
+ clusterRole?: string;
410
+ nodeRole?: string;
411
+ clusterNodeGroup?: string;
412
+ clusterAdminRoles: string[];
413
+ karpenter?: string;
414
+ };
415
+ export type RuntimeManifestV1Alpha1SpecCloudAccountConfiguration = {
416
+ fromRef?: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationFromRef;
417
+ cloudProvider: string;
418
+ accountId: string;
419
+ region: string;
420
+ vpcId: string;
421
+ subnetIds: string[];
422
+ customAmi?: string;
423
+ iamRoles: RuntimeManifestV1Alpha1SpecCloudAccountConfigurationIamRoles;
424
+ };
425
+ export type RuntimeManifestV1Alpha1SpecControlPlaneAddonReference = {
426
+ /** Name of the registered addon */
427
+ name: string;
428
+ /** Version of the registered addon */
429
+ version: string;
430
+ /** Context for this addon */
431
+ context: string;
432
+ "namespace": string;
433
+ values?: {
434
+ [key: string]: object;
435
+ };
436
+ };
437
+ export type RuntimeManifestV1Alpha1SpecKubernetesNetworkConfig = {
438
+ ipFamily?: string;
439
+ serviceIpv4Cidr?: string;
440
+ };
441
+ export type RuntimeManifestV1Alpha1SpecKubernetes = {
442
+ publicAccess: boolean;
443
+ privateAccess: boolean;
444
+ version: string;
445
+ publicCidrsAllowed: string[];
446
+ privateCidrsAllowed?: string[];
447
+ extraCidrsInbound?: string[];
448
+ networkConfig?: RuntimeManifestV1Alpha1SpecKubernetesNetworkConfig;
449
+ };
450
+ export type RuntimeManifestV1Alpha1SpecNodeGroup = {
451
+ volumeSize?: number;
452
+ amiType?: string;
453
+ capacityType?: string;
454
+ desiredSize?: number;
455
+ maxSize?: number;
456
+ minSize?: number;
457
+ };
458
+ export type RuntimeManifestV1Alpha1SpecStackspotCloudPlatform = {
459
+ createIamRoles: boolean;
460
+ };
461
+ export type RuntimeManifestV1Alpha1SpecHelmResource = {
462
+ chartName: string;
463
+ version: string;
464
+ repoUrl: string;
465
+ };
466
+ export type RuntimeManifestV1Alpha1SpecKarpenterNodeClass = {
467
+ name?: string;
468
+ amiType?: string;
469
+ amiVersion?: string;
470
+ amiId?: string;
471
+ detailedMonitoring?: boolean;
472
+ volumeSize?: number;
473
+ metadataOptions?: {
474
+ [key: string]: object;
475
+ };
476
+ subnetIds?: string[];
477
+ userData?: string;
478
+ };
479
+ export type RuntimeManifestV1Alpha1SpecKarpenterNodePoolLimits = {
480
+ cpu: string;
481
+ memory: string;
482
+ };
483
+ export type RuntimeManifestV1Alpha1SpecKarpenterNodePoolInstanceFamilies = {
484
+ amd?: string[];
485
+ arm?: string[];
486
+ };
487
+ export type RuntimeManifestV1Alpha1SpecKarpenterNodePool = {
488
+ /** Name of the NodePool */
489
+ name?: string;
490
+ /** Resource limits for the NodePool */
491
+ limits?: RuntimeManifestV1Alpha1SpecKarpenterNodePoolLimits;
492
+ /** The amount of time a node can live on the cluster before being deleted by Karpenter */
493
+ expireAfter?: string;
494
+ /** Instance sizes to use with this NodePool */
495
+ instanceSizes?: string[];
496
+ /** Instance families to use with this NodePool */
497
+ instanceFamilies?: RuntimeManifestV1Alpha1SpecKarpenterNodePoolInstanceFamilies;
498
+ /** Instance architecture to use with this NodePool (valid values: amd, arm) */
499
+ architecture?: string;
500
+ /** Availability zones to use with this NodePool */
501
+ zones?: string[];
502
+ /** Instance capacity type to use with this NodePool (valid values: spot, on-demand, reserved) */
503
+ capacityType?: string;
504
+ /** Node Class resource to associate this NodePool with */
505
+ nodeClassName?: string;
506
+ /** Configuration for Karpenter to disrupt nodes through your NodePool */
507
+ disruption?: {
508
+ [key: string]: object;
509
+ };
510
+ /** Taints to add to provisioned nodes */
511
+ taints?: {
512
+ [key: string]: object;
513
+ }[];
514
+ };
515
+ export type RuntimeManifestV1Alpha1SpecKarpenter = {
516
+ chart?: RuntimeManifestV1Alpha1SpecHelmResource;
517
+ customAnnotations?: {
518
+ [key: string]: string;
519
+ };
520
+ replicas?: number;
521
+ podAnnotations?: {
522
+ [key: string]: string;
523
+ };
524
+ defaultNodeClass?: RuntimeManifestV1Alpha1SpecKarpenterNodeClass;
525
+ additionalNodeClasses?: RuntimeManifestV1Alpha1SpecKarpenterNodeClass[];
526
+ defaultNodePool?: RuntimeManifestV1Alpha1SpecKarpenterNodePool;
527
+ additionalNodePools?: RuntimeManifestV1Alpha1SpecKarpenterNodePool[];
528
+ };
529
+ export type RuntimeManifestV1Alpha1SpecFargateConfiguration = {
530
+ /** Set the Fargate Profile IAM role. If empty, it will be autocreated */
531
+ roleArn?: string;
532
+ /** Define selectors use with the Fargate Profile (defaults to Karpenter and coreDNS) */
533
+ selector?: {
534
+ [key: string]: object;
535
+ }[];
536
+ };
537
+ export type RuntimeManifestV1Alpha1SpecDefaultEksAddonsVersions = {
538
+ coreDns?: string;
539
+ podIdentity?: string;
540
+ vpcCni?: string;
541
+ kubeProxy?: string;
542
+ };
543
+ export type RuntimeManifestV1Alpha1SpecDefaultEksAddonsConfigurationValues = {
544
+ coreDns?: string;
545
+ podIdentity?: string;
546
+ vpcCni?: string;
547
+ kubeProxy?: string;
548
+ };
549
+ export type RuntimeManifestV1Alpha1SpecDefaultEksAddons = {
550
+ versions?: RuntimeManifestV1Alpha1SpecDefaultEksAddonsVersions;
551
+ configurationValues?: RuntimeManifestV1Alpha1SpecDefaultEksAddonsConfigurationValues;
552
+ };
553
+ export type RuntimeManifestV1Alpha1SpecEksAddon = {
554
+ name: string;
555
+ version: string;
556
+ configurationValues?: string;
557
+ };
558
+ export type RuntimeManifestV1Alpha1SpecEncryptionConfig = {
559
+ autoCreate?: boolean;
560
+ kmsKeyArn?: string;
561
+ };
562
+ export type RuntimeManifestV1Alpha1SpecCustomLogGroup = {
563
+ enabled?: boolean;
564
+ retention?: number;
565
+ kmsKeyArn?: string;
566
+ autoCreateKmsKey?: boolean;
567
+ };
568
+ export type RuntimeManifestV1Alpha1SpecSecurityGroupRule = {
569
+ name: string;
570
+ "type": string;
571
+ description: string;
572
+ protocol: string;
573
+ fromPort: number;
574
+ toPort: number;
575
+ sourceCidr?: string;
576
+ sourceIsNodeGroup?: boolean;
577
+ sourcePrefixListId?: string;
578
+ sourceIsCluster?: boolean;
579
+ sourceIsSelf?: boolean;
580
+ destinationCidr?: string;
581
+ };
582
+ export type RuntimeManifestV1Alpha1SpecSecurityGroup = {
583
+ autoCreate?: boolean;
584
+ ids?: string[];
585
+ additionalRules?: RuntimeManifestV1Alpha1SpecSecurityGroupRule[];
586
+ };
587
+ export type RuntimeManifestV1Alpha1SpecControlPlane = {
588
+ addons?: RuntimeManifestV1Alpha1SpecControlPlaneAddonReference[];
589
+ instanceTypes?: string[];
590
+ kubernetes: RuntimeManifestV1Alpha1SpecKubernetes;
591
+ nodeGroup?: RuntimeManifestV1Alpha1SpecNodeGroup;
592
+ stackspotCloudPlatform?: RuntimeManifestV1Alpha1SpecStackspotCloudPlatform;
593
+ eksHelm?: RuntimeManifestV1Alpha1SpecHelmResource;
594
+ iamProvider?: "AWS" | "ITAU";
595
+ authenticationMode?: "API" | "API_AND_CONFIG_MAP" | "CONFIG_MAP";
596
+ postBootstrapUserData?: string;
597
+ bootstrapClusterCreatorAdminPermissions?: boolean;
598
+ enabledClusterLogTypes?: string[];
599
+ argoConfigs?: {
600
+ [key: string]: object;
601
+ };
602
+ karpenter?: RuntimeManifestV1Alpha1SpecKarpenter;
603
+ fargateConfiguration?: RuntimeManifestV1Alpha1SpecFargateConfiguration;
604
+ defaultEksAddons?: RuntimeManifestV1Alpha1SpecDefaultEksAddons;
605
+ additionalEksAddons?: RuntimeManifestV1Alpha1SpecEksAddon[];
606
+ encryptionConfig?: RuntimeManifestV1Alpha1SpecEncryptionConfig;
607
+ customLogGroup?: RuntimeManifestV1Alpha1SpecCustomLogGroup;
608
+ clusterSecurityGroup?: RuntimeManifestV1Alpha1SpecSecurityGroup;
609
+ nodeSecurityGroup?: RuntimeManifestV1Alpha1SpecSecurityGroup;
610
+ };
611
+ export type RuntimeManifestV1Alpha1SpecItauConfig = {
612
+ iamsrProviderRoleArn: string;
613
+ iamsrApiToken?: string;
614
+ iamsrCerts?: string;
615
+ };
616
+ export type RuntimeManifestV1Alpha1Spec = {
617
+ context: string;
618
+ additionalSuffix?: string;
619
+ tenantId: string;
620
+ cloudAccountConfiguration: RuntimeManifestV1Alpha1SpecCloudAccountConfiguration;
621
+ controlPlane: RuntimeManifestV1Alpha1SpecControlPlane;
622
+ itau?: RuntimeManifestV1Alpha1SpecItauConfig;
623
+ };
624
+ export type RuntimeManifestV1Alpha1StatusControlPlaneCondition = {
625
+ id?: string;
626
+ "type": string;
627
+ status: string;
628
+ reason: string;
629
+ message: string;
630
+ lastTransitionTime: string;
631
+ };
632
+ export type RuntimeManifestV1Alpha1StatusControlPlane = {
633
+ id: string;
634
+ name: string;
635
+ active?: boolean;
636
+ status: string;
637
+ kubeVersion: string;
638
+ conditions: RuntimeManifestV1Alpha1StatusControlPlaneCondition[];
639
+ };
640
+ export type ManifestMetadata = {
641
+ propagableLabels?: {
642
+ [key: string]: string;
643
+ };
644
+ name: string;
645
+ id?: string;
646
+ version: string;
647
+ labels?: {
648
+ [key: string]: string;
649
+ };
650
+ };
651
+ export type ManifestStatus = object;
652
+ export type ManifestSpec = object;
653
+ export type ApplicationDeploymentManifestBase = {
654
+ metadata: ManifestMetadata;
655
+ status?: ManifestStatus;
656
+ spec: ManifestSpec;
657
+ apiVersion: string;
658
+ };
659
+ export type ApplicationDeploymentManifestV1Spec = {
660
+ runtimeId: string;
661
+ destinationNamespace?: string;
662
+ applicationId: string;
663
+ deployTemplate: string;
664
+ deployTemplateValues: {
665
+ [key: string]: object;
666
+ };
667
+ };
668
+ export type ApplicationDeploymentManifestV1Status = {
669
+ revisionNumber?: number;
670
+ };
671
+ export type ApplicationDeploymentManifestV1 = {
672
+ apiVersion: "ApplicationDeploymentManifestV1";
673
+ } & ApplicationDeploymentManifestBase & {
674
+ metadata?: MetadataV1;
675
+ spec?: ApplicationDeploymentManifestV1Spec;
676
+ status?: ApplicationDeploymentManifestV1Status;
677
+ };
678
+ export type Metadata = {
679
+ id?: string;
680
+ name: string;
681
+ appVersion: string;
682
+ labels: {
683
+ [key: string]: string;
684
+ };
685
+ tags: {
686
+ [key: string]: string;
687
+ };
688
+ };
689
+ export type Spec = {
690
+ runtimeId: string;
691
+ applicationId?: string;
692
+ blueprint: string;
693
+ blueprintValues: {
694
+ [key: string]: object;
695
+ };
696
+ };
697
+ export type ApplicationDeploymentManifestV1Alpha1 = {
698
+ apiVersion: "ApplicationDeploymentManifestV1Alpha1";
699
+ } & ApplicationDeploymentManifestBase & {
700
+ metadata?: Metadata;
701
+ spec?: Spec;
702
+ };
703
+ export type RuntimeManifestV1Alpha1Status = {
704
+ created: boolean;
705
+ ready: boolean;
706
+ organizationName?: string;
707
+ organizationId?: string;
708
+ tenantName?: string;
709
+ controlPlanes?: RuntimeManifestV1Alpha1StatusControlPlane[];
710
+ applicationDeployments?: (ApplicationDeploymentManifestV1 | ApplicationDeploymentManifestV1Alpha1)[];
711
+ };
712
+ export type RuntimeManifestV1 = {
713
+ metadata: MetadataV1;
714
+ spec: RuntimeManifestV1Alpha1Spec;
715
+ status?: RuntimeManifestV1Alpha1Status;
716
+ };
717
+ export type OrganizationManifestV1Spec = {
718
+ stackspotAccountId: string;
719
+ };
720
+ export type OrganizationManifestV1StatusControlPlane = {
721
+ id: string;
722
+ name: string;
723
+ active: boolean;
724
+ status: string;
725
+ kubeVersion: string;
726
+ };
727
+ export type OrganizationManifestV1Status = {
728
+ created: boolean;
729
+ ready: boolean;
730
+ controlPlanes?: OrganizationManifestV1StatusControlPlane[];
731
+ };
732
+ export type OrganizationManifestV1 = {
733
+ metadata: MetadataV1;
734
+ spec: OrganizationManifestV1Spec;
735
+ status?: OrganizationManifestV1Status;
736
+ };
737
+ export type AssociateRuntimeWithWorkspaceEnvironmentRequest = {
738
+ runtimeIds: string[];
739
+ workspaceId: string;
740
+ workspaceName: string;
741
+ environmentId: string;
742
+ environmentName: string;
743
+ applicationId?: string;
744
+ applicationName?: string;
745
+ };
746
+ export type AssociateRuntimeWithWorkspaceEnvironmentResponse = {
747
+ runtimeId: string;
748
+ workspaceId: string;
749
+ workspaceName: string;
750
+ environmentId: string;
751
+ environmentName: string;
752
+ applicationId?: string;
753
+ applicationName?: string;
754
+ };
755
+ export type DeployTemplateManifestV1SpecHelm = {
756
+ chartName: string;
757
+ repositoryUrl: string;
758
+ version: string;
759
+ };
760
+ export type DeployTemplateManifestV1Spec = {
761
+ helm: DeployTemplateManifestV1SpecHelm;
762
+ valuesSchema?: object;
763
+ organizationId: string;
764
+ };
765
+ export type DeployTemplateManifestV1 = {
766
+ metadata: MetadataV1;
767
+ spec: DeployTemplateManifestV1Spec;
768
+ };
769
+ export type AddonManifestV1Alpha1SpecSpecHelm = {
770
+ chartName: string;
771
+ repositoryUrl: string;
772
+ version: string;
773
+ };
774
+ export type AddonManifestV1Alpha1Spec = {
775
+ helm: AddonManifestV1Alpha1SpecSpecHelm;
776
+ valuesSchema?: object;
777
+ organizationId: string;
778
+ };
779
+ export type AddonManifestV1 = {
780
+ metadata: MetadataV1;
781
+ spec: AddonManifestV1Alpha1Spec;
782
+ };
783
+ export type RuntimeSummary = {
784
+ runtimeName: string;
785
+ runtimeId: string;
786
+ environmentId: string;
787
+ tenantName: string;
788
+ tenantId: string;
789
+ organizationName: string;
790
+ organizationId: string;
791
+ addons: string[];
792
+ };
793
+ export type Association = {
794
+ workspaceId: string;
795
+ environmentId: string;
796
+ applicationId?: string;
797
+ runtimes: RuntimeSummary[];
798
+ };
799
+ export type ListRuntimeWorkspaceEnvironmentAssociationsResponse = {
800
+ associations: Association[];
801
+ };
802
+ export type LogManifestV1Spec = {
803
+ resourceId: string;
804
+ controlPlaneId?: string;
805
+ name?: string;
806
+ numberOfLines: number;
807
+ "type": string;
808
+ };
809
+ export type LogManifestV1Status = {
810
+ fetchLogsTimestamp: string;
811
+ logs: string[];
812
+ };
813
+ export type LogManifestV1 = {
814
+ metadata: MetadataV1;
815
+ spec: LogManifestV1Spec;
816
+ status?: LogManifestV1Status;
817
+ };
818
+ export type HealthManifestV1Spec = {
819
+ "type": string;
820
+ resourceId: string;
821
+ controlPlaneId?: string;
822
+ };
823
+ export type HealthManifestV1StatusPodResource = {
824
+ cpu: string;
825
+ memory: string;
826
+ };
827
+ export type HealthManifestV1StatusPod = {
828
+ name: string;
829
+ uptime: string;
830
+ restarts: string;
831
+ status: string;
832
+ containers: string;
833
+ healthStatus: string;
834
+ image: string;
835
+ limits: HealthManifestV1StatusPodResource;
836
+ requests: HealthManifestV1StatusPodResource;
837
+ };
838
+ export type HealthManifestV1Status = {
839
+ fetchHealthTimestamp: string;
840
+ healthStatus: string;
841
+ pods: HealthManifestV1StatusPod[];
842
+ };
843
+ export type HealthManifestV1 = {
844
+ metadata: MetadataV1;
845
+ spec: HealthManifestV1Spec;
846
+ status?: HealthManifestV1Status;
847
+ };
848
+ /**
849
+ * Retrieves the organization's icon image.
850
+ */
851
+ export function getOrganizationIcon({ organizationId }: {
852
+ organizationId: string;
853
+ }, opts?: Oazapfts.RequestOpts) {
854
+ return oazapfts.ok(oazapfts.fetchJson<{
855
+ status: 200;
856
+ data: Blob;
857
+ } | {
858
+ status: 400;
859
+ data: ErrorBody;
860
+ } | {
861
+ status: 401;
862
+ data: ErrorBody;
863
+ } | {
864
+ status: 404;
865
+ data: ErrorBody;
866
+ } | {
867
+ status: 422;
868
+ data: {
869
+ code?: string;
870
+ details?: string;
871
+ status?: string;
872
+ validationDetails?: ValidationDetail[];
873
+ };
874
+ } | {
875
+ status: 500;
876
+ data: {
877
+ code?: string;
878
+ details?: string;
879
+ status?: string;
880
+ validationDetails?: ValidationDetail[];
881
+ };
882
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, {
883
+ ...opts
884
+ }));
885
+ }
886
+ /**
887
+ * Uploads or update the organization's icon.
888
+ */
889
+ export function createOrUpdateOrganizationIcon({ organizationId, body }: {
890
+ organizationId: string;
891
+ body?: {
892
+ icon: Blob;
893
+ };
894
+ }, opts?: Oazapfts.RequestOpts) {
895
+ return oazapfts.ok(oazapfts.fetchJson<{
896
+ status: 200;
897
+ data: object;
898
+ } | {
899
+ status: 400;
900
+ data: ErrorBody;
901
+ } | {
902
+ status: 401;
903
+ data: ErrorBody;
904
+ } | {
905
+ status: 404;
906
+ data: ErrorBody;
907
+ } | {
908
+ status: 422;
909
+ data: {
910
+ code?: string;
911
+ details?: string;
912
+ status?: string;
913
+ validationDetails?: ValidationDetail[];
914
+ };
915
+ } | {
916
+ status: 500;
917
+ data: {
918
+ code?: string;
919
+ details?: string;
920
+ status?: string;
921
+ validationDetails?: ValidationDetail[];
922
+ };
923
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
924
+ ...opts,
925
+ method: "PUT",
926
+ body
927
+ })));
928
+ }
929
+ /**
930
+ * Uploads the organization's icon.
931
+ */
932
+ export function createOrganizationIcon({ organizationId, body }: {
933
+ organizationId: string;
934
+ body?: {
935
+ icon: Blob;
936
+ };
937
+ }, opts?: Oazapfts.RequestOpts) {
938
+ return oazapfts.ok(oazapfts.fetchJson<{
939
+ status: 200;
940
+ data: object;
941
+ } | {
942
+ status: 201;
943
+ data: object;
944
+ } | {
945
+ status: 400;
946
+ data: ErrorBody;
947
+ } | {
948
+ status: 401;
949
+ data: ErrorBody;
950
+ } | {
951
+ status: 404;
952
+ data: ErrorBody;
953
+ } | {
954
+ status: 422;
955
+ data: {
956
+ code?: string;
957
+ details?: string;
958
+ status?: string;
959
+ validationDetails?: ValidationDetail[];
960
+ };
961
+ } | {
962
+ status: 500;
963
+ data: {
964
+ code?: string;
965
+ details?: string;
966
+ status?: string;
967
+ validationDetails?: ValidationDetail[];
968
+ };
969
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/icon`, oazapfts.multipart({
970
+ ...opts,
971
+ method: "POST",
972
+ body
973
+ })));
974
+ }
975
+ /**
976
+ * List all tenants in the stackspot account
977
+ */
978
+ export function listTenants({ xAccountId, page, perPage }: {
979
+ xAccountId?: string;
980
+ page?: number;
981
+ perPage?: number;
982
+ }, opts?: Oazapfts.RequestOpts) {
983
+ return oazapfts.ok(oazapfts.fetchJson<{
984
+ status: 200;
985
+ data: TenantManifestV1[];
986
+ } | {
987
+ status: 400;
988
+ data: ErrorBody;
989
+ } | {
990
+ status: 401;
991
+ data: ErrorBody;
992
+ } | {
993
+ status: 403;
994
+ data: ErrorBody;
995
+ } | {
996
+ status: 404;
997
+ data: ErrorBody;
998
+ } | {
999
+ status: 422;
1000
+ data: {
1001
+ code?: string;
1002
+ details?: string;
1003
+ status?: string;
1004
+ validationDetails?: ValidationDetail[];
1005
+ };
1006
+ } | {
1007
+ status: 500;
1008
+ data: {
1009
+ code?: string;
1010
+ details?: string;
1011
+ status?: string;
1012
+ validationDetails?: ValidationDetail[];
1013
+ };
1014
+ }>(`/v1/tenants${QS.query(QS.explode({
1015
+ page,
1016
+ perPage
1017
+ }))}`, {
1018
+ ...opts,
1019
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1020
+ "X-Account-Id": xAccountId
1021
+ })
1022
+ }));
1023
+ }
1024
+ /**
1025
+ * Creates a new tenant.
1026
+ */
1027
+ export function createTenant({ tenantManifestV1 }: {
1028
+ tenantManifestV1: TenantManifestV1;
1029
+ }, opts?: Oazapfts.RequestOpts) {
1030
+ return oazapfts.ok(oazapfts.fetchJson<{
1031
+ status: 201;
1032
+ } | {
1033
+ status: 400;
1034
+ data: ErrorBody;
1035
+ } | {
1036
+ status: 401;
1037
+ data: ErrorBody;
1038
+ } | {
1039
+ status: 403;
1040
+ data: ErrorBody;
1041
+ } | {
1042
+ status: 404;
1043
+ data: ErrorBody;
1044
+ } | {
1045
+ status: 422;
1046
+ data: {
1047
+ code?: string;
1048
+ details?: string;
1049
+ status?: string;
1050
+ validationDetails?: ValidationDetail[];
1051
+ };
1052
+ } | {
1053
+ status: 500;
1054
+ data: {
1055
+ code?: string;
1056
+ details?: string;
1057
+ status?: string;
1058
+ validationDetails?: ValidationDetail[];
1059
+ };
1060
+ }>("/v1/tenants", oazapfts.json({
1061
+ ...opts,
1062
+ method: "POST",
1063
+ body: tenantManifestV1
1064
+ })));
1065
+ }
1066
+ /**
1067
+ * Returns paginated runtimes.
1068
+ */
1069
+ export function listRuntimes({ xAccountId, page, perPage }: {
1070
+ xAccountId?: string;
1071
+ page?: number;
1072
+ perPage?: number;
1073
+ }, opts?: Oazapfts.RequestOpts) {
1074
+ return oazapfts.ok(oazapfts.fetchJson<{
1075
+ status: 200;
1076
+ data: RuntimeManifestV1[];
1077
+ } | {
1078
+ status: 400;
1079
+ data: ErrorBody;
1080
+ } | {
1081
+ status: 401;
1082
+ data: ErrorBody;
1083
+ } | {
1084
+ status: 403;
1085
+ data: ErrorBody;
1086
+ } | {
1087
+ status: 404;
1088
+ data: ErrorBody;
1089
+ } | {
1090
+ status: 422;
1091
+ data: {
1092
+ code?: string;
1093
+ details?: string;
1094
+ status?: string;
1095
+ validationDetails?: ValidationDetail[];
1096
+ };
1097
+ } | {
1098
+ status: 500;
1099
+ data: {
1100
+ code?: string;
1101
+ details?: string;
1102
+ status?: string;
1103
+ validationDetails?: ValidationDetail[];
1104
+ };
1105
+ }>(`/v1/runtimes${QS.query(QS.explode({
1106
+ page,
1107
+ perPage
1108
+ }))}`, {
1109
+ ...opts,
1110
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1111
+ "X-Account-Id": xAccountId
1112
+ })
1113
+ }));
1114
+ }
1115
+ /**
1116
+ * Creates a new runtime.
1117
+ */
1118
+ export function createRuntime({ runtimeManifestV1 }: {
1119
+ runtimeManifestV1: RuntimeManifestV1;
1120
+ }, opts?: Oazapfts.RequestOpts) {
1121
+ return oazapfts.ok(oazapfts.fetchJson<{
1122
+ status: 201;
1123
+ } | {
1124
+ status: 400;
1125
+ data: ErrorBody;
1126
+ } | {
1127
+ status: 401;
1128
+ data: ErrorBody;
1129
+ } | {
1130
+ status: 403;
1131
+ data: ErrorBody;
1132
+ } | {
1133
+ status: 404;
1134
+ data: ErrorBody;
1135
+ } | {
1136
+ status: 422;
1137
+ data: {
1138
+ code?: string;
1139
+ details?: string;
1140
+ status?: string;
1141
+ validationDetails?: ValidationDetail[];
1142
+ };
1143
+ } | {
1144
+ status: 500;
1145
+ data: {
1146
+ code?: string;
1147
+ details?: string;
1148
+ status?: string;
1149
+ validationDetails?: ValidationDetail[];
1150
+ };
1151
+ }>("/v1/runtimes", oazapfts.json({
1152
+ ...opts,
1153
+ method: "POST",
1154
+ body: runtimeManifestV1
1155
+ })));
1156
+ }
1157
+ /**
1158
+ * Retrieves the Stackspot account organization
1159
+ */
1160
+ export function getOrganizations({ xAccountId, page, perPage }: {
1161
+ xAccountId?: string;
1162
+ page?: number;
1163
+ perPage?: number;
1164
+ }, opts?: Oazapfts.RequestOpts) {
1165
+ return oazapfts.ok(oazapfts.fetchJson<{
1166
+ status: 200;
1167
+ data: OrganizationManifestV1[];
1168
+ } | {
1169
+ status: 400;
1170
+ data: ErrorBody;
1171
+ } | {
1172
+ status: 401;
1173
+ data: ErrorBody;
1174
+ } | {
1175
+ status: 403;
1176
+ data: ErrorBody;
1177
+ } | {
1178
+ status: 404;
1179
+ data: ErrorBody;
1180
+ } | {
1181
+ status: 422;
1182
+ data: {
1183
+ code?: string;
1184
+ details?: string;
1185
+ status?: string;
1186
+ validationDetails?: ValidationDetail[];
1187
+ };
1188
+ } | {
1189
+ status: 500;
1190
+ data: {
1191
+ code?: string;
1192
+ details?: string;
1193
+ status?: string;
1194
+ validationDetails?: ValidationDetail[];
1195
+ };
1196
+ }>(`/v1/organizations${QS.query(QS.explode({
1197
+ page,
1198
+ perPage
1199
+ }))}`, {
1200
+ ...opts,
1201
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1202
+ "X-Account-Id": xAccountId
1203
+ })
1204
+ }));
1205
+ }
1206
+ /**
1207
+ * Creates a new organization.
1208
+ */
1209
+ export function createOrganization({ organizationManifestV1 }: {
1210
+ organizationManifestV1: OrganizationManifestV1;
1211
+ }, opts?: Oazapfts.RequestOpts) {
1212
+ return oazapfts.ok(oazapfts.fetchJson<{
1213
+ status: 201;
1214
+ data: OrganizationManifestV1;
1215
+ } | {
1216
+ status: 400;
1217
+ data: ErrorBody;
1218
+ } | {
1219
+ status: 401;
1220
+ data: ErrorBody;
1221
+ } | {
1222
+ status: 403;
1223
+ data: ErrorBody;
1224
+ } | {
1225
+ status: 404;
1226
+ data: ErrorBody;
1227
+ } | {
1228
+ status: 422;
1229
+ data: {
1230
+ code?: string;
1231
+ details?: string;
1232
+ status?: string;
1233
+ validationDetails?: ValidationDetail[];
1234
+ };
1235
+ } | {
1236
+ status: 500;
1237
+ data: {
1238
+ code?: string;
1239
+ details?: string;
1240
+ status?: string;
1241
+ validationDetails?: ValidationDetail[];
1242
+ };
1243
+ }>("/v1/organizations", oazapfts.json({
1244
+ ...opts,
1245
+ method: "POST",
1246
+ body: organizationManifestV1
1247
+ })));
1248
+ }
1249
+ /**
1250
+ * Returns paginated tenants.
1251
+ */
1252
+ export function listTenants1({ organizationId, page, perPage }: {
1253
+ organizationId: string;
1254
+ page?: number;
1255
+ perPage?: number;
1256
+ }, opts?: Oazapfts.RequestOpts) {
1257
+ return oazapfts.ok(oazapfts.fetchJson<{
1258
+ status: 200;
1259
+ data: TenantManifestV1[];
1260
+ } | {
1261
+ status: 400;
1262
+ data: ErrorBody;
1263
+ } | {
1264
+ status: 401;
1265
+ data: ErrorBody;
1266
+ } | {
1267
+ status: 403;
1268
+ data: ErrorBody;
1269
+ } | {
1270
+ status: 404;
1271
+ data: ErrorBody;
1272
+ } | {
1273
+ status: 422;
1274
+ data: {
1275
+ code?: string;
1276
+ details?: string;
1277
+ status?: string;
1278
+ validationDetails?: ValidationDetail[];
1279
+ };
1280
+ } | {
1281
+ status: 500;
1282
+ data: {
1283
+ code?: string;
1284
+ details?: string;
1285
+ status?: string;
1286
+ validationDetails?: ValidationDetail[];
1287
+ };
1288
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants${QS.query(QS.explode({
1289
+ page,
1290
+ perPage
1291
+ }))}`, {
1292
+ ...opts
1293
+ }));
1294
+ }
1295
+ /**
1296
+ * Creates a new tenant.
1297
+ */
1298
+ export function createTenant1({ organizationId, tenantManifestV1 }: {
1299
+ organizationId: string;
1300
+ tenantManifestV1: TenantManifestV1;
1301
+ }, opts?: Oazapfts.RequestOpts) {
1302
+ return oazapfts.ok(oazapfts.fetchJson<{
1303
+ status: 201;
1304
+ data: TenantManifestV1;
1305
+ } | {
1306
+ status: 400;
1307
+ data: ErrorBody;
1308
+ } | {
1309
+ status: 401;
1310
+ data: ErrorBody;
1311
+ } | {
1312
+ status: 403;
1313
+ data: ErrorBody;
1314
+ } | {
1315
+ status: 404;
1316
+ data: ErrorBody;
1317
+ } | {
1318
+ status: 422;
1319
+ data: {
1320
+ code?: string;
1321
+ details?: string;
1322
+ status?: string;
1323
+ validationDetails?: ValidationDetail[];
1324
+ };
1325
+ } | {
1326
+ status: 500;
1327
+ data: {
1328
+ code?: string;
1329
+ details?: string;
1330
+ status?: string;
1331
+ validationDetails?: ValidationDetail[];
1332
+ };
1333
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants`, oazapfts.json({
1334
+ ...opts,
1335
+ method: "POST",
1336
+ body: tenantManifestV1
1337
+ })));
1338
+ }
1339
+ /**
1340
+ * Returns paginated runtimes.
1341
+ */
1342
+ export function listRuntimes1({ organizationId, tenantId, page, perPage }: {
1343
+ organizationId: string;
1344
+ tenantId: string;
1345
+ page?: number;
1346
+ perPage?: number;
1347
+ }, opts?: Oazapfts.RequestOpts) {
1348
+ return oazapfts.ok(oazapfts.fetchJson<{
1349
+ status: 200;
1350
+ data: RuntimeManifestV1[];
1351
+ } | {
1352
+ status: 400;
1353
+ data: ErrorBody;
1354
+ } | {
1355
+ status: 401;
1356
+ data: ErrorBody;
1357
+ } | {
1358
+ status: 403;
1359
+ data: ErrorBody;
1360
+ } | {
1361
+ status: 404;
1362
+ data: ErrorBody;
1363
+ } | {
1364
+ status: 422;
1365
+ data: {
1366
+ code?: string;
1367
+ details?: string;
1368
+ status?: string;
1369
+ validationDetails?: ValidationDetail[];
1370
+ };
1371
+ } | {
1372
+ status: 500;
1373
+ data: {
1374
+ code?: string;
1375
+ details?: string;
1376
+ status?: string;
1377
+ validationDetails?: ValidationDetail[];
1378
+ };
1379
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes${QS.query(QS.explode({
1380
+ page,
1381
+ perPage
1382
+ }))}`, {
1383
+ ...opts
1384
+ }));
1385
+ }
1386
+ /**
1387
+ * Creates a new runtime.
1388
+ */
1389
+ export function createRuntime1({ organizationId, tenantId, runtimeManifestV1 }: {
1390
+ organizationId: string;
1391
+ tenantId: string;
1392
+ runtimeManifestV1: RuntimeManifestV1;
1393
+ }, opts?: Oazapfts.RequestOpts) {
1394
+ return oazapfts.ok(oazapfts.fetchJson<{
1395
+ status: 201;
1396
+ data: RuntimeManifestV1;
1397
+ } | {
1398
+ status: 400;
1399
+ data: ErrorBody;
1400
+ } | {
1401
+ status: 401;
1402
+ data: ErrorBody;
1403
+ } | {
1404
+ status: 403;
1405
+ data: ErrorBody;
1406
+ } | {
1407
+ status: 404;
1408
+ data: ErrorBody;
1409
+ } | {
1410
+ status: 422;
1411
+ data: {
1412
+ code?: string;
1413
+ details?: string;
1414
+ status?: string;
1415
+ validationDetails?: ValidationDetail[];
1416
+ };
1417
+ } | {
1418
+ status: 500;
1419
+ data: {
1420
+ code?: string;
1421
+ details?: string;
1422
+ status?: string;
1423
+ validationDetails?: ValidationDetail[];
1424
+ };
1425
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes`, oazapfts.json({
1426
+ ...opts,
1427
+ method: "POST",
1428
+ body: runtimeManifestV1
1429
+ })));
1430
+ }
1431
+ /**
1432
+ *
1433
+ * Requires one of the following permissions:
1434
+ * - cloud_platform:*:view
1435
+ * - cloud_platform:*:support
1436
+ *
1437
+ */
1438
+ export function listApplicationDeployments({ organizationId, tenantId, runtimeId }: {
1439
+ organizationId: string;
1440
+ tenantId: string;
1441
+ runtimeId: string;
1442
+ }, opts?: Oazapfts.RequestOpts) {
1443
+ return oazapfts.ok(oazapfts.fetchJson<{
1444
+ status: 200;
1445
+ data: ApplicationDeploymentManifestV1[];
1446
+ } | {
1447
+ status: 400;
1448
+ data: ErrorBody;
1449
+ } | {
1450
+ status: 401;
1451
+ data: ErrorBody;
1452
+ } | {
1453
+ status: 404;
1454
+ data: ErrorBody;
1455
+ } | {
1456
+ status: 422;
1457
+ data: {
1458
+ code?: string;
1459
+ details?: string;
1460
+ status?: string;
1461
+ validationDetails?: ValidationDetail[];
1462
+ };
1463
+ } | {
1464
+ status: 500;
1465
+ data: {
1466
+ code?: string;
1467
+ details?: string;
1468
+ status?: string;
1469
+ validationDetails?: ValidationDetail[];
1470
+ };
1471
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, {
1472
+ ...opts
1473
+ }));
1474
+ }
1475
+ /**
1476
+ * Apply manifesto resource yaml.
1477
+ */
1478
+ export function deploy({ organizationId, tenantId, runtimeId, applicationDeploymentManifestV1 }: {
1479
+ organizationId: string;
1480
+ tenantId: string;
1481
+ runtimeId: string;
1482
+ applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
1483
+ }, opts?: Oazapfts.RequestOpts) {
1484
+ return oazapfts.ok(oazapfts.fetchJson<{
1485
+ status: 202;
1486
+ data: ApplicationDeploymentManifestV1;
1487
+ } | {
1488
+ status: 400;
1489
+ data: ErrorBody;
1490
+ } | {
1491
+ status: 401;
1492
+ data: ErrorBody;
1493
+ } | {
1494
+ status: 403;
1495
+ data: ErrorBody;
1496
+ } | {
1497
+ status: 404;
1498
+ data: ErrorBody;
1499
+ } | {
1500
+ status: 422;
1501
+ data: {
1502
+ code?: string;
1503
+ details?: string;
1504
+ status?: string;
1505
+ validationDetails?: ValidationDetail[];
1506
+ };
1507
+ } | {
1508
+ status: 500;
1509
+ data: {
1510
+ code?: string;
1511
+ details?: string;
1512
+ status?: string;
1513
+ validationDetails?: ValidationDetail[];
1514
+ };
1515
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments`, oazapfts.json({
1516
+ ...opts,
1517
+ method: "POST",
1518
+ body: applicationDeploymentManifestV1
1519
+ })));
1520
+ }
1521
+ /**
1522
+ * Associate a runtime with a workspace's environment
1523
+ */
1524
+ export function associateWithWorkspaceEnvironment({ xAccountId, organizationId, tenantId, associateRuntimeWithWorkspaceEnvironmentRequest }: {
1525
+ xAccountId?: string;
1526
+ organizationId: string;
1527
+ tenantId: string;
1528
+ associateRuntimeWithWorkspaceEnvironmentRequest: AssociateRuntimeWithWorkspaceEnvironmentRequest;
1529
+ }, opts?: Oazapfts.RequestOpts) {
1530
+ return oazapfts.ok(oazapfts.fetchJson<{
1531
+ status: 200;
1532
+ data: AssociateRuntimeWithWorkspaceEnvironmentResponse[];
1533
+ } | {
1534
+ status: 400;
1535
+ data: ErrorBody;
1536
+ } | {
1537
+ status: 401;
1538
+ data: ErrorBody;
1539
+ } | {
1540
+ status: 403;
1541
+ data: ErrorBody;
1542
+ } | {
1543
+ status: 404;
1544
+ data: ErrorBody;
1545
+ } | {
1546
+ status: 409;
1547
+ data: ErrorBody;
1548
+ } | {
1549
+ status: 422;
1550
+ data: {
1551
+ code?: string;
1552
+ details?: string;
1553
+ status?: string;
1554
+ validationDetails?: ValidationDetail[];
1555
+ };
1556
+ } | {
1557
+ status: 500;
1558
+ data: {
1559
+ code?: string;
1560
+ details?: string;
1561
+ status?: string;
1562
+ validationDetails?: ValidationDetail[];
1563
+ };
1564
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/associations`, oazapfts.json({
1565
+ ...opts,
1566
+ method: "POST",
1567
+ body: associateRuntimeWithWorkspaceEnvironmentRequest,
1568
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1569
+ "X-Account-Id": xAccountId
1570
+ })
1571
+ })));
1572
+ }
1573
+ /**
1574
+ * List DeployTemplate's
1575
+ */
1576
+ export function listDeployTemplate({ organizationId }: {
1577
+ organizationId: string;
1578
+ }, opts?: Oazapfts.RequestOpts) {
1579
+ return oazapfts.ok(oazapfts.fetchJson<{
1580
+ status: 200;
1581
+ data: DeployTemplateManifestV1[];
1582
+ } | {
1583
+ status: 400;
1584
+ data: ErrorBody;
1585
+ } | {
1586
+ status: 401;
1587
+ data: ErrorBody;
1588
+ } | {
1589
+ status: 404;
1590
+ data: ErrorBody;
1591
+ } | {
1592
+ status: 422;
1593
+ data: {
1594
+ code?: string;
1595
+ details?: string;
1596
+ status?: string;
1597
+ validationDetails?: ValidationDetail[];
1598
+ };
1599
+ } | {
1600
+ status: 500;
1601
+ data: {
1602
+ code?: string;
1603
+ details?: string;
1604
+ status?: string;
1605
+ validationDetails?: ValidationDetail[];
1606
+ };
1607
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, {
1608
+ ...opts
1609
+ }));
1610
+ }
1611
+ /**
1612
+ * Create DeployTemplate
1613
+ */
1614
+ export function createDeployTemplate({ organizationId, deployTemplateManifestV1 }: {
1615
+ organizationId: string;
1616
+ deployTemplateManifestV1: DeployTemplateManifestV1;
1617
+ }, opts?: Oazapfts.RequestOpts) {
1618
+ return oazapfts.ok(oazapfts.fetchJson<{
1619
+ status: 202;
1620
+ data: DeployTemplateManifestV1;
1621
+ } | {
1622
+ status: 400;
1623
+ data: ErrorBody;
1624
+ } | {
1625
+ status: 401;
1626
+ data: ErrorBody;
1627
+ } | {
1628
+ status: 404;
1629
+ data: ErrorBody;
1630
+ } | {
1631
+ status: 422;
1632
+ data: {
1633
+ code?: string;
1634
+ details?: string;
1635
+ status?: string;
1636
+ validationDetails?: ValidationDetail[];
1637
+ };
1638
+ } | {
1639
+ status: 500;
1640
+ data: {
1641
+ code?: string;
1642
+ details?: string;
1643
+ status?: string;
1644
+ validationDetails?: ValidationDetail[];
1645
+ };
1646
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates`, oazapfts.json({
1647
+ ...opts,
1648
+ method: "POST",
1649
+ body: deployTemplateManifestV1
1650
+ })));
1651
+ }
1652
+ /**
1653
+ * List Addon's
1654
+ */
1655
+ export function listAddon({ organizationId }: {
1656
+ organizationId: string;
1657
+ }, opts?: Oazapfts.RequestOpts) {
1658
+ return oazapfts.ok(oazapfts.fetchJson<{
1659
+ status: 200;
1660
+ data: AddonManifestV1[];
1661
+ } | {
1662
+ status: 400;
1663
+ data: ErrorBody;
1664
+ } | {
1665
+ status: 401;
1666
+ data: ErrorBody;
1667
+ } | {
1668
+ status: 404;
1669
+ data: ErrorBody;
1670
+ } | {
1671
+ status: 422;
1672
+ data: {
1673
+ code?: string;
1674
+ details?: string;
1675
+ status?: string;
1676
+ validationDetails?: ValidationDetail[];
1677
+ };
1678
+ } | {
1679
+ status: 500;
1680
+ data: {
1681
+ code?: string;
1682
+ details?: string;
1683
+ status?: string;
1684
+ validationDetails?: ValidationDetail[];
1685
+ };
1686
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, {
1687
+ ...opts
1688
+ }));
1689
+ }
1690
+ /**
1691
+ * Create Addon
1692
+ */
1693
+ export function createAddon({ organizationId, addonManifestV1 }: {
1694
+ organizationId: string;
1695
+ addonManifestV1: AddonManifestV1;
1696
+ }, opts?: Oazapfts.RequestOpts) {
1697
+ return oazapfts.ok(oazapfts.fetchJson<{
1698
+ status: 202;
1699
+ data: AddonManifestV1;
1700
+ } | {
1701
+ status: 400;
1702
+ data: ErrorBody;
1703
+ } | {
1704
+ status: 401;
1705
+ data: ErrorBody;
1706
+ } | {
1707
+ status: 404;
1708
+ data: ErrorBody;
1709
+ } | {
1710
+ status: 422;
1711
+ data: {
1712
+ code?: string;
1713
+ details?: string;
1714
+ status?: string;
1715
+ validationDetails?: ValidationDetail[];
1716
+ };
1717
+ } | {
1718
+ status: 500;
1719
+ data: {
1720
+ code?: string;
1721
+ details?: string;
1722
+ status?: string;
1723
+ validationDetails?: ValidationDetail[];
1724
+ };
1725
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons`, oazapfts.json({
1726
+ ...opts,
1727
+ method: "POST",
1728
+ body: addonManifestV1
1729
+ })));
1730
+ }
1731
+ /**
1732
+ * List application deployments
1733
+ */
1734
+ export function listApplicationDeployments1(opts?: Oazapfts.RequestOpts) {
1735
+ return oazapfts.ok(oazapfts.fetchJson<{
1736
+ status: 200;
1737
+ data: ApplicationDeploymentManifestV1[];
1738
+ } | {
1739
+ status: 400;
1740
+ data: ErrorBody;
1741
+ } | {
1742
+ status: 401;
1743
+ data: ErrorBody;
1744
+ } | {
1745
+ status: 404;
1746
+ data: ErrorBody;
1747
+ } | {
1748
+ status: 422;
1749
+ data: {
1750
+ code?: string;
1751
+ details?: string;
1752
+ status?: string;
1753
+ validationDetails?: ValidationDetail[];
1754
+ };
1755
+ } | {
1756
+ status: 500;
1757
+ data: {
1758
+ code?: string;
1759
+ details?: string;
1760
+ status?: string;
1761
+ validationDetails?: ValidationDetail[];
1762
+ };
1763
+ }>("/v1/applications/deployments", {
1764
+ ...opts
1765
+ }));
1766
+ }
1767
+ /**
1768
+ * Apply manifesto resource yaml.
1769
+ */
1770
+ export function deploy1({ applicationDeploymentManifestV1 }: {
1771
+ applicationDeploymentManifestV1: ApplicationDeploymentManifestV1;
1772
+ }, opts?: Oazapfts.RequestOpts) {
1773
+ return oazapfts.ok(oazapfts.fetchJson<{
1774
+ status: 202;
1775
+ data: ApplicationDeploymentManifestV1;
1776
+ } | {
1777
+ status: 400;
1778
+ data: ErrorBody;
1779
+ } | {
1780
+ status: 401;
1781
+ data: ErrorBody;
1782
+ } | {
1783
+ status: 403;
1784
+ data: ErrorBody;
1785
+ } | {
1786
+ status: 404;
1787
+ data: ErrorBody;
1788
+ } | {
1789
+ status: 422;
1790
+ data: {
1791
+ code?: string;
1792
+ details?: string;
1793
+ status?: string;
1794
+ validationDetails?: ValidationDetail[];
1795
+ };
1796
+ } | {
1797
+ status: 500;
1798
+ data: {
1799
+ code?: string;
1800
+ details?: string;
1801
+ status?: string;
1802
+ validationDetails?: ValidationDetail[];
1803
+ };
1804
+ }>("/v1/applications/deployments", oazapfts.json({
1805
+ ...opts,
1806
+ method: "POST",
1807
+ body: applicationDeploymentManifestV1
1808
+ })));
1809
+ }
1810
+ /**
1811
+ * Retrieves the tenant details.
1812
+ */
1813
+ export function getTenant({ id }: {
1814
+ id: string;
1815
+ }, opts?: Oazapfts.RequestOpts) {
1816
+ return oazapfts.ok(oazapfts.fetchJson<{
1817
+ status: 200;
1818
+ data: TenantManifestV1;
1819
+ } | {
1820
+ status: 400;
1821
+ data: ErrorBody;
1822
+ } | {
1823
+ status: 401;
1824
+ data: ErrorBody;
1825
+ } | {
1826
+ status: 403;
1827
+ data: ErrorBody;
1828
+ } | {
1829
+ status: 404;
1830
+ data: ErrorBody;
1831
+ } | {
1832
+ status: 422;
1833
+ data: {
1834
+ code?: string;
1835
+ details?: string;
1836
+ status?: string;
1837
+ validationDetails?: ValidationDetail[];
1838
+ };
1839
+ } | {
1840
+ status: 500;
1841
+ data: {
1842
+ code?: string;
1843
+ details?: string;
1844
+ status?: string;
1845
+ validationDetails?: ValidationDetail[];
1846
+ };
1847
+ }>(`/v1/tenants/${encodeURIComponent(id)}`, {
1848
+ ...opts
1849
+ }));
1850
+ }
1851
+ /**
1852
+ * Retrieves the runtime details.
1853
+ */
1854
+ export function getRuntime({ id }: {
1855
+ id: string;
1856
+ }, opts?: Oazapfts.RequestOpts) {
1857
+ return oazapfts.ok(oazapfts.fetchJson<{
1858
+ status: 200;
1859
+ data: RuntimeManifestV1;
1860
+ } | {
1861
+ status: 400;
1862
+ data: ErrorBody;
1863
+ } | {
1864
+ status: 401;
1865
+ data: ErrorBody;
1866
+ } | {
1867
+ status: 403;
1868
+ data: ErrorBody;
1869
+ } | {
1870
+ status: 404;
1871
+ data: ErrorBody;
1872
+ } | {
1873
+ status: 422;
1874
+ data: {
1875
+ code?: string;
1876
+ details?: string;
1877
+ status?: string;
1878
+ validationDetails?: ValidationDetail[];
1879
+ };
1880
+ } | {
1881
+ status: 500;
1882
+ data: {
1883
+ code?: string;
1884
+ details?: string;
1885
+ status?: string;
1886
+ validationDetails?: ValidationDetail[];
1887
+ };
1888
+ }>(`/v1/runtimes/${encodeURIComponent(id)}`, {
1889
+ ...opts
1890
+ }));
1891
+ }
1892
+ export function listAssociations({ xAccountId, workspaceId, envId, applicationId }: {
1893
+ xAccountId?: string;
1894
+ workspaceId: string;
1895
+ envId?: string;
1896
+ applicationId?: string;
1897
+ }, opts?: Oazapfts.RequestOpts) {
1898
+ return oazapfts.ok(oazapfts.fetchJson<{
1899
+ status: 200;
1900
+ data: ListRuntimeWorkspaceEnvironmentAssociationsResponse;
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/runtimes/associations/workspaces${QS.query(QS.explode({
1927
+ workspaceId,
1928
+ envId,
1929
+ applicationId
1930
+ }))}`, {
1931
+ ...opts,
1932
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1933
+ "X-Account-Id": xAccountId
1934
+ })
1935
+ }));
1936
+ }
1937
+ /**
1938
+ * Retrieves associate a runtime with a workspace's environment
1939
+ */
1940
+ export function getAssociationWorkspaceEnvironmentByRuntimeId({ xAccountId, organizationId, tenantId, runtimeId }: {
1941
+ xAccountId?: string;
1942
+ organizationId: string;
1943
+ tenantId: string;
1944
+ runtimeId: string;
1945
+ }, opts?: Oazapfts.RequestOpts) {
1946
+ return oazapfts.ok(oazapfts.fetchJson<{
1947
+ status: 200;
1948
+ data: AssociateRuntimeWithWorkspaceEnvironmentResponse[];
1949
+ } | {
1950
+ status: 400;
1951
+ data: ErrorBody;
1952
+ } | {
1953
+ status: 401;
1954
+ data: ErrorBody;
1955
+ } | {
1956
+ status: 404;
1957
+ data: ErrorBody;
1958
+ } | {
1959
+ status: 422;
1960
+ data: {
1961
+ code?: string;
1962
+ details?: string;
1963
+ status?: string;
1964
+ validationDetails?: ValidationDetail[];
1965
+ };
1966
+ } | {
1967
+ status: 500;
1968
+ data: {
1969
+ code?: string;
1970
+ details?: string;
1971
+ status?: string;
1972
+ validationDetails?: ValidationDetail[];
1973
+ };
1974
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/associations`, {
1975
+ ...opts,
1976
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1977
+ "X-Account-Id": xAccountId
1978
+ })
1979
+ }));
1980
+ }
1981
+ /**
1982
+ *
1983
+ * Requires one of the following permissions:
1984
+ * - cloud_platform:*:view
1985
+ * - cloud_platform:*:support
1986
+ *
1987
+ */
1988
+ export function findApplicationDeploymentById({ organizationId, tenantId, runtimeId, deploymentId }: {
1989
+ organizationId: string;
1990
+ tenantId: string;
1991
+ runtimeId: string;
1992
+ deploymentId: string;
1993
+ }, opts?: Oazapfts.RequestOpts) {
1994
+ return oazapfts.ok(oazapfts.fetchJson<{
1995
+ status: 200;
1996
+ data: ApplicationDeploymentManifestV1;
1997
+ } | {
1998
+ status: 400;
1999
+ data: ErrorBody;
2000
+ } | {
2001
+ status: 401;
2002
+ data: ErrorBody;
2003
+ } | {
2004
+ status: 404;
2005
+ data: ErrorBody;
2006
+ } | {
2007
+ status: 422;
2008
+ data: {
2009
+ code?: string;
2010
+ details?: string;
2011
+ status?: string;
2012
+ validationDetails?: ValidationDetail[];
2013
+ };
2014
+ } | {
2015
+ status: 500;
2016
+ data: {
2017
+ code?: string;
2018
+ details?: string;
2019
+ status?: string;
2020
+ validationDetails?: ValidationDetail[];
2021
+ };
2022
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2023
+ ...opts
2024
+ }));
2025
+ }
2026
+ /**
2027
+ * Delete application deployment
2028
+ */
2029
+ export function deleteApplicationDeployment({ organizationId, tenantId, runtimeId, deploymentId }: {
2030
+ organizationId: string;
2031
+ tenantId: string;
2032
+ runtimeId: string;
2033
+ deploymentId: string;
2034
+ }, opts?: Oazapfts.RequestOpts) {
2035
+ return oazapfts.ok(oazapfts.fetchJson<{
2036
+ status: 200;
2037
+ data: string;
2038
+ } | {
2039
+ status: 400;
2040
+ data: ErrorBody;
2041
+ } | {
2042
+ status: 401;
2043
+ data: ErrorBody;
2044
+ } | {
2045
+ status: 404;
2046
+ data: ErrorBody;
2047
+ } | {
2048
+ status: 422;
2049
+ data: {
2050
+ code?: string;
2051
+ details?: string;
2052
+ status?: string;
2053
+ validationDetails?: ValidationDetail[];
2054
+ };
2055
+ } | {
2056
+ status: 500;
2057
+ data: {
2058
+ code?: string;
2059
+ details?: string;
2060
+ status?: string;
2061
+ validationDetails?: ValidationDetail[];
2062
+ };
2063
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2064
+ ...opts,
2065
+ method: "DELETE"
2066
+ }));
2067
+ }
2068
+ /**
2069
+ * Get application deployment logs.
2070
+ */
2071
+ export function getApplicationDeploymentLogs({ organizationId, tenantId, runtimeId, deploymentId, numberOfLines }: {
2072
+ organizationId: string;
2073
+ tenantId: string;
2074
+ runtimeId: string;
2075
+ deploymentId: string;
2076
+ numberOfLines?: number;
2077
+ }, opts?: Oazapfts.RequestOpts) {
2078
+ return oazapfts.ok(oazapfts.fetchJson<{
2079
+ status: 200;
2080
+ data: LogManifestV1;
2081
+ } | {
2082
+ status: 400;
2083
+ data: ErrorBody;
2084
+ } | {
2085
+ status: 401;
2086
+ data: ErrorBody;
2087
+ } | {
2088
+ status: 404;
2089
+ data: ErrorBody;
2090
+ } | {
2091
+ status: 422;
2092
+ data: {
2093
+ code?: string;
2094
+ details?: string;
2095
+ status?: string;
2096
+ validationDetails?: ValidationDetail[];
2097
+ };
2098
+ } | {
2099
+ status: 500;
2100
+ data: {
2101
+ code?: string;
2102
+ details?: string;
2103
+ status?: string;
2104
+ validationDetails?: ValidationDetail[];
2105
+ };
2106
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
2107
+ numberOfLines
2108
+ }))}`, {
2109
+ ...opts
2110
+ }));
2111
+ }
2112
+ /**
2113
+ * Get application deployment health.
2114
+ */
2115
+ export function getApplicationDeploymentHealth({ organizationId, tenantId, runtimeId, deploymentId }: {
2116
+ organizationId: string;
2117
+ tenantId: string;
2118
+ runtimeId: string;
2119
+ deploymentId: string;
2120
+ }, opts?: Oazapfts.RequestOpts) {
2121
+ return oazapfts.ok(oazapfts.fetchJson<{
2122
+ status: 200;
2123
+ data: HealthManifestV1;
2124
+ } | {
2125
+ status: 400;
2126
+ data: ErrorBody;
2127
+ } | {
2128
+ status: 401;
2129
+ data: ErrorBody;
2130
+ } | {
2131
+ status: 404;
2132
+ data: ErrorBody;
2133
+ } | {
2134
+ status: 422;
2135
+ data: {
2136
+ code?: string;
2137
+ details?: string;
2138
+ status?: string;
2139
+ validationDetails?: ValidationDetail[];
2140
+ };
2141
+ } | {
2142
+ status: 500;
2143
+ data: {
2144
+ code?: string;
2145
+ details?: string;
2146
+ status?: string;
2147
+ validationDetails?: ValidationDetail[];
2148
+ };
2149
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(runtimeId)}/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
2150
+ ...opts
2151
+ }));
2152
+ }
2153
+ /**
2154
+ * Retrieves the runtime details.
2155
+ */
2156
+ export function getRuntime1({ organizationId, tenantId, id }: {
2157
+ organizationId: string;
2158
+ tenantId: string;
2159
+ id: string;
2160
+ }, opts?: Oazapfts.RequestOpts) {
2161
+ return oazapfts.ok(oazapfts.fetchJson<{
2162
+ status: 200;
2163
+ data: RuntimeManifestV1;
2164
+ } | {
2165
+ status: 400;
2166
+ data: ErrorBody;
2167
+ } | {
2168
+ status: 401;
2169
+ data: ErrorBody;
2170
+ } | {
2171
+ status: 403;
2172
+ data: ErrorBody;
2173
+ } | {
2174
+ status: 404;
2175
+ data: ErrorBody;
2176
+ } | {
2177
+ status: 422;
2178
+ data: {
2179
+ code?: string;
2180
+ details?: string;
2181
+ status?: string;
2182
+ validationDetails?: ValidationDetail[];
2183
+ };
2184
+ } | {
2185
+ status: 500;
2186
+ data: {
2187
+ code?: string;
2188
+ details?: string;
2189
+ status?: string;
2190
+ validationDetails?: ValidationDetail[];
2191
+ };
2192
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(tenantId)}/runtimes/${encodeURIComponent(id)}`, {
2193
+ ...opts
2194
+ }));
2195
+ }
2196
+ /**
2197
+ * Retrieves the tenant details.
2198
+ */
2199
+ export function getTenant1({ organizationId, id }: {
2200
+ organizationId: string;
2201
+ id: string;
2202
+ }, opts?: Oazapfts.RequestOpts) {
2203
+ return oazapfts.ok(oazapfts.fetchJson<{
2204
+ status: 200;
2205
+ data: TenantManifestV1;
2206
+ } | {
2207
+ status: 400;
2208
+ data: ErrorBody;
2209
+ } | {
2210
+ status: 401;
2211
+ data: ErrorBody;
2212
+ } | {
2213
+ status: 403;
2214
+ data: ErrorBody;
2215
+ } | {
2216
+ status: 404;
2217
+ data: ErrorBody;
2218
+ } | {
2219
+ status: 422;
2220
+ data: {
2221
+ code?: string;
2222
+ details?: string;
2223
+ status?: string;
2224
+ validationDetails?: ValidationDetail[];
2225
+ };
2226
+ } | {
2227
+ status: 500;
2228
+ data: {
2229
+ code?: string;
2230
+ details?: string;
2231
+ status?: string;
2232
+ validationDetails?: ValidationDetail[];
2233
+ };
2234
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/tenants/${encodeURIComponent(id)}`, {
2235
+ ...opts
2236
+ }));
2237
+ }
2238
+ /**
2239
+ * Get DeployTemplate
2240
+ */
2241
+ export function getDeployTemplate({ organizationId, deployTemplateId }: {
2242
+ organizationId: string;
2243
+ deployTemplateId: string;
2244
+ }, opts?: Oazapfts.RequestOpts) {
2245
+ return oazapfts.ok(oazapfts.fetchJson<{
2246
+ status: 200;
2247
+ data: DeployTemplateManifestV1;
2248
+ } | {
2249
+ status: 400;
2250
+ data: ErrorBody;
2251
+ } | {
2252
+ status: 401;
2253
+ data: ErrorBody;
2254
+ } | {
2255
+ status: 404;
2256
+ data: ErrorBody;
2257
+ } | {
2258
+ status: 422;
2259
+ data: {
2260
+ code?: string;
2261
+ details?: string;
2262
+ status?: string;
2263
+ validationDetails?: ValidationDetail[];
2264
+ };
2265
+ } | {
2266
+ status: 500;
2267
+ data: {
2268
+ code?: string;
2269
+ details?: string;
2270
+ status?: string;
2271
+ validationDetails?: ValidationDetail[];
2272
+ };
2273
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
2274
+ ...opts
2275
+ }));
2276
+ }
2277
+ /**
2278
+ * Delete DeployTemplate
2279
+ */
2280
+ export function deleteDeployTemplate({ organizationId, deployTemplateId }: {
2281
+ organizationId: string;
2282
+ deployTemplateId: string;
2283
+ }, opts?: Oazapfts.RequestOpts) {
2284
+ return oazapfts.ok(oazapfts.fetchJson<{
2285
+ status: 200;
2286
+ data: DeployTemplateManifestV1;
2287
+ } | {
2288
+ status: 400;
2289
+ data: ErrorBody;
2290
+ } | {
2291
+ status: 401;
2292
+ data: ErrorBody;
2293
+ } | {
2294
+ status: 404;
2295
+ data: ErrorBody;
2296
+ } | {
2297
+ status: 422;
2298
+ data: {
2299
+ code?: string;
2300
+ details?: string;
2301
+ status?: string;
2302
+ validationDetails?: ValidationDetail[];
2303
+ };
2304
+ } | {
2305
+ status: 500;
2306
+ data: {
2307
+ code?: string;
2308
+ details?: string;
2309
+ status?: string;
2310
+ validationDetails?: ValidationDetail[];
2311
+ };
2312
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/deploy-templates/${encodeURIComponent(deployTemplateId)}`, {
2313
+ ...opts,
2314
+ method: "DELETE"
2315
+ }));
2316
+ }
2317
+ /**
2318
+ * Get Addon
2319
+ */
2320
+ export function getAddon({ organizationId, addonId }: {
2321
+ organizationId: string;
2322
+ addonId: string;
2323
+ }, opts?: Oazapfts.RequestOpts) {
2324
+ return oazapfts.ok(oazapfts.fetchJson<{
2325
+ status: 200;
2326
+ data: AddonManifestV1;
2327
+ } | {
2328
+ status: 400;
2329
+ data: ErrorBody;
2330
+ } | {
2331
+ status: 401;
2332
+ data: ErrorBody;
2333
+ } | {
2334
+ status: 404;
2335
+ data: ErrorBody;
2336
+ } | {
2337
+ status: 422;
2338
+ data: {
2339
+ code?: string;
2340
+ details?: string;
2341
+ status?: string;
2342
+ validationDetails?: ValidationDetail[];
2343
+ };
2344
+ } | {
2345
+ status: 500;
2346
+ data: {
2347
+ code?: string;
2348
+ details?: string;
2349
+ status?: string;
2350
+ validationDetails?: ValidationDetail[];
2351
+ };
2352
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}/addons/${encodeURIComponent(addonId)}`, {
2353
+ ...opts
2354
+ }));
2355
+ }
2356
+ /**
2357
+ * Retrieves the organization by ID
2358
+ */
2359
+ export function getOrganizationById({ organizationId }: {
2360
+ organizationId: string;
2361
+ }, opts?: Oazapfts.RequestOpts) {
2362
+ return oazapfts.ok(oazapfts.fetchJson<{
2363
+ status: 200;
2364
+ data: OrganizationManifestV1;
2365
+ } | {
2366
+ status: 400;
2367
+ data: ErrorBody;
2368
+ } | {
2369
+ status: 401;
2370
+ data: ErrorBody;
2371
+ } | {
2372
+ status: 403;
2373
+ data: ErrorBody;
2374
+ } | {
2375
+ status: 404;
2376
+ data: ErrorBody;
2377
+ } | {
2378
+ status: 422;
2379
+ data: {
2380
+ code?: string;
2381
+ details?: string;
2382
+ status?: string;
2383
+ validationDetails?: ValidationDetail[];
2384
+ };
2385
+ } | {
2386
+ status: 500;
2387
+ data: {
2388
+ code?: string;
2389
+ details?: string;
2390
+ status?: string;
2391
+ validationDetails?: ValidationDetail[];
2392
+ };
2393
+ }>(`/v1/organizations/${encodeURIComponent(organizationId)}`, {
2394
+ ...opts
2395
+ }));
2396
+ }
2397
+ /**
2398
+ * Downloads the bootstrap module for creating a new organization.
2399
+ */
2400
+ export function downloadBootstrapModule({ version }: {
2401
+ version?: string;
2402
+ }, opts?: Oazapfts.RequestOpts) {
2403
+ return oazapfts.ok(oazapfts.fetchJson<{
2404
+ status: 200;
2405
+ data: Blob;
2406
+ } | {
2407
+ status: 400;
2408
+ data: ErrorBody;
2409
+ } | {
2410
+ status: 401;
2411
+ data: ErrorBody;
2412
+ } | {
2413
+ status: 403;
2414
+ data: ErrorBody;
2415
+ } | {
2416
+ status: 404;
2417
+ data: ErrorBody;
2418
+ } | {
2419
+ status: 422;
2420
+ data: {
2421
+ code?: string;
2422
+ details?: string;
2423
+ status?: string;
2424
+ validationDetails?: ValidationDetail[];
2425
+ };
2426
+ } | {
2427
+ status: 500;
2428
+ data: {
2429
+ code?: string;
2430
+ details?: string;
2431
+ status?: string;
2432
+ validationDetails?: ValidationDetail[];
2433
+ };
2434
+ }>(`/v1/organizations/bootstrap${QS.query(QS.explode({
2435
+ version
2436
+ }))}`, {
2437
+ ...opts
2438
+ }));
2439
+ }
2440
+ export function getTenantExample(opts?: Oazapfts.RequestOpts) {
2441
+ return oazapfts.ok(oazapfts.fetchJson<{
2442
+ status: 200;
2443
+ data: TenantManifestV1;
2444
+ } | {
2445
+ status: 400;
2446
+ data: ErrorBody;
2447
+ } | {
2448
+ status: 401;
2449
+ data: ErrorBody;
2450
+ } | {
2451
+ status: 404;
2452
+ data: ErrorBody;
2453
+ } | {
2454
+ status: 422;
2455
+ data: {
2456
+ code?: string;
2457
+ details?: string;
2458
+ status?: string;
2459
+ validationDetails?: ValidationDetail[];
2460
+ };
2461
+ } | {
2462
+ status: 500;
2463
+ data: {
2464
+ code?: string;
2465
+ details?: string;
2466
+ status?: string;
2467
+ validationDetails?: ValidationDetail[];
2468
+ };
2469
+ }>("/v1/examples/tenant", {
2470
+ ...opts
2471
+ }));
2472
+ }
2473
+ export function getRuntimeExample(opts?: Oazapfts.RequestOpts) {
2474
+ return oazapfts.ok(oazapfts.fetchJson<{
2475
+ status: 200;
2476
+ data: RuntimeManifestV1;
2477
+ } | {
2478
+ status: 400;
2479
+ data: ErrorBody;
2480
+ } | {
2481
+ status: 401;
2482
+ data: ErrorBody;
2483
+ } | {
2484
+ status: 404;
2485
+ data: ErrorBody;
2486
+ } | {
2487
+ status: 422;
2488
+ data: {
2489
+ code?: string;
2490
+ details?: string;
2491
+ status?: string;
2492
+ validationDetails?: ValidationDetail[];
2493
+ };
2494
+ } | {
2495
+ status: 500;
2496
+ data: {
2497
+ code?: string;
2498
+ details?: string;
2499
+ status?: string;
2500
+ validationDetails?: ValidationDetail[];
2501
+ };
2502
+ }>("/v1/examples/runtime", {
2503
+ ...opts
2504
+ }));
2505
+ }
2506
+ export function getApplicationDeploymentExample(opts?: Oazapfts.RequestOpts) {
2507
+ return oazapfts.ok(oazapfts.fetchJson<{
2508
+ status: 200;
2509
+ data: ApplicationDeploymentManifestV1;
2510
+ } | {
2511
+ status: 400;
2512
+ data: ErrorBody;
2513
+ } | {
2514
+ status: 401;
2515
+ data: ErrorBody;
2516
+ } | {
2517
+ status: 404;
2518
+ data: ErrorBody;
2519
+ } | {
2520
+ status: 422;
2521
+ data: {
2522
+ code?: string;
2523
+ details?: string;
2524
+ status?: string;
2525
+ validationDetails?: ValidationDetail[];
2526
+ };
2527
+ } | {
2528
+ status: 500;
2529
+ data: {
2530
+ code?: string;
2531
+ details?: string;
2532
+ status?: string;
2533
+ validationDetails?: ValidationDetail[];
2534
+ };
2535
+ }>("/v1/examples/applicationDeployment", {
2536
+ ...opts
2537
+ }));
2538
+ }
2539
+ /**
2540
+ * Get application deployment by ID
2541
+ */
2542
+ export function findApplicationDeploymentById1({ deploymentId }: {
2543
+ deploymentId: string;
2544
+ }, opts?: Oazapfts.RequestOpts) {
2545
+ return oazapfts.ok(oazapfts.fetchJson<{
2546
+ status: 200;
2547
+ data: ApplicationDeploymentManifestV1;
2548
+ } | {
2549
+ status: 400;
2550
+ data: ErrorBody;
2551
+ } | {
2552
+ status: 401;
2553
+ data: ErrorBody;
2554
+ } | {
2555
+ status: 404;
2556
+ data: ErrorBody;
2557
+ } | {
2558
+ status: 422;
2559
+ data: {
2560
+ code?: string;
2561
+ details?: string;
2562
+ status?: string;
2563
+ validationDetails?: ValidationDetail[];
2564
+ };
2565
+ } | {
2566
+ status: 500;
2567
+ data: {
2568
+ code?: string;
2569
+ details?: string;
2570
+ status?: string;
2571
+ validationDetails?: ValidationDetail[];
2572
+ };
2573
+ }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}`, {
2574
+ ...opts
2575
+ }));
2576
+ }
2577
+ /**
2578
+ * Get application deployment logs.
2579
+ */
2580
+ export function getApplicationDeploymentLogs1({ deploymentId, numberOfLines }: {
2581
+ deploymentId: string;
2582
+ numberOfLines?: number;
2583
+ }, opts?: Oazapfts.RequestOpts) {
2584
+ return oazapfts.ok(oazapfts.fetchJson<{
2585
+ status: 200;
2586
+ data: LogManifestV1;
2587
+ } | {
2588
+ status: 400;
2589
+ data: ErrorBody;
2590
+ } | {
2591
+ status: 401;
2592
+ data: ErrorBody;
2593
+ } | {
2594
+ status: 404;
2595
+ data: ErrorBody;
2596
+ } | {
2597
+ status: 422;
2598
+ data: {
2599
+ code?: string;
2600
+ details?: string;
2601
+ status?: string;
2602
+ validationDetails?: ValidationDetail[];
2603
+ };
2604
+ } | {
2605
+ status: 500;
2606
+ data: {
2607
+ code?: string;
2608
+ details?: string;
2609
+ status?: string;
2610
+ validationDetails?: ValidationDetail[];
2611
+ };
2612
+ }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/logs${QS.query(QS.explode({
2613
+ numberOfLines
2614
+ }))}`, {
2615
+ ...opts
2616
+ }));
2617
+ }
2618
+ /**
2619
+ * Get application deployment health.
2620
+ */
2621
+ export function getApplicationDeploymentHealth1({ deploymentId }: {
2622
+ deploymentId: string;
2623
+ }, opts?: Oazapfts.RequestOpts) {
2624
+ return oazapfts.ok(oazapfts.fetchJson<{
2625
+ status: 200;
2626
+ data: HealthManifestV1;
2627
+ } | {
2628
+ status: 400;
2629
+ data: ErrorBody;
2630
+ } | {
2631
+ status: 401;
2632
+ data: ErrorBody;
2633
+ } | {
2634
+ status: 404;
2635
+ data: ErrorBody;
2636
+ } | {
2637
+ status: 422;
2638
+ data: {
2639
+ code?: string;
2640
+ details?: string;
2641
+ status?: string;
2642
+ validationDetails?: ValidationDetail[];
2643
+ };
2644
+ } | {
2645
+ status: 500;
2646
+ data: {
2647
+ code?: string;
2648
+ details?: string;
2649
+ status?: string;
2650
+ validationDetails?: ValidationDetail[];
2651
+ };
2652
+ }>(`/v1/applications/deployments/${encodeURIComponent(deploymentId)}/health`, {
2653
+ ...opts
2654
+ }));
2655
+ }