@stack-spot/portal-network 1.0.0-betaadp.3 → 1.0.0-dev.1768423147036

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 (220) hide show
  1. package/CHANGELOG.md +633 -0
  2. package/dist/api/account.d.ts +413 -277
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +261 -176
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/accountAssetManager.d.ts +309 -0
  7. package/dist/api/accountAssetManager.d.ts.map +1 -0
  8. package/dist/api/accountAssetManager.js +169 -0
  9. package/dist/api/accountAssetManager.js.map +1 -0
  10. package/dist/api/agent-tools.d.ts +818 -261
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +245 -50
  13. package/dist/api/agent-tools.js.map +1 -1
  14. package/dist/api/agent.d.ts +55 -55
  15. package/dist/api/agent.d.ts.map +1 -1
  16. package/dist/api/ai.d.ts +488 -98
  17. package/dist/api/ai.d.ts.map +1 -1
  18. package/dist/api/ai.js +426 -146
  19. package/dist/api/ai.js.map +1 -1
  20. package/dist/api/cloudPlatform.d.ts +374 -221
  21. package/dist/api/cloudPlatform.d.ts.map +1 -1
  22. package/dist/api/cloudPlatform.js +299 -93
  23. package/dist/api/cloudPlatform.js.map +1 -1
  24. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  25. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  26. package/dist/api/cloudPlatformHorizon.js +69 -1
  27. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  28. package/dist/api/codeShift.d.ts +1125 -83
  29. package/dist/api/codeShift.d.ts.map +1 -1
  30. package/dist/api/codeShift.js +538 -16
  31. package/dist/api/codeShift.js.map +1 -1
  32. package/dist/api/dataIntegration.d.ts +291 -1
  33. package/dist/api/dataIntegration.d.ts.map +1 -1
  34. package/dist/api/dataIntegration.js +254 -0
  35. package/dist/api/dataIntegration.js.map +1 -1
  36. package/dist/api/discover.d.ts +98 -12
  37. package/dist/api/discover.d.ts.map +1 -1
  38. package/dist/api/discover.js +78 -2
  39. package/dist/api/discover.js.map +1 -1
  40. package/dist/api/edpBfa.d.ts +215 -0
  41. package/dist/api/edpBfa.d.ts.map +1 -0
  42. package/dist/api/edpBfa.js +87 -0
  43. package/dist/api/edpBfa.js.map +1 -0
  44. package/dist/api/genAiInference.d.ts +22 -2
  45. package/dist/api/genAiInference.d.ts.map +1 -1
  46. package/dist/api/genAiInference.js +22 -3
  47. package/dist/api/genAiInference.js.map +1 -1
  48. package/dist/api/workflows.d.ts +68 -5
  49. package/dist/api/workflows.d.ts.map +1 -1
  50. package/dist/api/workflows.js +16 -0
  51. package/dist/api/workflows.js.map +1 -1
  52. package/dist/api/workspace-ai.d.ts +41 -0
  53. package/dist/api/workspace-ai.d.ts.map +1 -1
  54. package/dist/api/workspace-ai.js +34 -0
  55. package/dist/api/workspace-ai.js.map +1 -1
  56. package/dist/api/workspaceManager.d.ts +16 -10
  57. package/dist/api/workspaceManager.d.ts.map +1 -1
  58. package/dist/api/workspaceManager.js +10 -0
  59. package/dist/api/workspaceManager.js.map +1 -1
  60. package/dist/api-addresses.d.ts +20 -18
  61. package/dist/api-addresses.d.ts.map +1 -1
  62. package/dist/api-addresses.js +81 -21
  63. package/dist/api-addresses.js.map +1 -1
  64. package/dist/apis-itau.json +241 -0
  65. package/dist/apis.json +17 -1
  66. package/dist/client/account-asset-manager.d.ts +112 -0
  67. package/dist/client/account-asset-manager.d.ts.map +1 -0
  68. package/dist/client/account-asset-manager.js +160 -0
  69. package/dist/client/account-asset-manager.js.map +1 -0
  70. package/dist/client/account.d.ts +265 -242
  71. package/dist/client/account.d.ts.map +1 -1
  72. package/dist/client/account.js +80 -34
  73. package/dist/client/account.js.map +1 -1
  74. package/dist/client/agent-tools.d.ts +295 -121
  75. package/dist/client/agent-tools.d.ts.map +1 -1
  76. package/dist/client/agent-tools.js +166 -12
  77. package/dist/client/agent-tools.js.map +1 -1
  78. package/dist/client/agent.d.ts +46 -46
  79. package/dist/client/agent.d.ts.map +1 -1
  80. package/dist/client/ai.d.ts +265 -79
  81. package/dist/client/ai.d.ts.map +1 -1
  82. package/dist/client/ai.js +268 -24
  83. package/dist/client/ai.js.map +1 -1
  84. package/dist/client/api-management.d.ts +10 -1
  85. package/dist/client/api-management.d.ts.map +1 -1
  86. package/dist/client/api-management.js +11 -2
  87. package/dist/client/api-management.js.map +1 -1
  88. package/dist/client/cloud-account.d.ts +13 -13
  89. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  90. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  91. package/dist/client/cloud-platform-horizon.js +19 -1
  92. package/dist/client/cloud-platform-horizon.js.map +1 -1
  93. package/dist/client/cloud-platform.d.ts +213 -46
  94. package/dist/client/cloud-platform.d.ts.map +1 -1
  95. package/dist/client/cloud-platform.js +168 -33
  96. package/dist/client/cloud-platform.js.map +1 -1
  97. package/dist/client/cloud-runtimes.d.ts +4 -4
  98. package/dist/client/cloud-services.d.ts +17 -17
  99. package/dist/client/cloud-services.d.ts.map +1 -1
  100. package/dist/client/code-shift.d.ts +535 -162
  101. package/dist/client/code-shift.d.ts.map +1 -1
  102. package/dist/client/code-shift.js +296 -7
  103. package/dist/client/code-shift.js.map +1 -1
  104. package/dist/client/content.d.ts +127 -132
  105. package/dist/client/content.d.ts.map +1 -1
  106. package/dist/client/data-integration.d.ts +92 -53
  107. package/dist/client/data-integration.d.ts.map +1 -1
  108. package/dist/client/data-integration.js +38 -2
  109. package/dist/client/data-integration.js.map +1 -1
  110. package/dist/client/discover.d.ts +31 -10
  111. package/dist/client/discover.d.ts.map +1 -1
  112. package/dist/client/discover.js +239 -3
  113. package/dist/client/discover.js.map +1 -1
  114. package/dist/client/edp-bfa.d.ts +16 -0
  115. package/dist/client/edp-bfa.d.ts.map +1 -0
  116. package/dist/client/edp-bfa.js +24 -0
  117. package/dist/client/edp-bfa.js.map +1 -0
  118. package/dist/client/event-bus.d.ts.map +1 -1
  119. package/dist/client/gen-ai-inference.d.ts +20 -20
  120. package/dist/client/insights.d.ts +7 -7
  121. package/dist/client/notification.d.ts +17 -10
  122. package/dist/client/notification.d.ts.map +1 -1
  123. package/dist/client/notification.js +10 -1
  124. package/dist/client/notification.js.map +1 -1
  125. package/dist/client/runtime-manager.d.ts +8 -8
  126. package/dist/client/secrets.d.ts.map +1 -1
  127. package/dist/client/secrets.js +1 -1
  128. package/dist/client/secrets.js.map +1 -1
  129. package/dist/client/types.d.ts +50 -7
  130. package/dist/client/types.d.ts.map +1 -1
  131. package/dist/client/workflow.d.ts +10 -10
  132. package/dist/client/workspace-ai.d.ts +65 -55
  133. package/dist/client/workspace-ai.d.ts.map +1 -1
  134. package/dist/client/workspace-ai.js +19 -9
  135. package/dist/client/workspace-ai.js.map +1 -1
  136. package/dist/client/workspace-manager.d.ts +115 -76
  137. package/dist/client/workspace-manager.d.ts.map +1 -1
  138. package/dist/client/workspace-manager.js +47 -2
  139. package/dist/client/workspace-manager.js.map +1 -1
  140. package/dist/client/workspace-search.d.ts +2 -2
  141. package/dist/client/workspace.d.ts +58 -105
  142. package/dist/client/workspace.d.ts.map +1 -1
  143. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  144. package/dist/error/DefaultAPIError.js.map +1 -1
  145. package/dist/error/StackspotAPIError.d.ts +3 -4
  146. package/dist/error/StackspotAPIError.d.ts.map +1 -1
  147. package/dist/error/StackspotAPIError.js +3 -3
  148. package/dist/error/StackspotAPIError.js.map +1 -1
  149. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  150. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  151. package/dist/error/dictionary/accountAssetManager.js +11 -0
  152. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  153. package/dist/error/dictionary/cloud-platform.d.ts +76 -8
  154. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  155. package/dist/error/dictionary/cloud-platform.js +80 -12
  156. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  157. package/dist/error/dictionary/workspace-ai.d.ts +9 -0
  158. package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
  159. package/dist/error/dictionary/workspace-ai.js +9 -0
  160. package/dist/error/dictionary/workspace-ai.js.map +1 -0
  161. package/dist/index.d.ts +5 -3
  162. package/dist/index.d.ts.map +1 -1
  163. package/dist/index.js +4 -2
  164. package/dist/index.js.map +1 -1
  165. package/dist/network/NetworkClient.d.ts +4 -2
  166. package/dist/network/NetworkClient.d.ts.map +1 -1
  167. package/dist/network/NetworkClient.js +16 -4
  168. package/dist/network/NetworkClient.js.map +1 -1
  169. package/dist/network/types.d.ts +2 -0
  170. package/dist/network/types.d.ts.map +1 -1
  171. package/dist/utils/StreamedJson.d.ts +3 -1
  172. package/dist/utils/StreamedJson.d.ts.map +1 -1
  173. package/dist/utils/StreamedJson.js +23 -3
  174. package/dist/utils/StreamedJson.js.map +1 -1
  175. package/package.dev.json +3 -0
  176. package/package.json +10 -9
  177. package/package.stg.json +3 -0
  178. package/readme.md +40 -1
  179. package/src/api/account.ts +701 -540
  180. package/src/api/accountAssetManager.ts +771 -0
  181. package/src/api/agent-tools.ts +1354 -556
  182. package/src/api/ai.ts +891 -170
  183. package/src/api/cloudPlatform.ts +667 -298
  184. package/src/api/cloudPlatformHorizon.ts +412 -9
  185. package/src/api/codeShift.ts +2088 -97
  186. package/src/api/dataIntegration.ts +635 -1
  187. package/src/api/discover.ts +180 -14
  188. package/src/api/edpBfa.ts +472 -0
  189. package/src/api/genAiInference.ts +47 -4
  190. package/src/api/workflows.ts +100 -5
  191. package/src/api/workspace-ai.ts +83 -0
  192. package/src/api/workspaceManager.ts +25 -10
  193. package/src/api-addresses.ts +113 -38
  194. package/src/apis-itau.json +241 -0
  195. package/src/apis.json +17 -1
  196. package/src/client/account-asset-manager.ts +100 -0
  197. package/src/client/account.ts +71 -40
  198. package/src/client/agent-tools.ts +111 -18
  199. package/src/client/ai.ts +237 -24
  200. package/src/client/api-management.ts +7 -2
  201. package/src/client/cloud-platform-horizon.ts +12 -4
  202. package/src/client/cloud-platform.ts +101 -27
  203. package/src/client/code-shift.ts +196 -8
  204. package/src/client/data-integration.ts +28 -1
  205. package/src/client/discover.ts +238 -5
  206. package/src/client/edp-bfa.ts +24 -0
  207. package/src/client/notification.ts +6 -1
  208. package/src/client/secrets.ts +1 -1
  209. package/src/client/types.ts +55 -9
  210. package/src/client/workspace-ai.ts +37 -26
  211. package/src/client/workspace-manager.ts +31 -2
  212. package/src/error/DefaultAPIError.ts +5 -5
  213. package/src/error/StackspotAPIError.ts +4 -4
  214. package/src/error/dictionary/accountAssetManager.ts +12 -0
  215. package/src/error/dictionary/cloud-platform.ts +80 -12
  216. package/src/error/dictionary/workspace-ai.ts +10 -0
  217. package/src/index.ts +6 -3
  218. package/src/network/NetworkClient.ts +18 -6
  219. package/src/network/types.ts +3 -0
  220. package/src/utils/StreamedJson.tsx +19 -4
@@ -1,5 +1,5 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { commit, committedNotifications, defaults, findAll } from '../api/notification'
2
+ import { commit, committedNotifications, defaults, findAll, uncommit } from '../api/notification'
3
3
  import { DefaultAPIError } from '../error/DefaultAPIError'
4
4
  import { baseDictionary } from '../error/dictionary/base'
5
5
  import { StackspotAPIError } from '../error/StackspotAPIError'
@@ -27,6 +27,11 @@ class NotificationClient extends ReactQueryNetworkClient {
27
27
  * Mark a notification as committed (mark as read)
28
28
  */
29
29
  commit = this.mutation(commit)
30
+ /**
31
+ * Mark a notification as uncommitted (mark as unread)
32
+ */
33
+ uncommit = this.mutation(uncommit)
34
+
30
35
  }
31
36
 
32
37
  export const notificationClient = new NotificationClient()
@@ -1,11 +1,11 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
2
 
3
+ import { getApiAddresses } from '../api-addresses'
3
4
  import { createKey, defaults, deleteKey, deleteSecretValue, editKey, encrypt, getAll1, getAvailability, updateSecretValue } from '../api/secrets'
4
5
  import { DefaultAPIError } from '../error/DefaultAPIError'
5
6
  import { secretsDictionary } from '../error/dictionary/secrets'
