()
| 3123 | /** Every slug in the tenant's catalog — the set an owned row's |
| 3124 | * `integration` must belong to for the row to be servable. */ |
| 3125 | const listCatalogSlugs = (): Effect.Effect<ReadonlySet<string>, StorageFailure> => |
| 3126 | core |
| 3127 | .findMany("integration", { select: ["slug"] }) |
| 3128 | .pipe(Effect.map((rows) => new Set(rows.map((row) => String(row.slug))))); |
| 3129 | |
| 3130 | // Project a row's stored config into declared auth methods via the owning |
| 3131 | // plugin's `describeAuthMethods` hook. The hook is plugin-authored, so a |
no outgoing calls
no test coverage detected