OLD | NEW |
1 { | 1 { |
2 "basePath": "", | 2 "basePath": "", |
3 "baseUrl": "https://safebrowsing.googleapis.com/", | 3 "baseUrl": "https://safebrowsing.googleapis.com/", |
4 "batchPath": "batch", | 4 "batchPath": "batch", |
5 "description": "The Safe Browsing API is an experimental API that allows cli
ent applications to check URLs against Google's constantly-updated blacklists of
suspected phishing and malware pages. Your client application can use the API t
o download an encrypted table for local, client-side lookups of URLs.", | 5 "description": "The Safe Browsing API is an experimental API that allows cli
ent applications to check URLs against Google's constantly-updated blacklists of
suspected phishing and malware pages. Your client application can use the API t
o download an encrypted table for local, client-side lookups of URLs.", |
6 "discoveryVersion": "v1", | 6 "discoveryVersion": "v1", |
7 "documentationLink": "https://developers.google.com/safe-browsing/", | 7 "documentationLink": "https://developers.google.com/safe-browsing/", |
8 "icons": { | 8 "icons": { |
9 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 9 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
10 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 10 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
11 }, | 11 }, |
12 "id": "safebrowsing:v4", | 12 "id": "safebrowsing:v4", |
13 "kind": "discovery#restDescription", | 13 "kind": "discovery#restDescription", |
14 "name": "safebrowsing", | 14 "name": "safebrowsing", |
15 "ownerDomain": "google.com", | 15 "ownerDomain": "google.com", |
16 "ownerName": "Google", | 16 "ownerName": "Google", |
17 "parameters": { | 17 "parameters": { |
18 "uploadType": { | 18 "quotaUser": { |
19 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 19 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
20 "location": "query", | 20 "location": "query", |
21 "type": "string" | 21 "type": "string" |
22 }, | 22 }, |
| 23 "pp": { |
| 24 "default": "true", |
| 25 "description": "Pretty-print response.", |
| 26 "location": "query", |
| 27 "type": "boolean" |
| 28 }, |
| 29 "bearer_token": { |
| 30 "description": "OAuth bearer token.", |
| 31 "location": "query", |
| 32 "type": "string" |
| 33 }, |
| 34 "oauth_token": { |
| 35 "description": "OAuth 2.0 token for the current user.", |
| 36 "location": "query", |
| 37 "type": "string" |
| 38 }, |
| 39 "upload_protocol": { |
| 40 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 41 "location": "query", |
| 42 "type": "string" |
| 43 }, |
| 44 "prettyPrint": { |
| 45 "default": "true", |
| 46 "description": "Returns response with indentations and line breaks."
, |
| 47 "location": "query", |
| 48 "type": "boolean" |
| 49 }, |
23 "fields": { | 50 "fields": { |
24 "description": "Selector specifying which fields to include in a par
tial response.", | 51 "description": "Selector specifying which fields to include in a par
tial response.", |
25 "location": "query", | 52 "location": "query", |
26 "type": "string" | 53 "type": "string" |
27 }, | 54 }, |
28 "callback": { | 55 "uploadType": { |
29 "description": "JSONP", | 56 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
30 "location": "query", | 57 "location": "query", |
31 "type": "string" | 58 "type": "string" |
32 }, | 59 }, |
33 "$.xgafv": { | 60 "$.xgafv": { |
34 "description": "V1 error format.", | 61 "description": "V1 error format.", |
35 "enum": [ | 62 "enum": [ |
36 "1", | 63 "1", |
37 "2" | 64 "2" |
38 ], | 65 ], |
39 "enumDescriptions": [ | 66 "enumDescriptions": [ |
40 "v1 error format", | 67 "v1 error format", |
41 "v2 error format" | 68 "v2 error format" |
42 ], | 69 ], |
43 "location": "query", | 70 "location": "query", |
44 "type": "string" | 71 "type": "string" |
45 }, | 72 }, |
| 73 "callback": { |
| 74 "description": "JSONP", |
| 75 "location": "query", |
| 76 "type": "string" |
| 77 }, |
46 "alt": { | 78 "alt": { |
47 "default": "json", | 79 "default": "json", |
48 "description": "Data format for response.", | 80 "description": "Data format for response.", |
49 "enum": [ | 81 "enum": [ |
50 "json", | 82 "json", |
51 "media", | 83 "media", |
52 "proto" | 84 "proto" |
53 ], | 85 ], |
54 "enumDescriptions": [ | 86 "enumDescriptions": [ |
55 "Responses with Content-Type of application/json", | 87 "Responses with Content-Type of application/json", |
56 "Media download with context-dependent Content-Type", | 88 "Media download with context-dependent Content-Type", |
57 "Responses with Content-Type of application/x-protobuf" | 89 "Responses with Content-Type of application/x-protobuf" |
58 ], | 90 ], |
59 "location": "query", | 91 "location": "query", |
60 "type": "string" | 92 "type": "string" |
61 }, | 93 }, |
62 "key": { | 94 "key": { |
63 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | 95 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
64 "location": "query", | 96 "location": "query", |
65 "type": "string" | 97 "type": "string" |
66 }, | 98 }, |
67 "access_token": { | 99 "access_token": { |
68 "description": "OAuth access token.", | 100 "description": "OAuth access token.", |
69 "location": "query", | 101 "location": "query", |
70 "type": "string" | 102 "type": "string" |
71 }, | |
72 "quotaUser": { | |
73 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | |
74 "location": "query", | |
75 "type": "string" | |
76 }, | |
77 "pp": { | |
78 "default": "true", | |
79 "description": "Pretty-print response.", | |
80 "location": "query", | |
81 "type": "boolean" | |
82 }, | |
83 "bearer_token": { | |
84 "description": "OAuth bearer token.", | |
85 "location": "query", | |
86 "type": "string" | |
87 }, | |
88 "oauth_token": { | |
89 "description": "OAuth 2.0 token for the current user.", | |
90 "location": "query", | |
91 "type": "string" | |
92 }, | |
93 "upload_protocol": { | |
94 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
95 "location": "query", | |
96 "type": "string" | |
97 }, | |
98 "prettyPrint": { | |
99 "default": "true", | |
100 "description": "Returns response with indentations and line breaks."
, | |
101 "location": "query", | |
102 "type": "boolean" | |
103 } | 103 } |
104 }, | 104 }, |
105 "protocol": "rest", | 105 "protocol": "rest", |
106 "resources": { | 106 "resources": { |
107 "threatListUpdates": { | 107 "threatListUpdates": { |
108 "methods": { | 108 "methods": { |
109 "fetch": { | 109 "fetch": { |
110 "description": "Fetches the most recent threat list updates.
A client can request updates\nfor multiple lists at once.", | 110 "description": "Fetches the most recent threat list updates.
A client can request updates\nfor multiple lists at once.", |
111 "httpMethod": "POST", | 111 "httpMethod": "POST", |
112 "id": "safebrowsing.threatListUpdates.fetch", | 112 "id": "safebrowsing.threatListUpdates.fetch", |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 "encodedUpdates": { | 211 "encodedUpdates": { |
212 "methods": { | 212 "methods": { |
213 "get": { | 213 "get": { |
214 "description": "", | 214 "description": "", |
215 "httpMethod": "GET", | 215 "httpMethod": "GET", |
216 "id": "safebrowsing.encodedUpdates.get", | 216 "id": "safebrowsing.encodedUpdates.get", |
217 "parameterOrder": [ | 217 "parameterOrder": [ |
218 "encodedRequest" | 218 "encodedRequest" |
219 ], | 219 ], |
220 "parameters": { | 220 "parameters": { |
| 221 "clientVersion": { |
| 222 "description": "The version of the client implementa
tion.", |
| 223 "location": "query", |
| 224 "type": "string" |
| 225 }, |
221 "encodedRequest": { | 226 "encodedRequest": { |
222 "description": "A serialized FetchThreatListUpdatesR
equest proto.", | 227 "description": "A serialized FetchThreatListUpdatesR
equest proto.", |
223 "format": "byte", | 228 "format": "byte", |
224 "location": "path", | 229 "location": "path", |
225 "required": true, | 230 "required": true, |
226 "type": "string" | 231 "type": "string" |
227 }, | 232 }, |
228 "clientId": { | 233 "clientId": { |
229 "description": "A client ID that uniquely identifies
the client implementation of the Safe\nBrowsing API.", | 234 "description": "A client ID that uniquely identifies
the client implementation of the Safe\nBrowsing API.", |
230 "location": "query", | 235 "location": "query", |
231 "type": "string" | 236 "type": "string" |
232 }, | |
233 "clientVersion": { | |
234 "description": "The version of the client implementa
tion.", | |
235 "location": "query", | |
236 "type": "string" | |
237 } | 237 } |
238 }, | 238 }, |
239 "path": "v4/encodedUpdates/{encodedRequest}", | 239 "path": "v4/encodedUpdates/{encodedRequest}", |
240 "response": { | 240 "response": { |
241 "$ref": "FetchThreatListUpdatesResponse" | 241 "$ref": "FetchThreatListUpdatesResponse" |
242 } | 242 } |
243 } | 243 } |
244 } | 244 } |
245 } | 245 } |
246 }, | 246 }, |
247 "revision": "20170509", | 247 "revision": "20170608", |
248 "rootUrl": "https://safebrowsing.googleapis.com/", | 248 "rootUrl": "https://safebrowsing.googleapis.com/", |
249 "schemas": { | 249 "schemas": { |
| 250 "ClientInfo": { |
| 251 "description": "The client metadata associated with Safe Browsing AP
I requests.", |
| 252 "id": "ClientInfo", |
| 253 "properties": { |
| 254 "clientVersion": { |
| 255 "description": "The version of the client implementation.", |
| 256 "type": "string" |
| 257 }, |
| 258 "clientId": { |
| 259 "description": "A client ID that (hopefully) uniquely identi
fies the client implementation\nof the Safe Browsing API.", |
| 260 "type": "string" |
| 261 } |
| 262 }, |
| 263 "type": "object" |
| 264 }, |
| 265 "FindThreatMatchesRequest": { |
| 266 "description": "Request to check entries against lists.", |
| 267 "id": "FindThreatMatchesRequest", |
| 268 "properties": { |
| 269 "threatInfo": { |
| 270 "$ref": "ThreatInfo", |
| 271 "description": "The lists and entries to be checked for matc
hes." |
| 272 }, |
| 273 "client": { |
| 274 "$ref": "ClientInfo", |
| 275 "description": "The client metadata." |
| 276 } |
| 277 }, |
| 278 "type": "object" |
| 279 }, |
| 280 "ThreatInfo": { |
| 281 "description": "The information regarding one or more threats that a
client submits when\nchecking for matches in threat lists.", |
| 282 "id": "ThreatInfo", |
| 283 "properties": { |
| 284 "threatEntryTypes": { |
| 285 "description": "The entry types to be checked.", |
| 286 "enumDescriptions": [ |
| 287 "Unspecified.", |
| 288 "A URL.", |
| 289 "An executable program.", |
| 290 "An IP range.", |
| 291 "Chrome extension.", |
| 292 "Filename.", |
| 293 "CERT" |
| 294 ], |
| 295 "items": { |
| 296 "enum": [ |
| 297 "THREAT_ENTRY_TYPE_UNSPECIFIED", |
| 298 "URL", |
| 299 "EXECUTABLE", |
| 300 "IP_RANGE", |
| 301 "CHROME_EXTENSION", |
| 302 "FILENAME", |
| 303 "CERT" |
| 304 ], |
| 305 "type": "string" |
| 306 }, |
| 307 "type": "array" |
| 308 }, |
| 309 "threatTypes": { |
| 310 "description": "The threat types to be checked.", |
| 311 "enumDescriptions": [ |
| 312 "Unknown.", |
| 313 "Malware threat type.", |
| 314 "Social engineering threat type.", |
| 315 "Unwanted software threat type.", |
| 316 "Potentially harmful application threat type.", |
| 317 "Malicious binary threat type." |
| 318 ], |
| 319 "items": { |
| 320 "enum": [ |
| 321 "THREAT_TYPE_UNSPECIFIED", |
| 322 "MALWARE", |
| 323 "SOCIAL_ENGINEERING", |
| 324 "UNWANTED_SOFTWARE", |
| 325 "POTENTIALLY_HARMFUL_APPLICATION", |
| 326 "MALICIOUS_BINARY" |
| 327 ], |
| 328 "type": "string" |
| 329 }, |
| 330 "type": "array" |
| 331 }, |
| 332 "platformTypes": { |
| 333 "description": "The platform types to be checked.", |
| 334 "enumDescriptions": [ |
| 335 "Unknown platform.", |
| 336 "Threat posed to Windows.", |
| 337 "Threat posed to Linux.", |
| 338 "Threat posed to Android.", |
| 339 "Threat posed to OS X.", |
| 340 "Threat posed to iOS.", |
| 341 "Threat posed to at least one of the defined platforms."
, |
| 342 "Threat posed to all defined platforms.", |
| 343 "Threat posed to Chrome." |
| 344 ], |
| 345 "items": { |
| 346 "enum": [ |
| 347 "PLATFORM_TYPE_UNSPECIFIED", |
| 348 "WINDOWS", |
| 349 "LINUX", |
| 350 "ANDROID", |
| 351 "OSX", |
| 352 "IOS", |
| 353 "ANY_PLATFORM", |
| 354 "ALL_PLATFORMS", |
| 355 "CHROME" |
| 356 ], |
| 357 "type": "string" |
| 358 }, |
| 359 "type": "array" |
| 360 }, |
| 361 "threatEntries": { |
| 362 "description": "The threat entries to be checked.", |
| 363 "items": { |
| 364 "$ref": "ThreatEntry" |
| 365 }, |
| 366 "type": "array" |
| 367 } |
| 368 }, |
| 369 "type": "object" |
| 370 }, |
| 371 "ThreatEntryMetadata": { |
| 372 "description": "The metadata associated with a specific threat entry
. The client is expected\nto know the metadata key/value pairs associated with e
ach threat type.", |
| 373 "id": "ThreatEntryMetadata", |
| 374 "properties": { |
| 375 "entries": { |
| 376 "description": "The metadata entries.", |
| 377 "items": { |
| 378 "$ref": "MetadataEntry" |
| 379 }, |
| 380 "type": "array" |
| 381 } |
| 382 }, |
| 383 "type": "object" |
| 384 }, |
| 385 "RawIndices": { |
| 386 "description": "A set of raw indices to remove from a local list.", |
| 387 "id": "RawIndices", |
| 388 "properties": { |
| 389 "indices": { |
| 390 "description": "The indices to remove from a lexicographical
ly-sorted local list.", |
| 391 "items": { |
| 392 "format": "int32", |
| 393 "type": "integer" |
| 394 }, |
| 395 "type": "array" |
| 396 } |
| 397 }, |
| 398 "type": "object" |
| 399 }, |
| 400 "RawHashes": { |
| 401 "description": "The uncompressed threat entries in hash format of a
particular prefix length.\nHashes can be anywhere from 4 to 32 bytes in size. A
large majority are 4\nbytes, but some hashes are lengthened if they collide with
the hash of a\npopular URL.\n\nUsed for sending ThreatEntrySet to clients that
do not support compression,\nor when sending non-4-byte hashes to clients that d
o support compression.", |
| 402 "id": "RawHashes", |
| 403 "properties": { |
| 404 "rawHashes": { |
| 405 "description": "The hashes, in binary format, concatenated i
nto one long string. Hashes are\nsorted in lexicographic order. For JSON API use
rs, hashes are\nbase64-encoded.", |
| 406 "format": "byte", |
| 407 "type": "string" |
| 408 }, |
| 409 "prefixSize": { |
| 410 "description": "The number of bytes for each prefix encoded
below. This field can be\nanywhere from 4 (shortest prefix) to 32 (full SHA256
hash).", |
| 411 "format": "int32", |
| 412 "type": "integer" |
| 413 } |
| 414 }, |
| 415 "type": "object" |
| 416 }, |
250 "FetchThreatListUpdatesResponse": { | 417 "FetchThreatListUpdatesResponse": { |
251 "id": "FetchThreatListUpdatesResponse", | 418 "id": "FetchThreatListUpdatesResponse", |
252 "properties": { | 419 "properties": { |
253 "listUpdateResponses": { | 420 "listUpdateResponses": { |
254 "description": "The list updates requested by the clients.", | 421 "description": "The list updates requested by the clients.", |
255 "items": { | 422 "items": { |
256 "$ref": "ListUpdateResponse" | 423 "$ref": "ListUpdateResponse" |
257 }, | 424 }, |
258 "type": "array" | 425 "type": "array" |
259 }, | 426 }, |
260 "minimumWaitDuration": { | 427 "minimumWaitDuration": { |
261 "description": "The minimum duration the client must wait be
fore issuing any update\nrequest. If this field is not set clients may update as
soon as they want.", | 428 "description": "The minimum duration the client must wait be
fore issuing any update\nrequest. If this field is not set clients may update as
soon as they want.", |
262 "format": "google-duration", | 429 "format": "google-duration", |
263 "type": "string" | 430 "type": "string" |
264 } | 431 } |
265 }, | 432 }, |
266 "type": "object" | 433 "type": "object" |
267 }, | 434 }, |
| 435 "Checksum": { |
| 436 "description": "The expected state of a client's local database.", |
| 437 "id": "Checksum", |
| 438 "properties": { |
| 439 "sha256": { |
| 440 "description": "The SHA256 hash of the client state; that is
, of the sorted list of all\nhashes present in the database.", |
| 441 "format": "byte", |
| 442 "type": "string" |
| 443 } |
| 444 }, |
| 445 "type": "object" |
| 446 }, |
268 "FindFullHashesResponse": { | 447 "FindFullHashesResponse": { |
269 "id": "FindFullHashesResponse", | 448 "id": "FindFullHashesResponse", |
270 "properties": { | 449 "properties": { |
| 450 "matches": { |
| 451 "description": "The full hashes that matched the requested p
refixes.", |
| 452 "items": { |
| 453 "$ref": "ThreatMatch" |
| 454 }, |
| 455 "type": "array" |
| 456 }, |
271 "negativeCacheDuration": { | 457 "negativeCacheDuration": { |
272 "description": "For requested entities that did not match th
e threat list, how long to\ncache the response.", | 458 "description": "For requested entities that did not match th
e threat list, how long to\ncache the response.", |
273 "format": "google-duration", | 459 "format": "google-duration", |
274 "type": "string" | 460 "type": "string" |
275 }, | 461 }, |
276 "minimumWaitDuration": { | 462 "minimumWaitDuration": { |
277 "description": "The minimum duration the client must wait be
fore issuing any find hashes\nrequest. If this field is not set, clients can iss
ue a request as soon as\nthey want.", | 463 "description": "The minimum duration the client must wait be
fore issuing any find hashes\nrequest. If this field is not set, clients can iss
ue a request as soon as\nthey want.", |
278 "format": "google-duration", | 464 "format": "google-duration", |
279 "type": "string" | 465 "type": "string" |
280 }, | |
281 "matches": { | |
282 "description": "The full hashes that matched the requested p
refixes.", | |
283 "items": { | |
284 "$ref": "ThreatMatch" | |
285 }, | |
286 "type": "array" | |
287 } | |
288 }, | |
289 "type": "object" | |
290 }, | |
291 "Checksum": { | |
292 "description": "The expected state of a client's local database.", | |
293 "id": "Checksum", | |
294 "properties": { | |
295 "sha256": { | |
296 "description": "The SHA256 hash of the client state; that is
, of the sorted list of all\nhashes present in the database.", | |
297 "format": "byte", | |
298 "type": "string" | |
299 } | 466 } |
300 }, | 467 }, |
301 "type": "object" | 468 "type": "object" |
302 }, | 469 }, |
303 "ThreatEntrySet": { | 470 "ThreatEntrySet": { |
304 "description": "A set of threats that should be added or removed fro
m a client's local\ndatabase.", | 471 "description": "A set of threats that should be added or removed fro
m a client's local\ndatabase.", |
305 "id": "ThreatEntrySet", | 472 "id": "ThreatEntrySet", |
306 "properties": { | 473 "properties": { |
| 474 "rawIndices": { |
| 475 "$ref": "RawIndices", |
| 476 "description": "The raw removal indices for a local list." |
| 477 }, |
| 478 "rawHashes": { |
| 479 "$ref": "RawHashes", |
| 480 "description": "The raw SHA256-formatted entries." |
| 481 }, |
| 482 "riceHashes": { |
| 483 "$ref": "RiceDeltaEncoding", |
| 484 "description": "The encoded 4-byte prefixes of SHA256-format
ted entries, using a\nGolomb-Rice encoding. The hashes are converted to uint32,
sorted in\nascending order, then delta encoded and stored as encoded_data." |
| 485 }, |
307 "compressionType": { | 486 "compressionType": { |
308 "description": "The compression type for the entries in this
set.", | 487 "description": "The compression type for the entries in this
set.", |
309 "enum": [ | 488 "enum": [ |
310 "COMPRESSION_TYPE_UNSPECIFIED", | 489 "COMPRESSION_TYPE_UNSPECIFIED", |
311 "RAW", | 490 "RAW", |
312 "RICE" | 491 "RICE" |
313 ], | 492 ], |
314 "enumDescriptions": [ | 493 "enumDescriptions": [ |
315 "Unknown.", | 494 "Unknown.", |
316 "Raw, uncompressed data.", | 495 "Raw, uncompressed data.", |
317 "Rice-Golomb encoded data." | 496 "Rice-Golomb encoded data." |
318 ], | 497 ], |
319 "type": "string" | 498 "type": "string" |
320 }, | 499 }, |
321 "riceIndices": { | 500 "riceIndices": { |
322 "$ref": "RiceDeltaEncoding", | 501 "$ref": "RiceDeltaEncoding", |
323 "description": "The encoded local, lexicographically-sorted
list indices, using a\nGolomb-Rice encoding. Used for sending compressed removal
indices. The\nremoval indices (uint32) are sorted in ascending order, then delt
a encoded\nand stored as encoded_data." | 502 "description": "The encoded local, lexicographically-sorted
list indices, using a\nGolomb-Rice encoding. Used for sending compressed removal
indices. The\nremoval indices (uint32) are sorted in ascending order, then delt
a encoded\nand stored as encoded_data." |
324 }, | |
325 "rawIndices": { | |
326 "$ref": "RawIndices", | |
327 "description": "The raw removal indices for a local list." | |
328 }, | |
329 "rawHashes": { | |
330 "$ref": "RawHashes", | |
331 "description": "The raw SHA256-formatted entries." | |
332 }, | |
333 "riceHashes": { | |
334 "$ref": "RiceDeltaEncoding", | |
335 "description": "The encoded 4-byte prefixes of SHA256-format
ted entries, using a\nGolomb-Rice encoding. The hashes are converted to uint32,
sorted in\nascending order, then delta encoded and stored as encoded_data." | |
336 } | 503 } |
337 }, | 504 }, |
338 "type": "object" | 505 "type": "object" |
339 }, | 506 }, |
340 "FindFullHashesRequest": { | 507 "FindFullHashesRequest": { |
341 "description": "Request to return full hashes matched by the provide
d hash prefixes.", | 508 "description": "Request to return full hashes matched by the provide
d hash prefixes.", |
342 "id": "FindFullHashesRequest", | 509 "id": "FindFullHashesRequest", |
343 "properties": { | 510 "properties": { |
344 "apiClient": { | 511 "apiClient": { |
345 "$ref": "ClientInfo", | 512 "$ref": "ClientInfo", |
(...skipping 15 matching lines...) Expand all Loading... |
361 "$ref": "ThreatInfo", | 528 "$ref": "ThreatInfo", |
362 "description": "The lists and hashes to be checked." | 529 "description": "The lists and hashes to be checked." |
363 } | 530 } |
364 }, | 531 }, |
365 "type": "object" | 532 "type": "object" |
366 }, | 533 }, |
367 "ListUpdateRequest": { | 534 "ListUpdateRequest": { |
368 "description": "A single list update request.", | 535 "description": "A single list update request.", |
369 "id": "ListUpdateRequest", | 536 "id": "ListUpdateRequest", |
370 "properties": { | 537 "properties": { |
371 "threatEntryType": { | |
372 "description": "The types of entries present in the list.", | |
373 "enum": [ | |
374 "THREAT_ENTRY_TYPE_UNSPECIFIED", | |
375 "URL", | |
376 "EXECUTABLE", | |
377 "IP_RANGE", | |
378 "CHROME_EXTENSION", | |
379 "FILENAME", | |
380 "CERT" | |
381 ], | |
382 "enumDescriptions": [ | |
383 "Unspecified.", | |
384 "A URL.", | |
385 "An executable program.", | |
386 "An IP range.", | |
387 "Chrome extension.", | |
388 "Filename.", | |
389 "CERT" | |
390 ], | |
391 "type": "string" | |
392 }, | |
393 "state": { | |
394 "description": "The current state of the client for the requ
ested list (the encrypted\nclient state that was received from the last successf
ul list update).", | |
395 "format": "byte", | |
396 "type": "string" | |
397 }, | |
398 "platformType": { | 538 "platformType": { |
399 "description": "The type of platform at risk by entries pres
ent in the list.", | 539 "description": "The type of platform at risk by entries pres
ent in the list.", |
400 "enum": [ | 540 "enum": [ |
401 "PLATFORM_TYPE_UNSPECIFIED", | 541 "PLATFORM_TYPE_UNSPECIFIED", |
402 "WINDOWS", | 542 "WINDOWS", |
403 "LINUX", | 543 "LINUX", |
404 "ANDROID", | 544 "ANDROID", |
405 "OSX", | 545 "OSX", |
406 "IOS", | 546 "IOS", |
407 "ANY_PLATFORM", | 547 "ANY_PLATFORM", |
(...skipping 13 matching lines...) Expand all Loading... |
421 ], | 561 ], |
422 "type": "string" | 562 "type": "string" |
423 }, | 563 }, |
424 "threatType": { | 564 "threatType": { |
425 "description": "The type of threat posed by entries present
in the list.", | 565 "description": "The type of threat posed by entries present
in the list.", |
426 "enum": [ | 566 "enum": [ |
427 "THREAT_TYPE_UNSPECIFIED", | 567 "THREAT_TYPE_UNSPECIFIED", |
428 "MALWARE", | 568 "MALWARE", |
429 "SOCIAL_ENGINEERING", | 569 "SOCIAL_ENGINEERING", |
430 "UNWANTED_SOFTWARE", | 570 "UNWANTED_SOFTWARE", |
431 "POTENTIALLY_HARMFUL_APPLICATION" | 571 "POTENTIALLY_HARMFUL_APPLICATION", |
| 572 "MALICIOUS_BINARY" |
432 ], | 573 ], |
433 "enumDescriptions": [ | 574 "enumDescriptions": [ |
434 "Unknown.", | 575 "Unknown.", |
435 "Malware threat type.", | 576 "Malware threat type.", |
436 "Social engineering threat type.", | 577 "Social engineering threat type.", |
437 "Unwanted software threat type.", | 578 "Unwanted software threat type.", |
438 "Potentially harmful application threat type." | 579 "Potentially harmful application threat type.", |
| 580 "Malicious binary threat type." |
439 ], | 581 ], |
440 "type": "string" | 582 "type": "string" |
441 }, | 583 }, |
442 "constraints": { | 584 "constraints": { |
443 "$ref": "Constraints", | 585 "$ref": "Constraints", |
444 "description": "The constraints associated with this request
." | 586 "description": "The constraints associated with this request
." |
| 587 }, |
| 588 "threatEntryType": { |
| 589 "description": "The types of entries present in the list.", |
| 590 "enum": [ |
| 591 "THREAT_ENTRY_TYPE_UNSPECIFIED", |
| 592 "URL", |
| 593 "EXECUTABLE", |
| 594 "IP_RANGE", |
| 595 "CHROME_EXTENSION", |
| 596 "FILENAME", |
| 597 "CERT" |
| 598 ], |
| 599 "enumDescriptions": [ |
| 600 "Unspecified.", |
| 601 "A URL.", |
| 602 "An executable program.", |
| 603 "An IP range.", |
| 604 "Chrome extension.", |
| 605 "Filename.", |
| 606 "CERT" |
| 607 ], |
| 608 "type": "string" |
| 609 }, |
| 610 "state": { |
| 611 "description": "The current state of the client for the requ
ested list (the encrypted\nclient state that was received from the last successf
ul list update).", |
| 612 "format": "byte", |
| 613 "type": "string" |
445 } | 614 } |
446 }, | 615 }, |
447 "type": "object" | 616 "type": "object" |
448 }, | 617 }, |
449 "FetchThreatListUpdatesRequest": { | 618 "FetchThreatListUpdatesRequest": { |
450 "description": "Describes a Safe Browsing API update request. Client
s can request updates for\nmultiple lists in a single request.\nNOTE: Field inde
x 2 is unused.\nNEXT: 5", | 619 "description": "Describes a Safe Browsing API update request. Client
s can request updates for\nmultiple lists in a single request.\nNOTE: Field inde
x 2 is unused.\nNEXT: 5", |
451 "id": "FetchThreatListUpdatesRequest", | 620 "id": "FetchThreatListUpdatesRequest", |
452 "properties": { | 621 "properties": { |
453 "listUpdateRequests": { | 622 "listUpdateRequests": { |
454 "description": "The requested threat list updates.", | 623 "description": "The requested threat list updates.", |
455 "items": { | 624 "items": { |
456 "$ref": "ListUpdateRequest" | 625 "$ref": "ListUpdateRequest" |
457 }, | 626 }, |
458 "type": "array" | 627 "type": "array" |
459 }, | 628 }, |
460 "client": { | 629 "client": { |
461 "$ref": "ClientInfo", | 630 "$ref": "ClientInfo", |
462 "description": "The client metadata." | 631 "description": "The client metadata." |
463 } | 632 } |
464 }, | 633 }, |
465 "type": "object" | 634 "type": "object" |
466 }, | 635 }, |
467 "ListUpdateResponse": { | 636 "ListUpdateResponse": { |
468 "description": "An update to an individual list.", | 637 "description": "An update to an individual list.", |
469 "id": "ListUpdateResponse", | 638 "id": "ListUpdateResponse", |
470 "properties": { | 639 "properties": { |
| 640 "newClientState": { |
| 641 "description": "The new client state, in encrypted format. O
paque to clients.", |
| 642 "format": "byte", |
| 643 "type": "string" |
| 644 }, |
| 645 "removals": { |
| 646 "description": "A set of entries to remove from a local thre
at type's list. In practice,\nthis field is empty or contains exactly one Threat
EntrySet.", |
| 647 "items": { |
| 648 "$ref": "ThreatEntrySet" |
| 649 }, |
| 650 "type": "array" |
| 651 }, |
471 "platformType": { | 652 "platformType": { |
472 "description": "The platform type for which data is returned
.", | 653 "description": "The platform type for which data is returned
.", |
473 "enum": [ | 654 "enum": [ |
474 "PLATFORM_TYPE_UNSPECIFIED", | 655 "PLATFORM_TYPE_UNSPECIFIED", |
475 "WINDOWS", | 656 "WINDOWS", |
476 "LINUX", | 657 "LINUX", |
477 "ANDROID", | 658 "ANDROID", |
478 "OSX", | 659 "OSX", |
479 "IOS", | 660 "IOS", |
480 "ANY_PLATFORM", | 661 "ANY_PLATFORM", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 ], | 722 ], |
542 "type": "string" | 723 "type": "string" |
543 }, | 724 }, |
544 "threatType": { | 725 "threatType": { |
545 "description": "The threat type for which data is returned."
, | 726 "description": "The threat type for which data is returned."
, |
546 "enum": [ | 727 "enum": [ |
547 "THREAT_TYPE_UNSPECIFIED", | 728 "THREAT_TYPE_UNSPECIFIED", |
548 "MALWARE", | 729 "MALWARE", |
549 "SOCIAL_ENGINEERING", | 730 "SOCIAL_ENGINEERING", |
550 "UNWANTED_SOFTWARE", | 731 "UNWANTED_SOFTWARE", |
551 "POTENTIALLY_HARMFUL_APPLICATION" | 732 "POTENTIALLY_HARMFUL_APPLICATION", |
| 733 "MALICIOUS_BINARY" |
552 ], | 734 ], |
553 "enumDescriptions": [ | 735 "enumDescriptions": [ |
554 "Unknown.", | 736 "Unknown.", |
555 "Malware threat type.", | 737 "Malware threat type.", |
556 "Social engineering threat type.", | 738 "Social engineering threat type.", |
557 "Unwanted software threat type.", | 739 "Unwanted software threat type.", |
558 "Potentially harmful application threat type." | 740 "Potentially harmful application threat type.", |
| 741 "Malicious binary threat type." |
559 ], | 742 ], |
560 "type": "string" | 743 "type": "string" |
561 }, | |
562 "removals": { | |
563 "description": "A set of entries to remove from a local thre
at type's list. In practice,\nthis field is empty or contains exactly one Threat
EntrySet.", | |
564 "items": { | |
565 "$ref": "ThreatEntrySet" | |
566 }, | |
567 "type": "array" | |
568 }, | |
569 "newClientState": { | |
570 "description": "The new client state, in encrypted format. O
paque to clients.", | |
571 "format": "byte", | |
572 "type": "string" | |
573 } | 744 } |
574 }, | 745 }, |
575 "type": "object" | 746 "type": "object" |
576 }, | 747 }, |
577 "Constraints": { | 748 "Constraints": { |
578 "description": "The constraints for this update.", | 749 "description": "The constraints for this update.", |
579 "id": "Constraints", | 750 "id": "Constraints", |
580 "properties": { | 751 "properties": { |
581 "maxDatabaseEntries": { | 752 "maxDatabaseEntries": { |
582 "description": "Sets the maximum number of entries that the
client is willing to have\nin the local database. This should be a power of 2 be
tween 2**10 and\n2**20. If zero, no database size limit is set.", | 753 "description": "Sets the maximum number of entries that the
client is willing to have\nin the local database. This should be a power of 2 be
tween 2**10 and\n2**20. If zero, no database size limit is set.", |
(...skipping 26 matching lines...) Expand all Loading... |
609 "format": "int32", | 780 "format": "int32", |
610 "type": "integer" | 781 "type": "integer" |
611 } | 782 } |
612 }, | 783 }, |
613 "type": "object" | 784 "type": "object" |
614 }, | 785 }, |
615 "ThreatMatch": { | 786 "ThreatMatch": { |
616 "description": "A match when checking a threat entry in the Safe Bro
wsing threat lists.", | 787 "description": "A match when checking a threat entry in the Safe Bro
wsing threat lists.", |
617 "id": "ThreatMatch", | 788 "id": "ThreatMatch", |
618 "properties": { | 789 "properties": { |
| 790 "threatEntryType": { |
| 791 "description": "The threat entry type matching this threat."
, |
| 792 "enum": [ |
| 793 "THREAT_ENTRY_TYPE_UNSPECIFIED", |
| 794 "URL", |
| 795 "EXECUTABLE", |
| 796 "IP_RANGE", |
| 797 "CHROME_EXTENSION", |
| 798 "FILENAME", |
| 799 "CERT" |
| 800 ], |
| 801 "enumDescriptions": [ |
| 802 "Unspecified.", |
| 803 "A URL.", |
| 804 "An executable program.", |
| 805 "An IP range.", |
| 806 "Chrome extension.", |
| 807 "Filename.", |
| 808 "CERT" |
| 809 ], |
| 810 "type": "string" |
| 811 }, |
619 "cacheDuration": { | 812 "cacheDuration": { |
620 "description": "The cache lifetime for the returned match. C
lients must not cache this\nresponse for more than this duration to avoid false
positives.", | 813 "description": "The cache lifetime for the returned match. C
lients must not cache this\nresponse for more than this duration to avoid false
positives.", |
621 "format": "google-duration", | 814 "format": "google-duration", |
622 "type": "string" | 815 "type": "string" |
623 }, | 816 }, |
624 "threatType": { | 817 "threatType": { |
625 "description": "The threat type matching this threat.", | 818 "description": "The threat type matching this threat.", |
626 "enum": [ | 819 "enum": [ |
627 "THREAT_TYPE_UNSPECIFIED", | 820 "THREAT_TYPE_UNSPECIFIED", |
628 "MALWARE", | 821 "MALWARE", |
629 "SOCIAL_ENGINEERING", | 822 "SOCIAL_ENGINEERING", |
630 "UNWANTED_SOFTWARE", | 823 "UNWANTED_SOFTWARE", |
631 "POTENTIALLY_HARMFUL_APPLICATION" | 824 "POTENTIALLY_HARMFUL_APPLICATION", |
| 825 "MALICIOUS_BINARY" |
632 ], | 826 ], |
633 "enumDescriptions": [ | 827 "enumDescriptions": [ |
634 "Unknown.", | 828 "Unknown.", |
635 "Malware threat type.", | 829 "Malware threat type.", |
636 "Social engineering threat type.", | 830 "Social engineering threat type.", |
637 "Unwanted software threat type.", | 831 "Unwanted software threat type.", |
638 "Potentially harmful application threat type." | 832 "Potentially harmful application threat type.", |
| 833 "Malicious binary threat type." |
639 ], | 834 ], |
640 "type": "string" | 835 "type": "string" |
641 }, | 836 }, |
642 "threatEntryMetadata": { | 837 "threatEntryMetadata": { |
643 "$ref": "ThreatEntryMetadata", | 838 "$ref": "ThreatEntryMetadata", |
644 "description": "Optional metadata associated with this threa
t." | 839 "description": "Optional metadata associated with this threa
t." |
645 }, | 840 }, |
646 "threat": { | 841 "threat": { |
647 "$ref": "ThreatEntry", | 842 "$ref": "ThreatEntry", |
648 "description": "The threat matching this threat." | 843 "description": "The threat matching this threat." |
(...skipping 16 matching lines...) Expand all Loading... |
665 "Threat posed to Windows.", | 860 "Threat posed to Windows.", |
666 "Threat posed to Linux.", | 861 "Threat posed to Linux.", |
667 "Threat posed to Android.", | 862 "Threat posed to Android.", |
668 "Threat posed to OS X.", | 863 "Threat posed to OS X.", |
669 "Threat posed to iOS.", | 864 "Threat posed to iOS.", |
670 "Threat posed to at least one of the defined platforms."
, | 865 "Threat posed to at least one of the defined platforms."
, |
671 "Threat posed to all defined platforms.", | 866 "Threat posed to all defined platforms.", |
672 "Threat posed to Chrome." | 867 "Threat posed to Chrome." |
673 ], | 868 ], |
674 "type": "string" | 869 "type": "string" |
675 }, | |
676 "threatEntryType": { | |
677 "description": "The threat entry type matching this threat."
, | |
678 "enum": [ | |
679 "THREAT_ENTRY_TYPE_UNSPECIFIED", | |
680 "URL", | |
681 "EXECUTABLE", | |
682 "IP_RANGE", | |
683 "CHROME_EXTENSION", | |
684 "FILENAME", | |
685 "CERT" | |
686 ], | |
687 "enumDescriptions": [ | |
688 "Unspecified.", | |
689 "A URL.", | |
690 "An executable program.", | |
691 "An IP range.", | |
692 "Chrome extension.", | |
693 "Filename.", | |
694 "CERT" | |
695 ], | |
696 "type": "string" | |
697 } | 870 } |
698 }, | 871 }, |
699 "type": "object" | 872 "type": "object" |
| 873 }, |
| 874 "ListThreatListsResponse": { |
| 875 "id": "ListThreatListsResponse", |
| 876 "properties": { |
| 877 "threatLists": { |
| 878 "description": "The lists available for download by the clie
nt.", |
| 879 "items": { |
| 880 "$ref": "ThreatListDescriptor" |
| 881 }, |
| 882 "type": "array" |
| 883 } |
| 884 }, |
| 885 "type": "object" |
700 }, | 886 }, |
701 "RiceDeltaEncoding": { | 887 "RiceDeltaEncoding": { |
702 "description": "The Rice-Golomb encoded data. Used for sending compr
essed 4-byte hashes or\ncompressed removal indices.", | 888 "description": "The Rice-Golomb encoded data. Used for sending compr
essed 4-byte hashes or\ncompressed removal indices.", |
703 "id": "RiceDeltaEncoding", | 889 "id": "RiceDeltaEncoding", |
704 "properties": { | 890 "properties": { |
705 "firstValue": { | 891 "firstValue": { |
706 "description": "The offset of the first entry in the encoded
data, or, if only a single\ninteger was encoded, that single integer's value.", | 892 "description": "The offset of the first entry in the encoded
data, or, if only a single\ninteger was encoded, that single integer's value.", |
707 "format": "int64", | 893 "format": "int64", |
708 "type": "string" | 894 "type": "string" |
709 }, | 895 }, |
710 "encodedData": { | 896 "encodedData": { |
711 "description": "The encoded deltas that are encoded using th
e Golomb-Rice coder.", | 897 "description": "The encoded deltas that are encoded using th
e Golomb-Rice coder.", |
712 "format": "byte", | 898 "format": "byte", |
713 "type": "string" | 899 "type": "string" |
714 }, | 900 }, |
715 "numEntries": { | 901 "numEntries": { |
716 "description": "The number of entries that are delta encoded
in the encoded data. If only a\nsingle integer was encoded, this will be zero a
nd the single value will be\nstored in `first_value`.", | 902 "description": "The number of entries that are delta encoded
in the encoded data. If only a\nsingle integer was encoded, this will be zero a
nd the single value will be\nstored in `first_value`.", |
717 "format": "int32", | 903 "format": "int32", |
718 "type": "integer" | 904 "type": "integer" |
719 }, | 905 }, |
720 "riceParameter": { | 906 "riceParameter": { |
721 "description": "The Golomb-Rice parameter, which is a number
between 2 and 28. This field\nis missing (that is, zero) if `num_entries` is ze
ro.", | 907 "description": "The Golomb-Rice parameter, which is a number
between 2 and 28. This field\nis missing (that is, zero) if `num_entries` is ze
ro.", |
722 "format": "int32", | 908 "format": "int32", |
723 "type": "integer" | 909 "type": "integer" |
724 } | 910 } |
725 }, | 911 }, |
726 "type": "object" | 912 "type": "object" |
727 }, | 913 }, |
728 "ListThreatListsResponse": { | |
729 "id": "ListThreatListsResponse", | |
730 "properties": { | |
731 "threatLists": { | |
732 "description": "The lists available for download by the clie
nt.", | |
733 "items": { | |
734 "$ref": "ThreatListDescriptor" | |
735 }, | |
736 "type": "array" | |
737 } | |
738 }, | |
739 "type": "object" | |
740 }, | |
741 "FindThreatMatchesResponse": { | 914 "FindThreatMatchesResponse": { |
742 "id": "FindThreatMatchesResponse", | 915 "id": "FindThreatMatchesResponse", |
743 "properties": { | 916 "properties": { |
744 "matches": { | 917 "matches": { |
745 "description": "The threat list matches.", | 918 "description": "The threat list matches.", |
746 "items": { | 919 "items": { |
747 "$ref": "ThreatMatch" | 920 "$ref": "ThreatMatch" |
748 }, | 921 }, |
749 "type": "array" | 922 "type": "array" |
750 } | 923 } |
751 }, | 924 }, |
752 "type": "object" | 925 "type": "object" |
753 }, | 926 }, |
754 "ThreatEntry": { | 927 "ThreatEntry": { |
755 "description": "An individual threat; for example, a malicious URL o
r its hash\nrepresentation. Only one of these fields should be set.", | 928 "description": "An individual threat; for example, a malicious URL o
r its hash\nrepresentation. Only one of these fields should be set.", |
756 "id": "ThreatEntry", | 929 "id": "ThreatEntry", |
757 "properties": { | 930 "properties": { |
| 931 "url": { |
| 932 "description": "A URL.", |
| 933 "type": "string" |
| 934 }, |
758 "digest": { | 935 "digest": { |
759 "description": "The digest of an executable in SHA256 format
. The API supports both\nbinary and hex digests. For JSON requests, digests are
base64-encoded.", | 936 "description": "The digest of an executable in SHA256 format
. The API supports both\nbinary and hex digests. For JSON requests, digests are
base64-encoded.", |
760 "format": "byte", | 937 "format": "byte", |
761 "type": "string" | 938 "type": "string" |
762 }, | 939 }, |
763 "hash": { | 940 "hash": { |
764 "description": "A hash prefix, consisting of the most signif
icant 4-32 bytes of a SHA256\nhash. This field is in binary format. For JSON req
uests, hashes are\nbase64-encoded.", | 941 "description": "A hash prefix, consisting of the most signif
icant 4-32 bytes of a SHA256\nhash. This field is in binary format. For JSON req
uests, hashes are\nbase64-encoded.", |
765 "format": "byte", | 942 "format": "byte", |
766 "type": "string" | 943 "type": "string" |
767 }, | |
768 "url": { | |
769 "description": "A URL.", | |
770 "type": "string" | |
771 } | 944 } |
772 }, | 945 }, |
773 "type": "object" | 946 "type": "object" |
774 }, | 947 }, |
775 "ThreatListDescriptor": { | 948 "ThreatListDescriptor": { |
776 "description": "Describes an individual threat list. A list is defin
ed by three parameters:\nthe type of threat posed, the type of platform targeted
by the threat, and\nthe type of entries in the list.", | 949 "description": "Describes an individual threat list. A list is defin
ed by three parameters:\nthe type of threat posed, the type of platform targeted
by the threat, and\nthe type of entries in the list.", |
777 "id": "ThreatListDescriptor", | 950 "id": "ThreatListDescriptor", |
778 "properties": { | 951 "properties": { |
779 "platformType": { | 952 "platformType": { |
780 "description": "The platform type targeted by the list's ent
ries.", | 953 "description": "The platform type targeted by the list's ent
ries.", |
(...skipping 21 matching lines...) Expand all Loading... |
802 ], | 975 ], |
803 "type": "string" | 976 "type": "string" |
804 }, | 977 }, |
805 "threatType": { | 978 "threatType": { |
806 "description": "The threat type posed by the list's entries.
", | 979 "description": "The threat type posed by the list's entries.
", |
807 "enum": [ | 980 "enum": [ |
808 "THREAT_TYPE_UNSPECIFIED", | 981 "THREAT_TYPE_UNSPECIFIED", |
809 "MALWARE", | 982 "MALWARE", |
810 "SOCIAL_ENGINEERING", | 983 "SOCIAL_ENGINEERING", |
811 "UNWANTED_SOFTWARE", | 984 "UNWANTED_SOFTWARE", |
812 "POTENTIALLY_HARMFUL_APPLICATION" | 985 "POTENTIALLY_HARMFUL_APPLICATION", |
| 986 "MALICIOUS_BINARY" |
813 ], | 987 ], |
814 "enumDescriptions": [ | 988 "enumDescriptions": [ |
815 "Unknown.", | 989 "Unknown.", |
816 "Malware threat type.", | 990 "Malware threat type.", |
817 "Social engineering threat type.", | 991 "Social engineering threat type.", |
818 "Unwanted software threat type.", | 992 "Unwanted software threat type.", |
819 "Potentially harmful application threat type." | 993 "Potentially harmful application threat type.", |
| 994 "Malicious binary threat type." |
820 ], | 995 ], |
821 "type": "string" | 996 "type": "string" |
822 }, | 997 }, |
823 "threatEntryType": { | 998 "threatEntryType": { |
824 "description": "The entry types contained in the list.", | 999 "description": "The entry types contained in the list.", |
825 "enum": [ | 1000 "enum": [ |
826 "THREAT_ENTRY_TYPE_UNSPECIFIED", | 1001 "THREAT_ENTRY_TYPE_UNSPECIFIED", |
827 "URL", | 1002 "URL", |
828 "EXECUTABLE", | 1003 "EXECUTABLE", |
829 "IP_RANGE", | 1004 "IP_RANGE", |
(...skipping 24 matching lines...) Expand all Loading... |
854 "format": "byte", | 1029 "format": "byte", |
855 "type": "string" | 1030 "type": "string" |
856 }, | 1031 }, |
857 "value": { | 1032 "value": { |
858 "description": "The metadata entry value. For JSON requests,
the value is base64-encoded.", | 1033 "description": "The metadata entry value. For JSON requests,
the value is base64-encoded.", |
859 "format": "byte", | 1034 "format": "byte", |
860 "type": "string" | 1035 "type": "string" |
861 } | 1036 } |
862 }, | 1037 }, |
863 "type": "object" | 1038 "type": "object" |
864 }, | |
865 "ClientInfo": { | |
866 "description": "The client metadata associated with Safe Browsing AP
I requests.", | |
867 "id": "ClientInfo", | |
868 "properties": { | |
869 "clientId": { | |
870 "description": "A client ID that (hopefully) uniquely identi
fies the client implementation\nof the Safe Browsing API.", | |
871 "type": "string" | |
872 }, | |
873 "clientVersion": { | |
874 "description": "The version of the client implementation.", | |
875 "type": "string" | |
876 } | |
877 }, | |
878 "type": "object" | |
879 }, | |
880 "ThreatInfo": { | |
881 "description": "The information regarding one or more threats that a
client submits when\nchecking for matches in threat lists.", | |
882 "id": "ThreatInfo", | |
883 "properties": { | |
884 "threatEntryTypes": { | |
885 "description": "The entry types to be checked.", | |
886 "enumDescriptions": [ | |
887 "Unspecified.", | |
888 "A URL.", | |
889 "An executable program.", | |
890 "An IP range.", | |
891 "Chrome extension.", | |
892 "Filename.", | |
893 "CERT" | |
894 ], | |
895 "items": { | |
896 "enum": [ | |
897 "THREAT_ENTRY_TYPE_UNSPECIFIED", | |
898 "URL", | |
899 "EXECUTABLE", | |
900 "IP_RANGE", | |
901 "CHROME_EXTENSION", | |
902 "FILENAME", | |
903 "CERT" | |
904 ], | |
905 "type": "string" | |
906 }, | |
907 "type": "array" | |
908 }, | |
909 "threatTypes": { | |
910 "description": "The threat types to be checked.", | |
911 "enumDescriptions": [ | |
912 "Unknown.", | |
913 "Malware threat type.", | |
914 "Social engineering threat type.", | |
915 "Unwanted software threat type.", | |
916 "Potentially harmful application threat type." | |
917 ], | |
918 "items": { | |
919 "enum": [ | |
920 "THREAT_TYPE_UNSPECIFIED", | |
921 "MALWARE", | |
922 "SOCIAL_ENGINEERING", | |
923 "UNWANTED_SOFTWARE", | |
924 "POTENTIALLY_HARMFUL_APPLICATION" | |
925 ], | |
926 "type": "string" | |
927 }, | |
928 "type": "array" | |
929 }, | |
930 "platformTypes": { | |
931 "description": "The platform types to be checked.", | |
932 "enumDescriptions": [ | |
933 "Unknown platform.", | |
934 "Threat posed to Windows.", | |
935 "Threat posed to Linux.", | |
936 "Threat posed to Android.", | |
937 "Threat posed to OS X.", | |
938 "Threat posed to iOS.", | |
939 "Threat posed to at least one of the defined platforms."
, | |
940 "Threat posed to all defined platforms.", | |
941 "Threat posed to Chrome." | |
942 ], | |
943 "items": { | |
944 "enum": [ | |
945 "PLATFORM_TYPE_UNSPECIFIED", | |
946 "WINDOWS", | |
947 "LINUX", | |
948 "ANDROID", | |
949 "OSX", | |
950 "IOS", | |
951 "ANY_PLATFORM", | |
952 "ALL_PLATFORMS", | |
953 "CHROME" | |
954 ], | |
955 "type": "string" | |
956 }, | |
957 "type": "array" | |
958 }, | |
959 "threatEntries": { | |
960 "description": "The threat entries to be checked.", | |
961 "items": { | |
962 "$ref": "ThreatEntry" | |
963 }, | |
964 "type": "array" | |
965 } | |
966 }, | |
967 "type": "object" | |
968 }, | |
969 "FindThreatMatchesRequest": { | |
970 "description": "Request to check entries against lists.", | |
971 "id": "FindThreatMatchesRequest", | |
972 "properties": { | |
973 "client": { | |
974 "$ref": "ClientInfo", | |
975 "description": "The client metadata." | |
976 }, | |
977 "threatInfo": { | |
978 "$ref": "ThreatInfo", | |
979 "description": "The lists and entries to be checked for matc
hes." | |
980 } | |
981 }, | |
982 "type": "object" | |
983 }, | |
984 "ThreatEntryMetadata": { | |
985 "description": "The metadata associated with a specific threat entry
. The client is expected\nto know the metadata key/value pairs associated with e
ach threat type.", | |
986 "id": "ThreatEntryMetadata", | |
987 "properties": { | |
988 "entries": { | |
989 "description": "The metadata entries.", | |
990 "items": { | |
991 "$ref": "MetadataEntry" | |
992 }, | |
993 "type": "array" | |
994 } | |
995 }, | |
996 "type": "object" | |
997 }, | |
998 "RawIndices": { | |
999 "description": "A set of raw indices to remove from a local list.", | |
1000 "id": "RawIndices", | |
1001 "properties": { | |
1002 "indices": { | |
1003 "description": "The indices to remove from a lexicographical
ly-sorted local list.", | |
1004 "items": { | |
1005 "format": "int32", | |
1006 "type": "integer" | |
1007 }, | |
1008 "type": "array" | |
1009 } | |
1010 }, | |
1011 "type": "object" | |
1012 }, | |
1013 "RawHashes": { | |
1014 "description": "The uncompressed threat entries in hash format of a
particular prefix length.\nHashes can be anywhere from 4 to 32 bytes in size. A
large majority are 4\nbytes, but some hashes are lengthened if they collide with
the hash of a\npopular URL.\n\nUsed for sending ThreatEntrySet to clients that
do not support compression,\nor when sending non-4-byte hashes to clients that d
o support compression.", | |
1015 "id": "RawHashes", | |
1016 "properties": { | |
1017 "prefixSize": { | |
1018 "description": "The number of bytes for each prefix encoded
below. This field can be\nanywhere from 4 (shortest prefix) to 32 (full SHA256
hash).", | |
1019 "format": "int32", | |
1020 "type": "integer" | |
1021 }, | |
1022 "rawHashes": { | |
1023 "description": "The hashes, in binary format, concatenated i
nto one long string. Hashes are\nsorted in lexicographic order. For JSON API use
rs, hashes are\nbase64-encoded.", | |
1024 "format": "byte", | |
1025 "type": "string" | |
1026 } | |
1027 }, | |
1028 "type": "object" | |
1029 } | 1039 } |
1030 }, | 1040 }, |
1031 "servicePath": "", | 1041 "servicePath": "", |
1032 "title": "Google Safe Browsing API", | 1042 "title": "Google Safe Browsing API", |
1033 "version": "v4" | 1043 "version": "v4" |
1034 } | 1044 } |
OLD | NEW |