Apple has accused ChatGPT and two of its ex-employees of misappropriating its trade secrets to benefit OpenAI's foray into consumer hardware.