(value: unknown)
| 3054 | } |
| 3055 | |
| 3056 | function normalizeRecord(value: unknown): JsonRecord | null { |
| 3057 | if (!value || typeof value !== 'object' || Array.isArray(value)) { |
| 3058 | return null; |
| 3059 | } |
| 3060 | return value as JsonRecord; |
| 3061 | } |
| 3062 | |
| 3063 | function extractInternalCodexbridgeEventMetadata(requestMetadata: JsonRecord | null): JsonRecord | undefined { |
| 3064 | const codexbridge = normalizeRecord(requestMetadata?.codexbridge); |
no outgoing calls
no test coverage detected