@stack-spot/portal-network 0.79.0 → 0.80.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.
- package/CHANGELOG.md +14 -0
- package/dist/api/apiRuntime.d.ts +338 -138
- package/dist/api/apiRuntime.d.ts.map +1 -1
- package/dist/api/apiRuntime.js +126 -130
- package/dist/api/apiRuntime.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +3 -3
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +4 -4
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +66 -4
- package/dist/client/runtime-manager.d.ts.map +1 -1
- package/dist/client/runtime-manager.js +84 -3
- package/dist/client/runtime-manager.js.map +1 -1
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +3 -3
- package/dist/client/workspace-ai.js.map +1 -1
- package/package.json +1 -1
- package/src/api/apiRuntime.ts +540 -466
- package/src/api/workspace-ai.ts +5 -5
- package/src/client/runtime-manager.ts +51 -4
- package/src/client/workspace-ai.ts +4 -4
package/dist/api/apiRuntime.d.ts
CHANGED
|
@@ -9,23 +9,48 @@ export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
|
|
|
9
9
|
export declare const servers: {
|
|
10
10
|
generatedServerUrl: string;
|
|
11
11
|
};
|
|
12
|
+
export type SetRunAsErrorRequest = {
|
|
13
|
+
errorMessage: string;
|
|
14
|
+
};
|
|
15
|
+
export type FinishIntegratedWorkerSchema = {
|
|
16
|
+
runId: string;
|
|
17
|
+
status?: {
|
|
18
|
+
[key: string]: "SUCCESS" | "FAILED" | "INTERNAL_ERROR";
|
|
19
|
+
};
|
|
20
|
+
migrated?: boolean;
|
|
21
|
+
errorMessage?: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
metadata: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
};
|
|
27
|
+
outputs?: {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: object;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
partialResources?: {
|
|
33
|
+
[key: string]: string[];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
12
36
|
export type TaskDataS3BackendResponse = {
|
|
13
37
|
bucket: string;
|
|
14
38
|
region: string;
|
|
15
39
|
key: string;
|
|
16
40
|
};
|
|
17
41
|
export type TaskIacDataResponsePlugin = {
|
|
18
|
-
pluginAppliedAlias
|
|
19
|
-
name
|
|
42
|
+
pluginAppliedAlias?: string;
|
|
43
|
+
name?: string;
|
|
20
44
|
inputs: {
|
|
21
45
|
[key: string]: object;
|
|
22
46
|
};
|
|
47
|
+
fork: boolean;
|
|
23
48
|
};
|
|
24
49
|
export type TaskIacDataResponseConnector = {
|
|
25
50
|
connector: string;
|
|
26
51
|
alias: string;
|
|
27
52
|
"type": string;
|
|
28
|
-
pluginName
|
|
53
|
+
pluginName?: string;
|
|
29
54
|
attributes: {
|
|
30
55
|
[key: string]: object;
|
|
31
56
|
};
|
|
@@ -44,6 +69,7 @@ export type TaskIacDataResponse = {
|
|
|
44
69
|
[key: string]: object;
|
|
45
70
|
};
|
|
46
71
|
runEnvironment: string[];
|
|
72
|
+
appId: string;
|
|
47
73
|
};
|
|
48
74
|
export type ValidationDetails = {
|
|
49
75
|
code: string;
|
|
@@ -52,7 +78,7 @@ export type ValidationDetails = {
|
|
|
52
78
|
values?: string[];
|
|
53
79
|
};
|
|
54
80
|
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" | "
|
|
81
|
+
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_WAS_PROCESSED_ALREADY" | "RTM_TASK_NOT_RUNNING" | "RTM_DEPLOYMENT_WITHOUT_INFRA_OR_APP_ID" | "RTM_CREATING_CONN_INTERFACE_ERROR" | "RTM_CREATING_CONN_INTERFACE_NO_OUTPUTS_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_INTEGRATION_ERROR" | "RTM_WORKSPACE_API_UNHANDLED_ERROR" | "RTM_WORKSPACE_API_UNPROCESSABLE_ENTITY" | "RTM_WORKSPACE_API_GATEWAY_TIMEOUT" | "RTM_WORKSPACE_API_INTERNAL_ERROR" | "RTM_WORKSPACE_API_BAD_GATEWAY" | "RTM_CONTENT_API_FORBIDDEN" | "RTM_CONTENT_API_INTEGRATION_ERROR" | "RTM_CONTENT_API_NOT_FOUND_VALIDATION_SCHEMA" | "RTM_CONTENT_API_UNHANDLED_ERROR" | "RTM_CONTENT_API_INTERNAL_ERROR" | "RTM_ACCOUNT_CONNECTIONS_API_FORBIDDEN" | "RTM_ACCOUNT_CONNECTIONS_API_UNHANDLED_ERROR" | "RTM_ACCOUNT_CONNECTIONS_FAILED_TO_RETRIEVE_EXTERNAL_ID" | "RTM_ACCOUNT_CONNECTIONS_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" | "RTM_PLUGIN_INPUT_HAS_NO_CONN_INTERFACE_TYPE_DECLARED" | "RTM_PLUGIN_INPUT_HAS_NO_NAME_OR_ALIAS_DECLARED" | "RTM_PLUGIN_INPUT_HAS_NO_OUTPUTS_DECLARED" | "RTM_NO_TASK_READY_TO_RUN" | "RTM_CANT_PERFORM_SELF_HOSTED_APP_OR_INFRA_IN_SAAS" | "RUN_IS_ALREADY_RUNNING_CANT_ADD_INPUTS" | "RTM_RUN_IS_NOT_V2_WRONG_WORKFLOW";
|
|
56
82
|
status: number;
|
|
57
83
|
details: string;
|
|
58
84
|
validationDetails?: ValidationDetails[];
|
|
@@ -60,8 +86,6 @@ export type ErrorResponse = {
|
|
|
60
86
|
export type RunSelfHostedTaskIacCompletedRequest = {
|
|
61
87
|
/** The schema version */
|
|
62
88
|
schemaVersion: string;
|
|
63
|
-
/** The Run ULID */
|
|
64
|
-
runId: string;
|
|
65
89
|
/** The Task ULID */
|
|
66
90
|
runTaskId: string;
|
|
67
91
|
/** Whether this task completed successfully or not */
|
|
@@ -87,8 +111,6 @@ export type TaskDestroyDataResponse = {
|
|
|
87
111
|
export type RunSelfHostedTaskDestroyCompletedRequest = {
|
|
88
112
|
/** The schema version */
|
|
89
113
|
schemaVersion: string;
|
|
90
|
-
/** The Run ULID */
|
|
91
|
-
runId: string;
|
|
92
114
|
/** The Task ULID */
|
|
93
115
|
runTaskId: string;
|
|
94
116
|
/** Whether this task completed successfully or not */
|
|
@@ -112,6 +134,8 @@ export type TaskDeployDataResponse = {
|
|
|
112
134
|
runTaskId: string;
|
|
113
135
|
iacBackend: TaskDataS3BackendResponse;
|
|
114
136
|
tfBackend: TaskDataS3BackendResponse;
|
|
137
|
+
fork: boolean;
|
|
138
|
+
allowedResources?: string[];
|
|
115
139
|
metadata?: {
|
|
116
140
|
[key: string]: object;
|
|
117
141
|
};
|
|
@@ -120,8 +144,6 @@ export type TaskDeployDataResponse = {
|
|
|
120
144
|
export type RunSelfHostedTaskDeployCompletedRequest = {
|
|
121
145
|
/** The schema version */
|
|
122
146
|
schemaVersion: string;
|
|
123
|
-
/** The Run ULID */
|
|
124
|
-
runId: string;
|
|
125
147
|
/** The Task ULID */
|
|
126
148
|
runTaskId: string;
|
|
127
149
|
/** Whether this task completed successfully or not */
|
|
@@ -138,6 +160,30 @@ export type RunSelfHostedTaskDeployCompletedRequest = {
|
|
|
138
160
|
};
|
|
139
161
|
partialResources?: string[];
|
|
140
162
|
};
|
|
163
|
+
export type CreateFeatureFlagRequest = {
|
|
164
|
+
appId?: string;
|
|
165
|
+
infraId?: string;
|
|
166
|
+
workspaceId?: string;
|
|
167
|
+
realm: string;
|
|
168
|
+
description: string;
|
|
169
|
+
};
|
|
170
|
+
export type RunDestroyRequest = {
|
|
171
|
+
/** Application Id */
|
|
172
|
+
appId?: string;
|
|
173
|
+
/** Shared Infra Id */
|
|
174
|
+
infraId?: string;
|
|
175
|
+
/** Workspace Id */
|
|
176
|
+
workspaceId: string;
|
|
177
|
+
/** Environment Id */
|
|
178
|
+
envId: string;
|
|
179
|
+
};
|
|
180
|
+
export type RunCreatedResponse = {
|
|
181
|
+
runId: string;
|
|
182
|
+
};
|
|
183
|
+
export type WorkerResponse = {
|
|
184
|
+
allowed: boolean;
|
|
185
|
+
reason?: string;
|
|
186
|
+
};
|
|
141
187
|
export type ConfigTerraform = {
|
|
142
188
|
/** name of the bucket to save state files */
|
|
143
189
|
bucket: string;
|
|
@@ -145,7 +191,9 @@ export type ConfigTerraform = {
|
|
|
145
191
|
region: string;
|
|
146
192
|
};
|
|
147
193
|
export type Config = {
|
|
194
|
+
/** The terraform backend configuration */
|
|
148
195
|
tfstate: ConfigTerraform;
|
|
196
|
+
/** The terraform backend configuration */
|
|
149
197
|
iac: ConfigTerraform;
|
|
150
198
|
};
|
|
151
199
|
export type RunSelfHostedRollbackRequest = {
|
|
@@ -157,15 +205,18 @@ export type RunSelfHostedRollbackRequest = {
|
|
|
157
205
|
envId: string;
|
|
158
206
|
/** Current version tag to rollback */
|
|
159
207
|
tag: string;
|
|
208
|
+
/** Backend configuration */
|
|
160
209
|
config: Config;
|
|
161
210
|
/** Url of pipeline currently running */
|
|
162
211
|
pipelineUrl: string;
|
|
212
|
+
/** Stackspot Workflow Execution Identifier */
|
|
213
|
+
workflowExecutionId?: string;
|
|
163
214
|
};
|
|
164
215
|
export type RunSelfHostedTaskResponse = {
|
|
165
216
|
order: number;
|
|
166
217
|
runTaskId: string;
|
|
167
218
|
taskType: string;
|
|
168
|
-
pluginAppliedAlias
|
|
219
|
+
pluginAppliedAlias?: string;
|
|
169
220
|
};
|
|
170
221
|
export type RunSelfHostedResponse = {
|
|
171
222
|
runId: string;
|
|
@@ -181,9 +232,12 @@ export type RunSelfHostedDestroyRequest = {
|
|
|
181
232
|
workspaceId: string;
|
|
182
233
|
/** Environment Id */
|
|
183
234
|
envId: string;
|
|
235
|
+
/** Backend configuration */
|
|
184
236
|
config: Config;
|
|
185
237
|
/** Url of pipeline currently running */
|
|
186
238
|
pipelineUrl: string;
|
|
239
|
+
/** Stackspot Workflow Execution Identifier */
|
|
240
|
+
workflowExecutionId?: string;
|
|
187
241
|
};
|
|
188
242
|
export type ManifestoMetadata = {
|
|
189
243
|
/** Name */
|
|
@@ -231,6 +285,7 @@ export type AppliedPlugin = {
|
|
|
231
285
|
};
|
|
232
286
|
connections: ManifestoConnection;
|
|
233
287
|
links?: ManifestoLink;
|
|
288
|
+
fork?: boolean;
|
|
234
289
|
};
|
|
235
290
|
export type ManifestoSpec = {
|
|
236
291
|
/** Application Or Infra Id ( */
|
|
@@ -244,7 +299,9 @@ export type Manifesto = {
|
|
|
244
299
|
schemaVersion: string;
|
|
245
300
|
/** Manifesto Kind */
|
|
246
301
|
kind: string;
|
|
302
|
+
/** Manifesto Kind */
|
|
247
303
|
metadata: ManifestoMetadata;
|
|
304
|
+
/** Manifesto Spec */
|
|
248
305
|
spec: ManifestoSpec;
|
|
249
306
|
};
|
|
250
307
|
export type RunSelfHostedDeployRequest = {
|
|
@@ -258,31 +315,18 @@ export type RunSelfHostedDeployRequest = {
|
|
|
258
315
|
runConfig?: {
|
|
259
316
|
[key: string]: object;
|
|
260
317
|
};
|
|
318
|
+
/** Manifesto Data */
|
|
261
319
|
manifesto: Manifesto;
|
|
262
320
|
/** Whether this application exposes an API or not */
|
|
263
321
|
isApi?: boolean;
|
|
264
322
|
/** Path (in the repository) of the API contract file in open api format */
|
|
265
323
|
apiContractPath?: string;
|
|
324
|
+
/** Backend configuration */
|
|
266
325
|
config: Config;
|
|
267
326
|
/** Url of pipeline currently running */
|
|
268
327
|
pipelineUrl: string;
|
|
269
|
-
|
|
270
|
-
|
|
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;
|
|
328
|
+
/** Stackspot Workflow Execution Identifier */
|
|
329
|
+
workflowExecutionId?: string;
|
|
286
330
|
};
|
|
287
331
|
export type RunRollbackRequest = {
|
|
288
332
|
/** Application Id */
|
|
@@ -305,13 +349,36 @@ export type RunDeployRequest = {
|
|
|
305
349
|
runConfig?: {
|
|
306
350
|
[key: string]: object;
|
|
307
351
|
};
|
|
352
|
+
/** Manifesto Data */
|
|
308
353
|
manifesto: Manifesto;
|
|
309
354
|
/** Whether this application exposes an API or not */
|
|
310
355
|
isApi?: boolean;
|
|
311
356
|
/** Path (in the repository) of the API contract file in open api format */
|
|
312
357
|
apiContractPath?: string;
|
|
313
358
|
};
|
|
314
|
-
export type
|
|
359
|
+
export type Pageable = {
|
|
360
|
+
page?: number;
|
|
361
|
+
size?: number;
|
|
362
|
+
sort?: string[];
|
|
363
|
+
};
|
|
364
|
+
export type RunV2FlagResponse = {
|
|
365
|
+
ulid: string;
|
|
366
|
+
appId?: string;
|
|
367
|
+
infraId?: string;
|
|
368
|
+
workspaceId?: string;
|
|
369
|
+
realm: string;
|
|
370
|
+
description: string;
|
|
371
|
+
};
|
|
372
|
+
export type PageMetadata = {
|
|
373
|
+
size?: number;
|
|
374
|
+
"number"?: number;
|
|
375
|
+
totalElements?: number;
|
|
376
|
+
totalPages?: number;
|
|
377
|
+
};
|
|
378
|
+
export type PagedModelRunV2FlagResponse = {
|
|
379
|
+
content?: RunV2FlagResponse[];
|
|
380
|
+
page?: PageMetadata;
|
|
381
|
+
};
|
|
315
382
|
export type FinishWorkerIacSchema = {
|
|
316
383
|
schemaVersion: string;
|
|
317
384
|
runTaskId: string;
|
|
@@ -348,6 +415,68 @@ export type FinishWorkerDeploySchema = {
|
|
|
348
415
|
};
|
|
349
416
|
partialResources?: string[];
|
|
350
417
|
};
|
|
418
|
+
export type StartWorkerIacSchemaConnectorV2 = {
|
|
419
|
+
connector: string;
|
|
420
|
+
alias: string;
|
|
421
|
+
"type": string;
|
|
422
|
+
pluginName: string;
|
|
423
|
+
attributes: {
|
|
424
|
+
[key: string]: object;
|
|
425
|
+
};
|
|
426
|
+
writeToFile: boolean;
|
|
427
|
+
appliedPluginAlias?: string;
|
|
428
|
+
};
|
|
429
|
+
export type PluginsApplied = {
|
|
430
|
+
schemaVersion: string;
|
|
431
|
+
pluginAppliedAlias: string;
|
|
432
|
+
name: string;
|
|
433
|
+
logPath: string;
|
|
434
|
+
inputs?: {
|
|
435
|
+
[key: string]: object;
|
|
436
|
+
};
|
|
437
|
+
runEnvironment: string[];
|
|
438
|
+
oldTfStatePath?: string;
|
|
439
|
+
fork: boolean;
|
|
440
|
+
allowedResources?: string[];
|
|
441
|
+
removed: boolean;
|
|
442
|
+
connectors: StartWorkerIacSchemaConnectorV2[];
|
|
443
|
+
};
|
|
444
|
+
export type BucketBackend = {
|
|
445
|
+
bucket: string;
|
|
446
|
+
region: string;
|
|
447
|
+
key: string;
|
|
448
|
+
};
|
|
449
|
+
export type AccountConnectionsResponseV2 = {
|
|
450
|
+
id: string;
|
|
451
|
+
workspaceId: string;
|
|
452
|
+
environmentId: string;
|
|
453
|
+
provider: string;
|
|
454
|
+
"type": string;
|
|
455
|
+
status: string;
|
|
456
|
+
credentialSecretIdentifier?: string;
|
|
457
|
+
externalId?: string;
|
|
458
|
+
};
|
|
459
|
+
export type RunTaskResponseV2 = {
|
|
460
|
+
appId: string;
|
|
461
|
+
runId: string;
|
|
462
|
+
runTaskId: string;
|
|
463
|
+
"type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "UNIFIED_IAC" | "UNIFIED_DEPLOY" | "UNIFIED_DESTROY" | "PLAN";
|
|
464
|
+
workspaceName: string;
|
|
465
|
+
needsMigration?: boolean;
|
|
466
|
+
realm: string;
|
|
467
|
+
email?: string;
|
|
468
|
+
iacPath: string;
|
|
469
|
+
logPath: string;
|
|
470
|
+
hclPath: string;
|
|
471
|
+
tfstatePath: string;
|
|
472
|
+
metadata: {
|
|
473
|
+
[key: string]: object;
|
|
474
|
+
};
|
|
475
|
+
pluginsApplied: PluginsApplied[];
|
|
476
|
+
iacBackend?: BucketBackend;
|
|
477
|
+
tfBackend?: BucketBackend;
|
|
478
|
+
cloudAccount?: AccountConnectionsResponseV2;
|
|
479
|
+
};
|
|
351
480
|
export type TagResponse = {
|
|
352
481
|
name: string;
|
|
353
482
|
createdAt: string;
|
|
@@ -358,13 +487,13 @@ export type EnvironmentResponse = {
|
|
|
358
487
|
};
|
|
359
488
|
export type RunTaskResponse = {
|
|
360
489
|
id?: string;
|
|
361
|
-
"type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED";
|
|
490
|
+
"type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "UNIFIED_IAC" | "UNIFIED_DEPLOY" | "UNIFIED_DESTROY" | "PLAN";
|
|
362
491
|
status: "PENDING" | "READY_TO_RUN" | "RUNNING" | "SUCCEEDED" | "FAILED" | "INTERNAL_ERROR" | "EXTERNAL_ERROR" | "ABORTED";
|
|
363
492
|
errorDetails?: string;
|
|
364
493
|
logs?: string;
|
|
365
494
|
};
|
|
366
495
|
export type RunPluginResponse = {
|
|
367
|
-
pluginAppliedAlias
|
|
496
|
+
pluginAppliedAlias?: string;
|
|
368
497
|
tasks: RunTaskResponse[];
|
|
369
498
|
};
|
|
370
499
|
export type RunResponse = {
|
|
@@ -378,6 +507,9 @@ export type RunResponse = {
|
|
|
378
507
|
createdAt: string;
|
|
379
508
|
updatedAt?: string;
|
|
380
509
|
appliedPlugins?: RunPluginResponse[];
|
|
510
|
+
workspaceId: string;
|
|
511
|
+
accountId: string;
|
|
512
|
+
version: "V1" | "V2";
|
|
381
513
|
};
|
|
382
514
|
export type RunLightResponse = {
|
|
383
515
|
runId: string;
|
|
@@ -425,27 +557,46 @@ export type DiffPluginResponse = {
|
|
|
425
557
|
[key: string]: object;
|
|
426
558
|
};
|
|
427
559
|
};
|
|
428
|
-
export type
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
560
|
+
export type RunProjection = {
|
|
561
|
+
createdAt: string;
|
|
562
|
+
updatedAt: string;
|
|
563
|
+
requester: string;
|
|
564
|
+
deploymentUlid: string;
|
|
565
|
+
manifesto?: string;
|
|
566
|
+
isSelfHosted: boolean;
|
|
567
|
+
tagId?: number;
|
|
568
|
+
selfHostedConfig?: string;
|
|
569
|
+
runUlid: string;
|
|
570
|
+
status: string;
|
|
571
|
+
head?: string;
|
|
572
|
+
runVersion: string;
|
|
573
|
+
runId: number;
|
|
574
|
+
appId: string;
|
|
575
|
+
envId: string;
|
|
576
|
+
deploymentId: number;
|
|
577
|
+
"type": string;
|
|
578
|
+
tag?: string;
|
|
579
|
+
};
|
|
580
|
+
export type PagedModelRunProjection = {
|
|
581
|
+
content?: RunProjection[];
|
|
582
|
+
page?: PageMetadata;
|
|
432
583
|
};
|
|
433
584
|
export type SortObject = {
|
|
434
|
-
unsorted?: boolean;
|
|
435
585
|
sorted?: boolean;
|
|
586
|
+
unsorted?: boolean;
|
|
436
587
|
empty?: boolean;
|
|
437
588
|
};
|
|
438
589
|
export type PageableObject = {
|
|
439
|
-
paged?: boolean;
|
|
440
|
-
unpaged?: boolean;
|
|
441
590
|
pageNumber?: number;
|
|
591
|
+
paged?: boolean;
|
|
442
592
|
pageSize?: number;
|
|
593
|
+
unpaged?: boolean;
|
|
443
594
|
offset?: number;
|
|
444
595
|
sort?: SortObject;
|
|
445
596
|
};
|
|
446
597
|
export type AdminRunTaskResponse = {
|
|
447
598
|
id?: string;
|
|
448
|
-
"type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED";
|
|
599
|
+
"type": "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "UNIFIED_IAC" | "UNIFIED_DEPLOY" | "UNIFIED_DESTROY" | "PLAN";
|
|
449
600
|
status: "PENDING" | "READY_TO_RUN" | "RUNNING" | "SUCCEEDED" | "FAILED" | "INTERNAL_ERROR" | "EXTERNAL_ERROR" | "ABORTED";
|
|
450
601
|
errorDetails?: string;
|
|
451
602
|
logs?: string;
|
|
@@ -475,14 +626,54 @@ export type PageAdminRunResponse = {
|
|
|
475
626
|
totalElements?: number;
|
|
476
627
|
pageable?: PageableObject;
|
|
477
628
|
numberOfElements?: number;
|
|
629
|
+
first?: boolean;
|
|
630
|
+
last?: boolean;
|
|
478
631
|
size?: number;
|
|
479
632
|
content?: AdminRunResponse[];
|
|
480
633
|
"number"?: number;
|
|
481
634
|
sort?: SortObject;
|
|
482
|
-
first?: boolean;
|
|
483
|
-
last?: boolean;
|
|
484
635
|
empty?: boolean;
|
|
485
636
|
};
|
|
637
|
+
export type RunTaskProjection = {
|
|
638
|
+
appliedPlugin?: string;
|
|
639
|
+
pluginName: string;
|
|
640
|
+
rtulid: string;
|
|
641
|
+
partialResources?: string;
|
|
642
|
+
worker?: string;
|
|
643
|
+
createdAt: string;
|
|
644
|
+
updatedAt: string;
|
|
645
|
+
manifesto?: string;
|
|
646
|
+
isPostProcessingError: boolean;
|
|
647
|
+
status: string;
|
|
648
|
+
error?: string;
|
|
649
|
+
requiredRunTasks?: string;
|
|
650
|
+
iacPath?: string;
|
|
651
|
+
id: number;
|
|
652
|
+
"type": string;
|
|
653
|
+
alias?: string;
|
|
654
|
+
};
|
|
655
|
+
export type RunTaskPluginProjection = {
|
|
656
|
+
appliedPlugin?: string;
|
|
657
|
+
pluginName: string;
|
|
658
|
+
partialResources?: string;
|
|
659
|
+
createdAt: string;
|
|
660
|
+
updatedAt: string;
|
|
661
|
+
manifesto?: string;
|
|
662
|
+
ulid: string;
|
|
663
|
+
status: string;
|
|
664
|
+
error?: string;
|
|
665
|
+
alias?: string;
|
|
666
|
+
};
|
|
667
|
+
export type PluginDeploymentProjection = {
|
|
668
|
+
pluginUlid: string;
|
|
669
|
+
pluginId: number;
|
|
670
|
+
tfstate: string;
|
|
671
|
+
reqconns: string;
|
|
672
|
+
manifesto: string;
|
|
673
|
+
pluginVersionId: string;
|
|
674
|
+
stackVersionId: string;
|
|
675
|
+
alias: string;
|
|
676
|
+
};
|
|
486
677
|
export type SelfHostedConfigModel = {
|
|
487
678
|
terraformBucket: string;
|
|
488
679
|
terraformRegion: string;
|
|
@@ -501,12 +692,12 @@ export type AdminRunTaskDetailResponse = {
|
|
|
501
692
|
appId?: string;
|
|
502
693
|
infraId?: string;
|
|
503
694
|
realm: string;
|
|
504
|
-
pluginAppliedAlias
|
|
695
|
+
pluginAppliedAlias?: string;
|
|
505
696
|
pluginManifesto: {
|
|
506
697
|
[key: string]: object;
|
|
507
698
|
};
|
|
508
|
-
pluginFQDN
|
|
509
|
-
runTaskType: "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED";
|
|
699
|
+
pluginFQDN?: string;
|
|
700
|
+
runTaskType: "IAC" | "DEPLOY" | "DESTROY" | "IAC_SELF_HOSTED" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "UNIFIED_IAC" | "UNIFIED_DEPLOY" | "UNIFIED_DESTROY" | "PLAN";
|
|
510
701
|
runTasksStatus: "PENDING" | "READY_TO_RUN" | "RUNNING" | "SUCCEEDED" | "FAILED" | "INTERNAL_ERROR" | "EXTERNAL_ERROR" | "ABORTED";
|
|
511
702
|
errorDetails?: string;
|
|
512
703
|
iacPath?: string;
|
|
@@ -521,6 +712,33 @@ export type AdminRunTaskDetailResponse = {
|
|
|
521
712
|
iacDownloadUrl?: string;
|
|
522
713
|
logsDownloadUrl?: string;
|
|
523
714
|
};
|
|
715
|
+
export type AppsInRealmProjection = {
|
|
716
|
+
appid: string;
|
|
717
|
+
lastDeploymentDate: string;
|
|
718
|
+
appName?: string;
|
|
719
|
+
workspaceId: string;
|
|
720
|
+
workspaceName: string;
|
|
721
|
+
};
|
|
722
|
+
export type PagedModelAppsInRealmProjection = {
|
|
723
|
+
content?: AppsInRealmProjection[];
|
|
724
|
+
page?: PageMetadata;
|
|
725
|
+
};
|
|
726
|
+
export type AppInfoProjection = {
|
|
727
|
+
isApp: boolean;
|
|
728
|
+
envIds: string[];
|
|
729
|
+
appId: string;
|
|
730
|
+
workspaceId: string;
|
|
731
|
+
workspaceName: string;
|
|
732
|
+
realm: string;
|
|
733
|
+
};
|
|
734
|
+
export declare function setAsError({ runId, setRunAsErrorRequest }: {
|
|
735
|
+
runId: string;
|
|
736
|
+
setRunAsErrorRequest: SetRunAsErrorRequest;
|
|
737
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
738
|
+
export declare function finishV2Task({ runId, finishIntegratedWorkerSchema }: {
|
|
739
|
+
runId: string;
|
|
740
|
+
finishIntegratedWorkerSchema: FinishIntegratedWorkerSchema;
|
|
741
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
524
742
|
/**
|
|
525
743
|
* Endpoint to get the necessary data to perform an IAC Task
|
|
526
744
|
*/
|
|
@@ -560,91 +778,23 @@ export declare function putDeployTaskResponse({ taskId, runSelfHostedTaskDeployC
|
|
|
560
778
|
taskId: string;
|
|
561
779
|
runSelfHostedTaskDeployCompletedRequest: RunSelfHostedTaskDeployCompletedRequest;
|
|
562
780
|
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
563
|
-
|
|
564
|
-
|
|
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;
|
|
781
|
+
export declare function updateFeatureFlag({ ulid, createFeatureFlagRequest }: {
|
|
782
|
+
ulid: string;
|
|
783
|
+
createFeatureFlagRequest: CreateFeatureFlagRequest;
|
|
619
784
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
*/
|
|
623
|
-
export declare function runDestroyApp({ runSelfHostedDestroyRequest }: {
|
|
624
|
-
runSelfHostedDestroyRequest: RunSelfHostedDestroyRequest;
|
|
785
|
+
export declare function deleteFeatureFlag({ ulid }: {
|
|
786
|
+
ulid: string;
|
|
625
787
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
626
788
|
/**
|
|
627
789
|
* Endpoint to run Infra Deploy
|
|
628
790
|
*/
|
|
629
|
-
export declare function
|
|
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 }: {
|
|
791
|
+
export declare function runDestroyInfra({ runDestroyRequest }: {
|
|
642
792
|
runDestroyRequest: RunDestroyRequest;
|
|
643
793
|
}, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
|
|
644
794
|
/**
|
|
645
795
|
* Endpoint to run App Deploy
|
|
646
796
|
*/
|
|
647
|
-
export declare function
|
|
797
|
+
export declare function runDestroyApp({ runDestroyRequest }: {
|
|
648
798
|
runDestroyRequest: RunDestroyRequest;
|
|
649
799
|
}, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
|
|
650
800
|
/**
|
|
@@ -657,73 +807,79 @@ export declare function getRunTaskById({ taskId, workerUrl }: {
|
|
|
657
807
|
/**
|
|
658
808
|
* Endpoint to run Infra Rollback
|
|
659
809
|
*/
|
|
660
|
-
export declare function
|
|
810
|
+
export declare function runRollbackInfra({ runSelfHostedRollbackRequest }: {
|
|
661
811
|
runSelfHostedRollbackRequest: RunSelfHostedRollbackRequest;
|
|
662
812
|
}, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
|
|
663
813
|
/**
|
|
664
814
|
* Endpoint to run App Rollback
|
|
665
815
|
*/
|
|
666
|
-
export declare function
|
|
816
|
+
export declare function runRollbackApp({ runSelfHostedRollbackRequest }: {
|
|
667
817
|
runSelfHostedRollbackRequest: RunSelfHostedRollbackRequest;
|
|
668
818
|
}, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
|
|
669
819
|
/**
|
|
670
820
|
* Endpoint to run Destroy SelfHosted
|
|
671
821
|
*/
|
|
672
|
-
export declare function
|
|
822
|
+
export declare function runDestroyInfra1({ runSelfHostedDestroyRequest }: {
|
|
673
823
|
runSelfHostedDestroyRequest: RunSelfHostedDestroyRequest;
|
|
674
824
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
675
825
|
/**
|
|
676
826
|
* Endpoint to run Destroy SelfHosted
|
|
677
827
|
*/
|
|
678
|
-
export declare function
|
|
828
|
+
export declare function runDestroyApp1({ runSelfHostedDestroyRequest }: {
|
|
679
829
|
runSelfHostedDestroyRequest: RunSelfHostedDestroyRequest;
|
|
680
830
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
681
831
|
/**
|
|
682
832
|
* Endpoint to run Infra Deploy
|
|
683
833
|
*/
|
|
684
|
-
export declare function
|
|
834
|
+
export declare function runDeployInfra({ runSelfHostedDeployRequest }: {
|
|
685
835
|
runSelfHostedDeployRequest: RunSelfHostedDeployRequest;
|
|
686
836
|
}, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
|
|
687
837
|
/**
|
|
688
838
|
* Endpoint to run App Deploy
|
|
689
839
|
*/
|
|
690
|
-
export declare function
|
|
840
|
+
export declare function runDeployApp({ runSelfHostedDeployRequest }: {
|
|
691
841
|
runSelfHostedDeployRequest: RunSelfHostedDeployRequest;
|
|
692
842
|
}, opts?: Oazapfts.RequestOpts): Promise<RunSelfHostedResponse>;
|
|
843
|
+
/**
|
|
844
|
+
* Endpoint to force status RUNTIME_ERROR to a run by runId
|
|
845
|
+
*/
|
|
846
|
+
export declare function setRunAsFailed({ runId }: {
|
|
847
|
+
runId: string;
|
|
848
|
+
}, opts?: Oazapfts.RequestOpts): Promise<boolean>;
|
|
693
849
|
/**
|
|
694
850
|
* Endpoint to run Infra Rollback
|
|
695
851
|
*/
|
|
696
|
-
export declare function
|
|
852
|
+
export declare function runRollbackInfra1({ runRollbackRequest }: {
|
|
697
853
|
runRollbackRequest: RunRollbackRequest;
|
|
698
854
|
}, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
|
|
699
855
|
/**
|
|
700
856
|
* Endpoint to run App Rollback
|
|
701
857
|
*/
|
|
702
|
-
export declare function
|
|
858
|
+
export declare function runRollbackApp1({ runRollbackRequest }: {
|
|
703
859
|
runRollbackRequest: RunRollbackRequest;
|
|
704
860
|
}, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
|
|
705
861
|
/**
|
|
706
862
|
* Endpoint to run Destroy
|
|
707
863
|
*/
|
|
708
|
-
export declare function
|
|
864
|
+
export declare function runDestroyInfra2({ runDestroyRequest }: {
|
|
709
865
|
runDestroyRequest: RunDestroyRequest;
|
|
710
866
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
711
867
|
/**
|
|
712
868
|
* Endpoint to run Destroy
|
|
713
869
|
*/
|
|
714
|
-
export declare function
|
|
870
|
+
export declare function runDestroyApp2({ runDestroyRequest }: {
|
|
715
871
|
runDestroyRequest: RunDestroyRequest;
|
|
716
872
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
717
873
|
/**
|
|
718
874
|
* Endpoint to run Infra Deploy
|
|
719
875
|
*/
|
|
720
|
-
export declare function
|
|
876
|
+
export declare function runDeployInfra1({ runDeployRequest }: {
|
|
721
877
|
runDeployRequest: RunDeployRequest;
|
|
722
878
|
}, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
|
|
723
879
|
/**
|
|
724
880
|
* Endpoint to run App Deploy
|
|
725
881
|
*/
|
|
726
|
-
export declare function
|
|
882
|
+
export declare function runDeployApp1({ runDeployRequest }: {
|
|
727
883
|
runDeployRequest: RunDeployRequest;
|
|
728
884
|
}, opts?: Oazapfts.RequestOpts): Promise<RunCreatedResponse>;
|
|
729
885
|
/**
|
|
@@ -732,7 +888,13 @@ export declare function runDeployApp2({ runDeployRequest }: {
|
|
|
732
888
|
export declare function cancelAppRunByRunId({ runId, force }: {
|
|
733
889
|
runId: string;
|
|
734
890
|
force?: boolean;
|
|
735
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
891
|
+
}, opts?: Oazapfts.RequestOpts): Promise<string>;
|
|
892
|
+
export declare function listAllFeatureFlags({ pageable }: {
|
|
893
|
+
pageable: Pageable;
|
|
894
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PagedModelRunV2FlagResponse>;
|
|
895
|
+
export declare function createFeatureFlag({ createFeatureFlagRequest }: {
|
|
896
|
+
createFeatureFlagRequest: CreateFeatureFlagRequest;
|
|
897
|
+
}, opts?: Oazapfts.RequestOpts): Promise<string>;
|
|
736
898
|
/**
|
|
737
899
|
* Simulate a response from deploy worker
|
|
738
900
|
*/
|
|
@@ -763,12 +925,6 @@ export declare function simulateDeployWorkerResponse({ finishWorkerDeploySchema
|
|
|
763
925
|
export declare function resendTasks({ runId }: {
|
|
764
926
|
runId: string;
|
|
765
927
|
}, 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
928
|
/**
|
|
773
929
|
* Endpoint to block a StackSpot Workspace to perform Runtime operations
|
|
774
930
|
*/
|
|
@@ -781,6 +937,15 @@ export declare function blockWorkspace({ workspaceId }: {
|
|
|
781
937
|
export declare function blockAccount({ accountId }: {
|
|
782
938
|
accountId: string;
|
|
783
939
|
}, opts?: Oazapfts.RequestOpts): Promise<unknown>;
|
|
940
|
+
export declare function addInputs({ runId, body }: {
|
|
941
|
+
runId: string;
|
|
942
|
+
body: {
|
|
943
|
+
[key: string]: object;
|
|
944
|
+
};
|
|
945
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
946
|
+
export declare function getNextTaskData({ runId }: {
|
|
947
|
+
runId: string;
|
|
948
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RunTaskResponseV2>;
|
|
784
949
|
/**
|
|
785
950
|
* Endpoint to get tag data
|
|
786
951
|
*/
|
|
@@ -885,6 +1050,24 @@ export declare function getDeploymentHeadByAppIdAndEnvId({ appId, envId }: {
|
|
|
885
1050
|
appId: string;
|
|
886
1051
|
envId: string;
|
|
887
1052
|
}, opts?: Oazapfts.RequestOpts): Promise<DeploymentResponse>;
|
|
1053
|
+
export declare function getRunsRunning({ page, size }: {
|
|
1054
|
+
page?: number;
|
|
1055
|
+
size?: number;
|
|
1056
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PagedModelRunProjection>;
|
|
1057
|
+
export declare function getRunsOnEnv({ appId, envId, page, size }: {
|
|
1058
|
+
appId: string;
|
|
1059
|
+
envId: string;
|
|
1060
|
+
page?: number;
|
|
1061
|
+
size?: number;
|
|
1062
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PagedModelRunProjection>;
|
|
1063
|
+
export declare function getRunsOnAllEnvs({ appId, page, size }: {
|
|
1064
|
+
appId: string;
|
|
1065
|
+
page?: number;
|
|
1066
|
+
size?: number;
|
|
1067
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PagedModelRunProjection>;
|
|
1068
|
+
export declare function getRunByUlid({ runUlid }: {
|
|
1069
|
+
runUlid: string;
|
|
1070
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RunProjection>;
|
|
888
1071
|
/**
|
|
889
1072
|
* Get task with workspaceName, appId or InfraId that have status RUNNING
|
|
890
1073
|
*/
|
|
@@ -906,6 +1089,15 @@ export declare function getAdminRunStatusRunningDetails2({ appId, pageable }: {
|
|
|
906
1089
|
appId?: string;
|
|
907
1090
|
pageable: Pageable;
|
|
908
1091
|
}, opts?: Oazapfts.RequestOpts): Promise<PageAdminRunResponse>;
|
|
1092
|
+
export declare function getRunTasks({ runUlid }: {
|
|
1093
|
+
runUlid: string;
|
|
1094
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RunTaskProjection[]>;
|
|
1095
|
+
export declare function getRunTaskPlugins({ runUlid }: {
|
|
1096
|
+
runUlid: string;
|
|
1097
|
+
}, opts?: Oazapfts.RequestOpts): Promise<RunTaskPluginProjection[]>;
|
|
1098
|
+
export declare function getPluginDeployments({ runUlid }: {
|
|
1099
|
+
runUlid: string;
|
|
1100
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PluginDeploymentProjection[]>;
|
|
909
1101
|
/**
|
|
910
1102
|
* Get task details from run task id
|
|
911
1103
|
*/
|
|
@@ -919,4 +1111,12 @@ export declare function getAdminRun({ runId, runTaskId }: {
|
|
|
919
1111
|
runId?: string;
|
|
920
1112
|
runTaskId?: string;
|
|
921
1113
|
}, opts?: Oazapfts.RequestOpts): Promise<AdminRunResponse>;
|
|
1114
|
+
export declare function getAppsInRealm({ realm, page, size }: {
|
|
1115
|
+
realm: string;
|
|
1116
|
+
page?: number;
|
|
1117
|
+
size?: number;
|
|
1118
|
+
}, opts?: Oazapfts.RequestOpts): Promise<PagedModelAppsInRealmProjection>;
|
|
1119
|
+
export declare function getAppInfo({ appId }: {
|
|
1120
|
+
appId: string;
|
|
1121
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AppInfoProjection>;
|
|
922
1122
|
//# sourceMappingURL=apiRuntime.d.ts.map
|