@stack-spot/portal-network 0.94.0 → 0.95.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.
@@ -15,9 +15,6 @@ export const servers = {};
15
15
  export type BodyCreateApplicationsBatchServiceV1ApplicationsBatchPost = {
16
16
  file: Blob;
17
17
  };
18
- export type CreateApplicationBatchResponse = {
19
- id: string;
20
- };
21
18
  export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR";
22
19
  export type BadRequestExceptionTypes = "CODE_SHIFT_API_1001_DECODE_JWT_ERROR" | "CODE_SHIFT_API_2001_BAD_REQUEST_REQUIRED_FIELD" | "CODE_SHIFT_API_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2005_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "CODE_SHIFT_API_2006_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "CODE_SHIFT_API_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "CODE_SHIFT_API_2008_BAD_REQUEST_VALUE_FIELD_NUMBER_NOT_LT" | "CODE_SHIFT_API_2100_CREATE_BODY_REPO_AND_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2101_CREATE_BODY_NOT_REPO_AND_NOT_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2102_BAD_REQUEST_DATE_MAX_INTERVAL" | "CODE_SHIFT_API_2103_BAD_REQUEST_INVALID_PAGE" | "CODE_SHIFT_API_2104_BAD_REQUEST_DUPLICATED_ALIAS" | "CODE_SHIFT_API_2105_BAD_REQUEST_INVALID_REPO_URL" | "CODE_SHIFT_API_2110_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_WITHOUT_CONCLUSION" | "CODE_SHIFT_API_2112_BAD_REQUEST_PUT_STEP_STATUS_NOT_COMPLETED_AND_CONCLUSION_DEFINED" | "CODE_SHIFT_API_2113_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_AND_COMPLETED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2114_BAD_REQUEST_PUT_STEP_STATUS_IN_PROGRESS_AND_STARTED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2115_BAD_REQUEST_PUT_STEP_COMPLETED_AT_DEFINED_AND_STATUS_NOT_COMPLETED" | "CODE_SHIFT_API_2116_BAD_REQUEST_PUT_STEP_STARTED_AT_DEFINED_AND_STATUS_PENDING" | "CODE_SHIFT_API_2117_BAD_REQUEST_PUT_STEP_LOG_DEFINED_AND_CONCLUSION_IS_NOT_FAILURE" | "CODE_SHIFT_API_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "CODE_SHIFT_API_2999_BAD_REQUEST_UNMAPPED";
