@maxim_mazurok/gapi.client.firebaseappcheck-v1 0.2.20260314 → 0.2.20260605
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 +11 -1
- package/package.json +1 -1
- package/readme.md +17 -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://firebaseappcheck.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260605
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -87,6 +87,8 @@ declare namespace gapi.client {
|
|
|
87
87
|
interface GoogleFirebaseAppcheckV1DebugToken {
|
|
88
88
|
/** Required. A human readable display name used to identify this debug token. */
|
|
89
89
|
displayName?: string;
|
|
90
|
+
/** Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232. */
|
|
91
|
+
etag?: string;
|
|
90
92
|
/** Required. The relative resource name of the debug token, in the format: ``` projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id} ``` */
|
|
91
93
|
name?: string;
|
|
92
94
|
/** Required. Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response. */
|
|
@@ -298,8 +300,14 @@ declare namespace gapi.client {
|
|
|
298
300
|
interface GoogleFirebaseAppcheckV1Service {
|
|
299
301
|
/** Required. The App Check enforcement mode for this service. */
|
|
300
302
|
enforcementMode?: 'OFF' | 'UNENFORCED' | 'ENFORCED';
|
|
303
|
+
/** Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232. */
|
|
304
|
+
etag?: string;
|
|
301
305
|
/** Required. The relative resource name of the service configuration object, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `firebasestorage.googleapis.com` (Cloud Storage for Firebase) * `firebasedatabase.googleapis.com` (Firebase Realtime Database) * `firestore.googleapis.com` (Cloud Firestore) * `oauth2.googleapis.com` (Google Identity for iOS) */
|
|
302
306
|
name?: string;
|
|
307
|
+
/** Optional. The replay protection enforcement mode for this service. Note that this field cannot be set to a level higher than the overall App Check enforcement mode. For example, if the overall App Check enforcement mode is set to `UNENFORCED`, this field cannot be set to `ENFORCED`. In order to enforce replay protection, you must first enforce App Check. An HTTP 400 error will be returned in this case. By default, this field is set to `OFF`. Setting this field to `UNENFORCED` or `ENFORCED` is considered opting into replay protection. Once opted in, requests to your protected services may experience higher latency. To opt out of replay protection after opting in, set this field to `OFF`. */
|
|
308
|
+
replayProtection?: 'OFF' | 'UNENFORCED' | 'ENFORCED';
|
|
309
|
+
/** Output only. Timestamp when this service configuration object was most recently updated. */
|
|
310
|
+
updateTime?: string;
|
|
303
311
|
}
|
|
304
312
|
interface GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest {
|
|
305
313
|
/** Required. The ResourcePolicy to update. The ResourcePolicy's `name` field is used to identify the ResourcePolicy to be updated, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) */
|
|
@@ -766,6 +774,8 @@ declare namespace gapi.client {
|
|
|
766
774
|
alt?: 'json' | 'media' | 'proto';
|
|
767
775
|
/** JSONP */
|
|
768
776
|
callback?: string;
|
|
777
|
+
/** Optional. The checksum to be validated against the current DebugToken, to ensure the client has an up-to-date value before proceeding. This checksum is computed by the server based on the values of fields in the DebugToken object, and can be obtained from the DebugToken object received from the last CreateDebugToken, GetDebugToken, ListDebugTokens, or UpdateDebugToken call. This etag is strongly validated as defined by RFC 7232. */
|
|
778
|
+
etag?: string;
|
|
769
779
|
/** Selector specifying which fields to include in a partial response. */
|
|
770
780
|
fields?: string;
|
|
771
781
|
/** 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. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Firebase App Check API:
|
|
|
11
11
|
npm install @types/gapi.client.firebaseappcheck-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.firebaseappcheck-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|