Form Submission Event Response Object

I was looking into the documentation for the Form Submission in Gateway Events.

In the example given for the code they have the following:

# Example script for handling form submissions
logger = system.util.getLogger("formSubmissionExample")

# Log submission data
logger.info("Received form submission: " + str(data))

# Example validation: Ensure 'email' field is provided
if 'email' not in data or not data['email']:
response = {
"success": False,
"title": "Missing Required Field",
"message": "Email address is required.",
"fieldErrors": {"email": {"title": "Required", "message": "Please enter your email."}}
}
else:
response = {"success": True, "title": "Form Submitted", "message": "Thank you for your submission!"}

# Return response
response

In this example they have it return a Dictionary. Which with testing is what is displayed on a popup on the screen if there is a success or not a success.

What I can’t find though is what that object can look like. I don’t see in the documentation what keys I can give the object, in this case being response. I also watched some of the videos on the Form Component at Inductive University and don’t see anything on it

Maybe I am just completely missing something? Any help on this would be greatly appreciated!