Apple has accused the company behind ChatGPT and two of its former employees of misappropriating its trade secrets to benefit OpenAI's foray into consumer hardware.