@cloudigniter/next 0.0.0-stage → 0.3.1
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/README.md +34 -2
- package/dist/client/i18n/CiNextLocaleSwitcher.js +1 -0
- package/dist/client/i18n/index.js +1 -0
- package/dist/client/index.d.ts +304 -0
- package/dist/client/index.js +1 -0
- package/dist/client/navigation/ci-next-navigate-with-loader.js +1 -0
- package/dist/client/navigation/ci-replace-auth-document.js +1 -0
- package/dist/client/navigation/index.js +1 -0
- package/dist/client/page/CiBreadcrumbs.js +1 -0
- package/dist/client/page/CiPage.js +1 -0
- package/dist/client/page/ci-resolve-breadcrumb-menu-items.js +1 -0
- package/dist/client/page/index.js +1 -0
- package/dist/client/providers/aws/amplify/components/ci-amplify-client-configurer.js +1 -0
- package/dist/client/providers/aws/amplify/components/index.js +1 -0
- package/dist/client/providers/aws/amplify/index.js +1 -0
- package/dist/client/providers/aws/index.js +1 -0
- package/dist/client/providers/index.js +1 -0
- package/dist/client/settings/ci-settings-provider.js +1 -0
- package/dist/client/settings/ci-use-setting-value.js +1 -0
- package/dist/client/settings/ci-use-settings.js +1 -0
- package/dist/client/settings/index.js +1 -0
- package/dist/client/settings/ui/CiSettingsPage.js +1 -0
- package/dist/client/settings/ui/index.js +1 -0
- package/dist/client/settings/ui/settings-form/CiSettingsForm.js +1 -0
- package/dist/client/settings/ui/settings-form/CiSettingsFormContent.js +1 -0
- package/dist/client/settings/ui/settings-form/ci-config.js +1 -0
- package/dist/client/settings/ui/settings-form/ci-context.js +1 -0
- package/dist/client/settings/ui/settings-form/ci-default-values.js +1 -0
- package/dist/client/settings/ui/settings-form/ci-resolve-path.js +1 -0
- package/dist/client/settings/ui/settings-form/index.js +1 -0
- package/dist/client/settings/ui/settings-form/sections/CiEmailSettingsSection.js +1 -0
- package/dist/client/settings/ui/settings-form/sections/CiGeneralSettingsSection.js +1 -0
- package/dist/client/settings/ui/settings-form/sections/CiI18nSettingsSection.js +1 -0
- package/dist/client/settings/ui/settings-form/sections/CiMainMenuSettingsSection.js +1 -0
- package/dist/client/settings/ui/settings-form/sections/CiSecuritySettingsSection.js +1 -0
- package/dist/client/settings/ui/settings-form/sections/CiSettingsFormSection.js +1 -0
- package/dist/client/settings/ui/settings-form/sections/CiThemeSettingsSection.js +1 -0
- package/dist/client/theme/CiThemeSwitcher.js +1 -0
- package/dist/client/theme/ci-theme-provider.js +1 -0
- package/dist/client/theme/index.js +1 -0
- package/dist/client/wrapper/CiClientWrapper.js +1 -0
- package/dist/client/wrapper/CiInitialLoader.js +1 -0
- package/dist/client/wrapper/index.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +0 -0
- package/dist/layout/app-standard/CiLayout.js +1 -0
- package/dist/layout/app-standard/container/CiContainer.js +1 -0
- package/dist/layout/app-standard/container/index.js +1 -0
- package/dist/layout/app-standard/footer/CiCopyright.js +1 -0
- package/dist/layout/app-standard/footer/CiFooter.js +1 -0
- package/dist/layout/app-standard/footer/index.js +1 -0
- package/dist/layout/app-standard/header/CiHeader.js +1 -0
- package/dist/layout/app-standard/header/index.js +1 -0
- package/dist/layout/app-standard/index.d.ts +61 -0
- package/dist/layout/app-standard/index.js +1 -0
- package/dist/layout/cp-standard/CiLayout.js +1 -0
- package/dist/layout/cp-standard/container/CiContainer.js +1 -0
- package/dist/layout/cp-standard/container/index.js +1 -0
- package/dist/layout/cp-standard/footer/CiCopyright.js +1 -0
- package/dist/layout/cp-standard/footer/CiFooter.js +1 -0
- package/dist/layout/cp-standard/footer/CiSystemStatusDialog.js +0 -0
- package/dist/layout/cp-standard/footer/index.js +1 -0
- package/dist/layout/cp-standard/header/CiHeader.js +1 -0
- package/dist/layout/cp-standard/header/CiMainHeaderUserBox.js +1 -0
- package/dist/layout/cp-standard/header/index.js +1 -0
- package/dist/layout/cp-standard/index.d.ts +61 -0
- package/dist/layout/cp-standard/index.js +1 -0
- package/dist/layout/login-standard/CiLayout.js +1 -0
- package/dist/layout/login-standard/container/CiContainer.js +1 -0
- package/dist/layout/login-standard/container/index.js +1 -0
- package/dist/layout/login-standard/footer/CiCopyright.js +1 -0
- package/dist/layout/login-standard/footer/CiFooter.js +1 -0
- package/dist/layout/login-standard/footer/CiSystemStatusDialog.js +0 -0
- package/dist/layout/login-standard/footer/index.js +1 -0
- package/dist/layout/login-standard/header/CiHeader.js +1 -0
- package/dist/layout/login-standard/header/CiMainHeaderUserBox.js +1 -0
- package/dist/layout/login-standard/header/index.js +1 -0
- package/dist/layout/login-standard/index.d.ts +61 -0
- package/dist/layout/login-standard/index.js +1 -0
- package/dist/layout/shared/CiLayoutFrame.js +1 -0
- package/dist/layout/shared/CiLayoutParts.js +1 -0
- package/dist/layout/shared/ci-layout-style.js +1 -0
- package/dist/lib/auth/ci-resolve-auth-provider.js +1 -0
- package/dist/lib/i18n/index.js +0 -0
- package/dist/lib/index.d.ts +102 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/navigation/ci-is-external-href.js +1 -0
- package/dist/lib/navigation/index.js +1 -0
- package/dist/lib/resource-studio/ci-plan-next-data-entities.js +1 -0
- package/dist/lib/resource-studio/index.js +1 -0
- package/dist/lib/theme/ci-map-theme-config-to-next-theme-provider-props.js +1 -0
- package/dist/lib/theme/ci-resolve-next-theme-provider-props.js +1 -0
- package/dist/lib/theme/constants.js +1 -0
- package/dist/lib/theme/index.js +1 -0
- package/dist/locales/ar/common.json +115 -0
- package/dist/locales/ar/dashboard-dev.json +11 -0
- package/dist/locales/ar/dashboard-modules.json +69 -0
- package/dist/locales/ar/dashboard-org-units.json +5 -0
- package/dist/locales/ar/dashboard-settings.json +75 -0
- package/dist/locales/ar/dashboard-tenants.json +5 -0
- package/dist/locales/ar/dashboard-theme.json +6 -0
- package/dist/locales/ar/dashboard-trash.json +3 -0
- package/dist/locales/ar/dashboard.json +16 -0
- package/dist/locales/ar/home.json +3 -0
- package/dist/locales/en/common.json +115 -0
- package/dist/locales/en/dashboard-dev.json +11 -0
- package/dist/locales/en/dashboard-modules.json +69 -0
- package/dist/locales/en/dashboard-org-units.json +5 -0
- package/dist/locales/en/dashboard-settings.json +75 -0
- package/dist/locales/en/dashboard-tenants.json +5 -0
- package/dist/locales/en/dashboard-theme.json +6 -0
- package/dist/locales/en/dashboard-trash.json +3 -0
- package/dist/locales/en/dashboard.json +16 -0
- package/dist/locales/en/home.json +3 -0
- package/dist/locales/index.d.ts +7 -0
- package/dist/locales/index.js +1 -0
- package/dist/modules/auth/client/CiLogin.js +1 -0
- package/dist/modules/auth/client/CiLogoutButton.js +1 -0
- package/dist/modules/auth/client/ci-auth-client-module.js +1 -0
- package/dist/modules/auth/client/index.js +1 -0
- package/dist/modules/auth/client/providers/aws/CiNextAwsLogin.js +1 -0
- package/dist/modules/auth/client/providers/aws/CiNextAwsLogoutButton.js +1 -0
- package/dist/modules/auth/client/providers/aws/authenticator/ci-use-next-aws-authenticator-theme.js +1 -0
- package/dist/modules/auth/client/providers/aws/authenticator/index.js +1 -0
- package/dist/modules/auth/client/providers/aws/ci-use-next-aws-logout.js +1 -0
- package/dist/modules/auth/client/providers/aws/index.js +1 -0
- package/dist/modules/auth/client/providers/index.js +1 -0
- package/dist/modules/auth/lib/index.js +0 -0
- package/dist/modules/auth/manifest.js +1 -0
- package/dist/modules/auth/server/ci-auth-server-module.js +1 -0
- package/dist/modules/auth/server/index.js +1 -0
- package/dist/modules/client.js +1 -0
- package/dist/modules/dev/dev-beacon/client/CiDevBeaconClient.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/CiDevBeaconButton.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/CiDevBeaconModal.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/CiDevBeaconSideTabsList.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/CiDevBeaconCard.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/CiDevBeaconCardRow.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/CiDevBeaconCardRowGrid.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/CiDevBeaconCardRowSeparator.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/CiDevBeaconCardSummaryValue.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/CiDevBeaconCardTitle.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/CiDevBeaconTooltipBalloon.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/card/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/ci-dev-beacon-drag.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/CiDevBeaconSectionDiagnostics.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/CiDevBeaconGeneralDiagnisticsCard.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/CiDevBeaconAmplifyOutputsStatusRow.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/CiDevBeaconAuthenticatedUserSegment.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/CiDevBeaconPlatformInformationSegment.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/CiDevBeaconProvidersStatusRow.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/CiDevBeaconProvidersStatusSegment.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/CiDevBeaconResolutionCheckupModal.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/CiDevBeaconResolutionCheckupSegment.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/components/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/helpers/ci-get-tenant-resolution-checkup.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/helpers/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/types/CiDevResolutionCheckArea.js +0 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/general/types/index.js +0 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/language/CiDevBeaconLanguageCard.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/language/components/CiDevBeaconLanguageDetailsModal.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/language/components/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/request-context/CiDevBeaconRequestContextCard.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/tenant-route/CiDevBeaconTenantRouteCard.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/tenant-route/components/CiDevBeaconOrgUnitContextSegment.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/tenant-route/components/CiDevBeaconRouteContextSegment.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/tenant-route/components/CiDevBeaconRouteDefinitionsModal.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/tenant-route/components/CiDevBeaconTenantContextSegment.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/diagnostics/cards/tenant-route/components/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/system-config/CiDevBeaconSectionConfig.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/system-tools/CiDevBeaconSectionTools.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/template-updates/CiDevBeaconTemplateUpdates.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/sections/template-updates/useCiTemplateUpdates.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/trace/CiDevBeaconTraceLogViewerText.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/trace/CiDevBeaconTraceTab.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/trace/ci-trace-tabs.js +1 -0
- package/dist/modules/dev/dev-beacon/client/components/trace/index.js +1 -0
- package/dist/modules/dev/dev-beacon/client/index.js +1 -0
- package/dist/modules/dev/dev-beacon/manifest.js +1 -0
- package/dist/modules/dev/dev-beacon/server/CiDevBeacon.js +1 -0
- package/dist/modules/dev/dev-beacon/server/ci-template-update-route.js +1 -0
- package/dist/modules/dev/dev-beacon/server/index.js +1 -0
- package/dist/modules/dev/dev-beacon/server/types/CiNextAwsDevBeaconProps.js +0 -0
- package/dist/modules/dev/dev-beacon/server/types/index.js +0 -0
- package/dist/modules/lib.js +0 -0
- package/dist/modules/route/client/index.js +0 -0
- package/dist/modules/route/lib/index.js +0 -0
- package/dist/modules/route/manifest.js +1 -0
- package/dist/modules/route/server/ci-get-current-route.js +1 -0
- package/dist/modules/route/server/index.js +1 -0
- package/dist/modules/server.js +1 -0
- package/dist/modules/user/manifest.js +1 -0
- package/dist/server/aws/ci-create-next-aws-auth-session-route.js +1 -0
- package/dist/server/aws/ci-get-next-amplify-server-runner.js +1 -0
- package/dist/server/aws/ci-resolve-next-aws-auth-mode.js +1 -0
- package/dist/server/aws/ci-run-with-amplify-server-context.js +1 -0
- package/dist/server/aws/index.js +1 -0
- package/dist/server/aws/system/index.js +1 -0
- package/dist/server/aws/system/server-status.js +1 -0
- package/dist/server/aws/user/ci-aws-get-current-user.js +1 -0
- package/dist/server/aws/user/index.js +1 -0
- package/dist/server/context/ci-get-request-context.js +1 -0
- package/dist/server/context/ci-resolve-request-context-from-request.js +1 -0
- package/dist/server/context/index.js +1 -0
- package/dist/server/cookie/ci-get-cookies.js +1 -0
- package/dist/server/cookie/ci-get-next-server-cookie.js +1 -0
- package/dist/server/cookie/ci-set-next-server-cookie.js +1 -0
- package/dist/server/cookie/index.js +1 -0
- package/dist/server/dev/index.js +1 -0
- package/dist/server/dev/seeder/ci-read-mocks.js +1 -0
- package/dist/server/dev/seeder/index.js +1 -0
- package/dist/server/emberguard/ci-create-next-security-administration.js +1 -0
- package/dist/server/emberguard/index.js +1 -0
- package/dist/server/env/ci-get-env-mode.js +1 -0
- package/dist/server/env/index.js +1 -0
- package/dist/server/header/ci-get-headers.js +1 -0
- package/dist/server/header/index.js +1 -0
- package/dist/server/i18n/ci-get-server-locale.js +1 -0
- package/dist/server/i18n/ci-resolve-locale.js +1 -0
- package/dist/server/i18n/ci-set-server-locale.js +1 -0
- package/dist/server/i18n/index.js +1 -0
- package/dist/server/index.d.ts +641 -0
- package/dist/server/index.js +1 -0
- package/dist/server/modules/ci-create-next-extension-client.js +1 -0
- package/dist/server/org-unit/ci-get-org-unit-context.js +1 -0
- package/dist/server/org-unit/ci-resolve-org-unit-context.js +1 -0
- package/dist/server/org-unit/ci-resolve-org-unit.js +1 -0
- package/dist/server/org-unit/helpers/ci-lookup-org-unit.js +1 -0
- package/dist/server/org-unit/helpers/ci-resolve-org-unit.js +1 -0
- package/dist/server/org-unit/helpers/index.js +1 -0
- package/dist/server/org-unit/index.js +1 -0
- package/dist/server/proxy/ci-handle-route-logic.js +1 -0
- package/dist/server/proxy/ci-next-proxy-matcher.js +1 -0
- package/dist/server/proxy/ci-next-proxy-response.js +1 -0
- package/dist/server/proxy/ci-session-cookies.js +1 -0
- package/dist/server/proxy/helpers/ci-create-route.js +1 -0
- package/dist/server/proxy/helpers/ci-get-bypass-flag.js +1 -0
- package/dist/server/proxy/helpers/ci-is-internal-path.js +1 -0
- package/dist/server/proxy/helpers/ci-is-static-file.js +1 -0
- package/dist/server/proxy/helpers/ci-rewrite-to-route-info-page.js +1 -0
- package/dist/server/proxy/helpers/index.js +1 -0
- package/dist/server/proxy/index.d.ts +191 -0
- package/dist/server/proxy/index.js +1 -0
- package/dist/server/proxy/types/CiNextProxyResponseInterface.js +0 -0
- package/dist/server/proxy/types/index.js +0 -0
- package/dist/server/settings/ci-create-next-aws-settings-manager.js +1 -0
- package/dist/server/settings/ci-delete-settings.js +1 -0
- package/dist/server/settings/ci-get-next-aws-settings-access.js +1 -0
- package/dist/server/settings/ci-get-settings.js +1 -0
- package/dist/server/settings/ci-initialize-core-user-settings-if-missing.js +1 -0
- package/dist/server/settings/ci-initialize-settings-if-missing.js +1 -0
- package/dist/server/settings/ci-seed-core-private-settings.js +1 -0
- package/dist/server/settings/ci-seed-core-public-settings.js +1 -0
- package/dist/server/settings/ci-seed-core-settings.js +1 -0
- package/dist/server/settings/ci-seed-core-user-settings.js +1 -0
- package/dist/server/settings/ci-set-settings.js +1 -0
- package/dist/server/settings/example-usage.js +0 -0
- package/dist/server/settings/index.js +1 -0
- package/dist/server/tenant/ci-get-tenant-context.js +1 -0
- package/dist/server/tenant/ci-handle-tenant-logic.js +1 -0
- package/dist/server/tenant/ci-resolve-tenant-context.js +1 -0
- package/dist/server/tenant/ci-rewrite-tenant-route.js +1 -0
- package/dist/server/tenant/helpers/ci-get-host.js +1 -0
- package/dist/server/tenant/helpers/ci-lookup-tenant.js +1 -0
- package/dist/server/tenant/helpers/ci-normalize-base-path.js +1 -0
- package/dist/server/tenant/helpers/ci-normalize-root-domains.js +1 -0
- package/dist/server/tenant/helpers/ci-normalize-tenant-scope.js +1 -0
- package/dist/server/tenant/helpers/ci-normalize-tenant-status.js +1 -0
- package/dist/server/tenant/helpers/ci-resolve-slug-tenant.js +1 -0
- package/dist/server/tenant/helpers/ci-resolve-subdomain-tenant.js +1 -0
- package/dist/server/tenant/helpers/ci-resolve-tenant.js +1 -0
- package/dist/server/tenant/helpers/ci-rewrite-to-tenant-info-page.js +1 -0
- package/dist/server/tenant/helpers/ci-strip-port.js +1 -0
- package/dist/server/tenant/helpers/index.js +1 -0
- package/dist/server/tenant/index.js +1 -0
- package/dist/server/wrapper/CiNextRootWrapper.js +1 -0
- package/dist/server/wrapper/CiPageWrapper.js +1 -0
- package/dist/server/wrapper/index.js +1 -0
- package/dist/styles/standard/style.css +2 -0
- package/dist/styles/standard/theme/colors/ci-palette.css +64 -0
- package/dist/styles/standard/theme/colors/ci-status.css +52 -0
- package/dist/styles/standard/theme/colors/ci-system.css +131 -0
- package/dist/styles/standard/theme/foundations/ci-base.css +21 -0
- package/dist/styles/standard/theme/foundations/ci-layout.css +39 -0
- package/dist/styles/standard/theme/foundations/ci-motion.css +47 -0
- package/dist/styles/standard/theme/foundations/ci-radius.css +11 -0
- package/dist/styles/standard/theme/foundations/ci-shadow.css +11 -0
- package/dist/styles/standard/theme/foundations/ci-typography.css +33 -0
- package/dist/styles/standard/theme/theme.generated.css +560 -0
- package/dist/styles/standard/theme/utilities/ci-animation-utilities.css +92 -0
- package/dist/styles/standard/theme.css +12 -0
- package/dist/tooling/modules.d.ts +4 -0
- package/dist/tooling/modules.js +1 -0
- package/dist/types/index.d.ts +343 -0
- package/dist/ui/client/components/dashboard/CiNextDashboardCard.js +1 -0
- package/dist/ui/client/components/dashboard/CiNextDashboardHeaderButton.js +1 -0
- package/dist/ui/client/components/dashboard/index.js +1 -0
- package/dist/ui/client/components/index.js +1 -0
- package/dist/ui/client/components/main-menu/CiNextMainMenu.js +1 -0
- package/dist/ui/client/components/main-menu/CiNextMenuItem.js +1 -0
- package/dist/ui/client/components/main-menu/CiNextNavigationMenu.js +1 -0
- package/dist/ui/client/components/main-menu/index.js +1 -0
- package/dist/ui/client/components/mark/CiNextHeaderLogo.js +1 -0
- package/dist/ui/client/components/mark/index.js +1 -0
- package/dist/ui/client/components/modules/CiNextModuleManagementPage.js +1 -0
- package/dist/ui/client/components/profile-menu/CiNextProfileMenu.js +1 -0
- package/dist/ui/client/components/profile-menu/index.js +1 -0
- package/dist/ui/client/components/settings/CiNextAwsPersonalSettings.js +1 -0
- package/dist/ui/client/components/settings/CiNextSettingsManager.js +1 -0
- package/dist/ui/client/dev/debug-probe/CiDebugProbeClient.js +1 -0
- package/dist/ui/client/dev/debug-probe/CiDebugProbeProvider.js +1 -0
- package/dist/ui/client/dev/debug-probe/index.js +1 -0
- package/dist/ui/client/dev/index.js +1 -0
- package/dist/ui/client/dev/trace/ci-start-trace-client.js +1 -0
- package/dist/ui/client/dev/trace/ci-trace-logger-client.js +1 -0
- package/dist/ui/client/dev/trace/index.js +1 -0
- package/dist/ui/client/index.d.ts +244 -0
- package/dist/ui/client/index.js +1 -0
- package/dist/ui/client/pages/dashboard/dev/CiDevToolsPage.js +0 -0
- package/dist/ui/client/pages/dashboard/dev/sandbox/CiSandboxPage.js +1 -0
- package/dist/ui/client/pages/dashboard/dev/seeder/CiSeederPage.js +1 -0
- package/dist/ui/client/pages/dashboard/index.js +1 -0
- package/dist/ui/client/pages/dashboard/resources/CiNextResourceCatalogPage.js +1 -0
- package/dist/ui/client/pages/dashboard/resources/index.js +1 -0
- package/dist/ui/client/pages/dashboard/security/CiNextSecurityDataPage.js +1 -0
- package/dist/ui/client/pages/dashboard/security/index.js +1 -0
- package/dist/ui/client/pages/dashboard/tenants/CiTenantsPage.js +1 -0
- package/dist/ui/client/pages/dashboard/theme/CiThemePresentationPage.js +1 -0
- package/dist/ui/client/pages/dashboard/theme/index.js +1 -0
- package/dist/ui/client/pages/dashboard/users/index.js +1 -0
- package/dist/ui/client/pages/dashboard/users/users-management-page.js +0 -0
- package/dist/ui/client/pages/index.js +1 -0
- package/dist/ui/client/pages/login/CiNextAwsLoginPage.js +1 -0
- package/dist/ui/common/icon/CiIcon.js +1 -0
- package/dist/ui/common/icon/index.js +1 -0
- package/dist/ui/common/index.js +1 -0
- package/dist/ui/common/round-button-fallback/CiRoundButtonFallback.js +1 -0
- package/dist/ui/common/round-button-fallback/index.js +1 -0
- package/dist/ui/index.d.ts +5 -0
- package/dist/ui/index.js +1 -0
- package/dist/ui/server/dashboard/CiNextDashboardOverview.js +1 -0
- package/dist/ui/server/dashboard/CiNextDashboardPage.js +1 -0
- package/dist/ui/server/dashboard/index.js +1 -0
- package/dist/ui/server/dev/index.js +0 -0
- package/dist/ui/server/index.d.ts +113 -0
- package/dist/ui/server/index.js +1 -0
- package/dist/ui/server/main-header-navigation-box/CiMainHeaderNavigationBox.js +1 -0
- package/dist/ui/server/main-header-navigation-box/index.js +1 -0
- package/dist/ui/server/main-header-user-box/CiMainHeaderUserBox.js +1 -0
- package/dist/ui/server/main-header-user-box/index.js +1 -0
- package/dist/ui/server/main-header-user-box/types/CiMainHeaderUserBoxProps.js +0 -0
- package/dist/ui/server/main-header-user-box/types/index.js +0 -0
- package/dist/ui/server/page/CiNextAccessDeniedPreview.js +1 -0
- package/dist/ui/server/page/CiNextHttpErrorPage.js +1 -0
- package/package.json +181 -3
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
import { CiAmplifyOutputs, CiAwsAuthMode, CiAwsStatus, CiAwsProviderConfig, CiAwsEmberguardGraphqlOperations } from '@cloudigniter/aws/types';
|
|
2
|
+
import * as _aws_amplify_adapter_nextjs from '@aws-amplify/adapter-nextjs';
|
|
3
|
+
import { CiCoreSettings, CiSystemStatus, CiRequestContext, CiRequestSettings, CiAuthMode, CiUser, CiEnvMode, CiTenantContext, CiOrgUnitContext, CiRoute, CiRootLayoutContext, CiPlatformId, CiCoreConfig, CiResolvedCoreConfig, CiPageCoreConfig, CiAccessControlDefinition, CiSecurityAdministrationOptions, CiSettingsManagerOptions, CiSettingsUpdate, CiSettingsTarget, CiGraphQLResponse, CiSettingsOverwriteSelection, CiSettingsTenantTarget, CiExtensionManifest, CiModuleHost, CiResult, CiExtensionCatalog, CiExtensionCommand, CiExtensionConfiguration, CiDevBeaconActor, CiSeederItemKey, CiSecurityAdministration, CiGetServerLocaleInterface, CiLocale, CiCookieOptions, CiResolveOrgUnitInput, CiResolveOrgUnitResult, CiTenantRoutingOptions, CiSettingsService, CiDeleteSettingsInput, CiSettings, CiGetSettingsInput, CiResolvedSettings, CiSettingsScope, CiTargetTenantScope, CiSettingsRecord, CiSetSettingsInput, CiSettingsManager, CiSettingsAccess, CiResolveTenantContextResult, CiDevBeaconProps } from '@cloudigniter/core/types';
|
|
4
|
+
import { AuthUser } from '@aws-amplify/auth';
|
|
5
|
+
import { NextRequest, NextResponse } from 'next/server';
|
|
6
|
+
import { CiNextResolvedConfig as CiNextResolvedConfig$1 } from '@cloudigniter/next/types';
|
|
7
|
+
import { AbstractIntlMessages } from 'next-intl';
|
|
8
|
+
import * as _ci_core_types from '@ci-core/types';
|
|
9
|
+
import * as react from 'react';
|
|
10
|
+
import { ReactNode } from 'react';
|
|
11
|
+
import { ThemeProviderProps } from 'next-themes';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create a reusable AWS Amplify server runner for Next.js.
|
|
15
|
+
*
|
|
16
|
+
* Overview
|
|
17
|
+
* --------
|
|
18
|
+
* AWS Amplify's Next.js adapter exposes `createServerRunner(...)`, which
|
|
19
|
+
* returns a `runWithAmplifyServerContext(...)` function. That runner is the
|
|
20
|
+
* official mechanism used to execute Amplify server-side APIs within an
|
|
21
|
+
* isolated Next.js request context.
|
|
22
|
+
*
|
|
23
|
+
* This helper wraps that setup so CloudIgniter can:
|
|
24
|
+
*
|
|
25
|
+
* - initialize the runner once
|
|
26
|
+
* - reuse it throughout the application
|
|
27
|
+
* - keep Next.js-specific adapter code out of the AWS package
|
|
28
|
+
*
|
|
29
|
+
* Why this helper belongs in the Next package
|
|
30
|
+
* -------------------------------------------
|
|
31
|
+
* This helper is inherently framework-specific because it depends on:
|
|
32
|
+
*
|
|
33
|
+
* - `@aws-amplify/adapter-nextjs`
|
|
34
|
+
* - the Next.js request model
|
|
35
|
+
*
|
|
36
|
+
* Therefore it should remain in the Next package rather than the AWS package.
|
|
37
|
+
*
|
|
38
|
+
* Typical usage
|
|
39
|
+
* -------------
|
|
40
|
+
* Call this once during application bootstrap or in a central module, then
|
|
41
|
+
* reuse the returned `runWithAmplifyServerContext(...)` function anywhere you
|
|
42
|
+
* need to execute Amplify server-side APIs.
|
|
43
|
+
*
|
|
44
|
+
* @param config
|
|
45
|
+
* Amplify outputs/configuration used to initialize the Next.js Amplify server
|
|
46
|
+
* runner.
|
|
47
|
+
*
|
|
48
|
+
* @returns
|
|
49
|
+
* The `runWithAmplifyServerContext(...)` function created by the Amplify
|
|
50
|
+
* Next.js adapter.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const runWithAmplifyServerContext =
|
|
55
|
+
* ciGetNextAmplifyServerRunner(amplifyOutputs);
|
|
56
|
+
*
|
|
57
|
+
* const result = await runWithAmplifyServerContext({
|
|
58
|
+
* nextServerContext: { cookies },
|
|
59
|
+
* operation: (contextSpec) => getCurrentUser(contextSpec),
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
declare function ciGetNextAmplifyServerRunner(config: CiAmplifyOutputs): _aws_amplify_adapter_nextjs.NextServer.RunOperationWithContext;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Resolve the AWS auth mode for the current Next.js server request.
|
|
67
|
+
*
|
|
68
|
+
* Overview
|
|
69
|
+
* --------
|
|
70
|
+
* This helper is the Next.js adapter/wrapper around the framework-agnostic
|
|
71
|
+
* AWS helper `ciResolveAwsAuthMode(...)`.
|
|
72
|
+
*
|
|
73
|
+
* The AWS helper only knows how to answer:
|
|
74
|
+
*
|
|
75
|
+
* - "is there an authenticated Amplify server session?"
|
|
76
|
+
*
|
|
77
|
+
* It does not know how to obtain or pass a Next.js server context. This helper
|
|
78
|
+
* supplies that missing bridge by:
|
|
79
|
+
*
|
|
80
|
+
* 1. reading the current Next.js cookies function
|
|
81
|
+
* 2. adapting the generic AWS runner contract to the Next.js Amplify adapter
|
|
82
|
+
* 3. delegating the actual auth-mode decision to the AWS helper
|
|
83
|
+
*
|
|
84
|
+
* Why this split is useful
|
|
85
|
+
* ------------------------
|
|
86
|
+
* This architecture keeps responsibilities separated:
|
|
87
|
+
*
|
|
88
|
+
* - AWS package:
|
|
89
|
+
* provider-specific auth decision logic
|
|
90
|
+
*
|
|
91
|
+
* - Next package:
|
|
92
|
+
* framework-specific request context plumbing
|
|
93
|
+
*
|
|
94
|
+
* That means the AWS package no longer imports:
|
|
95
|
+
*
|
|
96
|
+
* - `next/headers`
|
|
97
|
+
* - `@aws-amplify/adapter-nextjs`
|
|
98
|
+
* - Next.js-specific context shapes
|
|
99
|
+
*
|
|
100
|
+
* @param runWithAmplifyServerContext
|
|
101
|
+
* The reusable Next.js Amplify server runner produced by
|
|
102
|
+
* `ciGetNextAmplifyServerRunner(...)`.
|
|
103
|
+
*
|
|
104
|
+
* @returns
|
|
105
|
+
* A Promise resolving to the AWS auth mode that should be used for the current
|
|
106
|
+
* Next.js server request:
|
|
107
|
+
*
|
|
108
|
+
* - `"userPool"` when an authenticated server session exists
|
|
109
|
+
* - `"apiKey"` when the request should be treated as guest/public
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* const runWithAmplifyServerContext =
|
|
114
|
+
* ciGetNextAmplifyServerRunner(amplifyOutputs);
|
|
115
|
+
*
|
|
116
|
+
* const authMode = await ciResolveNextAwsAuthMode(
|
|
117
|
+
* runWithAmplifyServerContext
|
|
118
|
+
* );
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
declare function ciResolveNextAwsAuthMode(runWithAmplifyServerContext: ReturnType<typeof ciGetNextAmplifyServerRunner>): Promise<CiAwsAuthMode>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* You can use the exported runWithAmplifyServerContext function to call Amplify APIs
|
|
125
|
+
* within isolated request contexts. You can review examples here:
|
|
126
|
+
* https://docs.amplify.aws/nextjs/build-a-backend/server-side-rendering/#calling-amplify-category-apis-on-the-server-side.
|
|
127
|
+
*
|
|
128
|
+
* You only need to call the createServerRunner function once and reuse the runWithAmplifyServerContext function throughout.
|
|
129
|
+
* @param config
|
|
130
|
+
* @returns
|
|
131
|
+
*/
|
|
132
|
+
declare function ciGetAmplifyServerContext(config: CiAmplifyOutputs): _aws_amplify_adapter_nextjs.NextServer.RunOperationWithContext;
|
|
133
|
+
|
|
134
|
+
declare const ciGetServerStatus: (settings: CiCoreSettings, amplifyConfig: CiAmplifyOutputs, isOk: boolean) => Promise<CiSystemStatus>;
|
|
135
|
+
|
|
136
|
+
type CurrentUserResult = {
|
|
137
|
+
user: AuthUser | null;
|
|
138
|
+
userId: string | null;
|
|
139
|
+
groups: readonly string[];
|
|
140
|
+
isAuthenticated: boolean;
|
|
141
|
+
email: string | null;
|
|
142
|
+
emailVerified: boolean | null;
|
|
143
|
+
displayName: string | null;
|
|
144
|
+
username: string | null;
|
|
145
|
+
signInId: string | null;
|
|
146
|
+
authFlow: string | null;
|
|
147
|
+
sessionExpiresAt: string | null;
|
|
148
|
+
accessToken: string | null;
|
|
149
|
+
idToken: string | null;
|
|
150
|
+
};
|
|
151
|
+
declare function ciAwsGetCurrentUser(amplifyOutputs: CiAmplifyOutputs): Promise<CurrentUserResult>;
|
|
152
|
+
|
|
153
|
+
/** Creates a cookie-preserving session check for the Next.js authentication gate. */
|
|
154
|
+
declare function ciCreateNextAwsAuthSessionRoute(outputs: CiAmplifyOutputs): (request: NextRequest) => Promise<NextResponse>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Reads and deserializes the unified CloudIgniter request context
|
|
158
|
+
* forwarded by Proxy.
|
|
159
|
+
*
|
|
160
|
+
* Returns null when the header does not exist. A malformed header throws
|
|
161
|
+
* because it indicates that Proxy and the server are using incompatible
|
|
162
|
+
* request-context formats.
|
|
163
|
+
*/
|
|
164
|
+
declare const ciGetRequestContext: (headerName?: string) => Promise<CiRequestContext | null>;
|
|
165
|
+
|
|
166
|
+
type CiNextContext = {
|
|
167
|
+
config: CiNextConfig;
|
|
168
|
+
settings?: CiRequestSettings;
|
|
169
|
+
auth: {
|
|
170
|
+
mode: CiAuthMode;
|
|
171
|
+
user: CiUser;
|
|
172
|
+
};
|
|
173
|
+
env: {
|
|
174
|
+
mode: CiEnvMode;
|
|
175
|
+
};
|
|
176
|
+
tenant: CiTenantContext | null;
|
|
177
|
+
orgUnit: CiOrgUnitContext | null;
|
|
178
|
+
featurePathname: string | null;
|
|
179
|
+
route: CiRoute | null;
|
|
180
|
+
headers?: Record<string, string>;
|
|
181
|
+
cookies?: Record<string, string>;
|
|
182
|
+
status?: CiNextStatus;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
type CiNextRootLayoutContext = CiRootLayoutContext & {
|
|
186
|
+
ctx: CiNextContext;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
type CiNextStatus = {
|
|
190
|
+
providers?: {
|
|
191
|
+
aws?: CiAwsStatus;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
type CiNextAppConfig = {
|
|
196
|
+
platform: CiPlatformId;
|
|
197
|
+
version?: string;
|
|
198
|
+
routerMode?: "App Router" | "Pages Router";
|
|
199
|
+
url?: string;
|
|
200
|
+
github?: string;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
type CiNextCoreConfig = CiCoreConfig & {
|
|
204
|
+
providers?: {
|
|
205
|
+
aws?: CiAwsProviderConfig;
|
|
206
|
+
};
|
|
207
|
+
app?: CiNextAppConfig;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
type CiNextConfig = {
|
|
211
|
+
appCoreConfig: CiNextCoreConfig;
|
|
212
|
+
appResolvedCoreConfig: CiResolvedCoreConfig;
|
|
213
|
+
appNextResolvedConfig: CiNextResolvedConfig$1;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Next.js-extended resolved config.
|
|
218
|
+
*/
|
|
219
|
+
type CiNextResolvedConfig = {
|
|
220
|
+
version: string | undefined;
|
|
221
|
+
routerMode: "App Router" | "Pages Router";
|
|
222
|
+
messages: AbstractIntlMessages;
|
|
223
|
+
appThemeProviderProps: ThemeProviderProps;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
interface CiResolveRequestContextFromRequestOptions {
|
|
227
|
+
request: Pick<NextRequest, "cookies" | "headers">;
|
|
228
|
+
headerName?: string;
|
|
229
|
+
cookieName?: string;
|
|
230
|
+
preferredSource?: "header" | "cookie";
|
|
231
|
+
/**
|
|
232
|
+
* When provided, only a resolved context for this public or feature
|
|
233
|
+
* pathname is returned. This prevents stale request transports from being
|
|
234
|
+
* used for a different browser route.
|
|
235
|
+
*/
|
|
236
|
+
pathname?: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
type CiNextPageConfig = CiPageCoreConfig & {
|
|
240
|
+
coreConfig: CiCoreConfig;
|
|
241
|
+
resolvedCoreConfig: CiResolvedCoreConfig;
|
|
242
|
+
nextResolvedConfig: CiNextResolvedConfig;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
type CiNextSecurityAdministrationOptions = Omit<CiSecurityAdministrationOptions, "actor"> & {
|
|
246
|
+
context: CiNextContext;
|
|
247
|
+
};
|
|
248
|
+
type CiNextAwsSecurityAdministrationOptions = {
|
|
249
|
+
context: CiNextContext;
|
|
250
|
+
definition: CiAccessControlDefinition;
|
|
251
|
+
amplifyOutputs: unknown;
|
|
252
|
+
operations: CiAwsEmberguardGraphqlOperations;
|
|
253
|
+
createId?: () => string;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
type CiNextAwsSettingsManagerOptions = Omit<CiSettingsManagerOptions, "store"> & {
|
|
257
|
+
/** False only when the generated backend has no Settings operations yet. Reads use registry defaults; writes fail. */
|
|
258
|
+
provisioned?: boolean;
|
|
259
|
+
operations: {
|
|
260
|
+
/** Sends all updates through an atomic, independently authorized backend operation. */
|
|
261
|
+
setMany?: (input: {
|
|
262
|
+
groups: readonly CiSettingsUpdate[];
|
|
263
|
+
target?: CiSettingsTarget;
|
|
264
|
+
}) => Promise<CiGraphQLResponse>;
|
|
265
|
+
overwrite?: (input: {
|
|
266
|
+
selection: readonly CiSettingsOverwriteSelection[];
|
|
267
|
+
target: CiSettingsTenantTarget;
|
|
268
|
+
}) => Promise<CiGraphQLResponse>;
|
|
269
|
+
get: (input: {
|
|
270
|
+
id: string;
|
|
271
|
+
target?: CiSettingsTarget;
|
|
272
|
+
manage?: boolean;
|
|
273
|
+
}, authenticated: boolean) => Promise<CiGraphQLResponse>;
|
|
274
|
+
set: (input: CiSettingsUpdate & {
|
|
275
|
+
target?: CiSettingsTarget;
|
|
276
|
+
}) => Promise<CiGraphQLResponse>;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
type CiNextEnabledExtension = {
|
|
281
|
+
manifest: CiExtensionManifest;
|
|
282
|
+
configuration: CiExtensionConfiguration;
|
|
283
|
+
};
|
|
284
|
+
type CiNextExtensionClientOptions = {
|
|
285
|
+
context: Pick<CiNextContext, "auth" | "env">;
|
|
286
|
+
manifests: readonly CiExtensionManifest[];
|
|
287
|
+
host: CiModuleHost;
|
|
288
|
+
operations: {
|
|
289
|
+
manage?: (input: Record<string, unknown>) => Promise<CiGraphQLResponse>;
|
|
290
|
+
execute?: (input: Record<string, unknown>) => Promise<CiGraphQLResponse>;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
type CiNextExtensionClient = {
|
|
294
|
+
list(): Promise<CiResult<CiExtensionCatalog>>;
|
|
295
|
+
command(command: CiExtensionCommand): Promise<CiResult<CiExtensionCatalog>>;
|
|
296
|
+
enabled(): Promise<CiResult<CiNextEnabledExtension[]>>;
|
|
297
|
+
execute(id: string, input: unknown): Promise<CiResult<unknown>>;
|
|
298
|
+
detected(): CiExtensionCatalog;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
interface CiTemplateUpdateRouteOptions {
|
|
302
|
+
applicationRoot: string;
|
|
303
|
+
getActor: () => Promise<CiDevBeaconActor>;
|
|
304
|
+
getEnvironment: () => string | undefined;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Resolves a serialized CloudIgniter context from a concrete Next.js request.
|
|
309
|
+
*
|
|
310
|
+
* Both the proxy-only header and browser cookie are validated independently.
|
|
311
|
+
* When a pathname is supplied, a candidate is accepted only when its resolved
|
|
312
|
+
* route belongs to that pathname. The caller can then choose the transport
|
|
313
|
+
* appropriate to its runtime boundary without an invalid or stale candidate
|
|
314
|
+
* masking the other one.
|
|
315
|
+
*/
|
|
316
|
+
declare function ciResolveRequestContextFromRequest({ request, headerName, cookieName, preferredSource, pathname, }: CiResolveRequestContextFromRequestOptions): CiRequestContext | null;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Read all request cookies whose name starts with "ci-".
|
|
320
|
+
* - Returns a plain object map.
|
|
321
|
+
* - If duplicate cookie names exist, later ones overwrite earlier ones.
|
|
322
|
+
* - A Server-only utility (Next.js App Router)!
|
|
323
|
+
* - e.g. const ciCookies = await getCiCookies();
|
|
324
|
+
*/
|
|
325
|
+
declare function ciGetCookies(): Promise<Record<string, string>>;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Get a server-side cookie in Next.js.
|
|
329
|
+
* @param name The name of the cookie.
|
|
330
|
+
* @returns The value of the cookie or null if not found.
|
|
331
|
+
*/
|
|
332
|
+
declare function ciGetNextServerCookie(name: string): Promise<string | undefined>;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Set a server-side cookie in Next.js.
|
|
336
|
+
* @param name The name of the cookie.
|
|
337
|
+
* @param value The value of the cookie.
|
|
338
|
+
* @param options Additional options for the cookie (e.g., expires, path, etc.).
|
|
339
|
+
*/
|
|
340
|
+
declare function ciSetNextServerCookie(name: string, value: string, options?: {
|
|
341
|
+
expires?: Date;
|
|
342
|
+
maxAge?: number;
|
|
343
|
+
path?: string;
|
|
344
|
+
domain?: string;
|
|
345
|
+
httpOnly?: boolean;
|
|
346
|
+
secure?: boolean;
|
|
347
|
+
sameSite?: 'lax' | 'strict' | 'none';
|
|
348
|
+
}): Promise<void>;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Baseline rule:
|
|
352
|
+
* - Look for JSON files matching:
|
|
353
|
+
* - `${item}-mock.json`
|
|
354
|
+
* - OR any file that ends with `-mock.json` and starts with `${item}`
|
|
355
|
+
*
|
|
356
|
+
* You can extend to TS modules later (dynamic import) if you decide to allow `export default`.
|
|
357
|
+
*/
|
|
358
|
+
declare function ciReadMocksForItem(item: CiSeederItemKey): Promise<unknown>;
|
|
359
|
+
|
|
360
|
+
declare function ciGetEnvMode(): CiEnvMode | undefined;
|
|
361
|
+
|
|
362
|
+
/** Adapts the authenticated Next.js context to a generic security actor. */
|
|
363
|
+
declare function ciCreateNextSecurityAdministration(options: CiNextSecurityAdministrationOptions): CiSecurityAdministration;
|
|
364
|
+
/** Binds Next.js security administration to the AWS Amplify/Cognito adapter. */
|
|
365
|
+
declare function ciCreateNextAwsSecurityAdministration(options: CiNextAwsSecurityAdministrationOptions): CiSecurityAdministration;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Read all request headers whose name starts with "x-ci-".
|
|
369
|
+
* - Returns a plain object map.
|
|
370
|
+
* - Header names are matched case-insensitively (HTTP headers are case-insensitive).
|
|
371
|
+
* - A Server-only utility (Next.js App Router)!
|
|
372
|
+
* - e.g. const ciHeaders = await getCiHeaders();
|
|
373
|
+
*/
|
|
374
|
+
declare function ciGetHeaders(prefix?: string): Promise<Record<string, string>>;
|
|
375
|
+
|
|
376
|
+
declare function ciGetServerLocale(input?: CiGetServerLocaleInterface): Promise<CiLocale>;
|
|
377
|
+
|
|
378
|
+
declare function ciResolveLocale(commonMessages: AbstractIntlMessages, customCommonMessages: AbstractIntlMessages, publicMessages: AbstractIntlMessages, customPublicMessages: AbstractIntlMessages, namespaceMessages: AbstractIntlMessages, customNamespaceMessages: AbstractIntlMessages): AbstractIntlMessages;
|
|
379
|
+
|
|
380
|
+
declare function ciSetServerLocale(locale: string, cookieName?: string, options?: CiCookieOptions): Promise<void>;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Returns the canonical Org Unit context for the current server request.
|
|
384
|
+
*
|
|
385
|
+
* The Org Unit is read from the authoritative CiRequestContext header written
|
|
386
|
+
* by the CloudIgniter proxy.
|
|
387
|
+
*
|
|
388
|
+
* This function does not resolve Org Units from the URL, cookies, or individual
|
|
389
|
+
* Org Unit headers. Resolution must happen in the proxy layer.
|
|
390
|
+
*/
|
|
391
|
+
declare function ciGetOrgUnitContext(): Promise<CiOrgUnitContext | null>;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Resolves the current Org Unit from the feature pathname.
|
|
395
|
+
*
|
|
396
|
+
* Uses longest-prefix matching so nested Org Units are supported.
|
|
397
|
+
*
|
|
398
|
+
* Example:
|
|
399
|
+
* "/academic/grade-10/math/dashboard"
|
|
400
|
+
*
|
|
401
|
+
* Tries:
|
|
402
|
+
* - "/academic/grade-10/math/dashboard"
|
|
403
|
+
* - "/academic/grade-10/math"
|
|
404
|
+
* - "/academic/grade-10"
|
|
405
|
+
* - "/academic"
|
|
406
|
+
*/
|
|
407
|
+
declare function ciResolveOrgUnit({ tenantId, featurePathname, maxDepth, lookupOrgUnit, }: CiResolveOrgUnitInput): Promise<CiResolveOrgUnitResult>;
|
|
408
|
+
|
|
409
|
+
type CiOrgUnitRequest = Pick<Request, "headers" | "url">;
|
|
410
|
+
/**
|
|
411
|
+
* Resolves the canonical Org Unit context for the current request.
|
|
412
|
+
*
|
|
413
|
+
* This function:
|
|
414
|
+
* - runs only for tenant-scoped routes
|
|
415
|
+
* - supports nested Org Unit paths using longest-prefix matching
|
|
416
|
+
* - resolves an Org Unit through the configured lookup source
|
|
417
|
+
* - returns the remaining feature pathname after removing the resolved
|
|
418
|
+
* Org Unit path
|
|
419
|
+
*
|
|
420
|
+
* Org Unit status enforcement is intentionally handled by
|
|
421
|
+
* ciHandleTenantLogic(), where middleware can rewrite suspended or archived
|
|
422
|
+
* Org Units to the appropriate informational page.
|
|
423
|
+
*/
|
|
424
|
+
declare function ciResolveOrgUnitContext({ request, tenantContext, featurePathname, tenantRoutingConfig, }: {
|
|
425
|
+
request: CiOrgUnitRequest;
|
|
426
|
+
tenantContext: CiTenantContext;
|
|
427
|
+
featurePathname: string;
|
|
428
|
+
tenantRoutingConfig: CiTenantRoutingOptions;
|
|
429
|
+
}): Promise<CiResolveOrgUnitResult>;
|
|
430
|
+
|
|
431
|
+
declare function ciDeleteSettings(service: CiSettingsService, input: CiDeleteSettingsInput): Promise<void>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Get settings through the provided settings service.
|
|
435
|
+
*/
|
|
436
|
+
declare function ciGetSettings<TSettings extends CiSettings = CiSettings>(service: CiSettingsService, input: CiGetSettingsInput): Promise<CiResolvedSettings<TSettings>>;
|
|
437
|
+
|
|
438
|
+
type CiInitializeSettingsIfMissingInput<TSettings extends CiSettings = CiSettings> = {
|
|
439
|
+
service: CiSettingsService;
|
|
440
|
+
settingsId: string;
|
|
441
|
+
scope: CiSettingsScope;
|
|
442
|
+
targetTenantScope: CiTargetTenantScope;
|
|
443
|
+
tenantId?: string;
|
|
444
|
+
userId?: string;
|
|
445
|
+
value: Partial<TSettings>;
|
|
446
|
+
};
|
|
447
|
+
type CiInitializeSettingsIfMissingResult<TSettings extends CiSettings = CiSettings> = {
|
|
448
|
+
initialized: false;
|
|
449
|
+
record: CiSettingsRecord<TSettings>;
|
|
450
|
+
} | {
|
|
451
|
+
initialized: true;
|
|
452
|
+
record: CiSettingsRecord<TSettings>;
|
|
453
|
+
};
|
|
454
|
+
declare function ciInitializeSettingsIfMissing<TSettings extends CiSettings = CiSettings>(input: CiInitializeSettingsIfMissingInput<TSettings>): Promise<CiInitializeSettingsIfMissingResult<TSettings>>;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Set a settings record through the provided settings service.
|
|
458
|
+
*/
|
|
459
|
+
declare function ciSetSettings<TSettings extends CiSettings = CiSettings>(service: CiSettingsService, input: CiSetSettingsInput<TSettings>): Promise<CiSettingsRecord<TSettings>>;
|
|
460
|
+
|
|
461
|
+
/** The backend resolves tenant copies and enforcement once; transport preserves that effective snapshot. */
|
|
462
|
+
declare function ciCreateNextAwsSettingsManager({ operations, provisioned, ...options }: CiNextAwsSettingsManagerOptions): CiSettingsManager;
|
|
463
|
+
|
|
464
|
+
/** Expected access failures are safe results, not server-render exceptions. */
|
|
465
|
+
declare function ciGetNextAwsSettingsAccess(getAccess: () => Promise<CiGraphQLResponse>): Promise<CiResult<CiSettingsAccess>>;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Returns the tenant context resolved by the Next.js Proxy.
|
|
469
|
+
*
|
|
470
|
+
* Returns null when the request-context header is missing or invalid.
|
|
471
|
+
*/
|
|
472
|
+
declare function ciGetTenantContext(headerName?: string): Promise<CiTenantContext | null>;
|
|
473
|
+
|
|
474
|
+
type CiTenantRequest$1 = Pick<Request, "headers" | "url"> & {
|
|
475
|
+
cookies: {
|
|
476
|
+
get(name: string): {
|
|
477
|
+
value: string;
|
|
478
|
+
} | undefined;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
interface CiHandleTenantLogicParams {
|
|
482
|
+
request: CiTenantRequest$1;
|
|
483
|
+
pathnameNormalized: string;
|
|
484
|
+
/**
|
|
485
|
+
* Tenant-routing options after top-level defaults have been applied.
|
|
486
|
+
*/
|
|
487
|
+
tenantRoutingOptions: Required<CiTenantRoutingOptions>;
|
|
488
|
+
}
|
|
489
|
+
interface CiTenantLogicBaseResult {
|
|
490
|
+
tenant: CiTenantContext;
|
|
491
|
+
orgUnit: CiOrgUnitContext | null;
|
|
492
|
+
/**
|
|
493
|
+
* Logical application pathname after removing Tenant and resolved Org Unit
|
|
494
|
+
* transport segments.
|
|
495
|
+
*/
|
|
496
|
+
featurePathname: string;
|
|
497
|
+
}
|
|
498
|
+
type CiHandleTenantLogicResult = (CiTenantLogicBaseResult & {
|
|
499
|
+
action: "info";
|
|
500
|
+
/**
|
|
501
|
+
* Internal Tenant or Org Unit information-page pathname.
|
|
502
|
+
*/
|
|
503
|
+
infoPagePath: string;
|
|
504
|
+
}) | (CiTenantLogicBaseResult & {
|
|
505
|
+
action: "continue";
|
|
506
|
+
});
|
|
507
|
+
/**
|
|
508
|
+
* Resolves the Tenant and optional Org Unit associated with a request.
|
|
509
|
+
*
|
|
510
|
+
* This function performs resolution and status evaluation only. It does not
|
|
511
|
+
* create responses or persist individual Tenant or Org Unit values. Response
|
|
512
|
+
* construction and serialized CiRequestContext transport are owned by
|
|
513
|
+
* ciNextProxyResponse().
|
|
514
|
+
*/
|
|
515
|
+
declare function ciHandleTenantLogic({ request, pathnameNormalized, tenantRoutingOptions, }: CiHandleTenantLogicParams): Promise<CiHandleTenantLogicResult>;
|
|
516
|
+
|
|
517
|
+
type CiTenantRequest = Pick<Request, "headers" | "url">;
|
|
518
|
+
/**
|
|
519
|
+
* Resolves the canonical Tenant context and logical feature pathname for the
|
|
520
|
+
* current request.
|
|
521
|
+
*
|
|
522
|
+
* Route resolution identifies the Tenant slug. When Tenant validation is
|
|
523
|
+
* enabled, the lookup step resolves the internal Tenant identifier and
|
|
524
|
+
* lifecycle information.
|
|
525
|
+
*
|
|
526
|
+
* This function does not create responses, perform informational-page
|
|
527
|
+
* navigation, or serialize CiRequestContext.
|
|
528
|
+
*/
|
|
529
|
+
declare function ciResolveTenantContext({ request, pathnameNormalized, tenantRoutingConfig, }: {
|
|
530
|
+
/**
|
|
531
|
+
* Active request containing the URL and routing headers.
|
|
532
|
+
*/
|
|
533
|
+
request: CiTenantRequest;
|
|
534
|
+
/**
|
|
535
|
+
* Normalized public request pathname.
|
|
536
|
+
*/
|
|
537
|
+
pathnameNormalized: string;
|
|
538
|
+
/**
|
|
539
|
+
* Optional Tenant-routing configuration.
|
|
540
|
+
*/
|
|
541
|
+
tenantRoutingConfig?: CiTenantRoutingOptions;
|
|
542
|
+
}): Promise<CiResolveTenantContextResult>;
|
|
543
|
+
|
|
544
|
+
type CiTenantRewriteRequest = Pick<Request, "url">;
|
|
545
|
+
/**
|
|
546
|
+
* Rewrites a validated logical feature route to the internal Tenant or Global
|
|
547
|
+
* application route while preserving forwarded request context headers.
|
|
548
|
+
*
|
|
549
|
+
* Examples:
|
|
550
|
+
* - Tenant: /dashboard -> /ci-tenant/dashboard
|
|
551
|
+
* - Global: /dashboard -> /ci-global/dashboard
|
|
552
|
+
*/
|
|
553
|
+
declare function ciRewriteTenantRoute({ request, requestHeaders, tenant, featurePathname, }: {
|
|
554
|
+
request: CiTenantRewriteRequest;
|
|
555
|
+
requestHeaders: Headers;
|
|
556
|
+
tenant: CiTenantContext;
|
|
557
|
+
featurePathname: string;
|
|
558
|
+
}): NextResponse;
|
|
559
|
+
|
|
560
|
+
declare const ciAuthServerModule: {
|
|
561
|
+
manifest: {
|
|
562
|
+
readonly schemaVersion: 1;
|
|
563
|
+
readonly id: "cloudigniter.auth";
|
|
564
|
+
readonly name: "Auth";
|
|
565
|
+
readonly description: "Provides authentication, session management, and authorization (access control management).";
|
|
566
|
+
readonly enabledByDefault: true;
|
|
567
|
+
readonly runtime: {
|
|
568
|
+
readonly client: true;
|
|
569
|
+
readonly server: true;
|
|
570
|
+
};
|
|
571
|
+
readonly target: {
|
|
572
|
+
readonly framework: "next";
|
|
573
|
+
readonly clouds: readonly ["aws"];
|
|
574
|
+
};
|
|
575
|
+
readonly dependencies: readonly [{
|
|
576
|
+
readonly id: "cloudigniter.i18n";
|
|
577
|
+
readonly environments: readonly ["client", "server"];
|
|
578
|
+
}, {
|
|
579
|
+
readonly id: "cloudigniter.theme";
|
|
580
|
+
readonly environments: readonly ["client"];
|
|
581
|
+
}];
|
|
582
|
+
readonly packageDependencies: readonly [{
|
|
583
|
+
readonly name: "@aws-amplify/ui-react";
|
|
584
|
+
readonly specifier: "catalog:";
|
|
585
|
+
readonly sections: readonly ["dependencies"];
|
|
586
|
+
}, {
|
|
587
|
+
readonly name: "aws-amplify";
|
|
588
|
+
readonly specifier: "catalog:";
|
|
589
|
+
readonly sections: readonly ["dependencies"];
|
|
590
|
+
}];
|
|
591
|
+
};
|
|
592
|
+
register(context: _ci_core_types.CiServerModuleContext<unknown>): void;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* DevBeacon (Server Component).
|
|
597
|
+
*
|
|
598
|
+
* Responsibilities:
|
|
599
|
+
* - Apply server-side visibility gating (avoid shipping client UI when not needed).
|
|
600
|
+
* - Normalize and pass only serializable props to the Client wrapper.
|
|
601
|
+
*
|
|
602
|
+
* The Client wrapper (`DevBeaconWrapper`) is responsible for:
|
|
603
|
+
* - DOM measurement (header/footer offsets)
|
|
604
|
+
* - interactive state (open/close, loaded state)
|
|
605
|
+
* - rendering tabs and client-only content (Trace, Monaco, etc.)
|
|
606
|
+
*/
|
|
607
|
+
declare function CiDevBeacon({ context, updatesOnly, position, visibleWhenEnv, defaultTab, logo, extraTabSpecs, viewportTopOffset, viewportBottomOffset, }: CiDevBeaconProps<CiNextContext>): Promise<react.JSX.Element | null>;
|
|
608
|
+
|
|
609
|
+
type CiNexAwsDevBeaconProps = {
|
|
610
|
+
config: CiDevBeaconProps<CiNextPageConfig> & {
|
|
611
|
+
messages?: AbstractIntlMessages;
|
|
612
|
+
themeProviderProps?: ThemeProviderProps;
|
|
613
|
+
amplifyOutputs?: CiAmplifyOutputs;
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
interface CloudIgniterClientWrapperInterface {
|
|
618
|
+
context: CiNextContext;
|
|
619
|
+
protect?: boolean;
|
|
620
|
+
children: ReactNode;
|
|
621
|
+
}
|
|
622
|
+
declare function CiPageWrapper({ context, protect, children, }: CloudIgniterClientWrapperInterface): Promise<react.JSX.Element>;
|
|
623
|
+
|
|
624
|
+
interface CiNextRootWrapperInterface {
|
|
625
|
+
context: CiNextRootLayoutContext;
|
|
626
|
+
children: ReactNode;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Server component: installs locale/messages and developer tools from the root
|
|
630
|
+
* render context. Authentication transitions must reload this shared layout.
|
|
631
|
+
*/
|
|
632
|
+
declare function CiNextRootWrapper({ context, children, }: CiNextRootWrapperInterface): Promise<react.JSX.Element>;
|
|
633
|
+
|
|
634
|
+
/** Next.js application/server-action boundary. The provider repeats every authoritative check. */
|
|
635
|
+
declare function ciCreateNextExtensionClient(options: CiNextExtensionClientOptions): CiNextExtensionClient;
|
|
636
|
+
|
|
637
|
+
/** Authenticates every request independently of proxy/page context. */
|
|
638
|
+
declare function ciCreateTemplateUpdateRoute(options: CiTemplateUpdateRouteOptions): (request: Request) => Promise<Response>;
|
|
639
|
+
|
|
640
|
+
export { CiDevBeacon, CiNextRootWrapper, CiPageWrapper, ciAuthServerModule, ciAwsGetCurrentUser, ciCreateNextAwsAuthSessionRoute, ciCreateNextAwsSecurityAdministration, ciCreateNextAwsSettingsManager, ciCreateNextExtensionClient, ciCreateNextSecurityAdministration, ciCreateTemplateUpdateRoute, ciDeleteSettings, ciGetAmplifyServerContext, ciGetCookies, ciGetEnvMode, ciGetHeaders, ciGetNextAmplifyServerRunner, ciGetNextAwsSettingsAccess, ciGetNextServerCookie, ciGetOrgUnitContext, ciGetRequestContext, ciGetServerLocale, ciGetServerStatus, ciGetSettings, ciGetTenantContext, ciHandleTenantLogic, ciInitializeSettingsIfMissing, ciReadMocksForItem, ciResolveLocale, ciResolveNextAwsAuthMode, ciResolveOrgUnit, ciResolveOrgUnitContext, ciResolveRequestContextFromRequest, ciResolveTenantContext, ciRewriteTenantRoute, ciSetNextServerCookie, ciSetServerLocale, ciSetSettings };
|
|
641
|
+
export type { CiNexAwsDevBeaconProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x315dbd,_0x3e9a38){var _0x179f95=_0x4209,_0x21e154=_0x315dbd();while(!![]){try{var _0x19dee8=parseInt(_0x179f95(0x1bd))/0x1+parseInt(_0x179f95(0x1bb))/0x2+parseInt(_0x179f95(0x1bf))/0x3*(parseInt(_0x179f95(0x1b6))/0x4)+-parseInt(_0x179f95(0x1b7))/0x5*(parseInt(_0x179f95(0x1b8))/0x6)+-parseInt(_0x179f95(0x1b5))/0x7+parseInt(_0x179f95(0x1be))/0x8*(-parseInt(_0x179f95(0x1bc))/0x9)+parseInt(_0x179f95(0x1b9))/0xa*(parseInt(_0x179f95(0x1ba))/0xb);if(_0x19dee8===_0x3e9a38)break;else _0x21e154['push'](_0x21e154['shift']());}catch(_0x4c999d){_0x21e154['push'](_0x21e154['shift']());}}}(_0x5057,0x28853));export{ciAwsGetCurrentUser,ciCreateNextAwsAuthSessionRoute,ciGetAmplifyServerContext,ciGetNextAmplifyServerRunner,ciGetServerStatus,ciResolveNextAwsAuthMode}from'./aws/index.js';export{ciGetRequestContext,ciResolveRequestContextFromRequest}from'./context/index.js';export{ciGetCookies,ciGetNextServerCookie,ciSetNextServerCookie}from'./cookie/index.js';export{ciReadMocksForItem}from'./dev/index.js';export{ciGetEnvMode}from'./env/index.js';export{ciCreateNextAwsSecurityAdministration,ciCreateNextSecurityAdministration}from'./emberguard/index.js';export{ciGetHeaders}from'./header/index.js';function _0x4209(_0x4a7879,_0x7e52d8){_0x4a7879=_0x4a7879-0x1b5;var _0x50574e=_0x5057();var _0x420990=_0x50574e[_0x4a7879];if(_0x4209['cuWQHd']===undefined){var _0x270610=function(_0x3484df){var _0x2d9a5a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x6ffdce='',_0x43ea6e='';for(var _0x3efeba=0x0,_0x4534c2,_0x1dd18e,_0x846bc9=0x0;_0x1dd18e=_0x3484df['charAt'](_0x846bc9++);~_0x1dd18e&&(_0x4534c2=_0x3efeba%0x4?_0x4534c2*0x40+_0x1dd18e:_0x1dd18e,_0x3efeba++%0x4)?_0x6ffdce+=String['fromCharCode'](0xff&_0x4534c2>>(-0x2*_0x3efeba&0x6)):0x0){_0x1dd18e=_0x2d9a5a['indexOf'](_0x1dd18e);}for(var _0x11aeb1=0x0,_0xb46056=_0x6ffdce['length'];_0x11aeb1<_0xb46056;_0x11aeb1++){_0x43ea6e+='%'+('00'+_0x6ffdce['charCodeAt'](_0x11aeb1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43ea6e);};_0x4209['fwiRUN']=_0x270610,_0x4209['embzNz']={},_0x4209['cuWQHd']=!![];}var _0xeea16=_0x50574e[0x0],_0x323236=_0x4a7879+_0xeea16,_0x53748b=_0x4209['embzNz'][_0x323236];return!_0x53748b?(_0x420990=_0x4209['fwiRUN'](_0x420990),_0x4209['embzNz'][_0x323236]=_0x420990):_0x420990=_0x53748b,_0x420990;}export{ciGetServerLocale,ciResolveLocale,ciSetServerLocale}from'./i18n/index.js';export{ciGetOrgUnitContext,ciResolveOrgUnit,ciResolveOrgUnitContext}from'./org-unit/index.js';export{ciCreateNextAwsSettingsManager,ciDeleteSettings,ciGetNextAwsSettingsAccess,ciGetSettings,ciInitializeSettingsIfMissing,ciSetSettings}from'./settings/index.js';export{ciGetTenantContext,ciHandleTenantLogic,ciResolveTenantContext,ciRewriteTenantRoute}from'./tenant/index.js';export{CiDevBeacon,ciAuthServerModule}from'../modules/server.js';function _0x5057(){var _0x399310=['mJeZmtmWCujNy1Lb','ouHNCw9tEq','mtqWodiZs2jTtfDc','mty3mtiYnejuy1fbAq','m3nIz3PbEq','mtKYmdCYm3bjshzQrq','ntK5mJi0ugLVq1nJ','mJK2nwjPrNzOCq','mZiYog1Wu0nlBW','mJG5otb3rhrzr1C','mJe2n2fusNnqqq'];_0x5057=function(){return _0x399310;};return _0x5057();}export{CiNextRootWrapper,CiPageWrapper}from'./wrapper/index.js';export{ciCreateNextExtensionClient}from'./modules/ci-create-next-extension-client.js';export{ciCreateTemplateUpdateRoute}from'../modules/dev/dev-beacon/server/ci-template-update-route.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0xb499(){const _0x548988=['C2v0','sw52ywXPzcbLBMfIBgvKlw1VzhvSzsbYzxnWB25Zzs4','mtaZmdeWmZfKyu1XreO','zMLUza','yxv0Aa','sw52ywXPzcbTB2r1BguGy2f0ywXVz3vLihjLC3bVBNnLlG','rgvWBg95ihrOzsbnB2r1BgvZigjHy2TLBMqGyw5KihjLz2vUzxjHDguGqw1WBgLMEsbVDxrWDxrZigjLzM9Yzsb1C2LUzYb0AgLZigzLyxr1CMuU','BgLZDa','C29YDa','mJK5mJu2nLfHuLj6rW','mti3mMjZCffKua','nJyWvvrgDwXX','tw9KDwXLignVzguGAxmGBM90ihbYzxnLBNqGAw4GDgHPCYbHChbSAwnHDgLVBI4','AgfZ','y2f0ywXVzW','odHTAwjczhy','yxv0AgvUDgLJyxrLza','CMv2AxnPB24','DMfSDwvZ','AxnbCNjHEq','Bw9Kzq','BwfW','ody4ntu5rNr2qNLZ','mtGZndDcyKr0t3G','BwfUywDL','C29Tzq','mJe3mJiYmeDXtfnfta','neLYtLvLwG','zMLSDgvY','ndi5ndHTD0fQEhi','zxjYB3i','Ag9ZDa','y29UDgv4Da','zxHLy3v0zq','CM9Szxm','BwfUAwzLC3rZ','DxnLCG','B3bLCMf0Aw9UCW','BwvZC2fNzq','yM9KEq','mJqXotK5oeLIEefdCG','DMvYC2LVBG','zw52','BwfUAwzLC3q','zw50CMLLCW'];_0xb499=function(){return _0x548988;};return _0xb499();}(function(_0xfab34f,_0x94b845){const _0x1b585a=_0x2054,_0x585614=_0xfab34f();while(!![]){try{const _0x535f72=parseInt(_0x1b585a(0x121))/0x1+-parseInt(_0x1b585a(0x106))/0x2+-parseInt(_0x1b585a(0x114))/0x3*(parseInt(_0x1b585a(0xf9))/0x4)+parseInt(_0x1b585a(0x116))/0x5*(parseInt(_0x1b585a(0xfb))/0x6)+parseInt(_0x1b585a(0x122))/0x7*(parseInt(_0x1b585a(0x115))/0x8)+-parseInt(_0x1b585a(0x10d))/0x9+-parseInt(_0x1b585a(0xf8))/0xa*(-parseInt(_0x1b585a(0x11a))/0xb);if(_0x535f72===_0x94b845)break;else _0x585614['push'](_0x585614['shift']());}catch(_0x30d1f1){_0x585614['push'](_0x585614['shift']());}}}(_0xb499,0x965aa));import{ciCanAccessDeveloperTools,ciParseGraphqlResponse,ciIsExtensionCompatible,ciValidateExtensionManifest}from'@cloudigniter/core/lib';function ciCreateNextExtensionClient(_0x5408e0){const _0x21e342=_0x2054,_0x208185=_0x14cf2e=>({'ok':![],'statusCode':0x190,'body':{'error':_0x14cf2e}});function _0x585775(_0x16a139=![]){const _0xcd4a4e=_0x2054;if(!_0x5408e0['context'][_0xcd4a4e(0x10f)]['user'][_0xcd4a4e(0x11b)])throw new Error('Sign\x20in\x20to\x20use\x20modules.');if(_0x16a139&&(!_0x5408e0[_0xcd4a4e(0xfe)][_0xcd4a4e(0x10f)]['user'][_0xcd4a4e(0x100)]['includes']('developer')||!ciCanAccessDeveloperTools({'envMode':_0x5408e0[_0xcd4a4e(0xfe)][_0xcd4a4e(0x108)][_0xcd4a4e(0x11f)],'actor':{'authenticated':!![],'roles':_0x5408e0['context'][_0xcd4a4e(0x10f)][_0xcd4a4e(0x102)][_0xcd4a4e(0x100)]}})))throw new Error('Module\x20management\x20requires\x20a\x20developer\x20in\x20development\x20mode.');}async function _0x5402f9(_0xaa1e00,_0x10a109){const _0xbd5fb=_0x2054;if(!_0xaa1e00)return _0x208185(_0xbd5fb(0x111));try{const _0x6d1c60=ciParseGraphqlResponse(await _0xaa1e00());if(!_0x6d1c60['ok'])return _0x208185(_0x6d1c60[_0xbd5fb(0x105)][_0xbd5fb(0xfc)]);return{'ok':!![],'statusCode':0xc8,'body':_0x10a109(_0x6d1c60[_0xbd5fb(0x105)])};}catch(_0x436da5){return _0x208185(_0x436da5 instanceof Error?_0x436da5[_0xbd5fb(0x104)]:'Module\x20request\x20failed.');}}const _0x3481a9=()=>({'revision':0x0,'entries':_0x5408e0[_0x21e342(0x101)][_0x21e342(0x120)](_0x59d9fb=>({'manifest':_0x59d9fb,'detected':!![],'compatible':ciIsExtensionCompatible(_0x59d9fb,_0x5408e0['host']),'backendAvailable':![]}))});function _0x5dbc64(_0xe10317){const _0x3a4cc1=_0x21e342;if(!_0xe10317||typeof _0xe10317!=='object'||!(_0x3a4cc1(0x11c)in _0xe10317)||!Number['isSafeInteger'](_0xe10317[_0x3a4cc1(0x11c)])||!('entries'in _0xe10317)||!Array['isArray'](_0xe10317[_0x3a4cc1(0x10a)]))throw new Error(_0x3a4cc1(0x110));const _0x3e122f=_0xe10317,_0x4106d3=new Map(_0x3e122f[_0x3a4cc1(0x10a)]['map'](_0x2dcfb8=>{const _0x6d55a7=_0x3a4cc1;ciValidateExtensionManifest(_0x2dcfb8['manifest']);const _0x457db5=_0x5408e0[_0x6d55a7(0x101)][_0x6d55a7(0x10e)](_0x2bda47=>_0x2bda47['id']===_0x2dcfb8[_0x6d55a7(0x109)]['id']);return[_0x2dcfb8[_0x6d55a7(0x109)]['id'],{..._0x2dcfb8,'manifest':_0x457db5??_0x2dcfb8['manifest'],'detected':!!_0x457db5,'compatible':ciIsExtensionCompatible(_0x457db5??_0x2dcfb8['manifest'],_0x5408e0[_0x6d55a7(0xfd)]),'backendAvailable':!!_0x457db5&&_0x2dcfb8['compatible']&&_0x2dcfb8[_0x6d55a7(0x109)]['version']===_0x457db5[_0x6d55a7(0x107)]}];}));for(const _0x3777bb of _0x3481a9()['entries'])if(!_0x4106d3[_0x3a4cc1(0x118)](_0x3777bb[_0x3a4cc1(0x109)]['id']))_0x4106d3[_0x3a4cc1(0x10b)](_0x3777bb['manifest']['id'],{..._0x3777bb,'backendAvailable':![]});return{'revision':_0x3e122f[_0x3a4cc1(0x11c)],'entries':[..._0x4106d3[_0x3a4cc1(0x11d)]()][_0x3a4cc1(0x113)]((_0x173bff,_0x22c3e9)=>_0x173bff[_0x3a4cc1(0x109)]['name']['localeCompare'](_0x22c3e9[_0x3a4cc1(0x109)]['name']))};}return{'detected':_0x3481a9,async 'list'(){const _0x349783=_0x21e342;try{_0x585775(!![]);}catch(_0x4260bd){return _0x208185(_0x4260bd[_0x349783(0x104)]);}return _0x5402f9(_0x5408e0[_0x349783(0x103)][_0x349783(0xf6)]?()=>_0x5408e0[_0x349783(0x103)]['manage']({'action':_0x349783(0x112)}):void 0x0,_0x5dbc64);},async 'command'(_0x45d0c1){const _0x40275c=_0x21e342;try{_0x585775(!![]);}catch(_0x1f4a47){return _0x208185(_0x1f4a47[_0x40275c(0x104)]);}return _0x5402f9(_0x5408e0[_0x40275c(0x103)][_0x40275c(0xf6)]?()=>_0x5408e0['operations'][_0x40275c(0xf6)]({..._0x45d0c1}):void 0x0,_0x5dbc64);},async 'enabled'(){const _0x2939a1=_0x21e342;try{_0x585775();}catch(_0x38ba75){return _0x208185(_0x38ba75[_0x2939a1(0x104)]);}if(!_0x5408e0[_0x2939a1(0x103)][_0x2939a1(0xff)])return{'ok':!![],'statusCode':0xc8,'body':[]};return _0x5402f9(()=>_0x5408e0[_0x2939a1(0x103)][_0x2939a1(0xff)]({'action':_0x2939a1(0x119)}),_0x214db4=>{const _0x4b74b0=_0x2939a1;if(!Array[_0x4b74b0(0x11e)](_0x214db4))throw new Error(_0x4b74b0(0x10c));return _0x214db4[_0x4b74b0(0xfa)](_0xda23cb=>{const _0x28d154=_0x4b74b0;return ciValidateExtensionManifest(_0xda23cb[_0x28d154(0x109)]),_0x5408e0[_0x28d154(0x101)][_0x28d154(0xf7)](_0x50f9bf=>_0x50f9bf['id']===_0xda23cb[_0x28d154(0x109)]['id']&&_0x50f9bf[_0x28d154(0x107)]===_0xda23cb['manifest'][_0x28d154(0x107)]&&ciIsExtensionCompatible(_0x50f9bf,_0x5408e0[_0x28d154(0xfd)]));});});},async 'execute'(_0x16e556,_0x48e63d){const _0x105d55=_0x21e342;try{_0x585775();if(!_0x5408e0[_0x105d55(0x101)][_0x105d55(0xf7)](_0xeb3422=>_0xeb3422['id']===_0x16e556))throw new Error(_0x105d55(0x117));}catch(_0x19f0ec){return _0x208185(_0x19f0ec[_0x105d55(0x104)]);}return _0x5402f9(_0x5408e0['operations'][_0x105d55(0xff)]?()=>_0x5408e0[_0x105d55(0x103)][_0x105d55(0xff)]({'id':_0x16e556,'input':_0x48e63d}):void 0x0,_0x49b9d7=>_0x49b9d7);}};}function _0x2054(_0x2309ca,_0x5210c7){_0x2309ca=_0x2309ca-0xf6;const _0xb4990f=_0xb499();let _0x20547b=_0xb4990f[_0x2309ca];if(_0x2054['HRYrIj']===undefined){var _0x59bd98=function(_0x169636){const _0x273d15='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5408e0='',_0x208185='';for(let _0x585775=0x0,_0x5402f9,_0x3481a9,_0x5dbc64=0x0;_0x3481a9=_0x169636['charAt'](_0x5dbc64++);~_0x3481a9&&(_0x5402f9=_0x585775%0x4?_0x5402f9*0x40+_0x3481a9:_0x3481a9,_0x585775++%0x4)?_0x5408e0+=String['fromCharCode'](0xff&_0x5402f9>>(-0x2*_0x585775&0x6)):0x0){_0x3481a9=_0x273d15['indexOf'](_0x3481a9);}for(let _0x14cf2e=0x0,_0x16a139=_0x5408e0['length'];_0x14cf2e<_0x16a139;_0x14cf2e++){_0x208185+='%'+('00'+_0x5408e0['charCodeAt'](_0x14cf2e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x208185);};_0x2054['cnBRye']=_0x59bd98,_0x2054['AWTnAO']={},_0x2054['HRYrIj']=!![];}const _0x25d644=_0xb4990f[0x0],_0x4c8d88=_0x2309ca+_0x25d644,_0x20efb4=_0x2054['AWTnAO'][_0x4c8d88];return!_0x20efb4?(_0x20547b=_0x2054['cnBRye'](_0x20547b),_0x2054['AWTnAO'][_0x4c8d88]=_0x20547b):_0x20547b=_0x20efb4,_0x20547b;}export{ciCreateNextExtensionClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x13b6f6,_0xf5ae39){const _0x111a9d=_0x3ed3,_0x505c2c=_0x13b6f6();while(!![]){try{const _0x157cdf=parseInt(_0x111a9d(0x9b))/0x1*(-parseInt(_0x111a9d(0x91))/0x2)+-parseInt(_0x111a9d(0x95))/0x3*(-parseInt(_0x111a9d(0x96))/0x4)+-parseInt(_0x111a9d(0x98))/0x5+parseInt(_0x111a9d(0x93))/0x6+-parseInt(_0x111a9d(0x9c))/0x7*(parseInt(_0x111a9d(0x9e))/0x8)+parseInt(_0x111a9d(0x99))/0x9*(parseInt(_0x111a9d(0x92))/0xa)+parseInt(_0x111a9d(0x9f))/0xb*(parseInt(_0x111a9d(0x9a))/0xc);if(_0x157cdf===_0xf5ae39)break;else _0x505c2c['push'](_0x505c2c['shift']());}catch(_0x4956bf){_0x505c2c['push'](_0x505c2c['shift']());}}}(_0x23b6,0xe4c5a));import{headers}from'next/headers';function _0x23b6(){const _0x10fdc2=['nZi5mdi5nhLAyxnhBq','DgvUyw50swq','mJyXmgnvsKDACW','mtiXnLbstLPHyq','C2nVCgu','nZiWmdm0mhfqAKnjtW','oxPswwzPra','mJC2sg1pA1nh','mMrevwrQBW','mZC4v2HdrNHt','DgvUyw50','mtaZmJCYCKHlAvrk','ndK3nda5u1b3CMzQ','mti4ntqYmgvtAM1Nzq','mtG0mda1odbyEuPMzgO'];_0x23b6=function(){return _0x10fdc2;};return _0x23b6();}import{CI_DEFAULT_REQUEST_CONTEXT_HEADER_NAME,ciDeserializeRequestContext}from'@cloudigniter/core/lib';async function ciGetOrgUnitContext(){const _0x5dcac8=_0x3ed3,_0x606931=await headers(),_0x30a631=_0x606931['get'](CI_DEFAULT_REQUEST_CONTEXT_HEADER_NAME);if(!_0x30a631)return null;const _0x4a0079=ciDeserializeRequestContext(_0x30a631);if(!_0x4a0079)return null;const {tenant:_0x40b06e,orgUnit:_0x1578fb}=_0x4a0079;if(_0x40b06e[_0x5dcac8(0x97)]!==_0x5dcac8(0x9d)||!_0x40b06e['id']||!_0x1578fb||_0x1578fb[_0x5dcac8(0x94)]!==_0x40b06e['id'])return null;return _0x1578fb;}function _0x3ed3(_0x1516d4,_0x9fdc70){_0x1516d4=_0x1516d4-0x91;const _0x23b6cc=_0x23b6();let _0x3ed3ef=_0x23b6cc[_0x1516d4];if(_0x3ed3['ZoTUHH']===undefined){var _0x213c8c=function(_0x413e5f){const _0x2e7be7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x606931='',_0x30a631='';for(let _0x4a0079=0x0,_0x40b06e,_0x1578fb,_0x58b297=0x0;_0x1578fb=_0x413e5f['charAt'](_0x58b297++);~_0x1578fb&&(_0x40b06e=_0x4a0079%0x4?_0x40b06e*0x40+_0x1578fb:_0x1578fb,_0x4a0079++%0x4)?_0x606931+=String['fromCharCode'](0xff&_0x40b06e>>(-0x2*_0x4a0079&0x6)):0x0){_0x1578fb=_0x2e7be7['indexOf'](_0x1578fb);}for(let _0xefc73d=0x0,_0x366ac7=_0x606931['length'];_0xefc73d<_0x366ac7;_0xefc73d++){_0x30a631+='%'+('00'+_0x606931['charCodeAt'](_0xefc73d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30a631);};_0x3ed3['rByTbx']=_0x213c8c,_0x3ed3['oguUvk']={},_0x3ed3['ZoTUHH']=!![];}const _0x3e0f0c=_0x23b6cc[0x0],_0xceb33d=_0x1516d4+_0x3e0f0c,_0x33f7cc=_0x3ed3['oguUvk'][_0xceb33d];return!_0x33f7cc?(_0x3ed3ef=_0x3ed3['rByTbx'](_0x3ed3ef),_0x3ed3['oguUvk'][_0xceb33d]=_0x3ed3ef):_0x3ed3ef=_0x33f7cc,_0x3ed3ef;}export{ciGetOrgUnitContext};
|