@stack-spot/portal-network 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/.generate-api.failed.json +1 -0
  2. package/dist/api/account.d.ts +2368 -0
  3. package/dist/api/account.d.ts.map +1 -0
  4. package/dist/api/account.js +1521 -0
  5. package/dist/api/account.js.map +1 -0
  6. package/dist/api/ai.d.ts +1432 -0
  7. package/dist/api/ai.d.ts.map +1 -0
  8. package/dist/api/ai.js +1342 -0
  9. package/dist/api/ai.js.map +1 -0
  10. package/dist/api/apiRuntime.d.ts +922 -0
  11. package/dist/api/apiRuntime.d.ts.map +1 -0
  12. package/dist/api/apiRuntime.js +599 -0
  13. package/dist/api/apiRuntime.js.map +1 -0
  14. package/dist/api/cloudAccount.d.ts +473 -0
  15. package/dist/api/cloudAccount.d.ts.map +1 -0
  16. package/dist/api/cloudAccount.js +300 -0
  17. package/dist/api/cloudAccount.js.map +1 -0
  18. package/dist/api/cloudServices.d.ts +1233 -0
  19. package/dist/api/cloudServices.d.ts.map +1 -0
  20. package/dist/api/cloudServices.js +715 -0
  21. package/dist/api/cloudServices.js.map +1 -0
  22. package/dist/api/insights.d.ts +123 -0
  23. package/dist/api/insights.d.ts.map +1 -0
  24. package/dist/api/insights.js +112 -0
  25. package/dist/api/insights.js.map +1 -0
  26. package/dist/api/plugin.d.ts +368 -0
  27. package/dist/api/plugin.d.ts.map +1 -0
  28. package/dist/api/plugin.js +218 -0
  29. package/dist/api/plugin.js.map +1 -0
  30. package/dist/api/serviceCatalog.d.ts +737 -0
  31. package/dist/api/serviceCatalog.d.ts.map +1 -0
  32. package/dist/api/serviceCatalog.js +611 -0
  33. package/dist/api/serviceCatalog.js.map +1 -0
  34. package/dist/api/workflows.d.ts +366 -0
  35. package/dist/api/workflows.d.ts.map +1 -0
  36. package/dist/api/workflows.js +175 -0
  37. package/dist/api/workflows.js.map +1 -0
  38. package/dist/api/workspace.js +1476 -0
  39. package/dist/api/workspace.js.map +1 -0
  40. package/dist/api/workspaceManager.d.ts +1121 -0
  41. package/dist/api/workspaceManager.d.ts.map +1 -0
  42. package/dist/api/workspaceManager.js +357 -0
  43. package/dist/api/workspaceManager.js.map +1 -0
  44. package/dist/api/workspaceSearchEngine.d.ts +93 -0
  45. package/dist/api/workspaceSearchEngine.d.ts.map +1 -0
  46. package/dist/api/workspaceSearchEngine.js +55 -0
  47. package/dist/api/workspaceSearchEngine.js.map +1 -0
  48. package/dist/apis.json +129 -0
  49. package/dist/client/account.d.ts +46 -0
  50. package/dist/client/account.d.ts.map +1 -0
  51. package/dist/client/account.js +104 -0
  52. package/dist/client/account.js.map +1 -0
  53. package/dist/error/CanceledError.d.ts +5 -0
  54. package/dist/error/CanceledError.d.ts.map +1 -0
  55. package/dist/error/CanceledError.js +7 -0
  56. package/dist/error/CanceledError.js.map +1 -0
  57. package/dist/error/DefaultAPIError.d.ts +9 -0
  58. package/dist/error/DefaultAPIError.d.ts.map +1 -0
  59. package/dist/error/DefaultAPIError.js +58 -0
  60. package/dist/error/DefaultAPIError.js.map +1 -0
  61. package/dist/error/StackspotAPIError.d.ts +19 -0
  62. package/dist/error/StackspotAPIError.d.ts.map +1 -0
  63. package/dist/error/StackspotAPIError.js +39 -0
  64. package/dist/error/StackspotAPIError.js.map +1 -0
  65. package/dist/error/dictionary/account.d.ts +55 -0
  66. package/dist/error/dictionary/account.d.ts.map +1 -0
  67. package/dist/error/dictionary/account.js +55 -0
  68. package/dist/error/dictionary/account.js.map +1 -0
  69. package/dist/error/dictionary/action.d.ts +163 -0
  70. package/dist/error/dictionary/action.d.ts.map +1 -0
  71. package/dist/error/dictionary/action.js +163 -0
  72. package/dist/error/dictionary/action.js.map +1 -0
  73. package/dist/error/dictionary/base.d.ts +21 -0
  74. package/dist/error/dictionary/base.d.ts.map +1 -0
  75. package/dist/error/dictionary/base.js +21 -0
  76. package/dist/error/dictionary/base.js.map +1 -0
  77. package/dist/error/dictionary/cnt-fields.d.ts +13 -0
  78. package/dist/error/dictionary/cnt-fields.d.ts.map +1 -0
  79. package/dist/error/dictionary/cnt-fields.js +13 -0
  80. package/dist/error/dictionary/cnt-fields.js.map +1 -0
  81. package/dist/error/dictionary/cnt.d.ts +79 -0
  82. package/dist/error/dictionary/cnt.d.ts.map +1 -0
  83. package/dist/error/dictionary/cnt.js +79 -0
  84. package/dist/error/dictionary/cnt.js.map +1 -0
  85. package/dist/error/dictionary/rte.d.ts +23 -0
  86. package/dist/error/dictionary/rte.d.ts.map +1 -0
  87. package/dist/error/dictionary/rte.js +23 -0
  88. package/dist/error/dictionary/rte.js.map +1 -0
  89. package/dist/error/dictionary/rtm.d.ts +9 -0
  90. package/dist/error/dictionary/rtm.d.ts.map +1 -0
  91. package/dist/error/dictionary/rtm.js +9 -0
  92. package/dist/error/dictionary/rtm.js.map +1 -0
  93. package/dist/error/dictionary/workspace-fields.d.ts +9 -0
  94. package/dist/error/dictionary/workspace-fields.d.ts.map +1 -0
  95. package/dist/error/dictionary/workspace-fields.js +9 -0
  96. package/dist/error/dictionary/workspace-fields.js.map +1 -0
  97. package/dist/error/dictionary/workspace.d.ts +99 -0
  98. package/dist/error/dictionary/workspace.d.ts.map +1 -0
  99. package/dist/error/dictionary/workspace.js +99 -0
  100. package/dist/error/dictionary/workspace.js.map +1 -0
  101. package/dist/index.d.ts +6 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +6 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/network/AutoMutation.d.ts +10 -0
  106. package/dist/network/AutoMutation.d.ts.map +1 -0
  107. package/dist/network/AutoMutation.js +20 -0
  108. package/dist/network/AutoMutation.js.map +1 -0
  109. package/dist/network/AutoOperation.d.ts +19 -0
  110. package/dist/network/AutoOperation.d.ts.map +1 -0
  111. package/dist/network/AutoOperation.js +99 -0
  112. package/dist/network/AutoOperation.js.map +1 -0
  113. package/dist/network/AutoQuery.d.ts +19 -0
  114. package/dist/network/AutoQuery.d.ts.map +1 -0
  115. package/dist/network/AutoQuery.js +70 -0
  116. package/dist/network/AutoQuery.js.map +1 -0
  117. package/dist/network/ManualMutation.d.ts +11 -0
  118. package/dist/network/ManualMutation.d.ts.map +1 -0
  119. package/dist/network/ManualMutation.js +32 -0
  120. package/dist/network/ManualMutation.js.map +1 -0
  121. package/dist/network/ManualOperation.d.ts +13 -0
  122. package/dist/network/ManualOperation.d.ts.map +1 -0
  123. package/dist/network/ManualOperation.js +53 -0
  124. package/dist/network/ManualOperation.js.map +1 -0
  125. package/dist/network/ManualQuery.d.ts +20 -0
  126. package/dist/network/ManualQuery.d.ts.map +1 -0
  127. package/dist/network/ManualQuery.js +77 -0
  128. package/dist/network/ManualQuery.js.map +1 -0
  129. package/dist/network/NetworkClient.d.ts +20 -0
  130. package/dist/network/NetworkClient.d.ts.map +1 -0
  131. package/dist/network/NetworkClient.js +85 -0
  132. package/dist/network/NetworkClient.js.map +1 -0
  133. package/dist/network/ReactQueryNetworkClient.d.ts +16 -0
  134. package/dist/network/ReactQueryNetworkClient.d.ts.map +1 -0
  135. package/dist/network/ReactQueryNetworkClient.js +125 -0
  136. package/dist/network/ReactQueryNetworkClient.js.map +1 -0
  137. package/dist/network/react-query-client.d.ts +3 -0
  138. package/dist/network/react-query-client.d.ts.map +1 -0
  139. package/dist/network/react-query-client.js +3 -0
  140. package/dist/network/react-query-client.js.map +1 -0
  141. package/dist/network/types.d.ts +55 -0
  142. package/dist/network/types.d.ts.map +1 -0
  143. package/dist/network/types.js +2 -0
  144. package/dist/network/types.js.map +1 -0
  145. package/package.json +56 -0
  146. package/readme.md +1 -0
  147. package/scripts/generate-apis.ts +134 -0
  148. package/src/api/account.ts +4793 -0
  149. package/src/api/ai.ts +3121 -0
  150. package/src/api/apiRuntime.ts +2029 -0
  151. package/src/api/cloudAccount.ts +1133 -0
  152. package/src/api/cloudServices.ts +2872 -0
  153. package/src/api/insights.ts +264 -0
  154. package/src/api/plugin.ts +685 -0
  155. package/src/api/serviceCatalog.ts +2908 -0
  156. package/src/api/workflows.ts +709 -0
  157. package/src/api/workspace.ts +5178 -0
  158. package/src/api/workspaceManager.ts +1516 -0
  159. package/src/api/workspaceSearchEngine.ts +153 -0
  160. package/src/apis.json +129 -0
  161. package/src/client/account.ts +52 -0
  162. package/src/error/CanceledError.ts +7 -0
  163. package/src/error/DefaultAPIError.ts +51 -0
  164. package/src/error/StackspotAPIError.ts +31 -0
  165. package/src/error/dictionary/account.ts +56 -0
  166. package/src/error/dictionary/action.ts +206 -0
  167. package/src/error/dictionary/base.ts +22 -0
  168. package/src/error/dictionary/cnt-fields.ts +14 -0
  169. package/src/error/dictionary/cnt.ts +80 -0
  170. package/src/error/dictionary/rte.ts +24 -0
  171. package/src/error/dictionary/rtm.ts +10 -0
  172. package/src/error/dictionary/workspace-fields.ts +10 -0
  173. package/src/error/dictionary/workspace.ts +100 -0
  174. package/src/index.ts +5 -0
  175. package/src/network/AutoMutation.ts +25 -0
  176. package/src/network/AutoOperation.ts +88 -0
  177. package/src/network/AutoQuery.ts +80 -0
  178. package/src/network/ManualMutation.ts +41 -0
  179. package/src/network/ManualOperation.ts +55 -0
  180. package/src/network/ManualQuery.ts +93 -0
  181. package/src/network/NetworkClient.ts +93 -0
  182. package/src/network/ReactQueryNetworkClient.ts +154 -0
  183. package/src/network/react-query-client.ts +3 -0
  184. package/src/network/types.ts +82 -0
  185. package/tsconfig.build.json +4 -0
  186. package/tsconfig.json +10 -0
