@replicated/portal-components 0.0.14 → 0.0.15
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/components/metadata/registry.json +2 -2
- package/components/metadata/registry.md +2 -2
- package/dist/actions/index.d.mts +20 -16
- package/dist/actions/index.d.ts +20 -16
- package/dist/actions/index.js +31 -0
- package/dist/actions/index.js.map +1 -1
- package/dist/esm/actions/index.js +31 -1
- package/dist/esm/actions/index.js.map +1 -1
- package/dist/esm/helm-install-wizard.js.map +1 -1
- package/dist/esm/index.js +32 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/install-actions.js.map +1 -1
- package/dist/esm/license-details.js.map +1 -1
- package/dist/esm/linux-install-wizard.js.map +1 -1
- package/dist/esm/security-card.js +38 -30
- package/dist/esm/security-card.js.map +1 -1
- package/dist/esm/support-card.js.map +1 -1
- package/dist/esm/top-nav.js.map +1 -1
- package/dist/esm/update-layout.js.map +1 -1
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/helm-install-wizard.js.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -1
- package/dist/index.js.map +1 -1
- package/dist/install-actions.js.map +1 -1
- package/dist/license-details.js.map +1 -1
- package/dist/linux-install-wizard.js.map +1 -1
- package/dist/security-card.d.mts +10 -5
- package/dist/security-card.d.ts +10 -5
- package/dist/security-card.js +38 -30
- package/dist/security-card.js.map +1 -1
- package/dist/support-card.js.map +1 -1
- package/dist/top-nav.js.map +1 -1
- package/dist/update-layout.js.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1096,6 +1096,36 @@ var getSecurityInfoSBOM = defineServerAction({
|
|
|
1096
1096
|
return envelope.data;
|
|
1097
1097
|
}
|
|
1098
1098
|
});
|
|
1099
|
+
var downloadSecuritySBOM = defineServerAction({
|
|
1100
|
+
id: "security/download-sbom",
|
|
1101
|
+
description: "Downloads the full SBOM file for a specific release",
|
|
1102
|
+
visibility: "customer",
|
|
1103
|
+
tags: ["security", "sbom", "download"],
|
|
1104
|
+
async run({ token, installType, channelSequence, isAirgap = false }, context) {
|
|
1105
|
+
if (!token || typeof token !== "string") {
|
|
1106
|
+
throw new Error("Security SBOM download requires a session token");
|
|
1107
|
+
}
|
|
1108
|
+
const params = new URLSearchParams({
|
|
1109
|
+
install_type: installType,
|
|
1110
|
+
channel_sequence: channelSequence.toString(),
|
|
1111
|
+
is_airgap: isAirgap.toString()
|
|
1112
|
+
});
|
|
1113
|
+
const url = `${getApiOrigin()}/enterprise-portal/security-sbom/download?${params.toString()}`;
|
|
1114
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1115
|
+
console.debug("[portal-components] downloading security SBOM via %s", url);
|
|
1116
|
+
}
|
|
1117
|
+
const response = await authenticatedFetch(url, {
|
|
1118
|
+
token,
|
|
1119
|
+
signal: context?.signal
|
|
1120
|
+
});
|
|
1121
|
+
if (!response.ok) {
|
|
1122
|
+
throw new Error(
|
|
1123
|
+
`Security SBOM download failed (${response.status} ${response.statusText})`
|
|
1124
|
+
);
|
|
1125
|
+
}
|
|
1126
|
+
return await response.text();
|
|
1127
|
+
}
|
|
1128
|
+
});
|
|
1099
1129
|
var fetchDashboardComposite = defineServerAction({
|
|
1100
1130
|
id: "dashboard/fetch-composite",
|
|
1101
1131
|
description: "Fetches all dashboard data from the composite Enterprise Portal API endpoint",
|
|
@@ -1943,6 +1973,6 @@ var refreshInvite = defineServerAction({
|
|
|
1943
1973
|
}
|
|
1944
1974
|
});
|
|
1945
1975
|
|
|
1946
|
-
export { acceptInvite, createServiceAccount, decodeJwtPayload, defineServerAction, deleteSupportBundle, deleteUser, deprovisionSaml, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchCustomers, fetchDashboardComposite, fetchDashboardInstances, fetchInstallOptions, fetchInstances, fetchLicenseDetails, fetchLicenseSummary, fetchNotifications, fetchSamlConfig, fetchServiceAccounts, fetchTeamStats, fetchTeamUsers, getApiOrigin, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, inviteUser, listReleases, listSupportBundles, refreshInvite, revokeServiceAccount, rotateServiceAccountToken, switchCustomer, toggleSamlEnabled, updateNotifications, updateSamlConfig, updateUser, uploadSupportBundle, verifyMagicLink };
|
|
1976
|
+
export { acceptInvite, createServiceAccount, decodeJwtPayload, defineServerAction, deleteSupportBundle, deleteUser, deprovisionSaml, downloadSecuritySBOM, downloadSupportBundle, fetchCurrentUser, fetchCustomBranding, fetchCustomers, fetchDashboardComposite, fetchDashboardInstances, fetchInstallOptions, fetchInstances, fetchLicenseDetails, fetchLicenseSummary, fetchNotifications, fetchSamlConfig, fetchServiceAccounts, fetchTeamStats, fetchTeamUsers, getApiOrigin, getCustomerIdFromToken, getSecurityInfo, getSecurityInfoDiff, getSecurityInfoSBOM, getSupportBundleUploadUrl, initiateLogin, inviteUser, listReleases, listSupportBundles, refreshInvite, revokeServiceAccount, rotateServiceAccountToken, switchCustomer, toggleSamlEnabled, updateNotifications, updateSamlConfig, updateUser, uploadSupportBundle, verifyMagicLink };
|
|
1947
1977
|
//# sourceMappingURL=index.js.map
|
|
1948
1978
|
//# sourceMappingURL=index.js.map
|