Component `intent:` is needed (but undocumented in home-assistant docs) with Rhasspy

I thought I was missing something until I found this post.

Are the intent_scripts: children of intent:
eg.

intent:
  intent_script:

 intent_script:

or are they seperate?
eg

intent:

intent_script: