(value: unknown)
| 210 | }; |
| 211 | |
| 212 | const listFromResponse = (value: unknown): readonly ApiKeySummary[] => |
| 213 | Option.match(decodeListApiKeysResponse(value), { |
| 214 | onNone: () => [], |
| 215 | onSome: ({ data }) => |
| 216 | data.flatMap((apiKey) => { |
| 217 | const summary = summaryFromApiKey(apiKey); |
| 218 | return summary ? [summary] : []; |
| 219 | }), |
| 220 | }); |
| 221 | |
| 222 | // The org-owned mirror of `summaryFromApiKey`. `organizationId` is checked by |
| 223 | // the CALLER against the org it asked for: WorkOS's workspace api key is |
nothing calls this directly
no test coverage detected