@replicated/portal-components 0.0.25 → 0.0.27
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/branding-actions.js +6 -4
- package/dist/actions/branding-actions.js.map +1 -1
- package/dist/actions/change-team.js +1 -0
- package/dist/actions/change-team.js.map +1 -1
- package/dist/actions/index.d.mts +1 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +1 -50
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/install-actions.d.mts +1 -1
- package/dist/actions/install-actions.d.ts +1 -1
- package/dist/actions/install-actions.js +1 -0
- package/dist/actions/install-actions.js.map +1 -1
- package/dist/actions/invite-actions.js +6 -5
- package/dist/actions/invite-actions.js.map +1 -1
- package/dist/actions/magic-link-actions.js +6 -5
- package/dist/actions/magic-link-actions.js.map +1 -1
- package/dist/actions/service-account.d.mts +1 -1
- package/dist/actions/service-account.d.ts +1 -1
- package/dist/actions/service-account.js +1 -0
- package/dist/actions/service-account.js.map +1 -1
- package/dist/actions/support-bundles.d.mts +1 -1
- package/dist/actions/support-bundles.d.ts +1 -1
- package/dist/actions/support-bundles.js +1 -50
- package/dist/actions/support-bundles.js.map +1 -1
- package/dist/actions/team-settings.d.mts +1 -1
- package/dist/actions/team-settings.d.ts +1 -1
- package/dist/actions/team-settings.js +1 -0
- package/dist/actions/team-settings.js.map +1 -1
- package/dist/actions/trial-signup-actions.js +6 -5
- package/dist/actions/trial-signup-actions.js.map +1 -1
- package/dist/actions/trial-signup.js +6 -5
- package/dist/actions/trial-signup.js.map +1 -1
- package/dist/actions/user-settings.d.mts +1 -1
- package/dist/actions/user-settings.d.ts +1 -1
- package/dist/actions/user-settings.js +1 -0
- package/dist/actions/user-settings.js.map +1 -1
- package/dist/airgap-instances.d.mts +1 -1
- package/dist/airgap-instances.d.ts +1 -1
- package/dist/airgap-instances.js +25 -25
- package/dist/airgap-instances.js.map +1 -1
- package/dist/{saml-handlers.d.mts → api/saml.d.mts} +2 -2
- package/dist/{saml-handlers.d.ts → api/saml.d.ts} +2 -2
- package/dist/{saml-handlers.js → api/saml.js} +4 -3
- package/dist/api/saml.js.map +1 -0
- package/dist/api/support-bundles.d.mts +22 -0
- package/dist/api/support-bundles.d.ts +22 -0
- package/dist/api/support-bundles.js +245 -0
- package/dist/api/support-bundles.js.map +1 -0
- package/dist/{branding-BsMSywts.d.mts → branding-DmsrDTNE.d.mts} +2 -1
- package/dist/{branding-BsMSywts.d.ts → branding-DmsrDTNE.d.ts} +2 -1
- package/dist/esm/actions/branding-actions.js +6 -4
- package/dist/esm/actions/branding-actions.js.map +1 -1
- package/dist/esm/actions/change-team.js +1 -0
- package/dist/esm/actions/change-team.js.map +1 -1
- package/dist/esm/actions/index.js +2 -50
- package/dist/esm/actions/index.js.map +1 -1
- package/dist/esm/actions/install-actions.js +1 -0
- package/dist/esm/actions/install-actions.js.map +1 -1
- package/dist/esm/actions/invite-actions.js +6 -5
- package/dist/esm/actions/invite-actions.js.map +1 -1
- package/dist/esm/actions/magic-link-actions.js +6 -5
- package/dist/esm/actions/magic-link-actions.js.map +1 -1
- package/dist/esm/actions/service-account.js +1 -0
- package/dist/esm/actions/service-account.js.map +1 -1
- package/dist/esm/actions/support-bundles.js +2 -50
- package/dist/esm/actions/support-bundles.js.map +1 -1
- package/dist/esm/actions/team-settings.js +1 -0
- package/dist/esm/actions/team-settings.js.map +1 -1
- package/dist/esm/actions/trial-signup-actions.js +6 -5
- package/dist/esm/actions/trial-signup-actions.js.map +1 -1
- package/dist/esm/actions/trial-signup.js +6 -5
- package/dist/esm/actions/trial-signup.js.map +1 -1
- package/dist/esm/actions/user-settings.js +1 -0
- package/dist/esm/actions/user-settings.js.map +1 -1
- package/dist/esm/airgap-instances.js +25 -25
- package/dist/esm/airgap-instances.js.map +1 -1
- package/dist/esm/{saml-handlers.js → api/saml.js} +4 -3
- package/dist/esm/api/saml.js.map +1 -0
- package/dist/esm/api/support-bundles.js +243 -0
- package/dist/esm/api/support-bundles.js.map +1 -0
- package/dist/esm/helm-install-wizard.js +1 -0
- package/dist/esm/helm-install-wizard.js.map +1 -1
- package/dist/esm/index.js +262 -215
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/install-actions.js +1 -0
- package/dist/esm/install-actions.js.map +1 -1
- package/dist/esm/instance-card.js +25 -25
- package/dist/esm/instance-card.js.map +1 -1
- package/dist/esm/license-details.js +1 -0
- package/dist/esm/license-details.js.map +1 -1
- package/dist/esm/linux-install-wizard.js +1 -0
- package/dist/esm/linux-install-wizard.js.map +1 -1
- package/dist/esm/online-instance-list.js +25 -25
- package/dist/esm/online-instance-list.js.map +1 -1
- package/dist/esm/saml-callback-client.js.map +1 -1
- package/dist/esm/security-card.js +39 -24
- package/dist/esm/security-card.js.map +1 -1
- package/dist/esm/support-card.js +1 -0
- package/dist/esm/support-card.js.map +1 -1
- package/dist/esm/top-nav.js +82 -79
- package/dist/esm/top-nav.js.map +1 -1
- package/dist/esm/update-layout.js +82 -79
- package/dist/esm/update-layout.js.map +1 -1
- package/dist/esm/upload-support-bundle-modal.js +46 -16
- package/dist/esm/upload-support-bundle-modal.js.map +1 -1
- package/dist/esm/utils/index.js +48 -1
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/helm-install-wizard.d.mts +2 -2
- package/dist/helm-install-wizard.d.ts +2 -2
- package/dist/helm-install-wizard.js +1 -0
- package/dist/helm-install-wizard.js.map +1 -1
- package/dist/{index-DXy7RxOX.d.ts → index-Bcp17Mf3.d.ts} +1 -16
- package/dist/{index-JX9-CIMA.d.mts → index-DaH1bSuO.d.mts} +1 -16
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +262 -214
- package/dist/index.js.map +1 -1
- package/dist/install-actions.d.mts +2 -2
- package/dist/install-actions.d.ts +2 -2
- package/dist/install-actions.js +1 -0
- package/dist/install-actions.js.map +1 -1
- package/dist/instance-card.d.mts +1 -1
- package/dist/instance-card.d.ts +1 -1
- package/dist/instance-card.js +25 -25
- package/dist/instance-card.js.map +1 -1
- package/dist/license-details.js +1 -0
- package/dist/license-details.js.map +1 -1
- package/dist/linux-install-wizard.d.mts +2 -2
- package/dist/linux-install-wizard.d.ts +2 -2
- package/dist/linux-install-wizard.js +1 -0
- package/dist/linux-install-wizard.js.map +1 -1
- package/dist/online-instance-list.d.mts +1 -1
- package/dist/online-instance-list.d.ts +1 -1
- package/dist/online-instance-list.js +25 -25
- package/dist/online-instance-list.js.map +1 -1
- package/dist/pending-installations.d.mts +1 -1
- package/dist/pending-installations.d.ts +1 -1
- package/dist/saml-callback-client.d.mts +1 -1
- package/dist/saml-callback-client.d.ts +1 -1
- package/dist/saml-callback-client.js.map +1 -1
- package/dist/security-card.d.mts +1 -1
- package/dist/security-card.d.ts +1 -1
- package/dist/security-card.js +43 -24
- package/dist/security-card.js.map +1 -1
- package/dist/styles.css +4 -12
- package/dist/support-bundles-card.d.mts +1 -1
- package/dist/support-bundles-card.d.ts +1 -1
- package/dist/support-card.js +1 -0
- package/dist/support-card.js.map +1 -1
- package/dist/{top-nav-CEqw0KpO.d.ts → top-nav-8f2U69MF.d.ts} +1 -1
- package/dist/{top-nav-BUQAGoG1.d.mts → top-nav-B2yA3PC7.d.mts} +1 -1
- package/dist/top-nav.d.mts +2 -2
- package/dist/top-nav.d.ts +2 -2
- package/dist/top-nav.js +82 -79
- package/dist/top-nav.js.map +1 -1
- package/dist/update-layout.js +82 -79
- package/dist/update-layout.js.map +1 -1
- package/dist/upload-support-bundle-modal.d.mts +9 -9
- package/dist/upload-support-bundle-modal.d.ts +9 -9
- package/dist/upload-support-bundle-modal.js +46 -16
- package/dist/upload-support-bundle-modal.js.map +1 -1
- package/dist/upload-with-progress-D760HthX.d.mts +35 -0
- package/dist/upload-with-progress-D760HthX.d.ts +35 -0
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.js +48 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +10 -5
- package/dist/esm/saml-handlers.js.map +0 -1
- package/dist/saml-handlers.js.map +0 -1
package/dist/actions/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { C as CustomHostnameOverrides, E as EntitlementField, b as EntitlementValue, L as License, a as LicenseChannel, P as PortalLicenseField, f as fetchLicense } from '../fetch-license-iTyF7_GY.mjs';
|
|
2
|
-
export {
|
|
2
|
+
export { cd as AcceptInviteError, cb as AcceptInviteInput, cc as AcceptInviteResult, ba as AppFeatures, C as ChannelRelease, h as CreateServiceAccountInput, a as CreateServiceAccountResult, Z as CustomBrandingResponse, bt as Customer, ad as DeleteSupportBundleInput, ae as DeleteSupportBundleResult, bK as DeleteUserInput, bL as DeleteUserResult, b_ as DeprovisionSamlInput, b$ as DeprovisionSamlResult, ci as DocumentationResult, a1 as DownloadPortalRelease, ar as DownloadSBOMInput, ab as DownloadSupportBundleInput, ac as DownloadSupportBundleResult, F as FetchChannelReleasesResult, as as FetchCurrentUserInput, at as FetchCurrentUserResult, bs as FetchCustomersInput, bu as FetchCustomersResult, bC as FetchDashboardInstancesInput, bD as FetchDashboardInstancesResult, bS as FetchInstancesInput, bT as FetchInstancesResult, _ as FetchLicenseInput, $ as FetchLicenseResult, ay as FetchNotificationsInput, az as FetchNotificationsResult, bU as FetchSamlConfigInput, bV as FetchSamlConfigResult, bM as FetchServiceAccountsInput, bN as FetchServiceAccountsResult, bz as FetchTeamStatsInput, bB as FetchTeamStatsResult, bG as FetchTeamUsersInput, bH as FetchTeamUsersResult, an as GetSecurityInfoDiffInput, G as GetSecurityInfoDiffResult, ak as GetSecurityInfoInput, al as GetSecurityInfoResult, ap as GetSecurityInfoSBOMInput, aq as GetSecurityInfoSBOMResult, a3 as InitiateLoginInput, a4 as InitiateLoginResult, n as InstallInstructions, I as InstallOptions, o as InstallStep, aK as InstallType, be as Instance, bI as InviteUserInput, bJ as InviteUserResult, aM as KubernetesDistribution, bn as ListBundlesResult, a2 as ListReleasesResult, a8 as ListSupportBundlesInput, a9 as ListSupportBundlesResult, N as NetworkAvailability, ax as NotificationSetting, W as PortalActionContext, X as PortalActionVisibility, Y as PortalServerActionDefinition, cf as RefreshInviteInput, cg as RefreshInviteResult, aL as RegistryAvailability, a0 as ReleaseHelmChart, bO as RevokeServiceAccountInput, bP as RevokeServiceAccountResult, bQ as RotateServiceAccountTokenInput, bR as RotateServiceAccountTokenResult, bc as SAMLConfig, ao as SBOMMetadata, am as SecurityInfoDiff, ah as SecurityInstallType, S as SecurityReleaseImage, ai as SecurityScanSummary, aj as SecurityScanWrapper, bd as ServiceAccount, i as ServiceAccountData, bA as ServiceAccountSummary, bm as SupportBundleActionResult, aa as SupportBundleInsight, q as SupportBundleSummary, bv as SwitchCustomerInput, bw as SwitchCustomerResult, bk as TeamForUserSettings, bf as TeamUser, bY as ToggleSamlEnabledInput, bZ as ToggleSamlEnabledResult, aA as UpdateNotificationsInput, aB as UpdateNotificationsResult, bW as UpdateSamlConfigInput, bX as UpdateSamlConfigResult, av as UpdateUserInput, aw as UpdateUserResult, af as UploadSupportBundleCompleteInput, ag as UploadSupportBundleCompleteResult, cn as UserContext, co as UserPermissions, au as UserProfile, cm as UserResult, a7 as VerifyMagicLinkError, a5 as VerifyMagicLinkInput, a6 as VerifyMagicLinkResult, ce as acceptInvite, aV as createInstallOptionsAction, g as createServiceAccount, aZ as createServiceAccountAction, B as decodeJwtPayload, r as defineServerAction, y as deleteSupportBundle, bp as deleteSupportBundleAction, c2 as deleteUser, b0 as deleteUserAction, ca as deprovisionSaml, b9 as deprovisionSamlAction, aY as discardInstallationAction, O as downloadSecuritySBOM, x as downloadSupportBundle, bo as downloadSupportBundleAction, bb as fetchAppFeatures, ck as fetchAppInfo, aU as fetchChannelReleasesAction, Q as fetchCurrentUser, bg as fetchCurrentUserAction, s as fetchCustomBranding, bx as fetchCustomers, J as fetchDashboardComposite, bF as fetchDashboardInstances, cj as fetchDocumentation, c6 as fetchInstances, b5 as fetchInstancesAction, T as fetchNotifications, bi as fetchNotificationsAction, aT as fetchPendingInstallationsAction, c7 as fetchSamlConfig, b6 as fetchSamlConfigAction, c3 as fetchServiceAccounts, b1 as fetchServiceAccountsAction, bE as fetchTeamStats, c0 as fetchTeamUsers, a_ as fetchTeamUsersAction, bl as fetchTeamsForUserSettings, cl as fetchUser, br as getApiOrigin, E as getCustomerIdFromToken, aW as getInstallOptionsAction, K as getSecurityInfo, L as getSecurityInfoDiff, M as getSecurityInfoSBOM, A as getSupportBundleUploadUrl, v as initiateLogin, c1 as inviteUser, a$ as inviteUserAction, t as listReleases, w as listSupportBundles, bq as listSupportBundlesAction, ch as refreshInvite, c4 as revokeServiceAccount, b3 as revokeServiceAccountAction, c5 as rotateServiceAccountToken, b4 as rotateServiceAccountTokenAction, by as switchCustomer, c9 as toggleSamlEnabled, b8 as toggleSamlEnabledAction, aX as updateInstallOptionsAction, V as updateNotifications, bj as updateNotificationsAction, c8 as updateSamlConfig, b7 as updateSamlConfigAction, R as updateUser, bh as updateUserAction, z as uploadSupportBundle, H as verifyMagicLink } from '../index-DaH1bSuO.mjs';
|
|
3
3
|
export { changeTeamAction, fetchCustomersForMenu } from './change-team.mjs';
|
|
4
4
|
export { TrialSignupPayload, TrialSignupResult, TrialSignupVerifyResult } from './trial-signup.mjs';
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { C as CustomHostnameOverrides, E as EntitlementField, b as EntitlementValue, L as License, a as LicenseChannel, P as PortalLicenseField, f as fetchLicense } from '../fetch-license-iTyF7_GY.js';
|
|
2
|
-
export {
|
|
2
|
+
export { cd as AcceptInviteError, cb as AcceptInviteInput, cc as AcceptInviteResult, ba as AppFeatures, C as ChannelRelease, h as CreateServiceAccountInput, a as CreateServiceAccountResult, Z as CustomBrandingResponse, bt as Customer, ad as DeleteSupportBundleInput, ae as DeleteSupportBundleResult, bK as DeleteUserInput, bL as DeleteUserResult, b_ as DeprovisionSamlInput, b$ as DeprovisionSamlResult, ci as DocumentationResult, a1 as DownloadPortalRelease, ar as DownloadSBOMInput, ab as DownloadSupportBundleInput, ac as DownloadSupportBundleResult, F as FetchChannelReleasesResult, as as FetchCurrentUserInput, at as FetchCurrentUserResult, bs as FetchCustomersInput, bu as FetchCustomersResult, bC as FetchDashboardInstancesInput, bD as FetchDashboardInstancesResult, bS as FetchInstancesInput, bT as FetchInstancesResult, _ as FetchLicenseInput, $ as FetchLicenseResult, ay as FetchNotificationsInput, az as FetchNotificationsResult, bU as FetchSamlConfigInput, bV as FetchSamlConfigResult, bM as FetchServiceAccountsInput, bN as FetchServiceAccountsResult, bz as FetchTeamStatsInput, bB as FetchTeamStatsResult, bG as FetchTeamUsersInput, bH as FetchTeamUsersResult, an as GetSecurityInfoDiffInput, G as GetSecurityInfoDiffResult, ak as GetSecurityInfoInput, al as GetSecurityInfoResult, ap as GetSecurityInfoSBOMInput, aq as GetSecurityInfoSBOMResult, a3 as InitiateLoginInput, a4 as InitiateLoginResult, n as InstallInstructions, I as InstallOptions, o as InstallStep, aK as InstallType, be as Instance, bI as InviteUserInput, bJ as InviteUserResult, aM as KubernetesDistribution, bn as ListBundlesResult, a2 as ListReleasesResult, a8 as ListSupportBundlesInput, a9 as ListSupportBundlesResult, N as NetworkAvailability, ax as NotificationSetting, W as PortalActionContext, X as PortalActionVisibility, Y as PortalServerActionDefinition, cf as RefreshInviteInput, cg as RefreshInviteResult, aL as RegistryAvailability, a0 as ReleaseHelmChart, bO as RevokeServiceAccountInput, bP as RevokeServiceAccountResult, bQ as RotateServiceAccountTokenInput, bR as RotateServiceAccountTokenResult, bc as SAMLConfig, ao as SBOMMetadata, am as SecurityInfoDiff, ah as SecurityInstallType, S as SecurityReleaseImage, ai as SecurityScanSummary, aj as SecurityScanWrapper, bd as ServiceAccount, i as ServiceAccountData, bA as ServiceAccountSummary, bm as SupportBundleActionResult, aa as SupportBundleInsight, q as SupportBundleSummary, bv as SwitchCustomerInput, bw as SwitchCustomerResult, bk as TeamForUserSettings, bf as TeamUser, bY as ToggleSamlEnabledInput, bZ as ToggleSamlEnabledResult, aA as UpdateNotificationsInput, aB as UpdateNotificationsResult, bW as UpdateSamlConfigInput, bX as UpdateSamlConfigResult, av as UpdateUserInput, aw as UpdateUserResult, af as UploadSupportBundleCompleteInput, ag as UploadSupportBundleCompleteResult, cn as UserContext, co as UserPermissions, au as UserProfile, cm as UserResult, a7 as VerifyMagicLinkError, a5 as VerifyMagicLinkInput, a6 as VerifyMagicLinkResult, ce as acceptInvite, aV as createInstallOptionsAction, g as createServiceAccount, aZ as createServiceAccountAction, B as decodeJwtPayload, r as defineServerAction, y as deleteSupportBundle, bp as deleteSupportBundleAction, c2 as deleteUser, b0 as deleteUserAction, ca as deprovisionSaml, b9 as deprovisionSamlAction, aY as discardInstallationAction, O as downloadSecuritySBOM, x as downloadSupportBundle, bo as downloadSupportBundleAction, bb as fetchAppFeatures, ck as fetchAppInfo, aU as fetchChannelReleasesAction, Q as fetchCurrentUser, bg as fetchCurrentUserAction, s as fetchCustomBranding, bx as fetchCustomers, J as fetchDashboardComposite, bF as fetchDashboardInstances, cj as fetchDocumentation, c6 as fetchInstances, b5 as fetchInstancesAction, T as fetchNotifications, bi as fetchNotificationsAction, aT as fetchPendingInstallationsAction, c7 as fetchSamlConfig, b6 as fetchSamlConfigAction, c3 as fetchServiceAccounts, b1 as fetchServiceAccountsAction, bE as fetchTeamStats, c0 as fetchTeamUsers, a_ as fetchTeamUsersAction, bl as fetchTeamsForUserSettings, cl as fetchUser, br as getApiOrigin, E as getCustomerIdFromToken, aW as getInstallOptionsAction, K as getSecurityInfo, L as getSecurityInfoDiff, M as getSecurityInfoSBOM, A as getSupportBundleUploadUrl, v as initiateLogin, c1 as inviteUser, a$ as inviteUserAction, t as listReleases, w as listSupportBundles, bq as listSupportBundlesAction, ch as refreshInvite, c4 as revokeServiceAccount, b3 as revokeServiceAccountAction, c5 as rotateServiceAccountToken, b4 as rotateServiceAccountTokenAction, by as switchCustomer, c9 as toggleSamlEnabled, b8 as toggleSamlEnabledAction, aX as updateInstallOptionsAction, V as updateNotifications, bj as updateNotificationsAction, c8 as updateSamlConfig, b7 as updateSamlConfigAction, R as updateUser, bh as updateUserAction, z as uploadSupportBundle, H as verifyMagicLink } from '../index-Bcp17Mf3.js';
|
|
3
3
|
export { changeTeamAction, fetchCustomersForMenu } from './change-team.js';
|
|
4
4
|
export { TrialSignupPayload, TrialSignupResult, TrialSignupVerifyResult } from './trial-signup.js';
|
package/dist/actions/index.js
CHANGED
|
@@ -1111,55 +1111,6 @@ async function deleteSupportBundleActionImpl(bundleId) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
var deleteSupportBundleAction = traceServerAction("deleteSupportBundleAction", deleteSupportBundleActionImpl);
|
|
1114
|
-
async function uploadSupportBundleActionImpl(formData) {
|
|
1115
|
-
const sessionStore = await headers.cookies();
|
|
1116
|
-
const session = sessionStore.get("portal_session");
|
|
1117
|
-
if (!session?.value) {
|
|
1118
|
-
return { success: false, error: "Not authenticated" };
|
|
1119
|
-
}
|
|
1120
|
-
const file = formData.get("file");
|
|
1121
|
-
const appId = formData.get("appId");
|
|
1122
|
-
if (!file) {
|
|
1123
|
-
return { success: false, error: "No file provided" };
|
|
1124
|
-
}
|
|
1125
|
-
if (!appId) {
|
|
1126
|
-
return { success: false, error: "No app ID provided" };
|
|
1127
|
-
}
|
|
1128
|
-
const MAX_FILE_SIZE = 500 * 1024 * 1024;
|
|
1129
|
-
if (file.size > MAX_FILE_SIZE) {
|
|
1130
|
-
return { success: false, error: "File size exceeds 500MB limit" };
|
|
1131
|
-
}
|
|
1132
|
-
try {
|
|
1133
|
-
const endpoint = `${getApiOrigin()}/enterprise-portal/support-bundles/upload/${encodeURIComponent(appId)}`;
|
|
1134
|
-
const response = await authenticatedFetch(endpoint, {
|
|
1135
|
-
method: "POST",
|
|
1136
|
-
token: session.value,
|
|
1137
|
-
headers: {
|
|
1138
|
-
"Content-Type": "application/gzip"
|
|
1139
|
-
},
|
|
1140
|
-
body: file,
|
|
1141
|
-
// @ts-ignore - duplex is needed for streaming but not in TypeScript types yet
|
|
1142
|
-
duplex: "half"
|
|
1143
|
-
});
|
|
1144
|
-
if (!response.ok) {
|
|
1145
|
-
const errorText = await response.text().catch(() => "");
|
|
1146
|
-
throw new Error(`Upload failed: ${response.status} ${response.statusText}${errorText ? `: ${errorText}` : ""}`);
|
|
1147
|
-
}
|
|
1148
|
-
const data = await response.json();
|
|
1149
|
-
return {
|
|
1150
|
-
success: true,
|
|
1151
|
-
bundleId: data.bundleId,
|
|
1152
|
-
bundleSlug: data.slug
|
|
1153
|
-
};
|
|
1154
|
-
} catch (error) {
|
|
1155
|
-
console.error("[support-bundles] upload failed", error);
|
|
1156
|
-
return {
|
|
1157
|
-
success: false,
|
|
1158
|
-
error: error instanceof Error ? error.message : "Failed to upload support bundle"
|
|
1159
|
-
};
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
var uploadSupportBundleAction = traceServerAction("uploadSupportBundleAction", uploadSupportBundleActionImpl);
|
|
1163
1114
|
async function listSupportBundlesActionImpl() {
|
|
1164
1115
|
const sessionStore = await headers.cookies();
|
|
1165
1116
|
const session = sessionStore.get("portal_session");
|
|
@@ -1396,6 +1347,7 @@ var fetchCustomBrandingImpl = async () => {
|
|
|
1396
1347
|
title: payload.title,
|
|
1397
1348
|
primaryColor: payload.primaryColor,
|
|
1398
1349
|
secondaryColor: payload.secondaryColor,
|
|
1350
|
+
contact: payload.contact,
|
|
1399
1351
|
favicon: payload.faviconUrl,
|
|
1400
1352
|
supportPortalLink: payload.supportPortalLink || "",
|
|
1401
1353
|
background: payload.background,
|
|
@@ -2856,7 +2808,6 @@ exports.updateSamlConfigAction = updateSamlConfigAction;
|
|
|
2856
2808
|
exports.updateUser = updateUser;
|
|
2857
2809
|
exports.updateUserAction = updateUserAction;
|
|
2858
2810
|
exports.uploadSupportBundle = uploadSupportBundle;
|
|
2859
|
-
exports.uploadSupportBundleAction = uploadSupportBundleAction;
|
|
2860
2811
|
exports.verifyMagicLink = verifyMagicLink;
|
|
2861
2812
|
//# sourceMappingURL=index.js.map
|
|
2862
2813
|
//# sourceMappingURL=index.js.map
|