23
20
  export type InvalidPayloadDetails = {
@@ -40,9 +37,6 @@ export type CreateApplicationRequest = {
40
37
  /** Repository */
41
38
  repository: RepositoryRequest;
42
39
  };
43
- export type CreateApplicationResponse = {
44
- id: string;
45
- };
46
40
  export type ApplicationRequest = {
47
41
  /** Application ID */
48
42
  id: string;
@@ -54,6 +48,8 @@ export type ApplicationRequest = {
54
48
  export type ListApplicationRequest = {
55
49
  /** List of applications */
56
50
  items: ApplicationRequest[];
51
+ /** Number of applications */
52
+ items_count: number;
57
53
  /** Last evaluated key */
58
54
  last_evaluated_key: string | null;
59
55
  };
@@ -68,6 +64,8 @@ export type CreateModuleRequest = {
68
64
  version: string;
69
65
  /** Module mode */
70
66
  modes: string[];
67
+ /** Module tags */
68
+ tags: string[];
71
69
  };
72
70
  export type ModuleResponse = {
73
71
  /** Module ID */
@@ -84,10 +82,14 @@ export type ModuleResponse = {
84
82
  modes: string[];
85
83
  /** Module versions */
86
84
  versions: string[];
85
+ /** Module tags */
86
+ tags: string[];
87
87
  };
88
88
  export type ListModuleResponse = {
89
89
  /** List of modules */
90
90
  items: ModuleResponse[];
91
+ /** Number of modules */
92
+ items_count: number;
91
93
  /** Last evaluated key */
92
94
  last_evaluated_key: string | null;
93
95
  };
@@ -100,7 +102,7 @@ export function createApplicationsBatchServiceV1ApplicationsBatchPost({ authoriz
100
102
  }, opts?: Oazapfts.RequestOpts) {
101
103
  return oazapfts.ok(oazapfts.fetchJson<{
102
104
  status: 200;
103
- data: CreateApplicationBatchResponse[];
105
+ data: any;
104
106
  } | {
105
107
  status: 400;
106
108
  data: HttpErrorResponse;
@@ -136,7 +138,7 @@ export function createApplicationServiceV1ApplicationsPost({ authorization, crea
136
138
  }, opts?: Oazapfts.RequestOpts) {
137
139
  return oazapfts.ok(oazapfts.fetchJson<{
138
140
  status: 200;
139
- data: CreateApplicationResponse;
141
+ data: any;
140
142
  } | {
141
143
  status: 400;
142
144
  data: HttpErrorResponse;
@@ -166,10 +168,12 @@ export function createApplicationServiceV1ApplicationsPost({ authorization, crea
166
168
  /**
167
169
  * List Application Service
168
170
  */
169
- export function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEvaluatedKey, authorization }: {
171
+ export function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEvaluatedKey, applicationSlug, moduleId, authorization }: {
170
172
  pageSize?: number;
171
173
  page?: number;
172
174
  lastEvaluatedKey?: string;
175
+ applicationSlug?: string;
176
+ moduleId?: string;
173
177
  authorization: string;
174
178
  }, opts?: Oazapfts.RequestOpts) {
175
179
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -195,7 +199,9 @@ export function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEv
195
199
  }>(`/v1/applications${QS.query(QS.explode({
196
200
  pageSize,
197
201
  page,
198
- last_evaluated_key: lastEvaluatedKey
202
+ last_evaluated_key: lastEvaluatedKey,
203
+ applicationSlug,
204
+ moduleId
199
205
  }))}`, {
200
206
  ...opts,
201
207
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -204,9 +210,81 @@ export function listApplicationServiceV1ApplicationsGet({ pageSize, page, lastEv
204
210
  }));
205
211
  }
206
212
  /**
207
- * Create Application Service
213
+ * Delete Application Service
214
+ */
215
+ export function deleteApplicationServiceV1ApplicationsApplicationIdDelete({ applicationId, authorization }: {
216
+ applicationId: string;
217
+ authorization: string;
218
+ }, opts?: Oazapfts.RequestOpts) {
219
+ return oazapfts.ok(oazapfts.fetchJson<{
220
+ status: 200;
221
+ data: any;
222
+ } | {
223
+ status: 400;
224
+ data: HttpErrorResponse;
225
+ } | {
226
+ status: 401;
227
+ data: HttpErrorResponse;
228
+ } | {
229
+ status: 404;
230
+ data: HttpErrorResponse;
231
+ } | {
232
+ status: 422;
233
+ } | {
234
+ status: 500;
235
+ data: HttpErrorResponse;
236
+ } | {
237
+ status: 503;
238
+ data: HttpErrorResponse;
239
+ }>(`/v1/applications/${encodeURIComponent(applicationId)}`, {
240
+ ...opts,
241
+ method: "DELETE",
242
+ headers: oazapfts.mergeHeaders(opts?.headers, {
243
+ authorization
244
+ })
245
+ }));
246
+ }
247
+ /**
248
+ * Update Application Service
208
249
  */
209
- export function createApplicationServiceV1ModulesPost({ authorization, createModuleRequest }: {
250
+ export function updateApplicationServiceV1ApplicationsApplicationIdPut({ applicationId, authorization, createApplicationRequest }: {
251
+ applicationId: string;
252
+ authorization: string;
253
+ createApplicationRequest: CreateApplicationRequest;
254
+ }, opts?: Oazapfts.RequestOpts) {
255
+ return oazapfts.ok(oazapfts.fetchJson<{
256
+ status: 200;
257
+ data: any;
258
+ } | {
259
+ status: 400;
260
+ data: HttpErrorResponse;
261
+ } | {
262
+ status: 401;
263
+ data: HttpErrorResponse;
264
+ } | {
265
+ status: 404;
266
+ data: HttpErrorResponse;
267
+ } | {
268
+ status: 422;
269
+ } | {
270
+ status: 500;
271
+ data: HttpErrorResponse;
272
+ } | {
273
+ status: 503;
274
+ data: HttpErrorResponse;
275
+ }>(`/v1/applications/${encodeURIComponent(applicationId)}`, oazapfts.json({
276
+ ...opts,
277
+ method: "PUT",
278
+ body: createApplicationRequest,
279
+ headers: oazapfts.mergeHeaders(opts?.headers, {
280
+ authorization
281
+ })
282
+ })));
283
+ }
284
+ /**
285
+ * Create Module Service
286
+ */
287
+ export function createModuleServiceV1ModulesPost({ authorization, createModuleRequest }: {
210
288
  authorization: string;
211
289
  createModuleRequest: CreateModuleRequest;
212
290
  }, opts?: Oazapfts.RequestOpts) {
@@ -275,3 +353,75 @@ export function listModulesServiceV1ModulesGet({ pageSize, page, lastEvaluatedKe
275
353
  ...opts
276
354
  }));
277
355
  }
356
+ /**
357
+ * Delete Module Service
358
+ */
359
+ export function deleteModuleServiceV1ModulesModuleIdDelete({ moduleId, authorization }: {
360
+ moduleId: string;
361
+ authorization: string;
362
+ }, opts?: Oazapfts.RequestOpts) {
363
+ return oazapfts.ok(oazapfts.fetchJson<{
364
+ status: 200;
365
+ data: any;
366
+ } | {
367
+ status: 400;
368
+ data: HttpErrorResponse;
369
+ } | {
370
+ status: 401;
371
+ data: HttpErrorResponse;
372
+ } | {
373
+ status: 404;
374
+ data: HttpErrorResponse;
375
+ } | {
376
+ status: 422;
377
+ } | {
378
+ status: 500;
379
+ data: HttpErrorResponse;
380
+ } | {
381
+ status: 503;
382
+ data: HttpErrorResponse;
383
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}`, {
384
+ ...opts,
385
+ method: "DELETE",
386
+ headers: oazapfts.mergeHeaders(opts?.headers, {
387
+ authorization
388
+ })
389
+ }));
390
+ }
391
+ /**
392
+ * Update Module Service
393
+ */
394
+ export function updateModuleServiceV1ModulesModuleIdPut({ moduleId, authorization, createModuleRequest }: {
395
+ moduleId: string;
396
+ authorization: string;
397
+ createModuleRequest: CreateModuleRequest;
398
+ }, opts?: Oazapfts.RequestOpts) {
399
+ return oazapfts.ok(oazapfts.fetchJson<{
400
+ status: 200;
401
+ data: any;
402
+ } | {
403
+ status: 400;
404
+ data: HttpErrorResponse;
405
+ } | {
406
+ status: 401;
407
+ data: HttpErrorResponse;
408
+ } | {
409
+ status: 404;
410
+ data: HttpErrorResponse;
411
+ } | {
412
+ status: 422;
413
+ } | {
414
+ status: 500;
415
+ data: HttpErrorResponse;
416
+ } | {
417
+ status: 503;
418
+ data: HttpErrorResponse;
419
+ }>(`/v1/modules/${encodeURIComponent(moduleId)}`, oazapfts.json({
420
+ ...opts,
421
+ method: "PUT",
422
+ body: createModuleRequest,
423
+ headers: oazapfts.mergeHeaders(opts?.headers, {
424
+ authorization
425
+ })
426
+ })));
427
+ }
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
8
8
  import * as QS from "@oazapfts/runtime/query";
9
9
  export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
10
10
  headers: {},
11
- baseUrl: "https://workspace-workspace-manager.stg.stackspot.com",
11
+ baseUrl: "https://workspace-workspace-manager.dev.stackspot.com",
12
12
  };
13
13
  const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {
15
- generatedServerUrl: "https://workspace-workspace-manager.stg.stackspot.com"
15
+ generatedServerUrl: "https://workspace-workspace-manager.dev.stackspot.com"
16
16
  };
17
17
  export type WorkspaceVariableResponse = {
18
18
  /** Workspace variable name. */
@@ -2347,3 +2347,41 @@ export function managerRunControllerdeleteApplication({ workspaceId, application
2347
2347
  method: "DELETE"
2348
2348
  }));
2349
2349
  }
2350
+ export function contextControllerclearPluginContextInWorkspace({ workspaceId, stackVersionId, pluginVersionId }: {
2351
+ workspaceId: string;
2352
+ stackVersionId: string;
2353
+ pluginVersionId: string;
2354
+ }, opts?: Oazapfts.RequestOpts) {
2355
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
2356
+ ...opts,
2357
+ method: "DELETE"
2358
+ }));
2359
+ }
2360
+ export function contextControllerclearActionContextInWorkspace({ workspaceId, stackVersionId, actionVersionId }: {
2361
+ workspaceId: string;
2362
+ stackVersionId: string;
2363
+ actionVersionId: string;
2364
+ }, opts?: Oazapfts.RequestOpts) {
2365
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}`, {
2366
+ ...opts,
2367
+ method: "DELETE"
2368
+ }));
2369
+ }
2370
+ export function contextControllerclearPluginContextInAccount({ stackVersionId, pluginVersionId }: {
2371
+ stackVersionId: string;
2372
+ pluginVersionId: string;
2373
+ }, opts?: Oazapfts.RequestOpts) {
2374
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
2375
+ ...opts,
2376
+ method: "DELETE"
2377
+ }));
2378
+ }
2379
+ export function contextControllerclearActionContextInAccount({ stackVersionId, actionVersionId }: {
2380
+ stackVersionId: string;
2381
+ actionVersionId: string;
2382
+ }, opts?: Oazapfts.RequestOpts) {
2383
+ return oazapfts.ok(oazapfts.fetchText(`/v1/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}`, {
2384
+ ...opts,
2385
+ method: "DELETE"
2386
+ }));
2387
+ }
package/src/apis.json CHANGED
@@ -188,6 +188,6 @@
188
188
  "stg": "https://code-shift-code-shift-api.stg.stackspot.com",
189
189
  "prd": "https://code-shift-code-shift-api.stackspot.com"
190
190
  },
191
- "docs": "/docs"
191
+ "docs": "/openapi.json"
192
192
  }
193
193
  }
@@ -1,14 +1,14 @@
1
1
 
2
2
  import { HttpError } from '@oazapfts/runtime'
3
- import {
4
- defaults,
5
- HttpValidationError,
6
- } from '../api/ai'
7
3
  import apis from '../apis.json'
8
4
  import { StackspotAPIError } from '../error/StackspotAPIError'
9
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
10
6
  import { removeAuthorizationParam } from '../utils/remove-authorization-param'
11
- import { createApplicationsBatchServiceV1ApplicationsBatchPost, createApplicationServiceV1ApplicationsPost, listApplicationServiceV1ApplicationsGet, listModulesServiceV1ModulesGet } from '../api/codeShift'
7
+ import { defaults, createApplicationsBatchServiceV1ApplicationsBatchPost, createApplicationServiceV1ApplicationsPost,
8
+ deleteApplicationServiceV1ApplicationsApplicationIdDelete, listApplicationServiceV1ApplicationsGet, listModulesServiceV1ModulesGet,
9
+ updateApplicationServiceV1ApplicationsApplicationIdPut,
10
+ } from '../api/codeShift'
11
+ import { DefaultAPIError } from '../error/DefaultAPIError'
12
12
 
13
13
  class CodeShift extends ReactQueryNetworkClient {
14
14
  constructor() {
@@ -16,18 +16,15 @@ class CodeShift extends ReactQueryNetworkClient {
16
16
  }
17
17
 
18
18
  protected buildStackSpotError(error: HttpError): StackspotAPIError {
19
- return new StackspotAPIError({
20
- status: error.status,
21
- headers: error.headers,
22
- stack: error.stack,
23
- message: (error.data as HttpValidationError | undefined)?.detail?.map(d => d.msg)?.join('\n'),
24
- })
19
+ return new DefaultAPIError(error.data, error.status, { pt: {}, en:{} }, error.headers)
25
20
  }
26
21
 
27
22
  createApplication = this.mutation(removeAuthorizationParam(createApplicationServiceV1ApplicationsPost))
28
23
  createApplicationBatch = this.mutation(removeAuthorizationParam(createApplicationsBatchServiceV1ApplicationsBatchPost))
29
24
  applications = this.query(removeAuthorizationParam(listApplicationServiceV1ApplicationsGet))
25
+ updateApplication = this.mutation(removeAuthorizationParam(updateApplicationServiceV1ApplicationsApplicationIdPut))
30
26
  modules = this.query(removeAuthorizationParam(listModulesServiceV1ModulesGet))
27
+ deleteImportedApp = this.mutation(removeAuthorizationParam(deleteApplicationServiceV1ApplicationsApplicationIdDelete))
31
28
  }
32
29
 
33
30
  export const codeShiftClient = new CodeShift()
@@ -21,6 +21,9 @@ import {
21
21
  contentWorkflowControllercreateSharedInfraThroughWorkflow,
22
22
  contextActionControllergetStackActionInputsInAccountContext,
23
23
  contextActionControllergetStackActionInputsInWorkspaceContext,
24
+ contextControllerclearActionContextInAccount,
25
+ contextControllerclearActionContextInWorkspace,
26
+ contextControllerclearPluginContextInWorkspace,
24
27
  contextControllerupsertAccountActionsInputContext,
25
28
  contextControllerupsertPluginAccountContext,
26
29
  contextControllerupsertPluginWorkspaceContext,
@@ -159,7 +162,7 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
159
162
  },
160
163
  })
161
164
  /**
162
- * Update context inputs from an action in workspace
165
+ * Update context inputs from a plugin in workspace
163
166
  */
164
167
  updateInputContextPluginWorkspace = this.mutation({
165
168
  name: 'updateInputContextPluginWorkspace',
@@ -169,7 +172,17 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
169
172
  workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'plugin', workspaceId, stackVersionId, externalId: pluginVersionId }),
170
173
  })
171
174
  /**
172
- * Update context inputs from an action in account
175
+ * Clear context of inputs from a plugin in workspace
176
+ */
177
+ clearInputContextPluginWorkspace = this.mutation({
178
+ name: 'clearInputContextPluginWorkspace',
179
+ request: async (signal, variables: Parameters<typeof contextControllerclearPluginContextInWorkspace>[0]) =>
180
+ contextControllerclearPluginContextInWorkspace(variables, { signal }),
181
+ permission: async ({ stackVersionId, workspaceId, pluginVersionId }: Parameters<typeof contextControllerclearPluginContextInWorkspace>[0]) =>
182
+ workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'plugin', workspaceId, stackVersionId, externalId: pluginVersionId }),
183
+ })
184
+ /**
185
+ * Update context inputs from a plugin in account
173
186
  */
