Search code examples
actions-on-googlegoogle-home

Looking for data type for sub-sub-sub member of Response object in Conversation API


In the Conversation API specification for the Response object there's an ExpectedIntent. It has a "input_value_spec.permission_value_spec" property with a "permissions" member. Permissions looks like the enums listed elsewhere in the spec ( request.conversation.type and request.inputs.raw_inputs.input_type ) but doesn't have the same Enum decorator. Any clue?

ExpectedIntent in Response


Solution

  • The difference between input_value_spec.permission_value_spec.permissions and the Enums specified by request.conversation.type and request.inputs.raw_inputs.input_type is that permissions is not a type. It is an array. You can specify 0 or more of the permissions that you're asking for (as strings).

    Now, it is like an Enum in that only those strings listed are (currently) supported, but it is different in that the types require exactly one of those values.