6
7
  import { StackspotAPIError } from '../error/StackspotAPIError'
7
8
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
8
- import { getApiAddresses } from '../api-addresses'
9
9
 
10
10
  class SecretClient extends ReactQueryNetworkClient {
11
11
  constructor() {
@@ -185,6 +185,7 @@ export interface FixedChatRequest extends ChatRequest {
185
185
  stackspot_ai_version?: string,
186
186
  os?: string,
187
187
  upload_ids?: string[],
188
+ selected_model_id?: string,
188
189
  },
189
190
  }
190
191
 
@@ -245,6 +246,8 @@ export interface ChatAgentTool {
245
246
  image?: string,
246
247
  input?: string,
247
248
  output?: string,
249
+ goal?: string,
250
+ status?: 'running' | 'success' | 'error',
248
251
  }
249
252
 
250
253
  export interface ChatStepAttempt {
@@ -256,8 +259,8 @@ export interface ChatStepAttempt {
256
259
 
257
260
  export interface BaseChatStep {
258
261
  id: string,
259
- type: 'planning' | 'step' | 'answer',
260
- status: 'pending' | 'running' | 'success' | 'error',
262
+ type: 'planning' | 'step' | 'answer' | 'tool',
263
+ status: 'pending' | 'running' | 'success' | 'error' | 'awaiting_approval',
261
264
  /**
262
265
  * Duration in seconds.
263
266
  */
@@ -266,9 +269,24 @@ export interface BaseChatStep {
266
269
 
267
270
  export interface PlanningChatStep extends BaseChatStep {
268
271
  type: 'planning',
269
- status: 'success',
272
+ status: 'success' | 'awaiting_approval',
270
273
  steps: string[],
271
274
  goal: string,
275
+ user_question?: string,
276
+ }
277
+
278
+ export interface ToolChatStep extends BaseChatStep {
279
+ type: 'tool',
280
+ status: 'running' | 'success' | 'error' | 'awaiting_approval',
281
+ /**
282
+ * Each step might attempt to run for multiple times, with different inputs and outputs. If first attempt succeeds, this array will have
283
+ * only one element.
284
+ *
285
+ * This array never has less than one element, despite the step's status.
286
+ */
287
+ attempts: ChatStepAttempt[],
288
+ input?: Record<string, any>,
289
+ user_question?: string,
272
290
  }
273
291
 
274
292
  export interface StepChatStep extends BaseChatStep {
@@ -288,17 +306,19 @@ export interface AnswerChatStep extends BaseChatStep {
288
306
  type: 'answer',
289
307
  }
290
308
 
291
- export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep
309
+ export type ChatStep = PlanningChatStep | StepChatStep | AnswerChatStep | ToolChatStep
292
310
 
293
311
  export interface BaseAgentInfo {
294
- type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer',
295
- action: 'start' | 'end',
312
+ type: 'chat' | 'planning' | 'step' | 'tool' | 'final_answer' | 'tool_calls',
313
+ action: 'start' | 'end' | 'awaiting_approval',
296
314
  duration?: number,
315
+ id?: string,
297
316
  }
298
317
 
299
318
  export interface AgentTool {
300
319
  tool_id: string,
301
320
  tool_execution_id: string,
321
+ goal: string,
302
322
  }
303
323
 
304
324
  export interface PlanningAgentInfo extends BaseAgentInfo {
@@ -311,6 +331,7 @@ export interface PlanningAgentInfo extends BaseAgentInfo {
311
331
  goal: string,
312
332
  tools?: AgentTool[],
313
333
  }[],
334
+ user_question?: string,
314
335
  },
315
336
  }
316
337
 
@@ -326,6 +347,8 @@ export interface ToolAgentInfo extends BaseAgentInfo {
326
347
  input?: any,
327
348
  attempt: number,
328
349
  output?: string,
350
+ user_question?: string,
351
+ tool_id: string,
329
352
  },
330
353
  }
331
354
 
@@ -333,16 +356,39 @@ export interface GenericAgentInfo extends BaseAgentInfo {
333
356
  type: 'chat' | 'final_answer',
334
357
  }
335
358
 
336
- export type AgentInfo = GenericAgentInfo | PlanningAgentInfo | StepAgentInfo | ToolAgentInfo
359
+ export interface ToolCallsAgentInfo extends BaseAgentInfo {
360
+ type: 'tool_calls',
361
+ data?: {
362
+ tools?: string[],
363
+ duration?: number,
364
+ },
365
+ }
366
+
367
+ export type AgentInfo = GenericAgentInfo | PlanningAgentInfo | StepAgentInfo | ToolAgentInfo | ToolCallsAgentInfo
337
368
 
338
369
  export interface FixedChatResponse extends ChatResponse3 {
339
370
  agent_info: AgentInfo,
340
371
  tools?: string[],
341
372
  }
373
+ export interface OpportunitiesPMAgent {
374
+ title: string,
375
+ description: string,
376
+ }
377
+
378
+ export type HypothesisPMAgent = OpportunitiesPMAgent
342
379
 
380
+ export type PrfaqPMAgent = {
381
+ title: string,
382
+ content: string,
383
+ }
343
384
  export interface ChatResponseWithSteps extends FixedChatResponse {
344
385
  steps: ChatStep[],
345
386
  }
387
+ export interface ChatResponseWithPMResources {
388
+ opportunities?: OpportunitiesPMAgent[],
389
+ hypothesis?: HypothesisPMAgent[],
390
+ prfaq?: PrfaqPMAgent,
391
+ }
346
392
 
347
393
  export type OazapftsFunction<Variables = any, Result = any> = (variables: Variables, opts?: RequestOpts) => Promise<Result>
348
394
 
@@ -358,12 +404,12 @@ export type FixVariables<
358
404
 
359
405
  export type ReplaceResult<T extends (...args: any[]) => Promise<any>, Fix> = (...args: Parameters<T>) => Promise<Fix>
360
406
 
361
- export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'> {
407
+ export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'> {
362
408
  builtIn?: boolean,
363
409
  spaceName?: string,
364
410
  conversation_starter?: string[] | null,
365
411
  avatar?: string | null | undefined,
366
- }
412
+ }
367
413
 
368
414
  export type AgentVisibilityLevel = AgentVisibilityLevelEnum | VisibilityLevelEnum
369
415
 
@@ -1,9 +1,10 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { AgentResponse } from '../api/agent'
2
+ import { getApiAddresses } from '../api-addresses'
3
3
  import { CustomToolkitResponse } from '../api/agent-tools'
4
4
  import { GetAiStackResponse, KnowledgeSourceItemResponse, QuickCommandResponse } from '../api/ai'
5
5
  import {
6
6
  addContentV1WorkspacesWorkspaceIdContentTypePost,
7
+ addContentV2WorkspacesWorkspaceIdContentTypePost,
7
8
  addFavoriteV1WorkspacesWorkspaceIdFavoritePost,
8
9
  addPermissionV1ResourceTypeResourceTypeResourcesResourceIdentifierPatch,
9
10
  addPermissionV1WorkspacesWorkspaceIdPermissionsPatch,
@@ -13,7 +14,6 @@ import {
13
14
  deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete,
14
15
  deleteWorkspaceV1WorkspacesWorkspaceIdDelete,
15
16
  getWorkspaceByIdV1WorkspacesIdGet,
16
- HttpValidationError,
17
17
  listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet,
18
18
  listAllContentsV1WorkspacesContentsContentTypeGet,
19
19
  listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet,
@@ -25,11 +25,12 @@ import {
25
25
  updateWorkspaceV1WorkspacesWorkspaceIdPatch,
26
26
  useShareableLinkV1ShareShareIdPatch,
27
27
  } from '../api/workspace-ai'
28
+ import { DefaultAPIError } from '../error/DefaultAPIError'
29
+ import { wksAiDictionary } from '../error/dictionary/workspace-ai'
28
30
  import { StackspotAPIError } from '../error/StackspotAPIError'
29
31
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
30
32
  import { removeAuthorizationParam } from '../utils/remove-authorization-param'
31
- import { FixedAddResourceToWorkspaceAi, FixedWorkspaceAiPermissions, ReplaceResult } from './types'
32
- import { getApiAddresses } from '../api-addresses'
33
+ import { AgentResponseWithBuiltIn, FixedAddResourceToWorkspaceAi, FixedWorkspaceAiPermissions, ReplaceResult } from './types'
33
34
 
34
35
  class WorkspaceAiClient extends ReactQueryNetworkClient {
35
36
  constructor() {
@@ -37,12 +38,7 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
37
38
  }
38
39
 
39
40
  protected buildStackSpotError(error: HttpError): StackspotAPIError {
40
- return new StackspotAPIError({
41
- status: error.status,
42
- headers: error.headers,
43
- stack: error.stack,
44
- message: (error.data as HttpValidationError | undefined)?.detail?.map(d => d.msg)?.join('\n'),
45
- })
41
+ return new DefaultAPIError(error.data, error.status, wksAiDictionary, error.headers)
46
42
  }
47
43
 
48
44
  createWorkspaceAi = this.mutation(removeAuthorizationParam(createWorkspaceV1WorkspacesPost))
@@ -50,8 +46,9 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
50
46
  workspaceAi = this.query(removeAuthorizationParam(getWorkspaceByIdV1WorkspacesIdGet))
51
47
  updateWorkspaceAi = this.mutation(removeAuthorizationParam(updateWorkspaceV1WorkspacesWorkspaceIdPatch))
52
48
  deleteWorkspaceAi = this.mutation(removeAuthorizationParam(deleteWorkspaceV1WorkspacesWorkspaceIdDelete))
53
-
49
+
54
50
  /**
51
+ * @deprecated
55
52
  * Adds a resource to the Spot.
56
53
  */
57
54
  addResourceTypeToWorkspaceAi = this.mutation({
@@ -65,6 +62,20 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
65
62
  permission: this.createPermissionFunctionFor(addContentV1WorkspacesWorkspaceIdContentTypePost),
66
63
  })
67
64
 
65
+ /**
66
+ * V2 for adding a resource to the Spot.
67
+ */
68
+ addResourceTypeV2ToSpot = this.mutation({
69
+ name: 'addResourceTypeToWorkspaceAi',
70
+ request: (
71
+ signal,
72
+ variables: Omit<Parameters<typeof addContentV2WorkspacesWorkspaceIdContentTypePost>[0], 'authorization'>,
73
+ ) =>
74
+ addContentV2WorkspacesWorkspaceIdContentTypePost({ ...variables, authorization: '' },
75
+ { signal }) as unknown as Promise<FixedAddResourceToWorkspaceAi>,
76
+ permission: this.createPermissionFunctionFor(addContentV2WorkspacesWorkspaceIdContentTypePost),
77
+ })
78
+
68
79
  /**
69
80
  * Lists all the knowledge sources in a Spot.
70
81
  */
@@ -73,7 +84,7 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
73
84
  request: (
74
85
  signal,
75
86
  variables: Omit<Parameters<typeof listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet>[0],
76
- 'authorization' | 'contentType'>,
87
+ 'authorization' | 'contentType'>,
77
88
  ) =>
78
89
  listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet({ ...variables, contentType: 'knowledge_source', authorization: '' },
79
90
  { signal }) as unknown as Promise<KnowledgeSourceItemResponse[]>,
@@ -88,7 +99,7 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
88
99
  request: (
89
100
  signal,
90
101
  variables: Omit<Parameters<typeof listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet>[0],
91
- 'authorization' | 'contentType'>,
102
+ 'authorization' | 'contentType'>,
92
103
  ) =>
93
104
  listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet({ ...variables, contentType: 'stack', authorization: '' },
94
105
  { signal }) as unknown as Promise<GetAiStackResponse[]>,
@@ -103,7 +114,7 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
103
114
  request: (
104
115
  signal,
105
116
  variables: Omit<Parameters<typeof listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet>[0],
106
- 'authorization' | 'contentType'>,
117
+ 'authorization' | 'contentType'>,
107
118
  ) =>
108
119
  listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet({ ...variables, contentType: 'quick_command', authorization: '' },
109
120
  { signal }) as unknown as Promise<QuickCommandResponse[]>,
@@ -118,10 +129,10 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
118
129
  request: (
119
130
  signal,
120
131
  variables: Omit<Parameters<typeof listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet>[0],
121
- 'authorization' | 'contentType'>,
132
+ 'authorization' | 'contentType'>,
122
133
  ) =>
123
134
  listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet({ ...variables, contentType: 'agent', authorization: '' },
124
- { signal }) as unknown as Promise<AgentResponse[]>,
135
+ { signal }) as unknown as Promise<AgentResponseWithBuiltIn[]>,
125
136
  permission: this.createPermissionFunctionFor(listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet),
126
137
  })
127
138
 
@@ -133,7 +144,7 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
133
144
  request: (
134
145
  signal,
135
146
  variables: Omit<Parameters<typeof listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet>[0],
136
- 'authorization' | 'contentType'>,
147
+ 'authorization' | 'contentType'>,
137
148
  ) =>
138
149
  listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet({ ...variables, contentType: 'toolkit', authorization: '' },
139
150
  { signal }) as unknown as Promise<CustomToolkitResponse[]>,
@@ -144,7 +155,7 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
144
155
  removeContentV1WorkspacesWorkspaceIdContentTypeContentIdDelete))
