@iblai/iblai-js 2.67.2 → 2.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/dist/web-containers/source/account-sheet.js +2 -2
  2. package/dist/web-containers/source/account-sheet.js.map +1 -1
  3. package/dist/web-containers/source/account.js +39 -21
  4. package/dist/web-containers/source/account.js.map +1 -1
  5. package/dist/web-containers/source/api/api-field-label.js +14 -0
  6. package/dist/web-containers/source/api/api-field-label.js.map +1 -0
  7. package/dist/web-containers/source/{profile/integration/api-tab → api}/api-key-modal.js +8 -8
  8. package/dist/web-containers/source/api/api-key-modal.js.map +1 -0
  9. package/dist/web-containers/source/api/api-keys-table.js +61 -0
  10. package/dist/web-containers/source/api/api-keys-table.js.map +1 -0
  11. package/dist/web-containers/source/{api-tab → api}/api-token-utils.js +34 -1
  12. package/dist/web-containers/source/api/api-token-utils.js.map +1 -0
  13. package/dist/web-containers/source/{integration/api-tab → api}/constants.js +0 -1
  14. package/dist/web-containers/source/api/constants.js.map +1 -0
  15. package/dist/web-containers/source/{profile/integration/api-tab → api}/create-api-modal.js +19 -26
  16. package/dist/web-containers/source/api/create-api-modal.js.map +1 -0
  17. package/dist/web-containers/source/api/delete-api-modal.js +31 -0
  18. package/dist/web-containers/source/api/delete-api-modal.js.map +1 -0
  19. package/dist/web-containers/source/{api-tab → api}/edit-api-modal.js +34 -28
  20. package/dist/web-containers/source/api/edit-api-modal.js.map +1 -0
  21. package/dist/web-containers/source/api/expiration-date-field.js +35 -0
  22. package/dist/web-containers/source/api/expiration-date-field.js.map +1 -0
  23. package/dist/web-containers/source/api/index.js +30 -0
  24. package/dist/web-containers/source/api/index.js.map +1 -0
  25. package/dist/web-containers/source/{integration/api-tab → api}/token-policy-fields.js +6 -6
  26. package/dist/web-containers/source/api/token-policy-fields.js.map +1 -0
  27. package/dist/web-containers/source/api-field-label.js +14 -0
  28. package/dist/web-containers/source/api-field-label.js.map +1 -0
  29. package/dist/web-containers/source/api-keys-table.js +61 -0
  30. package/dist/web-containers/source/api-keys-table.js.map +1 -0
  31. package/dist/web-containers/source/api-tab/create-api-modal.js +4 -4
  32. package/dist/web-containers/source/api-tab/labels.js +23 -19
  33. package/dist/web-containers/source/api-tab/labels.js.map +1 -1
  34. package/dist/web-containers/source/api-tab.js +15 -20
  35. package/dist/web-containers/source/api-tab.js.map +1 -1
  36. package/dist/web-containers/source/api-token-utils.js +34 -1
  37. package/dist/web-containers/source/api-token-utils.js.map +1 -1
  38. package/dist/web-containers/source/azure-config.js +37 -0
  39. package/dist/web-containers/source/azure-config.js.map +1 -0
  40. package/dist/web-containers/source/azure-model-fields.js +118 -0
  41. package/dist/web-containers/source/azure-model-fields.js.map +1 -0
  42. package/dist/web-containers/source/chat/index.js +5 -0
  43. package/dist/web-containers/source/chat/index.js.map +1 -1
  44. package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js +147 -24
  45. package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js.map +1 -1
  46. package/dist/web-containers/source/components/chat/index.js +5 -0
  47. package/dist/web-containers/source/components/chat/index.js.map +1 -1
  48. package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js +147 -24
  49. package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js.map +1 -1
  50. package/dist/web-containers/source/components/field-info.js +18 -0
  51. package/dist/web-containers/source/components/field-info.js.map +1 -0
  52. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
  53. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
  54. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
  55. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
  56. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
  57. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
  58. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
  59. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
  60. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
  61. package/dist/web-containers/source/components/modals/user-profile-modal.js +4 -4
  62. package/dist/web-containers/source/components/modals/user-profile-modal.js.map +1 -1
  63. package/dist/web-containers/source/components/platform-sidebar/account-sheet.js +2 -2
  64. package/dist/web-containers/source/components/platform-sidebar/account-sheet.js.map +1 -1
  65. package/dist/web-containers/source/components/platform-sidebar/footer.js +15 -14
  66. package/dist/web-containers/source/components/platform-sidebar/footer.js.map +1 -1
  67. package/dist/web-containers/source/components/platform-sidebar/index.js +0 -2
  68. package/dist/web-containers/source/components/platform-sidebar/index.js.map +1 -1
  69. package/dist/web-containers/source/components/profile/account.js +39 -21
  70. package/dist/web-containers/source/components/profile/account.js.map +1 -1
  71. package/dist/web-containers/source/components/profile/api/api-field-label.js +14 -0
  72. package/dist/web-containers/source/components/profile/api/api-field-label.js.map +1 -0
  73. package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-key-modal.js +8 -8
  74. package/dist/web-containers/source/components/profile/api/api-key-modal.js.map +1 -0
  75. package/dist/web-containers/source/components/profile/api/api-keys-table.js +61 -0
  76. package/dist/web-containers/source/components/profile/api/api-keys-table.js.map +1 -0
  77. package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-token-utils.js +34 -1
  78. package/dist/web-containers/source/components/profile/api/api-token-utils.js.map +1 -0
  79. package/dist/web-containers/source/components/profile/{integration/api-tab → api}/constants.js +0 -1
  80. package/dist/web-containers/source/components/profile/api/constants.js.map +1 -0
  81. package/dist/web-containers/source/{integration/api-tab → components/profile/api}/create-api-modal.js +19 -26
  82. package/dist/web-containers/source/components/profile/api/create-api-modal.js.map +1 -0
  83. package/dist/web-containers/source/components/profile/api/delete-api-modal.js +31 -0
  84. package/dist/web-containers/source/components/profile/api/delete-api-modal.js.map +1 -0
  85. package/dist/web-containers/source/components/profile/{integration/api-tab → api}/edit-api-modal.js +34 -28
  86. package/dist/web-containers/source/components/profile/api/edit-api-modal.js.map +1 -0
  87. package/dist/web-containers/source/components/profile/api/expiration-date-field.js +35 -0
  88. package/dist/web-containers/source/components/profile/api/expiration-date-field.js.map +1 -0
  89. package/dist/web-containers/source/components/profile/api/index.js +30 -0
  90. package/dist/web-containers/source/components/profile/api/index.js.map +1 -0
  91. package/dist/web-containers/source/{profile/integration/api-tab → components/profile/api}/token-policy-fields.js +6 -6
  92. package/dist/web-containers/source/components/profile/api/token-policy-fields.js.map +1 -0
  93. package/dist/web-containers/source/components/profile/info-banner.js +3 -1
  94. package/dist/web-containers/source/components/profile/info-banner.js.map +1 -1
  95. package/dist/web-containers/source/components/profile/integration/index.js +17 -38
  96. package/dist/web-containers/source/components/profile/integration/index.js.map +1 -1
  97. package/dist/web-containers/source/components/profile/secrets/index.js +106 -0
  98. package/dist/web-containers/source/components/profile/secrets/index.js.map +1 -0
  99. package/dist/web-containers/source/components/profile/secrets/secrets-list.js +237 -0
  100. package/dist/web-containers/source/components/profile/secrets/secrets-list.js.map +1 -0
  101. package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js +12 -18
  102. package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js.map +1 -1
  103. package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js +5 -4
  104. package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
  105. package/dist/web-containers/source/components/tooltip-icon-button.js +15 -0
  106. package/dist/web-containers/source/components/tooltip-icon-button.js.map +1 -0
  107. package/dist/web-containers/source/components/user-profile-dropdown/index.js +2 -0
  108. package/dist/web-containers/source/components/user-profile-dropdown/index.js.map +1 -1
  109. package/dist/web-containers/source/components/virtual-machine/azure-config.js +37 -0
  110. package/dist/web-containers/source/components/virtual-machine/azure-config.js.map +1 -0
  111. package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js +118 -0
  112. package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js.map +1 -0
  113. package/dist/web-containers/source/components/virtual-machine/credential-options.js +268 -22
  114. package/dist/web-containers/source/components/virtual-machine/credential-options.js.map +1 -1
  115. package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js +14 -8
  116. package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js.map +1 -1
  117. package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js +30 -6
  118. package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js.map +1 -1
  119. package/dist/web-containers/source/components/virtual-machine/secret-rows.js +66 -0
  120. package/dist/web-containers/source/components/virtual-machine/secret-rows.js.map +1 -0
  121. package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js +848 -158
  122. package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js.map +1 -1
  123. package/dist/web-containers/source/connector-dialogs.js +1 -1
  124. package/dist/web-containers/source/constants.js +55 -22
  125. package/dist/web-containers/source/constants.js.map +1 -1
  126. package/dist/web-containers/source/create-api-modal.js +4 -4
  127. package/dist/web-containers/source/credential-options.js +268 -22
  128. package/dist/web-containers/source/credential-options.js.map +1 -1
  129. package/dist/web-containers/source/edit-api-modal.js +34 -28
  130. package/dist/web-containers/source/edit-api-modal.js.map +1 -1
  131. package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
  132. package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
  133. package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
  134. package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js +15 -20
  135. package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js.map +1 -1
  136. package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
  137. package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
  138. package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
  139. package/dist/web-containers/source/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
  140. package/dist/web-containers/source/en.json.js +278 -227
  141. package/dist/web-containers/source/en.json.js.map +1 -1
  142. package/dist/web-containers/source/es.json.js +449 -398
  143. package/dist/web-containers/source/es.json.js.map +1 -1
  144. package/dist/web-containers/source/expiration-date-field.js +16 -10
  145. package/dist/web-containers/source/expiration-date-field.js.map +1 -1
  146. package/dist/web-containers/source/field-info.js +11 -7
  147. package/dist/web-containers/source/field-info.js.map +1 -1
  148. package/dist/web-containers/source/footer.js +15 -14
  149. package/dist/web-containers/source/footer.js.map +1 -1
  150. package/dist/web-containers/source/fr.json.js +457 -406
  151. package/dist/web-containers/source/fr.json.js.map +1 -1
  152. package/dist/web-containers/source/host-port-chip-input.js +14 -8
  153. package/dist/web-containers/source/host-port-chip-input.js.map +1 -1
  154. package/dist/web-containers/source/i18n/messages/en.json.js +278 -227
  155. package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
  156. package/dist/web-containers/source/i18n/messages/es.json.js +449 -398
  157. package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
  158. package/dist/web-containers/source/i18n/messages/fr.json.js +457 -406
  159. package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
  160. package/dist/web-containers/source/i18n/messages/zh.json.js +456 -405
  161. package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
  162. package/dist/web-containers/source/info-banner.js +3 -1
  163. package/dist/web-containers/source/info-banner.js.map +1 -1
  164. package/dist/web-containers/source/integration/index.js +17 -38
  165. package/dist/web-containers/source/integration/index.js.map +1 -1
  166. package/dist/web-containers/source/mcp-tab/connector-dialogs.js +1 -1
  167. package/dist/web-containers/source/mcp-tab/oauth-app-fields.js +2 -2
  168. package/dist/web-containers/source/mcp-tab/oauth-app-fields.js.map +1 -1
  169. package/dist/web-containers/source/messages/en.json.js +278 -227
  170. package/dist/web-containers/source/messages/en.json.js.map +1 -1
  171. package/dist/web-containers/source/messages/es.json.js +449 -398
  172. package/dist/web-containers/source/messages/es.json.js.map +1 -1
  173. package/dist/web-containers/source/messages/fr.json.js +457 -406
  174. package/dist/web-containers/source/messages/fr.json.js.map +1 -1
  175. package/dist/web-containers/source/messages/zh.json.js +456 -405
  176. package/dist/web-containers/source/messages/zh.json.js.map +1 -1
  177. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
  178. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
  179. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
  180. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
  181. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
  182. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
  183. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
  184. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
  185. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
  186. package/dist/web-containers/source/modals/user-profile-modal.js +4 -4
  187. package/dist/web-containers/source/modals/user-profile-modal.js.map +1 -1
  188. package/dist/web-containers/source/network-policies-section.js +5 -4
  189. package/dist/web-containers/source/network-policies-section.js.map +1 -1
  190. package/dist/web-containers/source/network-policy-dialog.js +30 -6
  191. package/dist/web-containers/source/network-policy-dialog.js.map +1 -1
  192. package/dist/web-containers/source/oauth-app-fields.js +2 -2
  193. package/dist/web-containers/source/oauth-app-fields.js.map +1 -1
  194. package/dist/web-containers/source/platform-sidebar/account-sheet.js +2 -2
  195. package/dist/web-containers/source/platform-sidebar/account-sheet.js.map +1 -1
  196. package/dist/web-containers/source/platform-sidebar/footer.js +15 -14
  197. package/dist/web-containers/source/platform-sidebar/footer.js.map +1 -1
  198. package/dist/web-containers/source/platform-sidebar/index.js +0 -2
  199. package/dist/web-containers/source/platform-sidebar/index.js.map +1 -1
  200. package/dist/web-containers/source/profile/account.js +39 -21
  201. package/dist/web-containers/source/profile/account.js.map +1 -1
  202. package/dist/web-containers/source/profile/api/api-field-label.js +14 -0
  203. package/dist/web-containers/source/profile/api/api-field-label.js.map +1 -0
  204. package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/api-key-modal.js +8 -8
  205. package/dist/web-containers/source/profile/api/api-key-modal.js.map +1 -0
  206. package/dist/web-containers/source/profile/api/api-keys-table.js +61 -0
  207. package/dist/web-containers/source/profile/api/api-keys-table.js.map +1 -0
  208. package/dist/web-containers/source/profile/{integration/api-tab → api}/api-token-utils.js +34 -1
  209. package/dist/web-containers/source/profile/api/api-token-utils.js.map +1 -0
  210. package/dist/web-containers/source/{api-tab → profile/api}/constants.js +0 -1
  211. package/dist/web-containers/source/profile/api/constants.js.map +1 -0
  212. package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/create-api-modal.js +19 -26
  213. package/dist/web-containers/source/profile/api/create-api-modal.js.map +1 -0
  214. package/dist/web-containers/source/profile/api/delete-api-modal.js +31 -0
  215. package/dist/web-containers/source/profile/api/delete-api-modal.js.map +1 -0
  216. package/dist/web-containers/source/{integration/api-tab → profile/api}/edit-api-modal.js +34 -28
  217. package/dist/web-containers/source/profile/api/edit-api-modal.js.map +1 -0
  218. package/dist/web-containers/source/profile/api/expiration-date-field.js +35 -0
  219. package/dist/web-containers/source/profile/api/expiration-date-field.js.map +1 -0
  220. package/dist/web-containers/source/profile/api/index.js +30 -0
  221. package/dist/web-containers/source/profile/api/index.js.map +1 -0
  222. package/dist/web-containers/source/{api-tab → profile/api}/token-policy-fields.js +6 -6
  223. package/dist/web-containers/source/profile/api/token-policy-fields.js.map +1 -0
  224. package/dist/web-containers/source/profile/info-banner.js +3 -1
  225. package/dist/web-containers/source/profile/info-banner.js.map +1 -1
  226. package/dist/web-containers/source/profile/integration/index.js +17 -38
  227. package/dist/web-containers/source/profile/integration/index.js.map +1 -1
  228. package/dist/web-containers/source/profile/secrets/index.js +106 -0
  229. package/dist/web-containers/source/profile/secrets/index.js.map +1 -0
  230. package/dist/web-containers/source/profile/secrets/secrets-list.js +237 -0
  231. package/dist/web-containers/source/profile/secrets/secrets-list.js.map +1 -0
  232. package/dist/web-containers/source/profile/virtual-machine-admin/index.js +12 -18
  233. package/dist/web-containers/source/profile/virtual-machine-admin/index.js.map +1 -1
  234. package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js +5 -4
  235. package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
  236. package/dist/web-containers/source/secret-rows.js +66 -0
  237. package/dist/web-containers/source/secret-rows.js.map +1 -0
  238. package/dist/web-containers/source/secrets/index.js +106 -0
  239. package/dist/web-containers/source/secrets/index.js.map +1 -0
  240. package/dist/web-containers/source/secrets/secrets-list.js +237 -0
  241. package/dist/web-containers/source/secrets/secrets-list.js.map +1 -0
  242. package/dist/web-containers/source/secrets-list.js +237 -0
  243. package/dist/web-containers/source/secrets-list.js.map +1 -0
  244. package/dist/web-containers/source/skills-tab/index.js +1 -1
  245. package/dist/web-containers/source/tabs/api-tab/create-api-modal.js +4 -4
  246. package/dist/web-containers/source/tabs/api-tab/labels.js +23 -19
  247. package/dist/web-containers/source/tabs/api-tab/labels.js.map +1 -1
  248. package/dist/web-containers/source/tabs/api-tab.js +15 -20
  249. package/dist/web-containers/source/tabs/api-tab.js.map +1 -1
  250. package/dist/web-containers/source/tabs/mcp-tab/connector-dialogs.js +1 -1
  251. package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js +2 -2
  252. package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
  253. package/dist/web-containers/source/tabs/skills-tab/index.js +1 -1
  254. package/dist/web-containers/source/token-policy-fields.js +6 -6
  255. package/dist/web-containers/source/token-policy-fields.js.map +1 -1
  256. package/dist/web-containers/source/tooltip-icon-button.js +15 -0
  257. package/dist/web-containers/source/tooltip-icon-button.js.map +1 -0
  258. package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
  259. package/dist/web-containers/source/user-profile-dropdown/index.js +2 -0
  260. package/dist/web-containers/source/user-profile-dropdown/index.js.map +1 -1
  261. package/dist/web-containers/source/user-profile-modal.js +4 -4
  262. package/dist/web-containers/source/user-profile-modal.js.map +1 -1
  263. package/dist/web-containers/source/virtual-machine/azure-config.js +37 -0
  264. package/dist/web-containers/source/virtual-machine/azure-config.js.map +1 -0
  265. package/dist/web-containers/source/virtual-machine/azure-model-fields.js +118 -0
  266. package/dist/web-containers/source/virtual-machine/azure-model-fields.js.map +1 -0
  267. package/dist/web-containers/source/virtual-machine/credential-options.js +268 -22
  268. package/dist/web-containers/source/virtual-machine/credential-options.js.map +1 -1
  269. package/dist/web-containers/source/virtual-machine/host-port-chip-input.js +14 -8
  270. package/dist/web-containers/source/virtual-machine/host-port-chip-input.js.map +1 -1
  271. package/dist/web-containers/source/virtual-machine/network-policy-dialog.js +30 -6
  272. package/dist/web-containers/source/virtual-machine/network-policy-dialog.js.map +1 -1
  273. package/dist/web-containers/source/virtual-machine/secret-rows.js +66 -0
  274. package/dist/web-containers/source/virtual-machine/secret-rows.js.map +1 -0
  275. package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js +848 -158
  276. package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js.map +1 -1
  277. package/dist/web-containers/source/virtual-machine-admin/index.js +12 -18
  278. package/dist/web-containers/source/virtual-machine-admin/index.js.map +1 -1
  279. package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js +5 -4
  280. package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js.map +1 -1
  281. package/dist/web-containers/source/virtual-machine-network-section.js +147 -24
  282. package/dist/web-containers/source/virtual-machine-network-section.js.map +1 -1
  283. package/dist/web-containers/source/vm-secret-dialog.js +848 -158
  284. package/dist/web-containers/source/vm-secret-dialog.js.map +1 -1
  285. package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
  286. package/dist/web-containers/source/zh.json.js +456 -405
  287. package/dist/web-containers/source/zh.json.js.map +1 -1
  288. package/package.json +4 -4
  289. package/dist/web-containers/source/api-tab/api-token-utils.js.map +0 -1
  290. package/dist/web-containers/source/api-tab/constants.js.map +0 -1
  291. package/dist/web-containers/source/api-tab/edit-api-modal.js.map +0 -1
  292. package/dist/web-containers/source/api-tab/expiration-date-field.js +0 -29
  293. package/dist/web-containers/source/api-tab/expiration-date-field.js.map +0 -1
  294. package/dist/web-containers/source/api-tab/integration-autogenerated-table.js +0 -42
  295. package/dist/web-containers/source/api-tab/integration-autogenerated-table.js.map +0 -1
  296. package/dist/web-containers/source/api-tab/token-policy-fields.js.map +0 -1
  297. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
  298. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
  299. package/dist/web-containers/source/components/profile/integration/api-tab/api-key-modal.js.map +0 -1
  300. package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js +0 -57
  301. package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js.map +0 -1
  302. package/dist/web-containers/source/components/profile/integration/api-tab/constants.js.map +0 -1
  303. package/dist/web-containers/source/components/profile/integration/api-tab/create-api-modal.js.map +0 -1
  304. package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js +0 -31
  305. package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js.map +0 -1
  306. package/dist/web-containers/source/components/profile/integration/api-tab/edit-api-modal.js.map +0 -1
  307. package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js +0 -29
  308. package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js.map +0 -1
  309. package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
  310. package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
  311. package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js +0 -101
  312. package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js.map +0 -1
  313. package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
  314. package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
  315. package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
  316. package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
  317. package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js +0 -287
  318. package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
  319. package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js +0 -83
  320. package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
  321. package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
  322. package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
  323. package/dist/web-containers/source/create-data-source-modal.js +0 -143
  324. package/dist/web-containers/source/create-data-source-modal.js.map +0 -1
  325. package/dist/web-containers/source/create-llm-modal.js +0 -287
  326. package/dist/web-containers/source/create-llm-modal.js.map +0 -1
  327. package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js +0 -143
  328. package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js.map +0 -1
  329. package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js +0 -46
  330. package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js.map +0 -1
  331. package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
  332. package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
  333. package/dist/web-containers/source/integration/api-tab/api-key-modal.js.map +0 -1
  334. package/dist/web-containers/source/integration/api-tab/api-token-utils.js.map +0 -1
  335. package/dist/web-containers/source/integration/api-tab/constants.js.map +0 -1
  336. package/dist/web-containers/source/integration/api-tab/create-api-modal.js.map +0 -1
  337. package/dist/web-containers/source/integration/api-tab/delete-api-modal.js +0 -31
  338. package/dist/web-containers/source/integration/api-tab/delete-api-modal.js.map +0 -1
  339. package/dist/web-containers/source/integration/api-tab/edit-api-modal.js.map +0 -1
  340. package/dist/web-containers/source/integration/api-tab/expiration-date-field.js +0 -29
  341. package/dist/web-containers/source/integration/api-tab/expiration-date-field.js.map +0 -1
  342. package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js +0 -42
  343. package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js.map +0 -1
  344. package/dist/web-containers/source/integration/api-tab/token-policy-fields.js.map +0 -1
  345. package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js +0 -143
  346. package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
  347. package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
  348. package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
  349. package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js +0 -287
  350. package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js.map +0 -1
  351. package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js +0 -83
  352. package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js.map +0 -1
  353. package/dist/web-containers/source/integration-autogenerated-table.js +0 -42
  354. package/dist/web-containers/source/integration-autogenerated-table.js.map +0 -1
  355. package/dist/web-containers/source/integration-data-sources-tab.js +0 -46
  356. package/dist/web-containers/source/integration-data-sources-tab.js.map +0 -1
  357. package/dist/web-containers/source/integration-llms-tab.js +0 -83
  358. package/dist/web-containers/source/integration-llms-tab.js.map +0 -1
  359. package/dist/web-containers/source/llms-tab/create-llm-modal.js +0 -287
  360. package/dist/web-containers/source/llms-tab/create-llm-modal.js.map +0 -1
  361. package/dist/web-containers/source/llms-tab/integration-llms-tab.js +0 -83
  362. package/dist/web-containers/source/llms-tab/integration-llms-tab.js.map +0 -1
  363. package/dist/web-containers/source/mcp-tab/field-info.js +0 -14
  364. package/dist/web-containers/source/mcp-tab/field-info.js.map +0 -1
  365. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
  366. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
  367. package/dist/web-containers/source/profile/integration/api-tab/api-key-modal.js.map +0 -1
  368. package/dist/web-containers/source/profile/integration/api-tab/api-token-utils.js.map +0 -1
  369. package/dist/web-containers/source/profile/integration/api-tab/constants.js +0 -24
  370. package/dist/web-containers/source/profile/integration/api-tab/constants.js.map +0 -1
  371. package/dist/web-containers/source/profile/integration/api-tab/create-api-modal.js.map +0 -1
  372. package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js +0 -31
  373. package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js.map +0 -1
  374. package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js +0 -113
  375. package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js.map +0 -1
  376. package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js +0 -29
  377. package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js.map +0 -1
  378. package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
  379. package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
  380. package/dist/web-containers/source/profile/integration/api-tab/token-policy-fields.js.map +0 -1
  381. package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
  382. package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
  383. package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
  384. package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
  385. package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js +0 -287
  386. package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
  387. package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js +0 -83
  388. package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
  389. package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
  390. package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
  391. package/dist/web-containers/source/tabs/mcp-tab/field-info.js +0 -14
  392. package/dist/web-containers/source/tabs/mcp-tab/field-info.js.map +0 -1
  393. package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js +0 -109
  394. package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js.map +0 -1
  395. package/dist/web-containers/source/vm-secrets-section.js +0 -109
  396. package/dist/web-containers/source/vm-secrets-section.js.map +0 -1
