(row: IntegrationRow)
| 1785 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 1786 | // failing the catalog read. |
| 1787 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 1788 | const runtime = runtimes.get(row.plugin_id); |
| 1789 | const describe = runtime?.plugin.describeAuthMethods; |
| 1790 | if (!describe) return []; |
| 1791 | const record = rowToIntegrationRecord(row); |
| 1792 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 1793 | try { |
| 1794 | return describe(record); |
| 1795 | } catch { |
| 1796 | return []; |
| 1797 | } |
| 1798 | }; |
| 1799 | |
| 1800 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 1801 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected