Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://googleapis.deno.dev/v1/safebrowsing:v5.ts";

§Classes

GoogleAuth
SafeBrowsing

Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.

§Variables

auth

§Interfaces

CredentialsClient

Defines the root interface for all clients that generate credentials for calling Google APIs. All clients should implement this interface.

GoogleSecuritySafebrowsingV5BatchGetHashListsResponse

The response containing multiple hash lists.

GoogleSecuritySafebrowsingV5FullHash

The full hash identified with one or more matches.

GoogleSecuritySafebrowsingV5FullHashFullHashDetail

Details about a matching full hash. An important note about forward compatibility: new threat types and threat attributes may be added by the server at any time; those additions are considered minor version changes. It is Google's policy not to expose minor version numbers in APIs (see https://cloud.google.com/apis/design/versioning for the versioning policy), so clients MUST be prepared to receive FullHashDetail messages containing ThreatType enum values or ThreatAttribute enum values that are considered invalid by the client. Therefore, it is the client's responsibility to check for the validity of all ThreatType and ThreatAttribute enum values; if any value is considered invalid, the client MUST disregard the entire FullHashDetail message.

GoogleSecuritySafebrowsingV5HashList

A list of hashes identified by its name.

GoogleSecuritySafebrowsingV5HashListMetadata

Metadata about a particular hash list.

GoogleSecuritySafebrowsingV5ListHashListsResponse

The response containing metadata about hash lists.

GoogleSecuritySafebrowsingV5RiceDeltaEncoded128Bit

Same as RiceDeltaEncoded32Bit except this encodes 128-bit numbers.

GoogleSecuritySafebrowsingV5RiceDeltaEncoded256Bit

Same as RiceDeltaEncoded32Bit except this encodes 256-bit numbers.

GoogleSecuritySafebrowsingV5RiceDeltaEncoded32Bit

The Rice-Golomb encoded data. Used for either hashes or removal indices. It is guaranteed that every hash or index here has the same length, and this length is exactly 32 bits. Generally speaking, if we sort all the entries lexicographically, we will find that the higher order bits tend not to change as frequently as lower order bits. This means that if we also take the adjacent difference between entries, the higher order bits have a high probability of being zero. This exploits this high probability of zero by essentially choosing a certain number of bits; all bits more significant than this are likely to be zero so we use unary encoding. See the rice_parameter field. Historical note: the Rice-delta encoding was first used in V4 of this API. In V5, two significant improvements were made: firstly, the Rice-delta encoding is now available with hash prefixes longer than 4 bytes; secondly, the encoded data are now treated as big-endian so as to avoid a costly sorting step.

GoogleSecuritySafebrowsingV5RiceDeltaEncoded64Bit

Same as RiceDeltaEncoded32Bit except this encodes 64-bit numbers.

GoogleSecuritySafebrowsingV5SearchHashesResponse

The response returned after searching threat hashes. If nothing is found, the server will return an OK status (HTTP status code 200) with the full_hashes field empty, rather than returning a NOT_FOUND status (HTTP status code 404). What's new in V5: There is a separation between FullHash and FullHashDetail. In the case when a hash represents a site having multiple threats (e.g. both MALWARE and SOCIAL_ENGINEERING), the full hash does not need to be sent twice as in V4. Furthermore, the cache duration has been simplified into a single cache_duration field.

HashesSearchOptions

Additional options for SafeBrowsing#hashesSearch.

HashListGetOptions

Additional options for SafeBrowsing#hashListGet.

HashListsBatchGetOptions

Additional options for SafeBrowsing#hashListsBatchGet.

HashListsListOptions

Additional options for SafeBrowsing#hashListsList.