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": "Enables client applications to check web resources (most com
monly URLs) against Google-generated lists of unsafe web resources.", |
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", |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 "Responses with Content-Type of application/json", | 97 "Responses with Content-Type of application/json", |
98 "Media download with context-dependent Content-Type", | 98 "Media download with context-dependent Content-Type", |
99 "Responses with Content-Type of application/x-protobuf" | 99 "Responses with Content-Type of application/x-protobuf" |
100 ], | 100 ], |
101 "location": "query", | 101 "location": "query", |
102 "type": "string" | 102 "type": "string" |
103 } | 103 } |
104 }, | 104 }, |
105 "protocol": "rest", | 105 "protocol": "rest", |
106 "resources": { | 106 "resources": { |
| 107 "threatListUpdates": { |
| 108 "methods": { |
| 109 "fetch": { |
| 110 "description": "Fetches the most recent threat list updates.
A client can request updates\nfor multiple lists at once.", |
| 111 "httpMethod": "POST", |
| 112 "id": "safebrowsing.threatListUpdates.fetch", |
| 113 "parameterOrder": [], |
| 114 "parameters": {}, |
| 115 "path": "v4/threatListUpdates:fetch", |
| 116 "request": { |
| 117 "$ref": "FetchThreatListUpdatesRequest" |
| 118 }, |
| 119 "response": { |
| 120 "$ref": "FetchThreatListUpdatesResponse" |
| 121 } |
| 122 } |
| 123 } |
| 124 }, |
| 125 "encodedFullHashes": { |
| 126 "methods": { |
| 127 "get": { |
| 128 "description": "", |
| 129 "httpMethod": "GET", |
| 130 "id": "safebrowsing.encodedFullHashes.get", |
| 131 "parameterOrder": [ |
| 132 "encodedRequest" |
| 133 ], |
| 134 "parameters": { |
| 135 "clientId": { |
| 136 "description": "A client ID that (hopefully) uniquel
y identifies the client implementation\nof the Safe Browsing API.", |
| 137 "location": "query", |
| 138 "type": "string" |
| 139 }, |
| 140 "clientVersion": { |
| 141 "description": "The version of the client implementa
tion.", |
| 142 "location": "query", |
| 143 "type": "string" |
| 144 }, |
| 145 "encodedRequest": { |
| 146 "description": "A serialized FindFullHashesRequest p
roto.", |
| 147 "format": "byte", |
| 148 "location": "path", |
| 149 "required": true, |
| 150 "type": "string" |
| 151 } |
| 152 }, |
| 153 "path": "v4/encodedFullHashes/{encodedRequest}", |
| 154 "response": { |
| 155 "$ref": "FindFullHashesResponse" |
| 156 } |
| 157 } |
| 158 } |
| 159 }, |
107 "threatLists": { | 160 "threatLists": { |
108 "methods": { | 161 "methods": { |
109 "list": { | 162 "list": { |
110 "description": "Lists the Safe Browsing threat lists availab
le for download.", | 163 "description": "Lists the Safe Browsing threat lists availab
le for download.", |
111 "httpMethod": "GET", | 164 "httpMethod": "GET", |
112 "id": "safebrowsing.threatLists.list", | 165 "id": "safebrowsing.threatLists.list", |
113 "parameterOrder": [], | 166 "parameterOrder": [], |
114 "parameters": {}, | 167 "parameters": {}, |
115 "path": "v4/threatLists", | 168 "path": "v4/threatLists", |
116 "response": { | 169 "response": { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 "encodedUpdates": { | 211 "encodedUpdates": { |
159 "methods": { | 212 "methods": { |
160 "get": { | 213 "get": { |
161 "description": "", | 214 "description": "", |
162 "httpMethod": "GET", | 215 "httpMethod": "GET", |
163 "id": "safebrowsing.encodedUpdates.get", | 216 "id": "safebrowsing.encodedUpdates.get", |
164 "parameterOrder": [ | 217 "parameterOrder": [ |
165 "encodedRequest" | 218 "encodedRequest" |
166 ], | 219 ], |
167 "parameters": { | 220 "parameters": { |
| 221 "clientId": { |
| 222 "description": "A client ID that uniquely identifies
the client implementation of the Safe\nBrowsing API.", |
| 223 "location": "query", |
| 224 "type": "string" |
| 225 }, |
168 "clientVersion": { | 226 "clientVersion": { |
169 "description": "The version of the client implementa
tion.", | 227 "description": "The version of the client implementa
tion.", |
170 "location": "query", | 228 "location": "query", |
171 "type": "string" | 229 "type": "string" |
172 }, | 230 }, |
173 "encodedRequest": { | 231 "encodedRequest": { |
174 "description": "A serialized FetchThreatListUpdatesR
equest proto.", | 232 "description": "A serialized FetchThreatListUpdatesR
equest proto.", |
175 "format": "byte", | 233 "format": "byte", |
176 "location": "path", | 234 "location": "path", |
177 "required": true, | 235 "required": true, |
178 "type": "string" | 236 "type": "string" |
179 }, | |
180 "clientId": { | |
181 "description": "A client ID that uniquely identifies
the client implementation of the Safe\nBrowsing API.", | |
182 "location": "query", | |
183 "type": "string" | |
184 } | 237 } |
185 }, | 238 }, |
186 "path": "v4/encodedUpdates/{encodedRequest}", | 239 "path": "v4/encodedUpdates/{encodedRequest}", |
187 "response": { | 240 "response": { |
188 "$ref": "FetchThreatListUpdatesResponse" | 241 "$ref": "FetchThreatListUpdatesResponse" |
189 } | 242 } |
190 } | 243 } |
191 } | 244 } |
192 }, | |
193 "threatListUpdates": { | |
194 "methods": { | |
195 "fetch": { | |
196 "description": "Fetches the most recent threat list updates.
A client can request updates\nfor multiple lists at once.", | |
197 "httpMethod": "POST", | |
198 "id": "safebrowsing.threatListUpdates.fetch", | |
199 "parameterOrder": [], | |
200 "parameters": {}, | |
201 "path": "v4/threatListUpdates:fetch", | |
202 "request": { | |
203 "$ref": "FetchThreatListUpdatesRequest" | |
204 }, | |
205 "response": { | |
206 "$ref": "FetchThreatListUpdatesResponse" | |
207 } | |
208 } | |
209 } | |
210 }, | |
211 "encodedFullHashes": { | |
212 "methods": { | |
213 "get": { | |
214 "description": "", | |
215 "httpMethod": "GET", | |
216 "id": "safebrowsing.encodedFullHashes.get", | |
217 "parameterOrder": [ | |
218 "encodedRequest" | |
219 ], | |
220 "parameters": { | |
221 "clientVersion": { | |
222 "description": "The version of the client implementa
tion.", | |
223 "location": "query", | |
224 "type": "string" | |
225 }, | |
226 "encodedRequest": { | |
227 "description": "A serialized FindFullHashesRequest p
roto.", | |
228 "format": "byte", | |
229 "location": "path", | |
230 "required": true, | |
231 "type": "string" | |
232 }, | |
233 "clientId": { | |
234 "description": "A client ID that (hopefully) uniquel
y identifies the client implementation\nof the Safe Browsing API.", | |
235 "location": "query", | |
236 "type": "string" | |
237 } | |
238 }, | |
239 "path": "v4/encodedFullHashes/{encodedRequest}", | |
240 "response": { | |
241 "$ref": "FindFullHashesResponse" | |
242 } | |
243 } | |
244 } | |
245 } | 245 } |
246 }, | 246 }, |
247 "revision": "20170726", | 247 "revision": "20170814", |
248 "rootUrl": "https://safebrowsing.googleapis.com/", | 248 "rootUrl": "https://safebrowsing.googleapis.com/", |
249 "schemas": { | 249 "schemas": { |
250 "FetchThreatListUpdatesRequest": { | |
251 "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", | |
252 "id": "FetchThreatListUpdatesRequest", | |
253 "properties": { | |
254 "listUpdateRequests": { | |
255 "description": "The requested threat list updates.", | |
256 "items": { | |
257 "$ref": "ListUpdateRequest" | |
258 }, | |
259 "type": "array" | |
260 }, | |
261 "client": { | |
262 "$ref": "ClientInfo", | |
263 "description": "The client metadata." | |
264 } | |
265 }, | |
266 "type": "object" | |
267 }, | |
268 "ListUpdateResponse": { | |
269 "description": "An update to an individual list.", | |
270 "id": "ListUpdateResponse", | |
271 "properties": { | |
272 "platformType": { | |
273 "description": "The platform type for which data is returned
.", | |
274 "enum": [ | |
275 "PLATFORM_TYPE_UNSPECIFIED", | |
276 "WINDOWS", | |
277 "LINUX", | |
278 "ANDROID", | |
279 "OSX", | |
280 "IOS", | |
281 "ANY_PLATFORM", | |
282 "ALL_PLATFORMS", | |
283 "CHROME" | |
284 ], | |
285 "enumDescriptions": [ | |
286 "Unknown platform.", | |
287 "Threat posed to Windows.", | |
288 "Threat posed to Linux.", | |
289 "Threat posed to Android.", | |
290 "Threat posed to OS X.", | |
291 "Threat posed to iOS.", | |
292 "Threat posed to at least one of the defined platforms."
, | |
293 "Threat posed to all defined platforms.", | |
294 "Threat posed to Chrome." | |
295 ], | |
296 "type": "string" | |
297 }, | |
298 "threatEntryType": { | |
299 "description": "The format of the threats.", | |
300 "enum": [ | |
301 "THREAT_ENTRY_TYPE_UNSPECIFIED", | |
302 "URL", | |
303 "EXECUTABLE", | |
304 "IP_RANGE", | |
305 "CHROME_EXTENSION", | |
306 "FILENAME", | |
307 "CERT" | |
308 ], | |
309 "enumDescriptions": [ | |
310 "Unspecified.", | |
311 "A URL.", | |
312 "An executable program.", | |
313 "An IP range.", | |
314 "Chrome extension.", | |
315 "Filename.", | |
316 "CERT" | |
317 ], | |
318 "type": "string" | |
319 }, | |
320 "additions": { | |
321 "description": "A set of entries to add to a local threat ty
pe's list. Repeated to allow\nfor a combination of compressed and raw data to be
sent in a single\nresponse.", | |
322 "items": { | |
323 "$ref": "ThreatEntrySet" | |
324 }, | |
325 "type": "array" | |
326 }, | |
327 "checksum": { | |
328 "$ref": "Checksum", | |
329 "description": "The expected SHA256 hash of the client state
; that is, of the sorted list\nof all hashes present in the database after apply
ing the provided update.\nIf the client state doesn't match the expected state,
the client must\ndisregard this update and retry later." | |
330 }, | |
331 "responseType": { | |
332 "description": "The type of response. This may indicate that
an action is required by the\nclient when the response is received.", | |
333 "enum": [ | |
334 "RESPONSE_TYPE_UNSPECIFIED", | |
335 "PARTIAL_UPDATE", | |
336 "FULL_UPDATE" | |
337 ], | |
338 "enumDescriptions": [ | |
339 "Unknown.", | |
340 "Partial updates are applied to the client's existing lo
cal database.", | |
341 "Full updates replace the client's entire local database
. This means\nthat either the client was seriously out-of-date or the client is\
nbelieved to be corrupt." | |
342 ], | |
343 "type": "string" | |
344 }, | |
345 "threatType": { | |
346 "description": "The threat type for which data is returned."
, | |
347 "enum": [ | |
348 "THREAT_TYPE_UNSPECIFIED", | |
349 "MALWARE", | |
350 "SOCIAL_ENGINEERING", | |
351 "UNWANTED_SOFTWARE", | |
352 "POTENTIALLY_HARMFUL_APPLICATION", | |
353 "MALICIOUS_BINARY" | |
354 ], | |
355 "enumDescriptions": [ | |
356 "Unknown.", | |
357 "Malware threat type.", | |
358 "Social engineering threat type.", | |
359 "Unwanted software threat type.", | |
360 "Potentially harmful application threat type.", | |
361 "Malicious binary threat type." | |
362 ], | |
363 "type": "string" | |
364 }, | |
365 "removals": { | |
366 "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.", | |
367 "items": { | |
368 "$ref": "ThreatEntrySet" | |
369 }, | |
370 "type": "array" | |
371 }, | |
372 "newClientState": { | |
373 "description": "The new client state, in encrypted format. O
paque to clients.", | |
374 "format": "byte", | |
375 "type": "string" | |
376 } | |
377 }, | |
378 "type": "object" | |
379 }, | |
380 "Constraints": { | 250 "Constraints": { |
381 "description": "The constraints for this update.", | 251 "description": "The constraints for this update.", |
382 "id": "Constraints", | 252 "id": "Constraints", |
383 "properties": { | 253 "properties": { |
384 "region": { | |
385 "description": "Requests the list for a specific geographic
location. If not set the\nserver may pick that value based on the user's IP addr
ess. Expects ISO\n3166-1 alpha-2 format.", | |
386 "type": "string" | |
387 }, | |
388 "maxDatabaseEntries": { | |
389 "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.", | |
390 "format": "int32", | |
391 "type": "integer" | |
392 }, | |
393 "supportedCompressions": { | 254 "supportedCompressions": { |
394 "description": "The compression types supported by the clien
t.", | 255 "description": "The compression types supported by the clien
t.", |
395 "enumDescriptions": [ | 256 "enumDescriptions": [ |
396 "Unknown.", | 257 "Unknown.", |
397 "Raw, uncompressed data.", | 258 "Raw, uncompressed data.", |
398 "Rice-Golomb encoded data." | 259 "Rice-Golomb encoded data." |
399 ], | 260 ], |
400 "items": { | 261 "items": { |
401 "enum": [ | 262 "enum": [ |
402 "COMPRESSION_TYPE_UNSPECIFIED", | 263 "COMPRESSION_TYPE_UNSPECIFIED", |
403 "RAW", | 264 "RAW", |
404 "RICE" | 265 "RICE" |
405 ], | 266 ], |
406 "type": "string" | 267 "type": "string" |
407 }, | 268 }, |
408 "type": "array" | 269 "type": "array" |
409 }, | 270 }, |
410 "maxUpdateEntries": { | 271 "maxUpdateEntries": { |
411 "description": "The maximum size in number of entries. The u
pdate will not contain more\nentries than this value. This should be a power of
2 between 2**10 and\n2**20. If zero, no update size limit is set.", | 272 "description": "The maximum size in number of entries. The u
pdate will not contain more\nentries than this value. This should be a power of
2 between 2**10 and\n2**20. If zero, no update size limit is set.", |
412 "format": "int32", | 273 "format": "int32", |
413 "type": "integer" | 274 "type": "integer" |
| 275 }, |
| 276 "region": { |
| 277 "description": "Requests the list for a specific geographic
location. If not set the\nserver may pick that value based on the user's IP addr
ess. Expects ISO\n3166-1 alpha-2 format.", |
| 278 "type": "string" |
| 279 }, |
| 280 "maxDatabaseEntries": { |
| 281 "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.", |
| 282 "format": "int32", |
| 283 "type": "integer" |
414 } | 284 } |
415 }, | 285 }, |
416 "type": "object" | 286 "type": "object" |
417 }, | 287 }, |
418 "ThreatMatch": { | 288 "ThreatMatch": { |
419 "description": "A match when checking a threat entry in the Safe Bro
wsing threat lists.", | 289 "description": "A match when checking a threat entry in the Safe Bro
wsing threat lists.", |
420 "id": "ThreatMatch", | 290 "id": "ThreatMatch", |
421 "properties": { | 291 "properties": { |
422 "threatType": { | 292 "threatType": { |
423 "description": "The threat type matching this threat.", | 293 "description": "The threat type matching this threat.", |
424 "enum": [ | 294 "enum": [ |
425 "THREAT_TYPE_UNSPECIFIED", | 295 "THREAT_TYPE_UNSPECIFIED", |
426 "MALWARE", | 296 "MALWARE", |
427 "SOCIAL_ENGINEERING", | 297 "SOCIAL_ENGINEERING", |
428 "UNWANTED_SOFTWARE", | 298 "UNWANTED_SOFTWARE", |
429 "POTENTIALLY_HARMFUL_APPLICATION", | 299 "POTENTIALLY_HARMFUL_APPLICATION", |
430 "MALICIOUS_BINARY" | 300 "SOCIAL_ENGINEERING_INTERNAL", |
| 301 "API_ABUSE", |
| 302 "MALICIOUS_BINARY", |
| 303 "CSD_WHITELIST", |
| 304 "CSD_DOWNLOAD_WHITELIST", |
| 305 "CLIENT_INCIDENT", |
| 306 "CLIENT_INCIDENT_WHITELIST", |
| 307 "APK_MALWARE_OFFLINE", |
| 308 "SUBRESOURCE_FILTER" |
431 ], | 309 ], |
432 "enumDescriptions": [ | 310 "enumDescriptions": [ |
433 "Unknown.", | 311 "Unknown.", |
434 "Malware threat type.", | 312 "Malware threat type.", |
435 "Social engineering threat type.", | 313 "Social engineering threat type.", |
436 "Unwanted software threat type.", | 314 "Unwanted software threat type.", |
437 "Potentially harmful application threat type.", | 315 "Potentially harmful application threat type.", |
438 "Malicious binary threat type." | 316 "Social engineering threat type for internal use.", |
| 317 "API abuse threat type.", |
| 318 "Malicious binary threat type.", |
| 319 "Client side detection whitelist threat type.", |
| 320 "Client side download detection whitelist threat type.", |
| 321 "Client incident threat type.", |
| 322 "Whitelist used when detecting client incident threats.\
nThis enum was never launched and should be re-used for the next list.", |
| 323 "List used for offline APK checks in PAM.", |
| 324 "Patterns to be used for activating the subresource filt
er. Interstitial\nwill not be shown for patterns from this list." |
439 ], | 325 ], |
440 "type": "string" | 326 "type": "string" |
441 }, | 327 }, |
442 "threatEntryMetadata": { | 328 "threatEntryMetadata": { |
443 "$ref": "ThreatEntryMetadata", | 329 "$ref": "ThreatEntryMetadata", |
444 "description": "Optional metadata associated with this threa
t." | 330 "description": "Optional metadata associated with this threa
t." |
445 }, | 331 }, |
446 "threat": { | 332 "threat": { |
447 "$ref": "ThreatEntry", | 333 "$ref": "ThreatEntry", |
448 "description": "The threat matching this threat." | 334 "description": "The threat matching this threat." |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 "format": "google-duration", | 386 "format": "google-duration", |
501 "type": "string" | 387 "type": "string" |
502 } | 388 } |
503 }, | 389 }, |
504 "type": "object" | 390 "type": "object" |
505 }, | 391 }, |
506 "RiceDeltaEncoding": { | 392 "RiceDeltaEncoding": { |
507 "description": "The Rice-Golomb encoded data. Used for sending compr
essed 4-byte hashes or\ncompressed removal indices.", | 393 "description": "The Rice-Golomb encoded data. Used for sending compr
essed 4-byte hashes or\ncompressed removal indices.", |
508 "id": "RiceDeltaEncoding", | 394 "id": "RiceDeltaEncoding", |
509 "properties": { | 395 "properties": { |
510 "encodedData": { | |
511 "description": "The encoded deltas that are encoded using th
e Golomb-Rice coder.", | |
512 "format": "byte", | |
513 "type": "string" | |
514 }, | |
515 "firstValue": { | |
516 "description": "The offset of the first entry in the encoded
data, or, if only a single\ninteger was encoded, that single integer's value.", | |
517 "format": "int64", | |
518 "type": "string" | |
519 }, | |
520 "numEntries": { | 396 "numEntries": { |
521 "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`.", | 397 "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`.", |
522 "format": "int32", | 398 "format": "int32", |
523 "type": "integer" | 399 "type": "integer" |
524 }, | 400 }, |
525 "riceParameter": { | 401 "riceParameter": { |
526 "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.", | 402 "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.", |
527 "format": "int32", | 403 "format": "int32", |
528 "type": "integer" | 404 "type": "integer" |
| 405 }, |
| 406 "encodedData": { |
| 407 "description": "The encoded deltas that are encoded using th
e Golomb-Rice coder.", |
| 408 "format": "byte", |
| 409 "type": "string" |
| 410 }, |
| 411 "firstValue": { |
| 412 "description": "The offset of the first entry in the encoded
data, or, if only a single\ninteger was encoded, that single integer's value.", |
| 413 "format": "int64", |
| 414 "type": "string" |
529 } | 415 } |
530 }, | 416 }, |
531 "type": "object" | 417 "type": "object" |
532 }, | 418 }, |
533 "ListThreatListsResponse": { | 419 "ListThreatListsResponse": { |
534 "id": "ListThreatListsResponse", | 420 "id": "ListThreatListsResponse", |
535 "properties": { | 421 "properties": { |
536 "threatLists": { | 422 "threatLists": { |
537 "description": "The lists available for download by the clie
nt.", | 423 "description": "The lists available for download by the clie
nt.", |
538 "items": { | 424 "items": { |
539 "$ref": "ThreatListDescriptor" | 425 "$ref": "ThreatListDescriptor" |
540 }, | 426 }, |
541 "type": "array" | 427 "type": "array" |
542 } | 428 } |
| 429 }, |
| 430 "type": "object" |
| 431 }, |
| 432 "FindThreatMatchesResponse": { |
| 433 "id": "FindThreatMatchesResponse", |
| 434 "properties": { |
| 435 "matches": { |
| 436 "description": "The threat list matches.", |
| 437 "items": { |
| 438 "$ref": "ThreatMatch" |
| 439 }, |
| 440 "type": "array" |
| 441 } |
543 }, | 442 }, |
544 "type": "object" | 443 "type": "object" |
545 }, | 444 }, |
546 "ThreatEntry": { | 445 "ThreatEntry": { |
547 "description": "An individual threat; for example, a malicious URL o
r its hash\nrepresentation. Only one of these fields should be set.", | 446 "description": "An individual threat; for example, a malicious URL o
r its hash\nrepresentation. Only one of these fields should be set.", |
548 "id": "ThreatEntry", | 447 "id": "ThreatEntry", |
549 "properties": { | 448 "properties": { |
550 "hash": { | 449 "hash": { |
551 "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.", | 450 "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.", |
552 "format": "byte", | 451 "format": "byte", |
553 "type": "string" | 452 "type": "string" |
554 }, | 453 }, |
555 "url": { | 454 "url": { |
556 "description": "A URL.", | 455 "description": "A URL.", |
557 "type": "string" | 456 "type": "string" |
558 }, | 457 }, |
559 "digest": { | 458 "digest": { |
560 "description": "The digest of an executable in SHA256 format
. The API supports both\nbinary and hex digests. For JSON requests, digests are
base64-encoded.", | 459 "description": "The digest of an executable in SHA256 format
. The API supports both\nbinary and hex digests. For JSON requests, digests are
base64-encoded.", |
561 "format": "byte", | 460 "format": "byte", |
562 "type": "string" | 461 "type": "string" |
563 } | 462 } |
564 }, | 463 }, |
565 "type": "object" | 464 "type": "object" |
566 }, | 465 }, |
567 "FindThreatMatchesResponse": { | |
568 "id": "FindThreatMatchesResponse", | |
569 "properties": { | |
570 "matches": { | |
571 "description": "The threat list matches.", | |
572 "items": { | |
573 "$ref": "ThreatMatch" | |
574 }, | |
575 "type": "array" | |
576 } | |
577 }, | |
578 "type": "object" | |
579 }, | |
580 "ThreatListDescriptor": { | 466 "ThreatListDescriptor": { |
581 "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.", | 467 "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.", |
582 "id": "ThreatListDescriptor", | 468 "id": "ThreatListDescriptor", |
583 "properties": { | 469 "properties": { |
| 470 "platformType": { |
| 471 "description": "The platform type targeted by the list's ent
ries.", |
| 472 "enum": [ |
| 473 "PLATFORM_TYPE_UNSPECIFIED", |
| 474 "WINDOWS", |
| 475 "LINUX", |
| 476 "ANDROID", |
| 477 "OSX", |
| 478 "IOS", |
| 479 "ANY_PLATFORM", |
| 480 "ALL_PLATFORMS", |
| 481 "CHROME" |
| 482 ], |
| 483 "enumDescriptions": [ |
| 484 "Unknown platform.", |
| 485 "Threat posed to Windows.", |
| 486 "Threat posed to Linux.", |
| 487 "Threat posed to Android.", |
| 488 "Threat posed to OS X.", |
| 489 "Threat posed to iOS.", |
| 490 "Threat posed to at least one of the defined platforms."
, |
| 491 "Threat posed to all defined platforms.", |
| 492 "Threat posed to Chrome." |
| 493 ], |
| 494 "type": "string" |
| 495 }, |
584 "threatType": { | 496 "threatType": { |
585 "description": "The threat type posed by the list's entries.
", | 497 "description": "The threat type posed by the list's entries.
", |
586 "enum": [ | 498 "enum": [ |
587 "THREAT_TYPE_UNSPECIFIED", | 499 "THREAT_TYPE_UNSPECIFIED", |
588 "MALWARE", | 500 "MALWARE", |
589 "SOCIAL_ENGINEERING", | 501 "SOCIAL_ENGINEERING", |
590 "UNWANTED_SOFTWARE", | 502 "UNWANTED_SOFTWARE", |
591 "POTENTIALLY_HARMFUL_APPLICATION", | 503 "POTENTIALLY_HARMFUL_APPLICATION", |
592 "MALICIOUS_BINARY" | 504 "SOCIAL_ENGINEERING_INTERNAL", |
| 505 "API_ABUSE", |
| 506 "MALICIOUS_BINARY", |
| 507 "CSD_WHITELIST", |
| 508 "CSD_DOWNLOAD_WHITELIST", |
| 509 "CLIENT_INCIDENT", |
| 510 "CLIENT_INCIDENT_WHITELIST", |
| 511 "APK_MALWARE_OFFLINE", |
| 512 "SUBRESOURCE_FILTER" |
593 ], | 513 ], |
594 "enumDescriptions": [ | 514 "enumDescriptions": [ |
595 "Unknown.", | 515 "Unknown.", |
596 "Malware threat type.", | 516 "Malware threat type.", |
597 "Social engineering threat type.", | 517 "Social engineering threat type.", |
598 "Unwanted software threat type.", | 518 "Unwanted software threat type.", |
599 "Potentially harmful application threat type.", | 519 "Potentially harmful application threat type.", |
600 "Malicious binary threat type." | 520 "Social engineering threat type for internal use.", |
| 521 "API abuse threat type.", |
| 522 "Malicious binary threat type.", |
| 523 "Client side detection whitelist threat type.", |
| 524 "Client side download detection whitelist threat type.", |
| 525 "Client incident threat type.", |
| 526 "Whitelist used when detecting client incident threats.\
nThis enum was never launched and should be re-used for the next list.", |
| 527 "List used for offline APK checks in PAM.", |
| 528 "Patterns to be used for activating the subresource filt
er. Interstitial\nwill not be shown for patterns from this list." |
601 ], | 529 ], |
602 "type": "string" | 530 "type": "string" |
603 }, | 531 }, |
604 "threatEntryType": { | 532 "threatEntryType": { |
605 "description": "The entry types contained in the list.", | 533 "description": "The entry types contained in the list.", |
606 "enum": [ | 534 "enum": [ |
607 "THREAT_ENTRY_TYPE_UNSPECIFIED", | 535 "THREAT_ENTRY_TYPE_UNSPECIFIED", |
608 "URL", | 536 "URL", |
609 "EXECUTABLE", | 537 "EXECUTABLE", |
610 "IP_RANGE", | 538 "IP_RANGE", |
611 "CHROME_EXTENSION", | 539 "CHROME_EXTENSION", |
612 "FILENAME", | 540 "FILENAME", |
613 "CERT" | 541 "CERT" |
614 ], | 542 ], |
615 "enumDescriptions": [ | 543 "enumDescriptions": [ |
616 "Unspecified.", | 544 "Unspecified.", |
617 "A URL.", | 545 "A URL.", |
618 "An executable program.", | 546 "An executable program.", |
619 "An IP range.", | 547 "An IP range.", |
620 "Chrome extension.", | 548 "Chrome extension.", |
621 "Filename.", | 549 "Filename.", |
622 "CERT" | 550 "CERT" |
623 ], | 551 ], |
624 "type": "string" | 552 "type": "string" |
625 }, | |
626 "platformType": { | |
627 "description": "The platform type targeted by the list's ent
ries.", | |
628 "enum": [ | |
629 "PLATFORM_TYPE_UNSPECIFIED", | |
630 "WINDOWS", | |
631 "LINUX", | |
632 "ANDROID", | |
633 "OSX", | |
634 "IOS", | |
635 "ANY_PLATFORM", | |
636 "ALL_PLATFORMS", | |
637 "CHROME" | |
638 ], | |
639 "enumDescriptions": [ | |
640 "Unknown platform.", | |
641 "Threat posed to Windows.", | |
642 "Threat posed to Linux.", | |
643 "Threat posed to Android.", | |
644 "Threat posed to OS X.", | |
645 "Threat posed to iOS.", | |
646 "Threat posed to at least one of the defined platforms."
, | |
647 "Threat posed to all defined platforms.", | |
648 "Threat posed to Chrome." | |
649 ], | |
650 "type": "string" | |
651 } | 553 } |
652 }, | 554 }, |
653 "type": "object" | 555 "type": "object" |
654 }, | 556 }, |
655 "MetadataEntry": { | 557 "MetadataEntry": { |
656 "description": "A single metadata entry.", | 558 "description": "A single metadata entry.", |
657 "id": "MetadataEntry", | 559 "id": "MetadataEntry", |
658 "properties": { | 560 "properties": { |
659 "value": { | 561 "value": { |
660 "description": "The metadata entry value. For JSON requests,
the value is base64-encoded.", | 562 "description": "The metadata entry value. For JSON requests,
the value is base64-encoded.", |
661 "format": "byte", | 563 "format": "byte", |
662 "type": "string" | 564 "type": "string" |
663 }, | 565 }, |
664 "key": { | 566 "key": { |
665 "description": "The metadata entry key. For JSON requests, t
he key is base64-encoded.", | 567 "description": "The metadata entry key. For JSON requests, t
he key is base64-encoded.", |
666 "format": "byte", | 568 "format": "byte", |
667 "type": "string" | 569 "type": "string" |
668 } | 570 } |
669 }, | 571 }, |
670 "type": "object" | 572 "type": "object" |
671 }, | 573 }, |
672 "ClientInfo": { | 574 "ClientInfo": { |
673 "description": "The client metadata associated with Safe Browsing AP
I requests.", | 575 "description": "The client metadata associated with Safe Browsing AP
I requests.", |
674 "id": "ClientInfo", | 576 "id": "ClientInfo", |
675 "properties": { | 577 "properties": { |
| 578 "clientId": { |
| 579 "description": "A client ID that (hopefully) uniquely identi
fies the client implementation\nof the Safe Browsing API.", |
| 580 "type": "string" |
| 581 }, |
676 "clientVersion": { | 582 "clientVersion": { |
677 "description": "The version of the client implementation.", | 583 "description": "The version of the client implementation.", |
678 "type": "string" | 584 "type": "string" |
679 }, | |
680 "clientId": { | |
681 "description": "A client ID that (hopefully) uniquely identi
fies the client implementation\nof the Safe Browsing API.", | |
682 "type": "string" | |
683 } | 585 } |
684 }, | 586 }, |
685 "type": "object" | 587 "type": "object" |
686 }, | 588 }, |
687 "ThreatInfo": { | 589 "ThreatInfo": { |
688 "description": "The information regarding one or more threats that a
client submits when\nchecking for matches in threat lists.", | 590 "description": "The information regarding one or more threats that a
client submits when\nchecking for matches in threat lists.", |
689 "id": "ThreatInfo", | 591 "id": "ThreatInfo", |
690 "properties": { | 592 "properties": { |
691 "threatEntries": { | 593 "threatEntries": { |
692 "description": "The threat entries to be checked.", | 594 "description": "The threat entries to be checked.", |
(...skipping 28 matching lines...) Expand all Loading... |
721 "type": "array" | 623 "type": "array" |
722 }, | 624 }, |
723 "threatTypes": { | 625 "threatTypes": { |
724 "description": "The threat types to be checked.", | 626 "description": "The threat types to be checked.", |
725 "enumDescriptions": [ | 627 "enumDescriptions": [ |
726 "Unknown.", | 628 "Unknown.", |
727 "Malware threat type.", | 629 "Malware threat type.", |
728 "Social engineering threat type.", | 630 "Social engineering threat type.", |
729 "Unwanted software threat type.", | 631 "Unwanted software threat type.", |
730 "Potentially harmful application threat type.", | 632 "Potentially harmful application threat type.", |
731 "Malicious binary threat type." | 633 "Social engineering threat type for internal use.", |
| 634 "API abuse threat type.", |
| 635 "Malicious binary threat type.", |
| 636 "Client side detection whitelist threat type.", |
| 637 "Client side download detection whitelist threat type.", |
| 638 "Client incident threat type.", |
| 639 "Whitelist used when detecting client incident threats.\
nThis enum was never launched and should be re-used for the next list.", |
| 640 "List used for offline APK checks in PAM.", |
| 641 "Patterns to be used for activating the subresource filt
er. Interstitial\nwill not be shown for patterns from this list." |
732 ], | 642 ], |
733 "items": { | 643 "items": { |
734 "enum": [ | 644 "enum": [ |
735 "THREAT_TYPE_UNSPECIFIED", | 645 "THREAT_TYPE_UNSPECIFIED", |
736 "MALWARE", | 646 "MALWARE", |
737 "SOCIAL_ENGINEERING", | 647 "SOCIAL_ENGINEERING", |
738 "UNWANTED_SOFTWARE", | 648 "UNWANTED_SOFTWARE", |
739 "POTENTIALLY_HARMFUL_APPLICATION", | 649 "POTENTIALLY_HARMFUL_APPLICATION", |
740 "MALICIOUS_BINARY" | 650 "SOCIAL_ENGINEERING_INTERNAL", |
| 651 "API_ABUSE", |
| 652 "MALICIOUS_BINARY", |
| 653 "CSD_WHITELIST", |
| 654 "CSD_DOWNLOAD_WHITELIST", |
| 655 "CLIENT_INCIDENT", |
| 656 "CLIENT_INCIDENT_WHITELIST", |
| 657 "APK_MALWARE_OFFLINE", |
| 658 "SUBRESOURCE_FILTER" |
741 ], | 659 ], |
742 "type": "string" | 660 "type": "string" |
743 }, | 661 }, |
744 "type": "array" | 662 "type": "array" |
745 }, | 663 }, |
746 "platformTypes": { | 664 "platformTypes": { |
747 "description": "The platform types to be checked.", | 665 "description": "The platform types to be checked.", |
748 "enumDescriptions": [ | 666 "enumDescriptions": [ |
749 "Unknown platform.", | 667 "Unknown platform.", |
750 "Threat posed to Windows.", | 668 "Threat posed to Windows.", |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 "listUpdateResponses": { | 765 "listUpdateResponses": { |
848 "description": "The list updates requested by the clients.", | 766 "description": "The list updates requested by the clients.", |
849 "items": { | 767 "items": { |
850 "$ref": "ListUpdateResponse" | 768 "$ref": "ListUpdateResponse" |
851 }, | 769 }, |
852 "type": "array" | 770 "type": "array" |
853 } | 771 } |
854 }, | 772 }, |
855 "type": "object" | 773 "type": "object" |
856 }, | 774 }, |
857 "Checksum": { | |
858 "description": "The expected state of a client's local database.", | |
859 "id": "Checksum", | |
860 "properties": { | |
861 "sha256": { | |
862 "description": "The SHA256 hash of the client state; that is
, of the sorted list of all\nhashes present in the database.", | |
863 "format": "byte", | |
864 "type": "string" | |
865 } | |
866 }, | |
867 "type": "object" | |
868 }, | |
869 "FindFullHashesResponse": { | 775 "FindFullHashesResponse": { |
870 "id": "FindFullHashesResponse", | 776 "id": "FindFullHashesResponse", |
871 "properties": { | 777 "properties": { |
872 "matches": { | 778 "matches": { |
873 "description": "The full hashes that matched the requested p
refixes.", | 779 "description": "The full hashes that matched the requested p
refixes.", |
874 "items": { | 780 "items": { |
875 "$ref": "ThreatMatch" | 781 "$ref": "ThreatMatch" |
876 }, | 782 }, |
877 "type": "array" | 783 "type": "array" |
878 }, | 784 }, |
879 "negativeCacheDuration": { | 785 "negativeCacheDuration": { |
880 "description": "For requested entities that did not match th
e threat list, how long to\ncache the response.", | 786 "description": "For requested entities that did not match th
e threat list, how long to\ncache the response.", |
881 "format": "google-duration", | 787 "format": "google-duration", |
882 "type": "string" | 788 "type": "string" |
883 }, | 789 }, |
884 "minimumWaitDuration": { | 790 "minimumWaitDuration": { |
885 "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.", | 791 "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.", |
886 "format": "google-duration", | 792 "format": "google-duration", |
887 "type": "string" | 793 "type": "string" |
888 } | 794 } |
889 }, | 795 }, |
890 "type": "object" | 796 "type": "object" |
891 }, | 797 }, |
| 798 "Checksum": { |
| 799 "description": "The expected state of a client's local database.", |
| 800 "id": "Checksum", |
| 801 "properties": { |
| 802 "sha256": { |
| 803 "description": "The SHA256 hash of the client state; that is
, of the sorted list of all\nhashes present in the database.", |
| 804 "format": "byte", |
| 805 "type": "string" |
| 806 } |
| 807 }, |
| 808 "type": "object" |
| 809 }, |
892 "ThreatEntrySet": { | 810 "ThreatEntrySet": { |
893 "description": "A set of threats that should be added or removed fro
m a client's local\ndatabase.", | 811 "description": "A set of threats that should be added or removed fro
m a client's local\ndatabase.", |
894 "id": "ThreatEntrySet", | 812 "id": "ThreatEntrySet", |
895 "properties": { | 813 "properties": { |
896 "rawHashes": { | |
897 "$ref": "RawHashes", | |
898 "description": "The raw SHA256-formatted entries." | |
899 }, | |
900 "riceHashes": { | |
901 "$ref": "RiceDeltaEncoding", | |
902 "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." | |
903 }, | |
904 "riceIndices": { | 814 "riceIndices": { |
905 "$ref": "RiceDeltaEncoding", | 815 "$ref": "RiceDeltaEncoding", |
906 "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." | 816 "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." |
907 }, | 817 }, |
908 "compressionType": { | 818 "compressionType": { |
909 "description": "The compression type for the entries in this
set.", | 819 "description": "The compression type for the entries in this
set.", |
910 "enum": [ | 820 "enum": [ |
911 "COMPRESSION_TYPE_UNSPECIFIED", | 821 "COMPRESSION_TYPE_UNSPECIFIED", |
912 "RAW", | 822 "RAW", |
913 "RICE" | 823 "RICE" |
914 ], | 824 ], |
915 "enumDescriptions": [ | 825 "enumDescriptions": [ |
916 "Unknown.", | 826 "Unknown.", |
917 "Raw, uncompressed data.", | 827 "Raw, uncompressed data.", |
918 "Rice-Golomb encoded data." | 828 "Rice-Golomb encoded data." |
919 ], | 829 ], |
920 "type": "string" | 830 "type": "string" |
921 }, | 831 }, |
922 "rawIndices": { | 832 "rawIndices": { |
923 "$ref": "RawIndices", | 833 "$ref": "RawIndices", |
924 "description": "The raw removal indices for a local list." | 834 "description": "The raw removal indices for a local list." |
| 835 }, |
| 836 "rawHashes": { |
| 837 "$ref": "RawHashes", |
| 838 "description": "The raw SHA256-formatted entries." |
| 839 }, |
| 840 "riceHashes": { |
| 841 "$ref": "RiceDeltaEncoding", |
| 842 "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." |
925 } | 843 } |
926 }, | 844 }, |
927 "type": "object" | 845 "type": "object" |
928 }, | 846 }, |
929 "FindFullHashesRequest": { | 847 "FindFullHashesRequest": { |
930 "description": "Request to return full hashes matched by the provide
d hash prefixes.", | 848 "description": "Request to return full hashes matched by the provide
d hash prefixes.", |
931 "id": "FindFullHashesRequest", | 849 "id": "FindFullHashesRequest", |
932 "properties": { | 850 "properties": { |
933 "threatInfo": { | |
934 "$ref": "ThreatInfo", | |
935 "description": "The lists and hashes to be checked." | |
936 }, | |
937 "apiClient": { | 851 "apiClient": { |
938 "$ref": "ClientInfo", | 852 "$ref": "ClientInfo", |
939 "description": "Client metadata associated with callers of h
igher-level APIs built on top\nof the client's implementation." | 853 "description": "Client metadata associated with callers of h
igher-level APIs built on top\nof the client's implementation." |
940 }, | 854 }, |
941 "clientStates": { | 855 "clientStates": { |
942 "description": "The current client states for each of the cl
ient's local threat lists.", | 856 "description": "The current client states for each of the cl
ient's local threat lists.", |
943 "items": { | 857 "items": { |
944 "format": "byte", | 858 "format": "byte", |
945 "type": "string" | 859 "type": "string" |
946 }, | 860 }, |
947 "type": "array" | 861 "type": "array" |
948 }, | 862 }, |
949 "client": { | 863 "client": { |
950 "$ref": "ClientInfo", | 864 "$ref": "ClientInfo", |
951 "description": "The client metadata." | 865 "description": "The client metadata." |
| 866 }, |
| 867 "threatInfo": { |
| 868 "$ref": "ThreatInfo", |
| 869 "description": "The lists and hashes to be checked." |
952 } | 870 } |
953 }, | 871 }, |
954 "type": "object" | 872 "type": "object" |
955 }, | 873 }, |
956 "ListUpdateRequest": { | 874 "ListUpdateRequest": { |
957 "description": "A single list update request.", | 875 "description": "A single list update request.", |
958 "id": "ListUpdateRequest", | 876 "id": "ListUpdateRequest", |
959 "properties": { | 877 "properties": { |
960 "constraints": { | 878 "constraints": { |
961 "$ref": "Constraints", | 879 "$ref": "Constraints", |
962 "description": "The constraints associated with this request
." | 880 "description": "The constraints associated with this request
." |
963 }, | 881 }, |
964 "threatType": { | 882 "threatType": { |
965 "description": "The type of threat posed by entries present
in the list.", | 883 "description": "The type of threat posed by entries present
in the list.", |
966 "enum": [ | 884 "enum": [ |
967 "THREAT_TYPE_UNSPECIFIED", | 885 "THREAT_TYPE_UNSPECIFIED", |
968 "MALWARE", | 886 "MALWARE", |
969 "SOCIAL_ENGINEERING", | 887 "SOCIAL_ENGINEERING", |
970 "UNWANTED_SOFTWARE", | 888 "UNWANTED_SOFTWARE", |
971 "POTENTIALLY_HARMFUL_APPLICATION", | 889 "POTENTIALLY_HARMFUL_APPLICATION", |
972 "MALICIOUS_BINARY" | 890 "SOCIAL_ENGINEERING_INTERNAL", |
| 891 "API_ABUSE", |
| 892 "MALICIOUS_BINARY", |
| 893 "CSD_WHITELIST", |
| 894 "CSD_DOWNLOAD_WHITELIST", |
| 895 "CLIENT_INCIDENT", |
| 896 "CLIENT_INCIDENT_WHITELIST", |
| 897 "APK_MALWARE_OFFLINE", |
| 898 "SUBRESOURCE_FILTER" |
973 ], | 899 ], |
974 "enumDescriptions": [ | 900 "enumDescriptions": [ |
975 "Unknown.", | 901 "Unknown.", |
976 "Malware threat type.", | 902 "Malware threat type.", |
977 "Social engineering threat type.", | 903 "Social engineering threat type.", |
978 "Unwanted software threat type.", | 904 "Unwanted software threat type.", |
979 "Potentially harmful application threat type.", | 905 "Potentially harmful application threat type.", |
980 "Malicious binary threat type." | 906 "Social engineering threat type for internal use.", |
| 907 "API abuse threat type.", |
| 908 "Malicious binary threat type.", |
| 909 "Client side detection whitelist threat type.", |
| 910 "Client side download detection whitelist threat type.", |
| 911 "Client incident threat type.", |
| 912 "Whitelist used when detecting client incident threats.\
nThis enum was never launched and should be re-used for the next list.", |
| 913 "List used for offline APK checks in PAM.", |
| 914 "Patterns to be used for activating the subresource filt
er. Interstitial\nwill not be shown for patterns from this list." |
981 ], | 915 ], |
982 "type": "string" | 916 "type": "string" |
983 }, | 917 }, |
984 "threatEntryType": { | 918 "threatEntryType": { |
985 "description": "The types of entries present in the list.", | 919 "description": "The types of entries present in the list.", |
986 "enum": [ | 920 "enum": [ |
987 "THREAT_ENTRY_TYPE_UNSPECIFIED", | 921 "THREAT_ENTRY_TYPE_UNSPECIFIED", |
988 "URL", | 922 "URL", |
989 "EXECUTABLE", | 923 "EXECUTABLE", |
990 "IP_RANGE", | 924 "IP_RANGE", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 "Threat posed to OS X.", | 963 "Threat posed to OS X.", |
1030 "Threat posed to iOS.", | 964 "Threat posed to iOS.", |
1031 "Threat posed to at least one of the defined platforms."
, | 965 "Threat posed to at least one of the defined platforms."
, |
1032 "Threat posed to all defined platforms.", | 966 "Threat posed to all defined platforms.", |
1033 "Threat posed to Chrome." | 967 "Threat posed to Chrome." |
1034 ], | 968 ], |
1035 "type": "string" | 969 "type": "string" |
1036 } | 970 } |
1037 }, | 971 }, |
1038 "type": "object" | 972 "type": "object" |
| 973 }, |
| 974 "FetchThreatListUpdatesRequest": { |
| 975 "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", |
| 976 "id": "FetchThreatListUpdatesRequest", |
| 977 "properties": { |
| 978 "listUpdateRequests": { |
| 979 "description": "The requested threat list updates.", |
| 980 "items": { |
| 981 "$ref": "ListUpdateRequest" |
| 982 }, |
| 983 "type": "array" |
| 984 }, |
| 985 "client": { |
| 986 "$ref": "ClientInfo", |
| 987 "description": "The client metadata." |
| 988 } |
| 989 }, |
| 990 "type": "object" |
| 991 }, |
| 992 "ListUpdateResponse": { |
| 993 "description": "An update to an individual list.", |
| 994 "id": "ListUpdateResponse", |
| 995 "properties": { |
| 996 "additions": { |
| 997 "description": "A set of entries to add to a local threat ty
pe's list. Repeated to allow\nfor a combination of compressed and raw data to be
sent in a single\nresponse.", |
| 998 "items": { |
| 999 "$ref": "ThreatEntrySet" |
| 1000 }, |
| 1001 "type": "array" |
| 1002 }, |
| 1003 "checksum": { |
| 1004 "$ref": "Checksum", |
| 1005 "description": "The expected SHA256 hash of the client state
; that is, of the sorted list\nof all hashes present in the database after apply
ing the provided update.\nIf the client state doesn't match the expected state,
the client must\ndisregard this update and retry later." |
| 1006 }, |
| 1007 "responseType": { |
| 1008 "description": "The type of response. This may indicate that
an action is required by the\nclient when the response is received.", |
| 1009 "enum": [ |
| 1010 "RESPONSE_TYPE_UNSPECIFIED", |
| 1011 "PARTIAL_UPDATE", |
| 1012 "FULL_UPDATE" |
| 1013 ], |
| 1014 "enumDescriptions": [ |
| 1015 "Unknown.", |
| 1016 "Partial updates are applied to the client's existing lo
cal database.", |
| 1017 "Full updates replace the client's entire local database
. This means\nthat either the client was seriously out-of-date or the client is\
nbelieved to be corrupt." |
| 1018 ], |
| 1019 "type": "string" |
| 1020 }, |
| 1021 "threatType": { |
| 1022 "description": "The threat type for which data is returned."
, |
| 1023 "enum": [ |
| 1024 "THREAT_TYPE_UNSPECIFIED", |
| 1025 "MALWARE", |
| 1026 "SOCIAL_ENGINEERING", |
| 1027 "UNWANTED_SOFTWARE", |
| 1028 "POTENTIALLY_HARMFUL_APPLICATION", |
| 1029 "SOCIAL_ENGINEERING_INTERNAL", |
| 1030 "API_ABUSE", |
| 1031 "MALICIOUS_BINARY", |
| 1032 "CSD_WHITELIST", |
| 1033 "CSD_DOWNLOAD_WHITELIST", |
| 1034 "CLIENT_INCIDENT", |
| 1035 "CLIENT_INCIDENT_WHITELIST", |
| 1036 "APK_MALWARE_OFFLINE", |
| 1037 "SUBRESOURCE_FILTER" |
| 1038 ], |
| 1039 "enumDescriptions": [ |
| 1040 "Unknown.", |
| 1041 "Malware threat type.", |
| 1042 "Social engineering threat type.", |
| 1043 "Unwanted software threat type.", |
| 1044 "Potentially harmful application threat type.", |
| 1045 "Social engineering threat type for internal use.", |
| 1046 "API abuse threat type.", |
| 1047 "Malicious binary threat type.", |
| 1048 "Client side detection whitelist threat type.", |
| 1049 "Client side download detection whitelist threat type.", |
| 1050 "Client incident threat type.", |
| 1051 "Whitelist used when detecting client incident threats.\
nThis enum was never launched and should be re-used for the next list.", |
| 1052 "List used for offline APK checks in PAM.", |
| 1053 "Patterns to be used for activating the subresource filt
er. Interstitial\nwill not be shown for patterns from this list." |
| 1054 ], |
| 1055 "type": "string" |
| 1056 }, |
| 1057 "newClientState": { |
| 1058 "description": "The new client state, in encrypted format. O
paque to clients.", |
| 1059 "format": "byte", |
| 1060 "type": "string" |
| 1061 }, |
| 1062 "removals": { |
| 1063 "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.", |
| 1064 "items": { |
| 1065 "$ref": "ThreatEntrySet" |
| 1066 }, |
| 1067 "type": "array" |
| 1068 }, |
| 1069 "platformType": { |
| 1070 "description": "The platform type for which data is returned
.", |
| 1071 "enum": [ |
| 1072 "PLATFORM_TYPE_UNSPECIFIED", |
| 1073 "WINDOWS", |
| 1074 "LINUX", |
| 1075 "ANDROID", |
| 1076 "OSX", |
| 1077 "IOS", |
| 1078 "ANY_PLATFORM", |
| 1079 "ALL_PLATFORMS", |
| 1080 "CHROME" |
| 1081 ], |
| 1082 "enumDescriptions": [ |
| 1083 "Unknown platform.", |
| 1084 "Threat posed to Windows.", |
| 1085 "Threat posed to Linux.", |
| 1086 "Threat posed to Android.", |
| 1087 "Threat posed to OS X.", |
| 1088 "Threat posed to iOS.", |
| 1089 "Threat posed to at least one of the defined platforms."
, |
| 1090 "Threat posed to all defined platforms.", |
| 1091 "Threat posed to Chrome." |
| 1092 ], |
| 1093 "type": "string" |
| 1094 }, |
| 1095 "threatEntryType": { |
| 1096 "description": "The format of the threats.", |
| 1097 "enum": [ |
| 1098 "THREAT_ENTRY_TYPE_UNSPECIFIED", |
| 1099 "URL", |
| 1100 "EXECUTABLE", |
| 1101 "IP_RANGE", |
| 1102 "CHROME_EXTENSION", |
| 1103 "FILENAME", |
| 1104 "CERT" |
| 1105 ], |
| 1106 "enumDescriptions": [ |
| 1107 "Unspecified.", |
| 1108 "A URL.", |
| 1109 "An executable program.", |
| 1110 "An IP range.", |
| 1111 "Chrome extension.", |
| 1112 "Filename.", |
| 1113 "CERT" |
| 1114 ], |
| 1115 "type": "string" |
| 1116 } |
| 1117 }, |
| 1118 "type": "object" |
1039 } | 1119 } |
1040 }, | 1120 }, |
1041 "servicePath": "", | 1121 "servicePath": "", |
1042 "title": "Google Safe Browsing API", | 1122 "title": "Google Safe Browsing API", |
1043 "version": "v4" | 1123 "version": "v4" |
1044 } | 1124 } |
OLD | NEW |