@@ -1,7 +1,8 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { useId, useState, useEffect } from 'react';
2
+ import { useId, useRef, useState, useEffect } from 'react';
3
3
  import { toast } from 'sonner';
4
- import { useCreateVirtualMachineNetworkPolicyMutation, useUpdateVirtualMachineNetworkPolicyMutation, VIRTUAL_MACHINE_MAX_POLICY_HOSTS, getVirtualMachineApiError } from '@iblai/data-layer';
4
+ import { useCreateVirtualMachineNetworkPolicyMutation, useUpdateVirtualMachineNetworkPolicyMutation, VIRTUAL_MACHINE_MAX_POLICY_HOSTS, VIRTUAL_MACHINE_DEFAULT_HOST_PORT, formatHostPort, getVirtualMachineApiError } from '@iblai/data-layer';
5
+ import { FieldInfo } from '../field-info.js';
5
6
  import { Button } from '../ui/button.js';
6
7
  import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from '../ui/dialog.js';
7
8
  import { Input } from '../ui/input.js';
@@ -27,6 +28,7 @@ function NetworkPolicyDialog({ open, onOpenChange, tenantKey, policy = null, onS
27
28
  const t = useT();
28
29
  const baseId = useId();
29
30
  const nameId = `${baseId}-name`;
31
+ const nameInputRef = useRef(null);
30
32
  const hostsId = `${baseId}-hosts`;
31
33
  const descriptionId = `${baseId}-description`;
32
34
  const [createPolicy, { isLoading: isCreating }] = useCreateVirtualMachineNetworkPolicyMutation();
@@ -120,13 +122,35 @@ function NetworkPolicyDialog({ open, onOpenChange, tenantKey, policy = null, onS
120
122
  }
121
123
  }
122
124
  };
123
- return (jsx(Dialog, { open: open, onOpenChange: (next) => !isSaving && onOpenChange(next), children: jsxs(DialogContent, { className: "max-h-[90vh] w-full max-w-lg overflow-y-auto", "data-testid": "network-policy-dialog", children: [jsxs(DialogHeader, { children: [jsx(DialogTitle, { className: "ibl-dialog-title", children: isEdit
125
+ // The info icon sits beside the label, not inside it, so the input's accessible name stays the label alone.
126
+ const fieldLabel = ({ htmlFor, text, info, required = false, }) => (jsxs("div", { className: "flex items-center gap-2", children: [jsx(Label, { htmlFor: htmlFor, className: "text-sm font-medium text-[#646464]", children: text }), required && (jsx("span", { className: "-ml-1 text-red-500", "aria-hidden": "true", children: "*" })), jsx(FieldInfo, { label: text, text: info })] }));
127
+ return (jsx(Dialog, { open: open, onOpenChange: (next) => !isSaving && onOpenChange(next), children: jsxs(DialogContent, { className: "max-h-[90vh] w-full max-w-lg overflow-y-auto", "data-testid": "network-policy-dialog",
128
+ // Land in the Name box, not on its info icon (whose tooltip would open).
129
+ onOpenAutoFocus: (event) => {
130
+ var _a;
131
+ event.preventDefault();
132
+ (_a = nameInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
133
+ }, children: [jsxs(DialogHeader, { children: [jsx(DialogTitle, { className: "ibl-dialog-title", children: isEdit
124
134
  ? t('virtualMachineNetworkPolicies.editTitle')
125
- : t('virtualMachineNetworkPolicies.createTitle') }), jsx(DialogDescription, { children: t('virtualMachineNetworkPolicies.dialogDescription') })] }), jsxs("form", { onSubmit: handleSubmit, noValidate: true, className: "mt-1 grid gap-5", children: [formError && (jsx("div", { role: "alert", "data-testid": "network-policy-form-error", className: "rounded-md border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-700", children: formError })), jsxs("div", { className: "space-y-1.5", children: [jsx(Label, { htmlFor: nameId, className: "flex items-center text-sm font-medium text-[#646464]", children: t('virtualMachineNetworkPolicies.fieldName') }), jsx(Input, { id: nameId, value: name, maxLength: NAME_MAX_LENGTH, onChange: (event) => setName(event.target.value), placeholder: t('virtualMachineNetworkPolicies.namePlaceholder'), "aria-invalid": fieldErrors.name ? true : undefined, "aria-describedby": fieldErrors.name ? `${nameId}-error` : undefined, required: true }), fieldErrors.name && (jsx("p", { id: `${nameId}-error`, role: "alert", className: "text-xs text-red-600", children: fieldErrors.name }))] }), jsxs("div", { className: "space-y-1.5", children: [jsx(Label, { htmlFor: hostsId, className: "flex items-center text-sm font-medium text-[#646464]", children: t('virtualMachineNetworkPolicies.fieldHosts') }), jsx(HostPortChipInput, { id: hostsId, value: hosts, onChange: setHosts, allowIpAddresses: true, maxEntries: VIRTUAL_MACHINE_MAX_POLICY_HOSTS, hint: t('virtualMachineNetworkPolicies.hostsHint', {
135
+ : t('virtualMachineNetworkPolicies.createTitle') }), jsx(DialogDescription, { children: t('virtualMachineNetworkPolicies.dialogDescription') })] }), jsxs("form", { onSubmit: handleSubmit, noValidate: true, className: "mt-1 grid gap-5", children: [formError && (jsx("div", { role: "alert", "data-testid": "network-policy-form-error", className: "rounded-md border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-700", children: formError })), jsxs("div", { className: "space-y-1.5", children: [fieldLabel({
136
+ htmlFor: nameId,
137
+ text: t('virtualMachineNetworkPolicies.fieldName'),
138
+ info: t('virtualMachineNetworkPolicies.nameInfo'),
139
+ required: true,
140
+ }), jsx(Input, { ref: nameInputRef, id: nameId, value: name, maxLength: NAME_MAX_LENGTH, onChange: (event) => setName(event.target.value), placeholder: t('virtualMachineNetworkPolicies.namePlaceholder'), "aria-invalid": fieldErrors.name ? true : undefined, "aria-describedby": fieldErrors.name ? `${nameId}-error` : undefined, required: true }), fieldErrors.name && (jsx("p", { id: `${nameId}-error`, role: "alert", className: "text-xs text-red-600", children: fieldErrors.name }))] }), jsxs("div", { className: "space-y-1.5", children: [fieldLabel({
141
+ htmlFor: hostsId,
142
+ text: t('virtualMachineNetworkPolicies.fieldHosts'),
143
+ info: t('virtualMachineNetworkPolicies.hostsInfo'),
144
+ required: true,
145
+ }), jsx(HostPortChipInput, { id: hostsId, value: hosts, onChange: setHosts, allowIpAddresses: true, defaultPort: VIRTUAL_MACHINE_DEFAULT_HOST_PORT, maxEntries: VIRTUAL_MACHINE_MAX_POLICY_HOSTS, hint: t('virtualMachineNetworkPolicies.hostsHint', {
126
146
  max: VIRTUAL_MACHINE_MAX_POLICY_HOSTS,
127
147
  }), error: fieldErrors.allowed_hosts, testId: "network-policy-hosts" }), removedHosts.length > 0 && (jsxs("div", { role: "status", "data-testid": "network-policy-removed-hosts-warning", className: "flex items-start gap-2 rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-800", children: [jsx(TriangleAlert, { className: "mt-0.5 h-4 w-4 shrink-0", "aria-hidden": "true" }), jsx("span", { children: t('virtualMachineNetworkPolicies.removedHostsWarning', {
128
- hosts: removedHosts.join(', '),
129
- }) })] }))] }), jsxs("div", { className: "space-y-1.5", children: [jsx(Label, { htmlFor: descriptionId, className: "flex items-center text-sm font-medium text-[#646464]", children: t('virtualMachineNetworkPolicies.fieldDescription') }), jsx(Textarea, { id: descriptionId, value: description, rows: 2, onChange: (event) => setDescription(event.target.value), placeholder: t('virtualMachineNetworkPolicies.descriptionPlaceholder'), "aria-invalid": fieldErrors.description ? true : undefined, "aria-describedby": fieldErrors.description ? `${descriptionId}-error` : undefined }), fieldErrors.description && (jsx("p", { id: `${descriptionId}-error`, role: "alert", className: "text-xs text-red-600", children: fieldErrors.description }))] }), jsxs(DialogFooter, { children: [jsx(Button, { type: "button", variant: "outline", onClick: () => onOpenChange(false), disabled: isSaving, children: t('virtualMachineNetworkPolicies.cancel') }), jsxs(Button, { type: "submit", disabled: isSaving, "data-testid": "network-policy-save", className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", children: [isSaving && jsx(LoaderCircle, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }), isEdit
148
+ hosts: removedHosts.map(formatHostPort).join(', '),
149
+ }) })] }))] }), jsxs("div", { className: "space-y-1.5", children: [fieldLabel({
150
+ htmlFor: descriptionId,
151
+ text: t('virtualMachineNetworkPolicies.fieldDescription'),
152
+ info: t('virtualMachineNetworkPolicies.descriptionInfo'),
153
+ }), jsx(Textarea, { id: descriptionId, value: description, rows: 2, onChange: (event) => setDescription(event.target.value), placeholder: t('virtualMachineNetworkPolicies.descriptionPlaceholder'), "aria-invalid": fieldErrors.description ? true : undefined, "aria-describedby": fieldErrors.description ? `${descriptionId}-error` : undefined }), fieldErrors.description && (jsx("p", { id: `${descriptionId}-error`, role: "alert", className: "text-xs text-red-600", children: fieldErrors.description }))] }), jsxs(DialogFooter, { children: [jsx(Button, { type: "button", variant: "outline", onClick: () => onOpenChange(false), disabled: isSaving, children: t('virtualMachineNetworkPolicies.cancel') }), jsxs(Button, { type: "submit", disabled: isSaving, "data-testid": "network-policy-save", className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", children: [isSaving && jsx(LoaderCircle, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }), isEdit
130
154
  ? t('virtualMachineNetworkPolicies.saveChanges')
131
155
  : t('virtualMachineNetworkPolicies.createPolicy')] })] })] })] }) }));
132
156
  }
@@ -1 +1 @@
1
- {"version":3,"file":"network-policy-dialog.js","sources":["../../../../../../../src/components/virtual-machine/network-policy-dialog.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs","Loader2"],"mappings":";;;;;;;;;;;;;;;AA2CA,MAAM,eAAe,GA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,EAC3E;AACC,8CAAE,CAAC,CAAC,2CAA2C;8CAC7C,CAAC,CAAC,4CAA4C,CAAC,CAAA,EAAA,CAC5C,CAAA,EAAA,CACI,CAAA,EAAA,CACV,CAAA,EAAA,CACO,EAAA,CACT;AAEb;;;;"}
1
+ {"version":3,"file":"network-policy-dialog.js","sources":["../../../../../../../src/components/virtual-machine/network-policy-dialog.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","Loader2"],"mappings":";;;;;;;;;;;;;;;;AA8CA,MAAM,eAAe,GAAG,GAAG;AAE3B;;;;;;;;AAQG;AACG,SAAU,mBAAmB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,MAAM,GAAG,IAAI,EACb,OAAO,GACkB,EAAA;AACzB,IAAA,MAAM,CAAC,GAAG,IAAI,EAAE;AAChB,IAAA,MAAM,MAAM,GAAG,KAAK,EAAE;AACtB,IAAA,MAAM,MAAM,GAAG,CAAA,EAAG,MAAM,OAAO;AAC/B,IAAA,MAAM,YAAY,GAAG,MAAM,CAAmB,IAAI,CAAC;AACnD,IAAA,MAAM,OAAO,GAAG,CAAA,EAAG,MAAM,QAAQ;AACjC,IAAA,MAAM,aAAa,GAAG,CAAA,EAAG,MAAM,cAAc;AAE7C,IAAA,MAAM,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,GAAG,4CAA4C,EAAE;AAChG,IAAA,MAAM,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,GAAG,4CAA4C,EAAE;AAChG,IAAA,MAAM,QAAQ,GAAG,UAAU,IAAI,UAAU;IAEzC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;IACpC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC;IAChD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC;IA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AK,CAAC,EAClC,QAAQ,EAAE,QAAQ,YAEjB,CAAC,CAAC,sCAAsC,CAAC,GACnC,EACTD,IAAA,CAAC,MAAM,EAAA,EACL,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAAA,aAAA,EACN,qBAAqB,EACjC,SAAS,EAAC,0EAA0E,EAAA,QAAA,EAAA,CAEnF,QAAQ,IAAIC,GAAA,CAACC,YAAO,EAAA,EAAC,SAAS,EAAC,sBAAsB,EAAA,aAAA,EAAa,MAAM,EAAA,CAAG,EAC3E;AACC,8CAAE,CAAC,CAAC,2CAA2C;8CAC7C,CAAC,CAAC,4CAA4C,CAAC,CAAA,EAAA,CAC5C,CAAA,EAAA,CACI,CAAA,EAAA,CACV,CAAA,EAAA,CACO,EAAA,CACT;AAEb;;;;"}
@@ -0,0 +1,66 @@
1
+ import { agentKeyField, isSecretFieldName } from './credential-options.js';
2
+
3
+ /** Values that look masked (`sk-****`), as the credential list shows sensitive fields. */
4
+ const MASKED_VALUE_PATTERN = /\*{3,}/;
5
+ /** The fields of a credential, from its schema when known, else guessed from the masked values. */
6
+ function fieldsOfCredential(credential, services) {
7
+ const schema = services.find((service) => service.slug === credential.name);
8
+ if (schema && schema.fields.length > 0)
9
+ return schema.fields;
10
+ return credential.fields.map((name) => {
11
+ var _a;
12
+ return ({
13
+ name,
14
+ isSensitive: isSecretFieldName(name) || MASKED_VALUE_PATTERN.test((_a = credential.values[name]) !== null && _a !== void 0 ? _a : ''),
15
+ required: true,
16
+ systemManaged: false,
17
+ });
18
+ });
19
+ }
20
+ /** The name a row is listed and sorted by. */
21
+ function secretRowName(row) {
22
+ switch (row.kind) {
23
+ case 'service':
24
+ return row.credential.displayName;
25
+ case 'ai':
26
+ return row.provider.displayName;
27
+ default:
28
+ return row.secret.name;
29
+ }
30
+ }
31
+ /**
32
+ * Join the credential list with the VM secrets: a secret that reads a listed
33
+ * credential is folded into that credential's row; every other secret (a
34
+ * custom key, or one whose credential is gone) is its own row; each AI
35
+ * provider key is its own row. One list, sorted by name.
36
+ */
37
+ function buildSecretRows(credentials, secrets, services, aiKeys = []) {
38
+ const folded = new Set();
39
+ const rows = credentials.map((credential) => {
40
+ var _a;
41
+ const secret = (_a = secrets.find((candidate) => candidate.source_credential_id === credential.id)) !== null && _a !== void 0 ? _a : null;
42
+ if (secret)
43
+ folded.add(secret.id);
44
+ const fields = fieldsOfCredential(credential, services);
45
+ return {
46
+ kind: 'service',
47
+ key: `service-${credential.name}`,
48
+ credential,
49
+ secret,
50
+ agentField: agentKeyField(credential.name, fields),
51
+ fields,
52
+ };
53
+ });
54
+ for (const secret of secrets) {
55
+ if (folded.has(secret.id))
56
+ continue;
57
+ rows.push({ kind: 'custom', key: `secret-${secret.id}`, secret });
58
+ }
59
+ for (const provider of aiKeys) {
60
+ rows.push({ kind: 'ai', key: `ai-${provider.name}`, provider });
61
+ }
62
+ return rows.sort((a, b) => secretRowName(a).localeCompare(secretRowName(b)));
63
+ }
64
+
65
+ export { MASKED_VALUE_PATTERN, buildSecretRows, fieldsOfCredential, secretRowName };
66
+ //# sourceMappingURL=secret-rows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-rows.js","sources":["../../../../../../../src/components/virtual-machine/secret-rows.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAUA;AACO,MAAM,oBAAoB,GAAG;AAqBpC;AACM,SAAU,kBAAkB,CAChC,UAAuC,EACvC,QAAsC,EAAA;AAEtC,IAAA,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC;IAC3E,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM;IAC5D,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,KAAI;;AAAC,QAAA,QAAC;YACtC,IAAI;AACJ,YAAA,WAAW,E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