(value: unknown)
| 191 | }; |
| 192 | |
| 193 | const ownerFromResponse = (value: unknown): ApiKeyOwner | null => |
| 194 | Option.match(decodeValidateApiKeyResponse(value), { |
| 195 | onNone: () => null, |
| 196 | onSome: ({ apiKey }) => (apiKey ? ownerFromApiKey(apiKey) : null), |
| 197 | }); |
| 198 | |
| 199 | const summaryFromApiKey = (apiKey: typeof ApiKey.Type): ApiKeySummary | null => { |
| 200 | const organizationId = apiKey.owner.organizationId ?? apiKey.owner.organization_id; |
nothing calls this directly
no test coverage detected