@maxim_mazurok/gapi.client.firebaseappdistribution-v1alpha 0.0.20231207
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 +786 -0
- package/package.json +20 -0
- package/readme.md +91 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,786 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Firebase App Distribution API v1alpha 0.0 */
|
|
2
|
+
// Project: https://firebase.google.com/products/app-distribution
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
|
|
8
|
+
// IMPORTANT
|
|
9
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
|
+
// Generated from: https://firebaseappdistribution.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
+
// Revision: 20231207
|
|
13
|
+
|
|
14
|
+
/// <reference types="gapi.client" />
|
|
15
|
+
|
|
16
|
+
declare namespace gapi.client {
|
|
17
|
+
/** Load Firebase App Distribution API v1alpha */
|
|
18
|
+
function load(
|
|
19
|
+
urlOrObject: 'https://firebaseappdistribution.googleapis.com/$discovery/rest?version=v1alpha'
|
|
20
|
+
): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(
|
|
23
|
+
name: 'firebaseappdistribution',
|
|
24
|
+
version: 'v1alpha'
|
|
25
|
+
): Promise<void>;
|
|
26
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
27
|
+
function load(
|
|
28
|
+
name: 'firebaseappdistribution',
|
|
29
|
+
version: 'v1alpha',
|
|
30
|
+
callback: () => any
|
|
31
|
+
): void;
|
|
32
|
+
|
|
33
|
+
namespace firebaseappdistribution {
|
|
34
|
+
interface GoogleFirebaseAppdistroV1alphaAabCertificate {
|
|
35
|
+
/** MD5 hash of the certificate used to resign the AAB */
|
|
36
|
+
certificateHashMd5?: string;
|
|
37
|
+
/** SHA1 hash of the certificate used to resign the AAB */
|
|
38
|
+
certificateHashSha1?: string;
|
|
39
|
+
/** SHA256 hash of the certificate used to resign the AAB */
|
|
40
|
+
certificateHashSha256?: string;
|
|
41
|
+
}
|
|
42
|
+
interface GoogleFirebaseAppdistroV1alphaApp {
|
|
43
|
+
/** App bundle test certificate generated for the app. */
|
|
44
|
+
aabCertificate?: GoogleFirebaseAppdistroV1alphaAabCertificate;
|
|
45
|
+
/** App bundle state. Only valid for android apps. The app_view field in the request must be set to FULL in order for this to be populated. */
|
|
46
|
+
aabState?: string;
|
|
47
|
+
/** Firebase gmp app id */
|
|
48
|
+
appId?: string;
|
|
49
|
+
/** Bundle identifier */
|
|
50
|
+
bundleId?: string;
|
|
51
|
+
/** Developer contact email for testers to reach out to about privacy or support issues. */
|
|
52
|
+
contactEmail?: string;
|
|
53
|
+
/** iOS or Android */
|
|
54
|
+
platform?: string;
|
|
55
|
+
/** Project number of the Firebase project, for example 300830567303. */
|
|
56
|
+
projectNumber?: string;
|
|
57
|
+
}
|
|
58
|
+
interface GoogleFirebaseAppdistroV1alphaAppCrash {
|
|
59
|
+
/** Output only. The message associated with the crash. */
|
|
60
|
+
message?: string;
|
|
61
|
+
/** Output only. The raw stack trace. */
|
|
62
|
+
stackTrace?: string;
|
|
63
|
+
}
|
|
64
|
+
interface GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest {
|
|
65
|
+
/** The actual release notes body from the user */
|
|
66
|
+
releaseNotes?: GoogleFirebaseAppdistroV1alphaReleaseNotes;
|
|
67
|
+
}
|
|
68
|
+
interface GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse {}
|
|
69
|
+
interface GoogleFirebaseAppdistroV1alphaDeviceExecution {
|
|
70
|
+
/** Output only. An app crash, if any occurred during the test. */
|
|
71
|
+
appCrash?: GoogleFirebaseAppdistroV1alphaAppCrash;
|
|
72
|
+
/** Output only. A URI to an image of the Robo crawl graph. */
|
|
73
|
+
crawlGraphUri?: string;
|
|
74
|
+
/** Required. The device that the test was run on. */
|
|
75
|
+
device?: GoogleFirebaseAppdistroV1alphaTestDevice;
|
|
76
|
+
/** Output only. The reason why the test failed. */
|
|
77
|
+
failedReason?: string;
|
|
78
|
+
/** Output only. The reason why the test was inconclusive. */
|
|
79
|
+
inconclusiveReason?: string;
|
|
80
|
+
/** Output only. The path to a directory in Cloud Storage that will eventually contain the results for this execution. For example, gs://bucket/Nexus5-18-en-portrait. */
|
|
81
|
+
resultsStoragePath?: string;
|
|
82
|
+
/** Output only. The statistics collected during the Robo test. */
|
|
83
|
+
roboStats?: GoogleFirebaseAppdistroV1alphaRoboStats;
|
|
84
|
+
/** Output only. A list of screenshot image URIs taken from the Robo crawl. The file names are numbered by the order in which they were taken. */
|
|
85
|
+
screenshotUris?: string[];
|
|
86
|
+
/** Output only. The state of the test. */
|
|
87
|
+
state?: string;
|
|
88
|
+
/** Output only. A URI to a video of the test run. */
|
|
89
|
+
videoUri?: string;
|
|
90
|
+
}
|
|
91
|
+
interface GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest {
|
|
92
|
+
/** Optional. Ignored. Used to be build version of the app release if an instance identifier was provided for the release_id. */
|
|
93
|
+
buildVersion?: string;
|
|
94
|
+
/** Optional. Ignored. Used to be display version of the app release if an instance identifier was provided for the release_id. */
|
|
95
|
+
displayVersion?: string;
|
|
96
|
+
/** Optional. An email address which should get access to this release, for example rebeccahe@google.com */
|
|
97
|
+
emails?: string[];
|
|
98
|
+
/** Optional. A repeated list of group aliases to enable access to a release for Note: This field is misnamed, but can't be changed because we need to maintain compatibility with old build tools */
|
|
99
|
+
groupIds?: string[];
|
|
100
|
+
}
|
|
101
|
+
interface GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseResponse {}
|
|
102
|
+
interface GoogleFirebaseAppdistroV1alphaGetReleaseByUploadHashResponse {
|
|
103
|
+
/** Release object */
|
|
104
|
+
release?: GoogleFirebaseAppdistroV1alphaRelease;
|
|
105
|
+
}
|
|
106
|
+
interface GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse {
|
|
107
|
+
/** The UDIDs of tester iOS devices in a project */
|
|
108
|
+
testerUdids?: GoogleFirebaseAppdistroV1alphaTesterUdid[];
|
|
109
|
+
}
|
|
110
|
+
interface GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse {
|
|
111
|
+
/** The error code associated with (only set on "FAILURE") */
|
|
112
|
+
errorCode?: string;
|
|
113
|
+
/** Any additional context for the given upload status (e.g. error message) Meant to be displayed to the client */
|
|
114
|
+
message?: string;
|
|
115
|
+
/** The release that was created from the upload (only set on "SUCCESS") */
|
|
116
|
+
release?: GoogleFirebaseAppdistroV1alphaRelease;
|
|
117
|
+
/** The status of the upload */
|
|
118
|
+
status?: string;
|
|
119
|
+
}
|
|
120
|
+
interface GoogleFirebaseAppdistroV1alphaJwt {
|
|
121
|
+
token?: string;
|
|
122
|
+
}
|
|
123
|
+
interface GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse {
|
|
124
|
+
/** A short-lived token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
125
|
+
nextPageToken?: string;
|
|
126
|
+
/** The tests listed. */
|
|
127
|
+
releaseTests?: GoogleFirebaseAppdistroV1alphaReleaseTest[];
|
|
128
|
+
}
|
|
129
|
+
interface GoogleFirebaseAppdistroV1alphaLoginCredential {
|
|
130
|
+
/** Optional. Hints to the crawler for identifying input fields */
|
|
131
|
+
fieldHints?: GoogleFirebaseAppdistroV1alphaLoginCredentialFieldHints;
|
|
132
|
+
/** Optional. Are these credentials for Google? */
|
|
133
|
+
google?: boolean;
|
|
134
|
+
/** Optional. Password for automated tests */
|
|
135
|
+
password?: string;
|
|
136
|
+
/** Optional. Username for automated tests */
|
|
137
|
+
username?: string;
|
|
138
|
+
}
|
|
139
|
+
interface GoogleFirebaseAppdistroV1alphaLoginCredentialFieldHints {
|
|
140
|
+
/** Required. The Android resource name of the password UI element. For example, in Java: R.string.foo in xml: @string/foo Only the "foo" part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html */
|
|
141
|
+
passwordResourceName?: string;
|
|
142
|
+
/** Required. The Android resource name of the username UI element. For example, in Java: R.string.foo in xml: @string/foo Only the "foo" part is needed. Reference doc: https://developer.android.com/guide/topics/resources/accessing-resources.html */
|
|
143
|
+
usernameResourceName?: string;
|
|
144
|
+
}
|
|
145
|
+
interface GoogleFirebaseAppdistroV1alphaProvisionAppResponse {}
|
|
146
|
+
interface GoogleFirebaseAppdistroV1alphaRelease {
|
|
147
|
+
/** Release build version */
|
|
148
|
+
buildVersion?: string;
|
|
149
|
+
/** Release version */
|
|
150
|
+
displayVersion?: string;
|
|
151
|
+
/** Timestamp when the release was created */
|
|
152
|
+
distributedAt?: string;
|
|
153
|
+
/** Release Id */
|
|
154
|
+
id?: string;
|
|
155
|
+
/** Instance id of the release */
|
|
156
|
+
instanceId?: string;
|
|
157
|
+
/** Last activity timestamp */
|
|
158
|
+
lastActivityAt?: string;
|
|
159
|
+
/** Number of testers who have open invitations for the release */
|
|
160
|
+
openInvitationCount?: number;
|
|
161
|
+
/** unused. */
|
|
162
|
+
receivedAt?: string;
|
|
163
|
+
/** Release notes summary */
|
|
164
|
+
releaseNotesSummary?: string;
|
|
165
|
+
/** Count of testers added to the release */
|
|
166
|
+
testerCount?: number;
|
|
167
|
+
/** Number of testers who have installed the release */
|
|
168
|
+
testerWithInstallCount?: number;
|
|
169
|
+
}
|
|
170
|
+
interface GoogleFirebaseAppdistroV1alphaReleaseNotes {
|
|
171
|
+
releaseNotes?: string;
|
|
172
|
+
}
|
|
173
|
+
interface GoogleFirebaseAppdistroV1alphaReleaseTest {
|
|
174
|
+
/** Output only. Timestamp when the test was run. */
|
|
175
|
+
createTime?: string;
|
|
176
|
+
/** Required. The results of the test on each device. */
|
|
177
|
+
deviceExecutions?: GoogleFirebaseAppdistroV1alphaDeviceExecution[];
|
|
178
|
+
/** Optional. Input only. Login credentials for the test. Input only. */
|
|
179
|
+
loginCredential?: GoogleFirebaseAppdistroV1alphaLoginCredential;
|
|
180
|
+
/** The name of the release test resource. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}/tests/{test_id}` */
|
|
181
|
+
name?: string;
|
|
182
|
+
}
|
|
183
|
+
interface GoogleFirebaseAppdistroV1alphaRoboCrawler {
|
|
184
|
+
/** Optional. Login credential for automated tests */
|
|
185
|
+
loginCredential?: GoogleFirebaseAppdistroV1alphaLoginCredential;
|
|
186
|
+
}
|
|
187
|
+
interface GoogleFirebaseAppdistroV1alphaRoboStats {
|
|
188
|
+
/** Output only. Number of actions that crawler performed. */
|
|
189
|
+
actionsPerformed?: number;
|
|
190
|
+
/** Output only. Duration of crawl. */
|
|
191
|
+
crawlDuration?: string;
|
|
192
|
+
/** Output only. Number of distinct screens visited. */
|
|
193
|
+
distinctVisitedScreens?: number;
|
|
194
|
+
/** Output only. Whether the main activity crawl timed out. */
|
|
195
|
+
mainActivityCrawlTimedOut?: boolean;
|
|
196
|
+
}
|
|
197
|
+
interface GoogleFirebaseAppdistroV1alphaTestConfig {
|
|
198
|
+
/** Identifier. The name of the test configuration resource. Format: `projects/{project_number}/apps/{app_id}/testConfig` */
|
|
199
|
+
name?: string;
|
|
200
|
+
/** Optional. Configuration for Robo crawler */
|
|
201
|
+
roboCrawler?: GoogleFirebaseAppdistroV1alphaRoboCrawler;
|
|
202
|
+
/** Optional. Tests will be run on this list of devices */
|
|
203
|
+
testDevices?: GoogleFirebaseAppdistroV1alphaTestDevice[];
|
|
204
|
+
}
|
|
205
|
+
interface GoogleFirebaseAppdistroV1alphaTestDevice {
|
|
206
|
+
/** Optional. The locale of the device (e.g. "en_US" for US English) during the test. */
|
|
207
|
+
locale?: string;
|
|
208
|
+
/** Required. The device model. */
|
|
209
|
+
model?: string;
|
|
210
|
+
/** Optional. The orientation of the device during the test. */
|
|
211
|
+
orientation?: string;
|
|
212
|
+
/** Required. The version of the device (API level on Android). */
|
|
213
|
+
version?: string;
|
|
214
|
+
}
|
|
215
|
+
interface GoogleFirebaseAppdistroV1alphaTesterUdid {
|
|
216
|
+
/** The name of the tester's device */
|
|
217
|
+
name?: string;
|
|
218
|
+
/** The platform of the tester's device */
|
|
219
|
+
platform?: string;
|
|
220
|
+
/** The UDID of the tester's device */
|
|
221
|
+
udid?: string;
|
|
222
|
+
}
|
|
223
|
+
interface GoogleFirebaseAppdistroV1Release {
|
|
224
|
+
/** Output only. A signed link (which expires in one hour) to directly download the app binary (IPA/APK/AAB) file. */
|
|
225
|
+
binaryDownloadUri?: string;
|
|
226
|
+
/** Output only. Build version of the release. For an Android release, the build version is the `versionCode`. For an iOS release, the build version is the `CFBundleVersion`. */
|
|
227
|
+
buildVersion?: string;
|
|
228
|
+
/** Output only. The time the release was created. */
|
|
229
|
+
createTime?: string;
|
|
230
|
+
/** Output only. Display version of the release. For an Android release, the display version is the `versionName`. For an iOS release, the display version is the `CFBundleShortVersionString`. */
|
|
231
|
+
displayVersion?: string;
|
|
232
|
+
/** Output only. A link to the Firebase console displaying a single release. */
|
|
233
|
+
firebaseConsoleUri?: string;
|
|
234
|
+
/** The name of the release resource. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}` */
|
|
235
|
+
name?: string;
|
|
236
|
+
/** Notes of the release. */
|
|
237
|
+
releaseNotes?: GoogleFirebaseAppdistroV1ReleaseNotes;
|
|
238
|
+
/** Output only. A link to the release in the tester web clip or Android app that lets testers (which were granted access to the app) view release notes and install the app onto their devices. */
|
|
239
|
+
testingUri?: string;
|
|
240
|
+
}
|
|
241
|
+
interface GoogleFirebaseAppdistroV1ReleaseNotes {
|
|
242
|
+
/** The text of the release notes. */
|
|
243
|
+
text?: string;
|
|
244
|
+
}
|
|
245
|
+
interface GoogleFirebaseAppdistroV1UploadReleaseMetadata {}
|
|
246
|
+
interface GoogleFirebaseAppdistroV1UploadReleaseResponse {
|
|
247
|
+
/** Release associated with the uploaded binary. */
|
|
248
|
+
release?: GoogleFirebaseAppdistroV1Release;
|
|
249
|
+
/** Result of upload release. */
|
|
250
|
+
result?: string;
|
|
251
|
+
}
|
|
252
|
+
interface Release_by_hashResource {
|
|
253
|
+
/** GET Release by binary upload hash */
|
|
254
|
+
get(request?: {
|
|
255
|
+
/** V1 error format. */
|
|
256
|
+
'$.xgafv'?: string;
|
|
257
|
+
/** OAuth access token. */
|
|
258
|
+
access_token?: string;
|
|
259
|
+
/** Data format for response. */
|
|
260
|
+
alt?: string;
|
|
261
|
+
/** JSONP */
|
|
262
|
+
callback?: string;
|
|
263
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
264
|
+
fields?: string;
|
|
265
|
+
/** 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. */
|
|
266
|
+
key?: string;
|
|
267
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
268
|
+
mobilesdkAppId: string;
|
|
269
|
+
/** OAuth 2.0 token for the current user. */
|
|
270
|
+
oauth_token?: string;
|
|
271
|
+
/** Returns response with indentations and line breaks. */
|
|
272
|
+
prettyPrint?: boolean;
|
|
273
|
+
/** 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. */
|
|
274
|
+
quotaUser?: string;
|
|
275
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
276
|
+
upload_protocol?: string;
|
|
277
|
+
/** The hash for the upload */
|
|
278
|
+
uploadHash: string;
|
|
279
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
280
|
+
uploadType?: string;
|
|
281
|
+
}): Request<GoogleFirebaseAppdistroV1alphaGetReleaseByUploadHashResponse>;
|
|
282
|
+
}
|
|
283
|
+
interface NotesResource {
|
|
284
|
+
/** Create release notes on a release. */
|
|
285
|
+
create(request: {
|
|
286
|
+
/** V1 error format. */
|
|
287
|
+
'$.xgafv'?: string;
|
|
288
|
+
/** OAuth access token. */
|
|
289
|
+
access_token?: string;
|
|
290
|
+
/** Data format for response. */
|
|
291
|
+
alt?: string;
|
|
292
|
+
/** JSONP */
|
|
293
|
+
callback?: string;
|
|
294
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
295
|
+
fields?: string;
|
|
296
|
+
/** 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. */
|
|
297
|
+
key?: string;
|
|
298
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
299
|
+
mobilesdkAppId: string;
|
|
300
|
+
/** OAuth 2.0 token for the current user. */
|
|
301
|
+
oauth_token?: string;
|
|
302
|
+
/** Returns response with indentations and line breaks. */
|
|
303
|
+
prettyPrint?: boolean;
|
|
304
|
+
/** 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. */
|
|
305
|
+
quotaUser?: string;
|
|
306
|
+
/** Release identifier */
|
|
307
|
+
releaseId: string;
|
|
308
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
309
|
+
upload_protocol?: string;
|
|
310
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
311
|
+
uploadType?: string;
|
|
312
|
+
/** Request body */
|
|
313
|
+
resource: GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest;
|
|
314
|
+
}): Request<{}>;
|
|
315
|
+
create(
|
|
316
|
+
request: {
|
|
317
|
+
/** V1 error format. */
|
|
318
|
+
'$.xgafv'?: string;
|
|
319
|
+
/** OAuth access token. */
|
|
320
|
+
access_token?: string;
|
|
321
|
+
/** Data format for response. */
|
|
322
|
+
alt?: string;
|
|
323
|
+
/** JSONP */
|
|
324
|
+
callback?: string;
|
|
325
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
326
|
+
fields?: string;
|
|
327
|
+
/** 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. */
|
|
328
|
+
key?: string;
|
|
329
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
330
|
+
mobilesdkAppId: string;
|
|
331
|
+
/** OAuth 2.0 token for the current user. */
|
|
332
|
+
oauth_token?: string;
|
|
333
|
+
/** Returns response with indentations and line breaks. */
|
|
334
|
+
prettyPrint?: boolean;
|
|
335
|
+
/** 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. */
|
|
336
|
+
quotaUser?: string;
|
|
337
|
+
/** Release identifier */
|
|
338
|
+
releaseId: string;
|
|
339
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
340
|
+
upload_protocol?: string;
|
|
341
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
342
|
+
uploadType?: string;
|
|
343
|
+
},
|
|
344
|
+
body: GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest
|
|
345
|
+
): Request<{}>;
|
|
346
|
+
}
|
|
347
|
+
interface ReleasesResource {
|
|
348
|
+
/** Enable access on a release for testers. */
|
|
349
|
+
enable_access(request: {
|
|
350
|
+
/** V1 error format. */
|
|
351
|
+
'$.xgafv'?: string;
|
|
352
|
+
/** OAuth access token. */
|
|
353
|
+
access_token?: string;
|
|
354
|
+
/** Data format for response. */
|
|
355
|
+
alt?: string;
|
|
356
|
+
/** JSONP */
|
|
357
|
+
callback?: string;
|
|
358
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
359
|
+
fields?: string;
|
|
360
|
+
/** 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. */
|
|
361
|
+
key?: string;
|
|
362
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
363
|
+
mobilesdkAppId: string;
|
|
364
|
+
/** OAuth 2.0 token for the current user. */
|
|
365
|
+
oauth_token?: string;
|
|
366
|
+
/** Returns response with indentations and line breaks. */
|
|
367
|
+
prettyPrint?: boolean;
|
|
368
|
+
/** 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. */
|
|
369
|
+
quotaUser?: string;
|
|
370
|
+
/** Release identifier */
|
|
371
|
+
releaseId: string;
|
|
372
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
373
|
+
upload_protocol?: string;
|
|
374
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
375
|
+
uploadType?: string;
|
|
376
|
+
/** Request body */
|
|
377
|
+
resource: GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest;
|
|
378
|
+
}): Request<{}>;
|
|
379
|
+
enable_access(
|
|
380
|
+
request: {
|
|
381
|
+
/** V1 error format. */
|
|
382
|
+
'$.xgafv'?: string;
|
|
383
|
+
/** OAuth access token. */
|
|
384
|
+
access_token?: string;
|
|
385
|
+
/** Data format for response. */
|
|
386
|
+
alt?: string;
|
|
387
|
+
/** JSONP */
|
|
388
|
+
callback?: string;
|
|
389
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
390
|
+
fields?: string;
|
|
391
|
+
/** 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. */
|
|
392
|
+
key?: string;
|
|
393
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
394
|
+
mobilesdkAppId: string;
|
|
395
|
+
/** OAuth 2.0 token for the current user. */
|
|
396
|
+
oauth_token?: string;
|
|
397
|
+
/** Returns response with indentations and line breaks. */
|
|
398
|
+
prettyPrint?: boolean;
|
|
399
|
+
/** 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. */
|
|
400
|
+
quotaUser?: string;
|
|
401
|
+
/** Release identifier */
|
|
402
|
+
releaseId: string;
|
|
403
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
404
|
+
upload_protocol?: string;
|
|
405
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
406
|
+
uploadType?: string;
|
|
407
|
+
},
|
|
408
|
+
body: GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest
|
|
409
|
+
): Request<{}>;
|
|
410
|
+
notes: NotesResource;
|
|
411
|
+
}
|
|
412
|
+
interface TestersResource {
|
|
413
|
+
/** Get UDIDs of tester iOS devices in a project */
|
|
414
|
+
getTesterUdids(request?: {
|
|
415
|
+
/** V1 error format. */
|
|
416
|
+
'$.xgafv'?: string;
|
|
417
|
+
/** OAuth access token. */
|
|
418
|
+
access_token?: string;
|
|
419
|
+
/** Data format for response. */
|
|
420
|
+
alt?: string;
|
|
421
|
+
/** JSONP */
|
|
422
|
+
callback?: string;
|
|
423
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
424
|
+
fields?: string;
|
|
425
|
+
/** 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. */
|
|
426
|
+
key?: string;
|
|
427
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
428
|
+
mobilesdkAppId: string;
|
|
429
|
+
/** OAuth 2.0 token for the current user. */
|
|
430
|
+
oauth_token?: string;
|
|
431
|
+
/** Returns response with indentations and line breaks. */
|
|
432
|
+
prettyPrint?: boolean;
|
|
433
|
+
/** 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. */
|
|
434
|
+
quotaUser?: string;
|
|
435
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
436
|
+
upload_protocol?: string;
|
|
437
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
438
|
+
uploadType?: string;
|
|
439
|
+
}): Request<GoogleFirebaseAppdistroV1alphaGetTesterUdidsResponse>;
|
|
440
|
+
}
|
|
441
|
+
interface Upload_statusResource {
|
|
442
|
+
/** GET Binary upload status by token */
|
|
443
|
+
get(request?: {
|
|
444
|
+
/** V1 error format. */
|
|
445
|
+
'$.xgafv'?: string;
|
|
446
|
+
/** OAuth access token. */
|
|
447
|
+
access_token?: string;
|
|
448
|
+
/** Data format for response. */
|
|
449
|
+
alt?: string;
|
|
450
|
+
/** JSONP */
|
|
451
|
+
callback?: string;
|
|
452
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
453
|
+
fields?: string;
|
|
454
|
+
/** 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. */
|
|
455
|
+
key?: string;
|
|
456
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
457
|
+
mobilesdkAppId: string;
|
|
458
|
+
/** OAuth 2.0 token for the current user. */
|
|
459
|
+
oauth_token?: string;
|
|
460
|
+
/** Returns response with indentations and line breaks. */
|
|
461
|
+
prettyPrint?: boolean;
|
|
462
|
+
/** 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. */
|
|
463
|
+
quotaUser?: string;
|
|
464
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
465
|
+
upload_protocol?: string;
|
|
466
|
+
/** The token for the upload */
|
|
467
|
+
uploadToken: string;
|
|
468
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
469
|
+
uploadType?: string;
|
|
470
|
+
}): Request<GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse>;
|
|
471
|
+
}
|
|
472
|
+
interface AppsResource {
|
|
473
|
+
/** Get the app, if it exists */
|
|
474
|
+
get(request?: {
|
|
475
|
+
/** V1 error format. */
|
|
476
|
+
'$.xgafv'?: string;
|
|
477
|
+
/** OAuth access token. */
|
|
478
|
+
access_token?: string;
|
|
479
|
+
/** Data format for response. */
|
|
480
|
+
alt?: string;
|
|
481
|
+
/** App view. When unset or set to BASIC, returns an App with everything set except for aab_state. When set to FULL, returns an App with aab_state set. */
|
|
482
|
+
appView?: string;
|
|
483
|
+
/** JSONP */
|
|
484
|
+
callback?: string;
|
|
485
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
486
|
+
fields?: string;
|
|
487
|
+
/** 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. */
|
|
488
|
+
key?: string;
|
|
489
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
490
|
+
mobilesdkAppId: string;
|
|
491
|
+
/** OAuth 2.0 token for the current user. */
|
|
492
|
+
oauth_token?: string;
|
|
493
|
+
/** Returns response with indentations and line breaks. */
|
|
494
|
+
prettyPrint?: boolean;
|
|
495
|
+
/** 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. */
|
|
496
|
+
quotaUser?: string;
|
|
497
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
498
|
+
upload_protocol?: string;
|
|
499
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
500
|
+
uploadType?: string;
|
|
501
|
+
}): Request<GoogleFirebaseAppdistroV1alphaApp>;
|
|
502
|
+
/** Get a JWT token */
|
|
503
|
+
getJwt(request?: {
|
|
504
|
+
/** V1 error format. */
|
|
505
|
+
'$.xgafv'?: string;
|
|
506
|
+
/** OAuth access token. */
|
|
507
|
+
access_token?: string;
|
|
508
|
+
/** Data format for response. */
|
|
509
|
+
alt?: string;
|
|
510
|
+
/** JSONP */
|
|
511
|
+
callback?: string;
|
|
512
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
513
|
+
fields?: string;
|
|
514
|
+
/** 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. */
|
|
515
|
+
key?: string;
|
|
516
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
517
|
+
mobilesdkAppId: string;
|
|
518
|
+
/** OAuth 2.0 token for the current user. */
|
|
519
|
+
oauth_token?: string;
|
|
520
|
+
/** Returns response with indentations and line breaks. */
|
|
521
|
+
prettyPrint?: boolean;
|
|
522
|
+
/** 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. */
|
|
523
|
+
quotaUser?: string;
|
|
524
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
525
|
+
upload_protocol?: string;
|
|
526
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
527
|
+
uploadType?: string;
|
|
528
|
+
}): Request<GoogleFirebaseAppdistroV1alphaJwt>;
|
|
529
|
+
/** Provision app distribution for an existing Firebase app, enabling it to subsequently be used by appdistro. */
|
|
530
|
+
provisionApp(request?: {
|
|
531
|
+
/** V1 error format. */
|
|
532
|
+
'$.xgafv'?: string;
|
|
533
|
+
/** OAuth access token. */
|
|
534
|
+
access_token?: string;
|
|
535
|
+
/** Data format for response. */
|
|
536
|
+
alt?: string;
|
|
537
|
+
/** JSONP */
|
|
538
|
+
callback?: string;
|
|
539
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
540
|
+
fields?: string;
|
|
541
|
+
/** 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. */
|
|
542
|
+
key?: string;
|
|
543
|
+
/** Unique id for a Firebase app of the format: {version}:{project_number}:{platform}:{hash(bundle_id)} Example: 1:581234567376:android:aa0a3c7b135e90289 */
|
|
544
|
+
mobilesdkAppId: string;
|
|
545
|
+
/** OAuth 2.0 token for the current user. */
|
|
546
|
+
oauth_token?: string;
|
|
547
|
+
/** Returns response with indentations and line breaks. */
|
|
548
|
+
prettyPrint?: boolean;
|
|
549
|
+
/** 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. */
|
|
550
|
+
quotaUser?: string;
|
|
551
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
552
|
+
upload_protocol?: string;
|
|
553
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
554
|
+
uploadType?: string;
|
|
555
|
+
}): Request<{}>;
|
|
556
|
+
release_by_hash: Release_by_hashResource;
|
|
557
|
+
releases: ReleasesResource;
|
|
558
|
+
testers: TestersResource;
|
|
559
|
+
upload_status: Upload_statusResource;
|
|
560
|
+
}
|
|
561
|
+
interface TestsResource {
|
|
562
|
+
/** Run automated test(s) on release. */
|
|
563
|
+
create(request: {
|
|
564
|
+
/** V1 error format. */
|
|
565
|
+
'$.xgafv'?: string;
|
|
566
|
+
/** OAuth access token. */
|
|
567
|
+
access_token?: string;
|
|
568
|
+
/** Data format for response. */
|
|
569
|
+
alt?: string;
|
|
570
|
+
/** JSONP */
|
|
571
|
+
callback?: string;
|
|
572
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
573
|
+
fields?: string;
|
|
574
|
+
/** 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. */
|
|
575
|
+
key?: string;
|
|
576
|
+
/** OAuth 2.0 token for the current user. */
|
|
577
|
+
oauth_token?: string;
|
|
578
|
+
/** Required. The name of the release resource, which is the parent of the test Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}` */
|
|
579
|
+
parent: string;
|
|
580
|
+
/** Returns response with indentations and line breaks. */
|
|
581
|
+
prettyPrint?: boolean;
|
|
582
|
+
/** 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. */
|
|
583
|
+
quotaUser?: string;
|
|
584
|
+
/** Optional. The ID to use for the test, which will become the final component of the tests's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. If it is not provided one will be automatically generated. */
|
|
585
|
+
releaseTestId?: string;
|
|
586
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
587
|
+
upload_protocol?: string;
|
|
588
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
589
|
+
uploadType?: string;
|
|
590
|
+
/** Request body */
|
|
591
|
+
resource: GoogleFirebaseAppdistroV1alphaReleaseTest;
|
|
592
|
+
}): Request<GoogleFirebaseAppdistroV1alphaReleaseTest>;
|
|
593
|
+
create(
|
|
594
|
+
request: {
|
|
595
|
+
/** V1 error format. */
|
|
596
|
+
'$.xgafv'?: string;
|
|
597
|
+
/** OAuth access token. */
|
|
598
|
+
access_token?: string;
|
|
599
|
+
/** Data format for response. */
|
|
600
|
+
alt?: string;
|
|
601
|
+
/** JSONP */
|
|
602
|
+
callback?: string;
|
|
603
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
604
|
+
fields?: string;
|
|
605
|
+
/** 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. */
|
|
606
|
+
key?: string;
|
|
607
|
+
/** OAuth 2.0 token for the current user. */
|
|
608
|
+
oauth_token?: string;
|
|
609
|
+
/** Required. The name of the release resource, which is the parent of the test Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}` */
|
|
610
|
+
parent: string;
|
|
611
|
+
/** Returns response with indentations and line breaks. */
|
|
612
|
+
prettyPrint?: boolean;
|
|
613
|
+
/** 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. */
|
|
614
|
+
quotaUser?: string;
|
|
615
|
+
/** Optional. The ID to use for the test, which will become the final component of the tests's resource name. This value should be 4-63 characters, and valid characters are /a-z-/. If it is not provided one will be automatically generated. */
|
|
616
|
+
releaseTestId?: string;
|
|
617
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
618
|
+
upload_protocol?: string;
|
|
619
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
620
|
+
uploadType?: string;
|
|
621
|
+
},
|
|
622
|
+
body: GoogleFirebaseAppdistroV1alphaReleaseTest
|
|
623
|
+
): Request<GoogleFirebaseAppdistroV1alphaReleaseTest>;
|
|
624
|
+
/** Get results for automated test run on release. */
|
|
625
|
+
get(request?: {
|
|
626
|
+
/** V1 error format. */
|
|
627
|
+
'$.xgafv'?: string;
|
|
628
|
+
/** OAuth access token. */
|
|
629
|
+
access_token?: string;
|
|
630
|
+
/** Data format for response. */
|
|
631
|
+
alt?: string;
|
|
632
|
+
/** JSONP */
|
|
633
|
+
callback?: string;
|
|
634
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
635
|
+
fields?: string;
|
|
636
|
+
/** 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. */
|
|
637
|
+
key?: string;
|
|
638
|
+
/** Required. The name of the release test resource. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}/tests/{test_id}` */
|
|
639
|
+
name: string;
|
|
640
|
+
/** OAuth 2.0 token for the current user. */
|
|
641
|
+
oauth_token?: string;
|
|
642
|
+
/** Returns response with indentations and line breaks. */
|
|
643
|
+
prettyPrint?: boolean;
|
|
644
|
+
/** 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. */
|
|
645
|
+
quotaUser?: string;
|
|
646
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
647
|
+
upload_protocol?: string;
|
|
648
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
649
|
+
uploadType?: string;
|
|
650
|
+
}): Request<GoogleFirebaseAppdistroV1alphaReleaseTest>;
|
|
651
|
+
/** List results for automated tests run on release. */
|
|
652
|
+
list(request?: {
|
|
653
|
+
/** V1 error format. */
|
|
654
|
+
'$.xgafv'?: string;
|
|
655
|
+
/** OAuth access token. */
|
|
656
|
+
access_token?: string;
|
|
657
|
+
/** Data format for response. */
|
|
658
|
+
alt?: string;
|
|
659
|
+
/** JSONP */
|
|
660
|
+
callback?: string;
|
|
661
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
662
|
+
fields?: string;
|
|
663
|
+
/** 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. */
|
|
664
|
+
key?: string;
|
|
665
|
+
/** OAuth 2.0 token for the current user. */
|
|
666
|
+
oauth_token?: string;
|
|
667
|
+
/** Optional. The maximum number of tests to return. The service may return fewer than this value. */
|
|
668
|
+
pageSize?: number;
|
|
669
|
+
/** Optional. A page token, received from a previous `ListReleaseTests` call. Provide this to retrieve the subsequent page. */
|
|
670
|
+
pageToken?: string;
|
|
671
|
+
/** Required. The name of the release resource, which is the parent of the tests Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}` */
|
|
672
|
+
parent: string;
|
|
673
|
+
/** Returns response with indentations and line breaks. */
|
|
674
|
+
prettyPrint?: boolean;
|
|
675
|
+
/** 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. */
|
|
676
|
+
quotaUser?: string;
|
|
677
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
678
|
+
upload_protocol?: string;
|
|
679
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
680
|
+
uploadType?: string;
|
|
681
|
+
}): Request<GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse>;
|
|
682
|
+
}
|
|
683
|
+
interface ReleasesResource {
|
|
684
|
+
tests: TestsResource;
|
|
685
|
+
}
|
|
686
|
+
interface AppsResource {
|
|
687
|
+
/** Gets configuration for automated tests. */
|
|
688
|
+
getTestConfig(request?: {
|
|
689
|
+
/** V1 error format. */
|
|
690
|
+
'$.xgafv'?: string;
|
|
691
|
+
/** OAuth access token. */
|
|
692
|
+
access_token?: string;
|
|
693
|
+
/** Data format for response. */
|
|
694
|
+
alt?: string;
|
|
695
|
+
/** JSONP */
|
|
696
|
+
callback?: string;
|
|
697
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
698
|
+
fields?: string;
|
|
699
|
+
/** 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. */
|
|
700
|
+
key?: string;
|
|
701
|
+
/** Required. The name of the `TestConfig` resource to retrieve. Format: `projects/{project_number}/apps/{app_id}/testConfig` */
|
|
702
|
+
name: string;
|
|
703
|
+
/** OAuth 2.0 token for the current user. */
|
|
704
|
+
oauth_token?: string;
|
|
705
|
+
/** Returns response with indentations and line breaks. */
|
|
706
|
+
prettyPrint?: boolean;
|
|
707
|
+
/** 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. */
|
|
708
|
+
quotaUser?: string;
|
|
709
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
710
|
+
upload_protocol?: string;
|
|
711
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
712
|
+
uploadType?: string;
|
|
713
|
+
}): Request<GoogleFirebaseAppdistroV1alphaTestConfig>;
|
|
714
|
+
/** Updates a release. */
|
|
715
|
+
updateTestConfig(request: {
|
|
716
|
+
/** V1 error format. */
|
|
717
|
+
'$.xgafv'?: string;
|
|
718
|
+
/** OAuth access token. */
|
|
719
|
+
access_token?: string;
|
|
720
|
+
/** Data format for response. */
|
|
721
|
+
alt?: string;
|
|
722
|
+
/** JSONP */
|
|
723
|
+
callback?: string;
|
|
724
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
725
|
+
fields?: string;
|
|
726
|
+
/** 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. */
|
|
727
|
+
key?: string;
|
|
728
|
+
/** Identifier. The name of the test configuration resource. Format: `projects/{project_number}/apps/{app_id}/testConfig` */
|
|
729
|
+
name: string;
|
|
730
|
+
/** OAuth 2.0 token for the current user. */
|
|
731
|
+
oauth_token?: string;
|
|
732
|
+
/** Returns response with indentations and line breaks. */
|
|
733
|
+
prettyPrint?: boolean;
|
|
734
|
+
/** 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. */
|
|
735
|
+
quotaUser?: string;
|
|
736
|
+
/** Optional. The list of fields to update. */
|
|
737
|
+
updateMask?: string;
|
|
738
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
739
|
+
upload_protocol?: string;
|
|
740
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
741
|
+
uploadType?: string;
|
|
742
|
+
/** Request body */
|
|
743
|
+
resource: GoogleFirebaseAppdistroV1alphaTestConfig;
|
|
744
|
+
}): Request<GoogleFirebaseAppdistroV1alphaTestConfig>;
|
|
745
|
+
updateTestConfig(
|
|
746
|
+
request: {
|
|
747
|
+
/** V1 error format. */
|
|
748
|
+
'$.xgafv'?: string;
|
|
749
|
+
/** OAuth access token. */
|
|
750
|
+
access_token?: string;
|
|
751
|
+
/** Data format for response. */
|
|
752
|
+
alt?: string;
|
|
753
|
+
/** JSONP */
|
|
754
|
+
callback?: string;
|
|
755
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
756
|
+
fields?: string;
|
|
757
|
+
/** 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. */
|
|
758
|
+
key?: string;
|
|
759
|
+
/** Identifier. The name of the test configuration resource. Format: `projects/{project_number}/apps/{app_id}/testConfig` */
|
|
760
|
+
name: string;
|
|
761
|
+
/** OAuth 2.0 token for the current user. */
|
|
762
|
+
oauth_token?: string;
|
|
763
|
+
/** Returns response with indentations and line breaks. */
|
|
764
|
+
prettyPrint?: boolean;
|
|
765
|
+
/** 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. */
|
|
766
|
+
quotaUser?: string;
|
|
767
|
+
/** Optional. The list of fields to update. */
|
|
768
|
+
updateMask?: string;
|
|
769
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
770
|
+
upload_protocol?: string;
|
|
771
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
772
|
+
uploadType?: string;
|
|
773
|
+
},
|
|
774
|
+
body: GoogleFirebaseAppdistroV1alphaTestConfig
|
|
775
|
+
): Request<GoogleFirebaseAppdistroV1alphaTestConfig>;
|
|
776
|
+
releases: ReleasesResource;
|
|
777
|
+
}
|
|
778
|
+
interface ProjectsResource {
|
|
779
|
+
apps: AppsResource;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
const apps: AppsResource;
|
|
783
|
+
|
|
784
|
+
const projects: ProjectsResource;
|
|
785
|
+
}
|
|
786
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxim_mazurok/gapi.client.firebaseappdistribution-v1alpha",
|
|
3
|
+
"version": "0.0.20231207",
|
|
4
|
+
"description": "TypeScript typings for Firebase App Distribution API v1alpha",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Maxim Mazurok",
|
|
12
|
+
"email": "maxim@mazurok.com",
|
|
13
|
+
"url": "https://maxim.mazurok.com"
|
|
14
|
+
},
|
|
15
|
+
"types": "index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@types/gapi.client": "*",
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# TypeScript typings for Firebase App Distribution API v1alpha
|
|
2
|
+
|
|
3
|
+
For detailed description please check [documentation](https://firebase.google.com/products/app-distribution).
|
|
4
|
+
|
|
5
|
+
## Installing
|
|
6
|
+
|
|
7
|
+
Install typings for Firebase App Distribution API:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm install @types/gapi.client.firebaseappdistribution-v1alpha --save-dev
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
You need to initialize Google API client in your code:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
gapi.load('client', () => {
|
|
19
|
+
// now we can use gapi.client
|
|
20
|
+
// ...
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then load api client wrapper:
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
gapi.client.load(
|
|
28
|
+
'https://firebaseappdistribution.googleapis.com/$discovery/rest?version=v1alpha',
|
|
29
|
+
() => {
|
|
30
|
+
// now we can use:
|
|
31
|
+
// gapi.client.firebaseappdistribution
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
|
|
38
|
+
gapi.client.load('firebaseappdistribution', 'v1alpha', () => {
|
|
39
|
+
// now we can use:
|
|
40
|
+
// gapi.client.firebaseappdistribution
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Don't forget to authenticate your client before sending any request to resources:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
// declare client_id registered in Google Developers Console
|
|
48
|
+
var client_id = '',
|
|
49
|
+
scope = [
|
|
50
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
51
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
52
|
+
],
|
|
53
|
+
immediate = true;
|
|
54
|
+
// ...
|
|
55
|
+
|
|
56
|
+
gapi.auth.authorize(
|
|
57
|
+
{client_id: client_id, scope: scope, immediate: immediate},
|
|
58
|
+
authResult => {
|
|
59
|
+
if (authResult && !authResult.error) {
|
|
60
|
+
/* handle successful authorization */
|
|
61
|
+
} else {
|
|
62
|
+
/* handle authorization error */
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
After that you can use Firebase App Distribution API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
/*
|
|
72
|
+
Get the app, if it exists
|
|
73
|
+
*/
|
|
74
|
+
await gapi.client.firebaseappdistribution.apps.get({
|
|
75
|
+
mobilesdkAppId: 'mobilesdkAppId',
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
Get a JWT token
|
|
80
|
+
*/
|
|
81
|
+
await gapi.client.firebaseappdistribution.apps.getJwt({
|
|
82
|
+
mobilesdkAppId: 'mobilesdkAppId',
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
Provision app distribution for an existing Firebase app, enabling it to subsequently be used by appdistro.
|
|
87
|
+
*/
|
|
88
|
+
await gapi.client.firebaseappdistribution.apps.provisionApp({
|
|
89
|
+
mobilesdkAppId: 'mobilesdkAppId',
|
|
90
|
+
});
|
|
91
|
+
```
|