Move trust center profile onto the page

Store website, email, and headquarters on the trust center so
public and admin surfaces read branding from one place. Drop the
trust API organization type and wire console, MCP, CLI, and apps
through the updated schema.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-13 14:17:22 +02:00
parent ec80798243
commit ba53c94bdc
36 changed files with 167 additions and 155 deletions

View File

@@ -4954,6 +4954,9 @@ func (r *Resolver) UpdateTrustCenterTool(ctx context.Context, req *mcp.CallToolR
updateReq.WebsiteURL = UnwrapOmittable(input.WebsiteURL)
updateReq.Email = UnwrapOmittable(input.Email)
updateReq.HeadquarterAddress = UnwrapOmittable(input.HeadquarterAddress)
if title := UnwrapOmittable(input.Title); title != nil {
updateReq.Title = *title
}
trustCenter, _, err := prb.Update(ctx, scope, updateReq)
if err != nil {

View File

@@ -8832,6 +8832,7 @@ components:
- organization_id
- active
- search_engine_indexing
- title
- created_at
- updated_at
properties:
@@ -8869,6 +8870,9 @@ components:
- string
- "null"
description: Compliance page headquarter address
title:
type: string
description: Public compliance page title
created_at:
type: string
format: date-time
@@ -9059,6 +9063,12 @@ components:
- "null"
description: Compliance page headquarter address
go.probo.inc/mcpgen/omittable: true
title:
type:
- string
- "null"
description: Public compliance page title
go.probo.inc/mcpgen/omittable: true
UpdateTrustCenterOutput:
type: object

View File

@@ -31,6 +31,7 @@ func NewTrustCenter(tc *coredata.TrustCenter) *TrustCenter {
OrganizationID: tc.OrganizationID,
Active: tc.Active,
SearchEngineIndexing: tc.SearchEngineIndexing,
Title: tc.Title,
Description: tc.Description,
WebsiteURL: tc.WebsiteURL,
Email: tc.Email,