174
187
  updateInputContextPluginAccount = this.mutation({
175
188
  name: 'updateInputContextPluginAccount',
@@ -178,6 +191,16 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
178
191
  permission: async ({ stackVersionId, pluginVersionId }: Parameters<typeof contextControllerupsertPluginAccountContext>[0]) =>
179
192
  workspaceClient.saveContextInAccount.isAllowed({ $type: 'plugin', stackVersionId, externalId: pluginVersionId }),
180
193
  })
194
+ /**
195
+ * Clear context of inputs from an plugin in account
196
+ */
197
+ clearInputContextPluginAccount = this.mutation({
198
+ name: 'clearInputContextPluginAccount',
199
+ request: async (signal, variables: Parameters<typeof contextControllerupsertPluginAccountContext>[0]) =>
200
+ contextControllerupsertPluginAccountContext(variables, { signal }),
201
+ permission: async ({ stackVersionId, pluginVersionId }: Parameters<typeof contextControllerupsertPluginAccountContext>[0]) =>
202
+ workspaceClient.saveContextInAccount.isAllowed({ $type: 'plugin', stackVersionId, externalId: pluginVersionId }),
203
+ })
181
204
  /**
182
205
  * Gets links in a shared infra for a given env
183
206
  */
@@ -251,6 +274,16 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
251
274
  permission: async ({ stackVersionId, workspaceId, actionVersionId }: Parameters<typeof contextControllerupsertWorkspaceActionsInputContext>[0]) =>
252
275
  workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'action', workspaceId, stackVersionId, externalId: actionVersionId }),
253
276
  })
277
+ /**
278
+ * Clear context inputs from an action in workspace
279
+ */
280
+ clearInputContextActionWorkspace = this.mutation({
281
+ name: 'clearInputContextActionWorkspace',
282
+ request: async (signal, variables: Parameters<typeof contextControllerclearActionContextInWorkspace>[0]) =>
283
+ contextControllerclearActionContextInWorkspace(variables, { signal }),
284
+ permission: async ({ stackVersionId, workspaceId, actionVersionId }: Parameters<typeof contextControllerclearActionContextInWorkspace>[0]) =>
285
+ workspaceClient.saveContextInWorkspace.isAllowed({ $type: 'action', workspaceId, stackVersionId, externalId: actionVersionId }),
286
+ })
254
287
  /**
255
288
  * Update context inputs from an action in account
256
289
  */
@@ -261,6 +294,16 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
261
294
  permission: async ({ stackVersionId, actionVersionId }: Parameters<typeof contextControllerupsertAccountActionsInputContext>[0]) =>
262
295
  workspaceClient.saveContextInAccount.isAllowed({ $type: 'action', stackVersionId, externalId: actionVersionId }),
263
296
  })
297
+ /**
298
+ * Clear context inputs from an action in account
299
+ */
300
+ clearInputContextActionAccount = this.mutation({
301
+ name: 'clearInputContextActionAccount',
302
+ request: async (signal, variables: Parameters<typeof contextControllerclearActionContextInAccount>[0]) =>
303
+ contextControllerclearActionContextInAccount(variables, { signal }),
304
+ permission: async ({ stackVersionId, actionVersionId }: Parameters<typeof contextControllerclearActionContextInAccount>[0]) =>
305
+ workspaceClient.saveContextInAccount.isAllowed({ $type: 'action', stackVersionId, externalId: actionVersionId }),
306
+ })
264
307
  /**
265
308
  * Gets details of an application in an environment
266
309
  */
@@ -79,6 +79,7 @@ export const workspaceDictionary = {
79
79
  WKS_PLUGIN_NOT_ASSOCIATED_WITH_SPECIFIC_STACK_VERSION: 'Plugin {1} is not associated with stack {2}',
80
80
  WKS_PARAMETER_CONFIG_NOT_FOUND: 'Parameter {1} is missing in Workspace',
81
81
  WKS_CONTEXT_ATTRIBUTE_NOT_ALLOWED_FOR_ACCOUNT: 'Connection inputs are not allowed in account contexts',
82
+ WKS_CONTEXT_ATTRIBUTE_TYPE_ERROR: 'Value {1} doesn\'t match the expected type for this input. Expected type: {2}',
82
83
  SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'The specified repository could not be found on GitHub.',
83
84
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Unauthorized access to the repository on GitHub. Please check your credentials.',
84
85
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Access to the repository on GitHub is forbidden. Verify your permissions.',
@@ -176,6 +177,7 @@ export const workspaceDictionary = {
176
177
  WKS_PLUGIN_NOT_ASSOCIATED_WITH_SPECIFIC_STACK_VERSION: 'O plugin {1} não está associado à stack {2}',
177
178
  WKS_PARAMETER_CONFIG_NOT_FOUND: 'O parâmetro {1} está ausente no Workspace',
178
179
  WKS_CONTEXT_ATTRIBUTE_NOT_ALLOWED_FOR_ACCOUNT: 'Entradas de conexão não são permitidas em contextos de conta',
180
+ WKS_CONTEXT_ATTRIBUTE_TYPE_ERROR: 'O valor {1} não corresponde ao tipo esperado para este input. Tipo esperado: {2}',
179
181
  SCM_API_4001_GITHUB_GET_REPO_BRANCHES_NOT_FOUND: 'O repositório especificado não foi encontrado no GitHub.',
180
182
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_UNAUTHORIZED: 'Acesso não autorizado ao repositório no GitHub. Verifique suas credenciais.',
181
183
  SCM_API_4002_GITHUB_GET_REPO_BRANCHES_FORBIDDEN: 'Acesso ao repositório no GitHub foi proibido. Verifique suas permissões.',