(data: unknown, fallback: string)
| 335 | } |
| 336 | |
| 337 | private extractBrandName(data: unknown, fallback: string): string { |
| 338 | const obj = data as Record<string, unknown>; |
| 339 | if (typeof obj?.house === 'object' && obj.house !== null) { |
| 340 | const house = obj.house as Record<string, unknown>; |
| 341 | if (typeof house.name === 'string') return house.name; |
| 342 | } |
| 343 | return fallback; |
| 344 | } |
| 345 | |
| 346 | /** |
| 347 | * Populate the federated index with discovered agents and publishers. |