@maxim_mazurok/gapi.client.safebrowsing-v4 0.0.20230121 → 0.0.20230206
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/index.d.ts +119 -119
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://safebrowsing.googleapis.com/$discovery/rest?version=v4
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230206
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -22,38 +22,17 @@ declare namespace gapi.client {
|
|
|
22
22
|
function load(name: "safebrowsing", version: "v4", callback: () => any): void;
|
|
23
23
|
|
|
24
24
|
namespace safebrowsing {
|
|
25
|
-
|
|
26
|
-
interface GoogleProtobufEmpty {
|
|
27
|
-
}
|
|
28
|
-
interface GoogleSecuritySafebrowsingV4Checksum {
|
|
25
|
+
interface Checksum {
|
|
29
26
|
/** The SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database. */
|
|
30
27
|
sha256?: string;
|
|
31
28
|
}
|
|
32
|
-
interface
|
|
29
|
+
interface ClientInfo {
|
|
33
30
|
/** A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API. */
|
|
34
31
|
clientId?: string;
|
|
35
32
|
/** The version of the client implementation. */
|
|
36
33
|
clientVersion?: string;
|
|
37
34
|
}
|
|
38
|
-
interface
|
|
39
|
-
/** The client metadata. */
|
|
40
|
-
client?: GoogleSecuritySafebrowsingV4ClientInfo;
|
|
41
|
-
/** The requested threat list updates. */
|
|
42
|
-
listUpdateRequests?: GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest[];
|
|
43
|
-
}
|
|
44
|
-
interface GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest {
|
|
45
|
-
/** The constraints associated with this request. */
|
|
46
|
-
constraints?: GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints;
|
|
47
|
-
/** The type of platform at risk by entries present in the list. */
|
|
48
|
-
platformType?: string;
|
|
49
|
-
/** The current state of the client for the requested list (the encrypted client state that was received from the last successful list update). */
|
|
50
|
-
state?: string;
|
|
51
|
-
/** The types of entries present in the list. */
|
|
52
|
-
threatEntryType?: string;
|
|
53
|
-
/** The type of threat posed by entries present in the list. */
|
|
54
|
-
threatType?: string;
|
|
55
|
-
}
|
|
56
|
-
interface GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints {
|
|
35
|
+
interface Constraints {
|
|
57
36
|
/** A client's physical location, expressed as a ISO 31166-1 alpha-2 region code. */
|
|
58
37
|
deviceLocation?: string;
|
|
59
38
|
/** Requests the lists for a specific language. Expects ISO 639 alpha-2 format. */
|
|
@@ -73,79 +52,106 @@ declare namespace gapi.client {
|
|
|
73
52
|
/** The compression types supported by the client. */
|
|
74
53
|
supportedCompressions?: string[];
|
|
75
54
|
}
|
|
76
|
-
interface
|
|
55
|
+
// tslint:disable-next-line:no-empty-interface
|
|
56
|
+
interface Empty {
|
|
57
|
+
}
|
|
58
|
+
interface FetchThreatListUpdatesRequest {
|
|
59
|
+
/** The client metadata. */
|
|
60
|
+
client?: ClientInfo;
|
|
61
|
+
/** The requested threat list updates. */
|
|
62
|
+
listUpdateRequests?: ListUpdateRequest[];
|
|
63
|
+
}
|
|
64
|
+
interface FetchThreatListUpdatesResponse {
|
|
77
65
|
/**
|
|
78
66
|
* 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
|
|
79
67
|
* updates for a particular list.
|
|
80
68
|
*/
|
|
81
|
-
listUpdateResponses?:
|
|
69
|
+
listUpdateResponses?: ListUpdateResponse[];
|
|
82
70
|
/** 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. */
|
|
83
71
|
minimumWaitDuration?: string;
|
|
84
72
|
}
|
|
85
|
-
interface
|
|
86
|
-
/** 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. */
|
|
87
|
-
additions?: GoogleSecuritySafebrowsingV4ThreatEntrySet[];
|
|
88
|
-
/**
|
|
89
|
-
* 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
|
|
90
|
-
* the expected state, the client must disregard this update and retry later.
|
|
91
|
-
*/
|
|
92
|
-
checksum?: GoogleSecuritySafebrowsingV4Checksum;
|
|
93
|
-
/** The new client state, in encrypted format. Opaque to clients. */
|
|
94
|
-
newClientState?: string;
|
|
95
|
-
/** The platform type for which data is returned. */
|
|
96
|
-
platformType?: string;
|
|
97
|
-
/** A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet. */
|
|
98
|
-
removals?: GoogleSecuritySafebrowsingV4ThreatEntrySet[];
|
|
99
|
-
/** The type of response. This may indicate that an action is required by the client when the response is received. */
|
|
100
|
-
responseType?: string;
|
|
101
|
-
/** The format of the threats. */
|
|
102
|
-
threatEntryType?: string;
|
|
103
|
-
/** The threat type for which data is returned. */
|
|
104
|
-
threatType?: string;
|
|
105
|
-
}
|
|
106
|
-
interface GoogleSecuritySafebrowsingV4FindFullHashesRequest {
|
|
73
|
+
interface FindFullHashesRequest {
|
|
107
74
|
/** Client metadata associated with callers of higher-level APIs built on top of the client's implementation. */
|
|
108
|
-
apiClient?:
|
|
75
|
+
apiClient?: ClientInfo;
|
|
109
76
|
/** The client metadata. */
|
|
110
|
-
client?:
|
|
77
|
+
client?: ClientInfo;
|
|
111
78
|
/** The current client states for each of the client's local threat lists. */
|
|
112
79
|
clientStates?: string[];
|
|
113
80
|
/** The lists and hashes to be checked. */
|
|
114
|
-
threatInfo?:
|
|
81
|
+
threatInfo?: ThreatInfo;
|
|
115
82
|
}
|
|
116
|
-
interface
|
|
83
|
+
interface FindFullHashesResponse {
|
|
117
84
|
/** The full hashes that matched the requested prefixes. */
|
|
118
|
-
matches?:
|
|
85
|
+
matches?: ThreatMatch[];
|
|
119
86
|
/** 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. */
|
|
120
87
|
minimumWaitDuration?: string;
|
|
121
88
|
/** For requested entities that did not match the threat list, how long to cache the response. */
|
|
122
89
|
negativeCacheDuration?: string;
|
|
123
90
|
}
|
|
124
|
-
interface
|
|
91
|
+
interface FindThreatMatchesRequest {
|
|
125
92
|
/** The client metadata. */
|
|
126
|
-
client?:
|
|
93
|
+
client?: ClientInfo;
|
|
127
94
|
/** The lists and entries to be checked for matches. */
|
|
128
|
-
threatInfo?:
|
|
95
|
+
threatInfo?: ThreatInfo;
|
|
129
96
|
}
|
|
130
|
-
interface
|
|
97
|
+
interface FindThreatMatchesResponse {
|
|
131
98
|
/** The threat list matches. */
|
|
132
|
-
matches?:
|
|
99
|
+
matches?: ThreatMatch[];
|
|
133
100
|
}
|
|
134
|
-
interface
|
|
101
|
+
interface ListThreatListsResponse {
|
|
135
102
|
/** The lists available for download by the client. */
|
|
136
|
-
threatLists?:
|
|
103
|
+
threatLists?: ThreatListDescriptor[];
|
|
104
|
+
}
|
|
105
|
+
interface ListUpdateRequest {
|
|
106
|
+
/** The constraints associated with this request. */
|
|
107
|
+
constraints?: Constraints;
|
|
108
|
+
/** The type of platform at risk by entries present in the list. */
|
|
109
|
+
platformType?: string;
|
|
110
|
+
/** The current state of the client for the requested list (the encrypted client state that was received from the last successful list update). */
|
|
111
|
+
state?: string;
|
|
112
|
+
/** The types of entries present in the list. */
|
|
113
|
+
threatEntryType?: string;
|
|
114
|
+
/** The type of threat posed by entries present in the list. */
|
|
115
|
+
threatType?: string;
|
|
116
|
+
}
|
|
117
|
+
interface ListUpdateResponse {
|
|
118
|
+
/** 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. */
|
|
119
|
+
additions?: ThreatEntrySet[];
|
|
120
|
+
/**
|
|
121
|
+
* 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
|
|
122
|
+
* the expected state, the client must disregard this update and retry later.
|
|
123
|
+
*/
|
|
124
|
+
checksum?: Checksum;
|
|
125
|
+
/** The new client state, in encrypted format. Opaque to clients. */
|
|
126
|
+
newClientState?: string;
|
|
127
|
+
/** The platform type for which data is returned. */
|
|
128
|
+
platformType?: string;
|
|
129
|
+
/** A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet. */
|
|
130
|
+
removals?: ThreatEntrySet[];
|
|
131
|
+
/** The type of response. This may indicate that an action is required by the client when the response is received. */
|
|
132
|
+
responseType?: string;
|
|
133
|
+
/** The format of the threats. */
|
|
134
|
+
threatEntryType?: string;
|
|
135
|
+
/** The threat type for which data is returned. */
|
|
136
|
+
threatType?: string;
|
|
137
137
|
}
|
|
138
|
-
interface
|
|
138
|
+
interface MetadataEntry {
|
|
139
|
+
/** The metadata entry key. For JSON requests, the key is base64-encoded. */
|
|
140
|
+
key?: string;
|
|
141
|
+
/** The metadata entry value. For JSON requests, the value is base64-encoded. */
|
|
142
|
+
value?: string;
|
|
143
|
+
}
|
|
144
|
+
interface RawHashes {
|
|
139
145
|
/** The number of bytes for each prefix encoded below. This field can be anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). */
|
|
140
146
|
prefixSize?: number;
|
|
141
147
|
/** The hashes, in binary format, concatenated into one long string. Hashes are sorted in lexicographic order. For JSON API users, hashes are base64-encoded. */
|
|
142
148
|
rawHashes?: string;
|
|
143
149
|
}
|
|
144
|
-
interface
|
|
150
|
+
interface RawIndices {
|
|
145
151
|
/** The indices to remove from a lexicographically-sorted local list. */
|
|
146
152
|
indices?: number[];
|
|
147
153
|
}
|
|
148
|
-
interface
|
|
154
|
+
interface RiceDeltaEncoding {
|
|
149
155
|
/** The encoded deltas that are encoded using the Golomb-Rice coder. */
|
|
150
156
|
encodedData?: string;
|
|
151
157
|
/** The offset of the first entry in the encoded data, or, if only a single integer was encoded, that single integer's value. If the field is empty or missing, assume zero. */
|
|
@@ -155,7 +161,7 @@ declare namespace gapi.client {
|
|
|
155
161
|
/** The Golomb-Rice parameter, which is a number between 2 and 28. This field is missing (that is, zero) if `num_entries` is zero. */
|
|
156
162
|
riceParameter?: number;
|
|
157
163
|
}
|
|
158
|
-
interface
|
|
164
|
+
interface ThreatEntry {
|
|
159
165
|
/** The digest of an executable in SHA256 format. The API supports both binary and hex digests. For JSON requests, digests are base64-encoded. */
|
|
160
166
|
digest?: string;
|
|
161
167
|
/** A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded. */
|
|
@@ -163,75 +169,53 @@ declare namespace gapi.client {
|
|
|
163
169
|
/** A URL. */
|
|
164
170
|
url?: string;
|
|
165
171
|
}
|
|
166
|
-
interface
|
|
172
|
+
interface ThreatEntryMetadata {
|
|
167
173
|
/** The metadata entries. */
|
|
168
|
-
entries?:
|
|
174
|
+
entries?: MetadataEntry[];
|
|
169
175
|
}
|
|
170
|
-
interface
|
|
171
|
-
/** The metadata entry key. For JSON requests, the key is base64-encoded. */
|
|
172
|
-
key?: string;
|
|
173
|
-
/** The metadata entry value. For JSON requests, the value is base64-encoded. */
|
|
174
|
-
value?: string;
|
|
175
|
-
}
|
|
176
|
-
interface GoogleSecuritySafebrowsingV4ThreatEntrySet {
|
|
176
|
+
interface ThreatEntrySet {
|
|
177
177
|
/** The compression type for the entries in this set. */
|
|
178
178
|
compressionType?: string;
|
|
179
179
|
/** The raw SHA256-formatted entries. */
|
|
180
|
-
rawHashes?:
|
|
180
|
+
rawHashes?: RawHashes;
|
|
181
181
|
/** The raw removal indices for a local list. */
|
|
182
|
-
rawIndices?:
|
|
182
|
+
rawIndices?: RawIndices;
|
|
183
183
|
/**
|
|
184
184
|
* 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
|
|
185
185
|
* as encoded_data.
|
|
186
186
|
*/
|
|
187
|
-
riceHashes?:
|
|
187
|
+
riceHashes?: RiceDeltaEncoding;
|
|
188
188
|
/**
|
|
189
189
|
* 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
|
|
190
190
|
* ascending order, then delta encoded and stored as encoded_data.
|
|
191
191
|
*/
|
|
192
|
-
riceIndices?:
|
|
192
|
+
riceIndices?: RiceDeltaEncoding;
|
|
193
193
|
}
|
|
194
|
-
interface
|
|
194
|
+
interface ThreatHit {
|
|
195
195
|
/** Client-reported identification. */
|
|
196
|
-
clientInfo?:
|
|
196
|
+
clientInfo?: ClientInfo;
|
|
197
197
|
/** The threat entry responsible for the hit. Full hash should be reported for hash-based hits. */
|
|
198
|
-
entry?:
|
|
198
|
+
entry?: ThreatEntry;
|
|
199
199
|
/** The platform type reported. */
|
|
200
200
|
platformType?: string;
|
|
201
201
|
/** The resources related to the threat hit. */
|
|
202
|
-
resources?:
|
|
202
|
+
resources?: ThreatSource[];
|
|
203
203
|
/** The threat type reported. */
|
|
204
204
|
threatType?: string;
|
|
205
205
|
/** Details about the user that encountered the threat. */
|
|
206
|
-
userInfo?:
|
|
206
|
+
userInfo?: UserInfo;
|
|
207
207
|
}
|
|
208
|
-
interface
|
|
209
|
-
/** Referrer of the resource. Only set if the referrer is available. */
|
|
210
|
-
referrer?: string;
|
|
211
|
-
/** The remote IP of the resource in ASCII format. Either IPv4 or IPv6. */
|
|
212
|
-
remoteIp?: string;
|
|
213
|
-
/** The type of source reported. */
|
|
214
|
-
type?: string;
|
|
215
|
-
/** The URL of the resource. */
|
|
216
|
-
url?: string;
|
|
217
|
-
}
|
|
218
|
-
interface GoogleSecuritySafebrowsingV4ThreatHitUserInfo {
|
|
219
|
-
/** The UN M.49 region code associated with the user's location. */
|
|
220
|
-
regionCode?: string;
|
|
221
|
-
/** Unique user identifier defined by the client. */
|
|
222
|
-
userId?: string;
|
|
223
|
-
}
|
|
224
|
-
interface GoogleSecuritySafebrowsingV4ThreatInfo {
|
|
208
|
+
interface ThreatInfo {
|
|
225
209
|
/** The platform types to be checked. */
|
|
226
210
|
platformTypes?: string[];
|
|
227
211
|
/** The threat entries to be checked. */
|
|
228
|
-
threatEntries?:
|
|
212
|
+
threatEntries?: ThreatEntry[];
|
|
229
213
|
/** The entry types to be checked. */
|
|
230
214
|
threatEntryTypes?: string[];
|
|
231
215
|
/** The threat types to be checked. */
|
|
232
216
|
threatTypes?: string[];
|
|
233
217
|
}
|
|
234
|
-
interface
|
|
218
|
+
interface ThreatListDescriptor {
|
|
235
219
|
/** The platform type targeted by the list's entries. */
|
|
236
220
|
platformType?: string;
|
|
237
221
|
/** The entry types contained in the list. */
|
|
@@ -239,20 +223,36 @@ declare namespace gapi.client {
|
|
|
239
223
|
/** The threat type posed by the list's entries. */
|
|
240
224
|
threatType?: string;
|
|
241
225
|
}
|
|
242
|
-
interface
|
|
226
|
+
interface ThreatMatch {
|
|
243
227
|
/** The cache lifetime for the returned match. Clients must not cache this response for more than this duration to avoid false positives. */
|
|
244
228
|
cacheDuration?: string;
|
|
245
229
|
/** The platform type matching this threat. */
|
|
246
230
|
platformType?: string;
|
|
247
231
|
/** The threat matching this threat. */
|
|
248
|
-
threat?:
|
|
232
|
+
threat?: ThreatEntry;
|
|
249
233
|
/** Optional metadata associated with this threat. */
|
|
250
|
-
threatEntryMetadata?:
|
|
234
|
+
threatEntryMetadata?: ThreatEntryMetadata;
|
|
251
235
|
/** The threat entry type matching this threat. */
|
|
252
236
|
threatEntryType?: string;
|
|
253
237
|
/** The threat type matching this threat. */
|
|
254
238
|
threatType?: string;
|
|
255
239
|
}
|
|
240
|
+
interface ThreatSource {
|
|
241
|
+
/** Referrer of the resource. Only set if the referrer is available. */
|
|
242
|
+
referrer?: string;
|
|
243
|
+
/** The remote IP of the resource in ASCII format. Either IPv4 or IPv6. */
|
|
244
|
+
remoteIp?: string;
|
|
245
|
+
/** The type of source reported. */
|
|
246
|
+
type?: string;
|
|
247
|
+
/** The URL of the resource. */
|
|
248
|
+
url?: string;
|
|
249
|
+
}
|
|
250
|
+
interface UserInfo {
|
|
251
|
+
/** The UN M.49 region code associated with the user's location. */
|
|
252
|
+
regionCode?: string;
|
|
253
|
+
/** Unique user identifier defined by the client. */
|
|
254
|
+
userId?: string;
|
|
255
|
+
}
|
|
256
256
|
interface EncodedFullHashesResource {
|
|
257
257
|
get(request?: {
|
|
258
258
|
/** V1 error format. */
|
|
@@ -283,7 +283,7 @@ declare namespace gapi.client {
|
|
|
283
283
|
upload_protocol?: string;
|
|
284
284
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
285
285
|
uploadType?: string;
|
|
286
|
-
}): Request<
|
|
286
|
+
}): Request<FindFullHashesResponse>;
|
|
287
287
|
}
|
|
288
288
|
interface EncodedUpdatesResource {
|
|
289
289
|
get(request?: {
|
|
@@ -315,7 +315,7 @@ declare namespace gapi.client {
|
|
|
315
315
|
upload_protocol?: string;
|
|
316
316
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
317
317
|
uploadType?: string;
|
|
318
|
-
}): Request<
|
|
318
|
+
}): Request<FetchThreatListUpdatesResponse>;
|
|
319
319
|
}
|
|
320
320
|
interface FullHashesResource {
|
|
321
321
|
/** Finds the full hashes that match the requested hash prefixes. */
|
|
@@ -343,8 +343,8 @@ declare namespace gapi.client {
|
|
|
343
343
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
344
344
|
uploadType?: string;
|
|
345
345
|
/** Request body */
|
|
346
|
-
resource:
|
|
347
|
-
}): Request<
|
|
346
|
+
resource: FindFullHashesRequest;
|
|
347
|
+
}): Request<FindFullHashesResponse>;
|
|
348
348
|
find(request: {
|
|
349
349
|
/** V1 error format. */
|
|
350
350
|
"$.xgafv"?: string;
|
|
@@ -369,7 +369,7 @@ declare namespace gapi.client {
|
|
|
369
369
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
370
370
|
uploadType?: string;
|
|
371
371
|
},
|
|
372
|
-
body:
|
|
372
|
+
body: FindFullHashesRequest): Request<FindFullHashesResponse>;
|
|
373
373
|
}
|
|
374
374
|
interface ThreatHitsResource {
|
|
375
375
|
/** Reports a Safe Browsing threat list hit to Google. Only projects with TRUSTED_REPORTER visibility can use this method. */
|
|
@@ -397,7 +397,7 @@ declare namespace gapi.client {
|
|
|
397
397
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
398
398
|
uploadType?: string;
|
|
399
399
|
/** Request body */
|
|
400
|
-
resource:
|
|
400
|
+
resource: ThreatHit;
|
|
401
401
|
}): Request<{}>;
|
|
402
402
|
create(request: {
|
|
403
403
|
/** V1 error format. */
|
|
@@ -423,7 +423,7 @@ declare namespace gapi.client {
|
|
|
423
423
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
424
424
|
uploadType?: string;
|
|
425
425
|
},
|
|
426
|
-
body:
|
|
426
|
+
body: ThreatHit): Request<{}>;
|
|
427
427
|
}
|
|
428
428
|
interface ThreatListsResource {
|
|
429
429
|
/** Lists the Safe Browsing threat lists available for download. */
|
|
@@ -450,7 +450,7 @@ declare namespace gapi.client {
|
|
|
450
450
|
upload_protocol?: string;
|
|
451
451
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
452
452
|
uploadType?: string;
|
|
453
|
-
}): Request<
|
|
453
|
+
}): Request<ListThreatListsResponse>;
|
|
454
454
|
}
|
|
455
455
|
interface ThreatListUpdatesResource {
|
|
456
456
|
/** Fetches the most recent threat list updates. A client can request updates for multiple lists at once. */
|
|
@@ -478,8 +478,8 @@ declare namespace gapi.client {
|
|
|
478
478
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
479
479
|
uploadType?: string;
|
|
480
480
|
/** Request body */
|
|
481
|
-
resource:
|
|
482
|
-
}): Request<
|
|
481
|
+
resource: FetchThreatListUpdatesRequest;
|
|
482
|
+
}): Request<FetchThreatListUpdatesResponse>;
|
|
483
483
|
fetch(request: {
|
|
484
484
|
/** V1 error format. */
|
|
485
485
|
"$.xgafv"?: string;
|
|
@@ -504,7 +504,7 @@ declare namespace gapi.client {
|
|
|
504
504
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
505
505
|
uploadType?: string;
|
|
506
506
|
},
|
|
507
|
-
body:
|
|
507
|
+
body: FetchThreatListUpdatesRequest): Request<FetchThreatListUpdatesResponse>;
|
|
508
508
|
}
|
|
509
509
|
interface ThreatMatchesResource {
|
|
510
510
|
/** Finds the threat entries that match the Safe Browsing lists. */
|
|
@@ -532,8 +532,8 @@ declare namespace gapi.client {
|
|
|
532
532
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
533
533
|
uploadType?: string;
|
|
534
534
|
/** Request body */
|
|
535
|
-
resource:
|
|
536
|
-
}): Request<
|
|
535
|
+
resource: FindThreatMatchesRequest;
|
|
536
|
+
}): Request<FindThreatMatchesResponse>;
|
|
537
537
|
find(request: {
|
|
538
538
|
/** V1 error format. */
|
|
539
539
|
"$.xgafv"?: string;
|
|
@@ -558,7 +558,7 @@ declare namespace gapi.client {
|
|
|
558
558
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
559
559
|
uploadType?: string;
|
|
560
560
|
},
|
|
561
|
-
body:
|
|
561
|
+
body: FindThreatMatchesRequest): Request<FindThreatMatchesResponse>;
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
const encodedFullHashes: EncodedFullHashesResource;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230206
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|