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

HashListsBatchGetOptions

import type { HashListsBatchGetOptions } from "https://googleapis.deno.dev/v1/safebrowsing:v5.ts";

Additional options for SafeBrowsing#hashListsBatchGet.

interface HashListsBatchGetOptions {
names?: string;
[sizeConstraints.maxDatabaseEntries]?: number;
[sizeConstraints.maxUpdateEntries]?: number;
version?: Uint8Array;
}

§Properties

§
names?: string
[src]

Required. The names of the particular hash lists. The list MAY be a threat list, or it may be the Global Cache. The names MUST NOT contain duplicates; if they did, the client will get an error.

§
[sizeConstraints.maxDatabaseEntries]?: number
[src]

Sets the maximum number of entries that the client is willing to have in the local database for the list. (The server MAY cause the client to store less than this number of entries.) If omitted or zero, no database size limit is set.

§
[sizeConstraints.maxUpdateEntries]?: number
[src]

The maximum size in number of entries. The update will not contain more entries than this value, but it is possible that the update will contain fewer entries than this value. This MUST be at least 1024. If omitted or zero, no update size limit is set.

§
version?: Uint8Array
[src]

The versions of the hash list that the client already has. If this is the first time the client is fetching the hash lists, the field should be left empty. Otherwise, the client should supply the versions previously received from the server. The client MUST NOT manipulate those bytes. The client need not send the versions in the same order as the corresponding list names. The client may send fewer or more versions in a request than there are names. However the client MUST NOT send multiple versions that correspond to the same name; if it did, the client will get an error. Historical note: in V4 of the API, this was called states; it is now renamed to version for clarity.