Skip to content

Commit ee43ece

Browse files
feat(playintegrity): update the api
#### playintegrity:v1 The following keys were added: - resources.v1.methods.decodePcIntegrityToken (Total Keys: 12) - schemas.DecodePcIntegrityTokenRequest (Total Keys: 3) - schemas.DecodePcIntegrityTokenResponse (Total Keys: 3) - schemas.PcDeviceIntegrity (Total Keys: 4) - schemas.PcRequestDetails (Total Keys: 6) - schemas.PcTokenPayloadExternal (Total Keys: 4)
1 parent 1b0f478 commit ee43ece

File tree

2 files changed

+148
-1
lines changed

2 files changed

+148
-1
lines changed

docs/dyn/playintegrity_v1.v1.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ <h2>Instance Methods</h2>
8080
<p class="toc_element">
8181
<code><a href="#decodeIntegrityToken">decodeIntegrityToken(packageName, body=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Decodes the integrity token and returns the token payload.</p>
83+
<p class="toc_element">
84+
<code><a href="#decodePcIntegrityToken">decodePcIntegrityToken(packageName, body=None, x__xgafv=None)</a></code></p>
85+
<p class="firstline">Decodes the PC integrity token and returns the PC token payload.</p>
8386
<h3>Method Details</h3>
8487
<div class="method">
8588
<code class="details" id="close">close()</code>
@@ -170,4 +173,41 @@ <h3>Method Details</h3>
170173
}</pre>
171174
</div>
172175

176+
<div class="method">
177+
<code class="details" id="decodePcIntegrityToken">decodePcIntegrityToken(packageName, body=None, x__xgafv=None)</code>
178+
<pre>Decodes the PC integrity token and returns the PC token payload.
179+
180+
Args:
181+
packageName: string, Package name of the app the attached integrity token belongs to. (required)
182+
body: object, The request body.
183+
The object takes the form of:
184+
185+
{ # Request to decode the PC integrity token.
186+
&quot;integrityToken&quot;: &quot;A String&quot;, # Encoded integrity token.
187+
}
188+
189+
x__xgafv: string, V1 error format.
190+
Allowed values
191+
1 - v1 error format
192+
2 - v2 error format
193+
194+
Returns:
195+
An object of the form:
196+
197+
{ # Response containing the decoded PC integrity payload.
198+
&quot;tokenPayloadExternal&quot;: { # Contains PC device attestation details. # Plain token payload generated from the decoded integrity token.
199+
&quot;deviceIntegrity&quot;: { # Contains the device attestation information. # Required. Details about the device integrity.
200+
&quot;deviceRecognitionVerdict&quot;: [ # Details about the integrity of the device the app is running on.
201+
&quot;A String&quot;,
202+
],
203+
},
204+
&quot;requestDetails&quot;: { # Contains the integrity request information. # Required. Details about the integrity request.
205+
&quot;requestHash&quot;: &quot;A String&quot;, # Request hash that was provided in the request.
206+
&quot;requestPackageName&quot;: &quot;A String&quot;, # Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity.
207+
&quot;requestTime&quot;: &quot;A String&quot;, # Required. Timestamp, of the integrity application request.
208+
},
209+
},
210+
}</pre>
211+
</div>
212+
173213
</body></html>

googleapiclient/discovery_cache/documents/playintegrity.v1.json

