@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.
- package/dist/web-containers/source/account-sheet.js +2 -2
- package/dist/web-containers/source/account-sheet.js.map +1 -1
- package/dist/web-containers/source/account.js +39 -21
- package/dist/web-containers/source/account.js.map +1 -1
- package/dist/web-containers/source/api/api-field-label.js +14 -0
- package/dist/web-containers/source/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/{api-tab → api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → api}/constants.js +0 -1
- package/dist/web-containers/source/api/constants.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/{api-tab → api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/api/index.js +30 -0
- package/dist/web-containers/source/api/index.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/api-field-label.js +14 -0
- package/dist/web-containers/source/api-field-label.js.map +1 -0
- package/dist/web-containers/source/api-keys-table.js +61 -0
- package/dist/web-containers/source/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/api-tab/labels.js +23 -19
- package/dist/web-containers/source/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/api-tab.js +15 -20
- package/dist/web-containers/source/api-tab.js.map +1 -1
- package/dist/web-containers/source/api-token-utils.js +34 -1
- package/dist/web-containers/source/api-token-utils.js.map +1 -1
- package/dist/web-containers/source/azure-config.js +37 -0
- package/dist/web-containers/source/azure-config.js.map +1 -0
- package/dist/web-containers/source/azure-model-fields.js +118 -0
- package/dist/web-containers/source/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/chat/index.js +5 -0
- package/dist/web-containers/source/chat/index.js.map +1 -1
- package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/claw-sandbox/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/components/chat/index.js +5 -0
- package/dist/web-containers/source/components/chat/index.js.map +1 -1
- package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/components/claw-sandbox/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/components/field-info.js +18 -0
- package/dist/web-containers/source/components/field-info.js.map +1 -0
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/components/modals/user-profile-modal.js +4 -4
- package/dist/web-containers/source/components/modals/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/account-sheet.js +2 -2
- package/dist/web-containers/source/components/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/footer.js +15 -14
- package/dist/web-containers/source/components/platform-sidebar/footer.js.map +1 -1
- package/dist/web-containers/source/components/platform-sidebar/index.js +0 -2
- package/dist/web-containers/source/components/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/account.js +39 -21
- package/dist/web-containers/source/components/profile/account.js.map +1 -1
- package/dist/web-containers/source/components/profile/api/api-field-label.js +14 -0
- package/dist/web-containers/source/components/profile/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/components/profile/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/components/profile/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/components/profile/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/components/profile/{integration/api-tab → api}/constants.js +0 -1
- package/dist/web-containers/source/components/profile/api/constants.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → components/profile/api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/components/profile/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/components/profile/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/{integration/api-tab → api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/components/profile/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/components/profile/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/components/profile/api/index.js +30 -0
- package/dist/web-containers/source/components/profile/api/index.js.map +1 -0
- package/dist/web-containers/source/{profile/integration/api-tab → components/profile/api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/components/profile/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/components/profile/info-banner.js +3 -1
- package/dist/web-containers/source/components/profile/info-banner.js.map +1 -1
- package/dist/web-containers/source/components/profile/integration/index.js +17 -38
- package/dist/web-containers/source/components/profile/integration/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/secrets/index.js +106 -0
- package/dist/web-containers/source/components/profile/secrets/index.js.map +1 -0
- package/dist/web-containers/source/components/profile/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/components/profile/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/components/profile/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/components/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/components/tooltip-icon-button.js +15 -0
- package/dist/web-containers/source/components/tooltip-icon-button.js.map +1 -0
- package/dist/web-containers/source/components/user-profile-dropdown/index.js +2 -0
- package/dist/web-containers/source/components/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/azure-config.js +37 -0
- package/dist/web-containers/source/components/virtual-machine/azure-config.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js +118 -0
- package/dist/web-containers/source/components/virtual-machine/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/credential-options.js +268 -22
- package/dist/web-containers/source/components/virtual-machine/credential-options.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/components/virtual-machine/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/components/virtual-machine/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/components/virtual-machine/secret-rows.js +66 -0
- package/dist/web-containers/source/components/virtual-machine/secret-rows.js.map +1 -0
- package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/components/virtual-machine/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/connector-dialogs.js +1 -1
- package/dist/web-containers/source/constants.js +55 -22
- package/dist/web-containers/source/constants.js.map +1 -1
- package/dist/web-containers/source/create-api-modal.js +4 -4
- package/dist/web-containers/source/credential-options.js +268 -22
- package/dist/web-containers/source/credential-options.js.map +1 -1
- package/dist/web-containers/source/edit-api-modal.js +34 -28
- package/dist/web-containers/source/edit-api-modal.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/en.json.js +278 -227
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +449 -398
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/expiration-date-field.js +16 -10
- package/dist/web-containers/source/expiration-date-field.js.map +1 -1
- package/dist/web-containers/source/field-info.js +11 -7
- package/dist/web-containers/source/field-info.js.map +1 -1
- package/dist/web-containers/source/footer.js +15 -14
- package/dist/web-containers/source/footer.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +457 -406
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +278 -227
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +449 -398
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +457 -406
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +456 -405
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/info-banner.js +3 -1
- package/dist/web-containers/source/info-banner.js.map +1 -1
- package/dist/web-containers/source/integration/index.js +17 -38
- package/dist/web-containers/source/integration/index.js.map +1 -1
- package/dist/web-containers/source/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/messages/en.json.js +278 -227
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +449 -398
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +457 -406
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +456 -405
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/modals/user-profile-modal.js +4 -4
- package/dist/web-containers/source/modals/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/network-policies-section.js +5 -4
- package/dist/web-containers/source/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/account-sheet.js +2 -2
- package/dist/web-containers/source/platform-sidebar/account-sheet.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/footer.js +15 -14
- package/dist/web-containers/source/platform-sidebar/footer.js.map +1 -1
- package/dist/web-containers/source/platform-sidebar/index.js +0 -2
- package/dist/web-containers/source/platform-sidebar/index.js.map +1 -1
- package/dist/web-containers/source/profile/account.js +39 -21
- package/dist/web-containers/source/profile/account.js.map +1 -1
- package/dist/web-containers/source/profile/api/api-field-label.js +14 -0
- package/dist/web-containers/source/profile/api/api-field-label.js.map +1 -0
- package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/api-key-modal.js +8 -8
- package/dist/web-containers/source/profile/api/api-key-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/api-keys-table.js +61 -0
- package/dist/web-containers/source/profile/api/api-keys-table.js.map +1 -0
- package/dist/web-containers/source/profile/{integration/api-tab → api}/api-token-utils.js +34 -1
- package/dist/web-containers/source/profile/api/api-token-utils.js.map +1 -0
- package/dist/web-containers/source/{api-tab → profile/api}/constants.js +0 -1
- package/dist/web-containers/source/profile/api/constants.js.map +1 -0
- package/dist/web-containers/source/{components/profile/integration/api-tab → profile/api}/create-api-modal.js +19 -26
- package/dist/web-containers/source/profile/api/create-api-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/delete-api-modal.js +31 -0
- package/dist/web-containers/source/profile/api/delete-api-modal.js.map +1 -0
- package/dist/web-containers/source/{integration/api-tab → profile/api}/edit-api-modal.js +34 -28
- package/dist/web-containers/source/profile/api/edit-api-modal.js.map +1 -0
- package/dist/web-containers/source/profile/api/expiration-date-field.js +35 -0
- package/dist/web-containers/source/profile/api/expiration-date-field.js.map +1 -0
- package/dist/web-containers/source/profile/api/index.js +30 -0
- package/dist/web-containers/source/profile/api/index.js.map +1 -0
- package/dist/web-containers/source/{api-tab → profile/api}/token-policy-fields.js +6 -6
- package/dist/web-containers/source/profile/api/token-policy-fields.js.map +1 -0
- package/dist/web-containers/source/profile/info-banner.js +3 -1
- package/dist/web-containers/source/profile/info-banner.js.map +1 -1
- package/dist/web-containers/source/profile/integration/index.js +17 -38
- package/dist/web-containers/source/profile/integration/index.js.map +1 -1
- package/dist/web-containers/source/profile/secrets/index.js +106 -0
- package/dist/web-containers/source/profile/secrets/index.js.map +1 -0
- package/dist/web-containers/source/profile/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/profile/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/profile/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/profile/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/profile/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/secret-rows.js +66 -0
- package/dist/web-containers/source/secret-rows.js.map +1 -0
- package/dist/web-containers/source/secrets/index.js +106 -0
- package/dist/web-containers/source/secrets/index.js.map +1 -0
- package/dist/web-containers/source/secrets/secrets-list.js +237 -0
- package/dist/web-containers/source/secrets/secrets-list.js.map +1 -0
- package/dist/web-containers/source/secrets-list.js +237 -0
- package/dist/web-containers/source/secrets-list.js.map +1 -0
- package/dist/web-containers/source/skills-tab/index.js +1 -1
- package/dist/web-containers/source/tabs/api-tab/create-api-modal.js +4 -4
- package/dist/web-containers/source/tabs/api-tab/labels.js +23 -19
- package/dist/web-containers/source/tabs/api-tab/labels.js.map +1 -1
- package/dist/web-containers/source/tabs/api-tab.js +15 -20
- package/dist/web-containers/source/tabs/api-tab.js.map +1 -1
- package/dist/web-containers/source/tabs/mcp-tab/connector-dialogs.js +1 -1
- package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js +2 -2
- package/dist/web-containers/source/tabs/mcp-tab/oauth-app-fields.js.map +1 -1
- package/dist/web-containers/source/tabs/skills-tab/index.js +1 -1
- package/dist/web-containers/source/token-policy-fields.js +6 -6
- package/dist/web-containers/source/token-policy-fields.js.map +1 -1
- package/dist/web-containers/source/tooltip-icon-button.js +15 -0
- package/dist/web-containers/source/tooltip-icon-button.js.map +1 -0
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/user-profile-dropdown/index.js +2 -0
- package/dist/web-containers/source/user-profile-dropdown/index.js.map +1 -1
- package/dist/web-containers/source/user-profile-modal.js +4 -4
- package/dist/web-containers/source/user-profile-modal.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/azure-config.js +37 -0
- package/dist/web-containers/source/virtual-machine/azure-config.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/azure-model-fields.js +118 -0
- package/dist/web-containers/source/virtual-machine/azure-model-fields.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/credential-options.js +268 -22
- package/dist/web-containers/source/virtual-machine/credential-options.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/host-port-chip-input.js +14 -8
- package/dist/web-containers/source/virtual-machine/host-port-chip-input.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/network-policy-dialog.js +30 -6
- package/dist/web-containers/source/virtual-machine/network-policy-dialog.js.map +1 -1
- package/dist/web-containers/source/virtual-machine/secret-rows.js +66 -0
- package/dist/web-containers/source/virtual-machine/secret-rows.js.map +1 -0
- package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/virtual-machine/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-admin/index.js +12 -18
- package/dist/web-containers/source/virtual-machine-admin/index.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js +5 -4
- package/dist/web-containers/source/virtual-machine-admin/network-policies-section.js.map +1 -1
- package/dist/web-containers/source/virtual-machine-network-section.js +147 -24
- package/dist/web-containers/source/virtual-machine-network-section.js.map +1 -1
- package/dist/web-containers/source/vm-secret-dialog.js +848 -158
- package/dist/web-containers/source/vm-secret-dialog.js.map +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +456 -405
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/package.json +4 -4
- package/dist/web-containers/source/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js +0 -57
- package/dist/web-containers/source/components/profile/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/components/profile/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/components/profile/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/components/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js +0 -101
- package/dist/web-containers/source/components/profile/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/components/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/components/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/components/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/components/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/create-llm-modal.js +0 -287
- package/dist/web-containers/source/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/api-key-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/api-token-utils.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/constants.js +0 -24
- package/dist/web-containers/source/profile/integration/api-tab/constants.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/create-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js +0 -31
- package/dist/web-containers/source/profile/integration/api-tab/delete-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js +0 -113
- package/dist/web-containers/source/profile/integration/api-tab/edit-api-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js +0 -29
- package/dist/web-containers/source/profile/integration/api-tab/expiration-date-field.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js +0 -42
- package/dist/web-containers/source/profile/integration/api-tab/integration-autogenerated-table.js.map +0 -1
- package/dist/web-containers/source/profile/integration/api-tab/token-policy-fields.js.map +0 -1
- package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js +0 -143
- package/dist/web-containers/source/profile/integration/data-sources-tab/create-data-source-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js +0 -46
- package/dist/web-containers/source/profile/integration/data-sources-tab/integration-data-sources-tab.js.map +0 -1
- package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js +0 -287
- package/dist/web-containers/source/profile/integration/llms-tab/create-llm-modal.js.map +0 -1
- package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js +0 -83
- package/dist/web-containers/source/profile/integration/llms-tab/integration-llms-tab.js.map +0 -1
- package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/profile/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/tabs/mcp-tab/field-info.js +0 -14
- package/dist/web-containers/source/tabs/mcp-tab/field-info.js.map +0 -1
- package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/virtual-machine-admin/vm-secrets-section.js.map +0 -1
- package/dist/web-containers/source/vm-secrets-section.js +0 -109
- package/dist/web-containers/source/vm-secrets-section.js.map +0 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useMemo } from 'react';
|
|
3
|
+
import { useListVirtualMachineSecretsQuery, useGetIntegrationCredentialsQuery, useGetIntegrationCredentialsSchemaQuery, useGetMaskedLLMCredentialsQuery, useGetCredentialsSchemaQuery, getVirtualMachineErrorStatus } from '@iblai/data-layer';
|
|
4
|
+
import { Tabs, TabsList, TabsTrigger, TabsContent } from '../../ui/tabs.js';
|
|
5
|
+
import { useT } from '../../../i18n/context.js';
|
|
6
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
7
|
+
import { toIntegrationCredentialOptions, toServiceSchemas, toAiProviderKeys, toAiProviderSchemas } from '../../virtual-machine/credential-options.js';
|
|
8
|
+
import { buildSecretRows } from '../../virtual-machine/secret-rows.js';
|
|
9
|
+
import { SecretsList } from './secrets-list.js';
|
|
10
|
+
|
|
11
|
+
// Stable empty lists, so the list's memo and the dialog's reset effect do not re-run on every render.
|
|
12
|
+
const NO_SECRETS = [];
|
|
13
|
+
const NO_AI_KEYS = [];
|
|
14
|
+
const NO_AI_PROVIDERS = [];
|
|
15
|
+
const NO_SERVICES = [];
|
|
16
|
+
const TABS = [
|
|
17
|
+
{ section: 'llms', label: 'secrets.tabLlms', testId: 'secrets-tab-llms' },
|
|
18
|
+
{ section: 'services', label: 'secrets.tabServices', testId: 'secrets-tab-services' },
|
|
19
|
+
{ section: 'env', label: 'secrets.tabEnv', testId: 'secrets-tab-env' },
|
|
20
|
+
];
|
|
21
|
+
const TAB_COLUMNS = ['sm:grid-cols-1', 'sm:grid-cols-2', 'sm:grid-cols-3'];
|
|
22
|
+
/**
|
|
23
|
+
* What a list query says about the rows it feeds: refused (403) hides them
|
|
24
|
+
* quietly; any other failure keeps the rest behind a notice with Try Again;
|
|
25
|
+
* allowed means it answered and its rows can show.
|
|
26
|
+
*/
|
|
27
|
+
function listState(query) {
|
|
28
|
+
// A retry after a failure has no data yet but reports isLoading false;
|
|
29
|
+
// read as answered, it would show the empty sentence and let a held AI
|
|
30
|
+
// provider be picked again.
|
|
31
|
+
const loading = query.isUninitialized || query.isLoading || (query.isFetching && query.data === undefined);
|
|
32
|
+
const forbidden = getVirtualMachineErrorStatus(query.error) === 403;
|
|
33
|
+
const failed = query.isError && !forbidden;
|
|
34
|
+
return { loading, forbidden, failed, allowed: !loading && !forbidden && !failed };
|
|
35
|
+
}
|
|
36
|
+
function choicesOf(...states) {
|
|
37
|
+
if (states.some((state) => state.loading))
|
|
38
|
+
return 'loading';
|
|
39
|
+
return states.some((state) => state.failed) ? 'failed' : 'ready';
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Organization settings → Secrets: one sub-tab per kind of key. The page has
|
|
43
|
+
* no permission to check up front: a list that is refused hides its own tab,
|
|
44
|
+
* a list that fails can be retried on its tab, and only when all three are
|
|
45
|
+
* refused does the page say so instead.
|
|
46
|
+
*/
|
|
47
|
+
function SecretsTab({ tenantKey, username }) {
|
|
48
|
+
var _a;
|
|
49
|
+
const t = useT();
|
|
50
|
+
const [selectedTab, setSelectedTab] = useState('llms');
|
|
51
|
+
const secretsQuery = useListVirtualMachineSecretsQuery({ org: tenantKey });
|
|
52
|
+
const credentialsQuery = useGetIntegrationCredentialsQuery({ org: tenantKey });
|
|
53
|
+
const schemaQuery = useGetIntegrationCredentialsSchemaQuery({ org: tenantKey });
|
|
54
|
+
const aiKeysQuery = useGetMaskedLLMCredentialsQuery({ org: tenantKey });
|
|
55
|
+
const aiSchemaQuery = useGetCredentialsSchemaQuery({ org: tenantKey });
|
|
56
|
+
const secretsState = listState(secretsQuery);
|
|
57
|
+
const credentialsState = listState(credentialsQuery);
|
|
58
|
+
const aiState = listState(aiKeysQuery);
|
|
59
|
+
const schemaState = listState(schemaQuery);
|
|
60
|
+
const aiSchemaState = listState(aiSchemaQuery);
|
|
61
|
+
const secrets = secretsState.allowed ? ((_a = secretsQuery.data) !== null && _a !== void 0 ? _a : NO_SECRETS) : NO_SECRETS;
|
|
62
|
+
const takenEnvVars = useMemo(() => secrets.map((secret) => secret.env_var), [secrets]);
|
|
63
|
+
const credentials = useMemo(() => credentialsState.allowed
|
|
64
|
+
? toIntegrationCredentialOptions(credentialsQuery.data, tenantKey)
|
|
65
|
+
: [], [credentialsState.allowed, credentialsQuery.data, tenantKey]);
|
|
66
|
+
const services = useMemo(() => toServiceSchemas(schemaQuery.data), [schemaQuery.data]);
|
|
67
|
+
const aiKeys = useMemo(() => (aiState.allowed ? toAiProviderKeys(aiKeysQuery.data, t) : NO_AI_KEYS), [aiState.allowed, aiKeysQuery.data, t]);
|
|
68
|
+
// A refused AI list means the schema is refused too: offering providers
|
|
69
|
+
// that can never be added would be an entry point with nothing behind it.
|
|
70
|
+
const aiProviders = useMemo(() => (aiState.forbidden ? NO_AI_PROVIDERS : toAiProviderSchemas(aiSchemaQuery.data, t)), [aiState.forbidden, aiSchemaQuery.data, t]);
|
|
71
|
+
const llmRows = useMemo(() => buildSecretRows([], [], [], aiKeys), [aiKeys]);
|
|
72
|
+
const appRows = useMemo(() => buildSecretRows(credentials, secrets, services).filter((row) => row.kind === 'service'), [credentials, secrets, services]);
|
|
73
|
+
const envRows = useMemo(() => buildSecretRows([], secrets, []), [secrets]);
|
|
74
|
+
const refetchAll = () => {
|
|
75
|
+
void secretsQuery.refetch();
|
|
76
|
+
void credentialsQuery.refetch();
|
|
77
|
+
void aiKeysQuery.refetch();
|
|
78
|
+
void schemaQuery.refetch();
|
|
79
|
+
void aiSchemaQuery.refetch();
|
|
80
|
+
};
|
|
81
|
+
const refused = {
|
|
82
|
+
llms: aiState.forbidden,
|
|
83
|
+
services: credentialsState.forbidden,
|
|
84
|
+
env: secretsState.forbidden,
|
|
85
|
+
};
|
|
86
|
+
const visibleTabs = TABS.filter((tab) => !refused[tab.section]);
|
|
87
|
+
if (visibleTabs.length === 0) {
|
|
88
|
+
return (jsx("p", { "data-testid": "vm-secrets-forbidden", className: "text-sm text-gray-600", children: t('secrets.forbiddenView') }));
|
|
89
|
+
}
|
|
90
|
+
const activeTab = refused[selectedTab] ? visibleTabs[0].section : selectedTab;
|
|
91
|
+
const aiChoices = choicesOf(aiState, aiSchemaState);
|
|
92
|
+
const appChoices = choicesOf(credentialsState, schemaState);
|
|
93
|
+
const sharedProps = {
|
|
94
|
+
tenantKey,
|
|
95
|
+
username,
|
|
96
|
+
takenEnvVars,
|
|
97
|
+
onRetry: refetchAll,
|
|
98
|
+
onChanged: refetchAll,
|
|
99
|
+
};
|
|
100
|
+
return (jsx("div", { className: "container mx-auto max-w-7xl !mt-0", children: jsxs(Tabs, { value: activeTab, onValueChange: (value) => setSelectedTab(value), className: "w-full px-2 sm:px-0", children: [jsx(TabsList, { className: `mb-6 flex-wrap sm:grid sm:w-fit ${TAB_COLUMNS[visibleTabs.length - 1]} h-auto sm:h-[35px] gap-2 sm:gap-0`, children: visibleTabs.map((tab) => (jsx(TabsTrigger, { value: tab.section, className: activeTab === tab.section ? 'w-full' : undefined, "data-testid": tab.testId, children: t(tab.label) }, tab.section))) }), !refused.llms && (jsx(TabsContent, { value: "llms", className: "space-y-4", children: jsx(SecretsList, { ...sharedProps, section: "llms", rows: llmRows, aiProviders: aiProviders, aiKeys: aiKeys, aiKeysSettled: aiState.allowed, isLoading: aiState.loading, listFailed: aiState.failed, schemaFailed: aiSchemaState.failed, choices: aiChoices, canAdd: aiChoices === 'loading' || aiProviders.length > 0 }) })), !refused.services && (jsx(TabsContent, { value: "services", className: "space-y-4", children: jsx(SecretsList, { ...sharedProps, section: "services", rows: appRows, credentials: credentials,
|
|
101
|
+
// Without the held list a repeated add could not be caught, so none is offered until it answers.
|
|
102
|
+
services: credentialsState.allowed ? services : NO_SERVICES, isLoading: credentialsState.loading || secretsState.loading, listFailed: credentialsState.failed, schemaFailed: schemaState.failed, choices: appChoices, canAdd: !credentialsState.failed && (appChoices === 'loading' || services.length > 0) }) })), !refused.env && (jsx(TabsContent, { value: "env", className: "space-y-4", children: jsx(SecretsList, { ...sharedProps, section: "env", rows: envRows, credentials: credentials, services: services, isLoading: secretsState.loading || credentialsState.loading, listFailed: secretsState.failed, choices: secretsState.loading ? 'loading' : 'ready', canAdd: true }) }))] }) }));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { SecretsTab, SecretsTab as default };
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../src/components/profile/secrets/index.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WAAW,EAAE,WAAW;;AAExB,wBAAA,QAAQ,EAAE,gBAAgB,CAAC,OAAO,GAAG,QAAQ,GAAG,WAAW,EAC3D,SAAS,EAAE,gBAAgB,CAAC,OAAO,IAAI,YAAY,CAAC,OAAO,EAC3D,UAAU,EAAE,gBAAgB,CAAC,MAAM,EACnC,YAAY,EAAE,WAAW,CAAC,MAAM,EAChC,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,CAAC,gBAAgB,CAAC,MAAM,KAAK,UAAU,KAAK,SAAS,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,EAAA,CACrF,EAAA,CACU,CACf,EAEA,CAAC,OAAO,CAAC,GAAG,KACXA,GAAA,CAAC,WAAW,EAAA,EAAC,KAAK,EAAC,KAAK,EAAC,SAAS,EAAC,WAAW,EAAA,QAAA,EAC5CA,GAAA,CAAC,WAAW,EAAA,EAAA,GACN,WAAW,EACf,OAAO,EAAC,KAAK,EACb,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,YAAY,CAAC,OAAO,IAAI,gBAAgB,CAAC,OAAO,EAC3D,UAAU,EAAE,YAAY,CAAC,MAAM,EAC/B,OAAO,EAAE,YAAY,CAAC,OAAO,GAAG,SAAS,GAAG,OAAO,EACnD,MAAM,EAAA,IAAA,EAAA,CACN,EAAA,CACU,CACf,CAAA,EAAA,CACI,EAAA,CACH;AAEV;;;;"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, Fragment as Fragment$1 } from 'react';
|
|
3
|
+
import { toast } from 'sonner';
|
|
4
|
+
import { useDeleteVirtualMachineSecretMutation, useDeleteIntegrationCredentialMutation, useDeleteCredentialMutation, formatHostPort, getVirtualMachineApiError } from '@iblai/data-layer';
|
|
5
|
+
import { Button } from '../../ui/button.js';
|
|
6
|
+
import { TooltipIconButton } from '../../tooltip-icon-button.js';
|
|
7
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter } from '../../ui/dialog.js';
|
|
8
|
+
import { useT } from '../../../i18n/context.js';
|
|
9
|
+
import '../../../packages/i18n/dist/index.esm.js';
|
|
10
|
+
import { isAiKeyEditable } from '../../virtual-machine/credential-options.js';
|
|
11
|
+
import { secretRowName } from '../../virtual-machine/secret-rows.js';
|
|
12
|
+
import { VmSecretDialog } from '../../virtual-machine/vm-secret-dialog.js';
|
|
13
|
+
import { InfoBannerRow, InfoBanner } from '../info-banner.js';
|
|
14
|
+
import KeyRound from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/key-round.js';
|
|
15
|
+
import Plus from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/plus.js';
|
|
16
|
+
import LoaderCircle from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/loader-circle.js';
|
|
17
|
+
import ChevronDown from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
18
|
+
import ChevronRight from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-right.js';
|
|
19
|
+
import Pencil from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/pencil.js';
|
|
20
|
+
import Trash2 from '../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/trash-2.js';
|
|
21
|
+
|
|
22
|
+
// Stable empty lists, so the dialog's reset effect does not re-run on every render.
|
|
23
|
+
const NO_SERVICES = [];
|
|
24
|
+
const NO_CREDENTIALS = [];
|
|
25
|
+
const NO_AI_KEYS = [];
|
|
26
|
+
const NO_AI_PROVIDERS = [];
|
|
27
|
+
const HOST_PREVIEW_COUNT = 3;
|
|
28
|
+
/** Placeholder swapped for the inline name in the delete sentence. */
|
|
29
|
+
const RECORD_SLOT = '__record__';
|
|
30
|
+
const SECTION_TEXT = {
|
|
31
|
+
llms: {
|
|
32
|
+
banner: 'secrets.bannerLlms',
|
|
33
|
+
add: 'secrets.addLlmTitle',
|
|
34
|
+
addTestId: 'secrets-add-llm',
|
|
35
|
+
empty: 'secrets.emptyLlms',
|
|
36
|
+
deleteTitle: 'secrets.deleteLlmTitle',
|
|
37
|
+
},
|
|
38
|
+
services: {
|
|
39
|
+
banner: 'secrets.bannerServices',
|
|
40
|
+
add: 'secrets.addServiceTitle',
|
|
41
|
+
addTestId: 'secrets-add-service',
|
|
42
|
+
empty: 'secrets.emptyServices',
|
|
43
|
+
deleteTitle: 'secrets.deleteServiceTitle',
|
|
44
|
+
},
|
|
45
|
+
env: {
|
|
46
|
+
banner: 'secrets.bannerEnv',
|
|
47
|
+
add: 'secrets.addEnvVarTitle',
|
|
48
|
+
addTestId: 'vm-secret-new',
|
|
49
|
+
empty: 'secrets.emptyEnv',
|
|
50
|
+
deleteTitle: 'secrets.deleteEnvVarTitle',
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* One tab of the Secrets page: its sentence, its Add button and its table. A
|
|
55
|
+
* key is never displayed. A service's row and the VM secret that lets agents use
|
|
56
|
+
* its key are one row there, while Environment Variables lists every VM secret
|
|
57
|
+
* on its own, so deleting one there leaves the service's key in place.
|
|
58
|
+
*/
|
|
59
|
+
function SecretsList({ section, tenantKey, username, rows, credentials = NO_CREDENTIALS, services = NO_SERVICES, aiKeys = NO_AI_KEYS, aiProviders = NO_AI_PROVIDERS, aiKeysSettled = true, takenEnvVars, isLoading, listFailed, schemaFailed = false, choices, canAdd, onRetry, onChanged, }) {
|
|
60
|
+
var _a, _b, _c, _d;
|
|
61
|
+
const t = useT();
|
|
62
|
+
const text = SECTION_TEXT[section];
|
|
63
|
+
const isEnv = section === 'env';
|
|
64
|
+
const [createOpen, setCreateOpen] = useState(false);
|
|
65
|
+
const [editing, setEditing] = useState(null);
|
|
66
|
+
const [deleting, setDeleting] = useState(null);
|
|
67
|
+
const [deleteError, setDeleteError] = useState(null);
|
|
68
|
+
const [expandedProviders, setExpandedProviders] = useState(new Set());
|
|
69
|
+
const [deleteSecret, { isLoading: isDeletingSecret }] = useDeleteVirtualMachineSecretMutation();
|
|
70
|
+
const [deleteCredential, { isLoading: isDeletingCredential }] = useDeleteIntegrationCredentialMutation();
|
|
71
|
+
const [deleteAiCredential, { isLoading: isDeletingAiCredential }] = useDeleteCredentialMutation();
|
|
72
|
+
const isDeleting = isDeletingSecret || isDeletingCredential || isDeletingAiCredential;
|
|
73
|
+
// The translated sentences with the record rendered inline, whatever the word order.
|
|
74
|
+
const splitSentence = (key, values) => t(key, values).split(RECORD_SLOT);
|
|
75
|
+
const deleteSentence = () => {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
if (!deleting)
|
|
78
|
+
return ['', ''];
|
|
79
|
+
const { row, model } = deleting;
|
|
80
|
+
if (row.kind === 'ai' && model !== null) {
|
|
81
|
+
const isLastModel = ((_b = (_a = row.provider.models) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) <= 1;
|
|
82
|
+
return splitSentence(isLastModel ? 'secrets.deleteLastModelConfirm' : 'secrets.deleteModelConfirm', { model: RECORD_SLOT, name: row.provider.displayName });
|
|
83
|
+
}
|
|
84
|
+
const key = row.kind === 'ai'
|
|
85
|
+
? 'secrets.deleteAiConfirm'
|
|
86
|
+
: row.kind === 'service'
|
|
87
|
+
? 'secrets.deleteServiceConfirm'
|
|
88
|
+
: 'secrets.deleteConfirm';
|
|
89
|
+
return splitSentence(key, { name: RECORD_SLOT });
|
|
90
|
+
};
|
|
91
|
+
const [deleteBefore, deleteAfter] = deleteSentence();
|
|
92
|
+
const deletingName = deleting ? ((_a = deleting.model) !== null && _a !== void 0 ? _a : secretRowName(deleting.row)) : '';
|
|
93
|
+
const closeDialog = (open) => {
|
|
94
|
+
if (open)
|
|
95
|
+
return;
|
|
96
|
+
setEditing(null);
|
|
97
|
+
setCreateOpen(false);
|
|
98
|
+
};
|
|
99
|
+
const openEdit = (row) => {
|
|
100
|
+
var _a;
|
|
101
|
+
if (row.kind === 'service') {
|
|
102
|
+
setEditing({ secret: row.secret, credential: row.credential, aiKey: null });
|
|
103
|
+
}
|
|
104
|
+
else if (row.kind === 'ai') {
|
|
105
|
+
setEditing({ secret: null, credential: null, aiKey: row.provider });
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
const credential = (_a = credentials.find((option) => option.id === row.secret.source_credential_id)) !== null && _a !== void 0 ? _a : null;
|
|
109
|
+
setEditing({ secret: row.secret, credential, aiKey: null });
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const openDelete = (row, model = null) => {
|
|
113
|
+
setDeleteError(null);
|
|
114
|
+
setDeleting({ row, model });
|
|
115
|
+
};
|
|
116
|
+
const closeDelete = () => {
|
|
117
|
+
setDeleting(null);
|
|
118
|
+
setDeleteError(null);
|
|
119
|
+
};
|
|
120
|
+
const toggleModels = (providerName) => {
|
|
121
|
+
setExpandedProviders((previous) => {
|
|
122
|
+
const next = new Set(previous);
|
|
123
|
+
if (next.has(providerName))
|
|
124
|
+
next.delete(providerName);
|
|
125
|
+
else
|
|
126
|
+
next.add(providerName);
|
|
127
|
+
return next;
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
const handleDelete = async ({ row, model }) => {
|
|
131
|
+
var _a;
|
|
132
|
+
try {
|
|
133
|
+
if (row.kind === 'ai') {
|
|
134
|
+
await deleteAiCredential({
|
|
135
|
+
org: tenantKey,
|
|
136
|
+
name: row.provider.name,
|
|
137
|
+
platform_key: row.provider.platform || tenantKey,
|
|
138
|
+
...(model !== null && { model_name: model }),
|
|
139
|
+
}).unwrap();
|
|
140
|
+
}
|
|
141
|
+
else if (row.kind === 'service') {
|
|
142
|
+
await deleteCredential({
|
|
143
|
+
org: tenantKey,
|
|
144
|
+
platform_key: (_a = row.credential.platform) !== null && _a !== void 0 ? _a : tenantKey,
|
|
145
|
+
name: row.credential.name,
|
|
146
|
+
}).unwrap();
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
await deleteSecret({ org: tenantKey, envVar: row.secret.env_var }).unwrap();
|
|
150
|
+
}
|
|
151
|
+
toast.success(model !== null
|
|
152
|
+
? t('secrets.modelDeleted', { model })
|
|
153
|
+
: row.kind === 'custom'
|
|
154
|
+
? t('secrets.envVarDeleted')
|
|
155
|
+
: t('secrets.deleted', { name: secretRowName(row) }));
|
|
156
|
+
closeDelete();
|
|
157
|
+
onChanged === null || onChanged === void 0 ? void 0 : onChanged();
|
|
158
|
+
}
|
|
159
|
+
catch (error) {
|
|
160
|
+
const parsed = getVirtualMachineApiError(error);
|
|
161
|
+
setDeleteError(parsed.status === 403 ? t('secrets.forbiddenDelete') : t('secrets.deleteFailed'));
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
const rowSecret = (row) => row.kind === 'ai' ? null : row.secret;
|
|
165
|
+
const rowTestId = (row) => {
|
|
166
|
+
const secret = rowSecret(row);
|
|
167
|
+
return secret ? `vm-secret-row-${secret.env_var}` : `vm-secret-row-${row.key}`;
|
|
168
|
+
};
|
|
169
|
+
const rowLogo = (row) => row.kind === 'service' ? row.credential.logo : row.kind === 'ai' ? row.provider.logo : null;
|
|
170
|
+
const canEdit = (row) => row.kind !== 'ai' ||
|
|
171
|
+
isAiKeyEditable(aiProviders.find((provider) => provider.slug === row.provider.name));
|
|
172
|
+
const canDelete = (row) => row.kind !== 'ai' || !row.provider.readOnly;
|
|
173
|
+
const nameCell = (row) => {
|
|
174
|
+
const logo = rowLogo(row);
|
|
175
|
+
const name = secretRowName(row);
|
|
176
|
+
const models = row.kind === 'ai' ? row.provider.models : null;
|
|
177
|
+
const expanded = row.kind === 'ai' && expandedProviders.has(row.provider.name);
|
|
178
|
+
return (jsxs("div", { className: "flex items-center gap-2", children: [logo ? (jsx("img", { src: logo, alt: "", className: "h-6 w-6 rounded-sm object-contain" })) : (jsx(KeyRound, { className: "h-6 w-6 text-gray-400", "aria-hidden": "true" })), jsx("span", { className: "font-medium text-gray-900 dark:text-gray-100", children: name }), models !== null && (jsx("span", { className: "text-xs text-gray-500", children: t('secrets.azureModelCount', { count: models.length }) })), row.kind === 'ai' && models !== null && models.length > 0 && (jsx(TooltipIconButton, { label: t(expanded ? 'secrets.hideModels' : 'secrets.showModels', { name }), "aria-expanded": expanded, onClick: () => toggleModels(row.provider.name), "data-testid": `${rowTestId(row)}-models`, className: "h-7 w-7 p-0", children: expanded ? (jsx(ChevronDown, { className: "h-4 w-4", "aria-hidden": "true" })) : (jsx(ChevronRight, { className: "h-4 w-4", "aria-hidden": "true" })) }))] }));
|
|
179
|
+
};
|
|
180
|
+
// The key as the list shows it: the masked prefix of a known service's key
|
|
181
|
+
// field or of an AI provider's key (sensitive values come back as `sk-****`).
|
|
182
|
+
const keyCell = (row) => {
|
|
183
|
+
var _a, _b, _c, _d;
|
|
184
|
+
if (row.kind === 'ai') {
|
|
185
|
+
const shown = row.provider.models === null ? row.provider.maskedKey : '';
|
|
186
|
+
return shown ? shown.slice(0, 15) : '—';
|
|
187
|
+
}
|
|
188
|
+
const field = (_c = (_a = row.agentField) !== null && _a !== void 0 ? _a : (_b = row.fields.find((candidate) => candidate.isSensitive)) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : null;
|
|
189
|
+
const shown = field ? ((_d = row.credential.values[field]) !== null && _d !== void 0 ? _d : '') : '';
|
|
190
|
+
return shown ? shown.slice(0, 15) : '—';
|
|
191
|
+
};
|
|
192
|
+
const hostsCell = (secret) => {
|
|
193
|
+
const preview = secret.allow_hosts.slice(0, HOST_PREVIEW_COUNT);
|
|
194
|
+
const remaining = secret.allow_hosts.length - preview.length;
|
|
195
|
+
return (jsxs("ul", { role: "list", "aria-label": t('secrets.hostsListAriaLabel', { name: secret.name }), className: "flex flex-wrap gap-1", children: [preview.map((host) => (jsx("li", { className: "rounded-md border border-gray-200 bg-gray-50 px-2 py-0.5 font-mono text-xs text-gray-700", children: formatHostPort(host) }, host))), remaining > 0 && (jsx("li", { className: "px-1 py-0.5 text-xs text-gray-500", children: t('secrets.moreHosts', { count: remaining }) }))] }));
|
|
196
|
+
};
|
|
197
|
+
const deleteButton = (label, testId, onClick) => (jsx(TooltipIconButton, { label: label, onClick: onClick, "data-testid": testId, className: "text-red-600 hover:text-red-700", children: jsx(Trash2, { className: "h-4 w-4", "aria-hidden": "true" }) }));
|
|
198
|
+
const actionsCell = (row) => {
|
|
199
|
+
const name = secretRowName(row);
|
|
200
|
+
return (jsxs("div", { className: "flex justify-end gap-1", children: [canEdit(row) && (jsx(TooltipIconButton, { label: t('secrets.editAriaLabel', { name }), onClick: () => openEdit(row), "data-testid": `${rowTestId(row)}-edit`, children: jsx(Pencil, { className: "h-4 w-4", "aria-hidden": "true" }) })), canDelete(row) &&
|
|
201
|
+
deleteButton(t('secrets.deleteAriaLabel', { name }), `${rowTestId(row)}-delete`, () => openDelete(row))] }));
|
|
202
|
+
};
|
|
203
|
+
const modelRows = (row) => {
|
|
204
|
+
if (row.kind !== 'ai' || row.provider.models === null)
|
|
205
|
+
return null;
|
|
206
|
+
if (!expandedProviders.has(row.provider.name))
|
|
207
|
+
return null;
|
|
208
|
+
return row.provider.models.map((model) => {
|
|
209
|
+
const testId = `vm-secret-row-ai-${row.provider.name}-${model.name}`;
|
|
210
|
+
return (jsxs("tr", { "data-testid": testId, "data-kind": "ai", children: [jsx("td", { className: "px-6 py-3 pl-14 text-gray-700 dark:text-gray-300", children: model.name }), jsx("td", { className: "px-6 py-3 font-mono text-sm text-gray-600 dark:text-gray-300", children: model.maskedKey ? model.maskedKey.slice(0, 15) : '—' }), jsx("td", { className: "px-6 py-3", children: jsx("div", { className: "flex justify-end gap-1", children: deleteButton(t('secrets.deleteAriaLabel', { name: model.name }), `${testId}-delete`, () => openDelete(row, model.name)) }) })] }, testId));
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
const tableMessage = isLoading
|
|
214
|
+
? { text: t('secrets.loading') }
|
|
215
|
+
: rows.length > 0
|
|
216
|
+
? null
|
|
217
|
+
: // Behind a failed list "none" may be false, and invites re-adding a held key.
|
|
218
|
+
listFailed
|
|
219
|
+
? { text: t('secrets.sectionFailed'), testId: 'vm-secrets-failed' }
|
|
220
|
+
: { text: t(text.empty), testId: 'vm-secrets-empty' };
|
|
221
|
+
return (jsxs("div", { "data-testid": "vm-secrets-section", className: "space-y-4", children: [jsx(InfoBannerRow, { action: canAdd && (jsxs(Button, { size: "sm", onClick: () => setCreateOpen(true), disabled: choices === 'loading', "data-testid": text.addTestId, className: "cursor-pointer bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", children: [jsx(Plus, { className: "h-4 w-4", "aria-hidden": "true" }), t(text.add)] })), children: jsx(InfoBanner, { icon: jsx(KeyRound, { className: "h-5 w-5" }), children: t(text.banner) }) }), (listFailed || schemaFailed) && !isLoading && (jsxs("div", { role: "status", "data-testid": "vm-secrets-partial-failed", className: "flex flex-wrap items-center justify-between gap-3 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800", children: [jsx("p", { children: t(listFailed
|
|
222
|
+
? 'secrets.loadFailedPartial'
|
|
223
|
+
: section === 'llms'
|
|
224
|
+
? 'secrets.loadFailedLlms'
|
|
225
|
+
: 'secrets.loadFailedServices') }), onRetry && (jsx(Button, { type: "button", variant: "outline", size: "sm", onClick: onRetry, "data-testid": "vm-secrets-retry", children: t('secrets.tryAgain') }))] })), jsx("div", { className: "overflow-x-auto rounded-lg border border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-800", children: jsxs("table", { className: "w-full min-w-[600px] text-sm", children: [jsx("thead", { className: "border-b border-gray-200 bg-gray-50 dark:border-gray-600 dark:bg-gray-700", children: jsxs("tr", { children: [jsx("th", { className: "px-6 py-3 text-left font-medium text-gray-500 dark:text-gray-400", children: t('secrets.colName') }), isEnv ? (jsxs(Fragment, { children: [jsx("th", { className: "px-6 py-3 text-left font-medium whitespace-nowrap text-gray-500 dark:text-gray-400", children: t('secrets.colEnvVar') }), jsx("th", { className: "px-6 py-3 text-left font-medium text-gray-500 dark:text-gray-400", children: t('secrets.colHosts') })] })) : (jsx("th", { className: "px-6 py-3 text-left font-medium text-gray-500 dark:text-gray-400", children: t('secrets.colKey') })), jsx("th", { className: "w-[100px] px-6 py-3", children: jsx("span", { className: "sr-only", children: t('secrets.colActions') }) })] }) }), jsx("tbody", { className: "divide-y divide-gray-200 dark:divide-gray-600", children: tableMessage ? (jsx("tr", { children: jsx("td", { colSpan: isEnv ? 4 : 3, "data-testid": tableMessage.testId, className: "px-6 py-8 text-center text-sm text-gray-500", children: tableMessage.text }) })) : (rows.map((row) => (jsxs(Fragment$1, { children: [jsxs("tr", { "data-testid": rowTestId(row), "data-kind": row.kind, children: [jsx("td", { className: "px-6 py-4", children: nameCell(row) }), row.kind === 'custom' ? (jsxs(Fragment, { children: [jsx("td", { className: "px-6 py-4", children: jsx("code", { className: "rounded bg-gray-100 px-1.5 py-0.5 font-mono text-xs text-gray-800", children: row.secret.env_var }) }), jsx("td", { className: "px-6 py-4", children: hostsCell(row.secret) })] })) : (jsx("td", { className: "px-6 py-4 font-mono text-sm text-gray-900 dark:text-gray-100", children: keyCell(row) })), jsx("td", { className: "px-6 py-4", children: actionsCell(row) })] }), modelRows(row)] }, row.key)))) })] }) }), jsx(VmSecretDialog, { open: createOpen || editing !== null, onOpenChange: closeDialog, tenantKey: tenantKey, username: username,
|
|
226
|
+
// Services here would put the picker in front of the custom form; only a bound edit needs them.
|
|
227
|
+
services: isEnv && !(editing === null || editing === void 0 ? void 0 : editing.credential) ? NO_SERVICES : services, credentials: credentials, aiProviders: aiProviders, aiKeys: aiKeys, aiKeysSettled: aiKeysSettled, choices: isEnv ? 'ready' : choices, onRetryChoices: onRetry, takenEnvVars: takenEnvVars, customAllowed: isEnv, fromServicesTab: section === 'services', onListOutOfDate: () => onChanged === null || onChanged === void 0 ? void 0 : onChanged(), secret: (_b = editing === null || editing === void 0 ? void 0 : editing.secret) !== null && _b !== void 0 ? _b : null, credential: (_c = editing === null || editing === void 0 ? void 0 : editing.credential) !== null && _c !== void 0 ? _c : null, aiKey: (_d = editing === null || editing === void 0 ? void 0 : editing.aiKey) !== null && _d !== void 0 ? _d : null, onSaved: () => onChanged === null || onChanged === void 0 ? void 0 : onChanged() }), jsx(Dialog, { open: deleting !== null, onOpenChange: (open) => {
|
|
228
|
+
if (!open && !isDeleting)
|
|
229
|
+
closeDelete();
|
|
230
|
+
}, children: jsxs(DialogContent, { className: "max-w-md", "data-testid": "vm-secret-delete-dialog", children: [jsx(DialogHeader, { children: jsx(DialogTitle, { children: t(text.deleteTitle) }) }), jsxs(DialogDescription, { className: "text-gray-600", children: [deleteBefore, jsx("span", { className: "font-medium text-gray-900", children: deletingName }), deleteAfter] }), deleteError && (jsx("p", { role: "alert", "data-testid": "vm-secret-delete-error", className: "text-sm text-red-600", children: deleteError })), jsxs(DialogFooter, { className: "pt-2", children: [jsx(Button, { type: "button", variant: "outline", disabled: isDeleting, onClick: closeDelete, children: t('secrets.cancel') }), jsxs(Button, { type: "button", onClick: () => {
|
|
231
|
+
if (deleting)
|
|
232
|
+
void handleDelete(deleting);
|
|
233
|
+
}, disabled: isDeleting, "data-testid": "vm-secret-delete-confirm", className: "cursor-pointer bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", children: [isDeleting && jsx(LoaderCircle, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }), t('secrets.delete')] })] })] }) })] }));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export { SecretsList };
|
|
237
|
+
//# sourceMappingURL=secrets-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets-list.js","sources":["../../../../../../../../src/components/profile/secrets/sec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