@stack-spot/portal-network 0.157.0-beta.0 → 0.157.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/api/discovery.d.ts +222 -33
- package/dist/api/discovery.d.ts.map +1 -1
- package/dist/api/discovery.js +78 -27
- package/dist/api/discovery.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +380 -48
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +334 -2
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/apis.json +1 -1
- package/dist/client/agent-tools.d.ts +3 -89
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +2 -133
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +50 -5
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +64 -0
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts +0 -7
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +1 -10
- package/dist/client/ai.js.map +1 -1
- package/dist/client/discovery.d.ts +6 -12
- package/dist/client/discovery.d.ts.map +1 -1
- package/dist/client/discovery.js +5 -14
- package/dist/client/discovery.js.map +1 -1
- package/dist/client/types.d.ts +4 -5
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workspace-manager.d.ts +6 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +10 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +1 -1
- package/src/api/discovery.ts +309 -49
- package/src/api/workspaceManager.ts +402 -50
- package/src/apis.json +1 -1
- package/src/client/agent-tools.ts +3 -102
- package/src/client/agent.ts +68 -0
- package/src/client/ai.ts +0 -5
- package/src/client/discovery.ts +5 -9
- package/src/client/types.ts +5 -7
- package/src/client/workspace-manager.ts +5 -0
|
@@ -8,12 +8,15 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://workspace-workspace-manager.
|
|
11
|
+
baseUrl: "https://workspace-workspace-manager.stg.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://workspace-workspace-manager.
|
|
15
|
+
generatedServerUrl: "https://workspace-workspace-manager.stg.stackspot.com"
|
|
16
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* Get workspace variable by name
|
|
19
|
+
*/
|
|
17
20
|
export function workspaceVariableControllerfindByName({ accountId, workspaceId, name }, opts) {
|
|
18
21
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, {
|
|
19
22
|
...opts,
|
|
@@ -22,6 +25,9 @@ export function workspaceVariableControllerfindByName({ accountId, workspaceId,
|
|
|
22
25
|
})
|
|
23
26
|
}));
|
|
24
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Update workspace variable
|
|
30
|
+
*/
|
|
25
31
|
export function workspaceVariableControllerupsert({ workspaceId, name, upsertWorkspaceVariableRequest }, opts) {
|
|
26
32
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
27
33
|
...opts,
|
|
@@ -29,11 +35,17 @@ export function workspaceVariableControllerupsert({ workspaceId, name, upsertWor
|
|
|
29
35
|
body: upsertWorkspaceVariableRequest
|
|
30
36
|
})));
|
|
31
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Get workspace stack workflow context
|
|
40
|
+
*/
|
|
32
41
|
export function workflowWorkspaceControllerfindWorkflowStackContext({ workspaceId, stackId, workflowId }, opts) {
|
|
33
42
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, {
|
|
34
43
|
...opts
|
|
35
44
|
}));
|
|
36
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Save workspace stack workflow context
|
|
48
|
+
*/
|
|
37
49
|
export function workflowWorkspaceControllersaveWorkflowWorkspaceContext({ workspaceId, stackId, workflowId, workflowContextSaveRequest }, opts) {
|
|
38
50
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
|
|
39
51
|
...opts,
|
|
@@ -41,6 +53,9 @@ export function workflowWorkspaceControllersaveWorkflowWorkspaceContext({ worksp
|
|
|
41
53
|
body: workflowContextSaveRequest
|
|
42
54
|
})));
|
|
43
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Update stacks in a workspace
|
|
58
|
+
*/
|
|
44
59
|
export function workspaceStackControllerrefreshStacksInWorkspace({ workspaceId, addStackInWorkspaceRequest }, opts) {
|
|
45
60
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/-/update`, oazapfts.json({
|
|
46
61
|
...opts,
|
|
@@ -48,6 +63,9 @@ export function workspaceStackControllerrefreshStacksInWorkspace({ workspaceId,
|
|
|
48
63
|
body: addStackInWorkspaceRequest
|
|
49
64
|
})));
|
|
50
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Update workspace connection interface attributes
|
|
68
|
+
*/
|
|
51
69
|
export function connectionInterfaceControllerupdateConnectionInterfaceAttributes({ workspaceId, connectionInterfaceId, connectionInterfaceAttributesByEnv }, opts) {
|
|
52
70
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(connectionInterfaceId)}/attributes`, oazapfts.json({
|
|
53
71
|
...opts,
|
|
@@ -55,6 +73,9 @@ export function connectionInterfaceControllerupdateConnectionInterfaceAttributes
|
|
|
55
73
|
body: connectionInterfaceAttributesByEnv
|
|
56
74
|
})));
|
|
57
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* List stack workflow inputs in workspace context
|
|
78
|
+
*/
|
|
58
79
|
export function contextWorkflowControllergetWorkspaceWorkflowInputs({ workspaceId, stackVersionId, workflowVersionId, envName }, opts) {
|
|
59
80
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs${QS.query(QS.explode({
|
|
60
81
|
envName
|
|
@@ -62,6 +83,9 @@ export function contextWorkflowControllergetWorkspaceWorkflowInputs({ workspaceI
|
|
|
62
83
|
...opts
|
|
63
84
|
}));
|
|
64
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Update stack workflow inputs in workspace context
|
|
88
|
+
*/
|
|
65
89
|
export function contextControllerupsertWorkflowWorkspaceContext({ workspaceId, stackVersionId, workflowVersionId, body }, opts) {
|
|
66
90
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs`, oazapfts.json({
|
|
67
91
|
...opts,
|
|
@@ -69,6 +93,9 @@ export function contextControllerupsertWorkflowWorkspaceContext({ workspaceId, s
|
|
|
69
93
|
body
|
|
70
94
|
})));
|
|
71
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* List stack plugin inputs in workspace context
|
|
98
|
+
*/
|
|
72
99
|
export function contextControllergetConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }, opts) {
|
|
73
100
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
|
|
74
101
|
envName
|
|
@@ -76,6 +103,9 @@ export function contextControllergetConsolidatedPluginInputs({ workspaceId, stac
|
|
|
76
103
|
...opts
|
|
77
104
|
}));
|
|
78
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Update stack plugin inputs in workspace context
|
|
108
|
+
*/
|
|
79
109
|
export function contextControllerupsertPluginWorkspaceContext({ workspaceId, stackVersionId, pluginVersionId, body }, opts) {
|
|
80
110
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs`, oazapfts.json({
|
|
81
111
|
...opts,
|
|
@@ -83,6 +113,9 @@ export function contextControllerupsertPluginWorkspaceContext({ workspaceId, sta
|
|
|
83
113
|
body
|
|
84
114
|
})));
|
|
85
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Update stack action inputs in workspace context
|
|
118
|
+
*/
|
|
86
119
|
export function contextControllerupsertWorkspaceActionsInputContext({ workspaceId, stackVersionId, actionVersionId, body }, opts) {
|
|
87
120
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}/inputs`, oazapfts.json({
|
|
88
121
|
...opts,
|
|
@@ -90,6 +123,9 @@ export function contextControllerupsertWorkspaceActionsInputContext({ workspaceI
|
|
|
90
123
|
body
|
|
91
124
|
})));
|
|
92
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* List stack workflow inputs in account context
|
|
128
|
+
*/
|
|
93
129
|
export function contextWorkflowControllergetAccountWorkflowInputs({ stackVersionId, workflowVersionId, envName }, opts) {
|
|
94
130
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs${QS.query(QS.explode({
|
|
95
131
|
envName
|
|
@@ -97,6 +133,9 @@ export function contextWorkflowControllergetAccountWorkflowInputs({ stackVersion
|
|
|
97
133
|
...opts
|
|
98
134
|
}));
|
|
99
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Update stack workflow inputs in account context
|
|
138
|
+
*/
|
|
100
139
|
export function contextControllerupsertWorkflowAccountContext({ stackVersionId, workflowVersionId, body }, opts) {
|
|
101
140
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}/inputs`, oazapfts.json({
|
|
102
141
|
...opts,
|
|
@@ -104,6 +143,9 @@ export function contextControllerupsertWorkflowAccountContext({ stackVersionId,
|
|
|
104
143
|
body
|
|
105
144
|
})));
|
|
106
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* List stack plugin inputs in account context
|
|
148
|
+
*/
|
|
107
149
|
export function contextControllergetAccountPluginInputs({ stackVersionId, pluginVersionId, envName }, opts) {
|
|
108
150
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
|
|
109
151
|
envName
|
|
@@ -111,6 +153,9 @@ export function contextControllergetAccountPluginInputs({ stackVersionId, plugin
|
|
|
111
153
|
...opts
|
|
112
154
|
}));
|
|
113
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Update stack plugin inputs in account context
|
|
158
|
+
*/
|
|
114
159
|
export function contextControllerupsertPluginAccountContext({ stackVersionId, pluginVersionId, body }, opts) {
|
|
115
160
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs`, oazapfts.json({
|
|
116
161
|
...opts,
|
|
@@ -118,6 +163,9 @@ export function contextControllerupsertPluginAccountContext({ stackVersionId, pl
|
|
|
118
163
|
body
|
|
119
164
|
})));
|
|
120
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Update stack action inputs in account context
|
|
168
|
+
*/
|
|
121
169
|
export function contextControllerupsertAccountActionsInputContext({ stackVersionId, actionVersionId, body }, opts) {
|
|
122
170
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}/inputs`, oazapfts.json({
|
|
123
171
|
...opts,
|
|
@@ -125,11 +173,17 @@ export function contextControllerupsertAccountActionsInputContext({ stackVersion
|
|
|
125
173
|
body
|
|
126
174
|
})));
|
|
127
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Get account workflow settings
|
|
178
|
+
*/
|
|
128
179
|
export function workflowAccountControllerfindWorkflowSettings({ workflowId }, opts) {
|
|
129
180
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/settings`, {
|
|
130
181
|
...opts
|
|
131
182
|
}));
|
|
132
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Update account workflow settings
|
|
186
|
+
*/
|
|
133
187
|
export function workflowAccountControllersaveWorkflowSettings({ workflowId, workflowSettingsSaveRequest }, opts) {
|
|
134
188
|
return oazapfts.ok(oazapfts.fetchText(`/v1/account/workflows/${encodeURIComponent(workflowId)}/settings`, oazapfts.json({
|
|
135
189
|
...opts,
|
|
@@ -137,11 +191,17 @@ export function workflowAccountControllersaveWorkflowSettings({ workflowId, work
|
|
|
137
191
|
body: workflowSettingsSaveRequest
|
|
138
192
|
})));
|
|
139
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* List account workflow context
|
|
196
|
+
*/
|
|
140
197
|
export function workflowAccountControllerfindWorkflowContext({ workflowId }, opts) {
|
|
141
198
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/context`, {
|
|
142
199
|
...opts
|
|
143
200
|
}));
|
|
144
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Update account workflow context
|
|
204
|
+
*/
|
|
145
205
|
export function workflowAccountControllersaveWorkflowContext({ workflowId, workflowContextSaveRequest }, opts) {
|
|
146
206
|
return oazapfts.ok(oazapfts.fetchText(`/v1/account/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
|
|
147
207
|
...opts,
|
|
@@ -149,11 +209,17 @@ export function workflowAccountControllersaveWorkflowContext({ workflowId, workf
|
|
|
149
209
|
body: workflowContextSaveRequest
|
|
150
210
|
})));
|
|
151
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* List account workflow actions
|
|
214
|
+
*/
|
|
152
215
|
export function workflowAccountControllergetWorkflowActions({ workflowId }, opts) {
|
|
153
216
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/actions`, {
|
|
154
217
|
...opts
|
|
155
218
|
}));
|
|
156
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* Update account workflow actions
|
|
222
|
+
*/
|
|
157
223
|
export function workflowAccountControllerupdateWorkflowActions({ workflowId, workflowActionsRequest }, opts) {
|
|
158
224
|
return oazapfts.ok(oazapfts.fetchText(`/v1/account/workflows/${encodeURIComponent(workflowId)}/actions`, oazapfts.json({
|
|
159
225
|
...opts,
|
|
@@ -161,6 +227,9 @@ export function workflowAccountControllerupdateWorkflowActions({ workflowId, wor
|
|
|
161
227
|
body: workflowActionsRequest
|
|
162
228
|
})));
|
|
163
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Get account variable by name
|
|
232
|
+
*/
|
|
164
233
|
export function accountVariableControllerfindByName({ accountId, name }, opts) {
|
|
165
234
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
166
235
|
...opts,
|
|
@@ -169,6 +238,9 @@ export function accountVariableControllerfindByName({ accountId, name }, opts) {
|
|
|
169
238
|
})
|
|
170
239
|
}));
|
|
171
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* Update account variable
|
|
243
|
+
*/
|
|
172
244
|
export function accountVariableControllerupdate({ name, updateAccountVariableRequest }, opts) {
|
|
173
245
|
return oazapfts.ok(oazapfts.fetchText(`/v1/account/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
174
246
|
...opts,
|
|
@@ -176,17 +248,26 @@ export function accountVariableControllerupdate({ name, updateAccountVariableReq
|
|
|
176
248
|
body: updateAccountVariableRequest
|
|
177
249
|
})));
|
|
178
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* Delete account variable
|
|
253
|
+
*/
|
|
179
254
|
export function accountVariableControllerdelete({ name }, opts) {
|
|
180
255
|
return oazapfts.ok(oazapfts.fetchText(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
181
256
|
...opts,
|
|
182
257
|
method: "DELETE"
|
|
183
258
|
}));
|
|
184
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Get account stack workflow context
|
|
262
|
+
*/
|
|
185
263
|
export function workflowStackControllerfindWorkflowStackContext({ stackId, workflowId }, opts) {
|
|
186
264
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, {
|
|
187
265
|
...opts
|
|
188
266
|
}));
|
|
189
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Save account stack workflow context
|
|
270
|
+
*/
|
|
190
271
|
export function workflowStackControllersaveWorkflowStackContext({ stackId, workflowId, workflowContextSaveRequest }, opts) {
|
|
191
272
|
return oazapfts.ok(oazapfts.fetchText(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
|
|
192
273
|
...opts,
|
|
@@ -194,6 +275,9 @@ export function workflowStackControllersaveWorkflowStackContext({ stackId, workf
|
|
|
194
275
|
body: workflowContextSaveRequest
|
|
195
276
|
})));
|
|
196
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Create shared infrastructure in a workspace
|
|
280
|
+
*/
|
|
197
281
|
export function sharedInfraControllerV2CreateSharedInfra({ workspaceId, createSharedRequest }, opts) {
|
|
198
282
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra`, oazapfts.json({
|
|
199
283
|
...opts,
|
|
@@ -201,6 +285,9 @@ export function sharedInfraControllerV2CreateSharedInfra({ workspaceId, createSh
|
|
|
201
285
|
body: createSharedRequest
|
|
202
286
|
})));
|
|
203
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Create application in a workspace
|
|
290
|
+
*/
|
|
204
291
|
export function applicationControllerV2CreateApp({ workspaceId, createAppRequest }, opts) {
|
|
205
292
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications`, oazapfts.json({
|
|
206
293
|
...opts,
|
|
@@ -208,6 +295,9 @@ export function applicationControllerV2CreateApp({ workspaceId, createAppRequest
|
|
|
208
295
|
body: createAppRequest
|
|
209
296
|
})));
|
|
210
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Create workspace shared infrastructure through workflow
|
|
300
|
+
*/
|
|
211
301
|
export function contentWorkflowControllercreateSharedInfraThroughWorkflow({ workspaceId, workflowVersionId, contentWorkflowSaveRequest }, opts) {
|
|
212
302
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowVersionId)}/shared-infra`, oazapfts.json({
|
|
213
303
|
...opts,
|
|
@@ -215,6 +305,9 @@ export function contentWorkflowControllercreateSharedInfraThroughWorkflow({ work
|
|
|
215
305
|
body: contentWorkflowSaveRequest
|
|
216
306
|
})));
|
|
217
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Create workspace application through workflow
|
|
310
|
+
*/
|
|
218
311
|
export function contentWorkflowControllercreateApplicationThroughWorkflow({ workspaceId, workflowVersionId, contentWorkflowSaveRequest }, opts) {
|
|
219
312
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowVersionId)}/applications`, oazapfts.json({
|
|
220
313
|
...opts,
|
|
@@ -222,11 +315,17 @@ export function contentWorkflowControllercreateApplicationThroughWorkflow({ work
|
|
|
222
315
|
body: contentWorkflowSaveRequest
|
|
223
316
|
})));
|
|
224
317
|
}
|
|
318
|
+
/**
|
|
319
|
+
* List workspace stacks
|
|
320
|
+
*/
|
|
225
321
|
export function workspaceStackControllerlistStacks({ workspaceId }, opts) {
|
|
226
322
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks`, {
|
|
227
323
|
...opts
|
|
228
324
|
}));
|
|
229
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* Add a stack in a workspace
|
|
328
|
+
*/
|
|
230
329
|
export function workspaceStackControlleraddStacksInWorkspace({ workspaceId, addStackInWorkspaceRequest }, opts) {
|
|
231
330
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks`, oazapfts.json({
|
|
232
331
|
...opts,
|
|
@@ -234,6 +333,9 @@ export function workspaceStackControlleraddStacksInWorkspace({ workspaceId, addS
|
|
|
234
333
|
body: addStackInWorkspaceRequest
|
|
235
334
|
})));
|
|
236
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* Remove workspace shared infrastructure infra plugins and create pull request
|
|
338
|
+
*/
|
|
237
339
|
export function updateInfrastructureControllerremoveInfraPluginsAndCreatePullRequestBySharedInfra({ workspaceId, sharedInfraId, removePluginAndCreatePrRequest }, opts) {
|
|
238
340
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/infra-destroy`, oazapfts.json({
|
|
239
341
|
...opts,
|
|
@@ -241,6 +343,9 @@ export function updateInfrastructureControllerremoveInfraPluginsAndCreatePullReq
|
|
|
241
343
|
body: removePluginAndCreatePrRequest
|
|
242
344
|
})));
|
|
243
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* List workspace shared infrastructure extra links by environment
|
|
348
|
+
*/
|
|
244
349
|
export function sharedInfraControllergetSharedInfraExtraLinks({ workspaceId, sharedInfraId, envName }, opts) {
|
|
245
350
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/extra-links${QS.query(QS.explode({
|
|
246
351
|
envName
|
|
@@ -248,6 +353,9 @@ export function sharedInfraControllergetSharedInfraExtraLinks({ workspaceId, sha
|
|
|
248
353
|
...opts
|
|
249
354
|
}));
|
|
250
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* Update workspace shared infrastructure extra links by environment
|
|
358
|
+
*/
|
|
251
359
|
export function sharedInfraControllerupdateSharedInfraExtraLinks({ workspaceId, sharedInfraId, envName, body }, opts) {
|
|
252
360
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/extra-links${QS.query(QS.explode({
|
|
253
361
|
envName
|
|
@@ -257,6 +365,9 @@ export function sharedInfraControllerupdateSharedInfraExtraLinks({ workspaceId,
|
|
|
257
365
|
body
|
|
258
366
|
})));
|
|
259
367
|
}
|
|
368
|
+
/**
|
|
369
|
+
* Update workspace shared infrastructure infra plugins and create pull request
|
|
370
|
+
*/
|
|
260
371
|
export function updateInfrastructureControllerupdateInfraPluginsAndCreatePullRequestBySharedInfra({ workspaceId, sharedInfraId, updatePluginAndCreatePrRequest }, opts) {
|
|
261
372
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/create-pull-request`, oazapfts.json({
|
|
262
373
|
...opts,
|
|
@@ -264,6 +375,9 @@ export function updateInfrastructureControllerupdateInfraPluginsAndCreatePullReq
|
|
|
264
375
|
body: updatePluginAndCreatePrRequest
|
|
265
376
|
})));
|
|
266
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* Create workspace connection interface
|
|
380
|
+
*/
|
|
267
381
|
export function connectionInterfaceControllercreateConnectionInterface({ workspaceId, createConnectionInterfaceRequest }, opts) {
|
|
268
382
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces`, oazapfts.json({
|
|
269
383
|
...opts,
|
|
@@ -271,6 +385,9 @@ export function connectionInterfaceControllercreateConnectionInterface({ workspa
|
|
|
271
385
|
body: createConnectionInterfaceRequest
|
|
272
386
|
})));
|
|
273
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* Remove workspace application infra plugins and create pull request
|
|
390
|
+
*/
|
|
274
391
|
export function updateInfrastructureControllerremoveInfraPluginsAndCreatePullRequestByApplication({ workspaceId, applicationId, removePluginAndCreatePrRequest }, opts) {
|
|
275
392
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/infra-destroy`, oazapfts.json({
|
|
276
393
|
...opts,
|
|
@@ -278,6 +395,9 @@ export function updateInfrastructureControllerremoveInfraPluginsAndCreatePullReq
|
|
|
278
395
|
body: removePluginAndCreatePrRequest
|
|
279
396
|
})));
|
|
280
397
|
}
|
|
398
|
+
/**
|
|
399
|
+
* List workspace application extra links by environment
|
|
400
|
+
*/
|
|
281
401
|
export function applicationControllergetApplicationExtraLinks({ workspaceId, applicationId, envName }, opts) {
|
|
282
402
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/extra-links${QS.query(QS.explode({
|
|
283
403
|
envName
|
|
@@ -285,6 +405,9 @@ export function applicationControllergetApplicationExtraLinks({ workspaceId, app
|
|
|
285
405
|
...opts
|
|
286
406
|
}));
|
|
287
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Update workspace application extra links by environment
|
|
410
|
+
*/
|
|
288
411
|
export function applicationControllerupdateSharedInfraExtraLinks({ workspaceId, applicationId, envName, body }, opts) {
|
|
289
412
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/extra-links${QS.query(QS.explode({
|
|
290
413
|
envName
|
|
@@ -294,6 +417,9 @@ export function applicationControllerupdateSharedInfraExtraLinks({ workspaceId,
|
|
|
294
417
|
body
|
|
295
418
|
})));
|
|
296
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* Register workspace application destroy
|
|
422
|
+
*/
|
|
297
423
|
export function applicationControllerregistryAppDestroy({ workspaceId, applicationId, environmentId, applicationDestroyRequest }, opts) {
|
|
298
424
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/app-destroy`, oazapfts.json({
|
|
299
425
|
...opts,
|
|
@@ -301,6 +427,9 @@ export function applicationControllerregistryAppDestroy({ workspaceId, applicati
|
|
|
301
427
|
body: applicationDestroyRequest
|
|
302
428
|
})));
|
|
303
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* Update workspace application infra plugins and create pull request
|
|
432
|
+
*/
|
|
304
433
|
export function updateInfrastructureControllerupdateInfraPluginsAndCreatePullRequestByApplication({ workspaceId, applicationId, updatePluginAndCreatePrRequest }, opts) {
|
|
305
434
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/create-pull-request`, oazapfts.json({
|
|
306
435
|
...opts,
|
|
@@ -308,6 +437,9 @@ export function updateInfrastructureControllerupdateInfraPluginsAndCreatePullReq
|
|
|
308
437
|
body: updatePluginAndCreatePrRequest
|
|
309
438
|
})));
|
|
310
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* Import stack context in workspace
|
|
442
|
+
*/
|
|
311
443
|
export function contextControllerimportContextInWorkspace({ workspaceId, body }, opts) {
|
|
312
444
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/import-context`, oazapfts.json({
|
|
313
445
|
...opts,
|
|
@@ -315,6 +447,9 @@ export function contextControllerimportContextInWorkspace({ workspaceId, body },
|
|
|
315
447
|
body
|
|
316
448
|
})));
|
|
317
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* Import stack context in account
|
|
452
|
+
*/
|
|
318
453
|
export function contextControllerimportContextInAccount({ body }, opts) {
|
|
319
454
|
return oazapfts.ok(oazapfts.fetchText("/v1/contexts/account/stacks/import-context", oazapfts.json({
|
|
320
455
|
...opts,
|
|
@@ -322,6 +457,9 @@ export function contextControllerimportContextInAccount({ body }, opts) {
|
|
|
322
457
|
body
|
|
323
458
|
})));
|
|
324
459
|
}
|
|
460
|
+
/**
|
|
461
|
+
* Create workflow in an account
|
|
462
|
+
*/
|
|
325
463
|
export function workflowAccountControllercreateAccountWorkflow({ accountWorkflowCreateRequest }, opts) {
|
|
326
464
|
return oazapfts.ok(oazapfts.fetchJson("/v1/account/workflows", oazapfts.json({
|
|
327
465
|
...opts,
|
|
@@ -329,6 +467,9 @@ export function workflowAccountControllercreateAccountWorkflow({ accountWorkflow
|
|
|
329
467
|
body: accountWorkflowCreateRequest
|
|
330
468
|
})));
|
|
331
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* List account variables
|
|
472
|
+
*/
|
|
332
473
|
export function accountVariableControllerfindAll({ accountId, name, page, size, sortBy, sortDir }, opts) {
|
|
333
474
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables${QS.query(QS.explode({
|
|
334
475
|
name,
|
|
@@ -343,6 +484,9 @@ export function accountVariableControllerfindAll({ accountId, name, page, size,
|
|
|
343
484
|
})
|
|
344
485
|
}));
|
|
345
486
|
}
|
|
487
|
+
/**
|
|
488
|
+
* Create account variable
|
|
489
|
+
*/
|
|
346
490
|
export function accountVariableControllercreate({ createAccountVariableRequest }, opts) {
|
|
347
491
|
return oazapfts.ok(oazapfts.fetchText("/v1/account/variables", oazapfts.json({
|
|
348
492
|
...opts,
|
|
@@ -350,12 +494,18 @@ export function accountVariableControllercreate({ createAccountVariableRequest }
|
|
|
350
494
|
body: createAccountVariableRequest
|
|
351
495
|
})));
|
|
352
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
* Archive application from a workspace
|
|
499
|
+
*/
|
|
353
500
|
export function managerRunControllerarchiveApplication({ workspaceId, applicationId }, opts) {
|
|
354
501
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/archive`, {
|
|
355
502
|
...opts,
|
|
356
503
|
method: "PATCH"
|
|
357
504
|
}));
|
|
358
505
|
}
|
|
506
|
+
/**
|
|
507
|
+
* List workspace shared infrastructure plugins by environment
|
|
508
|
+
*/
|
|
359
509
|
export function sharedInfraControllerV2GetSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envName, pluginType, containsLinks }, opts) {
|
|
360
510
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/plugins${QS.query(QS.explode({
|
|
361
511
|
pluginType,
|
|
@@ -364,6 +514,9 @@ export function sharedInfraControllerV2GetSharedInfraAppliedPlugins({ workspaceI
|
|
|
364
514
|
...opts
|
|
365
515
|
}));
|
|
366
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* List workspace shared infrastructure activities by environment
|
|
519
|
+
*/
|
|
367
520
|
export function sharedInfraControllerV2GetSharedInfraActivities({ workspaceId, sharedInfraId, envName, $type, page, size }, opts) {
|
|
368
521
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/activities${QS.query(QS.explode({
|
|
369
522
|
"type": $type,
|
|
@@ -373,6 +526,9 @@ export function sharedInfraControllerV2GetSharedInfraActivities({ workspaceId, s
|
|
|
373
526
|
...opts
|
|
374
527
|
}));
|
|
375
528
|
}
|
|
529
|
+
/**
|
|
530
|
+
* List workspace application plugins by environment
|
|
531
|
+
*/
|
|
376
532
|
export function applicationControllerV2GetApplicationAppliedPlugins({ workspaceId, applicationId, envName, pluginType, containsLinks }, opts) {
|
|
377
533
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/plugins${QS.query(QS.explode({
|
|
378
534
|
pluginType,
|
|
@@ -381,6 +537,9 @@ export function applicationControllerV2GetApplicationAppliedPlugins({ workspaceI
|
|
|
381
537
|
...opts
|
|
382
538
|
}));
|
|
383
539
|
}
|
|
540
|
+
/**
|
|
541
|
+
* List workspace application activities by environment
|
|
542
|
+
*/
|
|
384
543
|
export function applicationControllerV2GetApplicationActivities({ workspaceId, applicationId, envName, $type, page, size }, opts) {
|
|
385
544
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/activities${QS.query(QS.explode({
|
|
386
545
|
"type": $type,
|
|
@@ -390,6 +549,9 @@ export function applicationControllerV2GetApplicationActivities({ workspaceId, a
|
|
|
390
549
|
...opts
|
|
391
550
|
}));
|
|
392
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* Get workspace stack context
|
|
554
|
+
*/
|
|
393
555
|
export function contextStackControllergetWorkspaceContext({ workspaceId, stackVersionId, envName }, opts) {
|
|
394
556
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}${QS.query(QS.explode({
|
|
395
557
|
envName
|
|
@@ -397,11 +559,17 @@ export function contextStackControllergetWorkspaceContext({ workspaceId, stackVe
|
|
|
397
559
|
...opts
|
|
398
560
|
}));
|
|
399
561
|
}
|
|
562
|
+
/**
|
|
563
|
+
* List stack plugin inputs with connection interfaces in workspace context
|
|
564
|
+
*/
|
|
400
565
|
export function contextgetConsolidatedPluginInputsWithConnectionInterfaces({ workspaceId, stackVersionId, pluginVersionId }, opts) {
|
|
401
566
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
|
|
402
567
|
...opts
|
|
403
568
|
}));
|
|
404
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
* List stack plugin inputs in workspace context
|
|
572
|
+
*/
|
|
405
573
|
export function contextgetConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }, opts) {
|
|
406
574
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
|
|
407
575
|
envName
|
|
@@ -409,6 +577,9 @@ export function contextgetConsolidatedPluginInputs({ workspaceId, stackVersionId
|
|
|
409
577
|
...opts
|
|
410
578
|
}));
|
|
411
579
|
}
|
|
580
|
+
/**
|
|
581
|
+
* List stack action inputs in workspace context
|
|
582
|
+
*/
|
|
412
583
|
export function contextActionControllergetStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }, opts) {
|
|
413
584
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
|
|
414
585
|
envName
|
|
@@ -416,6 +587,9 @@ export function contextActionControllergetStackActionInputsInWorkspaceContext({
|
|
|
416
587
|
...opts
|
|
417
588
|
}));
|
|
418
589
|
}
|
|
590
|
+
/**
|
|
591
|
+
* List stack plugin inputs in account context
|
|
592
|
+
*/
|
|
419
593
|
export function contextgetAccountPluginInputs({ stackVersionId, pluginVersionId, envName }, opts) {
|
|
420
594
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
|
|
421
595
|
envName
|
|
@@ -423,6 +597,9 @@ export function contextgetAccountPluginInputs({ stackVersionId, pluginVersionId,
|
|
|
423
597
|
...opts
|
|
424
598
|
}));
|
|
425
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* List stack action inputs in account context
|
|
602
|
+
*/
|
|
426
603
|
export function contextActionControllergetStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }, opts) {
|
|
427
604
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
|
|
428
605
|
envName
|
|
@@ -430,6 +607,9 @@ export function contextActionControllergetStackActionInputsInAccountContext({ st
|
|
|
430
607
|
...opts
|
|
431
608
|
}));
|
|
432
609
|
}
|
|
610
|
+
/**
|
|
611
|
+
* List workspaces
|
|
612
|
+
*/
|
|
433
613
|
export function workspaceControllergetWorkspaces({ name, aclOnly, accountId, page, size, sortBy, sortDir, tabFilter }, opts) {
|
|
434
614
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces${QS.query(QS.explode({
|
|
435
615
|
name,
|
|
@@ -446,11 +626,17 @@ export function workspaceControllergetWorkspaces({ name, aclOnly, accountId, pag
|
|
|
446
626
|
})
|
|
447
627
|
}));
|
|
448
628
|
}
|
|
629
|
+
/**
|
|
630
|
+
* List workspace workflow stacks
|
|
631
|
+
*/
|
|
449
632
|
export function workflowWorkspaceControllerlistStacks({ workspaceId, workflowId }, opts) {
|
|
450
633
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks`, {
|
|
451
634
|
...opts
|
|
452
635
|
}));
|
|
453
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
* List workspace variables
|
|
639
|
+
*/
|
|
454
640
|
export function workspaceVariableControllerfindAll({ workspaceId, accountId, page, size, sortBy, sortDir, mandate, name, showEmptyValues }, opts) {
|
|
455
641
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
456
642
|
page,
|
|
@@ -467,16 +653,25 @@ export function workspaceVariableControllerfindAll({ workspaceId, accountId, pag
|
|
|
467
653
|
})
|
|
468
654
|
}));
|
|
469
655
|
}
|
|
656
|
+
/**
|
|
657
|
+
* Get workspace workflow by stack id and workflow type
|
|
658
|
+
*/
|
|
470
659
|
export function workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, workflowType }, opts) {
|
|
471
660
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowType)}`, {
|
|
472
661
|
...opts
|
|
473
662
|
}));
|
|
474
663
|
}
|
|
664
|
+
/**
|
|
665
|
+
* List workspace stacks with context
|
|
666
|
+
*/
|
|
475
667
|
export function workspaceStackControllerlistStacksContext({ workspaceId }, opts) {
|
|
476
668
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/with-context`, {
|
|
477
669
|
...opts
|
|
478
670
|
}));
|
|
479
671
|
}
|
|
672
|
+
/**
|
|
673
|
+
* List workspace shared infrastructures
|
|
674
|
+
*/
|
|
480
675
|
export function sharedInfraControllergetSharedInfra({ workspaceId, stackId, stackVersionId, name, page, size, sortBy, sortDir }, opts) {
|
|
481
676
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra${QS.query(QS.explode({
|
|
482
677
|
stackId,
|
|
@@ -490,6 +685,9 @@ export function sharedInfraControllergetSharedInfra({ workspaceId, stackId, stac
|
|
|
490
685
|
...opts
|
|
491
686
|
}));
|
|
492
687
|
}
|
|
688
|
+
/**
|
|
689
|
+
* List workspace shared infrastructure infra plugins
|
|
690
|
+
*/
|
|
493
691
|
export function updateInfrastructureControllergetSharedInfraInfraPlugins({ workspaceId, sharedInfraId, branchName }, opts) {
|
|
494
692
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/infra-plugins${QS.query(QS.explode({
|
|
495
693
|
branchName
|
|
@@ -497,31 +695,49 @@ export function updateInfrastructureControllergetSharedInfraInfraPlugins({ works
|
|
|
497
695
|
...opts
|
|
498
696
|
}));
|
|
499
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
* List workspace shared infrastructure links by environment
|
|
700
|
+
*/
|
|
500
701
|
export function sharedInfraControllergetApplicationLinks({ workspaceId, sharedInfraId, envName }, opts) {
|
|
501
702
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/links`, {
|
|
502
703
|
...opts
|
|
503
704
|
}));
|
|
504
705
|
}
|
|
706
|
+
/**
|
|
707
|
+
* Get workspace shared infrastructure details by environment
|
|
708
|
+
*/
|
|
505
709
|
export function sharedInfraControllergetSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envName }, opts) {
|
|
506
710
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/details`, {
|
|
507
711
|
...opts
|
|
508
712
|
}));
|
|
509
713
|
}
|
|
714
|
+
/**
|
|
715
|
+
* Get workspace shared infrastructure dependencies
|
|
716
|
+
*/
|
|
510
717
|
export function sharedInfraControllergetSharedInfraDependencies({ workspaceId, sharedInfraId }, opts) {
|
|
511
718
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/dependencies`, {
|
|
512
719
|
...opts
|
|
513
720
|
}));
|
|
514
721
|
}
|
|
722
|
+
/**
|
|
723
|
+
* List workspace shared infrastructure branches
|
|
724
|
+
*/
|
|
515
725
|
export function updateInfrastructureControllergetSharedInfraBranches({ workspaceId, sharedInfraId }, opts) {
|
|
516
726
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/branches`, {
|
|
517
727
|
...opts
|
|
518
728
|
}));
|
|
519
729
|
}
|
|
730
|
+
/**
|
|
731
|
+
* List workspace shared infrastructure filters
|
|
732
|
+
*/
|
|
520
733
|
export function sharedInfraControllergetSharedInfraFilters({ workspaceId }, opts) {
|
|
521
734
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/filters`, {
|
|
522
735
|
...opts
|
|
523
736
|
}));
|
|
524
737
|
}
|
|
738
|
+
/**
|
|
739
|
+
* List workspace plugins
|
|
740
|
+
*/
|
|
525
741
|
export function workspacePluginControllerlistPluginsFromWorkspace({ workspaceId, typePlugin }, opts) {
|
|
526
742
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/plugins${QS.query(QS.explode({
|
|
527
743
|
typePlugin
|
|
@@ -529,11 +745,17 @@ export function workspacePluginControllerlistPluginsFromWorkspace({ workspaceId,
|
|
|
529
745
|
...opts
|
|
530
746
|
}));
|
|
531
747
|
}
|
|
748
|
+
/**
|
|
749
|
+
* Get workspace connection interface details
|
|
750
|
+
*/
|
|
532
751
|
export function connectionInterfaceControllergetConnectionInterfaceDetails({ workspaceId, connectionInterfaceId }, opts) {
|
|
533
752
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(connectionInterfaceId)}`, {
|
|
534
753
|
...opts
|
|
535
754
|
}));
|
|
536
755
|
}
|
|
756
|
+
/**
|
|
757
|
+
* List workspace available connection interfaces
|
|
758
|
+
*/
|
|
537
759
|
export function availableConnectionInterfaceControllergetAvailableConnectionInterfaces({ workspaceId, applicationId, typeName, automaticallyGenerated }, opts) {
|
|
538
760
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/available-connection-interfaces${QS.query(QS.explode({
|
|
539
761
|
applicationId,
|
|
@@ -543,6 +765,9 @@ export function availableConnectionInterfaceControllergetAvailableConnectionInte
|
|
|
543
765
|
...opts
|
|
544
766
|
}));
|
|
545
767
|
}
|
|
768
|
+
/**
|
|
769
|
+
* List workspace applications
|
|
770
|
+
*/
|
|
546
771
|
export function applicationControllergetApplications({ workspaceId, stackVersionId, stackId, name, page, size, sortBy, sortDir }, opts) {
|
|
547
772
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications${QS.query(QS.explode({
|
|
548
773
|
stackVersionId,
|
|
@@ -556,6 +781,9 @@ export function applicationControllergetApplications({ workspaceId, stackVersion
|
|
|
556
781
|
...opts
|
|
557
782
|
}));
|
|
558
783
|
}
|
|
784
|
+
/**
|
|
785
|
+
* List workspace application infra plugins
|
|
786
|
+
*/
|
|
559
787
|
export function updateInfrastructureControllergetApplicationInfraPlugins({ workspaceId, applicationId, branchName }, opts) {
|
|
560
788
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/infra-plugins${QS.query(QS.explode({
|
|
561
789
|
branchName
|
|
@@ -563,31 +791,49 @@ export function updateInfrastructureControllergetApplicationInfraPlugins({ works
|
|
|
563
791
|
...opts
|
|
564
792
|
}));
|
|
565
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* List workspace application links by environment
|
|
796
|
+
*/
|
|
566
797
|
export function applicationControllergetApplicationLinks({ workspaceId, applicationId, envName }, opts) {
|
|
567
798
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/links`, {
|
|
568
799
|
...opts
|
|
569
800
|
}));
|
|
570
801
|
}
|
|
802
|
+
/**
|
|
803
|
+
* Get workspace application details by environment
|
|
804
|
+
*/
|
|
571
805
|
export function applicationControllergetApplicationDetails({ workspaceId, applicationId, envName }, opts) {
|
|
572
806
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/details`, {
|
|
573
807
|
...opts
|
|
574
808
|
}));
|
|
575
809
|
}
|
|
810
|
+
/**
|
|
811
|
+
* Get workspace application dependencies
|
|
812
|
+
*/
|
|
576
813
|
export function applicationControllergetApplicationDependencies({ workspaceId, applicationId }, opts) {
|
|
577
814
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/dependencies`, {
|
|
578
815
|
...opts
|
|
579
816
|
}));
|
|
580
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* List workspace application branches
|
|
820
|
+
*/
|
|
581
821
|
export function updateInfrastructureControllergetApplicationBranches({ workspaceId, applicationId }, opts) {
|
|
582
822
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/branches`, {
|
|
583
823
|
...opts
|
|
584
824
|
}));
|
|
585
825
|
}
|
|
826
|
+
/**
|
|
827
|
+
* List workspace application filters
|
|
828
|
+
*/
|
|
586
829
|
export function applicationControllergetApplicationFilters({ workspaceId }, opts) {
|
|
587
830
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/filters`, {
|
|
588
831
|
...opts
|
|
589
832
|
}));
|
|
590
833
|
}
|
|
834
|
+
/**
|
|
835
|
+
* List account shared infrastructures
|
|
836
|
+
*/
|
|
591
837
|
export function accountSharedInfraControllergetAccountSharedInfraPage({ page, size, sortBy, sortDir, name, tab, stackVersionId, stackId }, opts) {
|
|
592
838
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/shared-infra${QS.query(QS.explode({
|
|
593
839
|
page,
|
|
@@ -602,16 +848,45 @@ export function accountSharedInfraControllergetAccountSharedInfraPage({ page, si
|
|
|
602
848
|
...opts
|
|
603
849
|
}));
|
|
604
850
|
}
|
|
851
|
+
/**
|
|
852
|
+
* List account shared infrastructure filters
|
|
853
|
+
*/
|
|
605
854
|
export function accountSharedInfraControllergetAccountSharedInfraFilters(opts) {
|
|
606
855
|
return oazapfts.ok(oazapfts.fetchJson("/v1/shared-infra/filters", {
|
|
607
856
|
...opts
|
|
608
857
|
}));
|
|
609
858
|
}
|
|
859
|
+
/**
|
|
860
|
+
* List environments by account
|
|
861
|
+
*/
|
|
862
|
+
export function environmentControllergetEnvironments({ accountId }, opts) {
|
|
863
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/environments", {
|
|
864
|
+
...opts,
|
|
865
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
866
|
+
accountId
|
|
867
|
+
})
|
|
868
|
+
}));
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Get stack workflow consolidated inputs in workspace context
|
|
872
|
+
*/
|
|
610
873
|
export function contextWorkflowControllergetConsolidatedWorkflowInputs({ workspaceId, stackVersionId, workflowVersionId }, opts) {
|
|
611
874
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}`, {
|
|
612
875
|
...opts
|
|
613
876
|
}));
|
|
614
877
|
}
|
|
878
|
+
/**
|
|
879
|
+
* Clear stack workflow context in workspace
|
|
880
|
+
*/
|
|
881
|
+
export function contextControllerclearWorkflowContextInWorkspace({ workspaceId, stackVersionId, workflowVersionId }, opts) {
|
|
882
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}`, {
|
|
883
|
+
...opts,
|
|
884
|
+
method: "DELETE"
|
|
885
|
+
}));
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* List stack action inputs in workspace context
|
|
889
|
+
*/
|
|
615
890
|
export function contextControllergetStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }, opts) {
|
|
616
891
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
|
|
617
892
|
envName
|
|
@@ -619,6 +894,9 @@ export function contextControllergetStackActionInputsInWorkspaceContext({ worksp
|
|
|
619
894
|
...opts
|
|
620
895
|
}));
|
|
621
896
|
}
|
|
897
|
+
/**
|
|
898
|
+
* List stack action inputs in account context
|
|
899
|
+
*/
|
|
622
900
|
export function contextControllergetStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }, opts) {
|
|
623
901
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
|
|
624
902
|
envName
|
|
@@ -626,6 +904,9 @@ export function contextControllergetStackActionInputsInAccountContext({ stackVer
|
|
|
626
904
|
...opts
|
|
627
905
|
}));
|
|
628
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* List account applications
|
|
909
|
+
*/
|
|
629
910
|
export function accountApplicationControllergetAccountApplicationPage({ page, size, sortBy, sortDir, tab, name, stackVersionId, stackId }, opts) {
|
|
630
911
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications${QS.query(QS.explode({
|
|
631
912
|
page,
|
|
@@ -640,11 +921,17 @@ export function accountApplicationControllergetAccountApplicationPage({ page, si
|
|
|
640
921
|
...opts
|
|
641
922
|
}));
|
|
642
923
|
}
|
|
924
|
+
/**
|
|
925
|
+
* List account application filters
|
|
926
|
+
*/
|
|
643
927
|
export function accountApplicationControllergetAccountApplicationsFilters(opts) {
|
|
644
928
|
return oazapfts.ok(oazapfts.fetchJson("/v1/applications/filters", {
|
|
645
929
|
...opts
|
|
646
930
|
}));
|
|
647
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* Get account variable usage by name
|
|
934
|
+
*/
|
|
648
935
|
export function accountVariableControllerusage({ accountId, name }, opts) {
|
|
649
936
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables/${encodeURIComponent(name)}/usage`, {
|
|
650
937
|
...opts,
|
|
@@ -653,6 +940,9 @@ export function accountVariableControllerusage({ accountId, name }, opts) {
|
|
|
653
940
|
})
|
|
654
941
|
}));
|
|
655
942
|
}
|
|
943
|
+
/**
|
|
944
|
+
* List account stacks with workflows
|
|
945
|
+
*/
|
|
656
946
|
export function accountStackControllerlistStacksByAccountWithWorkflow({ workspaceId }, opts) {
|
|
657
947
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks${QS.query(QS.explode({
|
|
658
948
|
workspaceId
|
|
@@ -660,11 +950,17 @@ export function accountStackControllerlistStacksByAccountWithWorkflow({ workspac
|
|
|
660
950
|
...opts
|
|
661
951
|
}));
|
|
662
952
|
}
|
|
953
|
+
/**
|
|
954
|
+
* List account workflows by stack id
|
|
955
|
+
*/
|
|
663
956
|
export function accountStackControllerlistWorkflowsByStack({ stackId }, opts) {
|
|
664
957
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows`, {
|
|
665
958
|
...opts
|
|
666
959
|
}));
|
|
667
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* List account most-used stacks in applications and shared infrastructures
|
|
963
|
+
*/
|
|
668
964
|
export function accountStackControllerlistMostUsedStacksInAppsAndSharedInfras({ accountId }, opts) {
|
|
669
965
|
return oazapfts.ok(oazapfts.fetchJson("/v1/account/stacks/most-used", {
|
|
670
966
|
...opts,
|
|
@@ -673,53 +969,89 @@ export function accountStackControllerlistMostUsedStacksInAppsAndSharedInfras({
|
|
|
673
969
|
})
|
|
674
970
|
}));
|
|
675
971
|
}
|
|
972
|
+
/**
|
|
973
|
+
* Get account context by stack version id
|
|
974
|
+
*/
|
|
676
975
|
export function accountStackControllerlistVersionsWithContext({ stackVersionId }, opts) {
|
|
677
976
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stackVersionId/${encodeURIComponent(stackVersionId)}`, {
|
|
678
977
|
...opts
|
|
679
978
|
}));
|
|
680
979
|
}
|
|
980
|
+
/**
|
|
981
|
+
* Delete workspace
|
|
982
|
+
*/
|
|
681
983
|
export function workspaceControllerdelete({ workspaceId }, opts) {
|
|
682
984
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
683
985
|
...opts,
|
|
684
986
|
method: "DELETE"
|
|
685
987
|
}));
|
|
686
988
|
}
|
|
989
|
+
/**
|
|
990
|
+
* Delete a stack from a workspace
|
|
991
|
+
*/
|
|
687
992
|
export function workspaceStackControllerdeleteStacksInWorkspace({ workspaceId, stackVersionId }, opts) {
|
|
688
993
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}`, {
|
|
689
994
|
...opts,
|
|
690
995
|
method: "DELETE"
|
|
691
996
|
}));
|
|
692
997
|
}
|
|
998
|
+
/**
|
|
999
|
+
* Delete shared infrastructure from a workspace
|
|
1000
|
+
*/
|
|
693
1001
|
export function managerRunControllerdeleteSharedInfra({ workspaceId, sharedInfraId }, opts) {
|
|
694
1002
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}`, {
|
|
695
1003
|
...opts,
|
|
696
1004
|
method: "DELETE"
|
|
697
1005
|
}));
|
|
698
1006
|
}
|
|
1007
|
+
/**
|
|
1008
|
+
* Delete application from a workspace
|
|
1009
|
+
*/
|
|
699
1010
|
export function managerRunControllerdeleteApplication({ workspaceId, applicationId }, opts) {
|
|
700
1011
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, {
|
|
701
1012
|
...opts,
|
|
702
1013
|
method: "DELETE"
|
|
703
1014
|
}));
|
|
704
1015
|
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Clear stack plugin context in workspace
|
|
1018
|
+
*/
|
|
705
1019
|
export function contextControllerclearPluginContextInWorkspace({ workspaceId, stackVersionId, pluginVersionId }, opts) {
|
|
706
1020
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
|
|
707
1021
|
...opts,
|
|
708
1022
|
method: "DELETE"
|
|
709
1023
|
}));
|
|
710
1024
|
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Clear stack action context in workspace
|
|
1027
|
+
*/
|
|
711
1028
|
export function contextControllerclearActionContextInWorkspace({ workspaceId, stackVersionId, actionVersionId }, opts) {
|
|
712
1029
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}`, {
|
|
713
1030
|
...opts,
|
|
714
1031
|
method: "DELETE"
|
|
715
1032
|
}));
|
|
716
1033
|
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Clear stack workflow context in account
|
|
1036
|
+
*/
|
|
1037
|
+
export function contextControllerclearWorkflowContextInAccount({ stackVersionId, workflowVersionId }, opts) {
|
|
1038
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowVersionId)}`, {
|
|
1039
|
+
...opts,
|
|
1040
|
+
method: "DELETE"
|
|
1041
|
+
}));
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Clear stack plugin context in account
|
|
1045
|
+
*/
|
|
717
1046
|
export function contextControllerclearPluginContextInAccount({ stackVersionId, pluginVersionId }, opts) {
|
|
718
1047
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
|
|
719
1048
|
...opts,
|
|
720
1049
|
method: "DELETE"
|
|
721
1050
|
}));
|
|
722
1051
|
}
|
|
1052
|
+
/**
|
|
1053
|
+
* Clear stack action context in account
|
|
1054
|
+
*/
|
|
723
1055
|
export function contextControllerclearActionContextInAccount({ stackVersionId, actionVersionId }, opts) {
|
|
724
1056
|
return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}`, {
|
|
725
1057
|
...opts,
|