145
156
  addPermissionToWorkspaceAi = this.mutation(removeAuthorizationParam(addPermissionV1WorkspacesWorkspaceIdPermissionsPatch))
146
157
  removePermissionToWorkspaceAi = this.mutation(removeAuthorizationParam(removePermissionV1WorkspacesWorkspaceIdPermissionsDelete))
147
-
158
+
148
159
  /**
149
160
  * Get group of permission on workspace AI
150
161
  * @param search can be used to search by name
@@ -158,24 +169,24 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
158
169
  * Adds the resource of type Workspace AI to the list of favorites.
159
170
  */
160
171
  addFavoriteWorkspaceAi = this.mutation(removeAuthorizationParam(addFavoriteV1WorkspacesWorkspaceIdFavoritePost))
161
-
172
+
162
173
  /**
163
174
  * Removes the resource of type Workspace AI from the list of favorites.
164
175
  */
165
- removeFavoriteWorkspaceAi = this.mutation(removeAuthorizationParam(deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete))
176
+ removeFavoriteWorkspaceAi = this.mutation(removeAuthorizationParam(deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete))
166
177
 
167
178
  /**
168
179
  * Gets all content from all workspaces to which the user has permissions.
169
180
  */
170
- workspacesContentsByType = this.query(removeAuthorizationParam(listAllContentsV1WorkspacesContentsContentTypeGet))
181
+ workspacesContentsByType = this.query(removeAuthorizationParam(listAllContentsV1WorkspacesContentsContentTypeGet))
171
182
  /**
172
183
  * Get a generated link to share a spot
173
184
  */