Lines changed: 108 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,39 @@
166166
"scopes": [
167167
"https://www.googleapis.com/auth/playintegrity"
168168
]
169+
},
170+
"decodePcIntegrityToken": {
171+
"description": "Decodes the PC integrity token and returns the PC token payload.",
172+
"flatPath": "v1/{v1Id}:decodePcIntegrityToken",
173+
"httpMethod": "POST",
174+
"id": "playintegrity.decodePcIntegrityToken",
175+
"parameterOrder": [
176+
"packageName"
177+
],
178+
"parameters": {
179+
"packageName": {
180+
"description": "Package name of the app the attached integrity token belongs to.",
181+
"location": "path",
182+
"pattern": "^[^/]+$",
183+
"required": true,
184+
"type": "string"
185+
}
186+
},
187+
"path": "v1/{+packageName}:decodePcIntegrityToken",
188+
"request": {
189+
"$ref": "DecodePcIntegrityTokenRequest"
190+
},
191+
"response": {
192+
"$ref": "DecodePcIntegrityTokenResponse"
193+
},
194+
"scopes": [
195+
"https://www.googleapis.com/auth/playintegrity"
196+
]
169197
}
170198
}
171199
}
172200
},
173-
"revision": "20250223",
201+
"revision": "20250514",
174202
"rootUrl": "https://playintegrity.googleapis.com/",
175203
"schemas": {
176204
"AccountActivity": {
@@ -324,6 +352,28 @@
324352
},
325353
"type": "object"
326354
},
355+
"DecodePcIntegrityTokenRequest": {
356+
"description": "Request to decode the PC integrity token.",
357+
"id": "DecodePcIntegrityTokenRequest",
358+
"properties": {
359+
"integrityToken": {
360+
"description": "Encoded integrity token.",
361+
"type": "string"
362+
}
363+
},
364+
"type": "object"
365+
},
366+
"DecodePcIntegrityTokenResponse": {
367+
"description": "Response containing the decoded PC integrity payload.",
368+
"id": "DecodePcIntegrityTokenResponse",
369+
"properties": {
370+
"tokenPayloadExternal": {
371+
"$ref": "PcTokenPayloadExternal",
372+
"description": "Plain token payload generated from the decoded integrity token."
373+
}
374+
},
375+
"type": "object"
376+
},
327377
"DeviceAttributes": {
328378
"description": "Contains information about the device for which the integrity token was generated, e.g. Android SDK version.",
329379
"id": "DeviceAttributes",
@@ -445,6 +495,63 @@
445495
},
446496
"type": "object"
447497
},
498+
"PcDeviceIntegrity": {
499+
"description": "Contains the device attestation information.",
500+
"id": "PcDeviceIntegrity",
501+
"properties": {
502+
"deviceRecognitionVerdict": {
503+
"description": "Details about the integrity of the device the app is running on.",
504+
"items": {
505+
"enum": [
506+
"DEVICE_RECOGNITION_VERDICT_UNSPECIFIED",
507+
"MEETS_PC_INTEGRITY"
508+
],
509+
"enumDescriptions": [
510+
"Unspecified device integrity.",
511+
"App is running on Windows Device with Google Desktop Services."
512+
],
513+
"type": "string"
514+
},
515+
"type": "array"
516+
}
517+
},
518+
"type": "object"
519+
},
520+
"PcRequestDetails": {
521+
"description": "Contains the integrity request information.",
522+
"id": "PcRequestDetails",
523+
"properties": {
524+
"requestHash": {
525+
"description": "Request hash that was provided in the request.",
526+
"type": "string"
527+
},
528+
"requestPackageName": {
529+
"description": "Required. Application package name this attestation was requested for. Note: This field makes no guarantees or promises on the caller integrity.",
530+
"type": "string"
531+
},
532+
"requestTime": {
533+
"description": "Required. Timestamp, of the integrity application request.",
534+
"format": "google-datetime",
535+
"type": "string"
536+
}
537+
},
538+
"type": "object"
539+
},
540+
"PcTokenPayloadExternal": {
541+
"description": "Contains PC device attestation details.",
542+
"id": "PcTokenPayloadExternal",
543+
"properties": {
544+
"deviceIntegrity": {
545+
"$ref": "PcDeviceIntegrity",
546+
"description": "Required. Details about the device integrity."
547+
},
548+
"requestDetails": {
549+
"$ref": "PcRequestDetails",
550+
"description": "Required. Details about the integrity request."
551+
}
552+
},
553+
"type": "object"
554+
},
448555
"RecentDeviceActivity": {
449556
"description": "Recent device activity can help developers identify devices that have exhibited hyperactive attestation activity, which could be a sign of an attack or token farming.",
450557
"id": "RecentDeviceActivity",

0 commit comments

Comments
 (0)