(row: IntegrationRow)
| 1769 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 1770 | // failing the catalog read. |
| 1771 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 1772 | const runtime = runtimes.get(row.plugin_id); |
| 1773 | const describe = runtime?.plugin.describeAuthMethods; |
| 1774 | if (!describe) return []; |
| 1775 | const record = rowToIntegrationRecord(row); |
| 1776 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 1777 | try { |
| 1778 | return describe(record); |
| 1779 | } catch { |
| 1780 | return []; |
| 1781 | } |
| 1782 | }; |
| 1783 | |
| 1784 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 1785 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected