Creating an Empty Record Schema in TypeScript

I have a somewhat silly problem: I am sending a schema to an AI language model for a structured response and the response format requires empty records for some of the properties (yes, I know), but it's not possible to specify Schema.Literal({}) and various combinations of Schema.Record and Schema.Never don't work. Basically, all I need is this in the JSON schema:
 {
      "type": "object",
      "properties": {},
      "patternProperties": {}
    }
Was this page helpful?