@maxim_mazurok/gapi.client.verifiedaccess-v1 0.0.20230404 → 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 +113 -57
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230425
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,147 +24,203 @@ declare namespace gapi.client {
|
|
|
24
24
|
namespace verifiedaccess {
|
|
25
25
|
interface Challenge {
|
|
26
26
|
/** Challenge generated with the old signing key (this will only be present during key rotation) */
|
|
27
|
-
alternativeChallenge?:
|
|
27
|
+
alternativeChallenge?:
|
|
28
|
+
SignedData;
|
|
28
29
|
/** Generated challenge */
|
|
29
|
-
challenge?:
|
|
30
|
+
challenge?:
|
|
31
|
+
SignedData;
|
|
30
32
|
}
|
|
31
33
|
// tslint:disable-next-line:no-empty-interface
|
|
32
34
|
interface Empty {
|
|
33
35
|
}
|
|
34
36
|
interface SignedData {
|
|
35
37
|
/** The data to be signed. */
|
|
36
|
-
data?:
|
|
38
|
+
data?:
|
|
39
|
+
string;
|
|
37
40
|
/** The signature of the data field. */
|
|
38
|
-
signature?:
|
|
41
|
+
signature?:
|
|
42
|
+
string;
|
|
39
43
|
}
|
|
40
44
|
interface VerifyChallengeResponseRequest {
|
|
41
45
|
/** The generated response to the challenge */
|
|
42
|
-
challengeResponse?:
|
|
46
|
+
challengeResponse?:
|
|
47
|
+
SignedData;
|
|
43
48
|
/**
|
|
44
49
|
* 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 is the
|
|
45
50
|
* 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.
|
|
46
51
|
*/
|
|
47
|
-
expectedIdentity?:
|
|
52
|
+
expectedIdentity?:
|
|
53
|
+
string;
|
|
48
54
|
}
|
|
49
55
|
interface VerifyChallengeResponseResult {
|
|
50
56
|
/** Device enrollment id is returned in this field (for the machine response only). */
|
|
51
|
-
deviceEnrollmentId?:
|
|
57
|
+
deviceEnrollmentId?:
|
|
58
|
+
string;
|
|
52
59
|
/** Device permanent id is returned in this field (for the machine response only). */
|
|
53
|
-
devicePermanentId?:
|
|
60
|
+
devicePermanentId?:
|
|
61
|
+
string;
|
|
54
62
|
/**
|
|
55
63
|
* 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
|
|
56
64
|
* option to include CSR is now available for both user and machine responses)
|
|
57
65
|
*/
|
|
58
|
-
signedPublicKeyAndChallenge?:
|
|
66
|
+
signedPublicKeyAndChallenge?:
|
|
67
|
+
string;
|
|
59
68
|
/**
|
|
60
69
|
* For EMCert check, device permanent id is returned here. For EUCert check, signed_public_key_and_challenge [base64 encoded] is returned if present, otherwise empty string is
|
|
61
70
|
* returned. This field is deprecated, please use device_permanent_id or signed_public_key_and_challenge fields.
|
|
62
71
|
*/
|
|
63
|
-
verificationOutput?:
|
|
72
|
+
verificationOutput?:
|
|
73
|
+
string;
|
|
64
74
|
}
|
|
65
75
|
interface ChallengeResource {
|
|
66
76
|
/** CreateChallenge API */
|
|
67
77
|
create(request: {
|
|
68
78
|
/** V1 error format. */
|
|
69
|
-
"$.xgafv"?:
|
|
79
|
+
"$.xgafv"?:
|
|
80
|
+
string;
|
|
70
81
|
/** OAuth access token. */
|
|
71
|
-
access_token?:
|
|
82
|
+
access_token?:
|
|
83
|
+
string;
|
|
72
84
|
/** Data format for response. */
|
|
73
|
-
alt?:
|
|
85
|
+
alt?:
|
|
86
|
+
string;
|
|
74
87
|
/** JSONP */
|
|
75
|
-
callback?:
|
|
88
|
+
callback?:
|
|
89
|
+
string;
|
|
76
90
|
/** Selector specifying which fields to include in a partial response. */
|
|
77
|
-
fields?:
|
|
91
|
+
fields?:
|
|
92
|
+
string;
|
|
78
93
|
/** 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. */
|
|
79
|
-
key?:
|
|
94
|
+
key?:
|
|
95
|
+
string;
|
|
80
96
|
/** OAuth 2.0 token for the current user. */
|
|
81
|
-
oauth_token?:
|
|
97
|
+
oauth_token?:
|
|
98
|
+
string;
|
|
82
99
|
/** Returns response with indentations and line breaks. */
|
|
83
|
-
prettyPrint?:
|
|
100
|
+
prettyPrint?:
|
|
101
|
+
boolean;
|
|
84
102
|
/** 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. */
|
|
85
|
-
quotaUser?:
|
|
103
|
+
quotaUser?:
|
|
104
|
+
string;
|
|
86
105
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
87
|
-
upload_protocol?:
|
|
106
|
+
upload_protocol?:
|
|
107
|
+
string;
|
|
88
108
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
89
|
-
uploadType?:
|
|
109
|
+
uploadType?:
|
|
110
|
+
string;
|
|
90
111
|
/** Request body */
|
|
91
|
-
resource:
|
|
112
|
+
resource:
|
|
113
|
+
Empty;
|
|
92
114
|
}): Request<Challenge>;
|
|
93
115
|
create(request: {
|
|
94
116
|
/** V1 error format. */
|
|
95
|
-
"$.xgafv"?:
|
|
117
|
+
"$.xgafv"?:
|
|
118
|
+
string;
|
|
96
119
|
/** OAuth access token. */
|
|
97
|
-
access_token?:
|
|
120
|
+
access_token?:
|
|
121
|
+
string;
|
|
98
122
|
/** Data format for response. */
|
|
99
|
-
alt?:
|
|
123
|
+
alt?:
|
|
124
|
+
string;
|
|
100
125
|
/** JSONP */
|
|
101
|
-
callback?:
|
|
126
|
+
callback?:
|
|
127
|
+
string;
|
|
102
128
|
/** Selector specifying which fields to include in a partial response. */
|
|
103
|
-
fields?:
|
|
129
|
+
fields?:
|
|
130
|
+
string;
|
|
104
131
|
/** 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. */
|
|
105
|
-
key?:
|
|
132
|
+
key?:
|
|
133
|
+
string;
|
|
106
134
|
/** OAuth 2.0 token for the current user. */
|
|
107
|
-
oauth_token?:
|
|
135
|
+
oauth_token?:
|
|
136
|
+
string;
|
|
108
137
|
/** Returns response with indentations and line breaks. */
|
|
109
|
-
prettyPrint?:
|
|
138
|
+
prettyPrint?:
|
|
139
|
+
boolean;
|
|
110
140
|
/** 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. */
|
|
111
|
-
quotaUser?:
|
|
141
|
+
quotaUser?:
|
|
142
|
+
string;
|
|
112
143
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
113
|
-
upload_protocol?:
|
|
144
|
+
upload_protocol?:
|
|
145
|
+
string;
|
|
114
146
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
115
|
-
uploadType?:
|
|
147
|
+
uploadType?:
|
|
148
|
+
string;
|
|
116
149
|
},
|
|
117
150
|
body: Empty): Request<Challenge>;
|
|
118
151
|
/** VerifyChallengeResponse API */
|
|
119
152
|
verify(request: {
|
|
120
153
|
/** V1 error format. */
|
|
121
|
-
"$.xgafv"?:
|
|
154
|
+
"$.xgafv"?:
|
|
155
|
+
string;
|
|
122
156
|
/** OAuth access token. */
|
|
123
|
-
access_token?:
|
|
157
|
+
access_token?:
|
|
158
|
+
string;
|
|
124
159
|
/** Data format for response. */
|
|
125
|
-
alt?:
|
|
160
|
+
alt?:
|
|
161
|
+
string;
|
|
126
162
|
/** JSONP */
|
|
127
|
-
callback?:
|
|
163
|
+
callback?:
|
|
164
|
+
string;
|
|
128
165
|
/** Selector specifying which fields to include in a partial response. */
|
|
129
|
-
fields?:
|
|
166
|
+
fields?:
|
|
167
|
+
string;
|
|
130
168
|
/** 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. */
|
|
131
|
-
key?:
|
|
169
|
+
key?:
|
|
170
|
+
string;
|
|
132
171
|
/** OAuth 2.0 token for the current user. */
|
|
133
|
-
oauth_token?:
|
|
172
|
+
oauth_token?:
|
|
173
|
+
string;
|
|
134
174
|
/** Returns response with indentations and line breaks. */
|
|
135
|
-
prettyPrint?:
|
|
175
|
+
prettyPrint?:
|
|
176
|
+
boolean;
|
|
136
177
|
/** 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. */
|
|
137
|
-
quotaUser?:
|
|
178
|
+
quotaUser?:
|
|
179
|
+
string;
|
|
138
180
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
139
|
-
upload_protocol?:
|
|
181
|
+
upload_protocol?:
|
|
182
|
+
string;
|
|
140
183
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
141
|
-
uploadType?:
|
|
184
|
+
uploadType?:
|
|
185
|
+
string;
|
|
142
186
|
/** Request body */
|
|
143
|
-
resource:
|
|
187
|
+
resource:
|
|
188
|
+
VerifyChallengeResponseRequest;
|
|
144
189
|
}): Request<VerifyChallengeResponseResult>;
|
|
145
190
|
verify(request: {
|
|
146
191
|
/** V1 error format. */
|
|
147
|
-
"$.xgafv"?:
|
|
192
|
+
"$.xgafv"?:
|
|
193
|
+
string;
|
|
148
194
|
/** OAuth access token. */
|
|
149
|
-
access_token?:
|
|
195
|
+
access_token?:
|
|
196
|
+
string;
|
|
150
197
|
/** Data format for response. */
|
|
151
|
-
alt?:
|
|
198
|
+
alt?:
|
|
199
|
+
string;
|
|
152
200
|
/** JSONP */
|
|
153
|
-
callback?:
|
|
201
|
+
callback?:
|
|
202
|
+
string;
|
|
154
203
|
/** Selector specifying which fields to include in a partial response. */
|
|
155
|
-
fields?:
|
|
204
|
+
fields?:
|
|
205
|
+
string;
|
|
156
206
|
/** 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. */
|
|
157
|
-
key?:
|
|
207
|
+
key?:
|
|
208
|
+
string;
|
|
158
209
|
/** OAuth 2.0 token for the current user. */
|
|
159
|
-
oauth_token?:
|
|
210
|
+
oauth_token?:
|
|
211
|
+
string;
|
|
160
212
|
/** Returns response with indentations and line breaks. */
|
|
161
|
-
prettyPrint?:
|
|
213
|
+
prettyPrint?:
|
|
214
|
+
boolean;
|
|
162
215
|
/** 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. */
|
|
163
|
-
quotaUser?:
|
|
216
|
+
quotaUser?:
|
|
217
|
+
string;
|
|
164
218
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
165
|
-
upload_protocol?:
|
|
219
|
+
upload_protocol?:
|
|
220
|
+
string;
|
|
166
221
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
167
|
-
uploadType?:
|
|
222
|
+
uploadType?:
|
|
223
|
+
string;
|
|
168
224
|
},
|
|
169
225
|
body: VerifyChallengeResponseRequest): Request<VerifyChallengeResponseResult>;
|
|
170
226
|
}
|
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 */
|