keep.media.download

valid {
    input.ReqMap.name == STRING
    input.Qs.mimeType == STRING
    input.ProviderMetadata.Region == STRING
}

keep.notes.create

valid {
    input.Body.body.list.listItems[_].checked == BOOLEAN
    input.Body.body.list.listItems[_].childListItems[_] == NESTED
    input.Body.body.list.listItems[_].text.text == STRING
    input.Body.body.text.text == STRING
    input.Body.title == STRING
    input.ProviderMetadata.Region == STRING
}

keep.notes.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

keep.notes.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

keep.notes.list

valid {
    input.Qs.filter == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

keep.notes.permissions.batchCreate

enum_PermissionRole := [ "ROLE_UNSPECIFIED", "OWNER", "WRITER" ]

valid {
    input.Body.requests[_].parent == STRING
    input.Body.requests[_].permission.email == STRING
    input.Body.requests[_].permission.role == enum_PermissionRole[_]
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

keep.notes.permissions.batchDelete

valid {
    input.Body.names[_] == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}