(value: unknown)
| 153 | } |
| 154 | |
| 155 | function providerHeaders(value: unknown): Record<string, string> | undefined { |
| 156 | if (!isRecord(value)) return undefined |
| 157 | return Object.fromEntries( |
| 158 | Object.entries(value).filter((entry): entry is [string, string] => typeof entry[1] === "string"), |
| 159 | ) |
| 160 | } |
| 161 | |
| 162 | function nativeSchema(value: unknown): JsonSchema { |
| 163 | if (!value || typeof value !== "object") return { type: "object", properties: {} } |