@googleapis/safebrowsing 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/build/v4.d.ts +195 -195
- package/build/v4.js.map +1 -1
- package/package.json +2 -2
- package/v4.ts +244 -261
package/build/v4.d.ts
CHANGED
|
@@ -77,15 +77,10 @@ export declare namespace safebrowsing_v4 {
|
|
|
77
77
|
threatMatches: Resource$Threatmatches;
|
|
78
78
|
constructor(options: GlobalOptions, google?: GoogleConfigurable);
|
|
79
79
|
}
|
|
80
|
-
/**
|
|
81
|
-
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
82
|
-
*/
|
|
83
|
-
export interface Schema$GoogleProtobufEmpty {
|
|
84
|
-
}
|
|
85
80
|
/**
|
|
86
81
|
* The expected state of a client's local database.
|
|
87
82
|
*/
|
|
88
|
-
export interface Schema$
|
|
83
|
+
export interface Schema$Checksum {
|
|
89
84
|
/**
|
|
90
85
|
* The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database.
|
|
91
86
|
*/
|
|
@@ -94,7 +89,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
94
89
|
/**
|
|
95
90
|
* The client metadata associated with Safe Browsing API requests.
|
|
96
91
|
*/
|
|
97
|
-
export interface Schema$
|
|
92
|
+
export interface Schema$ClientInfo {
|
|
98
93
|
/**
|
|
99
94
|
* A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API.
|
|
100
95
|
*/
|
|
@@ -104,48 +99,10 @@ export declare namespace safebrowsing_v4 {
|
|
|
104
99
|
*/
|
|
105
100
|
clientVersion?: string | null;
|
|
106
101
|
}
|
|
107
|
-
/**
|
|
108
|
-
* Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. The server may not respond to all requests, if the server has no updates for that list. NOTE: Field index 2 is unused. NEXT: 5
|
|
109
|
-
*/
|
|
110
|
-
export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest {
|
|
111
|
-
/**
|
|
112
|
-
* The client metadata.
|
|
113
|
-
*/
|
|
114
|
-
client?: Schema$GoogleSecuritySafebrowsingV4ClientInfo;
|
|
115
|
-
/**
|
|
116
|
-
* The requested threat list updates.
|
|
117
|
-
*/
|
|
118
|
-
listUpdateRequests?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest[];
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* A single list update request.
|
|
122
|
-
*/
|
|
123
|
-
export interface Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest {
|
|
124
|
-
/**
|
|
125
|
-
* The constraints associated with this request.
|
|
126
|
-
*/
|
|
127
|
-
constraints?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints;
|
|
128
|
-
/**
|
|
129
|
-
* The type of platform at risk by entries present in the list.
|
|
130
|
-
*/
|
|
131
|
-
platformType?: string | null;
|
|
132
|
-
/**
|
|
133
|
-
* The current state of the client for the requested list (the encrypted client state that was received from the last successful list update).
|
|
134
|
-
*/
|
|
135
|
-
state?: string | null;
|
|
136
|
-
/**
|
|
137
|
-
* The types of entries present in the list.
|
|
138
|
-
*/
|
|
139
|
-
threatEntryType?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* The type of threat posed by entries present in the list.
|
|
142
|
-
*/
|
|
143
|
-
threatType?: string | null;
|
|
144
|
-
}
|
|
145
102
|
/**
|
|
146
103
|
* The constraints for this update.
|
|
147
104
|
*/
|
|
148
|
-
export interface Schema$
|
|
105
|
+
export interface Schema$Constraints {
|
|
149
106
|
/**
|
|
150
107
|
* A client's physical location, expressed as a ISO 31166-1 alpha-2 region code.
|
|
151
108
|
*/
|
|
@@ -171,65 +128,46 @@ export declare namespace safebrowsing_v4 {
|
|
|
171
128
|
*/
|
|
172
129
|
supportedCompressions?: string[] | null;
|
|
173
130
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
listUpdateResponses?: Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse[];
|
|
179
|
-
/**
|
|
180
|
-
* The minimum duration the client must wait before issuing any update request. If this field is not set clients may update as soon as they want.
|
|
181
|
-
*/
|
|
182
|
-
minimumWaitDuration?: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
133
|
+
*/
|
|
134
|
+
export interface Schema$Empty {
|
|
183
135
|
}
|
|
184
136
|
/**
|
|
185
|
-
*
|
|
137
|
+
* Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. The server may not respond to all requests, if the server has no updates for that list. NOTE: Field index 2 is unused. NEXT: 5
|
|
186
138
|
*/
|
|
187
|
-
export interface Schema$
|
|
188
|
-
/**
|
|
189
|
-
* A set of entries to add to a local threat type's list. Repeated to allow for a combination of compressed and raw data to be sent in a single response.
|
|
190
|
-
*/
|
|
191
|
-
additions?: Schema$GoogleSecuritySafebrowsingV4ThreatEntrySet[];
|
|
192
|
-
/**
|
|
193
|
-
* The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided update. If the client state doesn't match the expected state, the client must disregard this update and retry later.
|
|
194
|
-
*/
|
|
195
|
-
checksum?: Schema$GoogleSecuritySafebrowsingV4Checksum;
|
|
139
|
+
export interface Schema$FetchThreatListUpdatesRequest {
|
|
196
140
|
/**
|
|
197
|
-
* The
|
|
198
|
-
*/
|
|
199
|
-
newClientState?: string | null;
|
|
200
|
-
/**
|
|
201
|
-
* The platform type for which data is returned.
|
|
202
|
-
*/
|
|
203
|
-
platformType?: string | null;
|
|
204
|
-
/**
|
|
205
|
-
* A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet.
|
|
141
|
+
* The client metadata.
|
|
206
142
|
*/
|
|
207
|
-
|
|
143
|
+
client?: Schema$ClientInfo;
|
|
208
144
|
/**
|
|
209
|
-
* The
|
|
145
|
+
* The requested threat list updates.
|
|
210
146
|
*/
|
|
211
|
-
|
|
147
|
+
listUpdateRequests?: Schema$ListUpdateRequest[];
|
|
148
|
+
}
|
|
149
|
+
export interface Schema$FetchThreatListUpdatesResponse {
|
|
212
150
|
/**
|
|
213
|
-
* The
|
|
151
|
+
* The list updates requested by the clients. The number of responses here may be less than the number of requests sent by clients. This is the case, for example, if the server has no updates for a particular list.
|
|
214
152
|
*/
|
|
215
|
-
|
|
153
|
+
listUpdateResponses?: Schema$ListUpdateResponse[];
|
|
216
154
|
/**
|
|
217
|
-
* The
|
|
155
|
+
* The minimum duration the client must wait before issuing any update request. If this field is not set clients may update as soon as they want.
|
|
218
156
|
*/
|
|
219
|
-
|
|
157
|
+
minimumWaitDuration?: string | null;
|
|
220
158
|
}
|
|
221
159
|
/**
|
|
222
160
|
* Request to return full hashes matched by the provided hash prefixes.
|
|
223
161
|
*/
|
|
224
|
-
export interface Schema$
|
|
162
|
+
export interface Schema$FindFullHashesRequest {
|
|
225
163
|
/**
|
|
226
164
|
* Client metadata associated with callers of higher-level APIs built on top of the client's implementation.
|
|
227
165
|
*/
|
|
228
|
-
apiClient?: Schema$
|
|
166
|
+
apiClient?: Schema$ClientInfo;
|
|
229
167
|
/**
|
|
230
168
|
* The client metadata.
|
|
231
169
|
*/
|
|
232
|
-
client?: Schema$
|
|
170
|
+
client?: Schema$ClientInfo;
|
|
233
171
|
/**
|
|
234
172
|
* The current client states for each of the client's local threat lists.
|
|
235
173
|
*/
|
|
@@ -237,13 +175,13 @@ export declare namespace safebrowsing_v4 {
|
|
|
237
175
|
/**
|
|
238
176
|
* The lists and hashes to be checked.
|
|
239
177
|
*/
|
|
240
|
-
threatInfo?: Schema$
|
|
178
|
+
threatInfo?: Schema$ThreatInfo;
|
|
241
179
|
}
|
|
242
|
-
export interface Schema$
|
|
180
|
+
export interface Schema$FindFullHashesResponse {
|
|
243
181
|
/**
|
|
244
182
|
* The full hashes that matched the requested prefixes.
|
|
245
183
|
*/
|
|
246
|
-
matches?: Schema$
|
|
184
|
+
matches?: Schema$ThreatMatch[];
|
|
247
185
|
/**
|
|
248
186
|
* The minimum duration the client must wait before issuing any find hashes request. If this field is not set, clients can issue a request as soon as they want.
|
|
249
187
|
*/
|
|
@@ -256,32 +194,107 @@ export declare namespace safebrowsing_v4 {
|
|
|
256
194
|
/**
|
|
257
195
|
* Request to check entries against lists.
|
|
258
196
|
*/
|
|
259
|
-
export interface Schema$
|
|
197
|
+
export interface Schema$FindThreatMatchesRequest {
|
|
260
198
|
/**
|
|
261
199
|
* The client metadata.
|
|
262
200
|
*/
|
|
263
|
-
client?: Schema$
|
|
201
|
+
client?: Schema$ClientInfo;
|
|
264
202
|
/**
|
|
265
203
|
* The lists and entries to be checked for matches.
|
|
266
204
|
*/
|
|
267
|
-
threatInfo?: Schema$
|
|
205
|
+
threatInfo?: Schema$ThreatInfo;
|
|
268
206
|
}
|
|
269
|
-
export interface Schema$
|
|
207
|
+
export interface Schema$FindThreatMatchesResponse {
|
|
270
208
|
/**
|
|
271
209
|
* The threat list matches.
|
|
272
210
|
*/
|
|
273
|
-
matches?: Schema$
|
|
211
|
+
matches?: Schema$ThreatMatch[];
|
|
274
212
|
}
|
|
275
|
-
export interface Schema$
|
|
213
|
+
export interface Schema$ListThreatListsResponse {
|
|
276
214
|
/**
|
|
277
215
|
* The lists available for download by the client.
|
|
278
216
|
*/
|
|
279
|
-
threatLists?: Schema$
|
|
217
|
+
threatLists?: Schema$ThreatListDescriptor[];
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* A single list update request.
|
|
221
|
+
*/
|
|
222
|
+
export interface Schema$ListUpdateRequest {
|
|
223
|
+
/**
|
|
224
|
+
* The constraints associated with this request.
|
|
225
|
+
*/
|
|
226
|
+
constraints?: Schema$Constraints;
|
|
227
|
+
/**
|
|
228
|
+
* The type of platform at risk by entries present in the list.
|
|
229
|
+
*/
|
|
230
|
+
platformType?: string | null;
|
|
231
|
+
/**
|
|
232
|
+
* The current state of the client for the requested list (the encrypted client state that was received from the last successful list update).
|
|
233
|
+
*/
|
|
234
|
+
state?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* The types of entries present in the list.
|
|
237
|
+
*/
|
|
238
|
+
threatEntryType?: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* The type of threat posed by entries present in the list.
|
|
241
|
+
*/
|
|
242
|
+
threatType?: string | null;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* An update to an individual list.
|
|
246
|
+
*/
|
|
247
|
+
export interface Schema$ListUpdateResponse {
|
|
248
|
+
/**
|
|
249
|
+
* A set of entries to add to a local threat type's list. Repeated to allow for a combination of compressed and raw data to be sent in a single response.
|
|
250
|
+
*/
|
|
251
|
+
additions?: Schema$ThreatEntrySet[];
|
|
252
|
+
/**
|
|
253
|
+
* The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided update. If the client state doesn't match the expected state, the client must disregard this update and retry later.
|
|
254
|
+
*/
|
|
255
|
+
checksum?: Schema$Checksum;
|
|
256
|
+
/**
|
|
257
|
+
* The new client state, in encrypted format. Opaque to clients.
|
|
258
|
+
*/
|
|
259
|
+
newClientState?: string | null;
|
|
260
|
+
/**
|
|
261
|
+
* The platform type for which data is returned.
|
|
262
|
+
*/
|
|
263
|
+
platformType?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet.
|
|
266
|
+
*/
|
|
267
|
+
removals?: Schema$ThreatEntrySet[];
|
|
268
|
+
/**
|
|
269
|
+
* The type of response. This may indicate that an action is required by the client when the response is received.
|
|
270
|
+
*/
|
|
271
|
+
responseType?: string | null;
|
|
272
|
+
/**
|
|
273
|
+
* The format of the threats.
|
|
274
|
+
*/
|
|
275
|
+
threatEntryType?: string | null;
|
|
276
|
+
/**
|
|
277
|
+
* The threat type for which data is returned.
|
|
278
|
+
*/
|
|
279
|
+
threatType?: string | null;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* A single metadata entry.
|
|
283
|
+
*/
|
|
284
|
+
export interface Schema$MetadataEntry {
|
|
285
|
+
/**
|
|
286
|
+
* The metadata entry key. For JSON requests, the key is base64-encoded.
|
|
287
|
+
*/
|
|
288
|
+
key?: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* The metadata entry value. For JSON requests, the value is base64-encoded.
|
|
291
|
+
*/
|
|
292
|
+
value?: string | null;
|
|
280
293
|
}
|
|
281
294
|
/**
|
|
282
295
|
* The uncompressed threat entries in hash format of a particular prefix length. Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4 bytes, but some hashes are lengthened if they collide with the hash of a popular URL. Used for sending ThreatEntrySet to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.
|
|
283
296
|
*/
|
|
284
|
-
export interface Schema$
|
|
297
|
+
export interface Schema$RawHashes {
|
|
285
298
|
/**
|
|
286
299
|
* The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
|
|
287
300
|
*/
|
|
@@ -294,7 +307,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
294
307
|
/**
|
|
295
308
|
* A set of raw indices to remove from a local list.
|
|
296
309
|
*/
|
|
297
|
-
export interface Schema$
|
|
310
|
+
export interface Schema$RawIndices {
|
|
298
311
|
/**
|
|
299
312
|
* The indices to remove from a lexicographically-sorted local list.
|
|
300
313
|
*/
|
|
@@ -303,7 +316,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
303
316
|
/**
|
|
304
317
|
* The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.
|
|
305
318
|
*/
|
|
306
|
-
export interface Schema$
|
|
319
|
+
export interface Schema$RiceDeltaEncoding {
|
|
307
320
|
/**
|
|
308
321
|
* The encoded deltas that are encoded using the Golomb-Rice coder.
|
|
309
322
|
*/
|
|
@@ -324,7 +337,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
324
337
|
/**
|
|
325
338
|
* An individual threat; for example, a malicious URL or its hash representation. Only one of these fields should be set.
|
|
326
339
|
*/
|
|
327
|
-
export interface Schema$
|
|
340
|
+
export interface Schema$ThreatEntry {
|
|
328
341
|
/**
|
|
329
342
|
* The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded.
|
|
330
343
|
*/
|
|
@@ -341,29 +354,16 @@ export declare namespace safebrowsing_v4 {
|
|
|
341
354
|
/**
|
|
342
355
|
* The metadata associated with a specific threat entry. The client is expected to know the metadata key/value pairs associated with each threat type.
|
|
343
356
|
*/
|
|
344
|
-
export interface Schema$
|
|
357
|
+
export interface Schema$ThreatEntryMetadata {
|
|
345
358
|
/**
|
|
346
359
|
* The metadata entries.
|
|
347
360
|
*/
|
|
348
|
-
entries?: Schema$
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* A single metadata entry.
|
|
352
|
-
*/
|
|
353
|
-
export interface Schema$GoogleSecuritySafebrowsingV4ThreatEntryMetadataMetadataEntry {
|
|
354
|
-
/**
|
|
355
|
-
* The metadata entry key. For JSON requests, the key is base64-encoded.
|
|
356
|
-
*/
|
|
357
|
-
key?: string | null;
|
|
358
|
-
/**
|
|
359
|
-
* The metadata entry value. For JSON requests, the value is base64-encoded.
|
|
360
|
-
*/
|
|
361
|
-
value?: string | null;
|
|
361
|
+
entries?: Schema$MetadataEntry[];
|
|
362
362
|
}
|
|
363
363
|
/**
|
|
364
364
|
* A set of threats that should be added or removed from a client's local database.
|
|
365
365
|
*/
|
|
366
|
-
export interface Schema$
|
|
366
|
+
export interface Schema$ThreatEntrySet {
|
|
367
367
|
/**
|
|
368
368
|
* The compression type for the entries in this set.
|
|
369
369
|
*/
|
|
@@ -371,29 +371,29 @@ export declare namespace safebrowsing_v4 {
|
|
|
371
371
|
/**
|
|
372
372
|
* The raw SHA256-formatted entries.
|
|
373
373
|
*/
|
|
374
|
-
rawHashes?: Schema$
|
|
374
|
+
rawHashes?: Schema$RawHashes;
|
|
375
375
|
/**
|
|
376
376
|
* The raw removal indices for a local list.
|
|
377
377
|
*/
|
|
378
|
-
rawIndices?: Schema$
|
|
378
|
+
rawIndices?: Schema$RawIndices;
|
|
379
379
|
/**
|
|
380
380
|
* The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.
|
|
381
381
|
*/
|
|
382
|
-
riceHashes?: Schema$
|
|
382
|
+
riceHashes?: Schema$RiceDeltaEncoding;
|
|
383
383
|
/**
|
|
384
384
|
* The encoded local, lexicographically-sorted list indices, using a Golomb-Rice encoding. Used for sending compressed removal indices. The removal indices (uint32) are sorted in ascending order, then delta encoded and stored as encoded_data.
|
|
385
385
|
*/
|
|
386
|
-
riceIndices?: Schema$
|
|
386
|
+
riceIndices?: Schema$RiceDeltaEncoding;
|
|
387
387
|
}
|
|
388
|
-
export interface Schema$
|
|
388
|
+
export interface Schema$ThreatHit {
|
|
389
389
|
/**
|
|
390
390
|
* Client-reported identification.
|
|
391
391
|
*/
|
|
392
|
-
clientInfo?: Schema$
|
|
392
|
+
clientInfo?: Schema$ClientInfo;
|
|
393
393
|
/**
|
|
394
394
|
* The threat entry responsible for the hit. Full hash should be reported for hash-based hits.
|
|
395
395
|
*/
|
|
396
|
-
entry?: Schema$
|
|
396
|
+
entry?: Schema$ThreatEntry;
|
|
397
397
|
/**
|
|
398
398
|
* The platform type reported.
|
|
399
399
|
*/
|
|
@@ -401,7 +401,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
401
401
|
/**
|
|
402
402
|
* The resources related to the threat hit.
|
|
403
403
|
*/
|
|
404
|
-
resources?: Schema$
|
|
404
|
+
resources?: Schema$ThreatSource[];
|
|
405
405
|
/**
|
|
406
406
|
* The threat type reported.
|
|
407
407
|
*/
|
|
@@ -409,46 +409,12 @@ export declare namespace safebrowsing_v4 {
|
|
|
409
409
|
/**
|
|
410
410
|
* Details about the user that encountered the threat.
|
|
411
411
|
*/
|
|
412
|
-
userInfo?: Schema$
|
|
413
|
-
}
|
|
414
|
-
/**
|
|
415
|
-
* A single resource related to a threat hit.
|
|
416
|
-
*/
|
|
417
|
-
export interface Schema$GoogleSecuritySafebrowsingV4ThreatHitThreatSource {
|
|
418
|
-
/**
|
|
419
|
-
* Referrer of the resource. Only set if the referrer is available.
|
|
420
|
-
*/
|
|
421
|
-
referrer?: string | null;
|
|
422
|
-
/**
|
|
423
|
-
* The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
|
|
424
|
-
*/
|
|
425
|
-
remoteIp?: string | null;
|
|
426
|
-
/**
|
|
427
|
-
* The type of source reported.
|
|
428
|
-
*/
|
|
429
|
-
type?: string | null;
|
|
430
|
-
/**
|
|
431
|
-
* The URL of the resource.
|
|
432
|
-
*/
|
|
433
|
-
url?: string | null;
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Details about the user that encountered the threat.
|
|
437
|
-
*/
|
|
438
|
-
export interface Schema$GoogleSecuritySafebrowsingV4ThreatHitUserInfo {
|
|
439
|
-
/**
|
|
440
|
-
* The UN M.49 region code associated with the user's location.
|
|
441
|
-
*/
|
|
442
|
-
regionCode?: string | null;
|
|
443
|
-
/**
|
|
444
|
-
* Unique user identifier defined by the client.
|
|
445
|
-
*/
|
|
446
|
-
userId?: string | null;
|
|
412
|
+
userInfo?: Schema$UserInfo;
|
|
447
413
|
}
|
|
448
414
|
/**
|
|
449
415
|
* The information regarding one or more threats that a client submits when checking for matches in threat lists.
|
|
450
416
|
*/
|
|
451
|
-
export interface Schema$
|
|
417
|
+
export interface Schema$ThreatInfo {
|
|
452
418
|
/**
|
|
453
419
|
* The platform types to be checked.
|
|
454
420
|
*/
|
|
@@ -456,7 +422,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
456
422
|
/**
|
|
457
423
|
* The threat entries to be checked.
|
|
458
424
|
*/
|
|
459
|
-
threatEntries?: Schema$
|
|
425
|
+
threatEntries?: Schema$ThreatEntry[];
|
|
460
426
|
/**
|
|
461
427
|
* The entry types to be checked.
|
|
462
428
|
*/
|
|
@@ -469,7 +435,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
469
435
|
/**
|
|
470
436
|
* Describes an individual threat list. A list is defined by three parameters: the type of threat posed, the type of platform targeted by the threat, and the type of entries in the list.
|
|
471
437
|
*/
|
|
472
|
-
export interface Schema$
|
|
438
|
+
export interface Schema$ThreatListDescriptor {
|
|
473
439
|
/**
|
|
474
440
|
* The platform type targeted by the list's entries.
|
|
475
441
|
*/
|
|
@@ -486,7 +452,7 @@ export declare namespace safebrowsing_v4 {
|
|
|
486
452
|
/**
|
|
487
453
|
* A match when checking a threat entry in the Safe Browsing threat lists.
|
|
488
454
|
*/
|
|
489
|
-
export interface Schema$
|
|
455
|
+
export interface Schema$ThreatMatch {
|
|
490
456
|
/**
|
|
491
457
|
* The cache lifetime for the returned match. Clients must not cache this response for more than this duration to avoid false positives.
|
|
492
458
|
*/
|
|
@@ -498,11 +464,11 @@ export declare namespace safebrowsing_v4 {
|
|
|
498
464
|
/**
|
|
499
465
|
* The threat matching this threat.
|
|
500
466
|
*/
|
|
501
|
-
threat?: Schema$
|
|
467
|
+
threat?: Schema$ThreatEntry;
|
|
502
468
|
/**
|
|
503
469
|
* Optional metadata associated with this threat.
|
|
504
470
|
*/
|
|
505
|
-
threatEntryMetadata?: Schema$
|
|
471
|
+
threatEntryMetadata?: Schema$ThreatEntryMetadata;
|
|
506
472
|
/**
|
|
507
473
|
* The threat entry type matching this threat.
|
|
508
474
|
*/
|
|
@@ -512,6 +478,40 @@ export declare namespace safebrowsing_v4 {
|
|
|
512
478
|
*/
|
|
513
479
|
threatType?: string | null;
|
|
514
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* A single resource related to a threat hit.
|
|
483
|
+
*/
|
|
484
|
+
export interface Schema$ThreatSource {
|
|
485
|
+
/**
|
|
486
|
+
* Referrer of the resource. Only set if the referrer is available.
|
|
487
|
+
*/
|
|
488
|
+
referrer?: string | null;
|
|
489
|
+
/**
|
|
490
|
+
* The remote IP of the resource in ASCII format. Either IPv4 or IPv6.
|
|
491
|
+
*/
|
|
492
|
+
remoteIp?: string | null;
|
|
493
|
+
/**
|
|
494
|
+
* The type of source reported.
|
|
495
|
+
*/
|
|
496
|
+
type?: string | null;
|
|
497
|
+
/**
|
|
498
|
+
* The URL of the resource.
|
|
499
|
+
*/
|
|
500
|
+
url?: string | null;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Details about the user that encountered the threat.
|
|
504
|
+
*/
|
|
505
|
+
export interface Schema$UserInfo {
|
|
506
|
+
/**
|
|
507
|
+
* The UN M.49 region code associated with the user's location.
|
|
508
|
+
*/
|
|
509
|
+
regionCode?: string | null;
|
|
510
|
+
/**
|
|
511
|
+
* Unique user identifier defined by the client.
|
|
512
|
+
*/
|
|
513
|
+
userId?: string | null;
|
|
514
|
+
}
|
|
515
515
|
export class Resource$Encodedfullhashes {
|
|
516
516
|
context: APIRequestContext;
|
|
517
517
|
constructor(context: APIRequestContext);
|
|
@@ -571,11 +571,11 @@ export declare namespace safebrowsing_v4 {
|
|
|
571
571
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
572
572
|
*/
|
|
573
573
|
get(params: Params$Resource$Encodedfullhashes$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
574
|
-
get(params?: Params$Resource$Encodedfullhashes$Get, options?: MethodOptions): GaxiosPromise<Schema$
|
|
574
|
+
get(params?: Params$Resource$Encodedfullhashes$Get, options?: MethodOptions): GaxiosPromise<Schema$FindFullHashesResponse>;
|
|
575
575
|
get(params: Params$Resource$Encodedfullhashes$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
576
|
-
get(params: Params$Resource$Encodedfullhashes$Get, options: MethodOptions | BodyResponseCallback<Schema$
|
|
577
|
-
get(params: Params$Resource$Encodedfullhashes$Get, callback: BodyResponseCallback<Schema$
|
|
578
|
-
get(callback: BodyResponseCallback<Schema$
|
|
576
|
+
get(params: Params$Resource$Encodedfullhashes$Get, options: MethodOptions | BodyResponseCallback<Schema$FindFullHashesResponse>, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
577
|
+
get(params: Params$Resource$Encodedfullhashes$Get, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
578
|
+
get(callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
579
579
|
}
|
|
580
580
|
export interface Params$Resource$Encodedfullhashes$Get extends StandardParameters {
|
|
581
581
|
/**
|
|
@@ -649,11 +649,11 @@ export declare namespace safebrowsing_v4 {
|
|
|
649
649
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
650
650
|
*/
|
|
651
651
|
get(params: Params$Resource$Encodedupdates$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
652
|
-
get(params?: Params$Resource$Encodedupdates$Get, options?: MethodOptions): GaxiosPromise<Schema$
|
|
652
|
+
get(params?: Params$Resource$Encodedupdates$Get, options?: MethodOptions): GaxiosPromise<Schema$FetchThreatListUpdatesResponse>;
|
|
653
653
|
get(params: Params$Resource$Encodedupdates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
654
|
-
get(params: Params$Resource$Encodedupdates$Get, options: MethodOptions | BodyResponseCallback<Schema$
|
|
655
|
-
get(params: Params$Resource$Encodedupdates$Get, callback: BodyResponseCallback<Schema$
|
|
656
|
-
get(callback: BodyResponseCallback<Schema$
|
|
654
|
+
get(params: Params$Resource$Encodedupdates$Get, options: MethodOptions | BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
|
|
655
|
+
get(params: Params$Resource$Encodedupdates$Get, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
|
|
656
|
+
get(callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
|
|
657
657
|
}
|
|
658
658
|
export interface Params$Resource$Encodedupdates$Get extends StandardParameters {
|
|
659
659
|
/**
|
|
@@ -733,17 +733,17 @@ export declare namespace safebrowsing_v4 {
|
|
|
733
733
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
734
734
|
*/
|
|
735
735
|
find(params: Params$Resource$Fullhashes$Find, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
736
|
-
find(params?: Params$Resource$Fullhashes$Find, options?: MethodOptions): GaxiosPromise<Schema$
|
|
736
|
+
find(params?: Params$Resource$Fullhashes$Find, options?: MethodOptions): GaxiosPromise<Schema$FindFullHashesResponse>;
|
|
737
737
|
find(params: Params$Resource$Fullhashes$Find, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
738
|
-
find(params: Params$Resource$Fullhashes$Find, options: MethodOptions | BodyResponseCallback<Schema$
|
|
739
|
-
find(params: Params$Resource$Fullhashes$Find, callback: BodyResponseCallback<Schema$
|
|
740
|
-
find(callback: BodyResponseCallback<Schema$
|
|
738
|
+
find(params: Params$Resource$Fullhashes$Find, options: MethodOptions | BodyResponseCallback<Schema$FindFullHashesResponse>, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
739
|
+
find(params: Params$Resource$Fullhashes$Find, callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
740
|
+
find(callback: BodyResponseCallback<Schema$FindFullHashesResponse>): void;
|
|
741
741
|
}
|
|
742
742
|
export interface Params$Resource$Fullhashes$Find extends StandardParameters {
|
|
743
743
|
/**
|
|
744
744
|
* Request body metadata
|
|
745
745
|
*/
|
|
746
|
-
requestBody?: Schema$
|
|
746
|
+
requestBody?: Schema$FindFullHashesRequest;
|
|
747
747
|
}
|
|
748
748
|
export class Resource$Threathits {
|
|
749
749
|
context: APIRequestContext;
|
|
@@ -807,17 +807,17 @@ export declare namespace safebrowsing_v4 {
|
|
|
807
807
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
808
808
|
*/
|
|
809
809
|
create(params: Params$Resource$Threathits$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
810
|
-
create(params?: Params$Resource$Threathits$Create, options?: MethodOptions): GaxiosPromise<Schema$
|
|
810
|
+
create(params?: Params$Resource$Threathits$Create, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
|
811
811
|
create(params: Params$Resource$Threathits$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
812
|
-
create(params: Params$Resource$Threathits$Create, options: MethodOptions | BodyResponseCallback<Schema$
|
|
813
|
-
create(params: Params$Resource$Threathits$Create, callback: BodyResponseCallback<Schema$
|
|
814
|
-
create(callback: BodyResponseCallback<Schema$
|
|
812
|
+
create(params: Params$Resource$Threathits$Create, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
813
|
+
create(params: Params$Resource$Threathits$Create, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
814
|
+
create(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
815
815
|
}
|
|
816
816
|
export interface Params$Resource$Threathits$Create extends StandardParameters {
|
|
817
817
|
/**
|
|
818
818
|
* Request body metadata
|
|
819
819
|
*/
|
|
820
|
-
requestBody?: Schema$
|
|
820
|
+
requestBody?: Schema$ThreatHit;
|
|
821
821
|
}
|
|
822
822
|
export class Resource$Threatlists {
|
|
823
823
|
context: APIRequestContext;
|
|
@@ -870,11 +870,11 @@ export declare namespace safebrowsing_v4 {
|
|
|
870
870
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
871
871
|
*/
|
|
872
872
|
list(params: Params$Resource$Threatlists$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
873
|
-
list(params?: Params$Resource$Threatlists$List, options?: MethodOptions): GaxiosPromise<Schema$
|
|
873
|
+
list(params?: Params$Resource$Threatlists$List, options?: MethodOptions): GaxiosPromise<Schema$ListThreatListsResponse>;
|
|
874
874
|
list(params: Params$Resource$Threatlists$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
875
|
-
list(params: Params$Resource$Threatlists$List, options: MethodOptions | BodyResponseCallback<Schema$
|
|
876
|
-
list(params: Params$Resource$Threatlists$List, callback: BodyResponseCallback<Schema$
|
|
877
|
-
list(callback: BodyResponseCallback<Schema$
|
|
875
|
+
list(params: Params$Resource$Threatlists$List, options: MethodOptions | BodyResponseCallback<Schema$ListThreatListsResponse>, callback: BodyResponseCallback<Schema$ListThreatListsResponse>): void;
|
|
876
|
+
list(params: Params$Resource$Threatlists$List, callback: BodyResponseCallback<Schema$ListThreatListsResponse>): void;
|
|
877
|
+
list(callback: BodyResponseCallback<Schema$ListThreatListsResponse>): void;
|
|
878
878
|
}
|
|
879
879
|
export interface Params$Resource$Threatlists$List extends StandardParameters {
|
|
880
880
|
}
|
|
@@ -939,17 +939,17 @@ export declare namespace safebrowsing_v4 {
|
|
|
939
939
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
940
940
|
*/
|
|
941
941
|
fetch(params: Params$Resource$Threatlistupdates$Fetch, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
942
|
-
fetch(params?: Params$Resource$Threatlistupdates$Fetch, options?: MethodOptions): GaxiosPromise<Schema$
|
|
942
|
+
fetch(params?: Params$Resource$Threatlistupdates$Fetch, options?: MethodOptions): GaxiosPromise<Schema$FetchThreatListUpdatesResponse>;
|
|
943
943
|
fetch(params: Params$Resource$Threatlistupdates$Fetch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
944
|
-
fetch(params: Params$Resource$Threatlistupdates$Fetch, options: MethodOptions | BodyResponseCallback<Schema$
|
|
945
|
-
fetch(params: Params$Resource$Threatlistupdates$Fetch, callback: BodyResponseCallback<Schema$
|
|
946
|
-
fetch(callback: BodyResponseCallback<Schema$
|
|
944
|
+
fetch(params: Params$Resource$Threatlistupdates$Fetch, options: MethodOptions | BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
|
|
945
|
+
fetch(params: Params$Resource$Threatlistupdates$Fetch, callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
|
|
946
|
+
fetch(callback: BodyResponseCallback<Schema$FetchThreatListUpdatesResponse>): void;
|
|
947
947
|
}
|
|
948
948
|
export interface Params$Resource$Threatlistupdates$Fetch extends StandardParameters {
|
|
949
949
|
/**
|
|
950
950
|
* Request body metadata
|
|
951
951
|
*/
|
|
952
|
-
requestBody?: Schema$
|
|
952
|
+
requestBody?: Schema$FetchThreatListUpdatesRequest;
|
|
953
953
|
}
|
|
954
954
|
export class Resource$Threatmatches {
|
|
955
955
|
context: APIRequestContext;
|
|
@@ -1011,17 +1011,17 @@ export declare namespace safebrowsing_v4 {
|
|
|
1011
1011
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1012
1012
|
*/
|
|
1013
1013
|
find(params: Params$Resource$Threatmatches$Find, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
1014
|
-
find(params?: Params$Resource$Threatmatches$Find, options?: MethodOptions): GaxiosPromise<Schema$
|
|
1014
|
+
find(params?: Params$Resource$Threatmatches$Find, options?: MethodOptions): GaxiosPromise<Schema$FindThreatMatchesResponse>;
|
|
1015
1015
|
find(params: Params$Resource$Threatmatches$Find, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
1016
|
-
find(params: Params$Resource$Threatmatches$Find, options: MethodOptions | BodyResponseCallback<Schema$
|
|
1017
|
-
find(params: Params$Resource$Threatmatches$Find, callback: BodyResponseCallback<Schema$
|
|
1018
|
-
find(callback: BodyResponseCallback<Schema$
|
|
1016
|
+
find(params: Params$Resource$Threatmatches$Find, options: MethodOptions | BodyResponseCallback<Schema$FindThreatMatchesResponse>, callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>): void;
|
|
1017
|
+
find(params: Params$Resource$Threatmatches$Find, callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>): void;
|
|
1018
|
+
find(callback: BodyResponseCallback<Schema$FindThreatMatchesResponse>): void;
|
|
1019
1019
|
}
|
|
1020
1020
|
export interface Params$Resource$Threatmatches$Find extends StandardParameters {
|
|
1021
1021
|
/**
|
|
1022
1022
|
* Request body metadata
|
|
1023
1023
|
*/
|
|
1024
|
-
requestBody?: Schema$
|
|
1024
|
+
requestBody?: Schema$FindThreatMatchesRequest;
|
|
1025
1025
|
}
|
|
1026
1026
|
export {};
|
|
1027
1027
|
}
|