@maxim_mazurok/gapi.client.playintegrity-v1 0.0.20240708 → 0.0.20240711

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.
Files changed (3) hide show
  1. package/index.d.ts +78 -1
  2. package/package.json +1 -1
  3. package/readme.md +7 -0
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://playintegrity.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240708
12
+ // Revision: 20240711
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -108,6 +108,81 @@ declare namespace gapi.client {
108
108
  /** Indicates that this payload is generated for testing purposes and contains any additional data that is linked with testing status. */
109
109
  testingDetails?: TestingDetails;
110
110
  }
111
+ interface Values {
112
+ /** Required. First recall bit value. */
113
+ bitFirst?: boolean;
114
+ /** Required. Second recall bit value. */
115
+ bitSecond?: boolean;
116
+ /** Required. Third recall bit value. */
117
+ bitThird?: boolean;
118
+ }
119
+ interface WriteDeviceRecallRequest {
120
+ /** Required. Integrity token obtained from calling Play Integrity API. Note that the integrity token contains the existing device recall bits. The write will only succeed if those bits in the integrity token are up to date. */
121
+ integrityToken?: string;
122
+ /** Required. The new values for the device recall bits to be written. */
123
+ newValues?: Values;
124
+ }
125
+ interface WriteDeviceRecallResponse {}
126
+ interface DeviceRecallResource {
127
+ /** Writes recall bits for the device where Play Integrity API token is obtained. The endpoint is available to select Play partners in an early access program (EAP). */
128
+ write(request: {
129
+ /** V1 error format. */
130
+ '$.xgafv'?: string;
131
+ /** OAuth access token. */
132
+ access_token?: string;
133
+ /** Data format for response. */
134
+ alt?: string;
135
+ /** JSONP */
136
+ callback?: string;
137
+ /** Selector specifying which fields to include in a partial response. */
138
+ fields?: string;
139
+ /** 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. */
140
+ key?: string;
141
+ /** OAuth 2.0 token for the current user. */
142
+ oauth_token?: string;
143
+ /** Required. Package name of the app the attached integrity token belongs to. */
144
+ packageName: string;
145
+ /** Returns response with indentations and line breaks. */
146
+ prettyPrint?: boolean;
147
+ /** 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. */
148
+ quotaUser?: string;
149
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
150
+ upload_protocol?: string;
151
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
152
+ uploadType?: string;
153
+ /** Request body */
154
+ resource: WriteDeviceRecallRequest;
155
+ }): Request<{}>;
156
+ write(
157
+ request: {
158
+ /** V1 error format. */
159
+ '$.xgafv'?: string;
160
+ /** OAuth access token. */
161
+ access_token?: string;
162
+ /** Data format for response. */
163
+ alt?: string;
164
+ /** JSONP */
165
+ callback?: string;
166
+ /** Selector specifying which fields to include in a partial response. */
167
+ fields?: string;
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. */
169
+ key?: string;
170
+ /** OAuth 2.0 token for the current user. */
171
+ oauth_token?: string;
172
+ /** Required. Package name of the app the attached integrity token belongs to. */
173
+ packageName: string;
174
+ /** Returns response with indentations and line breaks. */
175
+ prettyPrint?: boolean;
176
+ /** 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. */
177
+ quotaUser?: string;
178
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
179
+ upload_protocol?: string;
180
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
181
+ uploadType?: string;
182
+ },
183
+ body: WriteDeviceRecallRequest
184
+ ): Request<{}>;
185
+ }
111
186
  interface V1Resource {
112
187
  /** Decodes the integrity token and returns the token payload. */
113
188
  decodeIntegrityToken(request: {
@@ -169,6 +244,8 @@ declare namespace gapi.client {
169
244
  ): Request<DecodeIntegrityTokenResponse>;
170
245
  }
171
246
 
247
+ const deviceRecall: DeviceRecallResource;
248
+
172
249
  const v1: V1Resource;
173
250
  }
174
251
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.playintegrity-v1",
3
- "version": "0.0.20240708",
3
+ "version": "0.0.20240711",
4
4
  "description": "TypeScript typings for Google Play Integrity API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -69,6 +69,13 @@ gapi.auth.authorize(
69
69
  After that you can use Google Play Integrity API resources: <!-- TODO: make this work for multiple namespaces -->
70
70
 
71
71
  ```typescript
72
+ /*
73
+ Writes recall bits for the device where Play Integrity API token is obtained. The endpoint is available to select Play partners in an early access program (EAP).
74
+ */
75
+ await gapi.client.playintegrity.deviceRecall.write({
76
+ packageName: 'packageName',
77
+ });
78
+
72
79
  /*
73
80
  Decodes the integrity token and returns the token payload.
74
81
  */