@maxim_mazurok/gapi.client.firebaseappcheck-v1 0.0.20230529 → 0.0.20230612
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 +25 -1
- package/package.json +1 -1
- package/tests.ts +9 -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://firebaseappcheck.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230612
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -145,6 +145,9 @@ declare namespace gapi.client {
|
|
|
145
145
|
/** Required. A one-time challenge returned by an immediately prior call to GenerateAppAttestChallenge. */
|
|
146
146
|
challenge?:
|
|
147
147
|
string;
|
|
148
|
+
/** Forces a short lived token with a 5 minute TTL. Useful when the client wishes to self impose stricter TTL requirements for this exchange. Default: false. */
|
|
149
|
+
limitedUse?:
|
|
150
|
+
boolean;
|
|
148
151
|
}
|
|
149
152
|
interface GoogleFirebaseAppcheckV1ExchangeAppAttestAttestationRequest {
|
|
150
153
|
/** Required. The App Attest statement returned by the client-side App Attest API. This is a base64url encoded CBOR object in the JSON response. */
|
|
@@ -156,6 +159,9 @@ declare namespace gapi.client {
|
|
|
156
159
|
/** Required. The key ID generated by App Attest for the client app. */
|
|
157
160
|
keyId?:
|
|
158
161
|
string;
|
|
162
|
+
/** Forces a short lived token with a 5 minute TTL. Useful when the client wishes to self impose stricter TTL requirements for this exchange. Default: false. */
|
|
163
|
+
limitedUse?:
|
|
164
|
+
boolean;
|
|
159
165
|
}
|
|
160
166
|
interface GoogleFirebaseAppcheckV1ExchangeAppAttestAttestationResponse {
|
|
161
167
|
/** Encapsulates an App Check token. */
|
|
@@ -169,11 +175,17 @@ declare namespace gapi.client {
|
|
|
169
175
|
/** Required. A custom token signed using your project's Admin SDK service account credentials. */
|
|
170
176
|
customToken?:
|
|
171
177
|
string;
|
|
178
|
+
/** Forces a short lived token with a 5 minute TTL. Useful when the client wishes to self impose stricter TTL requirements for this exchange. Default: false. */
|
|
179
|
+
limitedUse?:
|
|
180
|
+
boolean;
|
|
172
181
|
}
|
|
173
182
|
interface GoogleFirebaseAppcheckV1ExchangeDebugTokenRequest {
|
|
174
183
|
/** Required. A debug token secret. This string must match a debug token secret previously created using CreateDebugToken. */
|
|
175
184
|
debugToken?:
|
|
176
185
|
string;
|
|
186
|
+
/** Forces a short lived token with a 5 minute TTL. Useful when the client wishes to self impose stricter TTL requirements for this exchange. Default: false. */
|
|
187
|
+
limitedUse?:
|
|
188
|
+
boolean;
|
|
177
189
|
}
|
|
178
190
|
interface GoogleFirebaseAppcheckV1ExchangeDeviceCheckTokenRequest {
|
|
179
191
|
/**
|
|
@@ -182,18 +194,30 @@ declare namespace gapi.client {
|
|
|
182
194
|
*/
|
|
183
195
|
deviceToken?:
|
|
184
196
|
string;
|
|
197
|
+
/** Forces a short lived token with a 5 minute TTL. Useful when the client wishes to self impose stricter TTL requirements for this exchange. Default: false. */
|
|
198
|
+
limitedUse?:
|
|
199
|
+
boolean;
|
|
185
200
|
}
|
|
186
201
|
interface GoogleFirebaseAppcheckV1ExchangePlayIntegrityTokenRequest {
|
|
202
|
+
/** Forces a short-lived token with a 5 minute TTL. Useful when the client wishes to impose stricter TTL requirements for this exchange. Default: false. */
|
|
203
|
+
limitedUse?:
|
|
204
|
+
boolean;
|
|
187
205
|
/** Required. The [integrity verdict response token from Play Integrity](https://developer.android.com/google/play/integrity/verdict#decrypt-verify) issued to your app. */
|
|
188
206
|
playIntegrityToken?:
|
|
189
207
|
string;
|
|
190
208
|
}
|
|
191
209
|
interface GoogleFirebaseAppcheckV1ExchangeRecaptchaEnterpriseTokenRequest {
|
|
210
|
+
/** Forces a short lived token with a 5 minute TTL. Useful when the client wishes to self impose stricter TTL requirements for this exchange. Default: false. */
|
|
211
|
+
limitedUse?:
|
|
212
|
+
boolean;
|
|
192
213
|
/** Required. The reCAPTCHA token as returned by the [reCAPTCHA Enterprise JavaScript API](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages). */
|
|
193
214
|
recaptchaEnterpriseToken?:
|
|
194
215
|
string;
|
|
195
216
|
}
|
|
196
217
|
interface GoogleFirebaseAppcheckV1ExchangeRecaptchaV3TokenRequest {
|
|
218
|
+
/** Forces a short lived token with a 5 minute TTL. Useful when the client wishes to self impose stricter TTL requirements for this exchange. Default: false. */
|
|
219
|
+
limitedUse?:
|
|
220
|
+
boolean;
|
|
197
221
|
/** Required. The reCAPTCHA token as returned by the [reCAPTCHA v3 JavaScript API](https://developers.google.com/recaptcha/docs/v3). */
|
|
198
222
|
recaptchaV3Token?:
|
|
199
223
|
string;
|
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: 20230612
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -45,6 +45,7 @@ gapi.load('client', async () => {
|
|
|
45
45
|
artifact: "Test string",
|
|
46
46
|
assertion: "Test string",
|
|
47
47
|
challenge: "Test string",
|
|
48
|
+
limitedUse: true,
|
|
48
49
|
});
|
|
49
50
|
/**
|
|
50
51
|
* Accepts an App Attest CBOR attestation and verifies it with Apple using your preconfigured team and bundle IDs. If valid, returns an attestation artifact that can later be exchanged for
|
|
@@ -56,12 +57,14 @@ gapi.load('client', async () => {
|
|
|
56
57
|
attestationStatement: "Test string",
|
|
57
58
|
challenge: "Test string",
|
|
58
59
|
keyId: "Test string",
|
|
60
|
+
limitedUse: true,
|
|
59
61
|
});
|
|
60
62
|
/** Validates a custom token signed using your project's Admin SDK service account credentials. If valid, returns an AppCheckToken. */
|
|
61
63
|
await gapi.client.firebaseappcheck.projects.apps.exchangeCustomToken({
|
|
62
64
|
app: "Test string",
|
|
63
65
|
}, {
|
|
64
66
|
customToken: "Test string",
|
|
67
|
+
limitedUse: true,
|
|
65
68
|
});
|
|
66
69
|
/**
|
|
67
70
|
* Validates a debug token secret that you have previously created using CreateDebugToken. If valid, returns an AppCheckToken. Note that a restrictive quota is enforced on this method to
|
|
@@ -71,6 +74,7 @@ gapi.load('client', async () => {
|
|
|
71
74
|
app: "Test string",
|
|
72
75
|
}, {
|
|
73
76
|
debugToken: "Test string",
|
|
77
|
+
limitedUse: true,
|
|
74
78
|
});
|
|
75
79
|
/**
|
|
76
80
|
* Accepts a [`device_token`](https://developer.apple.com/documentation/devicecheck/dcdevice) issued by DeviceCheck, and attempts to validate it with Apple. If valid, returns an
|
|
@@ -80,23 +84,27 @@ gapi.load('client', async () => {
|
|
|
80
84
|
app: "Test string",
|
|
81
85
|
}, {
|
|
82
86
|
deviceToken: "Test string",
|
|
87
|
+
limitedUse: true,
|
|
83
88
|
});
|
|
84
89
|
/** Validates an [integrity verdict response token from Play Integrity](https://developer.android.com/google/play/integrity/verdict#decrypt-verify). If valid, returns an AppCheckToken. */
|
|
85
90
|
await gapi.client.firebaseappcheck.projects.apps.exchangePlayIntegrityToken({
|
|
86
91
|
app: "Test string",
|
|
87
92
|
}, {
|
|
93
|
+
limitedUse: true,
|
|
88
94
|
playIntegrityToken: "Test string",
|
|
89
95
|
});
|
|
90
96
|
/** Validates a [reCAPTCHA Enterprise response token](https://cloud.google.com/recaptcha-enterprise/docs/create-assessment#retrieve_token). If valid, returns an AppCheckToken. */
|
|
91
97
|
await gapi.client.firebaseappcheck.projects.apps.exchangeRecaptchaEnterpriseToken({
|
|
92
98
|
app: "Test string",
|
|
93
99
|
}, {
|
|
100
|
+
limitedUse: true,
|
|
94
101
|
recaptchaEnterpriseToken: "Test string",
|
|
95
102
|
});
|
|
96
103
|
/** Validates a [reCAPTCHA v3 response token](https://developers.google.com/recaptcha/docs/v3). If valid, returns an AppCheckToken. */
|
|
97
104
|
await gapi.client.firebaseappcheck.projects.apps.exchangeRecaptchaV3Token({
|
|
98
105
|
app: "Test string",
|
|
99
106
|
}, {
|
|
107
|
+
limitedUse: true,
|
|
100
108
|
recaptchaV3Token: "Test string",
|
|
101
109
|
});
|
|
102
110
|
/** Validates a [SafetyNet token](https://developer.android.com/training/safetynet/attestation#request-attestation-step). If valid, returns an AppCheckToken. */
|