@@ -0,0 +1,1516 @@
1
+ /**
2
+ * Workspace Manager API
3
+ * v1.0.0
4
+ * DO NOT MODIFY - This file has been generated using oazapfts.
5
+ * See https://www.npmjs.com/package/oazapfts
6
+ */
7
+ import * as Oazapfts from "@oazapfts/runtime";
8
+ import * as QS from "@oazapfts/runtime/query";
9
+ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
+ headers: {},
11
+ baseUrl: "https://workspace-workspace-manager.dev.stackspot.com",
12
+ };
13
+ const oazapfts = Oazapfts.runtime(defaults);
14
+ export const servers = {
15
+ generatedServerUrl: "https://workspace-workspace-manager.dev.stackspot.com"
16
+ };
17
+ export type ExternalItemsResponse = {
18
+ source: string;
19
+ value: string;
20
+ label: string;
21
+ };
22
+ export type ConditionResponse = {
23
+ variable: string;
24
+ operator: string;
25
+ value?: object;
26
+ };
27
+ export type ActionConsolidatedAttributeResponse = {
28
+ key: string;
29
+ value: object;
30
+ final: boolean;
31
+ label: string;
32
+ "type": string;
33
+ required: boolean;
34
+ help?: string;
35
+ pattern?: string;
36
+ "default"?: object;
37
+ items?: string[];
38
+ externalItems?: ExternalItemsResponse;
39
+ condition?: ConditionResponse;
40
+ source: "ACCOUNT" | "STACK" | "WORKSPACE";
41
+ readOnly: boolean;
42
+ connectionInterfaceType?: string;
43
+ addQuestion?: string;
44
+ input?: object;
45
+ inputs: object[];
46
+ };
47
+ export type WorkflowActionWithContextResponse = {
48
+ actionId: string;
49
+ versionRange: string;
50
+ name: string;
51
+ stepType?: "CREATE_REPO";
52
+ valuesContext: ActionConsolidatedAttributeResponse[];
53
+ };
54
+ export type WorkflowAccountContextResponse = {
55
+ actionsBefore: WorkflowActionWithContextResponse[];
56
+ actionsAfter: WorkflowActionWithContextResponse[];
57
+ };
58
+ export type ContextAttribute = {
59
+ key: string;
60
+ value: object;
61
+ final: boolean;
62
+ sourceType?: "ACCOUNT" | "STACK" | "WORKSPACE";
63
+ };
64
+ export type ContextWorkflowRequest = {
65
+ actionId: string;
66
+ versionRange: string;
67
+ valuesContext: ContextAttribute[];
68
+ };
69
+ export type WorkflowContextSaveRequest = {
70
+ actionsBefore: ContextWorkflowRequest[];
71
+ actionsAfter: ContextWorkflowRequest[];
72
+ };
73
+ export type ConnectionInterfaceAttribute = {
74
+ /** Attribute key. */
75
+ key?: string;
76
+ /** Attribute value. */
77
+ value?: object;
78
+ /** Indicates if this attribute value is sensitive or not. */
79
+ sensitive?: boolean;
80
+ /** Indicates the outuput id for the respective attribute and is used for validation. */
81
+ id?: string;
82
+ };
83
+ export type ConnectionInterfaceAttributesByEnv = {
84
+ /** Environment id. */
85
+ environmentId?: string;
86
+ /** List of attributes */
87
+ attributes?: ConnectionInterfaceAttribute[];
88
+ };
89
+ export type ExternalItems = {
90
+ source: string;
91
+ value: string;
92
+ label?: string;
93
+ };
94
+ export type ConsolidatedValueByEnv = {
95
+ envName: string;
96
+ value: object;
97
+ mandate: boolean;
98
+ source: string;
99
+ };
100
+ export type Condition = {
101
+ variable: string;
102
+ operator: string;
103
+ value: object;
104
+ };
105
+ export type PluginInputValuesInConsolidatedContextResponse = {
106
+ name: string;
107
+ label: string;
108
+ "type": string;
109
+ inputEnv: boolean;
110
+ required?: boolean;
111
+ "default"?: object;
112
+ pattern?: string;
113
+ help?: string;
114
+ items?: string[];
115
+ externalItems?: ExternalItems;
116
+ valuesByEnv: ConsolidatedValueByEnv[];
117
+ condition?: Condition;
118
+ isGlobal?: boolean;
119
+ connectionInterfaceType?: string;
120
+ addQuestion?: string;
121
+ input?: object;
122
+ inputs: object[];
123
+ };
124
+ export type UpsertPluginInputContextRequest = {
125
+ /** Context's environment (omit or null for all in account) */
126
+ envName?: string;
127
+ key: string;
128
+ value: object;
129
+ mandate?: boolean;
130
+ };
131
+ export type UpsertActionInputContextRequest = {
132
+ /** Context's environment (omit or null for all in account) */
133
+ envName?: string;
134
+ key: string;
135
+ value: object;
136
+ mandate?: boolean;
137
+ };
138
+ export type AccValueByEnv = {
139
+ envName: string;
140
+ value: object;
141
+ mandate: boolean;
142
+ };
143
+ export type PluginInputValuesInAccountContextResponse = {
144
+ name: string;
145
+ label: string;
146
+ "type": string;
147
+ inputEnv: boolean;
148
+ required?: boolean;
149
+ "default"?: object;
150
+ pattern?: string;
151
+ help?: string;
152
+ items?: string[];
153
+ externalItems?: ExternalItems;
154
+ valuesByEnv: AccValueByEnv[];
155
+ condition?: Condition;
156
+ isGlobal?: boolean;
157
+ connectionInterfaceType?: string;
158
+ addQuestion?: string;
159
+ input?: object;
160
+ inputs: object[];
161
+ };
162
+ export type StudioResponse = {
163
+ slug: string;
164
+ name: string;
165
+ imageUrl?: string;
166
+ };
167
+ export type SimpleStackResponse = {
168
+ stackId: string;
169
+ name: string;
170
+ slug: string;
171
+ studio: StudioResponse;
172
+ };
173
+ export type WorkflowAccountSettingsResponse = {
174
+ name: string;
175
+ description: string;
176
+ "type": "CREATE_API" | "CREATE_APP" | "CREATE_INFRA";
177
+ isDefault: boolean;
178
+ stacks: SimpleStackResponse[];
179
+ };
180
+ export type WorkflowSettingsSaveRequest = {
181
+ name: string;
182
+ description: string;
183
+ "type": "CREATE_API" | "CREATE_APP" | "CREATE_INFRA";
184
+ isDefault: boolean;
185
+ stacksId: string[];
186
+ };
187
+ export type ActionResponse = {
188
+ actionId: string;
189
+ name: string;
190
+ order: number;
191
+ versionRange: string;
192
+ stepType?: "CREATE_REPO";
193
+ };
194
+ export type WorkflowActionResponse = {
195
+ actionsBefore: ActionResponse[];
196
+ actionsAfter: ActionResponse[];
197
+ };
198
+ export type WorkflowActionSimpleRequest = {
199
+ actionId: string;
200
+ order: number;
201
+ versionRange: string;
202
+ stepType?: "CREATE_REPO";
203
+ };
204
+ export type WorkflowActionsRequest = {
205
+ actionsBefore: WorkflowActionSimpleRequest[];
206
+ actionsAfter: WorkflowActionSimpleRequest[];
207
+ };
208
+ export type RequiresRequest = {
209
+ /** Connections requires name. */
210
+ selected?: string;
211
+ /** Connections requires alias. */
212
+ alias?: string;
213
+ /** Connections requires type. */
214
+ "type"?: string;
215
+ };
216
+ export type GeneratesRequest = {
217
+ /** Connections generates name. */
218
+ selected?: string;
219
+ /** Connections generates alias. */
220
+ alias?: string;
221
+ /** Connections generates type. */
222
+ "type"?: string;
223
+ };
224
+ export type PluginsConnectionsRequest = {
225
+ /** List of connections requires. */
226
+ requires?: RequiresRequest[];
227
+ /** List of connections generates. */
228
+ generates?: GeneratesRequest[];
229
+ };
230
+ export type PluginRequest = {
231
+ /** Name used in workflow. */
232
+ name?: string;
233
+ alias: string;
234
+ /** Type of plugin (APP/INFRA). */
235
+ "type"?: string;
236
+ pluginVersionId?: string;
237
+ /** Inputs used in workflow. */
238
+ inputs?: {
239
+ [key: string]: object;
240
+ };
241
+ /** Inputs sensitives used in workflow. */
242
+ inputsSensitive?: string[];
243
+ /** Inputs Env used in workflow. */
244
+ inputsEnv?: {
245
+ [key: string]: {
246
+ [key: string]: object;
247
+ };
248
+ };
249
+ connections?: PluginsConnectionsRequest;
250
+ };
251
+ export type Infra = {
252
+ /** Shared Infrastructure apiId that will be used in case of retry. */
253
+ sharedInfraId?: string;
254
+ stack: string;
255
+ /** Stack used to generate this shared infra. */
256
+ stackVersionId: string;
257
+ /** SharedInfra name. */
258
+ name: string;
259
+ /** SharedInfra repository url. */
260
+ repo?: string;
261
+ /** SharedInfra description. */
262
+ description?: string;
263
+ /** SharedInfra repository base branch. */
264
+ repoBaseBranch: string;
265
+ /** Starter Id used to generate this shared infra. */
266
+ starterId?: string;
267
+ plugins: PluginRequest[];
268
+ };
269
+ export type ActionsConnectionsRequest = {
270
+ /** List of connections requires. */
271
+ requires?: RequiresRequest[];
272
+ };
273
+ export type ActionsBeforeRequest = {
274
+ /** Actions before name. */
275
+ name?: string;
276
+ /** Actions before inputs. */
277
+ inputs?: {
278
+ [key: string]: object;
279
+ };
280
+ /** Actions before inputs sensitive. */
281
+ inputsSensitive?: string[];
282
+ /** Create repo?. */
283
+ repoCreate?: boolean;
284
+ connections?: ActionsConnectionsRequest;
285
+ };
286
+ export type ActionsAfterRequest = {
287
+ /** Actions after name. */
288
+ name?: string;
289
+ /** Actions after inputs. */
290
+ inputs?: {
291
+ [key: string]: object;
292
+ };
293
+ /** Actions after inputs sensitive. */
294
+ inputsSensitive?: string[];
295
+ /** Create repo?. */
296
+ repoCreate?: boolean;
297
+ connections?: ActionsConnectionsRequest;
298
+ };
299
+ export type CreateSharedRequest = {
300
+ infra: Infra;
301
+ actionsBefore?: ActionsBeforeRequest[];
302
+ actionsAfter?: ActionsAfterRequest[];
303
+ /** Data that will be used in case of retry. */
304
+ frontData?: object;
305
+ };
306
+ export type CreateShareInfraResponse = {
307
+ sharedInfraId: string;
308
+ workflowId: string;
309
+ logs: string;
310
+ };
311
+ export type App = {
312
+ /** Application apiId that will be used in case of retry. */
313
+ applicationId?: string;
314
+ /** Stack used to generate this application. */
315
+ stackVersionId: string;
316
+ /** Starter used to generate this application. */
317
+ starter: string;
318
+ /** Starter Id used to generate this application. */
319
+ starterId: string;
320
+ /** Application name. */
321
+ name: string;
322
+ /** Application repository url. */
323
+ repo?: string;
324
+ /** Application repository base branch. */
325
+ repoBaseBranch: string;
326
+ /** Application description. */
327
+ description?: string;
328
+ plugins: PluginRequest[];
329
+ };
330
+ export type Definitions = {
331
+ environmentId: string;
332
+ gatewayUrl: string;
333
+ openApiContent: string;
334
+ };
335
+ export type ApiRequest = {
336
+ /** Name used in create api. */
337
+ name: string;
338
+ /** Description used in create api. */
339
+ description: string;
340
+ connectionInterfaceSlug?: string;
341
+ /** Description used in create api. */
342
+ definitions: Definitions[];
343
+ };
344
+ export type CreateAppRequest = {
345
+ app: App;
346
+ /** Before Actions for execute in workflow . */
347
+ actionsBefore?: ActionsBeforeRequest[];
348
+ /** After Actions for execute in workflow . */
349
+ actionsAfter?: ActionsAfterRequest[];
350
+ api?: ApiRequest;
351
+ /** Data that will be used in case of retry. */
352
+ frontData?: object;
353
+ };
354
+ export type CreateApplicationResponse = {
355
+ applicationId: string;
356
+ apiId?: string;
357
+ workflowId: string;
358
+ logs: string;
359
+ };
360
+ export type StackResponse = {
361
+ id: string;
362
+ version: number;
363
+ displayName: string;
364
+ imageUrl?: string;
365
+ slug: string;
366
+ description: string;
367
+ studio: StudioResponse;
368
+ };
369
+ export type WorkspaceStackResponse = {
370
+ stackVersionId: string;
371
+ semanticVersion?: string;
372
+ copyFromStackVersionId?: string;
373
+ status: string;
374
+ hasDeprecatedContent: boolean;
375
+ workspaceId: string;
376
+ accountId: string;
377
+ qualifier: string;
378
+ stack: StackResponse;
379
+ };
380
+ export type AddStackInWorkspaceRequest = {
381
+ /** Stack version id. */
382
+ stackVersionId: string;
383
+ };
384
+ export type CreateConnectionInterfaceRequest = {
385
+ /** Connection interface type id. */
386
+ typeId?: string;
387
+ /** Connection interface id generated by client. */
388
+ connectionInterfaceId?: string;
389
+ /** Connection interface owner applications. */
390
+ applicationId?: string;
391
+ /** Connection interface owner shared infra. */
392
+ sharedInfraId?: string;
393
+ /** Version id from plugin that generated this connection interface. */
394
+ sourcePluginVersionId?: string;
395
+ /** Indicates if this connection interface was generated by a plugin or manually. */
396
+ automaticallyGenerated?: boolean;
397
+ /** Connection interface attributes. */
398
+ attributesByEnv?: ConnectionInterfaceAttributesByEnv[];
399
+ };
400
+ export type IdResponse = {
401
+ id: string;
402
+ };
403
+ export type ImportContextRequest = {
404
+ stackVersionId: string;
405
+ stackVersionReference: string;
406
+ };
407
+ export type WorkflowActionWithContextRequest = {
408
+ actionId: string;
409
+ order: number;
410
+ versionRange: string;
411
+ stepType?: "CREATE_REPO";
412
+ valuesContext: ContextAttribute[];
413
+ };
414
+ export type AccountWorkflowCreateRequest = {
415
+ name: string;
416
+ description: string;
417
+ "type": "CREATE_API" | "CREATE_APP" | "CREATE_INFRA";
418
+ isDefault: boolean;
419
+ stacksId: string[];
420
+ actionsBefore: WorkflowActionWithContextRequest[];
421
+ actionsAfter: WorkflowActionWithContextRequest[];
422
+ };
423
+ export type IdResponseString = {
424
+ id: string;
425
+ };
426
+ export type ConnectionInterfacesIdResponse = {
427
+ connectionInterfaceId: string;
428
+ typeId: string;
429
+ alias?: string;
430
+ typeName: string;
431
+ };
432
+ export type ConnectionInterfaceResponse = {
433
+ typeId?: string;
434
+ typeName: string;
435
+ alias: string;
436
+ };
437
+ export type Requires = {
438
+ connectionInterfaces: ConnectionInterfaceResponse[];
439
+ };
440
+ export type ActionsResponse = {
441
+ versionId: string;
442
+ qualifier: string;
443
+ description: string;
444
+ slug: string;
445
+ displayName: string;
446
+ requires: Requires;
447
+ };
448
+ export type Link = {
449
+ name: string;
450
+ url: string;
451
+ imageUrl?: string;
452
+ };
453
+ export type PluginsResponse = {
454
+ versionId: string;
455
+ qualifier: string;
456
+ slug: string;
457
+ description: string;
458
+ displayName: string;
459
+ "type": string;
460
+ status: string;
461
+ deployStatus: string;
462
+ inCloud?: boolean;
463
+ singleUse?: boolean;
464
+ attributes?: {
465
+ [key: string]: object;
466
+ };
467
+ connectionInterfaces?: ConnectionInterfacesIdResponse[];
468
+ actions?: ActionsResponse[];
469
+ links?: Link[];
470
+ };
471
+ export type SharedInfraAppliedPluginsV2Response = {
472
+ plugins: PluginsResponse[];
473
+ };
474
+ export type ApplicationAppliedPluginsV2Response = {
475
+ plugins: PluginsResponse[];
476
+ };
477
+ export type WorkspaceContextV2ResponseWorkspacePluginAttributeContext = {
478
+ /** Key identifier of an input */
479
+ key?: string;
480
+ /** Value of an input */
481
+ value?: object;
482
+ /** Identifies whether this attribute can be overwritten or not */
483
+ mandate?: boolean;
484
+ /** Source */
485
+ source?: string;
486
+ };
487
+ export type WorkspaceContextV2ResponseEnvironment = {
488
+ /** Identifier of a environment */
489
+ environmentId?: string;
490
+ /** name of a environment */
491
+ environmentName?: string;
492
+ /** Attributes environments */
493
+ attributes?: WorkspaceContextV2ResponseWorkspacePluginAttributeContext[];
494
+ };
495
+ export type WorkspaceContextV2ResponseConnectionInterfaceRequired = {
496
+ /** Connection interface type required */
497
+ typeName?: string;
498
+ /** Identifier of the pluginVersionId that should be used for the connection interface type */
499
+ pluginVersionId?: string;
500
+ alias?: string;
501
+ };
502
+ export type WorkspaceContextV2ResponsePlugin = {
503
+ /** Identifier of a plugin version */
504
+ pluginVersionId?: string;
505
+ /** Plugin slugs name with format `accountSlug/studioSlug/pluginSlug@x.y.z` */
506
+ pluginQualifier?: string;
507
+ /** Plugin type */
508
+ pluginType?: string;
509
+ /** Status Plugin */
510
+ status?: string;
511
+ /** Attributes show by environments */
512
+ environments?: WorkspaceContextV2ResponseEnvironment[];
513
+ /** Connection interfaces required */
514
+ connectionInterfaceRequired?: WorkspaceContextV2ResponseConnectionInterfaceRequired[];
515
+ };
516
+ export type WorkspaceContextV2ResponseConnectionInterface = {
517
+ /** Connection interface type */
518
+ typeName?: string;
519
+ /** Connection interface id. */
520
+ id?: string;
521
+ /** Connection interface id generated by client. */
522
+ connectionInterfaceId?: string;
523
+ /** Automatically generated */
524
+ automaticallyGenerated?: boolean;
525
+ };
526
+ export type WorkspaceContextV2Response = {
527
+ /** Cloud accounts information */
528
+ cloudAccounts?: object[];
529
+ /** Context information for each environment and plugin in stack */
530
+ context?: WorkspaceContextV2ResponsePlugin[];
531
+ /** Workspace Connection Interfaces information */
532
+ connectionInterfaces?: WorkspaceContextV2ResponseConnectionInterface[];
533
+ };
534
+ export type AvailableConnectionInterface = {
535
+ id: string;
536
+ slug: string;
537
+ sourcePluginUri?: string;
538
+ };
539
+ export type ConnectionInterfaceInput = {
540
+ name: string;
541
+ "type": "BOOLEAN" | "NUMBER" | "STRING" | "SECRET" | "ARRAY" | "OBJECT";
542
+ };
543
+ export type RequiredConnectionInterfaceByType = {
544
+ typeId: string;
545
+ typeName: string;
546
+ alias: string;
547
+ available: AvailableConnectionInterface[];
548
+ inputDefinitions: ConnectionInterfaceInput[];
549
+ };
550
+ export type GeneratesConnectionInterfaceByType = {
551
+ typeId: string;
552
+ typeName: string;
553
+ alias: string;
554
+ };
555
+ export type PluginForAppCreationV2Response = {
556
+ displayName: string;
557
+ status: string;
558
+ uri: string;
559
+ version: string;
560
+ singleUse?: boolean;
561
+ inputs: PluginInputValuesInConsolidatedContextResponse[];
562
+ requiredConnectionInterfacesByType: RequiredConnectionInterfaceByType[];
563
+ generatesConnectionInterfacesByType: GeneratesConnectionInterfaceByType[];
564
+ };
565
+ export type SimpleStackWithImageResponse = {
566
+ stackId: string;
567
+ name: string;
568
+ slug: string;
569
+ imageUrl?: string;
570
+ studio: StudioResponse;
571
+ };
572
+ export type WorkflowCompleteResponse = {
573
+ workflowId: string;
574
+ name: string;
575
+ description: string;
576
+ "type": "CREATE_API" | "CREATE_APP" | "CREATE_INFRA";
577
+ isDefault: boolean;
578
+ actionsBefore: WorkflowActionWithContextResponse[];
579
+ actionsAfter: WorkflowActionWithContextResponse[];
580
+ };
581
+ export type StackVersionResponse = {
582
+ stackVersionId: string;
583
+ version: number;
584
+ status?: string;
585
+ hasDeprecatedContent: boolean;
586
+ published: boolean;
587
+ publishedBy?: string;
588
+ publishedAt?: string;
589
+ unpublishedBy?: string;
590
+ unpublishedAt?: string;
591
+ semanticVersion?: string;
592
+ copyFromStackVersionId?: string;
593
+ hasContext?: boolean;
594
+ };
595
+ export type VersionStackResponse = {
596
+ id: string;
597
+ version: number;
598
+ displayName: string;
599
+ imageUrl?: string;
600
+ slug: string;
601
+ description: string;
602
+ studio: StudioResponse;
603
+ versions: StackVersionResponse[];
604
+ };
605
+ export type WorkspaceStackContextResponse = {
606
+ stackVersionId: string;
607
+ semanticVersion?: string;
608
+ copyFromStackVersionId?: string;
609
+ status: string;
610
+ hasDeprecatedContent: boolean;
611
+ hasVersionsWithContext: boolean;
612
+ workspaceId: string;
613
+ accountId: string;
614
+ qualifier: string;
615
+ hasContext: boolean;
616
+ stack: VersionStackResponse;
617
+ };
618
+ export type LinksConsolidateResponse = {
619
+ id: string;
620
+ name: string;
621
+ url: string;
622
+ imageUrl?: string;
623
+ readOnly: boolean;
624
+ visible: boolean;
625
+ "type": "STACK" | "PLUGIN" | "APPLICATION" | "SHAREDINFRA" | "WORKSPACE";
626
+ };
627
+ export type SharedInfraResponse = {
628
+ /** Shared-infra id. */
629
+ id?: string;
630
+ /** Shared-infra name. */
631
+ name?: string;
632
+ /** Shared-infra description. */
633
+ description?: string;
634
+ /** Shared-infra repository url. */
635
+ repoUrl?: string;
636
+ /** Shared-infra repository base branch. */
637
+ repoBaseBranch?: string;
638
+ /** Stack used to generate this shared-infra. */
639
+ stackVersionId?: string;
640
+ /** Starter used to generate this shared-infra. */
641
+ version?: string;
642
+ /** Shared-infra Deploy Status. */
643
+ status?: string;
644
+ };
645
+ export type WorkspaceActivitiesResponse = {
646
+ title: string;
647
+ owner?: string;
648
+ status: "SUCCESS" | "FAILED" | "RUNNING" | "PENDING" | "SKIPPED" | "CANCELLED" | "NONE" | "DRIFT" | "SUCCEEDED" | "RUNTIME_ERROR" | "USER_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "ABORTING" | "EXTERNAL_ERROR" | "READY_TO_RUN";
649
+ "type"?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
650
+ action?: "CREATE" | "UPDATE" | "DELETE" | "RUN";
651
+ requestedBy?: string;
652
+ time: number;
653
+ version: string;
654
+ detail: {
655
+ [key: string]: object;
656
+ };
657
+ };
658
+ export type Studio = {
659
+ id: string;
660
+ slug: string;
661
+ name: string;
662
+ };
663
+ export type WorkspacePluginConnectionsResponse = {
664
+ typeId: string;
665
+ "type": string;
666
+ alias: string;
667
+ };
668
+ export type WorkspacePluginResponse = {
669
+ stackVersionId: string;
670
+ stackSlug: string;
671
+ stackSemanticVersion: string;
672
+ pluginId: string;
673
+ pluginVersionId: string;
674
+ slug: string;
675
+ displayName: string;
676
+ description: string;
677
+ pluginQualifier: string;
678
+ studio: Studio;
679
+ uri: string;
680
+ requiredConnectionInterfacesByType?: WorkspacePluginConnectionsResponse[];
681
+ generatesConnectionInterfacesByType: WorkspacePluginConnectionsResponse[];
682
+ };
683
+ export type Visibility = {
684
+ "type": string;
685
+ ids: string[];
686
+ };
687
+ export type ConnectionInterfaceDetailsResponse = {
688
+ /** Connection Interface Details id. */
689
+ id?: string;
690
+ /** Connection Interface Type id. */
691
+ typeId?: string;
692
+ /** Connection Interface id. */
693
+ connectionInterfaceId?: string;
694
+ visibility?: Visibility;
695
+ /** Source Plugin Version id. */
696
+ sourcePluginVersionId?: string;
697
+ /** Was this Connection Interface automatically generated?. */
698
+ automaticallyGenerated?: boolean;
699
+ /** Connection interface attribute's by environment. */
700
+ attributesByEnv?: ConnectionInterfaceAttributesByEnv[];
701
+ };
702
+ export type AvailableConnectionInterfaceResponse = {
703
+ slug: string;
704
+ typeId: string;
705
+ typeName: string;
706
+ automaticallyGenerated: boolean;
707
+ };
708
+ export type ApplicationResponse = {
709
+ /** Application id. */
710
+ id?: string;
711
+ /** Application name. */
712
+ name?: string;
713
+ /** Application description. */
714
+ description?: string;
715
+ /** Application repository url. */
716
+ repoUrl?: string;
717
+ /** Application repository base branch. */
718
+ repoBaseBranch?: string;
719
+ /** Stack used to generate this application. */
720
+ stackVersionId?: string;
721
+ /** Starter used to generate this application. */
722
+ starterId?: string;
723
+ /** Application Deploy Version. */
724
+ version?: string;
725
+ /** Application Deploy Status. */
726
+ status?: string;
727
+ };
728
+ export type WorkspaceContextResponseWorkspacePluginAttributeContext = {
729
+ /** Key identifier of an input */
730
+ key?: string;
731
+ /** Value of an input */
732
+ value?: object;
733
+ /** Identifies whether this attribute can be overwritten or not */
734
+ mandate?: boolean;
735
+ /** Source */
736
+ source?: string;
737
+ };
738
+ export type WorkspaceContextResponseEnvironment = {
739
+ /** Identifier of a environment */
740
+ environmentId?: string;
741
+ /** name of a environment */
742
+ environmentName?: string;
743
+ /** Attributes environments */
744
+ attributes?: WorkspaceContextResponseWorkspacePluginAttributeContext[];
745
+ };
746
+ export type WorkspaceContextResponseConnectionInterfaceRequired = {
747
+ /** Connection interface type required */
748
+ "type"?: string;
749
+ /** Identifier of the pluginVersionId that should be used for the connection interface type */
750
+ pluginVersionId?: string;
751
+ alias?: string;
752
+ };
753
+ export type WorkspaceContextResponsePlugin = {
754
+ /** Identifier of a plugin version */
755
+ pluginVersionId?: string;
756
+ /** Plugin slugs name with format `accountSlug/studioSlug/pluginSlug@x.y.z` */
757
+ pluginQualifier?: string;
758
+ /** Plugin type */
759
+ pluginType?: string;
760
+ /** Status Plugin */
761
+ status?: string;
762
+ /** Attributes show by environments */
763
+ environments?: WorkspaceContextResponseEnvironment[];
764
+ /** Connection interfaces required */
765
+ connectionInterfaceRequired?: WorkspaceContextResponseConnectionInterfaceRequired[];
766
+ };
767
+ export type WorkspaceContextResponseConnectionInterface = {
768
+ /** Connection interface type */
769
+ "type"?: string;
770
+ /** Connection interface id. */
771
+ id?: string;
772
+ /** Connection interface id generated by client. */
773
+ connectionInterfaceId?: string;
774
+ /** Automatically generated */
775
+ automaticallyGenerated?: boolean;
776
+ };
777
+ export type WorkspaceContextResponse = {
778
+ /** Cloud accounts information */
779
+ cloudAccounts?: object[];
780
+ /** Context information for each environment and plugin in stack */
781
+ context?: WorkspaceContextResponsePlugin[];
782
+ /** Workspace Connection Interfaces information */
783
+ connectionInterfaces?: WorkspaceContextResponseConnectionInterface[];
784
+ };
785
+ export type PluginForAppCreationResponse = {
786
+ displayName: string;
787
+ status: string;
788
+ uri: string;
789
+ inputs: PluginInputValuesInConsolidatedContextResponse[];
790
+ requiredConnectionInterfacesByType: RequiredConnectionInterfaceByType[];
791
+ generatesConnectionInterfacesByType: GeneratesConnectionInterfaceByType[];
792
+ };
793
+ export type ValueByEnvWorkspaceResponse = {
794
+ envName: string;
795
+ value: object;
796
+ mandate: boolean;
797
+ source: string;
798
+ };
799
+ export type StackActionInputValuesByEnvInWorkspaceContextResponse = {
800
+ name: string;
801
+ label: string;
802
+ "type": string;
803
+ items?: string[];
804
+ externalItems?: ExternalItems;
805
+ inputEnv: boolean;
806
+ "default"?: object;
807
+ required?: boolean;
808
+ pattern?: string;
809
+ help?: string;
810
+ valuesByEnv: ValueByEnvWorkspaceResponse[];
811
+ connectionInterfaceType?: string;
812
+ addQuestion?: string;
813
+ input?: object;
814
+ inputs: object[];
815
+ };
816
+ export type ValueByEnvAccountResponse = {
817
+ envName: string;
818
+ value: object;
819
+ mandate: boolean;
820
+ };
821
+ export type StackActionInputValuesByEnvInAccountContextResponse = {
822
+ name: string;
823
+ label: string;
824
+ "type": string;
825
+ items?: string[];
826
+ externalItems?: ExternalItems;
827
+ inputEnv: boolean;
828
+ "default"?: object;
829
+ required?: boolean;
830
+ pattern?: string;
831
+ help?: string;
832
+ valuesByEnv: ValueByEnvAccountResponse[];
833
+ connectionInterfaceType?: string;
834
+ addQuestion?: string;
835
+ input?: object;
836
+ inputs: object[];
837
+ };
838
+ export type StackVersion = {
839
+ stackVersionId: string;
840
+ version: number;
841
+ published: boolean;
842
+ publishedBy?: string;
843
+ publishedAt?: string;
844
+ unpublishedBy?: string;
845
+ unpublishedAt?: string;
846
+ semanticVersion?: string;
847
+ copyFromStackVersionId?: string;
848
+ };
849
+ export type StackVersionShortForm = {
850
+ stackVersionId: string;
851
+ version: number;
852
+ published: boolean;
853
+ semanticVersion?: string;
854
+ copyFromStackVersionId?: string;
855
+ };
856
+ export type Workflow = {
857
+ id: string;
858
+ name: string;
859
+ "type": "CREATE_APP" | "CREATE_INFRA" | "CREATE_API";
860
+ isDefault: boolean;
861
+ };
862
+ export type StacksByAccountWithWorkflowResponse = {
863
+ stack: StackResponse;
864
+ latestVersion: StackVersion;
865
+ versions: StackVersionShortForm[];
866
+ workflows: Workflow[];
867
+ };
868
+ export type StackVersionWksResponse = {
869
+ stackVersionId: string;
870
+ version: number;
871
+ status: string;
872
+ hasDeprecatedContent: boolean;
873
+ hasContext?: boolean;
874
+ published: boolean;
875
+ semanticVersion?: string;
876
+ copyFromStackVersionId?: string;
877
+ };
878
+ export type AccountContextStackResponse = {
879
+ stackVersionId: string;
880
+ hasContext: boolean;
881
+ hasVersionsWithContext: boolean;
882
+ versions: StackVersionWksResponse[];
883
+ };
884
+ export function findWorkflowStackContext({ workspaceId, stackId, workflowId }: {
885
+ workspaceId: string;
886
+ stackId: string;
887
+ workflowId: string;
888
+ }, opts?: Oazapfts.RequestOpts) {
889
+ return oazapfts.ok(oazapfts.fetchJson<{
890
+ status: 200;
891
+ data: WorkflowAccountContextResponse;
892
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, {
893
+ ...opts
894
+ }));
895
+ }
896
+ export function saveWorkflowWorkspaceContext({ workspaceId, stackId, workflowId, workflowContextSaveRequest }: {
897
+ workspaceId: string;
898
+ stackId: string;
899
+ workflowId: string;
900
+ workflowContextSaveRequest: WorkflowContextSaveRequest;
901
+ }, opts?: Oazapfts.RequestOpts) {
902
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
903
+ ...opts,
904
+ method: "PUT",
905
+ body: workflowContextSaveRequest
906
+ })));
907
+ }
908
+ export function updateConnectionInterfaceAttributes({ workspaceId, connectionInterfaceId, connectionInterfaceAttributesByEnv }: {
909
+ workspaceId: string;
910
+ connectionInterfaceId: string;
911
+ connectionInterfaceAttributesByEnv: ConnectionInterfaceAttributesByEnv;
912
+ }, opts?: Oazapfts.RequestOpts) {
913
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(connectionInterfaceId)}/attributes`, oazapfts.json({
914
+ ...opts,
915
+ method: "PUT",
916
+ body: connectionInterfaceAttributesByEnv
917
+ })));
918
+ }
919
+ export function getConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }: {
920
+ workspaceId: string;
921
+ stackVersionId: string;
922
+ pluginVersionId: string;
923
+ envName?: string;
924
+ }, opts?: Oazapfts.RequestOpts) {
925
+ return oazapfts.ok(oazapfts.fetchJson<{
926
+ status: 200;
927
+ data: PluginInputValuesInConsolidatedContextResponse[];
928
+ }>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
929
+ envName
930
+ }))}`, {
931
+ ...opts
932
+ }));
933
+ }
934
+ export function upsertPluginWorkspaceContext({ workspaceId, stackVersionId, pluginVersionId, body }: {
935
+ workspaceId: string;
936
+ stackVersionId: string;
937
+ pluginVersionId: string;
938
+ body: UpsertPluginInputContextRequest[];
939
+ }, opts?: Oazapfts.RequestOpts) {
940
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs`, oazapfts.json({
941
+ ...opts,
942
+ method: "PUT",
943
+ body
944
+ })));
945
+ }
946
+ export function upsertWorkspaceActionsInputContext({ workspaceId, stackVersionId, actionVersionId, body }: {
947
+ workspaceId: string;
948
+ stackVersionId: string;
949
+ actionVersionId: string;
950
+ body: UpsertActionInputContextRequest[];
951
+ }, opts?: Oazapfts.RequestOpts) {
952
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}/inputs`, oazapfts.json({
953
+ ...opts,
954
+ method: "PUT",
955
+ body
956
+ })));
957
+ }
958
+ export function getAccountPluginInputs({ stackVersionId, pluginVersionId, envName }: {
959
+ stackVersionId: string;
960
+ pluginVersionId: string;
961
+ envName?: string;
962
+ }, opts?: Oazapfts.RequestOpts) {
963
+ return oazapfts.ok(oazapfts.fetchJson<{
964
+ status: 200;
965
+ data: PluginInputValuesInAccountContextResponse[];
966
+ }>(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
967
+ envName
968
+ }))}`, {
969
+ ...opts
970
+ }));
971
+ }
972
+ export function upsertPluginAccountContext({ stackVersionId, pluginVersionId, body }: {
973
+ stackVersionId: string;
974
+ pluginVersionId: string;
975
+ body: UpsertPluginInputContextRequest[];
976
+ }, opts?: Oazapfts.RequestOpts) {
977
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs`, oazapfts.json({
978
+ ...opts,
979
+ method: "PUT",
980
+ body
981
+ })));
982
+ }
983
+ export function upsertAccountActionsInputContext({ stackVersionId, actionVersionId, body }: {
984
+ stackVersionId: string;
985
+ actionVersionId: string;
986
+ body: UpsertActionInputContextRequest[];
987
+ }, opts?: Oazapfts.RequestOpts) {
988
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}/inputs`, oazapfts.json({
989
+ ...opts,
990
+ method: "PUT",
991
+ body
992
+ })));
993
+ }
994
+ export function findWorkflowSettings({ workflowId }: {
995
+ workflowId: string;
996
+ }, opts?: Oazapfts.RequestOpts) {
997
+ return oazapfts.ok(oazapfts.fetchJson<{
998
+ status: 200;
999
+ data: WorkflowAccountSettingsResponse;
1000
+ }>(`/v1/account/workflows/${encodeURIComponent(workflowId)}/settings`, {
1001
+ ...opts
1002
+ }));
1003
+ }
1004
+ export function saveWorkflowSettings({ workflowId, workflowSettingsSaveRequest }: {
1005
+ workflowId: string;
1006
+ workflowSettingsSaveRequest: WorkflowSettingsSaveRequest;
1007
+ }, opts?: Oazapfts.RequestOpts) {
1008
+ return oazapfts.ok(oazapfts.fetchText(`/v1/account/workflows/${encodeURIComponent(workflowId)}/settings`, oazapfts.json({
1009
+ ...opts,
1010
+ method: "PUT",
1011
+ body: workflowSettingsSaveRequest
1012
+ })));
1013
+ }
1014
+ export function findWorkflowContext({ workflowId }: {
1015
+ workflowId: string;
1016
+ }, opts?: Oazapfts.RequestOpts) {
1017
+ return oazapfts.ok(oazapfts.fetchJson<{
1018
+ status: 200;
1019
+ data: WorkflowAccountContextResponse;
1020
+ }>(`/v1/account/workflows/${encodeURIComponent(workflowId)}/context`, {
1021
+ ...opts
1022
+ }));
1023
+ }
1024
+ export function saveWorkflowContext({ workflowId, workflowContextSaveRequest }: {
1025
+ workflowId: string;
1026
+ workflowContextSaveRequest: WorkflowContextSaveRequest;
1027
+ }, opts?: Oazapfts.RequestOpts) {
1028
+ return oazapfts.ok(oazapfts.fetchText(`/v1/account/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
1029
+ ...opts,
1030
+ method: "PUT",
1031
+ body: workflowContextSaveRequest
1032
+ })));
1033
+ }
1034
+ export function getWorkflowActions1({ workflowId }: {
1035
+ workflowId: string;
1036
+ }, opts?: Oazapfts.RequestOpts) {
1037
+ return oazapfts.ok(oazapfts.fetchJson<{
1038
+ status: 200;
1039
+ data: WorkflowActionResponse;
1040
+ }>(`/v1/account/workflows/${encodeURIComponent(workflowId)}/actions`, {
1041
+ ...opts
1042
+ }));
1043
+ }
1044
+ export function getWorkflowActions({ workflowId, workflowActionsRequest }: {
1045
+ workflowId: string;
1046
+ workflowActionsRequest: WorkflowActionsRequest;
1047
+ }, opts?: Oazapfts.RequestOpts) {
1048
+ return oazapfts.ok(oazapfts.fetchText(`/v1/account/workflows/${encodeURIComponent(workflowId)}/actions`, oazapfts.json({
1049
+ ...opts,
1050
+ method: "PUT",
1051
+ body: workflowActionsRequest
1052
+ })));
1053
+ }
1054
+ export function findWorkflowStackContext1({ stackId, workflowId }: {
1055
+ stackId: string;
1056
+ workflowId: string;
1057
+ }, opts?: Oazapfts.RequestOpts) {
1058
+ return oazapfts.ok(oazapfts.fetchJson<{
1059
+ status: 200;
1060
+ data: WorkflowAccountContextResponse;
1061
+ }>(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, {
1062
+ ...opts
1063
+ }));
1064
+ }
1065
+ export function saveWorkflowStackContext({ stackId, workflowId, workflowContextSaveRequest }: {
1066
+ stackId: string;
1067
+ workflowId: string;
1068
+ workflowContextSaveRequest: WorkflowContextSaveRequest;
1069
+ }, opts?: Oazapfts.RequestOpts) {
1070
+ return oazapfts.ok(oazapfts.fetchText(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
1071
+ ...opts,
1072
+ method: "PUT",
1073
+ body: workflowContextSaveRequest
1074
+ })));
1075
+ }
1076
+ export function createSharedInfra({ workspaceId, createSharedRequest }: {
1077
+ workspaceId: string;
1078
+ createSharedRequest: CreateSharedRequest;
1079
+ }, opts?: Oazapfts.RequestOpts) {
1080
+ return oazapfts.ok(oazapfts.fetchJson<{
1081
+ status: 200;
1082
+ data: CreateShareInfraResponse;
1083
+ }>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra`, oazapfts.json({
1084
+ ...opts,
1085
+ method: "POST",
1086
+ body: createSharedRequest
1087
+ })));
1088
+ }
1089
+ export function createApp({ workspaceId, createAppRequest }: {
1090
+ workspaceId: string;
1091
+ createAppRequest: CreateAppRequest;
1092
+ }, opts?: Oazapfts.RequestOpts) {
1093
+ return oazapfts.ok(oazapfts.fetchJson<{
1094
+ status: 200;
1095
+ data: CreateApplicationResponse;
1096
+ }>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications`, oazapfts.json({
1097
+ ...opts,
1098
+ method: "POST",
1099
+ body: createAppRequest
1100
+ })));
1101
+ }
1102
+ export function upsertTeam({ workspaceId, body }: {
1103
+ workspaceId: string;
1104
+ body: string[];
1105
+ }, opts?: Oazapfts.RequestOpts) {
1106
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/teams/batch`, oazapfts.json({
1107
+ ...opts,
1108
+ method: "POST",
1109
+ body
1110
+ })));
1111
+ }
1112
+ export function listStacks1({ workspaceId }: {
1113
+ workspaceId: string;
1114
+ }, opts?: Oazapfts.RequestOpts) {
1115
+ return oazapfts.ok(oazapfts.fetchJson<{
1116
+ status: 200;
1117
+ data: WorkspaceStackResponse[];
1118
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks`, {
1119
+ ...opts
1120
+ }));
1121
+ }
1122
+ export function addStacksInWorkspace({ workspaceId, addStackInWorkspaceRequest }: {
1123
+ workspaceId: string;
1124
+ addStackInWorkspaceRequest: AddStackInWorkspaceRequest;
1125
+ }, opts?: Oazapfts.RequestOpts) {
1126
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks`, oazapfts.json({
1127
+ ...opts,
1128
+ method: "POST",
1129
+ body: addStackInWorkspaceRequest
1130
+ })));
1131
+ }
1132
+ export function createConnectionInterface({ workspaceId, createConnectionInterfaceRequest }: {
1133
+ workspaceId: string;
1134
+ createConnectionInterfaceRequest: CreateConnectionInterfaceRequest;
1135
+ }, opts?: Oazapfts.RequestOpts) {
1136
+ return oazapfts.ok(oazapfts.fetchJson<{
1137
+ status: 201;
1138
+ data: IdResponse;
1139
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces`, oazapfts.json({
1140
+ ...opts,
1141
+ method: "POST",
1142
+ body: createConnectionInterfaceRequest
1143
+ })));
1144
+ }
1145
+ export function importContextInWorkspace({ workspaceId, body }: {
1146
+ workspaceId: string;
1147
+ body: ImportContextRequest[];
1148
+ }, opts?: Oazapfts.RequestOpts) {
1149
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/import-context`, oazapfts.json({
1150
+ ...opts,
1151
+ method: "POST",
1152
+ body
1153
+ })));
1154
+ }
1155
+ export function importContextInAccount({ body }: {
1156
+ body: ImportContextRequest[];
1157
+ }, opts?: Oazapfts.RequestOpts) {
1158
+ return oazapfts.ok(oazapfts.fetchText("/v1/contexts/account/stacks/import-context", oazapfts.json({
1159
+ ...opts,
1160
+ method: "POST",
1161
+ body
1162
+ })));
1163
+ }
1164
+ export function createAccountWorkflow({ accountWorkflowCreateRequest }: {
1165
+ accountWorkflowCreateRequest: AccountWorkflowCreateRequest;
1166
+ }, opts?: Oazapfts.RequestOpts) {
1167
+ return oazapfts.ok(oazapfts.fetchJson<{
1168
+ status: 201;
1169
+ data: IdResponseString;
1170
+ }>("/v1/account/workflows", oazapfts.json({
1171
+ ...opts,
1172
+ method: "POST",
1173
+ body: accountWorkflowCreateRequest
1174
+ })));
1175
+ }
1176
+ export function archiveApplication({ workspaceId, applicationId }: {
1177
+ workspaceId: string;
1178
+ applicationId: string;
1179
+ }, opts?: Oazapfts.RequestOpts) {
1180
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/archive`, {
1181
+ ...opts,
1182
+ method: "PATCH"
1183
+ }));
1184
+ }
1185
+ export function getSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envName, pluginType, containsLinks }: {
1186
+ workspaceId: string;
1187
+ sharedInfraId: string;
1188
+ envName: string;
1189
+ pluginType?: string;
1190
+ containsLinks: boolean;
1191
+ }, opts?: Oazapfts.RequestOpts) {
1192
+ return oazapfts.ok(oazapfts.fetchJson<{
1193
+ status: 200;
1194
+ data: SharedInfraAppliedPluginsV2Response;
1195
+ }>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/plugins${QS.query(QS.explode({
1196
+ pluginType,
1197
+ containsLinks
1198
+ }))}`, {
1199
+ ...opts
1200
+ }));
1201
+ }
1202
+ export function getApplicationAppliedPlugins({ workspaceId, applicationId, envName, pluginType, containsLinks }: {
1203
+ workspaceId: string;
1204
+ applicationId: string;
1205
+ envName: string;
1206
+ pluginType?: string;
1207
+ containsLinks: boolean;
1208
+ }, opts?: Oazapfts.RequestOpts) {
1209
+ return oazapfts.ok(oazapfts.fetchJson<{
1210
+ status: 200;
1211
+ data: ApplicationAppliedPluginsV2Response;
1212
+ }>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/plugins${QS.query(QS.explode({
1213
+ pluginType,
1214
+ containsLinks
1215
+ }))}`, {
1216
+ ...opts
1217
+ }));
1218
+ }
1219
+ export function getWorkspaceContext({ workspaceId, stackVersionId, envName }: {
1220
+ workspaceId: string;
1221
+ stackVersionId: string;
1222
+ envName?: string;
1223
+ }, opts?: Oazapfts.RequestOpts) {
1224
+ return oazapfts.ok(oazapfts.fetchJson<{
1225
+ status: 200;
1226
+ data: WorkspaceContextV2Response;
1227
+ }>(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}${QS.query(QS.explode({
1228
+ envName
1229
+ }))}`, {
1230
+ ...opts
1231
+ }));
1232
+ }
1233
+ export function getConsolidatedPluginInputsWithConnectionInterfaces({ workspaceId, stackVersionId, pluginVersionId }: {
1234
+ workspaceId: string;
1235
+ stackVersionId: string;
1236
+ pluginVersionId: string;
1237
+ }, opts?: Oazapfts.RequestOpts) {
1238
+ return oazapfts.ok(oazapfts.fetchJson<{
1239
+ status: 200;
1240
+ data: PluginForAppCreationV2Response;
1241
+ }>(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
1242
+ ...opts
1243
+ }));
1244
+ }
1245
+ export function listStacks({ workspaceId, workflowId }: {
1246
+ workspaceId: string;
1247
+ workflowId: string;
1248
+ }, opts?: Oazapfts.RequestOpts) {
1249
+ return oazapfts.ok(oazapfts.fetchJson<{
1250
+ status: 200;
1251
+ data: SimpleStackWithImageResponse[];
1252
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks`, {
1253
+ ...opts
1254
+ }));
1255
+ }
1256
+ export function listWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, workflowType }: {
1257
+ workspaceId: string;
1258
+ stackId: string;
1259
+ workflowType: string;
1260
+ }, opts?: Oazapfts.RequestOpts) {
1261
+ return oazapfts.ok(oazapfts.fetchJson<{
1262
+ status: 200;
1263
+ data: WorkflowCompleteResponse;
1264
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowType)}`, {
1265
+ ...opts
1266
+ }));
1267
+ }
1268
+ export function listStacksContext({ workspaceId }: {
1269
+ workspaceId: string;
1270
+ }, opts?: Oazapfts.RequestOpts) {
1271
+ return oazapfts.ok(oazapfts.fetchJson<{
1272
+ status: 200;
1273
+ data: WorkspaceStackContextResponse[];
1274
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/with-context`, {
1275
+ ...opts
1276
+ }));
1277
+ }
1278
+ export function getApplicationLinks({ workspaceId, sharedInfraId, envName }: {
1279
+ workspaceId: string;
1280
+ sharedInfraId: string;
1281
+ envName: string;
1282
+ }, opts?: Oazapfts.RequestOpts) {
1283
+ return oazapfts.ok(oazapfts.fetchJson<{
1284
+ status: 200;
1285
+ data: LinksConsolidateResponse[];
1286
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/links`, {
1287
+ ...opts
1288
+ }));
1289
+ }
1290
+ export function getSharedInfraAppliedPlugins1({ workspaceId, sharedInfraId, envName }: {
1291
+ workspaceId: string;
1292
+ sharedInfraId: string;
1293
+ envName: string;
1294
+ }, opts?: Oazapfts.RequestOpts) {
1295
+ return oazapfts.ok(oazapfts.fetchJson<{
1296
+ status: 200;
1297
+ data: SharedInfraResponse;
1298
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/details`, {
1299
+ ...opts
1300
+ }));
1301
+ }
1302
+ export function getSharedInfraActivities({ workspaceId, sharedInfraId, envName, $type }: {
1303
+ workspaceId: string;
1304
+ sharedInfraId: string;
1305
+ envName: string;
1306
+ $type?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1307
+ }, opts?: Oazapfts.RequestOpts) {
1308
+ return oazapfts.ok(oazapfts.fetchJson<{
1309
+ status: 200;
1310
+ data: WorkspaceActivitiesResponse[];
1311
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/activities${QS.query(QS.explode({
1312
+ "type": $type
1313
+ }))}`, {
1314
+ ...opts
1315
+ }));
1316
+ }
1317
+ export function listPluginsFromWorkspace({ workspaceId, typePlugin }: {
1318
+ workspaceId: string;
1319
+ typePlugin?: "INFRA" | "APP";
1320
+ }, opts?: Oazapfts.RequestOpts) {
1321
+ return oazapfts.ok(oazapfts.fetchJson<{
1322
+ status: 200;
1323
+ data: WorkspacePluginResponse[];
1324
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/plugins${QS.query(QS.explode({
1325
+ typePlugin
1326
+ }))}`, {
1327
+ ...opts
1328
+ }));
1329
+ }
1330
+ export function getConnectionInterfaceDetails({ workspaceId, connectionInterfaceId }: {
1331
+ workspaceId: string;
1332
+ connectionInterfaceId: string;
1333
+ }, opts?: Oazapfts.RequestOpts) {
1334
+ return oazapfts.ok(oazapfts.fetchJson<{
1335
+ status: 200;
1336
+ data: ConnectionInterfaceDetailsResponse;
1337
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(connectionInterfaceId)}`, {
1338
+ ...opts
1339
+ }));
1340
+ }
1341
+ export function getAvailableConnectionInterfaces({ workspaceId, typeName, automaticallyGenerated }: {
1342
+ workspaceId: string;
1343
+ typeName?: string;
1344
+ automaticallyGenerated?: boolean;
1345
+ }, opts?: Oazapfts.RequestOpts) {
1346
+ return oazapfts.ok(oazapfts.fetchJson<{
1347
+ status: 200;
1348
+ data: AvailableConnectionInterfaceResponse[];
1349
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/available-connection-interfaces${QS.query(QS.explode({
1350
+ typeName,
1351
+ automaticallyGenerated
1352
+ }))}`, {
1353
+ ...opts
1354
+ }));
1355
+ }
1356
+ export function getApplicationLinks1({ workspaceId, applicationId, envName }: {
1357
+ workspaceId: string;
1358
+ applicationId: string;
1359
+ envName: string;
1360
+ }, opts?: Oazapfts.RequestOpts) {
1361
+ return oazapfts.ok(oazapfts.fetchJson<{
1362
+ status: 200;
1363
+ data: LinksConsolidateResponse[];
1364
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/links`, {
1365
+ ...opts
1366
+ }));
1367
+ }
1368
+ export function getApplicationDetails({ workspaceId, applicationId, envName }: {
1369
+ workspaceId: string;
1370
+ applicationId: string;
1371
+ envName: string;
1372
+ }, opts?: Oazapfts.RequestOpts) {
1373
+ return oazapfts.ok(oazapfts.fetchJson<{
1374
+ status: 200;
1375
+ data: ApplicationResponse;
1376
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/details`, {
1377
+ ...opts
1378
+ }));
1379
+ }
1380
+ export function getApplicationActivities({ workspaceId, applicationId, envName, $type }: {
1381
+ workspaceId: string;
1382
+ applicationId: string;
1383
+ envName: string;
1384
+ $type?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1385
+ }, opts?: Oazapfts.RequestOpts) {
1386
+ return oazapfts.ok(oazapfts.fetchJson<{
1387
+ status: 200;
1388
+ data: WorkspaceActivitiesResponse[];
1389
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/activities${QS.query(QS.explode({
1390
+ "type": $type
1391
+ }))}`, {
1392
+ ...opts
1393
+ }));
1394
+ }
1395
+ export function getWorkspaceContext1({ workspaceId, stackVersionId, envName }: {
1396
+ workspaceId: string;
1397
+ stackVersionId: string;
1398
+ envName?: string;
1399
+ }, opts?: Oazapfts.RequestOpts) {
1400
+ return oazapfts.ok(oazapfts.fetchJson<{
1401
+ status: 200;
1402
+ data: WorkspaceContextResponse;
1403
+ }>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}${QS.query(QS.explode({
1404
+ envName
1405
+ }))}`, {
1406
+ ...opts
1407
+ }));
1408
+ }
1409
+ export function getConsolidatedPluginInputsWithConnectionInterfaces1({ workspaceId, stackVersionId, pluginVersionId }: {
1410
+ workspaceId: string;
1411
+ stackVersionId: string;
1412
+ pluginVersionId: string;
1413
+ }, opts?: Oazapfts.RequestOpts) {
1414
+ return oazapfts.ok(oazapfts.fetchJson<{
1415
+ status: 200;
1416
+ data: PluginForAppCreationResponse;
1417
+ }>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
1418
+ ...opts
1419
+ }));
1420
+ }
1421
+ export function getStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
1422
+ workspaceId: string;
1423
+ stackVersionId: string;
1424
+ actionsVersionId: string;
1425
+ envName?: string;
1426
+ }, opts?: Oazapfts.RequestOpts) {
1427
+ return oazapfts.ok(oazapfts.fetchJson<{
1428
+ status: 200;
1429
+ data: StackActionInputValuesByEnvInWorkspaceContextResponse[];
1430
+ }>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
1431
+ envName
1432
+ }))}`, {
1433
+ ...opts
1434
+ }));
1435
+ }
1436
+ export function getStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }: {
1437
+ stackVersionId: string;
1438
+ actionsVersionId: string;
1439
+ envName?: string;
1440
+ }, opts?: Oazapfts.RequestOpts) {
1441
+ return oazapfts.ok(oazapfts.fetchJson<{
1442
+ status: 200;
1443
+ data: StackActionInputValuesByEnvInAccountContextResponse[];
1444
+ }>(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
1445
+ envName
1446
+ }))}`, {
1447
+ ...opts
1448
+ }));
1449
+ }
1450
+ export function listStacksByAccountWithWorkflow({ workspaceId }: {
1451
+ workspaceId?: string;
1452
+ }, opts?: Oazapfts.RequestOpts) {
1453
+ return oazapfts.ok(oazapfts.fetchJson<{
1454
+ status: 200;
1455
+ data: StacksByAccountWithWorkflowResponse[];
1456
+ }>(`/v1/account/stacks${QS.query(QS.explode({
1457
+ workspaceId
1458
+ }))}`, {
1459
+ ...opts
1460
+ }));
1461
+ }
1462
+ export function listWorkflowsByStack({ stackId }: {
1463
+ stackId: string;
1464
+ }, opts?: Oazapfts.RequestOpts) {
1465
+ return oazapfts.ok(oazapfts.fetchJson<{
1466
+ status: 200;
1467
+ data: WorkflowCompleteResponse[];
1468
+ }>(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows`, {
1469
+ ...opts
1470
+ }));
1471
+ }
1472
+ export function listVersionsWithContext({ stackVersionId }: {
1473
+ stackVersionId: string;
1474
+ }, opts?: Oazapfts.RequestOpts) {
1475
+ return oazapfts.ok(oazapfts.fetchJson<{
1476
+ status: 200;
1477
+ data: AccountContextStackResponse;
1478
+ }>(`/v1/account/stackVersionId/${encodeURIComponent(stackVersionId)}`, {
1479
+ ...opts
1480
+ }));
1481
+ }
1482
+ export function deleteV1WorkspacesByWorkspaceId({ workspaceId }: {
1483
+ workspaceId: string;
1484
+ }, opts?: Oazapfts.RequestOpts) {
1485
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
1486
+ ...opts,
1487
+ method: "DELETE"
1488
+ }));
1489
+ }
1490
+ export function deleteStacksInWorkspace({ workspaceId, stackVersionId }: {
1491
+ workspaceId: string;
1492
+ stackVersionId: string;
1493
+ }, opts?: Oazapfts.RequestOpts) {
1494
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}`, {
1495
+ ...opts,
1496
+ method: "DELETE"
1497
+ }));
1498
+ }
1499
+ export function deleteSharedInfra({ workspaceId, sharedInfraId }: {
1500
+ workspaceId: string;
1501
+ sharedInfraId: string;
1502
+ }, opts?: Oazapfts.RequestOpts) {
1503
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}`, {
1504
+ ...opts,
1505
+ method: "DELETE"
1506
+ }));
1507
+ }
1508
+ export function deleteApplication({ workspaceId, applicationId }: {
1509
+ workspaceId: string;
1510
+ applicationId: string;
1511
+ }, opts?: Oazapfts.RequestOpts) {
1512
+ return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, {
1513
+ ...opts,
1514
+ method: "DELETE"
1515
+ }));
1516
+ }