@stack-spot/portal-network 0.1.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/.generate-api.failed.json +1 -0
- package/dist/api/account.d.ts +2368 -0
- package/dist/api/account.d.ts.map +1 -0
- package/dist/api/account.js +1521 -0
- package/dist/api/account.js.map +1 -0
- package/dist/api/ai.d.ts +1432 -0
- package/dist/api/ai.d.ts.map +1 -0
- package/dist/api/ai.js +1342 -0
- package/dist/api/ai.js.map +1 -0
- package/dist/api/apiRuntime.d.ts +922 -0
- package/dist/api/apiRuntime.d.ts.map +1 -0
- package/dist/api/apiRuntime.js +599 -0
- package/dist/api/apiRuntime.js.map +1 -0
- package/dist/api/cloudAccount.d.ts +473 -0
- package/dist/api/cloudAccount.d.ts.map +1 -0
- package/dist/api/cloudAccount.js +300 -0
- package/dist/api/cloudAccount.js.map +1 -0
- package/dist/api/cloudServices.d.ts +1233 -0
- package/dist/api/cloudServices.d.ts.map +1 -0
- package/dist/api/cloudServices.js +715 -0
- package/dist/api/cloudServices.js.map +1 -0
- package/dist/api/insights.d.ts +123 -0
- package/dist/api/insights.d.ts.map +1 -0
- package/dist/api/insights.js +112 -0
- package/dist/api/insights.js.map +1 -0
- package/dist/api/plugin.d.ts +368 -0
- package/dist/api/plugin.d.ts.map +1 -0
- package/dist/api/plugin.js +218 -0
- package/dist/api/plugin.js.map +1 -0
- package/dist/api/serviceCatalog.d.ts +737 -0
- package/dist/api/serviceCatalog.d.ts.map +1 -0
- package/dist/api/serviceCatalog.js +611 -0
- package/dist/api/serviceCatalog.js.map +1 -0
- package/dist/api/workflows.d.ts +366 -0
- package/dist/api/workflows.d.ts.map +1 -0
- package/dist/api/workflows.js +175 -0
- package/dist/api/workflows.js.map +1 -0
- package/dist/api/workspace.js +1476 -0
- package/dist/api/workspace.js.map +1 -0
- package/dist/api/workspaceManager.d.ts +1121 -0
- package/dist/api/workspaceManager.d.ts.map +1 -0
- package/dist/api/workspaceManager.js +357 -0
- package/dist/api/workspaceManager.js.map +1 -0
- package/dist/api/workspaceSearchEngine.d.ts +93 -0
- package/dist/api/workspaceSearchEngine.d.ts.map +1 -0
- package/dist/api/workspaceSearchEngine.js +55 -0
- package/dist/api/workspaceSearchEngine.js.map +1 -0
- package/dist/apis.json +129 -0
- package/dist/client/account.d.ts +46 -0
- package/dist/client/account.d.ts.map +1 -0
- package/dist/client/account.js +104 -0
- package/dist/client/account.js.map +1 -0
- package/dist/error/CanceledError.d.ts +5 -0
- package/dist/error/CanceledError.d.ts.map +1 -0
- package/dist/error/CanceledError.js +7 -0
- package/dist/error/CanceledError.js.map +1 -0
- package/dist/error/DefaultAPIError.d.ts +9 -0
- package/dist/error/DefaultAPIError.d.ts.map +1 -0
- package/dist/error/DefaultAPIError.js +58 -0
- package/dist/error/DefaultAPIError.js.map +1 -0
- package/dist/error/StackspotAPIError.d.ts +19 -0
- package/dist/error/StackspotAPIError.d.ts.map +1 -0
- package/dist/error/StackspotAPIError.js +39 -0
- package/dist/error/StackspotAPIError.js.map +1 -0
- package/dist/error/dictionary/account.d.ts +55 -0
- package/dist/error/dictionary/account.d.ts.map +1 -0
- package/dist/error/dictionary/account.js +55 -0
- package/dist/error/dictionary/account.js.map +1 -0
- package/dist/error/dictionary/action.d.ts +163 -0
- package/dist/error/dictionary/action.d.ts.map +1 -0
- package/dist/error/dictionary/action.js +163 -0
- package/dist/error/dictionary/action.js.map +1 -0
- package/dist/error/dictionary/base.d.ts +21 -0
- package/dist/error/dictionary/base.d.ts.map +1 -0
- package/dist/error/dictionary/base.js +21 -0
- package/dist/error/dictionary/base.js.map +1 -0
- package/dist/error/dictionary/cnt-fields.d.ts +13 -0
- package/dist/error/dictionary/cnt-fields.d.ts.map +1 -0
- package/dist/error/dictionary/cnt-fields.js +13 -0
- package/dist/error/dictionary/cnt-fields.js.map +1 -0
- package/dist/error/dictionary/cnt.d.ts +79 -0
- package/dist/error/dictionary/cnt.d.ts.map +1 -0
- package/dist/error/dictionary/cnt.js +79 -0
- package/dist/error/dictionary/cnt.js.map +1 -0
- package/dist/error/dictionary/rte.d.ts +23 -0
- package/dist/error/dictionary/rte.d.ts.map +1 -0
- package/dist/error/dictionary/rte.js +23 -0
- package/dist/error/dictionary/rte.js.map +1 -0
- package/dist/error/dictionary/rtm.d.ts +9 -0
- package/dist/error/dictionary/rtm.d.ts.map +1 -0
- package/dist/error/dictionary/rtm.js +9 -0
- package/dist/error/dictionary/rtm.js.map +1 -0
- package/dist/error/dictionary/workspace-fields.d.ts +9 -0
- package/dist/error/dictionary/workspace-fields.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-fields.js +9 -0
- package/dist/error/dictionary/workspace-fields.js.map +1 -0
- package/dist/error/dictionary/workspace.d.ts +99 -0
- package/dist/error/dictionary/workspace.d.ts.map +1 -0
- package/dist/error/dictionary/workspace.js +99 -0
- package/dist/error/dictionary/workspace.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/network/AutoMutation.d.ts +10 -0
- package/dist/network/AutoMutation.d.ts.map +1 -0
- package/dist/network/AutoMutation.js +20 -0
- package/dist/network/AutoMutation.js.map +1 -0
- package/dist/network/AutoOperation.d.ts +19 -0
- package/dist/network/AutoOperation.d.ts.map +1 -0
- package/dist/network/AutoOperation.js +99 -0
- package/dist/network/AutoOperation.js.map +1 -0
- package/dist/network/AutoQuery.d.ts +19 -0
- package/dist/network/AutoQuery.d.ts.map +1 -0
- package/dist/network/AutoQuery.js +70 -0
- package/dist/network/AutoQuery.js.map +1 -0
- package/dist/network/ManualMutation.d.ts +11 -0
- package/dist/network/ManualMutation.d.ts.map +1 -0
- package/dist/network/ManualMutation.js +32 -0
- package/dist/network/ManualMutation.js.map +1 -0
- package/dist/network/ManualOperation.d.ts +13 -0
- package/dist/network/ManualOperation.d.ts.map +1 -0
- package/dist/network/ManualOperation.js +53 -0
- package/dist/network/ManualOperation.js.map +1 -0
- package/dist/network/ManualQuery.d.ts +20 -0
- package/dist/network/ManualQuery.d.ts.map +1 -0
- package/dist/network/ManualQuery.js +77 -0
- package/dist/network/ManualQuery.js.map +1 -0
- package/dist/network/NetworkClient.d.ts +20 -0
- package/dist/network/NetworkClient.d.ts.map +1 -0
- package/dist/network/NetworkClient.js +85 -0
- package/dist/network/NetworkClient.js.map +1 -0
- package/dist/network/ReactQueryNetworkClient.d.ts +16 -0
- package/dist/network/ReactQueryNetworkClient.d.ts.map +1 -0
- package/dist/network/ReactQueryNetworkClient.js +125 -0
- package/dist/network/ReactQueryNetworkClient.js.map +1 -0
- package/dist/network/react-query-client.d.ts +3 -0
- package/dist/network/react-query-client.d.ts.map +1 -0
- package/dist/network/react-query-client.js +3 -0
- package/dist/network/react-query-client.js.map +1 -0
- package/dist/network/types.d.ts +55 -0
- package/dist/network/types.d.ts.map +1 -0
- package/dist/network/types.js +2 -0
- package/dist/network/types.js.map +1 -0
- package/package.json +56 -0
- package/readme.md +1 -0
- package/scripts/generate-apis.ts +134 -0
- package/src/api/account.ts +4793 -0
- package/src/api/ai.ts +3121 -0
- package/src/api/apiRuntime.ts +2029 -0
- package/src/api/cloudAccount.ts +1133 -0
- package/src/api/cloudServices.ts +2872 -0
- package/src/api/insights.ts +264 -0
- package/src/api/plugin.ts +685 -0
- package/src/api/serviceCatalog.ts +2908 -0
- package/src/api/workflows.ts +709 -0
- package/src/api/workspace.ts +5178 -0
- package/src/api/workspaceManager.ts +1516 -0
- package/src/api/workspaceSearchEngine.ts +153 -0
- package/src/apis.json +129 -0
- package/src/client/account.ts +52 -0
- package/src/error/CanceledError.ts +7 -0
- package/src/error/DefaultAPIError.ts +51 -0
- package/src/error/StackspotAPIError.ts +31 -0
- package/src/error/dictionary/account.ts +56 -0
- package/src/error/dictionary/action.ts +206 -0
- package/src/error/dictionary/base.ts +22 -0
- package/src/error/dictionary/cnt-fields.ts +14 -0
- package/src/error/dictionary/cnt.ts +80 -0
- package/src/error/dictionary/rte.ts +24 -0
- package/src/error/dictionary/rtm.ts +10 -0
- package/src/error/dictionary/workspace-fields.ts +10 -0
- package/src/error/dictionary/workspace.ts +100 -0
- package/src/index.ts +5 -0
- package/src/network/AutoMutation.ts +25 -0
- package/src/network/AutoOperation.ts +88 -0
- package/src/network/AutoQuery.ts +80 -0
- package/src/network/ManualMutation.ts +41 -0
- package/src/network/ManualOperation.ts +55 -0
- package/src/network/ManualQuery.ts +93 -0
- package/src/network/NetworkClient.ts +93 -0
- package/src/network/ReactQueryNetworkClient.ts +154 -0
- package/src/network/react-query-client.ts +3 -0
- package/src/network/types.ts +82 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,709 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow API
|
|
3
|
+
* 0.1.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
|
+
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
+
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "/",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {};
|
|
15
|
+
export type ConnectionRequest = {
|
|
16
|
+
selected: string;
|
|
17
|
+
alias: string;
|
|
18
|
+
};
|
|
19
|
+
export type ActionConnectionRequest = {
|
|
20
|
+
requires?: ConnectionRequest[];
|
|
21
|
+
};
|
|
22
|
+
export type OriginRequest = {
|
|
23
|
+
id: string;
|
|
24
|
+
"type": "SHARED_INFRA" | "APPLICATION";
|
|
25
|
+
};
|
|
26
|
+
export type RunActionRequest = {
|
|
27
|
+
name: string;
|
|
28
|
+
inputs?: object;
|
|
29
|
+
inputsSensitive?: string[];
|
|
30
|
+
connections?: ActionConnectionRequest;
|
|
31
|
+
workspaceId: string;
|
|
32
|
+
env?: string | null;
|
|
33
|
+
origin: OriginRequest;
|
|
34
|
+
frontData?: object | null;
|
|
35
|
+
};
|
|
36
|
+
export type WorkflowResponse = {
|
|
37
|
+
id: string;
|
|
38
|
+
logs: string;
|
|
39
|
+
};
|
|
40
|
+
export type ExceptionType = "ACTIONAPI_0000_UNEXPECTED_ERROR" | "ACTIONAPI_0003_INVALID_WORKFLOW_URL" | "ACTIONAPI_0004_WORKFLOW_NOT_IMPLEMENTED" | "ACTIONAPI_0005_WORKFLOW_SCRIPT_DOWNLOAD_UNAUTHORIZED" | "ACTIONAPI_2000_VALIDATION_ERROR" | "ACTIONAPI_5999_HTTP_UNEXPECTED_ERROR" | "ACTIONAPI_2200_NOT_FOUND" | "ACTIONAPI_2201_CONFLICT" | "ACTIONAPI_2202_OPERATION_NOT_ALLOWED" | "ACTIONAPI_2300_WRONG_TYPE_OF_EXECUTION" | "ACTIONAPI_3000_AWS_SECRET_MANAGER_GET_SECRET_FAILURE" | "ACTIONAPI_3001_AWS_SECRET_MANAGER_PARSE_SECRET_ERROR" | "ACTIONAPI_5000_GITHUB_DISPATCH_WORKFLOW_FAILURE" | "ACTIONAPI_5001_GITHUB_DISPATCH_WORKFLOW_NOT_FOUND" | "ACTIONAPI_5002_GITHUB_DISPATCH_WORKFLOW_UNAUTHORIZED" | "ACTIONAPI_5003_GITHUB_DISPATCH_WORKFLOW_FORBIDDEN" | "ACTIONAPI_5004_GITHUB_SAML_ERROR" | "ACTIONAPI_5009_GITHUB_AUTHORIZATION_ENCODING_ERROR" | "ACTIONAPI_5010_GITHUB_ACTIONS_RUNS_FAILURE" | "ACTIONAPI_5011_GITHUB_ACTIONS_RUNS_NOT_FOUND" | "ACTIONAPI_5012_GITHUB_ACTIONS_RUNS_UNAUTHORIZED" | "ACTIONAPI_5019_GITHUB_ACTIONS_RUNS_PAYLOAD_PARSER_ERROR" | "ACTIONAPI_5020_GITHUB_APP_INSTALLATION_ACCESS_TOKEN_FAILURE" | "ACTIONAPI_5021_GITHUB_APP_INSTALLATION_ACCESS_TOKEN_NOT_FOUND" | "ACTIONAPI_5022_GITHUB_APP_INSTALLATION_ACCESS_TOKEN_UNAUTHORIZED" | "ACTIONAPI_5029_GITHUB_APP_INSTALLATION_ACCESS_TOKEN_PAYLOAD_PARSER_ERROR" | "ACTIONAPI_5030_GITHUB_CREATE_ISSUE_FAILURE" | "ACTIONAPI_5031_GITHUB_CREATE_ISSUE_NOT_FOUND" | "ACTIONAPI_5032_GITHUB_CREATE_ISSUE_UNAUTHORIZED" | "ACTIONAPI_5033_GITHUB_CREATE_ISSUE_FORBIDDEN" | "ACTIONAPI_5039_GITHUB_CREATE_ISSUE_PAYLOAD_PARSER_ERROR" | "ACTIONAPI_5040_GITHUB_LIST_EXECUTION_JOBS_FAILURE" | "ACTIONAPI_5049_GITHUB_LIST_EXECUTION_JOBS_PAYLOAD_PARSER_ERROR" | "ACTIONAPI_5100_ACCOUNT_SERVICE_GET_ACCOUNT_PROVIDER_FAILURE" | "ACTIONAPI_5101_ACCOUNT_SERVICE_GET_ACCOUNT_PROVIDER_FORBIDDEN" | "ACTIONAPI_5102_ACCOUNT_SERVICE_GET_ACCOUNT_PROVIDER_NOT_FOUND" | "ACTIONAPI_5103_ACCOUNT_SERVICE_GET_ACCOUNT_PROVIDER_NOT_IMPLEMENTED" | "ACTIONAPI_5109_ACCOUNT_SERVICE_GET_ACCOUNT_PROVIDER_PARSE_RESPONSE_ERROR" | "ACTIONAPI_E5110_ACCOUNT_SERVICE_GET_ACCOUNT_TOKEN_FAILURE" | "ACTIONAPI_E5111_ACCOUNT_SERVICE_GET_ACCOUNT_TOKEN_FORBIDDEN" | "ACTIONAPI_E5112_ACCOUNT_SERVICE_GET_ACCOUNT_TOKEN_NOT_FOUND" | "ACTIONAPI_E5119_ACCOUNT_SERVICE_GET_ACCOUNT_TOKEN_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E5120_ACCOUNT_SERVICE_GET_USER_SCM_FAILURE" | "ACTIONAPI_E5121_ACCOUNT_SERVICE_GET_USER_SCM_FORBIDDEN" | "ACTIONAPI_E5122_ACCOUNT_SERVICE_GET_USER_SCM_NOT_FOUND" | "ACTIONAPI_E5129_ACCOUNT_SERVICE_GET_USER_SCM_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E5120_ACCOUNT_SERVICE_LIST_ACCOUNTS_FAILURE" | "ACTIONAPI_E5121_ACCOUNT_SERVICE_LIST_ACCOUNTS_FORBIDDEN" | "ACTIONAPI_E5122_ACCOUNT_SERVICE_LIST_ACCOUNTS_NOT_FOUND" | "ACTIONAPI_E5129_ACCOUNT_SERVICE_LIST_ACCOUNTS_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E5130_ACCOUNT_SERVICE_LIST_FEATURE_FLAGS_FAILURE" | "ACTIONAPI_E5131_ACCOUNT_SERVICE_LIST_FEATURE_FLAGS_FORBIDDEN" | "ACTIONAPI_E5132_ACCOUNT_SERVICE_LIST_FEATURE_FLAGS_NOT_FOUND" | "ACTIONAPI_E5139_ACCOUNT_SERVICE_LIST_FEATURE_FLAGS_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5200_AZURE_LIST_PIPELINE_FAILURE" | "ACTIONAPI_5201_AZURE_LIST_PIPELINE_NOT_FOUND" | "ACTIONAPI_5202_AZURE_LIST_PIPELINE_UNAUTHORIZED" | "ACTIONAPI_5209_AZURE_LIST_PIPELINE_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5210_AZURE_RUN_PIPELINE_FAILURE" | "ACTIONAPI_5211_AZURE_RUN_PIPELINE_NOT_FOUND" | "ACTIONAPI_5212_AZURE_RUN_PIPELINE_UNAUTHORIZED" | "ACTIONAPI_5219_AZURE_RUN_PIPELINE_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5220_AZURE_GET_BUILD_FAILURE" | "ACTIONAPI_5221_AZURE_GET_BUILD_NOT_FOUND" | "ACTIONAPI_5222_AZURE_GET_BUILD_UNAUTHORIZED" | "ACTIONAPI_5223_AZURE_GET_BUILD_FORBIDDEN" | "ACTIONAPI_E5300_WORKSPACE_SERVICE_GET_WORKSPACE_FAILURE" | "ACTIONAPI_E5301_WORKSPACE_SERVICE_GET_WORKSPACE_FORBIDDEN" | "ACTIONAPI_E5302_WORKSPACE_SERVICE_GET_WORKSPACE_NOT_FOUND" | "ACTIONAPI_E5309_WORKSPACE_SERVICE_GET_WORKSPACE_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5400_BITBUCKET_RUN_PIPELINE_FAILURE" | "ACTIONAPI_5401_BITBUCKET_RUN_PIPELINE_NOT_FOUND" | "ACTIONAPI_5402_BITBUCKET_RUN_PIPELINE_UNAUTHORIZED" | "ACTIONAPI_5403_BITBUCKET_RUN_PIPELINE_BAD_REQUEST" | "ACTIONAPI_5409_BITBUCKET_RUN_PIPELINE_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5410_BITBUCKET_GET_PIPELINE_FAILURE" | "ACTIONAPI_5411_BITBUCKET_GET_PIPELINE_NOT_FOUND" | "ACTIONAPI_5412_BITBUCKET_GET_PIPELINE_UNAUTHORIZED" | "ACTIONAPI_5419_BITBUCKET_GET_PIPELINE_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5420_BITBUCKET_LIST_PIPELINE_STEPS_FAILURE" | "ACTIONAPI_5421_BITBUCKET_LIST_PIPELINE_STEPS_NOT_FOUND" | "ACTIONAPI_5422_BITBUCKET_LIST_PIPELINE_STEPS_UNAUTHORIZED" | "ACTIONAPI_5429_BITBUCKET_LIST_PIPELINE_STEPS_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5500_GITLAB_TRIGGER_PIPELINE_FAILURE" | "ACTIONAPI_5501_GITLAB_TRIGGER_PIPELINE_NOT_FOUND" | "ACTIONAPI_5502_GITLAB_TRIGGER_PIPELINE_UNAUTHORIZED" | "ACTIONAPI_5509_GITLAB_TRIGGER_PIPELINE_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5510_GITLAB_GET_TRIGGERS_FAILURE" | "ACTIONAPI_5511_GITLAB_GET_TRIGGERS_NOT_FOUND" | "ACTIONAPI_5512_GITLAB_GET_TRIGGERS_UNAUTHORIZED" | "ACTIONAPI_5519_GITLAB_GET_TRIGGERS_RESPONSE_PARSE_ERROR" | "ACTIONAPI_5600_IAM_GENERATE_TOKEN_FAILURE" | "ACTIONAPI_5610_IAM_INTROSPECT_TOKEN_FAILURE" | "ACTIONAPI_5619_IAM_INTROSPECT_TOKEN_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E6000_WEBHOOK_FAILURE";
|
|
41
|
+
export type BadRequestExceptionTypes = "ACTIONAPI_1001_DECODE_JWT_ERROR" | "ACTIONAPI_2001_BAD_REQUEST_REQUIRED_FIELD" | "ACTIONAPI_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "ACTIONAPI_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "ACTIONAPI_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "ACTIONAPI_2005_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "ACTIONAPI_2006_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "ACTIONAPI_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "ACTIONAPI_2008_BAD_REQUEST_VALUE_FIELD_NUMBER_NOT_LT" | "ACTIONAPI_2100_CREATE_BODY_REPO_AND_REPO_CREATE_ACTION" | "ACTIONAPI_2101_CREATE_BODY_NOT_REPO_AND_NOT_REPO_CREATE_ACTION" | "ACTIONAPI_2102_BAD_REQUEST_DATE_MAX_INTERVAL" | "ACTIONAPI_2103_BAD_REQUEST_INVALID_PAGE" | "ACTIONAPI_2104_BAD_REQUEST_DUPLICATED_ALIAS" | "ACTIONAPI_2105_BAD_REQUEST_INVALID_REPO_URL" | "ACTIONAPI_2110_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_WITHOUT_CONCLUSION" | "ACTIONAPI_2112_BAD_REQUEST_PUT_STEP_STATUS_NOT_COMPLETED_AND_CONCLUSION_DEFINED" | "ACTIONAPI_2113_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_AND_COMPLETED_AT_NOT_DEFINED" | "ACTIONAPI_2114_BAD_REQUEST_PUT_STEP_STATUS_IN_PROGRESS_AND_STARTED_AT_NOT_DEFINED" | "ACTIONAPI_2115_BAD_REQUEST_PUT_STEP_COMPLETED_AT_DEFINED_AND_STATUS_NOT_COMPLETED" | "ACTIONAPI_2116_BAD_REQUEST_PUT_STEP_STARTED_AT_DEFINED_AND_STATUS_PENDING" | "ACTIONAPI_2117_BAD_REQUEST_PUT_STEP_LOG_DEFINED_AND_CONCLUSION_IS_NOT_FAILURE" | "ACTIONAPI_2999_BAD_REQUEST_UNMAPPED";
|
|
42
|
+
export type InvalidPayloadDetails = {
|
|
43
|
+
code: BadRequestExceptionTypes;
|
|
44
|
+
field: string | null;
|
|
45
|
+
};
|
|
46
|
+
export type HttpErrorResponse = {
|
|
47
|
+
status: string;
|
|
48
|
+
code: ExceptionType;
|
|
49
|
+
details: string;
|
|
50
|
+
validationDetails?: InvalidPayloadDetails[] | null;
|
|
51
|
+
};
|
|
52
|
+
export type OriginRequest2 = {
|
|
53
|
+
id: string;
|
|
54
|
+
};
|
|
55
|
+
export type PluConnectionRequest = {
|
|
56
|
+
selected: string;
|
|
57
|
+
alias: string;
|
|
58
|
+
"type": string;
|
|
59
|
+
};
|
|
60
|
+
export type PluginConnectionsRequest = {
|
|
61
|
+
requires?: PluConnectionRequest[];
|
|
62
|
+
generates?: PluConnectionRequest[];
|
|
63
|
+
};
|
|
64
|
+
export type PluginRequest = {
|
|
65
|
+
name: string;
|
|
66
|
+
alias: string;
|
|
67
|
+
inputs?: object;
|
|
68
|
+
inputsSensitive?: string[];
|
|
69
|
+
inputsEnv?: {
|
|
70
|
+
[key: string]: object;
|
|
71
|
+
};
|
|
72
|
+
connections?: PluginConnectionsRequest;
|
|
73
|
+
};
|
|
74
|
+
export type AppRequest = {
|
|
75
|
+
starter: string;
|
|
76
|
+
name: string;
|
|
77
|
+
repo?: string | null;
|
|
78
|
+
description: string;
|
|
79
|
+
plugins: PluginRequest[];
|
|
80
|
+
};
|
|
81
|
+
export type ActConnectionRequest = {
|
|
82
|
+
selected: string;
|
|
83
|
+
alias: string;
|
|
84
|
+
};
|
|
85
|
+
export type ActionConnectionRequest2 = {
|
|
86
|
+
requires?: ActConnectionRequest[];
|
|
87
|
+
};
|
|
88
|
+
export type ActionRequest = {
|
|
89
|
+
name: string;
|
|
90
|
+
inputs?: object;
|
|
91
|
+
inputsSensitive?: string[];
|
|
92
|
+
repoCreate?: boolean;
|
|
93
|
+
connections?: ActionConnectionRequest2;
|
|
94
|
+
};
|
|
95
|
+
export type CreateAppRequest = {
|
|
96
|
+
workspaceId: string;
|
|
97
|
+
origin: OriginRequest2;
|
|
98
|
+
app: AppRequest;
|
|
99
|
+
actionsBefore?: ActionRequest[];
|
|
100
|
+
actionsAfter?: ActionRequest[];
|
|
101
|
+
originBranch?: string | null;
|
|
102
|
+
newBranch?: string | null;
|
|
103
|
+
frontData?: object | null;
|
|
104
|
+
};
|
|
105
|
+
export type ApiRequest = {
|
|
106
|
+
id: string;
|
|
107
|
+
repo?: string | null;
|
|
108
|
+
};
|
|
109
|
+
export type ActionConnectionRequest3 = {
|
|
110
|
+
requires?: ActConnectionRequest[];
|
|
111
|
+
};
|
|
112
|
+
export type ActionRequest2 = {
|
|
113
|
+
name: string;
|
|
114
|
+
inputs?: object | null;
|
|
115
|
+
inputsSensitive?: string[] | null;
|
|
116
|
+
repoCreate?: boolean | null;
|
|
117
|
+
connections?: ActionConnectionRequest3 | null;
|
|
118
|
+
};
|
|
119
|
+
export type CreateApiRequest = {
|
|
120
|
+
workspaceId: string;
|
|
121
|
+
api: ApiRequest;
|
|
122
|
+
actionsAfter?: ActionRequest2[];
|
|
123
|
+
actionsBefore?: ActionRequest2[];
|
|
124
|
+
originBranch?: string | null;
|
|
125
|
+
newBranch?: string | null;
|
|
126
|
+
frontData?: object | null;
|
|
127
|
+
};
|
|
128
|
+
export type OriginRequest3 = {
|
|
129
|
+
id: string;
|
|
130
|
+
};
|
|
131
|
+
export type PluginConnectionsRequest2 = {
|
|
132
|
+
requires?: PluConnectionRequest[];
|
|
133
|
+
generates?: PluConnectionRequest[];
|
|
134
|
+
};
|
|
135
|
+
export type PluginRequest2 = {
|
|
136
|
+
name: string;
|
|
137
|
+
alias: string;
|
|
138
|
+
inputs?: object;
|
|
139
|
+
inputsSensitive?: string[];
|
|
140
|
+
inputsEnv?: {
|
|
141
|
+
[key: string]: object;
|
|
142
|
+
};
|
|
143
|
+
connections?: PluginConnectionsRequest2;
|
|
144
|
+
};
|
|
145
|
+
export type InfraRequest = {
|
|
146
|
+
stack: string;
|
|
147
|
+
name: string;
|
|
148
|
+
repo?: string | null;
|
|
149
|
+
description: string;
|
|
150
|
+
plugins: PluginRequest2[];
|
|
151
|
+
};
|
|
152
|
+
export type ActionConnectionRequest4 = {
|
|
153
|
+
requires?: ActConnectionRequest[];
|
|
154
|
+
};
|
|
155
|
+
export type ActionRequest3 = {
|
|
156
|
+
name: string;
|
|
157
|
+
inputs?: object;
|
|
158
|
+
inputsSensitive?: string[];
|
|
159
|
+
repoCreate?: boolean;
|
|
160
|
+
connections?: ActionConnectionRequest4;
|
|
161
|
+
};
|
|
162
|
+
export type CreateInfraRequest = {
|
|
163
|
+
workspaceId: string;
|
|
164
|
+
origin: OriginRequest3;
|
|
165
|
+
infra: InfraRequest;
|
|
166
|
+
actionsBefore?: ActionRequest3[];
|
|
167
|
+
actionsAfter?: ActionRequest3[];
|
|
168
|
+
originBranch?: string | null;
|
|
169
|
+
newBranch?: string | null;
|
|
170
|
+
frontData?: object | null;
|
|
171
|
+
};
|
|
172
|
+
export type OriginRequest4 = {
|
|
173
|
+
id: string;
|
|
174
|
+
"type": "SHARED_INFRA" | "APPLICATION";
|
|
175
|
+
};
|
|
176
|
+
export type PluginConnectionsRequest3 = {
|
|
177
|
+
requires?: ConnectionRequest[];
|
|
178
|
+
};
|
|
179
|
+
export type ApplyPluginRequest = {
|
|
180
|
+
workspaceId: string;
|
|
181
|
+
origin: OriginRequest4;
|
|
182
|
+
name: string;
|
|
183
|
+
alias: string;
|
|
184
|
+
repo: string;
|
|
185
|
+
connections?: PluginConnectionsRequest3;
|
|
186
|
+
inputs: object;
|
|
187
|
+
inputsEnv: {
|
|
188
|
+
[key: string]: object;
|
|
189
|
+
};
|
|
190
|
+
inputsSensitive: string[] | null;
|
|
191
|
+
originBranch?: string | null;
|
|
192
|
+
newBranch?: string | null;
|
|
193
|
+
frontData?: object | null;
|
|
194
|
+
};
|
|
195
|
+
export type AuthorizationPat = {
|
|
196
|
+
user: string | null;
|
|
197
|
+
token: string;
|
|
198
|
+
};
|
|
199
|
+
export type AuthorizationGithubApp = {
|
|
200
|
+
app_id: string;
|
|
201
|
+
private_key: string;
|
|
202
|
+
installation_id: string;
|
|
203
|
+
};
|
|
204
|
+
export type Provider = "github_issues" | "github" | "azure" | "bitbucket" | "gitlab";
|
|
205
|
+
export type HealthCheckRequest = {
|
|
206
|
+
scm_auth?: AuthorizationPat | AuthorizationGithubApp | null;
|
|
207
|
+
workflow_url?: string | null;
|
|
208
|
+
provider?: Provider | null;
|
|
209
|
+
};
|
|
210
|
+
export type ConclusionStatus = "success" | "failure" | "skipped" | "cancelled" | "deleted" | "timeout" | null;
|
|
211
|
+
export type StepReportRequest = {
|
|
212
|
+
name: string;
|
|
213
|
+
conclusion: ConclusionStatus;
|
|
214
|
+
started_at: string;
|
|
215
|
+
completed_at: string;
|
|
216
|
+
log?: string | null;
|
|
217
|
+
};
|
|
218
|
+
export type ValidationError = {
|
|
219
|
+
loc: (string | number)[];
|
|
220
|
+
msg: string;
|
|
221
|
+
"type": string;
|
|
222
|
+
};
|
|
223
|
+
export type HttpValidationError = {
|
|
224
|
+
detail?: ValidationError[];
|
|
225
|
+
};
|
|
226
|
+
export type ExecutionStatus = "pending" | "in_progress" | "completed" | "timeout" | null;
|
|
227
|
+
export type ProviderDataResponse = {
|
|
228
|
+
htmlUrl?: string | null;
|
|
229
|
+
};
|
|
230
|
+
export type StepResponse = {
|
|
231
|
+
name: string;
|
|
232
|
+
/** (queued, in_progress, completed) */
|
|
233
|
+
status: ExecutionStatus;
|
|
234
|
+
startedAt?: string | null;
|
|
235
|
+
completedAt?: string | null;
|
|
236
|
+
conclusion?: ConclusionStatus | null;
|
|
237
|
+
log?: string | null;
|
|
238
|
+
};
|
|
239
|
+
export type JobResponse = {
|
|
240
|
+
name: string;
|
|
241
|
+
/** (queued, in_progress, completed) */
|
|
242
|
+
status: ExecutionStatus | null;
|
|
243
|
+
startedAt?: string | null;
|
|
244
|
+
completedAt?: string | null;
|
|
245
|
+
conclusion?: ConclusionStatus | null;
|
|
246
|
+
steps?: StepResponse[];
|
|
247
|
+
};
|
|
248
|
+
export type ExecutionResponse = {
|
|
249
|
+
executionId: string;
|
|
250
|
+
externalId?: string | null;
|
|
251
|
+
/** (pending, queued, in_progress, completed) */
|
|
252
|
+
status: ExecutionStatus | null;
|
|
253
|
+
conclusion?: ConclusionStatus | null;
|
|
254
|
+
providerData?: ProviderDataResponse | null;
|
|
255
|
+
jobs?: JobResponse[];
|
|
256
|
+
createdAt: string;
|
|
257
|
+
updatedAt?: string | null;
|
|
258
|
+
};
|
|
259
|
+
export type CreateSemaphoreResponse = {
|
|
260
|
+
id: string;
|
|
261
|
+
};
|
|
262
|
+
export type SemaphoreStatus = "pending" | "success" | "fail";
|
|
263
|
+
export type GetSemaphoreResponse = {
|
|
264
|
+
id: string;
|
|
265
|
+
created_at: string;
|
|
266
|
+
updated_at: string;
|
|
267
|
+
status: SemaphoreStatus;
|
|
268
|
+
details: string;
|
|
269
|
+
};
|
|
270
|
+
export type UpdateSemaphoreRequest = {
|
|
271
|
+
status: SemaphoreStatus;
|
|
272
|
+
details?: string;
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Run Action Service
|
|
276
|
+
*/
|
|
277
|
+
export function runActionServiceWorkflowsRunActionDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, runActionRequest }: {
|
|
278
|
+
authorization: string;
|
|
279
|
+
stackspotCustomerIp?: string;
|
|
280
|
+
xExecutionId?: string | null;
|
|
281
|
+
runActionRequest: RunActionRequest;
|
|
282
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
283
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
284
|
+
status: 200;
|
|
285
|
+
data: WorkflowResponse;
|
|
286
|
+
} | {
|
|
287
|
+
status: 400;
|
|
288
|
+
data: HttpErrorResponse;
|
|
289
|
+
} | {
|
|
290
|
+
status: 401;
|
|
291
|
+
data: HttpErrorResponse;
|
|
292
|
+
} | {
|
|
293
|
+
status: 404;
|
|
294
|
+
data: HttpErrorResponse;
|
|
295
|
+
} | {
|
|
296
|
+
status: 422;
|
|
297
|
+
} | {
|
|
298
|
+
status: 500;
|
|
299
|
+
data: HttpErrorResponse;
|
|
300
|
+
} | {
|
|
301
|
+
status: 503;
|
|
302
|
+
data: HttpErrorResponse;
|
|
303
|
+
}>("/workflows/run-action/dispatch", oazapfts.json({
|
|
304
|
+
...opts,
|
|
305
|
+
method: "POST",
|
|
306
|
+
body: runActionRequest,
|
|
307
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
308
|
+
authorization,
|
|
309
|
+
"stackspot-customer-ip": stackspotCustomerIp,
|
|
310
|
+
"x-execution-id": xExecutionId
|
|
311
|
+
})
|
|
312
|
+
})));
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Create App Service
|
|
316
|
+
*/
|
|
317
|
+
export function createAppServiceWorkflowsCreateAppDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createAppRequest }: {
|
|
318
|
+
authorization: string;
|
|
319
|
+
stackspotCustomerIp?: string;
|
|
320
|
+
xExecutionId?: string | null;
|
|
321
|
+
createAppRequest: CreateAppRequest;
|
|
322
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
323
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
324
|
+
status: 200;
|
|
325
|
+
data: WorkflowResponse;
|
|
326
|
+
} | {
|
|
327
|
+
status: 400;
|
|
328
|
+
data: HttpErrorResponse;
|
|
329
|
+
} | {
|
|
330
|
+
status: 401;
|
|
331
|
+
data: HttpErrorResponse;
|
|
332
|
+
} | {
|
|
333
|
+
status: 404;
|
|
334
|
+
data: HttpErrorResponse;
|
|
335
|
+
} | {
|
|
336
|
+
status: 422;
|
|
337
|
+
} | {
|
|
338
|
+
status: 500;
|
|
339
|
+
data: HttpErrorResponse;
|
|
340
|
+
} | {
|
|
341
|
+
status: 503;
|
|
342
|
+
data: HttpErrorResponse;
|
|
343
|
+
}>("/workflows/create-app/dispatch", oazapfts.json({
|
|
344
|
+
...opts,
|
|
345
|
+
method: "POST",
|
|
346
|
+
body: createAppRequest,
|
|
347
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
348
|
+
authorization,
|
|
349
|
+
"stackspot-customer-ip": stackspotCustomerIp,
|
|
350
|
+
"x-execution-id": xExecutionId
|
|
351
|
+
})
|
|
352
|
+
})));
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Create Api Service
|
|
356
|
+
*/
|
|
357
|
+
export function createApiServiceWorkflowsCreateApiDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createApiRequest }: {
|
|
358
|
+
authorization: string;
|
|
359
|
+
stackspotCustomerIp?: string;
|
|
360
|
+
xExecutionId?: string | null;
|
|
361
|
+
createApiRequest: CreateApiRequest;
|
|
362
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
363
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
364
|
+
status: 200;
|
|
365
|
+
data: WorkflowResponse;
|
|
366
|
+
} | {
|
|
367
|
+
status: 400;
|
|
368
|
+
data: HttpErrorResponse;
|
|
369
|
+
} | {
|
|
370
|
+
status: 401;
|
|
371
|
+
data: HttpErrorResponse;
|
|
372
|
+
} | {
|
|
373
|
+
status: 404;
|
|
374
|
+
data: HttpErrorResponse;
|
|
375
|
+
} | {
|
|
376
|
+
status: 422;
|
|
377
|
+
} | {
|
|
378
|
+
status: 500;
|
|
379
|
+
data: HttpErrorResponse;
|
|
380
|
+
} | {
|
|
381
|
+
status: 503;
|
|
382
|
+
data: HttpErrorResponse;
|
|
383
|
+
}>("/workflows/create-api/dispatch", oazapfts.json({
|
|
384
|
+
...opts,
|
|
385
|
+
method: "POST",
|
|
386
|
+
body: createApiRequest,
|
|
387
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
388
|
+
authorization,
|
|
389
|
+
"stackspot-customer-ip": stackspotCustomerIp,
|
|
390
|
+
"x-execution-id": xExecutionId
|
|
391
|
+
})
|
|
392
|
+
})));
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Create Infra Service
|
|
396
|
+
*/
|
|
397
|
+
export function createInfraServiceWorkflowsCreateInfraDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createInfraRequest }: {
|
|
398
|
+
authorization: string;
|
|
399
|
+
stackspotCustomerIp?: string;
|
|
400
|
+
xExecutionId?: string | null;
|
|
401
|
+
createInfraRequest: CreateInfraRequest;
|
|
402
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
403
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
404
|
+
status: 200;
|
|
405
|
+
data: WorkflowResponse;
|
|
406
|
+
} | {
|
|
407
|
+
status: 400;
|
|
408
|
+
data: HttpErrorResponse;
|
|
409
|
+
} | {
|
|
410
|
+
status: 401;
|
|
411
|
+
data: HttpErrorResponse;
|
|
412
|
+
} | {
|
|
413
|
+
status: 404;
|
|
414
|
+
data: HttpErrorResponse;
|
|
415
|
+
} | {
|
|
416
|
+
status: 422;
|
|
417
|
+
} | {
|
|
418
|
+
status: 500;
|
|
419
|
+
data: HttpErrorResponse;
|
|
420
|
+
} | {
|
|
421
|
+
status: 503;
|
|
422
|
+
data: HttpErrorResponse;
|
|
423
|
+
}>("/workflows/create-infra/dispatch", oazapfts.json({
|
|
424
|
+
...opts,
|
|
425
|
+
method: "POST",
|
|
426
|
+
body: createInfraRequest,
|
|
427
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
428
|
+
authorization,
|
|
429
|
+
"stackspot-customer-ip": stackspotCustomerIp,
|
|
430
|
+
"x-execution-id": xExecutionId
|
|
431
|
+
})
|
|
432
|
+
})));
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Apply Plugin Service
|
|
436
|
+
*/
|
|
437
|
+
export function applyPluginServiceWorkflowsApplyPluginDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, applyPluginRequest }: {
|
|
438
|
+
authorization: string;
|
|
439
|
+
stackspotCustomerIp?: string;
|
|
440
|
+
xExecutionId?: string | null;
|
|
441
|
+
applyPluginRequest: ApplyPluginRequest;
|
|
442
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
443
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
444
|
+
status: 200;
|
|
445
|
+
data: WorkflowResponse;
|
|
446
|
+
} | {
|
|
447
|
+
status: 400;
|
|
448
|
+
data: HttpErrorResponse;
|
|
449
|
+
} | {
|
|
450
|
+
status: 401;
|
|
451
|
+
data: HttpErrorResponse;
|
|
452
|
+
} | {
|
|
453
|
+
status: 404;
|
|
454
|
+
data: HttpErrorResponse;
|
|
455
|
+
} | {
|
|
456
|
+
status: 422;
|
|
457
|
+
} | {
|
|
458
|
+
status: 500;
|
|
459
|
+
data: HttpErrorResponse;
|
|
460
|
+
} | {
|
|
461
|
+
status: 503;
|
|
462
|
+
data: HttpErrorResponse;
|
|
463
|
+
}>("/workflows/apply-plugin/dispatch", oazapfts.json({
|
|
464
|
+
...opts,
|
|
465
|
+
method: "POST",
|
|
466
|
+
body: applyPluginRequest,
|
|
467
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
468
|
+
authorization,
|
|
469
|
+
"stackspot-customer-ip": stackspotCustomerIp,
|
|
470
|
+
"x-execution-id": xExecutionId
|
|
471
|
+
})
|
|
472
|
+
})));
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Health Check Service
|
|
476
|
+
*/
|
|
477
|
+
export function healthCheckServiceWorkflowsHealthCheckDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, body }: {
|
|
478
|
+
authorization: string;
|
|
479
|
+
stackspotCustomerIp?: string;
|
|
480
|
+
xExecutionId?: string | null;
|
|
481
|
+
body?: HealthCheckRequest | null;
|
|
482
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
483
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
484
|
+
status: 200;
|
|
485
|
+
data: WorkflowResponse;
|
|
486
|
+
} | {
|
|
487
|
+
status: 400;
|
|
488
|
+
data: HttpErrorResponse;
|
|
489
|
+
} | {
|
|
490
|
+
status: 401;
|
|
491
|
+
data: HttpErrorResponse;
|
|
492
|
+
} | {
|
|
493
|
+
status: 404;
|
|
494
|
+
data: HttpErrorResponse;
|
|
495
|
+
} | {
|
|
496
|
+
status: 422;
|
|
497
|
+
} | {
|
|
498
|
+
status: 500;
|
|
499
|
+
data: HttpErrorResponse;
|
|
500
|
+
} | {
|
|
501
|
+
status: 503;
|
|
502
|
+
data: HttpErrorResponse;
|
|
503
|
+
}>("/workflows/health-check/dispatch", oazapfts.json({
|
|
504
|
+
...opts,
|
|
505
|
+
method: "POST",
|
|
506
|
+
body,
|
|
507
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
508
|
+
authorization,
|
|
509
|
+
"stackspot-customer-ip": stackspotCustomerIp,
|
|
510
|
+
"x-execution-id": xExecutionId
|
|
511
|
+
})
|
|
512
|
+
})));
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Step Report Service
|
|
516
|
+
*/
|
|
517
|
+
export function stepReportServiceExecutionsExecutionIdWorkflowsStepsReportPost({ executionId, authorization, stepReportRequest }: {
|
|
518
|
+
executionId: string;
|
|
519
|
+
authorization: string;
|
|
520
|
+
stepReportRequest: StepReportRequest;
|
|
521
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
522
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
523
|
+
status: 200;
|
|
524
|
+
data: any;
|
|
525
|
+
} | {
|
|
526
|
+
status: 400;
|
|
527
|
+
data: HttpErrorResponse;
|
|
528
|
+
} | {
|
|
529
|
+
status: 401;
|
|
530
|
+
data: HttpErrorResponse;
|
|
531
|
+
} | {
|
|
532
|
+
status: 404;
|
|
533
|
+
data: HttpErrorResponse;
|
|
534
|
+
} | {
|
|
535
|
+
status: 422;
|
|
536
|
+
} | {
|
|
537
|
+
status: 500;
|
|
538
|
+
data: HttpErrorResponse;
|
|
539
|
+
} | {
|
|
540
|
+
status: 503;
|
|
541
|
+
data: HttpErrorResponse;
|
|
542
|
+
}>(`/executions/${encodeURIComponent(executionId)}/workflows/steps/report`, oazapfts.json({
|
|
543
|
+
...opts,
|
|
544
|
+
method: "POST",
|
|
545
|
+
body: stepReportRequest,
|
|
546
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
547
|
+
authorization
|
|
548
|
+
})
|
|
549
|
+
})));
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Get Execution Dispatch Request Service
|
|
553
|
+
*/
|
|
554
|
+
export function getExecutionDispatchRequestServiceWorkflowsExecutionIdRequestGet({ executionId, authorization }: {
|
|
555
|
+
executionId: string;
|
|
556
|
+
authorization: string;
|
|
557
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
558
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
559
|
+
status: 200;
|
|
560
|
+
data: any;
|
|
561
|
+
} | {
|
|
562
|
+
status: 422;
|
|
563
|
+
data: HttpValidationError;
|
|
564
|
+
}>(`/workflows/${encodeURIComponent(executionId)}/request`, {
|
|
565
|
+
...opts,
|
|
566
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
567
|
+
authorization
|
|
568
|
+
})
|
|
569
|
+
}));
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Get Execution Status Service
|
|
573
|
+
*/
|
|
574
|
+
export function getExecutionStatusServiceWorkflowsExecutionStatusExecutionIdGet({ executionId, authorization }: {
|
|
575
|
+
executionId: string;
|
|
576
|
+
authorization: string;
|
|
577
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
578
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
579
|
+
status: 200;
|
|
580
|
+
data: ExecutionResponse;
|
|
581
|
+
} | {
|
|
582
|
+
status: 400;
|
|
583
|
+
data: HttpErrorResponse;
|
|
584
|
+
} | {
|
|
585
|
+
status: 401;
|
|
586
|
+
data: HttpErrorResponse;
|
|
587
|
+
} | {
|
|
588
|
+
status: 404;
|
|
589
|
+
data: HttpErrorResponse;
|
|
590
|
+
} | {
|
|
591
|
+
status: 422;
|
|
592
|
+
} | {
|
|
593
|
+
status: 500;
|
|
594
|
+
data: HttpErrorResponse;
|
|
595
|
+
} | {
|
|
596
|
+
status: 503;
|
|
597
|
+
data: HttpErrorResponse;
|
|
598
|
+
}>(`/workflows/execution-status/${encodeURIComponent(executionId)}`, {
|
|
599
|
+
...opts,
|
|
600
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
601
|
+
authorization
|
|
602
|
+
})
|
|
603
|
+
}));
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Create Semaphore Service
|
|
607
|
+
*/
|
|
608
|
+
export function createSemaphoreServiceSemaphoresPost({ authorization }: {
|
|
609
|
+
authorization: string;
|
|
610
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
611
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
612
|
+
status: 200;
|
|
613
|
+
data: CreateSemaphoreResponse;
|
|
614
|
+
} | {
|
|
615
|
+
status: 400;
|
|
616
|
+
data: HttpErrorResponse;
|
|
617
|
+
} | {
|
|
618
|
+
status: 401;
|
|
619
|
+
data: HttpErrorResponse;
|
|
620
|
+
} | {
|
|
621
|
+
status: 404;
|
|
622
|
+
data: HttpErrorResponse;
|
|
623
|
+
} | {
|
|
624
|
+
status: 422;
|
|
625
|
+
} | {
|
|
626
|
+
status: 500;
|
|
627
|
+
data: HttpErrorResponse;
|
|
628
|
+
} | {
|
|
629
|
+
status: 503;
|
|
630
|
+
data: HttpErrorResponse;
|
|
631
|
+
}>("/semaphores", {
|
|
632
|
+
...opts,
|
|
633
|
+
method: "POST",
|
|
634
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
635
|
+
authorization
|
|
636
|
+
})
|
|
637
|
+
}));
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Get Semaphore Service
|
|
641
|
+
*/
|
|
642
|
+
export function getSemaphoreServiceSemaphoresSemaphoreIdGet({ semaphoreId, authorization }: {
|
|
643
|
+
semaphoreId: string;
|
|
644
|
+
authorization: string;
|
|
645
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
646
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
647
|
+
status: 200;
|
|
648
|
+
data: GetSemaphoreResponse;
|
|
649
|
+
} | {
|
|
650
|
+
status: 400;
|
|
651
|
+
data: HttpErrorResponse;
|
|
652
|
+
} | {
|
|
653
|
+
status: 401;
|
|
654
|
+
data: HttpErrorResponse;
|
|
655
|
+
} | {
|
|
656
|
+
status: 404;
|
|
657
|
+
data: HttpErrorResponse;
|
|
658
|
+
} | {
|
|
659
|
+
status: 422;
|
|
660
|
+
} | {
|
|
661
|
+
status: 500;
|
|
662
|
+
data: HttpErrorResponse;
|
|
663
|
+
} | {
|
|
664
|
+
status: 503;
|
|
665
|
+
data: HttpErrorResponse;
|
|
666
|
+
}>(`/semaphores/${encodeURIComponent(semaphoreId)}`, {
|
|
667
|
+
...opts,
|
|
668
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
669
|
+
authorization
|
|
670
|
+
})
|
|
671
|
+
}));
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Update Semaphore Service
|
|
675
|
+
*/
|
|
676
|
+
export function updateSemaphoreServiceSemaphoresSemaphoreIdPut({ semaphoreId, authorization, updateSemaphoreRequest }: {
|
|
677
|
+
semaphoreId: string;
|
|
678
|
+
authorization: string;
|
|
679
|
+
updateSemaphoreRequest: UpdateSemaphoreRequest;
|
|
680
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
681
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
682
|
+
status: 200;
|
|
683
|
+
data: any;
|
|
684
|
+
} | {
|
|
685
|
+
status: 400;
|
|
686
|
+
data: HttpErrorResponse;
|
|
687
|
+
} | {
|
|
688
|
+
status: 401;
|
|
689
|
+
data: HttpErrorResponse;
|
|
690
|
+
} | {
|
|
691
|
+
status: 404;
|
|
692
|
+
data: HttpErrorResponse;
|
|
693
|
+
} | {
|
|
694
|
+
status: 422;
|
|
695
|
+
} | {
|
|
696
|
+
status: 500;
|
|
697
|
+
data: HttpErrorResponse;
|
|
698
|
+
} | {
|
|
699
|
+
status: 503;
|
|
700
|
+
data: HttpErrorResponse;
|
|
701
|
+
}>(`/semaphores/${encodeURIComponent(semaphoreId)}`, oazapfts.json({
|
|
702
|
+
...opts,
|
|
703
|
+
method: "PUT",
|
|
704
|
+
body: updateSemaphoreRequest,
|
|
705
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
706
|
+
authorization
|
|
707
|
+
})
|
|
708
|
+
})));
|
|
709
|
+
}
|