webrisk.hashes.search

enum_ThreatTypesParameter := [ "THREAT_TYPE_UNSPECIFIED", "MALWARE", "SOCIAL_ENGINEERING", "UNWANTED_SOFTWARE", "SOCIAL_ENGINEERING_EXTENDED_COVERAGE" ]

valid {
    input.Qs.hashPrefix == STRING
    input.Qs.threatTypes == enum_ThreatTypesParameter[_]
    input.ProviderMetadata.Region == STRING
}

webrisk.projects.operations.cancel

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

webrisk.projects.operations.delete

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

webrisk.projects.operations.get

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

webrisk.projects.operations.list

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

webrisk.projects.submissions.create

valid {
    input.Body.uri == STRING
    input.ReqMap.parent == STRING
    input.ProviderMetadata.Region == STRING
}

webrisk.threatLists.computeDiff

enum_Constraints.supportedCompressionsParameter := [ "COMPRESSION_TYPE_UNSPECIFIED", "RAW", "RICE" ]
enum_ThreatTypeParameter := [ "THREAT_TYPE_UNSPECIFIED", "MALWARE", "SOCIAL_ENGINEERING", "UNWANTED_SOFTWARE", "SOCIAL_ENGINEERING_EXTENDED_COVERAGE" ]

valid {
    input.Qs.constraints.maxDatabaseEntries == INTEGER
    input.Qs.constraints.maxDiffEntries == INTEGER
    input.Qs.constraints.supportedCompressions == enum_Constraints.supportedCompressionsParameter[_]
    input.Qs.threatType == enum_ThreatTypeParameter[_]
    input.Qs.versionToken == STRING
    input.ProviderMetadata.Region == STRING
}

webrisk.uris.search

enum_ThreatTypesParameter := [ "THREAT_TYPE_UNSPECIFIED", "MALWARE", "SOCIAL_ENGINEERING", "UNWANTED_SOFTWARE", "SOCIAL_ENGINEERING_EXTENDED_COVERAGE" ]

valid {
    input.Qs.threatTypes == enum_ThreatTypesParameter[_]
    input.Qs.uri == STRING
    input.ProviderMetadata.Region == STRING
}