@stack-spot/portal-network 0.184.0 → 0.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/CHANGELOG.md +2419 -2412
  2. package/dist/api/account.js +1 -1
  3. package/dist/api/agent-tools.js +1 -1
  4. package/dist/api/agent.js +1 -1
  5. package/dist/api/ai.js +1 -1
  6. package/dist/api/apiManagement.js +1 -1
  7. package/dist/api/apiRuntime.js +1 -1
  8. package/dist/api/cloudAccount.js +1 -1
  9. package/dist/api/cloudPlatform.js +1 -1
  10. package/dist/api/cloudPlatformHorizon.js +1 -1
  11. package/dist/api/cloudRuntimes.js +1 -1
  12. package/dist/api/cloudServices.js +1 -1
  13. package/dist/api/codeShift.d.ts +63 -4
  14. package/dist/api/codeShift.d.ts.map +1 -1
  15. package/dist/api/codeShift.js +14 -1
  16. package/dist/api/codeShift.js.map +1 -1
  17. package/dist/api/content.js +1 -1
  18. package/dist/api/dataIntegration.js +1 -1
  19. package/dist/api/discover.js +1 -1
  20. package/dist/api/genAiInference.js +1 -1
  21. package/dist/api/insights.js +1 -1
  22. package/dist/api/notification.js +1 -1
  23. package/dist/api/secrets.js +1 -1
  24. package/dist/api/serviceCatalog.js +1 -1
  25. package/dist/api/workspace-ai.js +1 -1
  26. package/dist/api/workspace.js +1 -1
  27. package/dist/api/workspaceManager.js +1 -1
  28. package/dist/api/workspaceSearchEngine.js +1 -1
  29. package/dist/client/code-shift.d.ts +22 -0
  30. package/dist/client/code-shift.d.ts.map +1 -1
  31. package/dist/client/code-shift.js +28 -1
  32. package/dist/client/code-shift.js.map +1 -1
  33. package/package.json +6 -6
  34. package/scripts/generate-apis.ts +134 -134
  35. package/src/api/account.ts +8367 -8367
  36. package/src/api/agent-tools.ts +2169 -2169
  37. package/src/api/agent.ts +1083 -1083
  38. package/src/api/ai.ts +3388 -3388
  39. package/src/api/apiManagement.ts +570 -570
  40. package/src/api/apiRuntime.ts +2103 -2103
  41. package/src/api/cloudAccount.ts +1239 -1239
  42. package/src/api/cloudPlatform.ts +927 -927
  43. package/src/api/cloudPlatformHorizon.ts +2655 -2655
  44. package/src/api/cloudRuntimes.ts +2043 -2043
  45. package/src/api/cloudServices.ts +1445 -1445
  46. package/src/api/codeShift.ts +3567 -3481
  47. package/src/api/content.ts +9785 -9785
  48. package/src/api/dataIntegration.ts +1657 -1657
  49. package/src/api/discover.ts +435 -435
  50. package/src/api/eventBus.ts +171 -171
  51. package/src/api/genAiInference.ts +603 -603
  52. package/src/api/insights.ts +310 -310
  53. package/src/api/notification.ts +334 -334
  54. package/src/api/secrets.ts +342 -342
  55. package/src/api/serviceCatalog.ts +2908 -2908
  56. package/src/api/workflows.ts +1669 -1669
  57. package/src/api/workspace-ai.ts +677 -677
  58. package/src/api/workspace.ts +5889 -5889
  59. package/src/api/workspaceManager.ts +2951 -2951
  60. package/src/api/workspaceSearchEngine.ts +153 -153
  61. package/src/api-addresses.ts +120 -120
  62. package/src/apis-itau.json +225 -225
  63. package/src/apis.json +225 -225
  64. package/src/client/account.ts +902 -902
  65. package/src/client/agent-tools.ts +210 -210
  66. package/src/client/agent.ts +81 -81
  67. package/src/client/ai.ts +395 -395
  68. package/src/client/api-management.ts +40 -40
  69. package/src/client/cloud-account.ts +70 -70
  70. package/src/client/cloud-platform-horizon.ts +113 -113
  71. package/src/client/cloud-platform.ts +163 -163
  72. package/src/client/cloud-runtimes.ts +129 -129
  73. package/src/client/cloud-services.ts +94 -94
  74. package/src/client/code-shift.ts +364 -349
  75. package/src/client/content.ts +538 -538
  76. package/src/client/data-integration.ts +191 -191
  77. package/src/client/discover.ts +89 -89
  78. package/src/client/event-bus.ts +84 -84
  79. package/src/client/gen-ai-inference.ts +65 -65
  80. package/src/client/insights.ts +28 -28
  81. package/src/client/notification.ts +32 -32
  82. package/src/client/runtime-manager.ts +76 -76
  83. package/src/client/secrets.ts +60 -60
  84. package/src/client/types.ts +377 -377
  85. package/src/client/workflow.ts +83 -83
  86. package/src/client/workspace-ai.ts +191 -191
  87. package/src/client/workspace-manager.ts +564 -564
  88. package/src/client/workspace-search.ts +39 -39
  89. package/src/client/workspace.ts +480 -480
  90. package/src/error/DefaultAPIError.ts +151 -151
  91. package/src/error/FileUploadError.ts +18 -18
  92. package/src/error/IgnoredErrorCodes.ts +3 -3
  93. package/src/error/StackspotAPIError.ts +101 -101
  94. package/src/error/StreamCanceledError.ts +10 -10
  95. package/src/error/StreamError.ts +7 -7
  96. package/src/error/StreamJsonError.ts +10 -10
  97. package/src/error/dictionary/account.ts +58 -58
  98. package/src/error/dictionary/action-details.ts +20 -20
  99. package/src/error/dictionary/action.ts +211 -211
  100. package/src/error/dictionary/agent-tools.ts +75 -75
  101. package/src/error/dictionary/ai-inference.ts +28 -28
  102. package/src/error/dictionary/base.ts +22 -22
  103. package/src/error/dictionary/cloud-platform.ts +82 -82
  104. package/src/error/dictionary/cnt-fields.ts +14 -14
  105. package/src/error/dictionary/cnt.ts +103 -103
  106. package/src/error/dictionary/code-shift.ts +12 -12
  107. package/src/error/dictionary/rte.ts +24 -24
  108. package/src/error/dictionary/rtm.ts +10 -10
  109. package/src/error/dictionary/secrets.ts +14 -14
  110. package/src/error/dictionary/workspace-ai.ts +10 -10
  111. package/src/error/dictionary/workspace-details.ts +15 -15
  112. package/src/error/dictionary/workspace-fields.ts +10 -10
  113. package/src/error/dictionary/workspace.ts +209 -209
  114. package/src/error/types.ts +21 -21
  115. package/src/index.ts +43 -43
  116. package/src/network/AutoInfiniteQuery.ts +115 -115
  117. package/src/network/AutoMutation.ts +27 -27
  118. package/src/network/AutoOperation.ts +73 -73
  119. package/src/network/AutoQuery.ts +75 -75
  120. package/src/network/ManualInfiniteQuery.ts +95 -95
  121. package/src/network/ManualMutation.ts +40 -40
  122. package/src/network/ManualOperation.ts +52 -52
  123. package/src/network/ManualQuery.ts +82 -82
  124. package/src/network/NetworkClient.ts +167 -167
  125. package/src/network/ReactQueryNetworkClient.ts +312 -312
  126. package/src/network/react-query-client.ts +14 -14
  127. package/src/network/types.ts +294 -294
  128. package/src/types.ts +1 -1
  129. package/src/utils/StreamedArray.tsx +146 -146
  130. package/src/utils/StreamedJson.tsx +166 -166
  131. package/src/utils/remove-authorization-param.ts +6 -6
  132. package/src/utils/string.ts +19 -19
  133. package/src/utils/use-extended-list.ts +80 -80
  134. package/src/utils/use-streamed-array.ts +17 -17
  135. package/tsconfig.build.json +4 -4
  136. package/tsconfig.json +10 -10
@@ -1,1669 +1,1669 @@
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?: {
29
- [key: string]: any;
30
- };
31
- inputsSensitive?: string[];
32
- connections?: ActionConnectionRequest;
33
- workspaceId: string;
34
- env?: string | null;
35
- origin: OriginRequest;
36
- frontData?: {
37
- [key: string]: any;
38
- } | null;
39
- };
40
- export type WorkflowResponse = {
41
- id: string;
42
- logs: string;
43
- };
44
- export type ExceptionType = "ACTIONAPI_0000_UNEXPECTED_ERROR" | "ACTIONAPI_0003_INVALID_WORKFLOW_URL" | "ACTIONAPI_0004_WORKFLOW_NOT_IMPLEMENTED" | "ACTIONAPI_0005_WORKFLOW_SCRIPT_DOWNLOAD_UNAUTHORIZED" | "ACTIONAPI_0006_UPDATE_MAX_TRY" | "ACTIONAPI_2000_VALIDATION_ERROR" | "ACTIONAPI_5999_HTTP_UNEXPECTED_ERROR" | "ACTIONAPI_2200_NOT_FOUND" | "ACTIONAPI_2201_CONFLICT" | "ACTIONAPI_2202_OPERATION_NOT_ALLOWED" | "ACTIONAPI_2203_REFERENCE_NOT_FOUND" | "ACTIONAPI_2204_JOB_IS_NOT_VALID_REFERENCE" | "ACTIONAPI_2205_INVALID_REFERENCE_STEP_IS_NOT_WORKFLOW" | "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_E5150_ACCOUNT_SERVICE_GET_MEMBERS_FAILURE" | "ACTIONAPI_E5151_ACCOUNT_SERVICE_GET_MEMBERS_FORBIDDEN" | "ACTIONAPI_E5152_ACCOUNT_SERVICE_GET_MEMBERS_NOT_FOUND" | "ACTIONAPI_E5159_ACCOUNT_SERVICE_GET_MEMBERS_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E5160_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_FAILURE" | "ACTIONAPI_E5161_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_FORBIDDEN" | "ACTIONAPI_E5162_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_NOT_FOUND" | "ACTIONAPI_E5169_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_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_E5310_WORKSPACE_SERVICE_GET_APP_FAILURE" | "ACTIONAPI_E5311_WORKSPACE_SERVICE_GET_APP_FORBIDDEN" | "ACTIONAPI_E5312_WORKSPACE_SERVICE_GET_APP_NOT_FOUND" | "ACTIONAPI_E5319_WORKSPACE_SERVICE_GET_APP_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_5520_GITLAB_LIST_TRIGGERS_FAILURE" | "ACTIONAPI_5522_GITLAB_LIST_TRIGGERS_UNAUTHORIZED" | "ACTIONAPI_5529_GITLAB_LIST_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_5700_SECRETS_SERVICE_ENCRYPT_FAILURE" | "ACTIONAPI_5701_SECRETS_SERVICE_ENCRYPT_NOT_FOUND" | "ACTIONAPI_5702_SECRETS_SERVICE_ENCRYPT_FORBIDDEN" | "ACTIONAPI_5709_SECRETS_SERVICE_ENCRYPT_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E5800_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_FAILURE" | "ACTIONAPI_E5801_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_FORBIDDEN" | "ACTIONAPI_E5802_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_NOT_FOUND" | "ACTIONAPI_E5809_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_RESPONSE_PARSE_ERROR";
45
- 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_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "ACTIONAPI_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "ACTIONAPI_2999_BAD_REQUEST_UNMAPPED";
46
- export type InvalidPayloadDetails = {
47
- code: BadRequestExceptionTypes;
48
- field: string | null;
49
- };
50
- export type HttpErrorResponse = {
51
- status: string;
52
- code: ExceptionType;
53
- details: string;
54
- validationDetails?: InvalidPayloadDetails[] | null;
55
- };
56
- export type OriginRequest2 = {
57
- id: string;
58
- };
59
- export type PluConnectionRequest = {
60
- selected: string;
61
- alias: string;
62
- "type": string;
63
- };
64
- export type PluginConnectionsRequest = {
65
- requires?: PluConnectionRequest[];
66
- generates?: PluConnectionRequest[];
67
- };
68
- export type PluginRequest = {
69
- name: string;
70
- alias: string;
71
- inputs?: {
72
- [key: string]: any;
73
- };
74
- inputsSensitive?: string[];
75
- inputsEnv?: {
76
- [key: string]: {
77
- [key: string]: any;
78
- };
79
- };
80
- connections?: PluginConnectionsRequest;
81
- };
82
- export type AppRequest = {
83
- starter: string;
84
- name: string;
85
- repo?: string | null;
86
- description: string;
87
- plugins: PluginRequest[];
88
- };
89
- export type ActConnectionRequest = {
90
- selected: string;
91
- alias: string;
92
- };
93
- export type ActionConnectionRequest2 = {
94
- requires?: ActConnectionRequest[];
95
- };
96
- export type ActionRequest = {
97
- name: string;
98
- inputs?: {
99
- [key: string]: any;
100
- };
101
- inputsSensitive?: string[];
102
- repoCreate?: boolean;
103
- connections?: ActionConnectionRequest2;
104
- };
105
- export type CreateAppRequest = {
106
- workspaceId: string;
107
- origin: OriginRequest2;
108
- app: AppRequest;
109
- actionsBefore?: ActionRequest[];
110
- actionsAfter?: ActionRequest[];
111
- originBranch?: string | null;
112
- newBranch?: string | null;
113
- frontData?: {
114
- [key: string]: any;
115
- } | null;
116
- };
117
- export type ApiRequest = {
118
- id: string;
119
- repo?: string | null;
120
- };
121
- export type ActionConnectionRequest3 = {
122
- requires?: ActConnectionRequest[];
123
- };
124
- export type ActionRequest2 = {
125
- name: string;
126
- inputs?: {
127
- [key: string]: any;
128
- } | null;
129
- inputsSensitive?: string[] | null;
130
- repoCreate?: boolean | null;
131
- connections?: ActionConnectionRequest3 | null;
132
- };
133
- export type CreateApiRequest = {
134
- workspaceId: string;
135
- api: ApiRequest;
136
- actionsAfter?: ActionRequest2[];
137
- actionsBefore?: ActionRequest2[];
138
- originBranch?: string | null;
139
- newBranch?: string | null;
140
- frontData?: {
141
- [key: string]: any;
142
- } | null;
143
- };
144
- export type OriginRequest3 = {
145
- id: string;
146
- };
147
- export type PluginConnectionsRequest2 = {
148
- requires?: PluConnectionRequest[];
149
- generates?: PluConnectionRequest[];
150
- };
151
- export type PluginRequest2 = {
152
- name: string;
153
- alias: string;
154
- inputs?: {
155
- [key: string]: any;
156
- };
157
- inputsSensitive?: string[];
158
- inputsEnv?: {
159
- [key: string]: {
160
- [key: string]: any;
161
- };
162
- };
163
- connections?: PluginConnectionsRequest2;
164
- };
165
- export type InfraRequest = {
166
- stack: string;
167
- starter?: string | null;
168
- name: string;
169
- repo?: string | null;
170
- description: string;
171
- plugins: PluginRequest2[];
172
- };
173
- export type ActionConnectionRequest4 = {
174
- requires?: ActConnectionRequest[];
175
- };
176
- export type ActionRequest3 = {
177
- name: string;
178
- inputs?: {
179
- [key: string]: any;
180
- };
181
- inputsSensitive?: string[];
182
- repoCreate?: boolean;
183
- connections?: ActionConnectionRequest4;
184
- };
185
- export type CreateInfraRequest = {
186
- workspaceId: string;
187
- origin: OriginRequest3;
188
- infra: InfraRequest;
189
- actionsBefore?: ActionRequest3[];
190
- actionsAfter?: ActionRequest3[];
191
- originBranch?: string | null;
192
- newBranch?: string | null;
193
- frontData?: {
194
- [key: string]: any;
195
- } | null;
196
- };
197
- export type OriginRequest4 = {
198
- id: string;
199
- "type": "SHARED_INFRA" | "APPLICATION";
200
- };
201
- export type PluginConnectionsRequest3 = {
202
- requires?: ConnectionRequest[];
203
- };
204
- export type ApplyPluginRequest = {
205
- workspaceId: string;
206
- origin: OriginRequest4;
207
- name: string;
208
- alias: string;
209
- repo: string;
210
- connections?: PluginConnectionsRequest3;
211
- inputs: {
212
- [key: string]: any;
213
- };
214
- inputsEnv: {
215
- [key: string]: {
216
- [key: string]: any;
217
- };
218
- };
219
- inputsSensitive: string[] | null;
220
- originBranch?: string | null;
221
- newBranch?: string | null;
222
- frontData?: {
223
- [key: string]: any;
224
- } | null;
225
- };
226
- export type AuthorizationPat = {
227
- user: string | null;
228
- token: string;
229
- };
230
- export type AuthorizationGithubApp = {
231
- app_id: string;
232
- private_key: string;
233
- installation_id: string;
234
- };
235
- export type Provider = "github_issues" | "github" | "azure" | "bitbucket" | "gitlab";
236
- export type HealthCheckRequest = {
237
- scm_auth?: AuthorizationPat | AuthorizationGithubApp | null;
238
- workflow_url?: string | null;
239
- provider?: Provider | null;
240
- };
241
- export type ConclusionStatus = "success" | "failure" | "skipped" | "cancelled" | "deleted" | "timeout" | null;
242
- export type StepReportRequest = {
243
- name: string;
244
- conclusion: ConclusionStatus;
245
- started_at: string;
246
- completed_at: string;
247
- log?: string | null;
248
- };
249
- export type ValidationError = {
250
- loc: (string | number)[];
251
- msg: string;
252
- "type": string;
253
- };
254
- export type HttpValidationError = {
255
- detail?: ValidationError[];
256
- };
257
- export type ExecutionStatus = "pending" | "in_progress" | "completed" | "timeout" | null;
258
- export type ProviderDataResponse = {
259
- htmlUrl?: string | null;
260
- };
261
- export type StepResponse = {
262
- name: string;
263
- /** (queued, in_progress, completed) */
264
- status: ExecutionStatus;
265
- startedAt?: string | null;
266
- completedAt?: string | null;
267
- conclusion?: ConclusionStatus | null;
268
- log?: string | null;
269
- };
270
- export type JobResponse = {
271
- name: string;
272
- /** (queued, in_progress, completed) */
273
- status: ExecutionStatus | null;
274
- startedAt?: string | null;
275
- completedAt?: string | null;
276
- conclusion?: ConclusionStatus | null;
277
- steps?: StepResponse[];
278
- };
279
- export type ExecutionResponse = {
280
- executionId: string;
281
- externalId?: string | null;
282
- /** (pending, queued, in_progress, completed) */
283
- status: ExecutionStatus | null;
284
- conclusion?: ConclusionStatus | null;
285
- providerData?: ProviderDataResponse | null;
286
- jobs?: JobResponse[];
287
- createdAt: string;
288
- updatedAt?: string | null;
289
- user_id?: string | null;
290
- };
291
- export type CreateSemaphoreResponse = {
292
- id: string;
293
- };
294
- export type SemaphoreStatus = "pending" | "success" | "fail";
295
- export type GetSemaphoreResponse = {
296
- id: string;
297
- created_at: string;
298
- updated_at: string;
299
- status: SemaphoreStatus;
300
- details: string;
301
- };
302
- export type UpdateSemaphoreRequest = {
303
- status: SemaphoreStatus;
304
- details?: string;
305
- };
306
- export type WorkspaceRequest = {
307
- id: string;
308
- slug: string;
309
- };
310
- export type GitlabIntegrationRequest = {
311
- projectId: string;
312
- triggerDescription?: string;
313
- triggerId?: string | null;
314
- branch?: string | null;
315
- apiDomain?: string;
316
- };
317
- export type GithubIntegrationRequest = {
318
- workflowName?: string;
319
- org: string;
320
- repositoryName: string;
321
- branch?: string | null;
322
- };
323
- export type AzureIntegrationRequest = {
324
- pipelineName?: string;
325
- org: string;
326
- projectName: string;
327
- };
328
- export type ScmIntegrationRequest = {
329
- gitlab?: GitlabIntegrationRequest | null;
330
- github?: GithubIntegrationRequest | null;
331
- azure?: AzureIntegrationRequest | null;
332
- };
333
- export type CreateWorkflowExecutionRequest = {
334
- workspace?: WorkspaceRequest | null;
335
- integration?: ScmIntegrationRequest | null;
336
- };
337
- export type WorkflowExecutionStatus = "pending" | "in_progress" | "completed" | "suspended";
338
- export type WorkflowExecutionConclusion = "error" | "success" | "skipped" | "canceled";
339
- export type WorkflowExecutionResponse = {
340
- id: string;
341
- status: WorkflowExecutionStatus;
342
- conclusion: WorkflowExecutionConclusion | null;
343
- webUrl: string;
344
- };
345
- export type WorkflowType = "starter" | "create" | "deploy" | "rollback" | "destroy" | "reusable";
346
- export type StepWorkflowRequest = {
347
- "type": "workflow";
348
- jobs: JobRequest[];
349
- };
350
- export type StepActionRequest = {
351
- "type": "action";
352
- };
353
- export type StepPluginRequest = {
354
- "type": "plugin";
355
- };
356
- export type StepSuspendRequest = {
357
- "type": "suspend";
358
- checkRole?: boolean;
359
- };
360
- export type StepRunShellRequest = {
361
- "type": "run";
362
- };
363
- export type StepRequest = {
364
- id: string;
365
- label?: string | null;
366
- spec: StepWorkflowRequest | StepActionRequest | StepPluginRequest | StepSuspendRequest | StepRunShellRequest;
367
- };
368
- export type JobRequest = {
369
- id: string;
370
- label: string;
371
- dependsOn?: string[];
372
- steps: StepRequest[];
373
- };
374
- export type TargetType = "app" | "infra";
375
- export type TargetRequest = {
376
- id: string;
377
- "type": TargetType;
378
- name?: string | null;
379
- description?: string | null;
380
- };
381
- export type EnvRequest = {
382
- id: string;
383
- slug: string;
384
- };
385
- export type CreateWorkflowExecutionWorkflowRequest = {
386
- name: string;
387
- label: string;
388
- "type": WorkflowType;
389
- inputs: {
390
- [key: string]: any | null;
391
- };
392
- jobs: JobRequest[];
393
- targets: TargetRequest[];
394
- env?: EnvRequest | null;
395
- };
396
- export type PutWorkflowExecutionWorkflowStepRequest = {
397
- reference: string;
398
- status: WorkflowExecutionStatus;
399
- conclusion?: WorkflowExecutionConclusion | null;
400
- startedAt?: string | null;
401
- completedAt?: string | null;
402
- log?: string | null;
403
- cliState?: {
404
- [key: string]: any;
405
- };
406
- };
407
- export type PutWorkflowExecutionWorkflowStepLogRequest = {
408
- reference: string;
409
- log: string;
410
- };
411
- export type UserResponse = {
412
- id: string;
413
- ip?: string | null;
414
- name: string;
415
- email: string | null;
416
- };
417
- export type StepResponse2 = {
418
- label: string;
419
- status: WorkflowExecutionStatus;
420
- conclusion: WorkflowExecutionConclusion | null;
421
- startedAt?: string | null;
422
- completedAt?: string | null;
423
- completedBy?: UserResponse | null;
424
- };
425
- export type JobResponse2 = {
426
- label: string;
427
- parentLabels: string[];
428
- dependsOn?: string[];
429
- status: WorkflowExecutionStatus;
430
- conclusion: WorkflowExecutionConclusion | null;
431
- startedAt?: string | null;
432
- completedAt?: string | null;
433
- suspendMessage?: string | null;
434
- steps: StepResponse2[];
435
- progress: number;
436
- };
437
- export type WorkflowResponse2 = {
438
- name: string;
439
- label: string;
440
- "type": WorkflowType;
441
- inputs: {
442
- [key: string]: any | null;
443
- };
444
- jobs: {
445
- [key: string]: JobResponse2;
446
- };
447
- progress: number;
448
- };
449
- export type ErrorLogResponse = {
450
- title: string;
451
- message: string;
452
- };
453
- export type SummaryResponse = {
454
- title: string;
455
- message: string;
456
- };
457
- export type ExternalProvider = {
458
- externalWorkflowLink?: string | null;
459
- orgName?: string | null;
460
- externalWorkflowBaseLink?: string | null;
461
- };
462
- export type WorkflowSetup = "scm_runner" | "install_stk_cli";
463
- export type GetWorkflowExecutionJobGraphResponse = {
464
- id: string;
465
- status: WorkflowExecutionStatus;
466
- conclusion: WorkflowExecutionConclusion | null;
467
- workflow?: WorkflowResponse2 | null;
468
- createdBy: UserResponse;
469
- createdAt?: string;
470
- startedAt?: string | null;
471
- completedAt?: string | null;
472
- errors: ErrorLogResponse[];
473
- summary: SummaryResponse[];
474
- externalProvider?: ExternalProvider | null;
475
- waiting?: WorkflowSetup | null;
476
- };
477
- export type StepTypeEnum = "action" | "workflow" | "plugin" | "suspend" | "run";
478
- export type UserResponse2 = {
479
- id: string;
480
- ip?: string | null;
481
- name: string;
482
- email: string | null;
483
- };
484
- export type StepResponse3 = {
485
- label: string;
486
- status: WorkflowExecutionStatus;
487
- conclusion: WorkflowExecutionConclusion | null;
488
- log?: string | null;
489
- "type": StepTypeEnum;
490
- startedAt?: string | null;
491
- completedAt?: string | null;
492
- completedBy?: UserResponse2 | null;
493
- };
494
- export type WorkflowJobDetailResponse = {
495
- label: string;
496
- status: WorkflowExecutionStatus;
497
- conclusion: WorkflowExecutionConclusion | null;
498
- steps: StepResponse3[];
499
- startedAt?: string | null;
500
- completedAt?: string | null;
501
- };
502
- export type TargetResponse = {
503
- id: string;
504
- "type": TargetType;
505
- name: string | null;
506
- description: string | null;
507
- };
508
- export type EnvResponse = {
509
- id: string;
510
- slug: string;
511
- };
512
- export type StepResponse4 = {
513
- id: string;
514
- cliState: {
515
- [key: string]: any;
516
- };
517
- status: WorkflowExecutionStatus;
518
- conclusion: WorkflowExecutionConclusion | null;
519
- jobs: JobResponse3[];
520
- };
521
- export type JobResponse3 = {
522
- id: string;
523
- status: WorkflowExecutionStatus;
524
- conclusion: WorkflowExecutionConclusion | null;
525
- steps: StepResponse4[];
526
- };
527
- export type WorkflowResponse3 = {
528
- name: string;
529
- "type": string;
530
- targets: TargetResponse[];
531
- inputs: {
532
- [key: string]: any | null;
533
- };
534
- env: EnvResponse | null;
535
- jobs: JobResponse3[];
536
- };
537
- export type WorkspaceResponse = {
538
- id: string;
539
- slug: string;
540
- };
541
- export type GetWorkflowExecutionCliStateResponse = {
542
- workflow: WorkflowResponse3;
543
- workspace: WorkspaceResponse | null;
544
- status: WorkflowExecutionStatus;
545
- conclusion: WorkflowExecutionConclusion | null;
546
- };
547
- export type WorkflowRequest = {
548
- name: string;
549
- label: string;
550
- "type": WorkflowType;
551
- inputs: {
552
- [key: string]: any | null;
553
- };
554
- targets: TargetRequest[];
555
- env?: EnvRequest | null;
556
- };
557
- export type DispatchWorkflowExecutionRequest = {
558
- workspace: WorkspaceRequest;
559
- workflow: WorkflowRequest;
560
- frontData?: {
561
- [key: string]: any;
562
- } | null;
563
- };
564
- export type PostWorkflowExecutionFailureRequest = {
565
- title: string;
566
- message: string;
567
- };
568
- export type PutWorkflowExecutionSummaryRequest = {
569
- title: string;
570
- message: string;
571
- };
572
- export type PutWorkflowScmExecutionRequest = {
573
- scmWorkflowExecutionId: string;
574
- };
575
- export type WorkflowExecutionAttemptMode = "all" | "failed";
576
- export type PostRetryWorkflowExecutionRequest = {
577
- mode: WorkflowExecutionAttemptMode;
578
- };
579
- export type UserResponse3 = {
580
- id: string;
581
- name: string;
582
- email: string | null;
583
- };
584
- export type WorkflowExecutionAttemptsResponse = {
585
- id: string;
586
- status: WorkflowExecutionStatus;
587
- conclusion: WorkflowExecutionConclusion | null;
588
- createdBy: UserResponse3;
589
- createdAt?: string;
590
- };
591
- export type WorkflowRequest2 = {
592
- name: string;
593
- label: string;
594
- "type": WorkflowType;
595
- inputs: {
596
- [key: string]: any | null;
597
- };
598
- targets?: TargetRequest[];
599
- env?: EnvRequest | null;
600
- };
601
- export type DispatchWorkflowExecutionRequest2 = {
602
- injectScmIntegration?: boolean;
603
- workspace?: WorkspaceRequest | null;
604
- workflow: WorkflowRequest2;
605
- frontData?: {
606
- [key: string]: any;
607
- } | null;
608
- };
609
- /**
610
- * Run Action Service
611
- */
612
- export function runActionServiceWorkflowsRunActionDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, runActionRequest }: {
613
- authorization: string;
614
- stackspotCustomerIp?: string;
615
- xExecutionId?: string | null;
616
- runActionRequest: RunActionRequest;
617
- }, opts?: Oazapfts.RequestOpts) {
618
- return oazapfts.ok(oazapfts.fetchJson<{
619
- status: 200;
620
- data: WorkflowResponse;
621
- } | {
622
- status: 400;
623
- data: HttpErrorResponse;
624
- } | {
625
- status: 401;
626
- data: HttpErrorResponse;
627
- } | {
628
- status: 404;
629
- data: HttpErrorResponse;
630
- } | {
631
- status: 422;
632
- } | {
633
- status: 500;
634
- data: HttpErrorResponse;
635
- } | {
636
- status: 503;
637
- data: HttpErrorResponse;
638
- }>("/workflows/run-action/dispatch", oazapfts.json({
639
- ...opts,
640
- method: "POST",
641
- body: runActionRequest,
642
- headers: oazapfts.mergeHeaders(opts?.headers, {
643
- authorization,
644
- "stackspot-customer-ip": stackspotCustomerIp,
645
- "x-execution-id": xExecutionId
646
- })
647
- })));
648
- }
649
- /**
650
- * Create App Service
651
- */
652
- export function createAppServiceWorkflowsCreateAppDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createAppRequest }: {
653
- authorization: string;
654
- stackspotCustomerIp?: string;
655
- xExecutionId?: string | null;
656
- createAppRequest: CreateAppRequest;
657
- }, opts?: Oazapfts.RequestOpts) {
658
- return oazapfts.ok(oazapfts.fetchJson<{
659
- status: 200;
660
- data: WorkflowResponse;
661
- } | {
662
- status: 400;
663
- data: HttpErrorResponse;
664
- } | {
665
- status: 401;
666
- data: HttpErrorResponse;
667
- } | {
668
- status: 404;
669
- data: HttpErrorResponse;
670
- } | {
671
- status: 422;
672
- } | {
673
- status: 500;
674
- data: HttpErrorResponse;
675
- } | {
676
- status: 503;
677
- data: HttpErrorResponse;
678
- }>("/workflows/create-app/dispatch", oazapfts.json({
679
- ...opts,
680
- method: "POST",
681
- body: createAppRequest,
682
- headers: oazapfts.mergeHeaders(opts?.headers, {
683
- authorization,
684
- "stackspot-customer-ip": stackspotCustomerIp,
685
- "x-execution-id": xExecutionId
686
- })
687
- })));
688
- }
689
- /**
690
- * Create Api Service
691
- */
692
- export function createApiServiceWorkflowsCreateApiDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createApiRequest }: {
693
- authorization: string;
694
- stackspotCustomerIp?: string;
695
- xExecutionId?: string | null;
696
- createApiRequest: CreateApiRequest;
697
- }, opts?: Oazapfts.RequestOpts) {
698
- return oazapfts.ok(oazapfts.fetchJson<{
699
- status: 200;
700
- data: WorkflowResponse;
701
- } | {
702
- status: 400;
703
- data: HttpErrorResponse;
704
- } | {
705
- status: 401;
706
- data: HttpErrorResponse;
707
- } | {
708
- status: 404;
709
- data: HttpErrorResponse;
710
- } | {
711
- status: 422;
712
- } | {
713
- status: 500;
714
- data: HttpErrorResponse;
715
- } | {
716
- status: 503;
717
- data: HttpErrorResponse;
718
- }>("/workflows/create-api/dispatch", oazapfts.json({
719
- ...opts,
720
- method: "POST",
721
- body: createApiRequest,
722
- headers: oazapfts.mergeHeaders(opts?.headers, {
723
- authorization,
724
- "stackspot-customer-ip": stackspotCustomerIp,
725
- "x-execution-id": xExecutionId
726
- })
727
- })));
728
- }
729
- /**
730
- * Create Infra Service
731
- */
732
- export function createInfraServiceWorkflowsCreateInfraDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createInfraRequest }: {
733
- authorization: string;
734
- stackspotCustomerIp?: string;
735
- xExecutionId?: string | null;
736
- createInfraRequest: CreateInfraRequest;
737
- }, opts?: Oazapfts.RequestOpts) {
738
- return oazapfts.ok(oazapfts.fetchJson<{
739
- status: 200;
740
- data: WorkflowResponse;
741
- } | {
742
- status: 400;
743
- data: HttpErrorResponse;
744
- } | {
745
- status: 401;
746
- data: HttpErrorResponse;
747
- } | {
748
- status: 404;
749
- data: HttpErrorResponse;
750
- } | {
751
- status: 422;
752
- } | {
753
- status: 500;
754
- data: HttpErrorResponse;
755
- } | {
756
- status: 503;
757
- data: HttpErrorResponse;
758
- }>("/workflows/create-infra/dispatch", oazapfts.json({
759
- ...opts,
760
- method: "POST",
761
- body: createInfraRequest,
762
- headers: oazapfts.mergeHeaders(opts?.headers, {
763
- authorization,
764
- "stackspot-customer-ip": stackspotCustomerIp,
765
- "x-execution-id": xExecutionId
766
- })
767
- })));
768
- }
769
- /**
770
- * Apply Plugin Service
771
- */
772
- export function applyPluginServiceWorkflowsApplyPluginDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, applyPluginRequest }: {
773
- authorization: string;
774
- stackspotCustomerIp?: string;
775
- xExecutionId?: string | null;
776
- applyPluginRequest: ApplyPluginRequest;
777
- }, opts?: Oazapfts.RequestOpts) {
778
- return oazapfts.ok(oazapfts.fetchJson<{
779
- status: 200;
780
- data: WorkflowResponse;
781
- } | {
782
- status: 400;
783
- data: HttpErrorResponse;
784
- } | {
785
- status: 401;
786
- data: HttpErrorResponse;
787
- } | {
788
- status: 404;
789
- data: HttpErrorResponse;
790
- } | {
791
- status: 422;
792
- } | {
793
- status: 500;
794
- data: HttpErrorResponse;
795
- } | {
796
- status: 503;
797
- data: HttpErrorResponse;
798
- }>("/workflows/apply-plugin/dispatch", oazapfts.json({
799
- ...opts,
800
- method: "POST",
801
- body: applyPluginRequest,
802
- headers: oazapfts.mergeHeaders(opts?.headers, {
803
- authorization,
804
- "stackspot-customer-ip": stackspotCustomerIp,
805
- "x-execution-id": xExecutionId
806
- })
807
- })));
808
- }
809
- /**
810
- * Health Check Service
811
- */
812
- export function healthCheckServiceWorkflowsHealthCheckDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, body }: {
813
- authorization: string;
814
- stackspotCustomerIp?: string;
815
- xExecutionId?: string | null;
816
- body?: HealthCheckRequest | null;
817
- }, opts?: Oazapfts.RequestOpts) {
818
- return oazapfts.ok(oazapfts.fetchJson<{
819
- status: 200;
820
- data: WorkflowResponse;
821
- } | {
822
- status: 400;
823
- data: HttpErrorResponse;
824
- } | {
825
- status: 401;
826
- data: HttpErrorResponse;
827
- } | {
828
- status: 404;
829
- data: HttpErrorResponse;
830
- } | {
831
- status: 422;
832
- } | {
833
- status: 500;
834
- data: HttpErrorResponse;
835
- } | {
836
- status: 503;
837
- data: HttpErrorResponse;
838
- }>("/workflows/health-check/dispatch", oazapfts.json({
839
- ...opts,
840
- method: "POST",
841
- body,
842
- headers: oazapfts.mergeHeaders(opts?.headers, {
843
- authorization,
844
- "stackspot-customer-ip": stackspotCustomerIp,
845
- "x-execution-id": xExecutionId
846
- })
847
- })));
848
- }
849
- /**
850
- * Step Report Service
851
- */
852
- export function stepReportServiceExecutionsExecutionIdWorkflowsStepsReportPost({ executionId, authorization, stepReportRequest }: {
853
- executionId: string;
854
- authorization: string;
855
- stepReportRequest: StepReportRequest;
856
- }, opts?: Oazapfts.RequestOpts) {
857
- return oazapfts.ok(oazapfts.fetchJson<{
858
- status: 200;
859
- data: any;
860
- } | {
861
- status: 400;
862
- data: HttpErrorResponse;
863
- } | {
864
- status: 401;
865
- data: HttpErrorResponse;
866
- } | {
867
- status: 404;
868
- data: HttpErrorResponse;
869
- } | {
870
- status: 422;
871
- } | {
872
- status: 500;
873
- data: HttpErrorResponse;
874
- } | {
875
- status: 503;
876
- data: HttpErrorResponse;
877
- }>(`/executions/${encodeURIComponent(executionId)}/workflows/steps/report`, oazapfts.json({
878
- ...opts,
879
- method: "POST",
880
- body: stepReportRequest,
881
- headers: oazapfts.mergeHeaders(opts?.headers, {
882
- authorization
883
- })
884
- })));
885
- }
886
- /**
887
- * Get Execution Dispatch Request Service
888
- */
889
- export function getExecutionDispatchRequestServiceWorkflowsExecutionIdRequestGet({ executionId, authorization }: {
890
- executionId: string;
891
- authorization: string;
892
- }, opts?: Oazapfts.RequestOpts) {
893
- return oazapfts.ok(oazapfts.fetchJson<{
894
- status: 200;
895
- data: any;
896
- } | {
897
- status: 422;
898
- data: HttpValidationError;
899
- }>(`/workflows/${encodeURIComponent(executionId)}/request`, {
900
- ...opts,
901
- headers: oazapfts.mergeHeaders(opts?.headers, {
902
- authorization
903
- })
904
- }));
905
- }
906
- /**
907
- * Get Execution Status Service
908
- */
909
- export function getExecutionStatusServiceWorkflowsExecutionStatusExecutionIdGet({ executionId, authorization }: {
910
- executionId: string;
911
- authorization: string;
912
- }, opts?: Oazapfts.RequestOpts) {
913
- return oazapfts.ok(oazapfts.fetchJson<{
914
- status: 200;
915
- data: ExecutionResponse;
916
- } | {
917
- status: 400;
918
- data: HttpErrorResponse;
919
- } | {
920
- status: 401;
921
- data: HttpErrorResponse;
922
- } | {
923
- status: 404;
924
- data: HttpErrorResponse;
925
- } | {
926
- status: 422;
927
- } | {
928
- status: 500;
929
- data: HttpErrorResponse;
930
- } | {
931
- status: 503;
932
- data: HttpErrorResponse;
933
- }>(`/workflows/execution-status/${encodeURIComponent(executionId)}`, {
934
- ...opts,
935
- headers: oazapfts.mergeHeaders(opts?.headers, {
936
- authorization
937
- })
938
- }));
939
- }
940
- /**
941
- * Create Semaphore Service
942
- */
943
- export function createSemaphoreServiceSemaphoresPost({ authorization }: {
944
- authorization: string;
945
- }, opts?: Oazapfts.RequestOpts) {
946
- return oazapfts.ok(oazapfts.fetchJson<{
947
- status: 200;
948
- data: CreateSemaphoreResponse;
949
- } | {
950
- status: 400;
951
- data: HttpErrorResponse;
952
- } | {
953
- status: 401;
954
- data: HttpErrorResponse;
955
- } | {
956
- status: 404;
957
- data: HttpErrorResponse;
958
- } | {
959
- status: 422;
960
- } | {
961
- status: 500;
962
- data: HttpErrorResponse;
963
- } | {
964
- status: 503;
965
- data: HttpErrorResponse;
966
- }>("/semaphores", {
967
- ...opts,
968
- method: "POST",
969
- headers: oazapfts.mergeHeaders(opts?.headers, {
970
- authorization
971
- })
972
- }));
973
- }
974
- /**
975
- * Get Semaphore Service
976
- */
977
- export function getSemaphoreServiceSemaphoresSemaphoreIdGet({ semaphoreId, authorization }: {
978
- semaphoreId: string;
979
- authorization: string;
980
- }, opts?: Oazapfts.RequestOpts) {
981
- return oazapfts.ok(oazapfts.fetchJson<{
982
- status: 200;
983
- data: GetSemaphoreResponse;
984
- } | {
985
- status: 400;
986
- data: HttpErrorResponse;
987
- } | {
988
- status: 401;
989
- data: HttpErrorResponse;
990
- } | {
991
- status: 404;
992
- data: HttpErrorResponse;
993
- } | {
994
- status: 422;
995
- } | {
996
- status: 500;
997
- data: HttpErrorResponse;
998
- } | {
999
- status: 503;
1000
- data: HttpErrorResponse;
1001
- }>(`/semaphores/${encodeURIComponent(semaphoreId)}`, {
1002
- ...opts,
1003
- headers: oazapfts.mergeHeaders(opts?.headers, {
1004
- authorization
1005
- })
1006
- }));
1007
- }
1008
- /**
1009
- * Update Semaphore Service
1010
- */
1011
- export function updateSemaphoreServiceSemaphoresSemaphoreIdPut({ semaphoreId, authorization, updateSemaphoreRequest }: {
1012
- semaphoreId: string;
1013
- authorization: string;
1014
- updateSemaphoreRequest: UpdateSemaphoreRequest;
1015
- }, opts?: Oazapfts.RequestOpts) {
1016
- return oazapfts.ok(oazapfts.fetchJson<{
1017
- status: 200;
1018
- data: any;
1019
- } | {
1020
- status: 400;
1021
- data: HttpErrorResponse;
1022
- } | {
1023
- status: 401;
1024
- data: HttpErrorResponse;
1025
- } | {
1026
- status: 404;
1027
- data: HttpErrorResponse;
1028
- } | {
1029
- status: 422;
1030
- } | {
1031
- status: 500;
1032
- data: HttpErrorResponse;
1033
- } | {
1034
- status: 503;
1035
- data: HttpErrorResponse;
1036
- }>(`/semaphores/${encodeURIComponent(semaphoreId)}`, oazapfts.json({
1037
- ...opts,
1038
- method: "PUT",
1039
- body: updateSemaphoreRequest,
1040
- headers: oazapfts.mergeHeaders(opts?.headers, {
1041
- authorization
1042
- })
1043
- })));
1044
- }
1045
- /**
1046
- * V1 Create Workflow Execution Service
1047
- */
1048
- export function v1CreateWorkflowExecutionServiceV1ExecutionsPost({ authorization, stackspotCustomerIp, createWorkflowExecutionRequest }: {
1049
- authorization: string;
1050
- stackspotCustomerIp?: string;
1051
- createWorkflowExecutionRequest: CreateWorkflowExecutionRequest;
1052
- }, opts?: Oazapfts.RequestOpts) {
1053
- return oazapfts.ok(oazapfts.fetchJson<{
1054
- status: 200;
1055
- } | {
1056
- status: 201;
1057
- data: WorkflowExecutionResponse;
1058
- } | {
1059
- status: 400;
1060
- data: HttpErrorResponse;
1061
- } | {
1062
- status: 401;
1063
- data: HttpErrorResponse;
1064
- } | {
1065
- status: 404;
1066
- data: HttpErrorResponse;
1067
- } | {
1068
- status: 422;
1069
- } | {
1070
- status: 500;
1071
- data: HttpErrorResponse;
1072
- } | {
1073
- status: 503;
1074
- data: HttpErrorResponse;
1075
- }>("/v1/executions", oazapfts.json({
1076
- ...opts,
1077
- method: "POST",
1078
- body: createWorkflowExecutionRequest,
1079
- headers: oazapfts.mergeHeaders(opts?.headers, {
1080
- authorization,
1081
- "stackspot-customer-ip": stackspotCustomerIp
1082
- })
1083
- })));
1084
- }
1085
- /**
1086
- * V1 Put Workflow Execution Workflow Service
1087
- */
1088
- export function v1PutWorkflowExecutionWorkflowServiceV1ExecutionsExecutionIdWorkflowsPut({ executionId, authorization, createWorkflowExecutionWorkflowRequest }: {
1089
- executionId: string;
1090
- authorization: string;
1091
- createWorkflowExecutionWorkflowRequest: CreateWorkflowExecutionWorkflowRequest;
1092
- }, opts?: Oazapfts.RequestOpts) {
1093
- return oazapfts.ok(oazapfts.fetchJson<{
1094
- status: 200;
1095
- data: any;
1096
- } | {
1097
- status: 400;
1098
- data: HttpErrorResponse;
1099
- } | {
1100
- status: 401;
1101
- data: HttpErrorResponse;
1102
- } | {
1103
- status: 404;
1104
- data: HttpErrorResponse;
1105
- } | {
1106
- status: 422;
1107
- } | {
1108
- status: 500;
1109
- data: HttpErrorResponse;
1110
- } | {
1111
- status: 503;
1112
- data: HttpErrorResponse;
1113
- }>(`/v1/executions/${encodeURIComponent(executionId)}/workflows`, oazapfts.json({
1114
- ...opts,
1115
- method: "PUT",
1116
- body: createWorkflowExecutionWorkflowRequest,
1117
- headers: oazapfts.mergeHeaders(opts?.headers, {
1118
- authorization
1119
- })
1120
- })));
1121
- }
1122
- /**
1123
- * V1 Report Workflow Step Service
1124
- */
1125
- export function v1ReportWorkflowStepServiceV1ExecutionsExecutionIdStepsPut({ executionId, authorization, putWorkflowExecutionWorkflowStepRequest }: {
1126
- executionId: string;
1127
- authorization: string;
1128
- putWorkflowExecutionWorkflowStepRequest: PutWorkflowExecutionWorkflowStepRequest;
1129
- }, opts?: Oazapfts.RequestOpts) {
1130
- return oazapfts.ok(oazapfts.fetchJson<{
1131
- status: 200;
1132
- data: WorkflowExecutionResponse;
1133
- } | {
1134
- status: 400;
1135
- data: HttpErrorResponse;
1136
- } | {
1137
- status: 401;
1138
- data: HttpErrorResponse;
1139
- } | {
1140
- status: 404;
1141
- data: HttpErrorResponse;
1142
- } | {
1143
- status: 422;
1144
- } | {
1145
- status: 500;
1146
- data: HttpErrorResponse;
1147
- } | {
1148
- status: 503;
1149
- data: HttpErrorResponse;
1150
- }>(`/v1/executions/${encodeURIComponent(executionId)}/steps`, oazapfts.json({
1151
- ...opts,
1152
- method: "PUT",
1153
- body: putWorkflowExecutionWorkflowStepRequest,
1154
- headers: oazapfts.mergeHeaders(opts?.headers, {
1155
- authorization
1156
- })
1157
- })));
1158
- }
1159
- /**
1160
- * V1 Report Workflow Step Log Service
1161
- */
1162
- export function v1ReportWorkflowStepLogServiceV1ExecutionsExecutionIdStepsLogsPut({ executionId, authorization, putWorkflowExecutionWorkflowStepLogRequest }: {
1163
- executionId: string;
1164
- authorization: string;
1165
- putWorkflowExecutionWorkflowStepLogRequest: PutWorkflowExecutionWorkflowStepLogRequest;
1166
- }, opts?: Oazapfts.RequestOpts) {
1167
- return oazapfts.ok(oazapfts.fetchJson<{
1168
- status: 200;
1169
- data: any;
1170
- } | {
1171
- status: 400;
1172
- data: HttpErrorResponse;
1173
- } | {
1174
- status: 401;
1175
- data: HttpErrorResponse;
1176
- } | {
1177
- status: 404;
1178
- data: HttpErrorResponse;
1179
- } | {
1180
- status: 422;
1181
- } | {
1182
- status: 500;
1183
- data: HttpErrorResponse;
1184
- } | {
1185
- status: 503;
1186
- data: HttpErrorResponse;
1187
- }>(`/v1/executions/${encodeURIComponent(executionId)}/steps/logs`, oazapfts.json({
1188
- ...opts,
1189
- method: "PUT",
1190
- body: putWorkflowExecutionWorkflowStepLogRequest,
1191
- headers: oazapfts.mergeHeaders(opts?.headers, {
1192
- authorization
1193
- })
1194
- })));
1195
- }
1196
- /**
1197
- * V1 Get Workflow Execution Job Graph Service
1198
- */
1199
- export function v1GetWorkflowExecutionJobGraphServiceV1ExecutionsExecutionIdGet({ executionId, authorization }: {
1200
- executionId: string;
1201
- authorization: string;
1202
- }, opts?: Oazapfts.RequestOpts) {
1203
- return oazapfts.ok(oazapfts.fetchJson<{
1204
- status: 200;
1205
- data: GetWorkflowExecutionJobGraphResponse;
1206
- } | {
1207
- status: 400;
1208
- data: HttpErrorResponse;
1209
- } | {
1210
- status: 401;
1211
- data: HttpErrorResponse;
1212
- } | {
1213
- status: 404;
1214
- data: HttpErrorResponse;
1215
- } | {
1216
- status: 422;
1217
- } | {
1218
- status: 500;
1219
- data: HttpErrorResponse;
1220
- } | {
1221
- status: 503;
1222
- data: HttpErrorResponse;
1223
- }>(`/v1/executions/${encodeURIComponent(executionId)}`, {
1224
- ...opts,
1225
- headers: oazapfts.mergeHeaders(opts?.headers, {
1226
- authorization
1227
- })
1228
- }));
1229
- }
1230
- /**
1231
- * V1 Get Workflow Execution Job Detail Service
1232
- */
1233
- export function v1GetWorkflowExecutionJobDetailServiceV1ExecutionsExecutionIdJobsJobIdGet({ executionId, jobId, authorization }: {
1234
- executionId: string;
1235
- jobId: string;
1236
- authorization: string;
1237
- }, opts?: Oazapfts.RequestOpts) {
1238
- return oazapfts.ok(oazapfts.fetchJson<{
1239
- status: 200;
1240
- data: WorkflowJobDetailResponse;
1241
- } | {
1242
- status: 400;
1243
- data: HttpErrorResponse;
1244
- } | {
1245
- status: 401;
1246
- data: HttpErrorResponse;
1247
- } | {
1248
- status: 404;
1249
- data: HttpErrorResponse;
1250
- } | {
1251
- status: 422;
1252
- } | {
1253
- status: 500;
1254
- data: HttpErrorResponse;
1255
- } | {
1256
- status: 503;
1257
- data: HttpErrorResponse;
1258
- }>(`/v1/executions/${encodeURIComponent(executionId)}/jobs/${encodeURIComponent(jobId)}`, {
1259
- ...opts,
1260
- headers: oazapfts.mergeHeaders(opts?.headers, {
1261
- authorization
1262
- })
1263
- }));
1264
- }
1265
- /**
1266
- * V1 Accept Workflow Execution Job Suspended Service
1267
- */
1268
- export function v1AcceptWorkflowExecutionJobSuspendedServiceV1ExecutionsExecutionIdJobsJobIdAcceptPost({ executionId, jobId, authorization, stackspotCustomerIp }: {
1269
- executionId: string;
1270
- jobId: string;
1271
- authorization: string;
1272
- stackspotCustomerIp?: string;
1273
- }, opts?: Oazapfts.RequestOpts) {
1274
- return oazapfts.ok(oazapfts.fetchJson<{
1275
- status: 200;
1276
- data: GetWorkflowExecutionJobGraphResponse;
1277
- } | {
1278
- status: 400;
1279
- data: HttpErrorResponse;
1280
- } | {
1281
- status: 401;
1282
- data: HttpErrorResponse;
1283
- } | {
1284
- status: 404;
1285
- data: HttpErrorResponse;
1286
- } | {
1287
- status: 422;
1288
- } | {
1289
- status: 500;
1290
- data: HttpErrorResponse;
1291
- } | {
1292
- status: 503;
1293
- data: HttpErrorResponse;
1294
- }>(`/v1/executions/${encodeURIComponent(executionId)}/jobs/${encodeURIComponent(jobId)}/accept`, {
1295
- ...opts,
1296
- method: "POST",
1297
- headers: oazapfts.mergeHeaders(opts?.headers, {
1298
- authorization,
1299
- "stackspot-customer-ip": stackspotCustomerIp
1300
- })
1301
- }));
1302
- }
1303
- /**
1304
- * V1 Refuse Workflow Execution Job Suspended Service
1305
- */
1306
- export function v1RefuseWorkflowExecutionJobSuspendedServiceV1ExecutionsExecutionIdJobsJobIdRefusePost({ executionId, jobId, authorization, stackspotCustomerIp }: {
1307
- executionId: string;
1308
- jobId: string;
1309
- authorization: string;
1310
- stackspotCustomerIp?: string;
1311
- }, opts?: Oazapfts.RequestOpts) {
1312
- return oazapfts.ok(oazapfts.fetchJson<{
1313
- status: 200;
1314
- data: GetWorkflowExecutionJobGraphResponse;
1315
- } | {
1316
- status: 400;
1317
- data: HttpErrorResponse;
1318
- } | {
1319
- status: 401;
1320
- data: HttpErrorResponse;
1321
- } | {
1322
- status: 404;
1323
- data: HttpErrorResponse;
1324
- } | {
1325
- status: 422;
1326
- } | {
1327
- status: 500;
1328
- data: HttpErrorResponse;
1329
- } | {
1330
- status: 503;
1331
- data: HttpErrorResponse;
1332
- }>(`/v1/executions/${encodeURIComponent(executionId)}/jobs/${encodeURIComponent(jobId)}/refuse`, {
1333
- ...opts,
1334
- method: "POST",
1335
- headers: oazapfts.mergeHeaders(opts?.headers, {
1336
- authorization,
1337
- "stackspot-customer-ip": stackspotCustomerIp
1338
- })
1339
- }));
1340
- }
1341
- /**
1342
- * V1 Get Workflow Execution Cli State Service
1343
- */
1344
- export function v1GetWorkflowExecutionCliStateServiceV1ExecutionsExecutionIdStateGet({ executionId, authorization }: {
1345
- executionId: string;
1346
- authorization: string;
1347
- }, opts?: Oazapfts.RequestOpts) {
1348
- return oazapfts.ok(oazapfts.fetchJson<{
1349
- status: 200;
1350
- data: GetWorkflowExecutionCliStateResponse;
1351
- } | {
1352
- status: 400;
1353
- data: HttpErrorResponse;
1354
- } | {
1355
- status: 401;
1356
- data: HttpErrorResponse;
1357
- } | {
1358
- status: 404;
1359
- data: HttpErrorResponse;
1360
- } | {
1361
- status: 422;
1362
- } | {
1363
- status: 500;
1364
- data: HttpErrorResponse;
1365
- } | {
1366
- status: 503;
1367
- data: HttpErrorResponse;
1368
- }>(`/v1/executions/${encodeURIComponent(executionId)}/state`, {
1369
- ...opts,
1370
- headers: oazapfts.mergeHeaders(opts?.headers, {
1371
- authorization
1372
- })
1373
- }));
1374
- }
1375
- /**
1376
- * V1 Dispatch Workflow Execution Service
1377
- */
1378
- export function v1DispatchWorkflowExecutionServiceV1WorkflowsDispatchPost({ authorization, stackspotCustomerIp, srcPresentationApiRestServicesWorkflowsV1RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest }: {
1379
- authorization: string;
1380
- stackspotCustomerIp?: string;
1381
- srcPresentationApiRestServicesWorkflowsV1RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest: DispatchWorkflowExecutionRequest;
1382
- }, opts?: Oazapfts.RequestOpts) {
1383
- return oazapfts.ok(oazapfts.fetchJson<{
1384
- status: 200;
1385
- data: WorkflowExecutionResponse;
1386
- } | {
1387
- status: 400;
1388
- data: HttpErrorResponse;
1389
- } | {
1390
- status: 401;
1391
- data: HttpErrorResponse;
1392
- } | {
1393
- status: 404;
1394
- data: HttpErrorResponse;
1395
- } | {
1396
- status: 422;
1397
- } | {
1398
- status: 500;
1399
- data: HttpErrorResponse;
1400
- } | {
1401
- status: 503;
1402
- data: HttpErrorResponse;
1403
- }>("/v1/workflows/dispatch", oazapfts.json({
1404
- ...opts,
1405
- method: "POST",
1406
- body: srcPresentationApiRestServicesWorkflowsV1RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest,
1407
- headers: oazapfts.mergeHeaders(opts?.headers, {
1408
- authorization,
1409
- "stackspot-customer-ip": stackspotCustomerIp
1410
- })
1411
- })));
1412
- }
1413
- /**
1414
- * V1 Post Workflow Execution Failure Service
1415
- */
1416
- export function v1PostWorkflowExecutionFailureServiceV1ExecutionsExecutionIdFailurePost({ executionId, authorization, postWorkflowExecutionFailureRequest }: {
1417
- executionId: string;
1418
- authorization: string;
1419
- postWorkflowExecutionFailureRequest: PostWorkflowExecutionFailureRequest;
1420
- }, opts?: Oazapfts.RequestOpts) {
1421
- return oazapfts.ok(oazapfts.fetchJson<{
1422
- status: 200;
1423
- data: any;
1424
- } | {
1425
- status: 400;
1426
- data: HttpErrorResponse;
1427
- } | {
1428
- status: 401;
1429
- data: HttpErrorResponse;
1430
- } | {
1431
- status: 404;
1432
- data: HttpErrorResponse;
1433
- } | {
1434
- status: 422;
1435
- } | {
1436
- status: 500;
1437
- data: HttpErrorResponse;
1438
- } | {
1439
- status: 503;
1440
- data: HttpErrorResponse;
1441
- }>(`/v1/executions/${encodeURIComponent(executionId)}/failure`, oazapfts.json({
1442
- ...opts,
1443
- method: "POST",
1444
- body: postWorkflowExecutionFailureRequest,
1445
- headers: oazapfts.mergeHeaders(opts?.headers, {
1446
- authorization
1447
- })
1448
- })));
1449
- }
1450
- /**
1451
- * V1 Post Workflow Execution Signal Service
1452
- */
1453
- export function v1PostWorkflowExecutionSignalServiceV1AccountsAccountSlugExecutionsExecutionIdSignalSignalPost({ executionId, signal, accountSlug }: {
1454
- executionId: string;
1455
- signal: WorkflowSetup;
1456
- accountSlug: string;
1457
- }, opts?: Oazapfts.RequestOpts) {
1458
- return oazapfts.ok(oazapfts.fetchJson<{
1459
- status: 200;
1460
- data: any;
1461
- } | {
1462
- status: 400;
1463
- data: HttpErrorResponse;
1464
- } | {
1465
- status: 401;
1466
- data: HttpErrorResponse;
1467
- } | {
1468
- status: 404;
1469
- data: HttpErrorResponse;
1470
- } | {
1471
- status: 422;
1472
- } | {
1473
- status: 500;
1474
- data: HttpErrorResponse;
1475
- } | {
1476
- status: 503;
1477
- data: HttpErrorResponse;
1478
- }>(`/v1/accounts/${encodeURIComponent(accountSlug)}/executions/${encodeURIComponent(executionId)}/signal/${encodeURIComponent(signal)}`, {
1479
- ...opts,
1480
- method: "POST"
1481
- }));
1482
- }
1483
- /**
1484
- * V1 Put Workflow Execution Summary Service
1485
- */
1486
- export function v1PutWorkflowExecutionSummaryServiceV1ExecutionsExecutionIdSummaryPut({ executionId, authorization, putWorkflowExecutionSummaryRequest }: {
1487
- executionId: string;
1488
- authorization: string;
1489
- putWorkflowExecutionSummaryRequest: PutWorkflowExecutionSummaryRequest;
1490
- }, opts?: Oazapfts.RequestOpts) {
1491
- return oazapfts.ok(oazapfts.fetchJson<{
1492
- status: 200;
1493
- data: any;
1494
- } | {
1495
- status: 400;
1496
- data: HttpErrorResponse;
1497
- } | {
1498
- status: 401;
1499
- data: HttpErrorResponse;
1500
- } | {
1501
- status: 404;
1502
- data: HttpErrorResponse;
1503
- } | {
1504
- status: 422;
1505
- } | {
1506
- status: 500;
1507
- data: HttpErrorResponse;
1508
- } | {
1509
- status: 503;
1510
- data: HttpErrorResponse;
1511
- }>(`/v1/executions/${encodeURIComponent(executionId)}/summary`, oazapfts.json({
1512
- ...opts,
1513
- method: "PUT",
1514
- body: putWorkflowExecutionSummaryRequest,
1515
- headers: oazapfts.mergeHeaders(opts?.headers, {
1516
- authorization
1517
- })
1518
- })));
1519
- }
1520
- /**
1521
- * V1 Put Workflow Scm Execution Id
1522
- */
1523
- export function v1PutWorkflowScmExecutionIdV1ExecutionsExecutionIdBindScmPut({ executionId, authorization, putWorkflowScmExecutionRequest }: {
1524
- executionId: string;
1525
- authorization: string;
1526
- putWorkflowScmExecutionRequest: PutWorkflowScmExecutionRequest;
1527
- }, opts?: Oazapfts.RequestOpts) {
1528
- return oazapfts.ok(oazapfts.fetchJson<{
1529
- status: 200;
1530
- data: any;
1531
- } | {
1532
- status: 400;
1533
- data: HttpErrorResponse;
1534
- } | {
1535
- status: 401;
1536
- data: HttpErrorResponse;
1537
- } | {
1538
- status: 404;
1539
- data: HttpErrorResponse;
1540
- } | {
1541
- status: 422;
1542
- } | {
1543
- status: 500;
1544
- data: HttpErrorResponse;
1545
- } | {
1546
- status: 503;
1547
- data: HttpErrorResponse;
1548
- }>(`/v1/executions/${encodeURIComponent(executionId)}/bind-scm`, oazapfts.json({
1549
- ...opts,
1550
- method: "PUT",
1551
- body: putWorkflowScmExecutionRequest,
1552
- headers: oazapfts.mergeHeaders(opts?.headers, {
1553
- authorization
1554
- })
1555
- })));
1556
- }
1557
- /**
1558
- * V1 Retry Workflow Execution
1559
- */
1560
- export function v1RetryWorkflowExecutionV1ExecutionsExecutionIdRetryPost({ executionId, authorization, stackspotCustomerIp, postRetryWorkflowExecutionRequest }: {
1561
- executionId: string;
1562
- authorization: string;
1563
- stackspotCustomerIp?: string;
1564
- postRetryWorkflowExecutionRequest: PostRetryWorkflowExecutionRequest;
1565
- }, opts?: Oazapfts.RequestOpts) {
1566
- return oazapfts.ok(oazapfts.fetchJson<{
1567
- status: 200;
1568
- data: WorkflowExecutionResponse;
1569
- } | {
1570
- status: 400;
1571
- data: HttpErrorResponse;
1572
- } | {
1573
- status: 401;
1574
- data: HttpErrorResponse;
1575
- } | {
1576
- status: 404;
1577
- data: HttpErrorResponse;
1578
- } | {
1579
- status: 422;
1580
- } | {
1581
- status: 500;
1582
- data: HttpErrorResponse;
1583
- } | {
1584
- status: 503;
1585
- data: HttpErrorResponse;
1586
- }>(`/v1/executions/${encodeURIComponent(executionId)}/retry`, oazapfts.json({
1587
- ...opts,
1588
- method: "POST",
1589
- body: postRetryWorkflowExecutionRequest,
1590
- headers: oazapfts.mergeHeaders(opts?.headers, {
1591
- authorization,
1592
- "stackspot-customer-ip": stackspotCustomerIp
1593
- })
1594
- })));
1595
- }
1596
- /**
1597
- * V1 Get Workflow Execution Attempts
1598
- */
1599
- export function v1GetWorkflowExecutionAttemptsV1ExecutionsExecutionIdAttemptsGet({ executionId, authorization }: {
1600
- executionId: string;
1601
- authorization: string;
1602
- }, opts?: Oazapfts.RequestOpts) {
1603
- return oazapfts.ok(oazapfts.fetchJson<{
1604
- status: 200;
1605
- data: WorkflowExecutionAttemptsResponse[];
1606
- } | {
1607
- status: 400;
1608
- data: HttpErrorResponse;
1609
- } | {
1610
- status: 401;
1611
- data: HttpErrorResponse;
1612
- } | {
1613
- status: 404;
1614
- data: HttpErrorResponse;
1615
- } | {
1616
- status: 422;
1617
- } | {
1618
- status: 500;
1619
- data: HttpErrorResponse;
1620
- } | {
1621
- status: 503;
1622
- data: HttpErrorResponse;
1623
- }>(`/v1/executions/${encodeURIComponent(executionId)}/attempts`, {
1624
- ...opts,
1625
- headers: oazapfts.mergeHeaders(opts?.headers, {
1626
- authorization
1627
- })
1628
- }));
1629
- }
1630
- /**
1631
- * V2 Dispatch Workflow Execution Service
1632
- */
1633
- export function v2DispatchWorkflowExecutionServiceV2WorkflowsDispatchPost({ authorization, xUserAuthorization, stackspotCustomerIp, srcPresentationApiRestServicesWorkflowsV2RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest }: {
1634
- authorization: string;
1635
- xUserAuthorization: string;
1636
- stackspotCustomerIp?: string;
1637
- srcPresentationApiRestServicesWorkflowsV2RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest: DispatchWorkflowExecutionRequest2;
1638
- }, opts?: Oazapfts.RequestOpts) {
1639
- return oazapfts.ok(oazapfts.fetchJson<{
1640
- status: 200;
1641
- data: WorkflowExecutionResponse;
1642
- } | {
1643
- status: 400;
1644
- data: HttpErrorResponse;
1645
- } | {
1646
- status: 401;
1647
- data: HttpErrorResponse;
1648
- } | {
1649
- status: 404;
1650
- data: HttpErrorResponse;
1651
- } | {
1652
- status: 422;
1653
- } | {
1654
- status: 500;
1655
- data: HttpErrorResponse;
1656
- } | {
1657
- status: 503;
1658
- data: HttpErrorResponse;
1659
- }>("/v2/workflows/dispatch", oazapfts.json({
1660
- ...opts,
1661
- method: "POST",
1662
- body: srcPresentationApiRestServicesWorkflowsV2RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest,
1663
- headers: oazapfts.mergeHeaders(opts?.headers, {
1664
- authorization,
1665
- "x-user-authorization": xUserAuthorization,
1666
- "stackspot-customer-ip": stackspotCustomerIp
1667
- })
1668
- })));
1669
- }
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?: {
29
+ [key: string]: any;
30
+ };
31
+ inputsSensitive?: string[];
32
+ connections?: ActionConnectionRequest;
33
+ workspaceId: string;
34
+ env?: string | null;
35
+ origin: OriginRequest;
36
+ frontData?: {
37
+ [key: string]: any;
38
+ } | null;
39
+ };
40
+ export type WorkflowResponse = {
41
+ id: string;
42
+ logs: string;
43
+ };
44
+ export type ExceptionType = "ACTIONAPI_0000_UNEXPECTED_ERROR" | "ACTIONAPI_0003_INVALID_WORKFLOW_URL" | "ACTIONAPI_0004_WORKFLOW_NOT_IMPLEMENTED" | "ACTIONAPI_0005_WORKFLOW_SCRIPT_DOWNLOAD_UNAUTHORIZED" | "ACTIONAPI_0006_UPDATE_MAX_TRY" | "ACTIONAPI_2000_VALIDATION_ERROR" | "ACTIONAPI_5999_HTTP_UNEXPECTED_ERROR" | "ACTIONAPI_2200_NOT_FOUND" | "ACTIONAPI_2201_CONFLICT" | "ACTIONAPI_2202_OPERATION_NOT_ALLOWED" | "ACTIONAPI_2203_REFERENCE_NOT_FOUND" | "ACTIONAPI_2204_JOB_IS_NOT_VALID_REFERENCE" | "ACTIONAPI_2205_INVALID_REFERENCE_STEP_IS_NOT_WORKFLOW" | "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_E5150_ACCOUNT_SERVICE_GET_MEMBERS_FAILURE" | "ACTIONAPI_E5151_ACCOUNT_SERVICE_GET_MEMBERS_FORBIDDEN" | "ACTIONAPI_E5152_ACCOUNT_SERVICE_GET_MEMBERS_NOT_FOUND" | "ACTIONAPI_E5159_ACCOUNT_SERVICE_GET_MEMBERS_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E5160_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_FAILURE" | "ACTIONAPI_E5161_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_FORBIDDEN" | "ACTIONAPI_E5162_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_NOT_FOUND" | "ACTIONAPI_E5169_ACCOUNT_SERVICE_GET_SERVICE_CREDENTIALS_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_E5310_WORKSPACE_SERVICE_GET_APP_FAILURE" | "ACTIONAPI_E5311_WORKSPACE_SERVICE_GET_APP_FORBIDDEN" | "ACTIONAPI_E5312_WORKSPACE_SERVICE_GET_APP_NOT_FOUND" | "ACTIONAPI_E5319_WORKSPACE_SERVICE_GET_APP_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_5520_GITLAB_LIST_TRIGGERS_FAILURE" | "ACTIONAPI_5522_GITLAB_LIST_TRIGGERS_UNAUTHORIZED" | "ACTIONAPI_5529_GITLAB_LIST_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_5700_SECRETS_SERVICE_ENCRYPT_FAILURE" | "ACTIONAPI_5701_SECRETS_SERVICE_ENCRYPT_NOT_FOUND" | "ACTIONAPI_5702_SECRETS_SERVICE_ENCRYPT_FORBIDDEN" | "ACTIONAPI_5709_SECRETS_SERVICE_ENCRYPT_RESPONSE_PARSE_ERROR" | "ACTIONAPI_E5800_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_FAILURE" | "ACTIONAPI_E5801_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_FORBIDDEN" | "ACTIONAPI_E5802_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_NOT_FOUND" | "ACTIONAPI_E5809_RUNTIME_MANAGER_CANCEL_SELF_HOSTED_RUN_RESPONSE_PARSE_ERROR";
45
+ 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_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "ACTIONAPI_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "ACTIONAPI_2999_BAD_REQUEST_UNMAPPED";
46
+ export type InvalidPayloadDetails = {
47
+ code: BadRequestExceptionTypes;
48
+ field: string | null;
49
+ };
50
+ export type HttpErrorResponse = {
51
+ status: string;
52
+ code: ExceptionType;
53
+ details: string;
54
+ validationDetails?: InvalidPayloadDetails[] | null;
55
+ };
56
+ export type OriginRequest2 = {
57
+ id: string;
58
+ };
59
+ export type PluConnectionRequest = {
60
+ selected: string;
61
+ alias: string;
62
+ "type": string;
63
+ };
64
+ export type PluginConnectionsRequest = {
65
+ requires?: PluConnectionRequest[];
66
+ generates?: PluConnectionRequest[];
67
+ };
68
+ export type PluginRequest = {
69
+ name: string;
70
+ alias: string;
71
+ inputs?: {
72
+ [key: string]: any;
73
+ };
74
+ inputsSensitive?: string[];
75
+ inputsEnv?: {
76
+ [key: string]: {
77
+ [key: string]: any;
78
+ };
79
+ };
80
+ connections?: PluginConnectionsRequest;
81
+ };
82
+ export type AppRequest = {
83
+ starter: string;
84
+ name: string;
85
+ repo?: string | null;
86
+ description: string;
87
+ plugins: PluginRequest[];
88
+ };
89
+ export type ActConnectionRequest = {
90
+ selected: string;
91
+ alias: string;
92
+ };
93
+ export type ActionConnectionRequest2 = {
94
+ requires?: ActConnectionRequest[];
95
+ };
96
+ export type ActionRequest = {
97
+ name: string;
98
+ inputs?: {
99
+ [key: string]: any;
100
+ };
101
+ inputsSensitive?: string[];
102
+ repoCreate?: boolean;
103
+ connections?: ActionConnectionRequest2;
104
+ };
105
+ export type CreateAppRequest = {
106
+ workspaceId: string;
107
+ origin: OriginRequest2;
108
+ app: AppRequest;
109
+ actionsBefore?: ActionRequest[];
110
+ actionsAfter?: ActionRequest[];
111
+ originBranch?: string | null;
112
+ newBranch?: string | null;
113
+ frontData?: {
114
+ [key: string]: any;
115
+ } | null;
116
+ };
117
+ export type ApiRequest = {
118
+ id: string;
119
+ repo?: string | null;
120
+ };
121
+ export type ActionConnectionRequest3 = {
122
+ requires?: ActConnectionRequest[];
123
+ };
124
+ export type ActionRequest2 = {
125
+ name: string;
126
+ inputs?: {
127
+ [key: string]: any;
128
+ } | null;
129
+ inputsSensitive?: string[] | null;
130
+ repoCreate?: boolean | null;
131
+ connections?: ActionConnectionRequest3 | null;
132
+ };
133
+ export type CreateApiRequest = {
134
+ workspaceId: string;
135
+ api: ApiRequest;
136
+ actionsAfter?: ActionRequest2[];
137
+ actionsBefore?: ActionRequest2[];
138
+ originBranch?: string | null;
139
+ newBranch?: string | null;
140
+ frontData?: {
141
+ [key: string]: any;
142
+ } | null;
143
+ };
144
+ export type OriginRequest3 = {
145
+ id: string;
146
+ };
147
+ export type PluginConnectionsRequest2 = {
148
+ requires?: PluConnectionRequest[];
149
+ generates?: PluConnectionRequest[];
150
+ };
151
+ export type PluginRequest2 = {
152
+ name: string;
153
+ alias: string;
154
+ inputs?: {
155
+ [key: string]: any;
156
+ };
157
+ inputsSensitive?: string[];
158
+ inputsEnv?: {
159
+ [key: string]: {
160
+ [key: string]: any;
161
+ };
162
+ };
163
+ connections?: PluginConnectionsRequest2;
164
+ };
165
+ export type InfraRequest = {
166
+ stack: string;
167
+ starter?: string | null;
168
+ name: string;
169
+ repo?: string | null;
170
+ description: string;
171
+ plugins: PluginRequest2[];
172
+ };
173
+ export type ActionConnectionRequest4 = {
174
+ requires?: ActConnectionRequest[];
175
+ };
176
+ export type ActionRequest3 = {
177
+ name: string;
178
+ inputs?: {
179
+ [key: string]: any;
180
+ };
181
+ inputsSensitive?: string[];
182
+ repoCreate?: boolean;
183
+ connections?: ActionConnectionRequest4;
184
+ };
185
+ export type CreateInfraRequest = {
186
+ workspaceId: string;
187
+ origin: OriginRequest3;
188
+ infra: InfraRequest;
189
+ actionsBefore?: ActionRequest3[];
190
+ actionsAfter?: ActionRequest3[];
191
+ originBranch?: string | null;
192
+ newBranch?: string | null;
193
+ frontData?: {
194
+ [key: string]: any;
195
+ } | null;
196
+ };
197
+ export type OriginRequest4 = {
198
+ id: string;
199
+ "type": "SHARED_INFRA" | "APPLICATION";
200
+ };
201
+ export type PluginConnectionsRequest3 = {
202
+ requires?: ConnectionRequest[];
203
+ };
204
+ export type ApplyPluginRequest = {
205
+ workspaceId: string;
206
+ origin: OriginRequest4;
207
+ name: string;
208
+ alias: string;
209
+ repo: string;
210
+ connections?: PluginConnectionsRequest3;
211
+ inputs: {
212
+ [key: string]: any;
213
+ };
214
+ inputsEnv: {
215
+ [key: string]: {
216
+ [key: string]: any;
217
+ };
218
+ };
219
+ inputsSensitive: string[] | null;
220
+ originBranch?: string | null;
221
+ newBranch?: string | null;
222
+ frontData?: {
223
+ [key: string]: any;
224
+ } | null;
225
+ };
226
+ export type AuthorizationPat = {
227
+ user: string | null;
228
+ token: string;
229
+ };
230
+ export type AuthorizationGithubApp = {
231
+ app_id: string;
232
+ private_key: string;
233
+ installation_id: string;
234
+ };
235
+ export type Provider = "github_issues" | "github" | "azure" | "bitbucket" | "gitlab";
236
+ export type HealthCheckRequest = {
237
+ scm_auth?: AuthorizationPat | AuthorizationGithubApp | null;
238
+ workflow_url?: string | null;
239
+ provider?: Provider | null;
240
+ };
241
+ export type ConclusionStatus = "success" | "failure" | "skipped" | "cancelled" | "deleted" | "timeout" | null;
242
+ export type StepReportRequest = {
243
+ name: string;
244
+ conclusion: ConclusionStatus;
245
+ started_at: string;
246
+ completed_at: string;
247
+ log?: string | null;
248
+ };
249
+ export type ValidationError = {
250
+ loc: (string | number)[];
251
+ msg: string;
252
+ "type": string;
253
+ };
254
+ export type HttpValidationError = {
255
+ detail?: ValidationError[];
256
+ };
257
+ export type ExecutionStatus = "pending" | "in_progress" | "completed" | "timeout" | null;
258
+ export type ProviderDataResponse = {
259
+ htmlUrl?: string | null;
260
+ };
261
+ export type StepResponse = {
262
+ name: string;
263
+ /** (queued, in_progress, completed) */
264
+ status: ExecutionStatus;
265
+ startedAt?: string | null;
266
+ completedAt?: string | null;
267
+ conclusion?: ConclusionStatus | null;
268
+ log?: string | null;
269
+ };
270
+ export type JobResponse = {
271
+ name: string;
272
+ /** (queued, in_progress, completed) */
273
+ status: ExecutionStatus | null;
274
+ startedAt?: string | null;
275
+ completedAt?: string | null;
276
+ conclusion?: ConclusionStatus | null;
277
+ steps?: StepResponse[];
278
+ };
279
+ export type ExecutionResponse = {
280
+ executionId: string;
281
+ externalId?: string | null;
282
+ /** (pending, queued, in_progress, completed) */
283
+ status: ExecutionStatus | null;
284
+ conclusion?: ConclusionStatus | null;
285
+ providerData?: ProviderDataResponse | null;
286
+ jobs?: JobResponse[];
287
+ createdAt: string;
288
+ updatedAt?: string | null;
289
+ user_id?: string | null;
290
+ };
291
+ export type CreateSemaphoreResponse = {
292
+ id: string;
293
+ };
294
+ export type SemaphoreStatus = "pending" | "success" | "fail";
295
+ export type GetSemaphoreResponse = {
296
+ id: string;
297
+ created_at: string;
298
+ updated_at: string;
299
+ status: SemaphoreStatus;
300
+ details: string;
301
+ };
302
+ export type UpdateSemaphoreRequest = {
303
+ status: SemaphoreStatus;
304
+ details?: string;
305
+ };
306
+ export type WorkspaceRequest = {
307
+ id: string;
308
+ slug: string;
309
+ };
310
+ export type GitlabIntegrationRequest = {
311
+ projectId: string;
312
+ triggerDescription?: string;
313
+ triggerId?: string | null;
314
+ branch?: string | null;
315
+ apiDomain?: string;
316
+ };
317
+ export type GithubIntegrationRequest = {
318
+ workflowName?: string;
319
+ org: string;
320
+ repositoryName: string;
321
+ branch?: string | null;
322
+ };
323
+ export type AzureIntegrationRequest = {
324
+ pipelineName?: string;
325
+ org: string;
326
+ projectName: string;
327
+ };
328
+ export type ScmIntegrationRequest = {
329
+ gitlab?: GitlabIntegrationRequest | null;
330
+ github?: GithubIntegrationRequest | null;
331
+ azure?: AzureIntegrationRequest | null;
332
+ };
333
+ export type CreateWorkflowExecutionRequest = {
334
+ workspace?: WorkspaceRequest | null;
335
+ integration?: ScmIntegrationRequest | null;
336
+ };
337
+ export type WorkflowExecutionStatus = "pending" | "in_progress" | "completed" | "suspended";
338
+ export type WorkflowExecutionConclusion = "error" | "success" | "skipped" | "canceled";
339
+ export type WorkflowExecutionResponse = {
340
+ id: string;
341
+ status: WorkflowExecutionStatus;
342
+ conclusion: WorkflowExecutionConclusion | null;
343
+ webUrl: string;
344
+ };
345
+ export type WorkflowType = "starter" | "create" | "deploy" | "rollback" | "destroy" | "reusable";
346
+ export type StepWorkflowRequest = {
347
+ "type": "workflow";
348
+ jobs: JobRequest[];
349
+ };
350
+ export type StepActionRequest = {
351
+ "type": "action";
352
+ };
353
+ export type StepPluginRequest = {
354
+ "type": "plugin";
355
+ };
356
+ export type StepSuspendRequest = {
357
+ "type": "suspend";
358
+ checkRole?: boolean;
359
+ };
360
+ export type StepRunShellRequest = {
361
+ "type": "run";
362
+ };
363
+ export type StepRequest = {
364
+ id: string;
365
+ label?: string | null;
366
+ spec: StepWorkflowRequest | StepActionRequest | StepPluginRequest | StepSuspendRequest | StepRunShellRequest;
367
+ };
368
+ export type JobRequest = {
369
+ id: string;
370
+ label: string;
371
+ dependsOn?: string[];
372
+ steps: StepRequest[];
373
+ };
374
+ export type TargetType = "app" | "infra";
375
+ export type TargetRequest = {
376
+ id: string;
377
+ "type": TargetType;
378
+ name?: string | null;
379
+ description?: string | null;
380
+ };
381
+ export type EnvRequest = {
382
+ id: string;
383
+ slug: string;
384
+ };
385
+ export type CreateWorkflowExecutionWorkflowRequest = {
386
+ name: string;
387
+ label: string;
388
+ "type": WorkflowType;
389
+ inputs: {
390
+ [key: string]: any | null;
391
+ };
392
+ jobs: JobRequest[];
393
+ targets: TargetRequest[];
394
+ env?: EnvRequest | null;
395
+ };
396
+ export type PutWorkflowExecutionWorkflowStepRequest = {
397
+ reference: string;
398
+ status: WorkflowExecutionStatus;
399
+ conclusion?: WorkflowExecutionConclusion | null;
400
+ startedAt?: string | null;
401
+ completedAt?: string | null;
402
+ log?: string | null;
403
+ cliState?: {
404
+ [key: string]: any;
405
+ };
406
+ };
407
+ export type PutWorkflowExecutionWorkflowStepLogRequest = {
408
+ reference: string;
409
+ log: string;
410
+ };
411
+ export type UserResponse = {
412
+ id: string;
413
+ ip?: string | null;
414
+ name: string;
415
+ email: string | null;
416
+ };
417
+ export type StepResponse2 = {
418
+ label: string;
419
+ status: WorkflowExecutionStatus;
420
+ conclusion: WorkflowExecutionConclusion | null;
421
+ startedAt?: string | null;
422
+ completedAt?: string | null;
423
+ completedBy?: UserResponse | null;
424
+ };
425
+ export type JobResponse2 = {
426
+ label: string;
427
+ parentLabels: string[];
428
+ dependsOn?: string[];
429
+ status: WorkflowExecutionStatus;
430
+ conclusion: WorkflowExecutionConclusion | null;
431
+ startedAt?: string | null;
432
+ completedAt?: string | null;
433
+ suspendMessage?: string | null;
434
+ steps: StepResponse2[];
435
+ progress: number;
436
+ };
437
+ export type WorkflowResponse2 = {
438
+ name: string;
439
+ label: string;
440
+ "type": WorkflowType;
441
+ inputs: {
442
+ [key: string]: any | null;
443
+ };
444
+ jobs: {
445
+ [key: string]: JobResponse2;
446
+ };
447
+ progress: number;
448
+ };
449
+ export type ErrorLogResponse = {
450
+ title: string;
451
+ message: string;
452
+ };
453
+ export type SummaryResponse = {
454
+ title: string;
455
+ message: string;
456
+ };
457
+ export type ExternalProvider = {
458
+ externalWorkflowLink?: string | null;
459
+ orgName?: string | null;
460
+ externalWorkflowBaseLink?: string | null;
461
+ };
462
+ export type WorkflowSetup = "scm_runner" | "install_stk_cli";
463
+ export type GetWorkflowExecutionJobGraphResponse = {
464
+ id: string;
465
+ status: WorkflowExecutionStatus;
466
+ conclusion: WorkflowExecutionConclusion | null;
467
+ workflow?: WorkflowResponse2 | null;
468
+ createdBy: UserResponse;
469
+ createdAt?: string;
470
+ startedAt?: string | null;
471
+ completedAt?: string | null;
472
+ errors: ErrorLogResponse[];
473
+ summary: SummaryResponse[];
474
+ externalProvider?: ExternalProvider | null;
475
+ waiting?: WorkflowSetup | null;
476
+ };
477
+ export type StepTypeEnum = "action" | "workflow" | "plugin" | "suspend" | "run";
478
+ export type UserResponse2 = {
479
+ id: string;
480
+ ip?: string | null;
481
+ name: string;
482
+ email: string | null;
483
+ };
484
+ export type StepResponse3 = {
485
+ label: string;
486
+ status: WorkflowExecutionStatus;
487
+ conclusion: WorkflowExecutionConclusion | null;
488
+ log?: string | null;
489
+ "type": StepTypeEnum;
490
+ startedAt?: string | null;
491
+ completedAt?: string | null;
492
+ completedBy?: UserResponse2 | null;
493
+ };
494
+ export type WorkflowJobDetailResponse = {
495
+ label: string;
496
+ status: WorkflowExecutionStatus;
497
+ conclusion: WorkflowExecutionConclusion | null;
498
+ steps: StepResponse3[];
499
+ startedAt?: string | null;
500
+ completedAt?: string | null;
501
+ };
502
+ export type TargetResponse = {
503
+ id: string;
504
+ "type": TargetType;
505
+ name: string | null;
506
+ description: string | null;
507
+ };
508
+ export type EnvResponse = {
509
+ id: string;
510
+ slug: string;
511
+ };
512
+ export type StepResponse4 = {
513
+ id: string;
514
+ cliState: {
515
+ [key: string]: any;
516
+ };
517
+ status: WorkflowExecutionStatus;
518
+ conclusion: WorkflowExecutionConclusion | null;
519
+ jobs: JobResponse3[];
520
+ };
521
+ export type JobResponse3 = {
522
+ id: string;
523
+ status: WorkflowExecutionStatus;
524
+ conclusion: WorkflowExecutionConclusion | null;
525
+ steps: StepResponse4[];
526
+ };
527
+ export type WorkflowResponse3 = {
528
+ name: string;
529
+ "type": string;
530
+ targets: TargetResponse[];
531
+ inputs: {
532
+ [key: string]: any | null;
533
+ };
534
+ env: EnvResponse | null;
535
+ jobs: JobResponse3[];
536
+ };
537
+ export type WorkspaceResponse = {
538
+ id: string;
539
+ slug: string;
540
+ };
541
+ export type GetWorkflowExecutionCliStateResponse = {
542
+ workflow: WorkflowResponse3;
543
+ workspace: WorkspaceResponse | null;
544
+ status: WorkflowExecutionStatus;
545
+ conclusion: WorkflowExecutionConclusion | null;
546
+ };
547
+ export type WorkflowRequest = {
548
+ name: string;
549
+ label: string;
550
+ "type": WorkflowType;
551
+ inputs: {
552
+ [key: string]: any | null;
553
+ };
554
+ targets: TargetRequest[];
555
+ env?: EnvRequest | null;
556
+ };
557
+ export type DispatchWorkflowExecutionRequest = {
558
+ workspace: WorkspaceRequest;
559
+ workflow: WorkflowRequest;
560
+ frontData?: {
561
+ [key: string]: any;
562
+ } | null;
563
+ };
564
+ export type PostWorkflowExecutionFailureRequest = {
565
+ title: string;
566
+ message: string;
567
+ };
568
+ export type PutWorkflowExecutionSummaryRequest = {
569
+ title: string;
570
+ message: string;
571
+ };
572
+ export type PutWorkflowScmExecutionRequest = {
573
+ scmWorkflowExecutionId: string;
574
+ };
575
+ export type WorkflowExecutionAttemptMode = "all" | "failed";
576
+ export type PostRetryWorkflowExecutionRequest = {
577
+ mode: WorkflowExecutionAttemptMode;
578
+ };
579
+ export type UserResponse3 = {
580
+ id: string;
581
+ name: string;
582
+ email: string | null;
583
+ };
584
+ export type WorkflowExecutionAttemptsResponse = {
585
+ id: string;
586
+ status: WorkflowExecutionStatus;
587
+ conclusion: WorkflowExecutionConclusion | null;
588
+ createdBy: UserResponse3;
589
+ createdAt?: string;
590
+ };
591
+ export type WorkflowRequest2 = {
592
+ name: string;
593
+ label: string;
594
+ "type": WorkflowType;
595
+ inputs: {
596
+ [key: string]: any | null;
597
+ };
598
+ targets?: TargetRequest[];
599
+ env?: EnvRequest | null;
600
+ };
601
+ export type DispatchWorkflowExecutionRequest2 = {
602
+ injectScmIntegration?: boolean;
603
+ workspace?: WorkspaceRequest | null;
604
+ workflow: WorkflowRequest2;
605
+ frontData?: {
606
+ [key: string]: any;
607
+ } | null;
608
+ };
609
+ /**
610
+ * Run Action Service
611
+ */
612
+ export function runActionServiceWorkflowsRunActionDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, runActionRequest }: {
613
+ authorization: string;
614
+ stackspotCustomerIp?: string;
615
+ xExecutionId?: string | null;
616
+ runActionRequest: RunActionRequest;
617
+ }, opts?: Oazapfts.RequestOpts) {
618
+ return oazapfts.ok(oazapfts.fetchJson<{
619
+ status: 200;
620
+ data: WorkflowResponse;
621
+ } | {
622
+ status: 400;
623
+ data: HttpErrorResponse;
624
+ } | {
625
+ status: 401;
626
+ data: HttpErrorResponse;
627
+ } | {
628
+ status: 404;
629
+ data: HttpErrorResponse;
630
+ } | {
631
+ status: 422;
632
+ } | {
633
+ status: 500;
634
+ data: HttpErrorResponse;
635
+ } | {
636
+ status: 503;
637
+ data: HttpErrorResponse;
638
+ }>("/workflows/run-action/dispatch", oazapfts.json({
639
+ ...opts,
640
+ method: "POST",
641
+ body: runActionRequest,
642
+ headers: oazapfts.mergeHeaders(opts?.headers, {
643
+ authorization,
644
+ "stackspot-customer-ip": stackspotCustomerIp,
645
+ "x-execution-id": xExecutionId
646
+ })
647
+ })));
648
+ }
649
+ /**
650
+ * Create App Service
651
+ */
652
+ export function createAppServiceWorkflowsCreateAppDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createAppRequest }: {
653
+ authorization: string;
654
+ stackspotCustomerIp?: string;
655
+ xExecutionId?: string | null;
656
+ createAppRequest: CreateAppRequest;
657
+ }, opts?: Oazapfts.RequestOpts) {
658
+ return oazapfts.ok(oazapfts.fetchJson<{
659
+ status: 200;
660
+ data: WorkflowResponse;
661
+ } | {
662
+ status: 400;
663
+ data: HttpErrorResponse;
664
+ } | {
665
+ status: 401;
666
+ data: HttpErrorResponse;
667
+ } | {
668
+ status: 404;
669
+ data: HttpErrorResponse;
670
+ } | {
671
+ status: 422;
672
+ } | {
673
+ status: 500;
674
+ data: HttpErrorResponse;
675
+ } | {
676
+ status: 503;
677
+ data: HttpErrorResponse;
678
+ }>("/workflows/create-app/dispatch", oazapfts.json({
679
+ ...opts,
680
+ method: "POST",
681
+ body: createAppRequest,
682
+ headers: oazapfts.mergeHeaders(opts?.headers, {
683
+ authorization,
684
+ "stackspot-customer-ip": stackspotCustomerIp,
685
+ "x-execution-id": xExecutionId
686
+ })
687
+ })));
688
+ }
689
+ /**
690
+ * Create Api Service
691
+ */
692
+ export function createApiServiceWorkflowsCreateApiDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createApiRequest }: {
693
+ authorization: string;
694
+ stackspotCustomerIp?: string;
695
+ xExecutionId?: string | null;
696
+ createApiRequest: CreateApiRequest;
697
+ }, opts?: Oazapfts.RequestOpts) {
698
+ return oazapfts.ok(oazapfts.fetchJson<{
699
+ status: 200;
700
+ data: WorkflowResponse;
701
+ } | {
702
+ status: 400;
703
+ data: HttpErrorResponse;
704
+ } | {
705
+ status: 401;
706
+ data: HttpErrorResponse;
707
+ } | {
708
+ status: 404;
709
+ data: HttpErrorResponse;
710
+ } | {
711
+ status: 422;
712
+ } | {
713
+ status: 500;
714
+ data: HttpErrorResponse;
715
+ } | {
716
+ status: 503;
717
+ data: HttpErrorResponse;
718
+ }>("/workflows/create-api/dispatch", oazapfts.json({
719
+ ...opts,
720
+ method: "POST",
721
+ body: createApiRequest,
722
+ headers: oazapfts.mergeHeaders(opts?.headers, {
723
+ authorization,
724
+ "stackspot-customer-ip": stackspotCustomerIp,
725
+ "x-execution-id": xExecutionId
726
+ })
727
+ })));
728
+ }
729
+ /**
730
+ * Create Infra Service
731
+ */
732
+ export function createInfraServiceWorkflowsCreateInfraDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, createInfraRequest }: {
733
+ authorization: string;
734
+ stackspotCustomerIp?: string;
735
+ xExecutionId?: string | null;
736
+ createInfraRequest: CreateInfraRequest;
737
+ }, opts?: Oazapfts.RequestOpts) {
738
+ return oazapfts.ok(oazapfts.fetchJson<{
739
+ status: 200;
740
+ data: WorkflowResponse;
741
+ } | {
742
+ status: 400;
743
+ data: HttpErrorResponse;
744
+ } | {
745
+ status: 401;
746
+ data: HttpErrorResponse;
747
+ } | {
748
+ status: 404;
749
+ data: HttpErrorResponse;
750
+ } | {
751
+ status: 422;
752
+ } | {
753
+ status: 500;
754
+ data: HttpErrorResponse;
755
+ } | {
756
+ status: 503;
757
+ data: HttpErrorResponse;
758
+ }>("/workflows/create-infra/dispatch", oazapfts.json({
759
+ ...opts,
760
+ method: "POST",
761
+ body: createInfraRequest,
762
+ headers: oazapfts.mergeHeaders(opts?.headers, {
763
+ authorization,
764
+ "stackspot-customer-ip": stackspotCustomerIp,
765
+ "x-execution-id": xExecutionId
766
+ })
767
+ })));
768
+ }
769
+ /**
770
+ * Apply Plugin Service
771
+ */
772
+ export function applyPluginServiceWorkflowsApplyPluginDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, applyPluginRequest }: {
773
+ authorization: string;
774
+ stackspotCustomerIp?: string;
775
+ xExecutionId?: string | null;
776
+ applyPluginRequest: ApplyPluginRequest;
777
+ }, opts?: Oazapfts.RequestOpts) {
778
+ return oazapfts.ok(oazapfts.fetchJson<{
779
+ status: 200;
780
+ data: WorkflowResponse;
781
+ } | {
782
+ status: 400;
783
+ data: HttpErrorResponse;
784
+ } | {
785
+ status: 401;
786
+ data: HttpErrorResponse;
787
+ } | {
788
+ status: 404;
789
+ data: HttpErrorResponse;
790
+ } | {
791
+ status: 422;
792
+ } | {
793
+ status: 500;
794
+ data: HttpErrorResponse;
795
+ } | {
796
+ status: 503;
797
+ data: HttpErrorResponse;
798
+ }>("/workflows/apply-plugin/dispatch", oazapfts.json({
799
+ ...opts,
800
+ method: "POST",
801
+ body: applyPluginRequest,
802
+ headers: oazapfts.mergeHeaders(opts?.headers, {
803
+ authorization,
804
+ "stackspot-customer-ip": stackspotCustomerIp,
805
+ "x-execution-id": xExecutionId
806
+ })
807
+ })));
808
+ }
809
+ /**
810
+ * Health Check Service
811
+ */
812
+ export function healthCheckServiceWorkflowsHealthCheckDispatchPost({ authorization, stackspotCustomerIp, xExecutionId, body }: {
813
+ authorization: string;
814
+ stackspotCustomerIp?: string;
815
+ xExecutionId?: string | null;
816
+ body?: HealthCheckRequest | null;
817
+ }, opts?: Oazapfts.RequestOpts) {
818
+ return oazapfts.ok(oazapfts.fetchJson<{
819
+ status: 200;
820
+ data: WorkflowResponse;
821
+ } | {
822
+ status: 400;
823
+ data: HttpErrorResponse;
824
+ } | {
825
+ status: 401;
826
+ data: HttpErrorResponse;
827
+ } | {
828
+ status: 404;
829
+ data: HttpErrorResponse;
830
+ } | {
831
+ status: 422;
832
+ } | {
833
+ status: 500;
834
+ data: HttpErrorResponse;
835
+ } | {
836
+ status: 503;
837
+ data: HttpErrorResponse;
838
+ }>("/workflows/health-check/dispatch", oazapfts.json({
839
+ ...opts,
840
+ method: "POST",
841
+ body,
842
+ headers: oazapfts.mergeHeaders(opts?.headers, {
843
+ authorization,
844
+ "stackspot-customer-ip": stackspotCustomerIp,
845
+ "x-execution-id": xExecutionId
846
+ })
847
+ })));
848
+ }
849
+ /**
850
+ * Step Report Service
851
+ */
852
+ export function stepReportServiceExecutionsExecutionIdWorkflowsStepsReportPost({ executionId, authorization, stepReportRequest }: {
853
+ executionId: string;
854
+ authorization: string;
855
+ stepReportRequest: StepReportRequest;
856
+ }, opts?: Oazapfts.RequestOpts) {
857
+ return oazapfts.ok(oazapfts.fetchJson<{
858
+ status: 200;
859
+ data: any;
860
+ } | {
861
+ status: 400;
862
+ data: HttpErrorResponse;
863
+ } | {
864
+ status: 401;
865
+ data: HttpErrorResponse;
866
+ } | {
867
+ status: 404;
868
+ data: HttpErrorResponse;
869
+ } | {
870
+ status: 422;
871
+ } | {
872
+ status: 500;
873
+ data: HttpErrorResponse;
874
+ } | {
875
+ status: 503;
876
+ data: HttpErrorResponse;
877
+ }>(`/executions/${encodeURIComponent(executionId)}/workflows/steps/report`, oazapfts.json({
878
+ ...opts,
879
+ method: "POST",
880
+ body: stepReportRequest,
881
+ headers: oazapfts.mergeHeaders(opts?.headers, {
882
+ authorization
883
+ })
884
+ })));
885
+ }
886
+ /**
887
+ * Get Execution Dispatch Request Service
888
+ */
889
+ export function getExecutionDispatchRequestServiceWorkflowsExecutionIdRequestGet({ executionId, authorization }: {
890
+ executionId: string;
891
+ authorization: string;
892
+ }, opts?: Oazapfts.RequestOpts) {
893
+ return oazapfts.ok(oazapfts.fetchJson<{
894
+ status: 200;
895
+ data: any;
896
+ } | {
897
+ status: 422;
898
+ data: HttpValidationError;
899
+ }>(`/workflows/${encodeURIComponent(executionId)}/request`, {
900
+ ...opts,
901
+ headers: oazapfts.mergeHeaders(opts?.headers, {
902
+ authorization
903
+ })
904
+ }));
905
+ }
906
+ /**
907
+ * Get Execution Status Service
908
+ */
909
+ export function getExecutionStatusServiceWorkflowsExecutionStatusExecutionIdGet({ executionId, authorization }: {
910
+ executionId: string;
911
+ authorization: string;
912
+ }, opts?: Oazapfts.RequestOpts) {
913
+ return oazapfts.ok(oazapfts.fetchJson<{
914
+ status: 200;
915
+ data: ExecutionResponse;
916
+ } | {
917
+ status: 400;
918
+ data: HttpErrorResponse;
919
+ } | {
920
+ status: 401;
921
+ data: HttpErrorResponse;
922
+ } | {
923
+ status: 404;
924
+ data: HttpErrorResponse;
925
+ } | {
926
+ status: 422;
927
+ } | {
928
+ status: 500;
929
+ data: HttpErrorResponse;
930
+ } | {
931
+ status: 503;
932
+ data: HttpErrorResponse;
933
+ }>(`/workflows/execution-status/${encodeURIComponent(executionId)}`, {
934
+ ...opts,
935
+ headers: oazapfts.mergeHeaders(opts?.headers, {
936
+ authorization
937
+ })
938
+ }));
939
+ }
940
+ /**
941
+ * Create Semaphore Service
942
+ */
943
+ export function createSemaphoreServiceSemaphoresPost({ authorization }: {
944
+ authorization: string;
945
+ }, opts?: Oazapfts.RequestOpts) {
946
+ return oazapfts.ok(oazapfts.fetchJson<{
947
+ status: 200;
948
+ data: CreateSemaphoreResponse;
949
+ } | {
950
+ status: 400;
951
+ data: HttpErrorResponse;
952
+ } | {
953
+ status: 401;
954
+ data: HttpErrorResponse;
955
+ } | {
956
+ status: 404;
957
+ data: HttpErrorResponse;
958
+ } | {
959
+ status: 422;
960
+ } | {
961
+ status: 500;
962
+ data: HttpErrorResponse;
963
+ } | {
964
+ status: 503;
965
+ data: HttpErrorResponse;
966
+ }>("/semaphores", {
967
+ ...opts,
968
+ method: "POST",
969
+ headers: oazapfts.mergeHeaders(opts?.headers, {
970
+ authorization
971
+ })
972
+ }));
973
+ }
974
+ /**
975
+ * Get Semaphore Service
976
+ */
977
+ export function getSemaphoreServiceSemaphoresSemaphoreIdGet({ semaphoreId, authorization }: {
978
+ semaphoreId: string;
979
+ authorization: string;
980
+ }, opts?: Oazapfts.RequestOpts) {
981
+ return oazapfts.ok(oazapfts.fetchJson<{
982
+ status: 200;
983
+ data: GetSemaphoreResponse;
984
+ } | {
985
+ status: 400;
986
+ data: HttpErrorResponse;
987
+ } | {
988
+ status: 401;
989
+ data: HttpErrorResponse;
990
+ } | {
991
+ status: 404;
992
+ data: HttpErrorResponse;
993
+ } | {
994
+ status: 422;
995
+ } | {
996
+ status: 500;
997
+ data: HttpErrorResponse;
998
+ } | {
999
+ status: 503;
1000
+ data: HttpErrorResponse;
1001
+ }>(`/semaphores/${encodeURIComponent(semaphoreId)}`, {
1002
+ ...opts,
1003
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1004
+ authorization
1005
+ })
1006
+ }));
1007
+ }
1008
+ /**
1009
+ * Update Semaphore Service
1010
+ */
1011
+ export function updateSemaphoreServiceSemaphoresSemaphoreIdPut({ semaphoreId, authorization, updateSemaphoreRequest }: {
1012
+ semaphoreId: string;
1013
+ authorization: string;
1014
+ updateSemaphoreRequest: UpdateSemaphoreRequest;
1015
+ }, opts?: Oazapfts.RequestOpts) {
1016
+ return oazapfts.ok(oazapfts.fetchJson<{
1017
+ status: 200;
1018
+ data: any;
1019
+ } | {
1020
+ status: 400;
1021
+ data: HttpErrorResponse;
1022
+ } | {
1023
+ status: 401;
1024
+ data: HttpErrorResponse;
1025
+ } | {
1026
+ status: 404;
1027
+ data: HttpErrorResponse;
1028
+ } | {
1029
+ status: 422;
1030
+ } | {
1031
+ status: 500;
1032
+ data: HttpErrorResponse;
1033
+ } | {
1034
+ status: 503;
1035
+ data: HttpErrorResponse;
1036
+ }>(`/semaphores/${encodeURIComponent(semaphoreId)}`, oazapfts.json({
1037
+ ...opts,
1038
+ method: "PUT",
1039
+ body: updateSemaphoreRequest,
1040
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1041
+ authorization
1042
+ })
1043
+ })));
1044
+ }
1045
+ /**
1046
+ * V1 Create Workflow Execution Service
1047
+ */
1048
+ export function v1CreateWorkflowExecutionServiceV1ExecutionsPost({ authorization, stackspotCustomerIp, createWorkflowExecutionRequest }: {
1049
+ authorization: string;
1050
+ stackspotCustomerIp?: string;
1051
+ createWorkflowExecutionRequest: CreateWorkflowExecutionRequest;
1052
+ }, opts?: Oazapfts.RequestOpts) {
1053
+ return oazapfts.ok(oazapfts.fetchJson<{
1054
+ status: 200;
1055
+ } | {
1056
+ status: 201;
1057
+ data: WorkflowExecutionResponse;
1058
+ } | {
1059
+ status: 400;
1060
+ data: HttpErrorResponse;
1061
+ } | {
1062
+ status: 401;
1063
+ data: HttpErrorResponse;
1064
+ } | {
1065
+ status: 404;
1066
+ data: HttpErrorResponse;
1067
+ } | {
1068
+ status: 422;
1069
+ } | {
1070
+ status: 500;
1071
+ data: HttpErrorResponse;
1072
+ } | {
1073
+ status: 503;
1074
+ data: HttpErrorResponse;
1075
+ }>("/v1/executions", oazapfts.json({
1076
+ ...opts,
1077
+ method: "POST",
1078
+ body: createWorkflowExecutionRequest,
1079
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1080
+ authorization,
1081
+ "stackspot-customer-ip": stackspotCustomerIp
1082
+ })
1083
+ })));
1084
+ }
1085
+ /**
1086
+ * V1 Put Workflow Execution Workflow Service
1087
+ */
1088
+ export function v1PutWorkflowExecutionWorkflowServiceV1ExecutionsExecutionIdWorkflowsPut({ executionId, authorization, createWorkflowExecutionWorkflowRequest }: {
1089
+ executionId: string;
1090
+ authorization: string;
1091
+ createWorkflowExecutionWorkflowRequest: CreateWorkflowExecutionWorkflowRequest;
1092
+ }, opts?: Oazapfts.RequestOpts) {
1093
+ return oazapfts.ok(oazapfts.fetchJson<{
1094
+ status: 200;
1095
+ data: any;
1096
+ } | {
1097
+ status: 400;
1098
+ data: HttpErrorResponse;
1099
+ } | {
1100
+ status: 401;
1101
+ data: HttpErrorResponse;
1102
+ } | {
1103
+ status: 404;
1104
+ data: HttpErrorResponse;
1105
+ } | {
1106
+ status: 422;
1107
+ } | {
1108
+ status: 500;
1109
+ data: HttpErrorResponse;
1110
+ } | {
1111
+ status: 503;
1112
+ data: HttpErrorResponse;
1113
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/workflows`, oazapfts.json({
1114
+ ...opts,
1115
+ method: "PUT",
1116
+ body: createWorkflowExecutionWorkflowRequest,
1117
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1118
+ authorization
1119
+ })
1120
+ })));
1121
+ }
1122
+ /**
1123
+ * V1 Report Workflow Step Service
1124
+ */
1125
+ export function v1ReportWorkflowStepServiceV1ExecutionsExecutionIdStepsPut({ executionId, authorization, putWorkflowExecutionWorkflowStepRequest }: {
1126
+ executionId: string;
1127
+ authorization: string;
1128
+ putWorkflowExecutionWorkflowStepRequest: PutWorkflowExecutionWorkflowStepRequest;
1129
+ }, opts?: Oazapfts.RequestOpts) {
1130
+ return oazapfts.ok(oazapfts.fetchJson<{
1131
+ status: 200;
1132
+ data: WorkflowExecutionResponse;
1133
+ } | {
1134
+ status: 400;
1135
+ data: HttpErrorResponse;
1136
+ } | {
1137
+ status: 401;
1138
+ data: HttpErrorResponse;
1139
+ } | {
1140
+ status: 404;
1141
+ data: HttpErrorResponse;
1142
+ } | {
1143
+ status: 422;
1144
+ } | {
1145
+ status: 500;
1146
+ data: HttpErrorResponse;
1147
+ } | {
1148
+ status: 503;
1149
+ data: HttpErrorResponse;
1150
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/steps`, oazapfts.json({
1151
+ ...opts,
1152
+ method: "PUT",
1153
+ body: putWorkflowExecutionWorkflowStepRequest,
1154
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1155
+ authorization
1156
+ })
1157
+ })));
1158
+ }
1159
+ /**
1160
+ * V1 Report Workflow Step Log Service
1161
+ */
1162
+ export function v1ReportWorkflowStepLogServiceV1ExecutionsExecutionIdStepsLogsPut({ executionId, authorization, putWorkflowExecutionWorkflowStepLogRequest }: {
1163
+ executionId: string;
1164
+ authorization: string;
1165
+ putWorkflowExecutionWorkflowStepLogRequest: PutWorkflowExecutionWorkflowStepLogRequest;
1166
+ }, opts?: Oazapfts.RequestOpts) {
1167
+ return oazapfts.ok(oazapfts.fetchJson<{
1168
+ status: 200;
1169
+ data: any;
1170
+ } | {
1171
+ status: 400;
1172
+ data: HttpErrorResponse;
1173
+ } | {
1174
+ status: 401;
1175
+ data: HttpErrorResponse;
1176
+ } | {
1177
+ status: 404;
1178
+ data: HttpErrorResponse;
1179
+ } | {
1180
+ status: 422;
1181
+ } | {
1182
+ status: 500;
1183
+ data: HttpErrorResponse;
1184
+ } | {
1185
+ status: 503;
1186
+ data: HttpErrorResponse;
1187
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/steps/logs`, oazapfts.json({
1188
+ ...opts,
1189
+ method: "PUT",
1190
+ body: putWorkflowExecutionWorkflowStepLogRequest,
1191
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1192
+ authorization
1193
+ })
1194
+ })));
1195
+ }
1196
+ /**
1197
+ * V1 Get Workflow Execution Job Graph Service
1198
+ */
1199
+ export function v1GetWorkflowExecutionJobGraphServiceV1ExecutionsExecutionIdGet({ executionId, authorization }: {
1200
+ executionId: string;
1201
+ authorization: string;
1202
+ }, opts?: Oazapfts.RequestOpts) {
1203
+ return oazapfts.ok(oazapfts.fetchJson<{
1204
+ status: 200;
1205
+ data: GetWorkflowExecutionJobGraphResponse;
1206
+ } | {
1207
+ status: 400;
1208
+ data: HttpErrorResponse;
1209
+ } | {
1210
+ status: 401;
1211
+ data: HttpErrorResponse;
1212
+ } | {
1213
+ status: 404;
1214
+ data: HttpErrorResponse;
1215
+ } | {
1216
+ status: 422;
1217
+ } | {
1218
+ status: 500;
1219
+ data: HttpErrorResponse;
1220
+ } | {
1221
+ status: 503;
1222
+ data: HttpErrorResponse;
1223
+ }>(`/v1/executions/${encodeURIComponent(executionId)}`, {
1224
+ ...opts,
1225
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1226
+ authorization
1227
+ })
1228
+ }));
1229
+ }
1230
+ /**
1231
+ * V1 Get Workflow Execution Job Detail Service
1232
+ */
1233
+ export function v1GetWorkflowExecutionJobDetailServiceV1ExecutionsExecutionIdJobsJobIdGet({ executionId, jobId, authorization }: {
1234
+ executionId: string;
1235
+ jobId: string;
1236
+ authorization: string;
1237
+ }, opts?: Oazapfts.RequestOpts) {
1238
+ return oazapfts.ok(oazapfts.fetchJson<{
1239
+ status: 200;
1240
+ data: WorkflowJobDetailResponse;
1241
+ } | {
1242
+ status: 400;
1243
+ data: HttpErrorResponse;
1244
+ } | {
1245
+ status: 401;
1246
+ data: HttpErrorResponse;
1247
+ } | {
1248
+ status: 404;
1249
+ data: HttpErrorResponse;
1250
+ } | {
1251
+ status: 422;
1252
+ } | {
1253
+ status: 500;
1254
+ data: HttpErrorResponse;
1255
+ } | {
1256
+ status: 503;
1257
+ data: HttpErrorResponse;
1258
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/jobs/${encodeURIComponent(jobId)}`, {
1259
+ ...opts,
1260
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1261
+ authorization
1262
+ })
1263
+ }));
1264
+ }
1265
+ /**
1266
+ * V1 Accept Workflow Execution Job Suspended Service
1267
+ */
1268
+ export function v1AcceptWorkflowExecutionJobSuspendedServiceV1ExecutionsExecutionIdJobsJobIdAcceptPost({ executionId, jobId, authorization, stackspotCustomerIp }: {
1269
+ executionId: string;
1270
+ jobId: string;
1271
+ authorization: string;
1272
+ stackspotCustomerIp?: string;
1273
+ }, opts?: Oazapfts.RequestOpts) {
1274
+ return oazapfts.ok(oazapfts.fetchJson<{
1275
+ status: 200;
1276
+ data: GetWorkflowExecutionJobGraphResponse;
1277
+ } | {
1278
+ status: 400;
1279
+ data: HttpErrorResponse;
1280
+ } | {
1281
+ status: 401;
1282
+ data: HttpErrorResponse;
1283
+ } | {
1284
+ status: 404;
1285
+ data: HttpErrorResponse;
1286
+ } | {
1287
+ status: 422;
1288
+ } | {
1289
+ status: 500;
1290
+ data: HttpErrorResponse;
1291
+ } | {
1292
+ status: 503;
1293
+ data: HttpErrorResponse;
1294
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/jobs/${encodeURIComponent(jobId)}/accept`, {
1295
+ ...opts,
1296
+ method: "POST",
1297
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1298
+ authorization,
1299
+ "stackspot-customer-ip": stackspotCustomerIp
1300
+ })
1301
+ }));
1302
+ }
1303
+ /**
1304
+ * V1 Refuse Workflow Execution Job Suspended Service
1305
+ */
1306
+ export function v1RefuseWorkflowExecutionJobSuspendedServiceV1ExecutionsExecutionIdJobsJobIdRefusePost({ executionId, jobId, authorization, stackspotCustomerIp }: {
1307
+ executionId: string;
1308
+ jobId: string;
1309
+ authorization: string;
1310
+ stackspotCustomerIp?: string;
1311
+ }, opts?: Oazapfts.RequestOpts) {
1312
+ return oazapfts.ok(oazapfts.fetchJson<{
1313
+ status: 200;
1314
+ data: GetWorkflowExecutionJobGraphResponse;
1315
+ } | {
1316
+ status: 400;
1317
+ data: HttpErrorResponse;
1318
+ } | {
1319
+ status: 401;
1320
+ data: HttpErrorResponse;
1321
+ } | {
1322
+ status: 404;
1323
+ data: HttpErrorResponse;
1324
+ } | {
1325
+ status: 422;
1326
+ } | {
1327
+ status: 500;
1328
+ data: HttpErrorResponse;
1329
+ } | {
1330
+ status: 503;
1331
+ data: HttpErrorResponse;
1332
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/jobs/${encodeURIComponent(jobId)}/refuse`, {
1333
+ ...opts,
1334
+ method: "POST",
1335
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1336
+ authorization,
1337
+ "stackspot-customer-ip": stackspotCustomerIp
1338
+ })
1339
+ }));
1340
+ }
1341
+ /**
1342
+ * V1 Get Workflow Execution Cli State Service
1343
+ */
1344
+ export function v1GetWorkflowExecutionCliStateServiceV1ExecutionsExecutionIdStateGet({ executionId, authorization }: {
1345
+ executionId: string;
1346
+ authorization: string;
1347
+ }, opts?: Oazapfts.RequestOpts) {
1348
+ return oazapfts.ok(oazapfts.fetchJson<{
1349
+ status: 200;
1350
+ data: GetWorkflowExecutionCliStateResponse;
1351
+ } | {
1352
+ status: 400;
1353
+ data: HttpErrorResponse;
1354
+ } | {
1355
+ status: 401;
1356
+ data: HttpErrorResponse;
1357
+ } | {
1358
+ status: 404;
1359
+ data: HttpErrorResponse;
1360
+ } | {
1361
+ status: 422;
1362
+ } | {
1363
+ status: 500;
1364
+ data: HttpErrorResponse;
1365
+ } | {
1366
+ status: 503;
1367
+ data: HttpErrorResponse;
1368
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/state`, {
1369
+ ...opts,
1370
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1371
+ authorization
1372
+ })
1373
+ }));
1374
+ }
1375
+ /**
1376
+ * V1 Dispatch Workflow Execution Service
1377
+ */
1378
+ export function v1DispatchWorkflowExecutionServiceV1WorkflowsDispatchPost({ authorization, stackspotCustomerIp, srcPresentationApiRestServicesWorkflowsV1RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest }: {
1379
+ authorization: string;
1380
+ stackspotCustomerIp?: string;
1381
+ srcPresentationApiRestServicesWorkflowsV1RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest: DispatchWorkflowExecutionRequest;
1382
+ }, opts?: Oazapfts.RequestOpts) {
1383
+ return oazapfts.ok(oazapfts.fetchJson<{
1384
+ status: 200;
1385
+ data: WorkflowExecutionResponse;
1386
+ } | {
1387
+ status: 400;
1388
+ data: HttpErrorResponse;
1389
+ } | {
1390
+ status: 401;
1391
+ data: HttpErrorResponse;
1392
+ } | {
1393
+ status: 404;
1394
+ data: HttpErrorResponse;
1395
+ } | {
1396
+ status: 422;
1397
+ } | {
1398
+ status: 500;
1399
+ data: HttpErrorResponse;
1400
+ } | {
1401
+ status: 503;
1402
+ data: HttpErrorResponse;
1403
+ }>("/v1/workflows/dispatch", oazapfts.json({
1404
+ ...opts,
1405
+ method: "POST",
1406
+ body: srcPresentationApiRestServicesWorkflowsV1RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest,
1407
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1408
+ authorization,
1409
+ "stackspot-customer-ip": stackspotCustomerIp
1410
+ })
1411
+ })));
1412
+ }
1413
+ /**
1414
+ * V1 Post Workflow Execution Failure Service
1415
+ */
1416
+ export function v1PostWorkflowExecutionFailureServiceV1ExecutionsExecutionIdFailurePost({ executionId, authorization, postWorkflowExecutionFailureRequest }: {
1417
+ executionId: string;
1418
+ authorization: string;
1419
+ postWorkflowExecutionFailureRequest: PostWorkflowExecutionFailureRequest;
1420
+ }, opts?: Oazapfts.RequestOpts) {
1421
+ return oazapfts.ok(oazapfts.fetchJson<{
1422
+ status: 200;
1423
+ data: any;
1424
+ } | {
1425
+ status: 400;
1426
+ data: HttpErrorResponse;
1427
+ } | {
1428
+ status: 401;
1429
+ data: HttpErrorResponse;
1430
+ } | {
1431
+ status: 404;
1432
+ data: HttpErrorResponse;
1433
+ } | {
1434
+ status: 422;
1435
+ } | {
1436
+ status: 500;
1437
+ data: HttpErrorResponse;
1438
+ } | {
1439
+ status: 503;
1440
+ data: HttpErrorResponse;
1441
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/failure`, oazapfts.json({
1442
+ ...opts,
1443
+ method: "POST",
1444
+ body: postWorkflowExecutionFailureRequest,
1445
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1446
+ authorization
1447
+ })
1448
+ })));
1449
+ }
1450
+ /**
1451
+ * V1 Post Workflow Execution Signal Service
1452
+ */
1453
+ export function v1PostWorkflowExecutionSignalServiceV1AccountsAccountSlugExecutionsExecutionIdSignalSignalPost({ executionId, signal, accountSlug }: {
1454
+ executionId: string;
1455
+ signal: WorkflowSetup;
1456
+ accountSlug: string;
1457
+ }, opts?: Oazapfts.RequestOpts) {
1458
+ return oazapfts.ok(oazapfts.fetchJson<{
1459
+ status: 200;
1460
+ data: any;
1461
+ } | {
1462
+ status: 400;
1463
+ data: HttpErrorResponse;
1464
+ } | {
1465
+ status: 401;
1466
+ data: HttpErrorResponse;
1467
+ } | {
1468
+ status: 404;
1469
+ data: HttpErrorResponse;
1470
+ } | {
1471
+ status: 422;
1472
+ } | {
1473
+ status: 500;
1474
+ data: HttpErrorResponse;
1475
+ } | {
1476
+ status: 503;
1477
+ data: HttpErrorResponse;
1478
+ }>(`/v1/accounts/${encodeURIComponent(accountSlug)}/executions/${encodeURIComponent(executionId)}/signal/${encodeURIComponent(signal)}`, {
1479
+ ...opts,
1480
+ method: "POST"
1481
+ }));
1482
+ }
1483
+ /**
1484
+ * V1 Put Workflow Execution Summary Service
1485
+ */
1486
+ export function v1PutWorkflowExecutionSummaryServiceV1ExecutionsExecutionIdSummaryPut({ executionId, authorization, putWorkflowExecutionSummaryRequest }: {
1487
+ executionId: string;
1488
+ authorization: string;
1489
+ putWorkflowExecutionSummaryRequest: PutWorkflowExecutionSummaryRequest;
1490
+ }, opts?: Oazapfts.RequestOpts) {
1491
+ return oazapfts.ok(oazapfts.fetchJson<{
1492
+ status: 200;
1493
+ data: any;
1494
+ } | {
1495
+ status: 400;
1496
+ data: HttpErrorResponse;
1497
+ } | {
1498
+ status: 401;
1499
+ data: HttpErrorResponse;
1500
+ } | {
1501
+ status: 404;
1502
+ data: HttpErrorResponse;
1503
+ } | {
1504
+ status: 422;
1505
+ } | {
1506
+ status: 500;
1507
+ data: HttpErrorResponse;
1508
+ } | {
1509
+ status: 503;
1510
+ data: HttpErrorResponse;
1511
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/summary`, oazapfts.json({
1512
+ ...opts,
1513
+ method: "PUT",
1514
+ body: putWorkflowExecutionSummaryRequest,
1515
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1516
+ authorization
1517
+ })
1518
+ })));
1519
+ }
1520
+ /**
1521
+ * V1 Put Workflow Scm Execution Id
1522
+ */
1523
+ export function v1PutWorkflowScmExecutionIdV1ExecutionsExecutionIdBindScmPut({ executionId, authorization, putWorkflowScmExecutionRequest }: {
1524
+ executionId: string;
1525
+ authorization: string;
1526
+ putWorkflowScmExecutionRequest: PutWorkflowScmExecutionRequest;
1527
+ }, opts?: Oazapfts.RequestOpts) {
1528
+ return oazapfts.ok(oazapfts.fetchJson<{
1529
+ status: 200;
1530
+ data: any;
1531
+ } | {
1532
+ status: 400;
1533
+ data: HttpErrorResponse;
1534
+ } | {
1535
+ status: 401;
1536
+ data: HttpErrorResponse;
1537
+ } | {
1538
+ status: 404;
1539
+ data: HttpErrorResponse;
1540
+ } | {
1541
+ status: 422;
1542
+ } | {
1543
+ status: 500;
1544
+ data: HttpErrorResponse;
1545
+ } | {
1546
+ status: 503;
1547
+ data: HttpErrorResponse;
1548
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/bind-scm`, oazapfts.json({
1549
+ ...opts,
1550
+ method: "PUT",
1551
+ body: putWorkflowScmExecutionRequest,
1552
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1553
+ authorization
1554
+ })
1555
+ })));
1556
+ }
1557
+ /**
1558
+ * V1 Retry Workflow Execution
1559
+ */
1560
+ export function v1RetryWorkflowExecutionV1ExecutionsExecutionIdRetryPost({ executionId, authorization, stackspotCustomerIp, postRetryWorkflowExecutionRequest }: {
1561
+ executionId: string;
1562
+ authorization: string;
1563
+ stackspotCustomerIp?: string;
1564
+ postRetryWorkflowExecutionRequest: PostRetryWorkflowExecutionRequest;
1565
+ }, opts?: Oazapfts.RequestOpts) {
1566
+ return oazapfts.ok(oazapfts.fetchJson<{
1567
+ status: 200;
1568
+ data: WorkflowExecutionResponse;
1569
+ } | {
1570
+ status: 400;
1571
+ data: HttpErrorResponse;
1572
+ } | {
1573
+ status: 401;
1574
+ data: HttpErrorResponse;
1575
+ } | {
1576
+ status: 404;
1577
+ data: HttpErrorResponse;
1578
+ } | {
1579
+ status: 422;
1580
+ } | {
1581
+ status: 500;
1582
+ data: HttpErrorResponse;
1583
+ } | {
1584
+ status: 503;
1585
+ data: HttpErrorResponse;
1586
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/retry`, oazapfts.json({
1587
+ ...opts,
1588
+ method: "POST",
1589
+ body: postRetryWorkflowExecutionRequest,
1590
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1591
+ authorization,
1592
+ "stackspot-customer-ip": stackspotCustomerIp
1593
+ })
1594
+ })));
1595
+ }
1596
+ /**
1597
+ * V1 Get Workflow Execution Attempts
1598
+ */
1599
+ export function v1GetWorkflowExecutionAttemptsV1ExecutionsExecutionIdAttemptsGet({ executionId, authorization }: {
1600
+ executionId: string;
1601
+ authorization: string;
1602
+ }, opts?: Oazapfts.RequestOpts) {
1603
+ return oazapfts.ok(oazapfts.fetchJson<{
1604
+ status: 200;
1605
+ data: WorkflowExecutionAttemptsResponse[];
1606
+ } | {
1607
+ status: 400;
1608
+ data: HttpErrorResponse;
1609
+ } | {
1610
+ status: 401;
1611
+ data: HttpErrorResponse;
1612
+ } | {
1613
+ status: 404;
1614
+ data: HttpErrorResponse;
1615
+ } | {
1616
+ status: 422;
1617
+ } | {
1618
+ status: 500;
1619
+ data: HttpErrorResponse;
1620
+ } | {
1621
+ status: 503;
1622
+ data: HttpErrorResponse;
1623
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/attempts`, {
1624
+ ...opts,
1625
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1626
+ authorization
1627
+ })
1628
+ }));
1629
+ }
1630
+ /**
1631
+ * V2 Dispatch Workflow Execution Service
1632
+ */
1633
+ export function v2DispatchWorkflowExecutionServiceV2WorkflowsDispatchPost({ authorization, xUserAuthorization, stackspotCustomerIp, srcPresentationApiRestServicesWorkflowsV2RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest }: {
1634
+ authorization: string;
1635
+ xUserAuthorization: string;
1636
+ stackspotCustomerIp?: string;
1637
+ srcPresentationApiRestServicesWorkflowsV2RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest: DispatchWorkflowExecutionRequest2;
1638
+ }, opts?: Oazapfts.RequestOpts) {
1639
+ return oazapfts.ok(oazapfts.fetchJson<{
1640
+ status: 200;
1641
+ data: WorkflowExecutionResponse;
1642
+ } | {
1643
+ status: 400;
1644
+ data: HttpErrorResponse;
1645
+ } | {
1646
+ status: 401;
1647
+ data: HttpErrorResponse;
1648
+ } | {
1649
+ status: 404;
1650
+ data: HttpErrorResponse;
1651
+ } | {
1652
+ status: 422;
1653
+ } | {
1654
+ status: 500;
1655
+ data: HttpErrorResponse;
1656
+ } | {
1657
+ status: 503;
1658
+ data: HttpErrorResponse;
1659
+ }>("/v2/workflows/dispatch", oazapfts.json({
1660
+ ...opts,
1661
+ method: "POST",
1662
+ body: srcPresentationApiRestServicesWorkflowsV2RequestsDispatchWorkflowExecutionRequestDispatchWorkflowExecutionRequest,
1663
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1664
+ authorization,
1665
+ "x-user-authorization": xUserAuthorization,
1666
+ "stackspot-customer-ip": stackspotCustomerIp
1667
+ })
1668
+ })));
1669
+ }