(row: IntegrationRow)
| 1747 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 1748 | // failing the catalog read. |
| 1749 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 1750 | const runtime = runtimes.get(row.plugin_id); |
| 1751 | const describe = runtime?.plugin.describeAuthMethods; |
| 1752 | if (!describe) return []; |
| 1753 | const record = rowToIntegrationRecord(row); |
| 1754 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 1755 | try { |
| 1756 | return describe(record); |
| 1757 | } catch { |
| 1758 | return []; |
| 1759 | } |
| 1760 | }; |
| 1761 | |
| 1762 | const describeDisplayUrlForRow = (row: IntegrationRow): string | undefined => { |
| 1763 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected