refactor: 收口 Admin 会话与授权边界

This commit is contained in:
que01 committed 2026-10-19 10:13:13 +08:00
1 parent 0788480ce3
commit 4ef4be2071
67 files changed
+1890 -392

No files matched your search

+3
View File
@@ -45,6 +45,7 @@ export type {
TemplatePackagePreview,
TemplatePackageVersion,
} from "./resources/template.js";
export type { AdminLoginSession, AdminSession } from "./resources/session.js";
export type { TrustContent, TrustContentInput } from "./types/trust.js";
export type { PublicWorkspace } from "./types/workspace.js";
export { projectBrandAliases, projectTrustPresentation } from "@personal-brand/types";
@@ -156,6 +157,8 @@ export class ApiClient
) => this.resources.public.getCustomerInquirySubmission(...arguments_);
createCustomerSession = (...arguments_: Parameters<PublicMethods["createCustomerSession"]>) =>
this.resources.public.createCustomerSession(...arguments_);
getAdminSession = (...arguments_: Parameters<SessionMethods["getAdminSession"]>) =>
this.resources.session.getAdminSession(...arguments_);
loginAdmin = (...arguments_: Parameters<SessionMethods["loginAdmin"]>) =>
this.resources.session.loginAdmin(...arguments_);
changeAdminPassword = (...arguments_: Parameters<SessionMethods["changeAdminPassword"]>) =>