@stack-spot/portal-network 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/api/account.d.ts +2368 -0
  3. package/dist/api/account.d.ts.map +1 -0
  4. package/dist/api/account.js +1521 -0
  5. package/dist/api/account.js.map +1 -0
  6. package/dist/api/ai.d.ts +1432 -0
  7. package/dist/api/ai.d.ts.map +1 -0
  8. package/dist/api/ai.js +1342 -0
  9. package/dist/api/ai.js.map +1 -0
  10. package/dist/api/apiRuntime.d.ts +922 -0
  11. package/dist/api/apiRuntime.d.ts.map +1 -0
  12. package/dist/api/apiRuntime.js +599 -0
  13. package/dist/api/apiRuntime.js.map +1 -0
  14. package/dist/api/cloudAccount.d.ts +473 -0
  15. package/dist/api/cloudAccount.d.ts.map +1 -0
  16. package/dist/api/cloudAccount.js +300 -0
  17. package/dist/api/cloudAccount.js.map +1 -0
  18. package/dist/api/cloudServices.d.ts +1233 -0
  19. package/dist/api/cloudServices.d.ts.map +1 -0
  20. package/dist/api/cloudServices.js +715 -0
  21. package/dist/api/cloudServices.js.map +1 -0
  22. package/dist/api/insights.d.ts +123 -0
  23. package/dist/api/insights.d.ts.map +1 -0
  24. package/dist/api/insights.js +112 -0
  25. package/dist/api/insights.js.map +1 -0
  26. package/dist/api/serviceCatalog.d.ts +737 -0
  27. package/dist/api/serviceCatalog.d.ts.map +1 -0
  28. package/dist/api/serviceCatalog.js +611 -0
  29. package/dist/api/serviceCatalog.js.map +1 -0
  30. package/dist/api/workflows.d.ts +366 -0
  31. package/dist/api/workflows.d.ts.map +1 -0
  32. package/dist/api/workflows.js +175 -0
  33. package/dist/api/workflows.js.map +1 -0
  34. package/dist/api/workspace.js +1476 -0
  35. package/dist/api/workspace.js.map +1 -0
  36. package/dist/api/workspaceManager.d.ts +1121 -0
  37. package/dist/api/workspaceManager.d.ts.map +1 -0
  38. package/dist/api/workspaceManager.js +357 -0
  39. package/dist/api/workspaceManager.js.map +1 -0
  40. package/dist/api/workspaceSearchEngine.d.ts +93 -0
  41. package/dist/api/workspaceSearchEngine.d.ts.map +1 -0
  42. package/dist/api/workspaceSearchEngine.js +55 -0
  43. package/dist/api/workspaceSearchEngine.js.map +1 -0
  44. package/dist/apis.json +121 -0
  45. package/dist/client/account.d.ts +217 -0
  46. package/dist/client/account.d.ts.map +1 -0
  47. package/dist/client/account.js +276 -0
  48. package/dist/client/account.js.map +1 -0
  49. package/dist/error/CanceledError.d.ts +8 -0
  50. package/dist/error/CanceledError.d.ts.map +1 -0
  51. package/dist/error/CanceledError.js +10 -0
  52. package/dist/error/CanceledError.js.map +1 -0
  53. package/dist/error/DefaultAPIError.d.ts +34 -0
  54. package/dist/error/DefaultAPIError.d.ts.map +1 -0
  55. package/dist/error/DefaultAPIError.js +82 -0
  56. package/dist/error/DefaultAPIError.js.map +1 -0
  57. package/dist/error/StackspotAPIError.d.ts +50 -0
  58. package/dist/error/StackspotAPIError.d.ts.map +1 -0
  59. package/dist/error/StackspotAPIError.js +54 -0
  60. package/dist/error/StackspotAPIError.js.map +1 -0
  61. package/dist/error/dictionary/account.d.ts +55 -0
  62. package/dist/error/dictionary/account.d.ts.map +1 -0
  63. package/dist/error/dictionary/account.js +55 -0
  64. package/dist/error/dictionary/account.js.map +1 -0
  65. package/dist/error/dictionary/action.d.ts +163 -0
  66. package/dist/error/dictionary/action.d.ts.map +1 -0
  67. package/dist/error/dictionary/action.js +163 -0
  68. package/dist/error/dictionary/action.js.map +1 -0
  69. package/dist/error/dictionary/base.d.ts +21 -0
  70. package/dist/error/dictionary/base.d.ts.map +1 -0
  71. package/dist/error/dictionary/base.js +21 -0
  72. package/dist/error/dictionary/base.js.map +1 -0
  73. package/dist/error/dictionary/cnt-fields.d.ts +13 -0
  74. package/dist/error/dictionary/cnt-fields.d.ts.map +1 -0
  75. package/dist/error/dictionary/cnt-fields.js +13 -0
  76. package/dist/error/dictionary/cnt-fields.js.map +1 -0
  77. package/dist/error/dictionary/cnt.d.ts +79 -0
  78. package/dist/error/dictionary/cnt.d.ts.map +1 -0
  79. package/dist/error/dictionary/cnt.js +79 -0
  80. package/dist/error/dictionary/cnt.js.map +1 -0
  81. package/dist/error/dictionary/rte.d.ts +23 -0
  82. package/dist/error/dictionary/rte.d.ts.map +1 -0
  83. package/dist/error/dictionary/rte.js +23 -0
  84. package/dist/error/dictionary/rte.js.map +1 -0
  85. package/dist/error/dictionary/rtm.d.ts +9 -0
  86. package/dist/error/dictionary/rtm.d.ts.map +1 -0
  87. package/dist/error/dictionary/rtm.js +9 -0
  88. package/dist/error/dictionary/rtm.js.map +1 -0
  89. package/dist/error/dictionary/workspace-fields.d.ts +9 -0
  90. package/dist/error/dictionary/workspace-fields.d.ts.map +1 -0
  91. package/dist/error/dictionary/workspace-fields.js +9 -0
  92. package/dist/error/dictionary/workspace-fields.js.map +1 -0
  93. package/dist/error/dictionary/workspace.d.ts +99 -0
  94. package/dist/error/dictionary/workspace.d.ts.map +1 -0
  95. package/dist/error/dictionary/workspace.js +99 -0
  96. package/dist/error/dictionary/workspace.js.map +1 -0
  97. package/dist/index.d.ts +7 -0
  98. package/dist/index.d.ts.map +1 -0
  99. package/dist/index.js +7 -0
  100. package/dist/index.js.map +1 -0
  101. package/dist/network/AutoInfiniteQuery.d.ts +23 -0
  102. package/dist/network/AutoInfiniteQuery.d.ts.map +1 -0
  103. package/dist/network/AutoInfiniteQuery.js +70 -0
  104. package/dist/network/AutoInfiniteQuery.js.map +1 -0
  105. package/dist/network/AutoMutation.d.ts +10 -0
  106. package/dist/network/AutoMutation.d.ts.map +1 -0
  107. package/dist/network/AutoMutation.js +20 -0
  108. package/dist/network/AutoMutation.js.map +1 -0
  109. package/dist/network/AutoOperation.d.ts +19 -0
  110. package/dist/network/AutoOperation.d.ts.map +1 -0
  111. package/dist/network/AutoOperation.js +105 -0
  112. package/dist/network/AutoOperation.js.map +1 -0
  113. package/dist/network/AutoQuery.d.ts +19 -0
  114. package/dist/network/AutoQuery.d.ts.map +1 -0
  115. package/dist/network/AutoQuery.js +70 -0
  116. package/dist/network/AutoQuery.js.map +1 -0
  117. package/dist/network/ManualInfiniteQuery.d.ts +25 -0
  118. package/dist/network/ManualInfiniteQuery.d.ts.map +1 -0
  119. package/dist/network/ManualInfiniteQuery.js +62 -0
  120. package/dist/network/ManualInfiniteQuery.js.map +1 -0
  121. package/dist/network/ManualMutation.d.ts +11 -0
  122. package/dist/network/ManualMutation.d.ts.map +1 -0
  123. package/dist/network/ManualMutation.js +32 -0
  124. package/dist/network/ManualMutation.js.map +1 -0
  125. package/dist/network/ManualOperation.d.ts +13 -0
  126. package/dist/network/ManualOperation.d.ts.map +1 -0
  127. package/dist/network/ManualOperation.js +53 -0
  128. package/dist/network/ManualOperation.js.map +1 -0
  129. package/dist/network/ManualQuery.d.ts +20 -0
  130. package/dist/network/ManualQuery.d.ts.map +1 -0
  131. package/dist/network/ManualQuery.js +77 -0
  132. package/dist/network/ManualQuery.js.map +1 -0
  133. package/dist/network/NetworkClient.d.ts +58 -0
  134. package/dist/network/NetworkClient.d.ts.map +1 -0
  135. package/dist/network/NetworkClient.js +107 -0
  136. package/dist/network/NetworkClient.js.map +1 -0
  137. package/dist/network/ReactQueryNetworkClient.d.ts +78 -0
  138. package/dist/network/ReactQueryNetworkClient.d.ts.map +1 -0
  139. package/dist/network/ReactQueryNetworkClient.js +144 -0
  140. package/dist/network/ReactQueryNetworkClient.js.map +1 -0
  141. package/dist/network/react-query-client.d.ts +6 -0
  142. package/dist/network/react-query-client.d.ts.map +1 -0
  143. package/dist/network/react-query-client.js +6 -0
  144. package/dist/network/react-query-client.js.map +1 -0
  145. package/dist/network/types.d.ts +234 -0
  146. package/dist/network/types.d.ts.map +1 -0
  147. package/dist/network/types.js +2 -0
  148. package/dist/network/types.js.map +1 -0
  149. package/dist/utils/use-extended-list.d.ts +39 -0
  150. package/dist/utils/use-extended-list.d.ts.map +1 -0
  151. package/dist/utils/use-extended-list.js +36 -0
  152. package/dist/utils/use-extended-list.js.map +1 -0
  153. package/package.json +1 -1
  154. package/src/client/account.ts +79 -14
  155. package/src/error/DefaultAPIError.ts +2 -3
  156. package/src/error/StackspotAPIError.ts +1 -1
  157. package/src/index.ts +1 -0
  158. package/src/network/AutoInfiniteQuery.ts +7 -0
  159. package/src/network/AutoOperation.ts +7 -1
  160. package/src/network/ManualInfiniteQuery.ts +7 -0
  161. package/src/network/NetworkClient.ts +16 -70
  162. package/src/network/ReactQueryNetworkClient.ts +18 -38
  163. package/src/network/types.ts +0 -10
  164. package/src/utils/use-extended-list.ts +80 -0
