@maxim_mazurok/gapi.client.verifiedaccess-v2 0.0.20230413 → 0.0.20230425
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 +238 -59
- 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://verifiedaccess.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230425
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -23,143 +23,322 @@ declare namespace gapi.client {
|
|
|
23
23
|
|
|
24
24
|
namespace verifiedaccess {
|
|
25
25
|
interface Challenge {
|
|
26
|
-
/** Challenge generated with the old signing key, the bytes representation of SignedData (this will only be present during key rotation). */
|
|
27
|
-
alternativeChallenge?: string;
|
|
28
26
|
/** Generated challenge, the bytes representation of SignedData. */
|
|
29
|
-
challenge?:
|
|
27
|
+
challenge?:
|
|
28
|
+
string;
|
|
29
|
+
}
|
|
30
|
+
interface CrowdStrikeAgent {
|
|
31
|
+
/** The Agent ID of the Crowdstrike agent. */
|
|
32
|
+
agentId?:
|
|
33
|
+
string;
|
|
34
|
+
/** The Customer ID to which the agent belongs to. */
|
|
35
|
+
customerId?:
|
|
36
|
+
string;
|
|
37
|
+
}
|
|
38
|
+
interface DeviceSignals {
|
|
39
|
+
/** Value of the AllowScreenLock policy on the device. See https://chromeenterprise.google/policies/?policy=AllowScreenLock for more details. */
|
|
40
|
+
allowScreenLock?:
|
|
41
|
+
boolean;
|
|
42
|
+
/** Current version of the Chrome browser which generated this set of signals. Example value: "107.0.5286.0". */
|
|
43
|
+
browserVersion?:
|
|
44
|
+
string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether Chrome's built-in DNS client is used. The OS DNS client is otherwise used. This value may be controlled by an enterprise policy:
|
|
47
|
+
* https://chromeenterprise.google/policies/#BuiltInDnsClientEnabled.
|
|
48
|
+
*/
|
|
49
|
+
builtInDnsClientEnabled?:
|
|
50
|
+
boolean;
|
|
51
|
+
/** Whether access to the Chrome Remote Desktop application is blocked via a policy. */
|
|
52
|
+
chromeRemoteDesktopAppBlocked?:
|
|
53
|
+
boolean;
|
|
54
|
+
/** Crowdstrike agent properties installed on the device, if any. */
|
|
55
|
+
crowdStrikeAgent?:
|
|
56
|
+
CrowdStrikeAgent;
|
|
57
|
+
/**
|
|
58
|
+
* Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the device. When the sets of device and profile affiliation IDs overlap, it
|
|
59
|
+
* means that the organizations managing the device and user are affiliated. To learn more about user affiliation, visit
|
|
60
|
+
* https://support.google.com/chrome/a/answer/12801245?ref_topic=9027936.
|
|
61
|
+
*/
|
|
62
|
+
deviceAffiliationIds?:
|
|
63
|
+
string[];
|
|
64
|
+
/** Enrollment domain of the customer which is currently managing the device. */
|
|
65
|
+
deviceEnrollmentDomain?:
|
|
66
|
+
string;
|
|
67
|
+
/** The name of the device's manufacturer. */
|
|
68
|
+
deviceManufacturer?:
|
|
69
|
+
string;
|
|
70
|
+
/** The name of the device's model. */
|
|
71
|
+
deviceModel?:
|
|
72
|
+
string;
|
|
73
|
+
/** The encryption state of the disk. On ChromeOS, the main disk is always ENCRYPTED. */
|
|
74
|
+
diskEncryption?:
|
|
75
|
+
string;
|
|
76
|
+
/** The display name of the device, as defined by the user. */
|
|
77
|
+
displayName?:
|
|
78
|
+
string;
|
|
79
|
+
/** Hostname of the device. */
|
|
80
|
+
hostname?:
|
|
81
|
+
string;
|
|
82
|
+
/** International Mobile Equipment Identity (IMEI) of the device. */
|
|
83
|
+
imei?:
|
|
84
|
+
string[];
|
|
85
|
+
/** MAC addresses of the device. */
|
|
86
|
+
macAddresses?:
|
|
87
|
+
string[];
|
|
88
|
+
/** Mobile Equipment Identifier (MEID) of the device. */
|
|
89
|
+
meid?:
|
|
90
|
+
string[];
|
|
91
|
+
/** The type of the Operating System currently running on the device. */
|
|
92
|
+
operatingSystem?:
|
|
93
|
+
string;
|
|
94
|
+
/** The state of the OS level firewall. On ChromeOS, the value will always be ENABLED on regular devices and UNKNOWN on devices in developer mode. */
|
|
95
|
+
osFirewall?:
|
|
96
|
+
string;
|
|
97
|
+
/** The current version of the Operating System. On Windows and linux, the value will also include the security patch information. */
|
|
98
|
+
osVersion?:
|
|
99
|
+
string;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the Password Protection Warning feature is enabled or not. Password protection alerts users when they reuse their protected password on potentially suspicious sites. This
|
|
102
|
+
* setting is controlled by an enterprise policy: https://chromeenterprise.google/policies/#PasswordProtectionWarningTrigger. Note that the policy unset does not have the same effects
|
|
103
|
+
* as having the policy explicitly set to `PASSWORD_PROTECTION_OFF`.
|
|
104
|
+
*/
|
|
105
|
+
passwordProtectionWarningTrigger?:
|
|
106
|
+
string;
|
|
107
|
+
/** Affiliation IDs of the organizations that are affiliated with the organization that is currently managing the Chrome Profile’s user or ChromeOS user. */
|
|
108
|
+
profileAffiliationIds?:
|
|
109
|
+
string[];
|
|
110
|
+
/**
|
|
111
|
+
* Whether Enterprise-grade (i.e. custom) unsafe URL scanning is enabled or not. This setting may be controlled by an enterprise policy:
|
|
112
|
+
* https://chromeenterprise.google/policies/#EnterpriseRealTimeUrlCheckMode
|
|
113
|
+
*/
|
|
114
|
+
realtimeUrlCheckMode?:
|
|
115
|
+
string;
|
|
116
|
+
/** Safe Browsing Protection Level. That setting may be controlled by an enterprise policy: https://chromeenterprise.google/policies/#SafeBrowsingProtectionLevel. */
|
|
117
|
+
safeBrowsingProtectionLevel?:
|
|
118
|
+
string;
|
|
119
|
+
/**
|
|
120
|
+
* The state of the Screen Lock password protection. On ChromeOS, this value will always be ENABLED as there is not way to disable requiring a password or pin when unlocking the
|
|
121
|
+
* device.
|
|
122
|
+
*/
|
|
123
|
+
screenLockSecured?:
|
|
124
|
+
string;
|
|
125
|
+
/** Whether the device's startup software has its Secure Boot feature enabled. */
|
|
126
|
+
secureBootMode?:
|
|
127
|
+
string;
|
|
128
|
+
/** The serial number of the device. On Windows, this represents the BIOS's serial number. */
|
|
129
|
+
serialNumber?:
|
|
130
|
+
string;
|
|
131
|
+
/**
|
|
132
|
+
* Whether the Site Isolation (a.k.a Site Per Process) setting is enabled. That setting may be controlled by an enterprise policy:
|
|
133
|
+
* https://chromeenterprise.google/policies/#SitePerProcess
|
|
134
|
+
*/
|
|
135
|
+
siteIsolationEnabled?:
|
|
136
|
+
boolean;
|
|
137
|
+
/** List of the addesses of all OS level DNS servers configured in the device's network settings. */
|
|
138
|
+
systemDnsServers?:
|
|
139
|
+
string[];
|
|
140
|
+
/**
|
|
141
|
+
* Whether Chrome is blocking third-party software injection or not. This setting may be controlled by an enterprise policy:
|
|
142
|
+
* https://chromeenterprise.google/policies/?policy=ThirdPartyBlockingEnabled
|
|
143
|
+
*/
|
|
144
|
+
thirdPartyBlockingEnabled?:
|
|
145
|
+
boolean;
|
|
146
|
+
/** Windows domain that the current machine has joined. */
|
|
147
|
+
windowsMachineDomain?:
|
|
148
|
+
string;
|
|
149
|
+
/** Windows domain for the current OS user. */
|
|
150
|
+
windowsUserDomain?:
|
|
151
|
+
string;
|
|
30
152
|
}
|
|
31
153
|
// tslint:disable-next-line:no-empty-interface
|
|
32
154
|
interface Empty {
|
|
33
155
|
}
|
|
34
156
|
interface VerifyChallengeResponseRequest {
|
|
35
157
|
/** Required. The generated response to the challenge, the bytes representation of SignedData. */
|
|
36
|
-
challengeResponse?:
|
|
158
|
+
challengeResponse?:
|
|
159
|
+
string;
|
|
37
160
|
/**
|
|
38
161
|
* Optional. Service can optionally provide identity information about the device or user associated with the key. For an EMK, this value is the enrolled domain. For an EUK, this value
|
|
39
162
|
* is the user's email address. If present, this value will be checked against contents of the response, and verification will fail if there is no match.
|
|
40
163
|
*/
|
|
41
|
-
expectedIdentity?:
|
|
164
|
+
expectedIdentity?:
|
|
165
|
+
string;
|
|
42
166
|
}
|
|
43
167
|
interface VerifyChallengeResponseResult {
|
|
44
168
|
/** Unique customer id that this device belongs to, as defined by the Google Admin SDK at https://developers.google.com/admin-sdk/directory/v1/guides/manage-customers */
|
|
45
|
-
customerId?:
|
|
169
|
+
customerId?:
|
|
170
|
+
string;
|
|
46
171
|
/** Device permanent id is returned in this field (for the machine response only). */
|
|
47
|
-
devicePermanentId?:
|
|
48
|
-
|
|
49
|
-
|
|
172
|
+
devicePermanentId?:
|
|
173
|
+
string;
|
|
174
|
+
/** Deprecated. Device signal in json string representation. Prefer using `device_signals` instead. */
|
|
175
|
+
deviceSignal?:
|
|
176
|
+
string;
|
|
177
|
+
/** Device signals. */
|
|
178
|
+
deviceSignals?:
|
|
179
|
+
DeviceSignals;
|
|
50
180
|
/** Device attested key trust level. */
|
|
51
|
-
keyTrustLevel?:
|
|
181
|
+
keyTrustLevel?:
|
|
182
|
+
string;
|
|
52
183
|
/**
|
|
53
184
|
* Certificate Signing Request (in the SPKAC format, base64 encoded) is returned in this field. This field will be set only if device has included CSR in its challenge response. (the
|
|
54
185
|
* option to include CSR is now available for both user and machine responses)
|
|
55
186
|
*/
|
|
56
|
-
signedPublicKeyAndChallenge?:
|
|
187
|
+
signedPublicKeyAndChallenge?:
|
|
188
|
+
string;
|
|
57
189
|
/** Virtual device id of the device. The definition of virtual device id is platform-specific. */
|
|
58
|
-
virtualDeviceId?:
|
|
190
|
+
virtualDeviceId?:
|
|
191
|
+
string;
|
|
59
192
|
}
|
|
60
193
|
interface ChallengeResource {
|
|
61
194
|
/** Generates a new challenge. */
|
|
62
195
|
generate(request: {
|
|
63
196
|
/** V1 error format. */
|
|
64
|
-
"$.xgafv"?:
|
|
197
|
+
"$.xgafv"?:
|
|
198
|
+
string;
|
|
65
199
|
/** OAuth access token. */
|
|
66
|
-
access_token?:
|
|
200
|
+
access_token?:
|
|
201
|
+
string;
|
|
67
202
|
/** Data format for response. */
|
|
68
|
-
alt?:
|
|
203
|
+
alt?:
|
|
204
|
+
string;
|
|
69
205
|
/** JSONP */
|
|
70
|
-
callback?:
|
|
206
|
+
callback?:
|
|
207
|
+
string;
|
|
71
208
|
/** Selector specifying which fields to include in a partial response. */
|
|
72
|
-
fields?:
|
|
209
|
+
fields?:
|
|
210
|
+
string;
|
|
73
211
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
74
|
-
key?:
|
|
212
|
+
key?:
|
|
213
|
+
string;
|
|
75
214
|
/** OAuth 2.0 token for the current user. */
|
|
76
|
-
oauth_token?:
|
|
215
|
+
oauth_token?:
|
|
216
|
+
string;
|
|
77
217
|
/** Returns response with indentations and line breaks. */
|
|
78
|
-
prettyPrint?:
|
|
218
|
+
prettyPrint?:
|
|
219
|
+
boolean;
|
|
79
220
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
80
|
-
quotaUser?:
|
|
221
|
+
quotaUser?:
|
|
222
|
+
string;
|
|
81
223
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
82
|
-
upload_protocol?:
|
|
224
|
+
upload_protocol?:
|
|
225
|
+
string;
|
|
83
226
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
84
|
-
uploadType?:
|
|
227
|
+
uploadType?:
|
|
228
|
+
string;
|
|
85
229
|
/** Request body */
|
|
86
|
-
resource:
|
|
230
|
+
resource:
|
|
231
|
+
Empty;
|
|
87
232
|
}): Request<Challenge>;
|
|
88
233
|
generate(request: {
|
|
89
234
|
/** V1 error format. */
|
|
90
|
-
"$.xgafv"?:
|
|
235
|
+
"$.xgafv"?:
|
|
236
|
+
string;
|
|
91
237
|
/** OAuth access token. */
|
|
92
|
-
access_token?:
|
|
238
|
+
access_token?:
|
|
239
|
+
string;
|
|
93
240
|
/** Data format for response. */
|
|
94
|
-
alt?:
|
|
241
|
+
alt?:
|
|
242
|
+
string;
|
|
95
243
|
/** JSONP */
|
|
96
|
-
callback?:
|
|
244
|
+
callback?:
|
|
245
|
+
string;
|
|
97
246
|
/** Selector specifying which fields to include in a partial response. */
|
|
98
|
-
fields?:
|
|
247
|
+
fields?:
|
|
248
|
+
string;
|
|
99
249
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
100
|
-
key?:
|
|
250
|
+
key?:
|
|
251
|
+
string;
|
|
101
252
|
/** OAuth 2.0 token for the current user. */
|
|
102
|
-
oauth_token?:
|
|
253
|
+
oauth_token?:
|
|
254
|
+
string;
|
|
103
255
|
/** Returns response with indentations and line breaks. */
|
|
104
|
-
prettyPrint?:
|
|
256
|
+
prettyPrint?:
|
|
257
|
+
boolean;
|
|
105
258
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
106
|
-
quotaUser?:
|
|
259
|
+
quotaUser?:
|
|
260
|
+
string;
|
|
107
261
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
108
|
-
upload_protocol?:
|
|
262
|
+
upload_protocol?:
|
|
263
|
+
string;
|
|
109
264
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
110
|
-
uploadType?:
|
|
265
|
+
uploadType?:
|
|
266
|
+
string;
|
|
111
267
|
},
|
|
112
268
|
body: Empty): Request<Challenge>;
|
|
113
269
|
/** Verifies the challenge response. */
|
|
114
270
|
verify(request: {
|
|
115
271
|
/** V1 error format. */
|
|
116
|
-
"$.xgafv"?:
|
|
272
|
+
"$.xgafv"?:
|
|
273
|
+
string;
|
|
117
274
|
/** OAuth access token. */
|
|
118
|
-
access_token?:
|
|
275
|
+
access_token?:
|
|
276
|
+
string;
|
|
119
277
|
/** Data format for response. */
|
|
120
|
-
alt?:
|
|
278
|
+
alt?:
|
|
279
|
+
string;
|
|
121
280
|
/** JSONP */
|
|
122
|
-
callback?:
|
|
281
|
+
callback?:
|
|
282
|
+
string;
|
|
123
283
|
/** Selector specifying which fields to include in a partial response. */
|
|
124
|
-
fields?:
|
|
284
|
+
fields?:
|
|
285
|
+
string;
|
|
125
286
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
126
|
-
key?:
|
|
287
|
+
key?:
|
|
288
|
+
string;
|
|
127
289
|
/** OAuth 2.0 token for the current user. */
|
|
128
|
-
oauth_token?:
|
|
290
|
+
oauth_token?:
|
|
291
|
+
string;
|
|
129
292
|
/** Returns response with indentations and line breaks. */
|
|
130
|
-
prettyPrint?:
|
|
293
|
+
prettyPrint?:
|
|
294
|
+
boolean;
|
|
131
295
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
132
|
-
quotaUser?:
|
|
296
|
+
quotaUser?:
|
|
297
|
+
string;
|
|
133
298
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
134
|
-
upload_protocol?:
|
|
299
|
+
upload_protocol?:
|
|
300
|
+
string;
|
|
135
301
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
136
|
-
uploadType?:
|
|
302
|
+
uploadType?:
|
|
303
|
+
string;
|
|
137
304
|
/** Request body */
|
|
138
|
-
resource:
|
|
305
|
+
resource:
|
|
306
|
+
VerifyChallengeResponseRequest;
|
|
139
307
|
}): Request<VerifyChallengeResponseResult>;
|
|
140
308
|
verify(request: {
|
|
141
309
|
/** V1 error format. */
|
|
142
|
-
"$.xgafv"?:
|
|
310
|
+
"$.xgafv"?:
|
|
311
|
+
string;
|
|
143
312
|
/** OAuth access token. */
|
|
144
|
-
access_token?:
|
|
313
|
+
access_token?:
|
|
314
|
+
string;
|
|
145
315
|
/** Data format for response. */
|
|
146
|
-
alt?:
|
|
316
|
+
alt?:
|
|
317
|
+
string;
|
|
147
318
|
/** JSONP */
|
|
148
|
-
callback?:
|
|
319
|
+
callback?:
|
|
320
|
+
string;
|
|
149
321
|
/** Selector specifying which fields to include in a partial response. */
|
|
150
|
-
fields?:
|
|
322
|
+
fields?:
|
|
323
|
+
string;
|
|
151
324
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
152
|
-
key?:
|
|
325
|
+
key?:
|
|
326
|
+
string;
|
|
153
327
|
/** OAuth 2.0 token for the current user. */
|
|
154
|
-
oauth_token?:
|
|
328
|
+
oauth_token?:
|
|
329
|
+
string;
|
|
155
330
|
/** Returns response with indentations and line breaks. */
|
|
156
|
-
prettyPrint?:
|
|
331
|
+
prettyPrint?:
|
|
332
|
+
boolean;
|
|
157
333
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
158
|
-
quotaUser?:
|
|
334
|
+
quotaUser?:
|
|
335
|
+
string;
|
|
159
336
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
160
|
-
upload_protocol?:
|
|
337
|
+
upload_protocol?:
|
|
338
|
+
string;
|
|
161
339
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
162
|
-
uploadType?:
|
|
340
|
+
uploadType?:
|
|
341
|
+
string;
|
|
163
342
|
},
|
|
164
343
|
body: VerifyChallengeResponseRequest): Request<VerifyChallengeResponseResult>;
|
|
165
344
|
}
|
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: 20230425
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|