(row: IntegrationRow)
| 2933 | // throw (malformed config it didn't guard) degrades to `[]` rather than |
| 2934 | // failing the catalog read. |
| 2935 | const describeAuthMethodsForRow = (row: IntegrationRow): readonly AuthMethodDescriptor[] => { |
| 2936 | const runtime = runtimes.get(row.plugin_id); |
| 2937 | const describe = runtime?.plugin.describeAuthMethods; |
| 2938 | if (!describe) return []; |
| 2939 | const record = rowToIntegrationRecord(row); |
| 2940 | // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: plugin-authored projector must never fail the catalog read |
| 2941 | try { |
| 2942 | return describe(record); |
| 2943 | } catch { |
| 2944 | return []; |
| 2945 | } |
| 2946 | }; |
| 2947 | |
| 2948 | const describeDisplayForRow = (row: IntegrationRow): IntegrationDisplayDescriptor => { |
| 2949 | const runtime = runtimes.get(row.plugin_id); |
no test coverage detected