174
- generateShareSpotLink = this.mutation(removeAuthorizationParam(createShareableLinkV1WorkspacesWorkspaceIdSharePost))
185
+ generateShareSpotLink = this.mutation(removeAuthorizationParam(createShareableLinkV1WorkspacesWorkspaceIdSharePost))
175
186
  /**
176
187
  * Get a shareable link from a spot
177
188
  */
178
- shareableLink = this.mutation(removeAuthorizationParam(useShareableLinkV1ShareShareIdPatch))
189
+ shareableLink = this.mutation(removeAuthorizationParam(useShareableLinkV1ShareShareIdPatch))
179
190
  /**
180
191
  * Add permission to resource
181
192
  */
@@ -183,13 +194,13 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
183
194
  /**
184
195
  * Remove permission to resource
185
196
  */
186
- removePermissionResource =
197
+ removePermissionResource =
187
198
  this.mutation(removeAuthorizationParam(removePermissionV1ResourceTypeResourceTypeResourcesResourceIdentifierDelete))
188
199
  /**
189
200
  * List members with permission to resource
190
201
  */
191
- listMembersResource =
202
+ listMembersResource =
192
203
  this.infiniteQuery(removeAuthorizationParam(listMembersV1ResourceTypeResourceTypeResourcesResourceIdentifierMembersGet))
193
- }
204
+ }
194
205
 
195
206
  export const workspaceAiClient = new WorkspaceAiClient()
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable max-len */
2
2
  import { HttpError } from '@oazapfts/runtime'
3
+ import { getApiAddresses } from '../api-addresses'
3
4
  import {
4
5
  accountApplicationControllergetAccountApplicationPage,
5
6
  accountApplicationControllergetAccountApplicationsFilters,
@@ -20,6 +21,7 @@ import {
20
21
  applicationControllergetApplicationLinks,
21
22
  applicationControllergetApplications,
22
23
  applicationControllerregistryAppDestroy,
24
+ availableConnectionInterfaceControllergetAvailableConnectionInterfaces,
23
25
  contentWorkflowControllercreateApplicationThroughWorkflow,
24
26
  contentWorkflowControllercreateSharedInfraThroughWorkflow,
25
27
  contextActionControllergetStackActionInputsInAccountContext,
@@ -28,6 +30,8 @@ import {
28
30
  contextControllerclearActionContextInWorkspace,
29
31
  contextControllerclearPluginContextInAccount,
30
32
  contextControllerclearPluginContextInWorkspace,
33
+ contextControllerclearWorkflowContextInAccount,
34
+ contextControllerclearWorkflowContextInWorkspace,
31
35
  contextControllerimportContextInAccount,
32
36
  contextControllerimportContextInWorkspace,
33
37
  contextControllerupsertAccountActionsInputContext,
@@ -38,6 +42,7 @@ import {
38
42
  contextControllerupsertWorkspaceActionsInputContext,
39
43
  contextWorkflowControllergetAccountWorkflowInputs,
40
44
  contextWorkflowControllergetConsolidatedWorkflowInputs,
45
+ contextWorkflowControllergetWorkspaceWorkflowInputs,
41
46
  contextgetAccountPluginInputs,
42
47
  contextgetConsolidatedPluginInputs,
43
48
  contextgetConsolidatedPluginInputsWithConnectionInterfaces,
@@ -63,6 +68,7 @@ import {
63
68
  workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType,
64
69
  workspaceControllerdelete,
65
70
  workspaceControllergetWorkspaces,
71
+ workspaceControllergetWorkspacesSummary,
66
72
  workspaceStackControlleraddStacksInWorkspace,
67
73
  workspaceStackControllerdeleteStacksInWorkspace,
68
74
  workspaceStackControllerlistStacks,
@@ -79,7 +85,6 @@ import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
79
85
  import { contentClient } from './content'
80
86
  import { FixedFullInputContextResponse, FixedPaginatedActivityResponse, FixedPluginForAppCreationV2Response, FixedWorkflowForCreationResponse, ReplaceResult } from './types'
81
87
  import { workspaceClient } from './workspace'
82
- import { getApiAddresses } from '../api-addresses'
83
88
 
84
89
  class WorkspaceManagerClient extends ReactQueryNetworkClient {
85
90
  constructor() {
@@ -153,6 +158,12 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
153
158
  */
154
159
  workflowDataWithInputsInWorkspace = this.query(contextWorkflowControllergetConsolidatedWorkflowInputs as
155
160
  unknown as ReplaceResult<typeof contextWorkflowControllergetConsolidatedWorkflowInputs, FixedWorkflowForCreationResponse>)
161
+
162
+ /**
163
+ * Gets workflow inputs in a workspace stack
164
+ */
165
+ workflowInputsInWorkspace = this.query(contextWorkflowControllergetWorkspaceWorkflowInputs as unknown as ReplaceResult<typeof contextWorkflowControllergetWorkspaceWorkflowInputs, FixedWorkflowForCreationResponse>)
166
+
156
167
  /**
157
168
  * Gets workflow inputs in an account stack
158
169
  */
@@ -531,6 +542,17 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
531
542
  permission: async ({ stackVersionId, workflowVersionId }: Parameters<typeof contextControllerupsertWorkflowAccountContext>[0]) =>
532
543
  workspaceClient.saveContextInAccount.isAllowed({ $type: 'workflow', stackVersionId, externalId: workflowVersionId }),
533
544
  })
545
+
546
+ /**
547
+ * Clear stack workflow context in account
548
+ */
549
+ clearInputContextWorkflowAccount = this.mutation(contextControllerclearWorkflowContextInAccount)
550
+
551
+ /**
552
+ * Clear stack workflow context in workspace
553
+ */
554
+ clearInputContextWorkflowWorkspace = this.mutation(contextControllerclearWorkflowContextInWorkspace)
555
+
534
556
  /**
535
557
  * Get Stacks with context
536
558
  */
@@ -547,7 +569,14 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
547
569
  * Get list of versions with context of stack
548
570
  */
549
571
  getStacksVersionWithContext = this.query(accountStackControllerlistVersionsWithContext)
550
-
572
+ /**
573
+ * Receives a list of workspace id's and returns that workspaces detailed
574
+ */
575
+ workspacesFilterById = this.mutation(workspaceControllergetWorkspacesSummary)
576
+ /**
577
+ * Gets available connection interfaces from a workspace
578
+ */
579
+ availableConnectionInterfaces = this.query(availableConnectionInterfaceControllergetAvailableConnectionInterfaces)
551
580
  }
552
581
 
553
582
  export const workspaceManagerClient = new WorkspaceManagerClient()
@@ -1,4 +1,4 @@
1
- import { Dictionary, Language } from '@stack-spot/portal-translate'
1
+ import { Dictionary } from '@stack-spot/portal-translate'
2
2
  import { every, isString } from 'lodash'
3
3
  import { actionDetails } from './dictionary/action-details'
4
4
  import { baseDictionary } from './dictionary/base'
@@ -24,7 +24,7 @@ const detailsDictionary = {
24
24
  actionapi: actionDetails,
25
25
  }
26
26
 
27
- function getTitle(status: number, raw: ErrorResponse, dictionary: Dictionary, language: Language) {
27
+ function getTitle(status: number, raw: ErrorResponse, dictionary: Dictionary, language: 'pt' | 'en') {
28
28
  if (ignoredTitleErrorCodes.includes(raw.code)) return ' '
29
29
  if (dictionary[language][raw.code]) return dictionary[language][raw.code]
30
30
  if (raw.details && !ignoredDescriptions.includes(raw.details)) return raw.details
@@ -35,8 +35,8 @@ function getValues(detail: ValidationDetails) {
35
35
  return detail.values && every(detail.values, isString) ? `\n${detail.values.join('\n')}` : ''
36
36
  }
37
37
 
38
- function getSuggestedMessages(suggestedMessage: ErrorResponse['suggestedMessages'] | null | undefined, language?: Language) {
39
- const parseLanguage: Record<Language, LanguageSuggestedMessageKeys> = { pt: 'ptBr', en: 'enUs' }
38
+ function getSuggestedMessages(suggestedMessage: ErrorResponse['suggestedMessages'] | null | undefined, language?: 'pt' | 'en') {
39
+ const parseLanguage: Record<'pt' | 'en', LanguageSuggestedMessageKeys> = { pt: 'ptBr', en: 'enUs' }
40
40
  return suggestedMessage?.[parseLanguage?.[language || 'en']]
41
41
  }
42
42
 
@@ -60,7 +60,7 @@ export function interpolateErrors(message: string, values: string[], fieldValues
60
60
  }
61
61
 
62
62
 
63
- function createMessage(status: number, raw: ErrorResponse, dictionary: Dictionary, language?: Language): ErrorDetailsProperties {
63
+ function createMessage(status: number, raw: ErrorResponse, dictionary: Dictionary, language?: 'pt' | 'en'): ErrorDetailsProperties {
64
64
  const title = getTitle(status, raw, dictionary, language || 'en')
65
65
  const api = raw.code?.split(/[-_]/)[0]
66
66
  const dictDetails = (detailsDictionary[api?.toLowerCase() as keyof typeof detailsDictionary] ?? {})[language || 'en']
@@ -1,6 +1,6 @@
1
- import { Language, getLanguage } from '@stack-spot/portal-translate'
1
+ import { getLanguage, ptEn } from '@stack-spot/portal-translate'
2
2
 
3
- export type InternationalizedMessage = (language: Language) => string | ErrorDetailsProperties
3
+ export type InternationalizedMessage = (language: 'pt' | 'en') => string | ErrorDetailsProperties
4
4
 
5
5
  export interface ErrorDetailsProperties {
6
6
  /**
@@ -81,7 +81,7 @@ export class StackspotAPIError extends Error {
81
81
  * @param language
82
82
  * @returns an error message
83
83
  */
84
- translate(language: Language = getLanguage()): string {
84
+ translate(language = getLanguage(ptEn)): string {
85
85
  const unknown = language === 'en' ? 'unknown error' : 'erro desconhecido'
86
86
 
87
87
  const error = this.intl?.(language)
@@ -89,7 +89,7 @@ export class StackspotAPIError extends Error {
89
89
  return message ?? this.message ?? this.code ?? (this.status === 0 ? unknown : `${this.status}`)
90
90
  }
91
91
 
92
- translateDetails(language: Language = getLanguage()): ErrorDetailsProperties {
92
+ translateDetails(language = getLanguage(ptEn)): ErrorDetailsProperties {
93
93
  const unknown = language === 'en' ? 'unknown error' : 'erro desconhecido'
94
94
  const errorMessage = this.intl?.(language)
95
95
  if (typeof errorMessage === 'string')
@@ -0,0 +1,12 @@
1
+ import { Dictionary } from '@stack-spot/portal-translate'
2
+
3
+ export const accountAssetManagerDictionary = {
4
+ en: {
5
+ FOLDER_BAD_REQUEST_ERROR: 'The provided data is invalid or inconsistent.',
6
+ FOLDER_ALREADY_EXISTS: 'A folder with this name already exists.',
7
+ },
8
+ pt: {
9
+ FOLDER_BAD_REQUEST_ERROR: 'Os dados informados estão inválidos ou inconsistentes.',
10
+ FOLDER_ALREADY_EXISTS: 'Já existe uma pasta com esse nome.',
11
+ },
12
+ } satisfies Dictionary
@@ -2,19 +2,87 @@ import { Dictionary } from '@stack-spot/portal-translate'
2
2
 
3
3
  export const scfDictionary = {
4
4
  en: {
5
- SCF_CIDR_CREATION_ERROR: 'Error creating CIDR.',
6
- SCF_CIDR_RANGE_CONFLICT: 'The specified CIDR conflicts with an existing CIDR. {1}',
7
- SCF_FOLDER_CREATION_ERROR: 'Error creating folder.',
8
- SCF_FOLDER_ALREADY_EXISTS_ERROR: 'There is already a folder {1} within that foundation.',
9
- SCF_CIDR_FOUNDATION_RESERVED: 'The CIDR block {1} has been reserved for Foundation use.',
10
- SCF_CIDR_NOTATION_INVALID: 'The CIDR block {1} is not a valid CIDR notation. Expected format: {2}.',
5
+ SCF_CERTIFICATE_ERROR: 'Certificate operation failed.',
6
+ SCF_CERTIFICATE_NOT_FOUND_ERROR: 'Certificate with ID {1} not found.',
7
+ SCF_CIDR_ERROR: 'CIDR operation failed.',
8
+ SCF_CIDR_RANGE_CONFLICT: 'CIDR range {1} conflicts with an existing range.',
9
+ SCF_CIDR_FOUNDATION_RESERVED: 'CIDR range {1} conflicts with the Foundation\'s reserved range.',
10
+ SCF_CIDR_NOT_FOUND_ERROR: 'CIDR with ID {1} not found.',
11
+ SCF_CONTROL_TOWER_BUSY_ERROR: 'Foundation\'s Control Tower is currently busy. Please try again later.',
12
+ SCF_DNS_RECORD_ERROR: 'DNS Record operation failed.',
13
+ SCF_DNS_RECORD_NOT_FOUND_ERROR: 'DNS Record with ID {1} not found.',
14
+ SCF_DNS_ZONE_ERROR: 'DNS Zone operation failed.',
15
+ SCF_DNS_ZONE_NOT_FOUND_ERROR: 'DNS Zone with ID {1} not found.',
16
+ SCF_DNS_ZONE_NOT_READY_ERROR: 'DNS Zone with ID {1} not ready.',
17
+ SCF_FOLDER_ALREADY_EXISTS_ERROR: 'A folder named {1} already exists.',
18
+ SCF_FOLDER_ERROR: 'Folder operation failed.',
19
+ SCF_FOLDER_NOT_FOUND_ERROR: 'Folder with ID {1} not found.',
20
+ SCF_FOLDER_NOT_READY_ERROR: 'Folder with ID {1} not ready.',
21
+ SCF_FOUNDATION_ERROR: 'Foundation operation failed.',
22
+ SCF_FOUNDATION_NOT_FOUND_ERROR: 'Foundation with ID {1} not found.',
23
+ SCF_FOUNDATION_NOT_READY_ERROR: 'Foundation with ID {1} not ready.',
24
+ SCF_INBOUND_ERROR: 'Inbound operation failed.',
25
+ SCF_INVALID_REGEX_ERROR: 'The value {1} is invalid.',
26
+ SCF_MASTER_ACCOUNT_ERROR: 'Master Account operation failed.',
27
+ SCF_MASTER_ACCOUNT_NOT_FOUND_ERROR: 'No Master Account available for Foundation creation.',
28
+ SCF_NAMESPACE_CREATION_ERROR: 'An error occurred while creating the Kubernetes namespace.',
29
+ SCF_NETWORK_CONNECTION_ERROR: 'Network Connection operation failed.',
30
+ SCF_NETWORK_ERROR: 'Network operation failed.',
31
+ SCF_NETWORK_NOT_FOUND_ERROR: 'Network with ID {1} not found.',
32
+ SCF_NETWORK_NOT_READY_ERROR: 'Network with ID {1} not ready.',
33
+ SCF_PARENT_FOLDER_NOT_READY_ERROR: 'Parent Folder with ID {1} not ready.',
34
+ SCF_PROJECT_ERROR: 'Project operation failed.',
35
+ SCF_PROJECT_NOT_FOUND_ERROR: 'Project with ID {1} not found.',
36
+ SCF_PROJECT_NOT_READY_ERROR: 'Project with ID {1} not ready.',
37
+ SCF_UNKNOWN_ERROR: 'An unexpected error has occurred.',
38
+ SCF_VPN_CONFIGURATION_NOT_FOUND_ERROR: 'Configuration for VPN with ID {1} not found.',
39
+ SCF_VPN_ERROR: 'VPN operation failed.',
40
+ SCF_VPN_NOT_FOUND_ERROR: 'VPN with ID {1} not found.',
41
+ SCF_VPN_NOT_READY_ERROR: 'VPN with ID {1} not ready.',
42
+ SCF_DNS_ZONE_NOT_EMPTY_ERROR: 'DNS Zone with ID {1} is not empty.',
43
+ SCF_FOLDER_NOT_EMPTY_ERROR: 'Folder with ID {1} is not empty.',
44
+ SCF_PROJECT_NOT_EMPTY_ERROR: 'Project with ID {1} is not empty.',
11
45
  },
12
46
  pt: {
13
- SCF_CIDR_CREATION_ERROR: 'Erro ao criar CIDR.',
14
- SCF_CIDR_RANGE_CONFLICT: 'O CIDR especificado conflita com um CIDR já existente: {1}.',
15
- SCF_FOLDER_CREATION_ERROR: 'Erro ao criar pasta.',
16
- SCF_FOLDER_ALREADY_EXISTS_ERROR: ' existe uma pasta {1} dentro dessa fundação.',
17
- SCF_CIDR_FOUNDATION_RESERVED: 'O bloco CIDR {1} foi reservado para uso da Fundação.',
18
- SCF_CIDR_NOTATION_INVALID: 'O bloco CIDR {1} não é uma notação CIDR válida. Formato esperado: {2}.',
47
+ SCF_CERTIFICATE_ERROR: 'Falha na operação de Certificado.',
48
+ SCF_CERTIFICATE_NOT_FOUND_ERROR: 'Certificado com ID {1} não encontrado.',
49
+ SCF_CIDR_ERROR: 'Falha na operação de CIDR.',
50
+ SCF_CIDR_RANGE_CONFLICT: 'O intervalo CIDR {1} conflita com um intervalo existente.',
51
+ SCF_CIDR_FOUNDATION_RESERVED: 'O intervalo CIDR {1} conflita com o intervalo reservado da Fundação.',
52
+ SCF_CIDR_NOT_FOUND_ERROR: 'CIDR com ID {1} não encontrado.',
53
+ SCF_CONTROL_TOWER_BUSY_ERROR: 'Control Tower da Fundação está ocupada no momento. Por favor, tente novamente mais tarde.',
54
+ SCF_DNS_RECORD_ERROR: 'Falha na operação de DNS Record.',
55
+ SCF_DNS_RECORD_NOT_FOUND_ERROR: 'DNS Record com ID {1} não encontrado.',
56
+ SCF_DNS_ZONE_ERROR: 'Falha na operação de DNS Zone.',
57
+ SCF_DNS_ZONE_NOT_FOUND_ERROR: 'DNS Zone com ID {1} não encontrada.',
58
+ SCF_DNS_ZONE_NOT_READY_ERROR: 'DNS Zone com ID {1} não está pronta.',
59
+ SCF_FOLDER_ALREADY_EXISTS_ERROR: 'Uma Pasta com o nome {1} já existe.',
60
+ SCF_FOLDER_ERROR: 'Falha na operação de Pasta.',
61
+ SCF_FOLDER_NOT_FOUND_ERROR: 'Pasta com ID {1} não encontrada.',
62
+ SCF_FOLDER_NOT_READY_ERROR: 'Pasta com ID {1} não está pronta.',
63
+ SCF_FOUNDATION_ERROR: 'Falha na operação da Fundação.',
64
+ SCF_FOUNDATION_NOT_FOUND_ERROR: 'Fundação com ID {1} não encontrada.',
65
+ SCF_FOUNDATION_NOT_READY_ERROR: 'Fundação com ID {1} não está pronta.',
66
+ SCF_INBOUND_ERROR: 'Falha na operação de Inbound.',
67
+ SCF_INVALID_REGEX_ERROR: 'O valor {1} é inválido.',
68
+ SCF_MASTER_ACCOUNT_ERROR: 'Falha na operação da Master Account.',
69
+ SCF_MASTER_ACCOUNT_NOT_FOUND_ERROR: 'Nenhuma Master Account disponível para criação da Fundação.',
70
+ SCF_NAMESPACE_CREATION_ERROR: 'Ocorreu um erro ao criar o namespace no Kubernetes.',
71
+ SCF_NETWORK_CONNECTION_ERROR: 'Falha na operação de Network Connection.',
72
+ SCF_NETWORK_ERROR: 'Falha na operação de Network.',
73
+ SCF_NETWORK_NOT_FOUND_ERROR: 'Network com ID {1} não encontrada.',
74
+ SCF_NETWORK_NOT_READY_ERROR: 'Network com ID {1} não está pronta.',
75
+ SCF_PARENT_FOLDER_NOT_READY_ERROR: 'Pasta pai com ID {1} não está pronta.',
76
+ SCF_PROJECT_ERROR: 'Falha na operação do Projeto.',
77
+ SCF_PROJECT_NOT_FOUND_ERROR: 'Projeto com ID {1} não encontrado.',
78
+ SCF_PROJECT_NOT_READY_ERROR: 'Projeto com ID {1} não está pronto.',
79
+ SCF_UNKNOWN_ERROR: 'Ocorreu um erro inesperado.',
80
+ SCF_VPN_CONFIGURATION_NOT_FOUND_ERROR: 'Configuração para VPN com ID {1} não encontrada.',
81
+ SCF_VPN_ERROR: 'Falha na operação de VPN.',
82
+ SCF_VPN_NOT_FOUND_ERROR: 'VPN com ID {1} não encontrada.',
83
+ SCF_VPN_NOT_READY_ERROR: 'VPN com ID {1} não está pronta.',
84
+ SCF_DNS_ZONE_NOT_EMPTY_ERROR: 'DNS Zone com ID {1} não está vazia.',
85
+ SCF_FOLDER_NOT_EMPTY_ERROR: 'Folder com ID {1} não está vazia.',
86
+ SCF_PROJECT_NOT_EMPTY_ERROR: 'Project com ID {1} não está vazia.',
19
87
  },
20
88
  } satisfies Dictionary
@@ -0,0 +1,10 @@
1
+ import { Dictionary } from '@stack-spot/portal-translate'
2
+
3
+ export const wksAiDictionary = {
4
+ en: {
5
+ AGENT_1105_TOOLKIT_WITH_PERSONAL_SECRET: 'It is not possible to share the agent, as it has a tool with a personal secret. Remove the tool or replace it with an organization secret.',
6
+ },
7
+ pt: {
8
+ AGENT_1105_TOOLKIT_WITH_PERSONAL_SECRET: 'Não é possível compartilhar o agente, pois ele possui uma ferramenta com segredo pessoal. Remova a ferramenta ou substitua por um segredo da organização.',
9
+ },
10
+ } satisfies Dictionary