@@ -0,0 +1,922 @@
1
+ /**
2
+ * Runtime Manager API
3
+ * v1.0.0
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
+ export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
9
+ export declare const servers: {
10
+ generatedServerUrl: string;
11
+ };
12
+ export type TaskDataS3BackendResponse = {
13
+ bucket: string;
14
+ region: string;
15
+ key: string;
16
+ };
17
+ export type TaskIacDataResponsePlugin = {
18
+ pluginAppliedAlias: string;
19
+ name: string;
20
+ inputs: {
21
+ [key: string]: object;
22
+ };
23
+ };
24
+ export type TaskIacDataResponseConnector = {
25
+ connector: string;
26
+ alias: string;
27
+ "type": string;
28
+ pluginName: string;
29
+ attributes: {
30
+ [key: string]: object;
31
+ };
32
+ writeToFile: boolean;
33
+ };
34
+ export type TaskIacDataResponse = {
35
+ schemaVersion: string;
36
+ runId: string;
37
+ runTaskId: string;
38
+ realm: string;
39
+ iacBackend: TaskDataS3BackendResponse;
40
+ workspaceName: string;
41
+ plugin: TaskIacDataResponsePlugin;
42
+ connectors: TaskIacDataResponseConnector[];
43
+ metadata?: {
44
+ [key: string]: object;
45
+ };
46
+ runEnvironment: string[];
47
+ };
48
+ export type ValidationDetails = {
49
+ code: string;
50
+ field?: string;
51
+ details?: string;
52
+ values?: string[];
53
+ };
54
+ export type ErrorResponse = {
55
+ code: "RTM_ACCESS_TOKEN_NOT_RECEIVED_FROM_IDM" | "RTM_EVENTS_NOT_SENT" | "RTM_BAD_REQUEST_ERROR" | "RTM_MANDATORY_PARAM_NOT_INFORMED" | "RTM_MANDATORY_ATTR_NOT_INFORMED" | "RTM_ATTR_INVALID" | "RTM_ATTR_INVALID_FORMAT" | "RTM_ATTR_INVALID_EVALUATED_FROM_VALIDATIONS_LENGTH" | "RTM_ATTR_INVALID_EVALUATED_FROM_VALIDATIONS_EMAIL" | "RTM_ATTR_INVALID_EVALUATED_FROM_VALIDATIONS_PATTERN" | "RTM_UNABLE_TO_PARSE_REQUEST" | "RTM_CANNOT_DESTROY" | "RTM_ALREADY_DESTROYED" | "RTM_CONNECTION_INTERFACE_IN_USE" | "RTM_CANNOT_IDENTIFY_USER" | "RTM_TASK_TYPE_NOT_CORRECT" | "RTM_GENERIC_BUSINESS_ERROR" | "RTM_TASK_NOT_READY_TO_RUN" | "RTM_TASK_NOT_RUNNING" | "RTM_DEPLOYMENT_WITHOUT_INFRA_OR_APP_ID" | "RTM_CREATING_CONN_INTERFACE_ERROR" | "RTM_CREATING_CONN_INTERFACE_MISSING_ATTRIBUTES" | "RTM_IMPERSONATE_TOKEN_ERROR" | "RTM_UNEXPECTED_RUNTIME_ENVIRONMENT_CONFIG" | "RTM_RUN_WITH_NO_TASKS_ERROR" | "RTM_TASK_TYPE_NOT_SUPPORTED" | "RTM_SELF_HOSTED_BACKEND_NOT_CONFIGURED" | "RTM_DEPENDENCIES_HAS_CYCLE" | "RTM_UNAVAILABLE_DESTROY_PROCESS" | "RTM_DEPLOYMENT_WITH_INFRA_AND_APP" | "RTM_DEPLOYMENT_JUST_ONE_RUN_NOT_FINISHED" | "RTM_GENERIC_CONFLICT_ERROR" | "RTM_DEPLOYMENT_APP_ALREADY_RUNNING_CONFLICT_ERROR" | "RTM_DEPLOYMENT_INFRA_ALREADY_RUNNING_CONFLICT_ERROR" | "RTM_DEPLOYMENT_TAG_ALREADY_EXISTS" | "RTM_NOT_FOUND" | "RTM_PROVIDER_NOT_FOUND" | "RTM_STATE_NOT_FOUND" | "RTM_ENVIRONMENT_NOT_FOUND_ERROR" | "RTM_DEPLOYMENT_NOT_FOUND_ERROR" | "RTM_PLUGIN_DEPLOYMENT_NOT_FOUND_ERROR" | "RTM_WORKSPACE_NOT_FOUND" | "RTM_APPLICATION_NOT_FOUND" | "RTM_INFRA_LINK_NOT_FOUND" | "RTM_RUN_NOT_FOUND" | "RTM_RUN_TASK_NOT_FOUND" | "RTM_CONNECTION_INTERFACE_NOT_FOUND" | "RTM_PLUGIN_MANIFESTO_NOT_FOUND" | "RTM_PLUGIN_DATA_NOT_FOUND" | "RTM_DEPLOYMENT_TAG_NOT_FOUND" | "RTM_RUN_WITH_TOO_MANY_PLUGINS" | "RTM_TOO_MANY_RUNS" | "RTM_FORBIDDEN" | "RTM_MISSING_ACCOUNT" | "RTM_MISSING_AUTHENTICATION" | "RTM_WORKSPACE_API_FORBIDDEN" | "RTM_WORKSPACE_API_UNHANDLED_ERROR" | "RTM_WORKSPACE_API_UNPROCESSABLE_ENTITY" | "RTM_WORKSPACE_API_INTERNAL_ERROR" | "RTM_WORKSPACE_API_BAD_GATEWAY" | "RTM_CONTENT_API_FORBIDDEN" | "RTM_CONTENT_API_UNHANDLED_ERROR" | "RTM_CONTENT_API_INTERNAL_ERROR" | "RTM_CLOUD_SERVICES_API_FORBIDDEN" | "RTM_CLOUD_SERVICES_API_UNHANDLED_ERROR" | "RTM_CLOUD_SERVICES_FAILED_TO_RETRIEVE_EXTERNAL_ID" | "RTM_CLOUD_SERVICES_API_INTERNAL_ERROR" | "RTM_GENERIC_INTEGRATION_ERROR" | "RTM_ACCOUNT_API_PAT_NOT_FOUND_ERROR" | "RTM_ACCOUNT_API_FORBIDDEN" | "RTM_ACCOUNT_API_UNHANDLED_ERROR" | "RTM_ACCOUNT_API_INTERNAL_ERROR" | "RTM_S3_UNHANDLED_ERROR" | "RTM_INTERNAL_SERVER_ERROR" | "RTM_CREATING_CONN_INTERFACE_WORKER_ERROR" | "RTM_SECURITY_KEY_ALREADY_REGISTERED_IN_BLOCK_LIST" | "RTM_SECURITY_BLOCK_LIST_ERROR" | "RTM_RUN_TYPE_NOT_CORRECT" | "RTM_IAC_PATH_NOT_PRESENT";
56
+ status: number;
57
+ details: string;
58
+ validationDetails?: ValidationDetails[];
59
+ };
60
+ export type RunSelfHostedTaskIacCompletedRequest = {
61
+ /** The schema version */
62
+ schemaVersion: string;
63
+ /** The Run ULID */
64
+ runId: string;
65
+ /** The Task ULID */
66
+ runTaskId: string;
67
+ /** Whether this task completed successfully or not */
68
+ status: "SUCCESS" | "INTERNAL_ERROR";
69
+ /** The error message, if it exists */
70
+ messageError?: string;
71
+ /** Metadata */
72
+ metadata?: {
73
+ [key: string]: object;
74
+ };
75
+ };
76
+ export type TaskDestroyDataResponse = {
77
+ schemaVersion: string;
78
+ runId: string;
79
+ runTaskId: string;
80
+ iacBackend: TaskDataS3BackendResponse;
81
+ tfBackend: TaskDataS3BackendResponse;
82
+ metadata?: {
83
+ [key: string]: object;
84
+ };
85
+ runEnvironment: string[];
86
+ };
87
+ export type RunSelfHostedTaskDestroyCompletedRequest = {
88
+ /** The schema version */
89
+ schemaVersion: string;
90
+ /** The Run ULID */
91
+ runId: string;
92
+ /** The Task ULID */
93
+ runTaskId: string;
94
+ /** Whether this task completed successfully or not */
95
+ status: "SUCCESS" | "INTERNAL_ERROR" | "FAILED";
96
+ /** The error message, if it exists */
97
+ messageError?: string;
98
+ /** The deploy output, to be used to generate the connection interfaces */
99
+ output?: {
100
+ [key: string]: object;
101
+ };
102
+ /** Metadata */
103
+ metadata?: {
104
+ [key: string]: object;
105
+ };
106
+ /** partialResources */
107
+ partialResources?: string[];
108
+ };
109
+ export type TaskDeployDataResponse = {
110
+ schemaVersion: string;
111
+ runId: string;
112
+ runTaskId: string;
113
+ iacBackend: TaskDataS3BackendResponse;
114
+ tfBackend: TaskDataS3BackendResponse;
115
+ metadata?: {
116
+ [key: string]: object;
117
+ };
118
+ runEnvironment: string[];
119
+ };
120
+ export type RunSelfHostedTaskDeployCompletedRequest = {
121
+ /** The schema version */
122
+ schemaVersion: string;
123
+ /** The Run ULID */
124
+ runId: string;
125
+ /** The Task ULID */
126
+ runTaskId: string;
127
+ /** Whether this task completed successfully or not */
128
+ status: "SUCCESS" | "INTERNAL_ERROR" | "FAILED";
129
+ /** The error message, if it exists */
130
+ messageError?: string;
131
+ /** The deploy output, to be used to generate the connection interfaces */
132
+ output?: {
133
+ [key: string]: object;
134
+ };
135
+ /** Metadata */
136
+ metadata?: {
137
+ [key: string]: object;
138
+ };
139
+ partialResources?: string[];
140
+ };
141
+ export type ConfigTerraform = {
142
+ /** name of the bucket to save state files */
143
+ bucket: string;
144
+ /** name of the region of the bucket */
145
+ region: string;
146
+ };
147
+ export type Config = {
148
+ tfstate: ConfigTerraform;
149
+ iac: ConfigTerraform;
150
+ };
151
+ export type RunSelfHostedRollbackRequest = {
152
+ /** Application Id */
153
+ appId?: string;
154
+ /** Shared Infra Id */
155
+ infraId?: string;
156
+ /** Environment Id */
157
+ envId: string;
158
+ /** Current version tag to rollback */
159
+ tag: string;
160
+ config: Config;
161
+ /** Url of pipeline currently running */
162
+ pipelineUrl: string;
163
+ };
164
+ export type RunSelfHostedTaskResponse = {
165
+ order: number;
166
+ runTaskId: string;
167
+ taskType: string;
168
+ pluginAppliedAlias: string;
169
+ };
170
+ export type RunSelfHostedResponse = {
171
+ runId: string;
172
+ runType: string;
173
+ tasks: RunSelfHostedTaskResponse[];
174
+ };
175
+ export type RunSelfHostedDestroyRequest = {
176
+ /** Application Id */
177
+ appId?: string;
178
+ /** Shared Infra Id */
179
+ infraId?: string;
180
+ /** Workspace Id */
181
+ workspaceId: string;
182
+ /** Environment Id */
183
+ envId: string;
184
+ config: Config;
185
+ /** Url of pipeline currently running */
186
+ pipelineUrl: string;
187
+ };
188
+ export type ManifestoMetadata = {
189
+ /** Name */
190
+ name: string;
191
+ isTest?: string;
192
+ };
193
+ export type Connection = {
194
+ /** Required connector name */
195
+ selected: string;
196
+ /** Required connector type */
197
+ "type": string;
198
+ /** Required connector label reference */
199
+ alias: string;
200
+ };
201
+ export type ManifestoConnection = {
202
+ requires?: Connection[];
203
+ generates?: Connection[];
204
+ };
205
+ export type Link = {
206
+ /** Required link name */
207
+ name: string;
208
+ /** Required link url */
209
+ url: string;
210
+ /** Required link type */
211
+ "type": string;
212
+ /** Link picture path */
213
+ picture: string;
214
+ };
215
+ export type ManifestoLink = {
216
+ generates?: Link[];
217
+ };
218
+ export type AppliedPlugin = {
219
+ /** Plugin Alias */
220
+ alias: string;
221
+ /** Plugin Name */
222
+ name: string;
223
+ /** Plugin Version Id */
224
+ pluginVersionId: string;
225
+ /** Stack Version Id */
226
+ stackVersionId: string;
227
+ /** Plugin Type */
228
+ "type": string;
229
+ inputs: {
230
+ [key: string]: object;
231
+ };
232
+ connections: ManifestoConnection;
233
+ links?: ManifestoLink;
234
+ };
235
+ export type ManifestoSpec = {
236
+ /** Application Or Infra Id ( */
237
+ id: string;
238
+ /** Repository */
239
+ repository?: string;
240
+ appliedPlugins: AppliedPlugin[];
241
+ };
242
+ export type Manifesto = {
243
+ /** Schema Version */
244
+ schemaVersion: string;
245
+ /** Manifesto Kind */
246
+ kind: string;
247
+ metadata: ManifestoMetadata;
248
+ spec: ManifestoSpec;
249
+ };
250
+ export type RunSelfHostedDeployRequest = {
251
+ /** Environment Id */
252
+ envId: string;
253
+ /** Workspace Id */
254
+ workspaceId: string;
255
+ /** Version tag that will be generated by the deploy run if successful */
256
+ versionTag: string;
257
+ /** Run Configuration */
258
+ runConfig?: {
259
+ [key: string]: object;
260
+ };
261
+ manifesto: Manifesto;
262
+ /** Whether this application exposes an API or not */
263
+ isApi?: boolean;
264
+ /** Path (in the repository) of the API contract file in open api format */
265
+ apiContractPath?: string;
266
+ config: Config;
267
+ /** Url of pipeline currently running */
268
+ pipelineUrl: string;
269
+ };
270
+ export type RunDestroyRequest = {
271
+ /** Application Id */
272
+ appId?: string;
273
+ /** Shared Infra Id */
274
+ infraId?: string;
275
+ /** Workspace Id */
276
+ workspaceId: string;
277
+ /** Environment Id */
278
+ envId: string;
279
+ };
280
+ export type RunCreatedResponse = {
281
+ runId: string;
282
+ };
283
+ export type WorkerResponse = {
284
+ allowed: boolean;
285
+ reason?: string;
286
+ };
287
+ export type RunRollbackRequest = {
288
+ /** Application Id */
289
+ appId?: string;
290
+ /** Shared Infra Id */
291
+ infraId?: string;
292
+ /** Environment Id */
293
+ envId: string;
294
+ /** Current version tag to rollback */
295
+ tag: string;
296
+ };
297
+ export type RunDeployRequest = {
298
+ /** Environment Id */
299
+ envId: string;
300
+ /** Workspace Id */
301
+ workspaceId: string;
302
+ /** Version tag that will be generated by the deploy run if successful */
303
+ versionTag: string;
304
+ /** Run Configuration */
305
+ runConfig?: {
306
+ [key: string]: object;
307
+ };
308
+ manifesto: Manifesto;
309
+ /** Whether this application exposes an API or not */
310
+ isApi?: boolean;
311
+ /** Path (in the repository) of the API contract file in open api format */
312
+ apiContractPath?: string;
313
+ };
314
+ export type Unit = object;
315
+ export type FinishWorkerIacSchema = {
316
+ schemaVersion: string;
317
+ runTaskId: string;
318
+ runId?: string;
319
+ status: "SUCCESS" | "INTERNAL_ERROR";
320
+ messageError: string;
321
+ metadata?: {
322
+ [key: string]: object;
323
+ };
324
+ };
325
+ export type FinishWorkerDestroySchema = {
326
+ schemaVersion: string;
327
+ runTaskId: string;
328
+ runId?: string;
329
+ status: "SUCCESS" | "INTERNAL_ERROR" | "FAILED";
330
+ messageError: string;
331
+ tfstatePath?: string;
332
+ metadata?: {
333
+ [key: string]: object;
334
+ };
335
+ partialResources?: string[];
336
+ };
337
+ export type FinishWorkerDeploySchema = {
338
+ schemaVersion: string;
339
+ runTaskId: string;
340
+ runId?: string;
341
+ status: "SUCCESS" | "INTERNAL_ERROR" | "FAILED";
342
+ messageError: string;
343
+ metadata?: {
344
+ [key: string]: object;
345
+ };
346
+ output?: {
347
+ [key: string]: object;
348
+ };
349
+ partialResources?: string[];
350
+ };
351
+ export type TagResponse = {
352
+ name: string;
353
+ createdAt: string;
354
+ head: boolean;
355
+ };
356
+ export type EnvironmentResponse = {
357
+ name?: string;
358
+ };
359
+ export type RunTaskResponse = {
360
+ id?: string;
361
+ "type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED";
362
+ status: "PENDING" | "READY_TO_RUN" | "RUNNING" | "SUCCEEDED" | "FAILED" | "INTERNAL_ERROR" | "EXTERNAL_ERROR" | "ABORTED";
363
+ errorDetails?: string;
364
+ logs?: string;
365
+ };
366
+ export type RunPluginResponse = {
367
+ pluginAppliedAlias: string;
368
+ tasks: RunTaskResponse[];
369
+ };
370
+ export type RunResponse = {
371
+ runId: string;
372
+ appId?: string;
373
+ infraId?: string;
374
+ envId: string;
375
+ deploymentId?: string;
376
+ "type": "DEPLOY" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
377
+ status: "RUNNING" | "SUCCEEDED" | "USER_ERROR" | "RUNTIME_ERROR" | "EXTERNAL_ERROR" | "ABORTING" | "ABORTED";
378
+ createdAt: string;
379
+ updatedAt?: string;
380
+ appliedPlugins?: RunPluginResponse[];
381
+ };
382
+ export type RunLightResponse = {
383
+ runId: string;
384
+ appId?: string;
385
+ infraId?: string;
386
+ envId: string;
387
+ deploymentId?: string;
388
+ author?: string;
389
+ "type": "DEPLOY" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
390
+ status: "RUNNING" | "SUCCEEDED" | "USER_ERROR" | "RUNTIME_ERROR" | "EXTERNAL_ERROR" | "ABORTING" | "ABORTED";
391
+ createdAt: string;
392
+ updatedAt?: string;
393
+ };
394
+ export type ConnectionInterfaceResponse = {
395
+ name: string;
396
+ "type": string;
397
+ outputs: {
398
+ [key: string]: object;
399
+ };
400
+ };
401
+ export type PluginDeploymentResponse = {
402
+ pluginAppliedAlias: string;
403
+ pluginVersionId: string;
404
+ stackVersionId: string;
405
+ inputs: {
406
+ [key: string]: object;
407
+ };
408
+ connectors: ConnectionInterfaceResponse[];
409
+ };
410
+ export type DeploymentResponse = {
411
+ deploymentId: string;
412
+ appId?: string;
413
+ infraId?: string;
414
+ envId: string;
415
+ head: boolean;
416
+ tag?: string;
417
+ createdAt?: string;
418
+ plugins: PluginDeploymentResponse[];
419
+ };
420
+ export type DeploymentStatusModel = {
421
+ status: "RUNNING" | "SUCCEEDED" | "USER_ERROR" | "RUNTIME_ERROR" | "EXTERNAL_ERROR" | "ABORTING" | "ABORTED";
422
+ };
423
+ export type DiffPluginResponse = {
424
+ appManifesto: {
425
+ [key: string]: object;
426
+ };
427
+ };
428
+ export type Pageable = {
429
+ page?: number;
430
+ size?: number;
431
+ sort?: string[];
432
+ };
433
+ export type SortObject = {
434
+ unsorted?: boolean;
435
+ sorted?: boolean;
436
+ empty?: boolean;
437
+ };
438
+ export type PageableObject = {
439
+ paged?: boolean;
440
+ unpaged?: boolean;
441
+ pageNumber?: number;
442
+ pageSize?: number;
443
+ offset?: number;
444
+ sort?: SortObject;
445
+ };
446
+ export type AdminRunTaskResponse = {
447
+ id?: string;
448
+ "type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED";
449
+ status: "PENDING" | "READY_TO_RUN" | "RUNNING" | "SUCCEEDED" | "FAILED" | "INTERNAL_ERROR" | "EXTERNAL_ERROR" | "ABORTED";
450
+ errorDetails?: string;
451
+ logs?: string;
452
+ iac?: string;
453
+ };
454
+ export type AdminRunPluginResponse = {
455
+ pluginAppliedAlias: string;
456
+ tasks: AdminRunTaskResponse[];
457
+ };
458
+ export type AdminRunResponse = {
459
+ runId: string;
460
+ appId?: string;
461
+ infraId?: string;
462
+ envId: string;
463
+ deploymentId?: string;
464
+ manifesto: {
465
+ [key: string]: object;
466
+ };
467
+ "type": "DEPLOY" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
468
+ status: "RUNNING" | "SUCCEEDED" | "USER_ERROR" | "RUNTIME_ERROR" | "EXTERNAL_ERROR" | "ABORTING" | "ABORTED";
469
+ createdAt: string;
470
+ updatedAt?: string;
471
+ appliedPlugins?: AdminRunPluginResponse[];
472
+ };
473
+ export type PageAdminRunResponse = {
474
+ totalPages?: number;
475
+ totalElements?: number;
476
+ pageable?: PageableObject;
477
+ numberOfElements?: number;
478
+ size?: number;
479
+ content?: AdminRunResponse[];
480
+ "number"?: number;
481
+ sort?: SortObject;
482
+ first?: boolean;
483
+ last?: boolean;
484
+ empty?: boolean;
485
+ };
486
+ export type SelfHostedConfigModel = {
487
+ terraformBucket: string;
488
+ terraformRegion: string;
489
+ iacBucket: string;
490
+ iacRegion: string;
491
+ };
492
+ export type AdminRunTaskDetailResponse = {
493
+ runTaskId: string;
494
+ runId: string;
495
+ deploymentId: string;
496
+ userRef?: string;
497
+ workspaceId: string;
498
+ workspaceName: string;
499
+ accountId: string;
500
+ envId: string;
501
+ appId?: string;
502
+ infraId?: string;
503
+ realm: string;
504
+ pluginAppliedAlias: string;
505
+ pluginManifesto: {
506
+ [key: string]: object;
507
+ };
508
+ pluginFQDN: string;
509
+ runTaskType: "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED";
510
+ runTasksStatus: "PENDING" | "READY_TO_RUN" | "RUNNING" | "SUCCEEDED" | "FAILED" | "INTERNAL_ERROR" | "EXTERNAL_ERROR" | "ABORTED";
511
+ errorDetails?: string;
512
+ iacPath?: string;
513
+ workerUrl?: string;
514
+ runTaskData: {
515
+ [key: string]: object;
516
+ };
517
+ requiredRunTasks: string[];
518
+ order: number;
519
+ selfHostedConfig?: SelfHostedConfigModel;
520
+ exception?: string;
521
+ iacDownloadUrl?: string;
522
+ logsDownloadUrl?: string;
523
+ };
524
+ /**
525
+ * Endpoint to get the necessary data to perform an IAC Task
526
+ */
527
+ export declare function getIacTask({ taskId }: {
528
+ taskId: string;
529
+ }, opts?: Oazapfts.RequestOpts): Promise<TaskIacDataResponse>;
530
+ /**
531
+ * Endpoint to inform the completion of an IAC Task
532
+ */
533
+ export declare function putIacTaskResponse({ taskId, runSelfHostedTaskIacCompletedRequest }: {
534
+ taskId: string;
535
+ runSelfHostedTaskIacCompletedRequest: RunSelfHostedTaskIacCompletedRequest;
536
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
537
+ /**
538
+ * Endpoint to get the necessary data to perform an Destroy Task
539
+ */
540
+ export declare function getDestroyTask({ taskId }: {
541
+ taskId: string;
542
+ }, opts?: Oazapfts.RequestOpts): Promise<TaskDestroyDataResponse>;
543
+ /**
544
+ * Endpoint to inform the completion of a Destroy Task
545
+ */
546
+ export declare function putDestroyTaskResponse({ taskId, runSelfHostedTaskDestroyCompletedRequest }: {
547
+ taskId: string;
548
+ runSelfHostedTaskDestroyCompletedRequest: RunSelfHostedTaskDestroyCompletedRequest;
549
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
550
+ /**
551
+ * Endpoint to get the necessary data to perform a Deploy Task
552
+ */
553
+ export declare function getDeployTask({ taskId }: {
554
+ taskId: string;
555
+ }, opts?: Oazapfts.RequestOpts): Promise<TaskDeployDataResponse>;
556
+ /**
557
+ * Endpoint to inform the completion of a Deploy Task
558
+ */
559
+ export declare function putDeployTaskResponse({ taskId, runSelfHostedTaskDeployCompletedRequest }: {
560
+ taskId: string;
561
+ runSelfHostedTaskDeployCompletedRequest: RunSelfHostedTaskDeployCompletedRequest;
562
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
563
+ /**
564
+ * Endpoint to get the necessary data to perform an IAC Task
565
+ */
566
+ export declare function getIacTask1({ taskId }: {
567
+ taskId: string;
568
+ }, opts?: Oazapfts.RequestOpts): Promise<TaskIacDataResponse>;
569
+ /**
570
+ * Endpoint to inform the completion of an IAC Task
571
+ */
572
+ export declare function putIacTaskResponse1({ taskId, runSelfHostedTaskIacCompletedRequest }: {
573
+ taskId: string;
574
+ runSelfHostedTaskIacCompletedRequest: RunSelfHostedTaskIacCompletedRequest;
575
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
576
+ /**
577
+ * Endpoint to get the necessary data to perform an Destroy Task
578
+ */
579
+ export declare function getDestroyTask1({ taskId }: {
580
+ taskId: string;
581
+ }, opts?: Oazapfts.RequestOpts): Promise<TaskDestroyDataResponse>;
582
+ /**
583
+ * Endpoint to inform the completion of a Destroy Task
584
+ */
585
+ export declare function putDestroyTaskResponse1({ taskId, runSelfHostedTaskDestroyCompletedRequest }: {
586
+ taskId: string;
587
+ runSelfHostedTaskDestroyCompletedRequest: RunSelfHostedTaskDestroyCompletedRequest;
588
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
589
+ /**
590
+ * Endpoint to get the necessary data to perform a Deploy Task
591
+ */
592
+ export declare function getDeployTask1({ taskId }: {
593
+ taskId: string;
594
+ }, opts?: Oazapfts.RequestOpts): Promise<TaskDeployDataResponse>;
595
+ /**
596
+ * Endpoint to inform the completion of a Deploy Task
597
+ */
598
+ export declare function putDeployTaskResponse1({ taskId, runSelfHostedTaskDeployCompletedRequest }: {
599
+ taskId: string;
600
+ runSelfHostedTaskDeployCompletedRequest: RunSelfHostedTaskDeployCompletedRequest;
601
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
602
+ /**
603
+ * Endpoint to run Infra Rollback
604
+ */
605
+ export declare function runRollbackInfra({ runSelfHostedRollbackRequest }: {
606
+ runSelfHostedRollbackRequest: RunSelfHostedRollbackRequest;
607
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
608
+ /**
609
+ * Endpoint to run App Rollback
610
+ */
611
+ export declare function runRollbackApp({ runSelfHostedRollbackRequest }: {
612
+ runSelfHostedRollbackRequest: RunSelfHostedRollbackRequest;
613
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
614
+ /**
615
+ * Endpoint to run Destroy SelfHosted
616
+ */
617
+ export declare function runDestroyInfra({ runSelfHostedDestroyRequest }: {
618
+ runSelfHostedDestroyRequest: RunSelfHostedDestroyRequest;
619
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
620
+ /**
621
+ * Endpoint to run Destroy SelfHosted
622
+ */
623
+ export declare function runDestroyApp({ runSelfHostedDestroyRequest }: {
624
+ runSelfHostedDestroyRequest: RunSelfHostedDestroyRequest;
625
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
626
+ /**
627
+ * Endpoint to run Infra Deploy
628
+ */
629
+ export declare function runDeployInfra({ runSelfHostedDeployRequest }: {
630
+ runSelfHostedDeployRequest: RunSelfHostedDeployRequest;
631
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
632
+ /**
633
+ * Endpoint to run App Deploy
634
+ */
635
+ export declare function runDeployApp({ runSelfHostedDeployRequest }: {
636
+ runSelfHostedDeployRequest: RunSelfHostedDeployRequest;
637
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
638
+ /**
639
+ * Endpoint to run Infra Deploy
640
+ */
641
+ export declare function runDestroyInfra1({ runDestroyRequest }: {
642
+ runDestroyRequest: RunDestroyRequest;
643
+ }, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
644
+ /**
645
+ * Endpoint to run App Deploy
646
+ */
647
+ export declare function runDestroyApp1({ runDestroyRequest }: {
648
+ runDestroyRequest: RunDestroyRequest;
649
+ }, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
650
+ /**
651
+ * Endpoint to identify the worker that got this tasks to process
652
+ */
653
+ export declare function getRunTaskById({ taskId, workerUrl }: {
654
+ taskId: string;
655
+ workerUrl: string;
656
+ }, opts?: Oazapfts.RequestOpts): Promise<WorkerResponse>;
657
+ /**
658
+ * Endpoint to run Infra Rollback
659
+ */
660
+ export declare function runRollbackInfra1({ runSelfHostedRollbackRequest }: {
661
+ runSelfHostedRollbackRequest: RunSelfHostedRollbackRequest;
662
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
663
+ /**
664
+ * Endpoint to run App Rollback
665
+ */
666
+ export declare function runRollbackApp1({ runSelfHostedRollbackRequest }: {
667
+ runSelfHostedRollbackRequest: RunSelfHostedRollbackRequest;
668
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
669
+ /**
670
+ * Endpoint to run Destroy SelfHosted
671
+ */
672
+ export declare function runDestroyInfra2({ runSelfHostedDestroyRequest }: {
673
+ runSelfHostedDestroyRequest: RunSelfHostedDestroyRequest;
674
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
675
+ /**
676
+ * Endpoint to run Destroy SelfHosted
677
+ */
678
+ export declare function runDestroyApp2({ runSelfHostedDestroyRequest }: {
679
+ runSelfHostedDestroyRequest: RunSelfHostedDestroyRequest;
680
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
681
+ /**
682
+ * Endpoint to run Infra Deploy
683
+ */
684
+ export declare function runDeployInfra1({ runSelfHostedDeployRequest }: {
685
+ runSelfHostedDeployRequest: RunSelfHostedDeployRequest;
686
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
687
+ /**
688
+ * Endpoint to run App Deploy
689
+ */
690
+ export declare function runDeployApp1({ runSelfHostedDeployRequest }: {
691
+ runSelfHostedDeployRequest: RunSelfHostedDeployRequest;
692
+ }, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
693
+ /**
694
+ * Endpoint to run Infra Rollback
695
+ */
696
+ export declare function runRollbackInfra2({ runRollbackRequest }: {
697
+ runRollbackRequest: RunRollbackRequest;
698
+ }, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
699
+ /**
700
+ * Endpoint to run App Rollback
701
+ */
702
+ export declare function runRollbackApp2({ runRollbackRequest }: {
703
+ runRollbackRequest: RunRollbackRequest;
704
+ }, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
705
+ /**
706
+ * Endpoint to run Destroy
707
+ */
708
+ export declare function runDestroyInfra3({ runDestroyRequest }: {
709
+ runDestroyRequest: RunDestroyRequest;
710
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
711
+ /**
712
+ * Endpoint to run Destroy
713
+ */
714
+ export declare function runDestroyApp3({ runDestroyRequest }: {
715
+ runDestroyRequest: RunDestroyRequest;
716
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
717
+ /**
718
+ * Endpoint to run Infra Deploy
719
+ */
720
+ export declare function runDeployInfra2({ runDeployRequest }: {
721
+ runDeployRequest: RunDeployRequest;
722
+ }, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
723
+ /**
724
+ * Endpoint to run App Deploy
725
+ */
726
+ export declare function runDeployApp2({ runDeployRequest }: {
727
+ runDeployRequest: RunDeployRequest;
728
+ }, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
729
+ /**
730
+ * Endpoint to cancel a run that's currently running
731
+ */
732
+ export declare function cancelAppRunByRunId({ runId, force }: {
733
+ runId: string;
734
+ force?: boolean;
735
+ }, opts?: Oazapfts.RequestOpts): Promise<object>;
736
+ /**
737
+ * Simulate a response from deploy worker
738
+ */
739
+ export declare function simulateIacWorkerResponse({ finishWorkerIacSchema }: {
740
+ finishWorkerIacSchema: FinishWorkerIacSchema;
741
+ }, opts?: Oazapfts.RequestOpts): Promise<boolean>;
742
+ /**
743
+ * Endpoint to cancel a run that's currently running
744
+ */
745
+ export declare function simulateIacWorkerResponseForAllTasks({ runId }: {
746
+ runId: string;
747
+ }, opts?: Oazapfts.RequestOpts): Promise<boolean>;
748
+ /**
749
+ * Simulate a response from deploy worker
750
+ */
751
+ export declare function simulateDestroyWorkerResponse({ finishWorkerDestroySchema }: {
752
+ finishWorkerDestroySchema: FinishWorkerDestroySchema;
753
+ }, opts?: Oazapfts.RequestOpts): Promise<boolean>;
754
+ /**
755
+ * Simulate a response from deploy worker
756
+ */
757
+ export declare function simulateDeployWorkerResponse({ finishWorkerDeploySchema }: {
758
+ finishWorkerDeploySchema: FinishWorkerDeploySchema;
759
+ }, opts?: Oazapfts.RequestOpts): Promise<boolean>;
760
+ /**
761
+ * Endpoint to force to resend all "ready to run" tasks by runId
762
+ */
763
+ export declare function resendTasks({ runId }: {
764
+ runId: string;
765
+ }, opts?: Oazapfts.RequestOpts): Promise<boolean>;
766
+ /**
767
+ * Endpoint to force status RUNTIME_ERROR to a run by runId
768
+ */
769
+ export declare function setRunAsFailed({ runId }: {
770
+ runId: string;
771
+ }, opts?: Oazapfts.RequestOpts): Promise<boolean>;
772
+ /**
773
+ * Endpoint to block a StackSpot Workspace to perform Runtime operations
774
+ */
775
+ export declare function blockWorkspace({ workspaceId }: {
776
+ workspaceId: string;
777
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
778
+ /**
779
+ * Endpoint to block a StackSpot Account to perform Runtime operations
780
+ */
781
+ export declare function blockAccount({ accountId }: {
782
+ accountId: string;
783
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
784
+ /**
785
+ * Endpoint to get tag data
786
+ */
787
+ export declare function getTagsByInfraIdAndEnvId({ infraId, envId }: {
788
+ infraId: string;
789
+ envId: string;
790
+ }, opts?: Oazapfts.RequestOpts): Promise<TagResponse[]>;
791
+ /**
792
+ * Endpoint to get tag data
793
+ */
794
+ export declare function getTagsByAppIdAndEnvId({ appId, envId }: {
795
+ appId: string;
796
+ envId: string;
797
+ }, opts?: Oazapfts.RequestOpts): Promise<TagResponse[]>;
798
+ /**
799
+ * Endpoint to get environment
800
+ */
801
+ export declare function getAllEnvironmentConfiguration(opts?: Oazapfts.RequestOpts): Promise<EnvironmentResponse[]>;
802
+ /**
803
+ * Endpoint to get run data by runId
804
+ */
805
+ export declare function getRunById({ runId }: {
806
+ runId: string;
807
+ }, opts?: Oazapfts.RequestOpts): Promise<RunResponse>;
808
+ /**
809
+ * Endpoint to get runs data by infraId and envId, sorted by createdAt descending
810
+ */
811
+ export declare function getRunsByInfraIdAndEnvId({ size, page, infraId, envId, status }: {
812
+ size?: number;
813
+ page?: number;
814
+ infraId: string;
815
+ envId: string;
816
+ status?: "RUNNING" | "SUCCEEDED" | "USER_ERROR" | "RUNTIME_ERROR" | "EXTERNAL_ERROR" | "ABORTING" | "ABORTED";
817
+ }, opts?: Oazapfts.RequestOpts): Promise<RunLightResponse[]>;
818
+ /**
819
+ * Endpoint to get runs data by appId and envId, sorted by createdAt descending
820
+ */
821
+ export declare function getRunsByAppIdAndEnvId({ size, page, appId, envId, status }: {
822
+ size?: number;
823
+ page?: number;
824
+ appId: string;
825
+ envId: string;
826
+ status?: "RUNNING" | "SUCCEEDED" | "USER_ERROR" | "RUNTIME_ERROR" | "EXTERNAL_ERROR" | "ABORTING" | "ABORTED";
827
+ }, opts?: Oazapfts.RequestOpts): Promise<RunLightResponse[]>;
828
+ /**
829
+ * Endpoint to get deployment data by deploymentId
830
+ */
831
+ export declare function getDeploymentById({ deploymentId }: {
832
+ deploymentId: string;
833
+ }, opts?: Oazapfts.RequestOpts): Promise<DeploymentResponse>;
834
+ /**
835
+ * Endpoint to get deployment data by infraId and envId, sorted by creation date descending
836
+ */
837
+ export declare function getDeploymentByInfraIdAndEnvId({ size, page, infraId, envId }: {
838
+ size?: number;
839
+ page?: number;
840
+ infraId: string;
841
+ envId: string;
842
+ }, opts?: Oazapfts.RequestOpts): Promise<DeploymentResponse[]>;
843
+ /**
844
+ * Endpoint to get deployment head data by appId and envId
845
+ */
846
+ export declare function getDeploymentHeadByInfraIdAndEnvId({ infraId, envId }: {
847
+ infraId: string;
848
+ envId: string;
849
+ }, opts?: Oazapfts.RequestOpts): Promise<DeploymentResponse>;
850
+ /**
851
+ * Endpoint to get last deployment status
852
+ */
853
+ export declare function getDeploymentStatus({ appId, envId }: {
854
+ appId?: string;
855
+ envId: string;
856
+ }, opts?: Oazapfts.RequestOpts): Promise<DeploymentStatusModel>;
857
+ /**
858
+ * Endpoint to get last deployment status
859
+ */
860
+ export declare function getDeploymentStatus1({ infraId, envId }: {
861
+ infraId?: string;
862
+ envId: string;
863
+ }, opts?: Oazapfts.RequestOpts): Promise<DeploymentStatusModel>;
864
+ export declare function getDiffByInfra({ infraId, envId }: {
865
+ infraId?: string;
866
+ envId: string;
867
+ }, opts?: Oazapfts.RequestOpts): Promise<DiffPluginResponse>;
868
+ export declare function getDiffByApp({ appId, envId }: {
869
+ appId: string;
870
+ envId: string;
871
+ }, opts?: Oazapfts.RequestOpts): Promise<DiffPluginResponse>;
872
+ /**
873
+ * Endpoint to get deployment data by appId and envId, sorted by creation date descending
874
+ */
875
+ export declare function getDeploymentByAppIdAndEnvId({ size, page, appId, envId }: {
876
+ size?: number;
877
+ page?: number;
878
+ appId: string;
879
+ envId: string;
880
+ }, opts?: Oazapfts.RequestOpts): Promise<DeploymentResponse[]>;
881
+ /**
882
+ * Endpoint to get deployment head data by appId and envId
883
+ */
884
+ export declare function getDeploymentHeadByAppIdAndEnvId({ appId, envId }: {
885
+ appId: string;
886
+ envId: string;
887
+ }, opts?: Oazapfts.RequestOpts): Promise<DeploymentResponse>;
888
+ /**
889
+ * Get task with workspaceName, appId or InfraId that have status RUNNING
890
+ */
891
+ export declare function getAdminRunStatusRunningDetails({ workspaceName, pageable }: {
892
+ workspaceName: string;
893
+ pageable: Pageable;
894
+ }, opts?: Oazapfts.RequestOpts): Promise<PageAdminRunResponse>;
895
+ /**
896
+ * Get task with workspaceName, appId or InfraId that have status RUNNING
897
+ */
898
+ export declare function getAdminRunStatusRunningDetails1({ infraId, pageable }: {
899
+ infraId?: string;
900
+ pageable: Pageable;
901
+ }, opts?: Oazapfts.RequestOpts): Promise<PageAdminRunResponse>;
902
+ /**
903
+ * Get task with workspaceName, appId or InfraId that have status RUNNING
904
+ */
905
+ export declare function getAdminRunStatusRunningDetails2({ appId, pageable }: {
906
+ appId?: string;
907
+ pageable: Pageable;
908
+ }, opts?: Oazapfts.RequestOpts): Promise<PageAdminRunResponse>;
909
+ /**
910
+ * Get task details from run task id
911
+ */
912
+ export declare function getAdminRunTaskDetails({ runTaskId }: {
913
+ runTaskId: string;
914
+ }, opts?: Oazapfts.RequestOpts): Promise<AdminRunTaskDetailResponse>;
915
+ /**
916
+ * Get a run from run or run task id
917
+ */
918
+ export declare function getAdminRun({ runId, runTaskId }: {
919
+ runId?: string;
920
+ runTaskId?: string;
921
+ }, opts?: Oazapfts.RequestOpts): Promise<AdminRunResponse>;
922
+ //# sourceMappingURL=apiRuntime.d.ts.map