@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
package/dist/actions/index.d.mts
CHANGED
|
@@ -281,21 +281,14 @@ interface GetSecurityInfoDiffResult {
|
|
|
281
281
|
to_channel_sequence: number;
|
|
282
282
|
images: Record<string, SecurityInfoDiff>;
|
|
283
283
|
}
|
|
284
|
-
interface
|
|
285
|
-
sbom: string;
|
|
286
|
-
sbom_source: string;
|
|
287
|
-
}
|
|
288
|
-
interface SpdxCreationInfo {
|
|
289
|
-
created: string;
|
|
290
|
-
creators: string[];
|
|
291
|
-
}
|
|
292
|
-
interface SpdxDocument {
|
|
293
|
-
SPDXID: string;
|
|
294
|
-
spdxVersion: string;
|
|
284
|
+
interface SBOMMetadata {
|
|
295
285
|
name: string;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
286
|
+
spdxVersion: string;
|
|
287
|
+
packageCount: number;
|
|
288
|
+
fileCount: number;
|
|
289
|
+
created?: string;
|
|
290
|
+
creator?: string;
|
|
291
|
+
source?: string;
|
|
299
292
|
}
|
|
300
293
|
interface GetSecurityInfoSBOMInput {
|
|
301
294
|
token: string;
|
|
@@ -306,9 +299,15 @@ interface GetSecurityInfoSBOMInput {
|
|
|
306
299
|
}
|
|
307
300
|
interface GetSecurityInfoSBOMResult {
|
|
308
301
|
sboms: {
|
|
309
|
-
unified?:
|
|
302
|
+
unified?: SBOMMetadata;
|
|
310
303
|
};
|
|
311
304
|
}
|
|
305
|
+
interface DownloadSBOMInput {
|
|
306
|
+
token: string;
|
|
307
|
+
installType: SecurityInstallType;
|
|
308
|
+
channelSequence: number;
|
|
309
|
+
isAirgap?: boolean;
|
|
310
|
+
}
|
|
312
311
|
/**
|
|
313
312
|
* Fetches security scan (CVE) information for a specific release.
|
|
314
313
|
*/
|
|
@@ -321,6 +320,11 @@ declare const getSecurityInfoDiff: PortalServerActionDefinition<GetSecurityInfoD
|
|
|
321
320
|
* Fetches SBOM (Software Bill of Materials) for a specific release.
|
|
322
321
|
*/
|
|
323
322
|
declare const getSecurityInfoSBOM: PortalServerActionDefinition<GetSecurityInfoSBOMInput, GetSecurityInfoSBOMResult>;
|
|
323
|
+
/**
|
|
324
|
+
* Downloads the full SBOM file for a specific release.
|
|
325
|
+
* Returns a download URL that can be used to fetch the SBOM.
|
|
326
|
+
*/
|
|
327
|
+
declare const downloadSecuritySBOM: PortalServerActionDefinition<DownloadSBOMInput, string>;
|
|
324
328
|
interface FetchTeamStatsInput {
|
|
325
329
|
token: string;
|
|
326
330
|
}
|
|
@@ -630,4 +634,4 @@ interface RefreshInviteResult {
|
|
|
630
634
|
*/
|
|
631
635
|
declare const refreshInvite: PortalServerActionDefinition<RefreshInviteInput, RefreshInviteResult>;
|
|
632
636
|
|
|
633
|
-
export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type
|
|
637
|
+
export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSBOMInput, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SBOMMetadata, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type SupportBundleInsight, type SupportBundleSummary, type SwitchCustomerInput, type SwitchCustomerResult, type TeamUser, type ToggleSamlEnabledInput, type ToggleSamlEnabledResult, type UpdateNotificationsInput, type UpdateNotificationsResult, type UpdateSamlConfigInput, type UpdateSamlConfigResult, type UpdateUserInput, type UpdateUserResult, type UploadSupportBundleCompleteInput, type UploadSupportBundleCompleteResult, type UploadSupportBundleInput, type UploadSupportBundleResult, type UserProfile, type VerifyMagicLinkError, type VerifyMagicLinkInput, type VerifyMagicLinkResult, 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 };
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -281,21 +281,14 @@ interface GetSecurityInfoDiffResult {
|
|
|
281
281
|
to_channel_sequence: number;
|
|
282
282
|
images: Record<string, SecurityInfoDiff>;
|
|
283
283
|
}
|
|
284
|
-
interface
|
|
285
|
-
sbom: string;
|
|
286
|
-
sbom_source: string;
|
|
287
|
-
}
|
|
288
|
-
interface SpdxCreationInfo {
|
|
289
|
-
created: string;
|
|
290
|
-
creators: string[];
|
|
291
|
-
}
|
|
292
|
-
interface SpdxDocument {
|
|
293
|
-
SPDXID: string;
|
|
294
|
-
spdxVersion: string;
|
|
284
|
+
interface SBOMMetadata {
|
|
295
285
|
name: string;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
286
|
+
spdxVersion: string;
|
|
287
|
+
packageCount: number;
|
|
288
|
+
fileCount: number;
|
|
289
|
+
created?: string;
|
|
290
|
+
creator?: string;
|
|
291
|
+
source?: string;
|
|
299
292
|
}
|
|
300
293
|
interface GetSecurityInfoSBOMInput {
|
|
301
294
|
token: string;
|
|
@@ -306,9 +299,15 @@ interface GetSecurityInfoSBOMInput {
|
|
|
306
299
|
}
|
|
307
300
|
interface GetSecurityInfoSBOMResult {
|
|
308
301
|
sboms: {
|
|
309
|
-
unified?:
|
|
302
|
+
unified?: SBOMMetadata;
|
|
310
303
|
};
|
|
311
304
|
}
|
|
305
|
+
interface DownloadSBOMInput {
|
|
306
|
+
token: string;
|
|
307
|
+
installType: SecurityInstallType;
|
|
308
|
+
channelSequence: number;
|
|
309
|
+
isAirgap?: boolean;
|
|
310
|
+
}
|
|
312
311
|
/**
|
|
313
312
|
* Fetches security scan (CVE) information for a specific release.
|
|
314
313
|
*/
|
|
@@ -321,6 +320,11 @@ declare const getSecurityInfoDiff: PortalServerActionDefinition<GetSecurityInfoD
|
|
|
321
320
|
* Fetches SBOM (Software Bill of Materials) for a specific release.
|
|
322
321
|
*/
|
|
323
322
|
declare const getSecurityInfoSBOM: PortalServerActionDefinition<GetSecurityInfoSBOMInput, GetSecurityInfoSBOMResult>;
|
|
323
|
+
/**
|
|
324
|
+
* Downloads the full SBOM file for a specific release.
|
|
325
|
+
* Returns a download URL that can be used to fetch the SBOM.
|
|
326
|
+
*/
|
|
327
|
+
declare const downloadSecuritySBOM: PortalServerActionDefinition<DownloadSBOMInput, string>;
|
|
324
328
|
interface FetchTeamStatsInput {
|
|
325
329
|
token: string;
|
|
326
330
|
}
|
|
@@ -630,4 +634,4 @@ interface RefreshInviteResult {
|
|
|
630
634
|
*/
|
|
631
635
|
declare const refreshInvite: PortalServerActionDefinition<RefreshInviteInput, RefreshInviteResult>;
|
|
632
636
|
|
|
633
|
-
export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type
|
|
637
|
+
export { type AcceptInviteError, type AcceptInviteInput, type AcceptInviteResult, type CreateServiceAccountInput, type CreateServiceAccountResult, type CustomBrandingResponse, type Customer, type DeleteSupportBundleInput, type DeleteSupportBundleResult, type DeleteUserInput, type DeleteUserResult, type DeprovisionSamlInput, type DeprovisionSamlResult, type DownloadSBOMInput, type DownloadSupportBundleInput, type DownloadSupportBundleResult, type FetchCurrentUserInput, type FetchCurrentUserResult, type FetchCustomersInput, type FetchCustomersResult, type FetchDashboardInstancesInput, type FetchDashboardInstancesResult, type FetchInstallOptionsInput, type FetchInstallOptionsResult, type FetchInstancesInput, type FetchInstancesResult, type FetchLicenseDetailsInput, type FetchLicenseDetailsResult, type FetchLicenseSummaryInput, type FetchLicenseSummaryResult, type FetchNotificationsInput, type FetchNotificationsResult, type FetchSamlConfigInput, type FetchSamlConfigResult, type FetchServiceAccountsInput, type FetchServiceAccountsResult, type FetchTeamStatsInput, type FetchTeamStatsResult, type FetchTeamUsersInput, type FetchTeamUsersResult, type GetSecurityInfoDiffInput, type GetSecurityInfoDiffResult, type GetSecurityInfoInput, type GetSecurityInfoResult, type GetSecurityInfoSBOMInput, type GetSecurityInfoSBOMResult, type InitiateLoginInput, type InitiateLoginResult, type Instance, type InviteUserInput, type InviteUserResult, type ListReleasesInput, type ListReleasesResult, type ListSupportBundlesInput, type ListSupportBundlesResult, type NotificationSetting, type PortalActionContext, type PortalActionVisibility, type PortalLicenseDetails, type PortalLicenseField, type PortalServerActionDefinition, type RefreshInviteInput, type RefreshInviteResult, type RevokeServiceAccountInput, type RevokeServiceAccountResult, type RotateServiceAccountTokenInput, type RotateServiceAccountTokenResult, type SAMLConfig, type SBOMMetadata, type SecurityInfoDiff, type SecurityInstallType, type SecurityReleaseImage, type SecurityScanSummary, type SecurityScanWrapper, type ServiceAccount, type ServiceAccountData, type ServiceAccountSummary, type SupportBundleInsight, type SupportBundleSummary, type SwitchCustomerInput, type SwitchCustomerResult, type TeamUser, type ToggleSamlEnabledInput, type ToggleSamlEnabledResult, type UpdateNotificationsInput, type UpdateNotificationsResult, type UpdateSamlConfigInput, type UpdateSamlConfigResult, type UpdateUserInput, type UpdateUserResult, type UploadSupportBundleCompleteInput, type UploadSupportBundleCompleteResult, type UploadSupportBundleInput, type UploadSupportBundleResult, type UserProfile, type VerifyMagicLinkError, type VerifyMagicLinkInput, type VerifyMagicLinkResult, 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 };
|
package/dist/actions/index.js
CHANGED
|
@@ -1098,6 +1098,36 @@ var getSecurityInfoSBOM = defineServerAction({
|
|
|
1098
1098
|
return envelope.data;
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
|
+
var downloadSecuritySBOM = defineServerAction({
|
|
1102
|
+
id: "security/download-sbom",
|
|
1103
|
+
description: "Downloads the full SBOM file for a specific release",
|
|
1104
|
+
visibility: "customer",
|
|
1105
|
+
tags: ["security", "sbom", "download"],
|
|
1106
|
+
async run({ token, installType, channelSequence, isAirgap = false }, context) {
|
|
1107
|
+
if (!token || typeof token !== "string") {
|
|
1108
|
+
throw new Error("Security SBOM download requires a session token");
|
|
1109
|
+
}
|
|
1110
|
+
const params = new URLSearchParams({
|
|
1111
|
+
install_type: installType,
|
|
1112
|
+
channel_sequence: channelSequence.toString(),
|
|
1113
|
+
is_airgap: isAirgap.toString()
|
|
1114
|
+
});
|
|
1115
|
+
const url = `${getApiOrigin()}/enterprise-portal/security-sbom/download?${params.toString()}`;
|
|
1116
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1117
|
+
console.debug("[portal-components] downloading security SBOM via %s", url);
|
|
1118
|
+
}
|
|
1119
|
+
const response = await authenticatedFetch(url, {
|
|
1120
|
+
token,
|
|
1121
|
+
signal: context?.signal
|
|
1122
|
+
});
|
|
1123
|
+
if (!response.ok) {
|
|
1124
|
+
throw new Error(
|
|
1125
|
+
`Security SBOM download failed (${response.status} ${response.statusText})`
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
return await response.text();
|
|
1129
|
+
}
|
|
1130
|
+
});
|
|
1101
1131
|
var fetchDashboardComposite = defineServerAction({
|
|
1102
1132
|
id: "dashboard/fetch-composite",
|
|
1103
1133
|
description: "Fetches all dashboard data from the composite Enterprise Portal API endpoint",
|
|
@@ -1952,6 +1982,7 @@ exports.defineServerAction = defineServerAction;
|
|
|
1952
1982
|
exports.deleteSupportBundle = deleteSupportBundle;
|
|
1953
1983
|
exports.deleteUser = deleteUser;
|
|
1954
1984
|
exports.deprovisionSaml = deprovisionSaml;
|
|
1985
|
+
exports.downloadSecuritySBOM = downloadSecuritySBOM;
|
|
1955
1986
|
exports.downloadSupportBundle = downloadSupportBundle;
|
|
1956
1987
|
exports.fetchCurrentUser = fetchCurrentUser;
|
|
1957
1988
|
exports.fetchCustomBranding = fetchCustomBranding;
|