@maxim_mazurok/gapi.client.firebasedynamiclinks-v1 0.0.20231122 → 0.0.20231130

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 CHANGED
@@ -9,797 +9,549 @@
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://firebasedynamiclinks.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20231122
12
+ // Revision: 20231130
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Firebase Dynamic Links API v1 */
18
- function load(urlOrObject: "https://firebasedynamiclinks.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "firebasedynamiclinks", version: "v1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "firebasedynamiclinks", version: "v1", callback: () => any): void;
17
+ /** Load Firebase Dynamic Links API v1 */
18
+ function load(
19
+ urlOrObject: 'https://firebasedynamiclinks.googleapis.com/$discovery/rest?version=v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'firebasedynamiclinks', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(
25
+ name: 'firebasedynamiclinks',
26
+ version: 'v1',
27
+ callback: () => any
28
+ ): void;
23
29
 
24
- namespace firebasedynamiclinks {
25
- interface AnalyticsInfo {
26
- /** Google Play Campaign Measurements. */
27
- googlePlayAnalytics?:
28
- GooglePlayAnalytics;
29
- /** iTunes Connect App Analytics. */
30
- itunesConnectAnalytics?:
31
- ITunesConnectAnalytics;
32
- }
33
- interface AndroidInfo {
34
- /** Link to open on Android if the app is not installed. */
35
- androidFallbackLink?:
36
- string;
37
- /** If specified, this overrides the ‘link’ parameter on Android. */
38
- androidLink?:
39
- string;
40
- /** Minimum version code for the Android app. If the installed app’s version code is lower, then the user is taken to the Play Store. */
41
- androidMinPackageVersionCode?:
42
- string;
43
- /** Android package name of the app. */
44
- androidPackageName?:
45
- string;
46
- }
47
- interface CreateManagedShortLinkRequest {
48
- /** Information about the Dynamic Link to be shortened. [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */
49
- dynamicLinkInfo?:
50
- DynamicLinkInfo;
51
- /**
52
- * Full long Dynamic Link URL with desired query parameters specified. For example, "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample", [Learn
53
- * more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener).
54
- */
55
- longDynamicLink?:
56
- string;
57
- /**
58
- * Link name to associate with the link. It's used for marketer to identify manually-created links in the Firebase console (https://console.firebase.google.com/). Links must be named
59
- * to be tracked.
60
- */
61
- name?:
62
- string;
63
- /** Google SDK version. Version takes the form "$major.$minor.$patch" */
64
- sdkVersion?:
65
- string;
66
- /** Short Dynamic Link suffix. Optional. */
67
- suffix?:
68
- Suffix;
69
- }
70
- interface CreateManagedShortLinkResponse {
71
- /** Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */
72
- managedShortLink?:
73
- ManagedShortLink;
74
- /** Preview link to show the link flow chart. (debug info.) */
75
- previewLink?:
76
- string;
77
- /** Information about potential warnings on link creation. */
78
- warning?:
79
- DynamicLinkWarning[];
80
- }
81
- interface CreateShortDynamicLinkRequest {
82
- /** Information about the Dynamic Link to be shortened. [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */
83
- dynamicLinkInfo?:
84
- DynamicLinkInfo;
85
- /**
86
- * Full long Dynamic Link URL with desired query parameters specified. For example, "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample", [Learn
87
- * more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener).
88
- */
89
- longDynamicLink?:
90
- string;
91
- /** Google SDK version. Version takes the form "$major.$minor.$patch" */
92
- sdkVersion?:
93
- string;
94
- /** Short Dynamic Link suffix. Optional. */
95
- suffix?:
96
- Suffix;
97
- }
98
- interface CreateShortDynamicLinkResponse {
99
- /** Preview link to show the link flow chart. (debug info.) */
100
- previewLink?:
101
- string;
102
- /** Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */
103
- shortLink?:
104
- string;
105
- /** Information about potential warnings on link creation. */
106
- warning?:
107
- DynamicLinkWarning[];
108
- }
109
- interface DesktopInfo {
110
- /** Link to open on desktop. */
111
- desktopFallbackLink?:
112
- string;
113
- }
114
- interface DeviceInfo {
115
- /** Device model name. */
116
- deviceModelName?:
117
- string;
118
- /** Device language code setting. */
119
- languageCode?:
120
- string;
121
- /** Device language code setting obtained by executing JavaScript code in WebView. */
122
- languageCodeFromWebview?:
123
- string;
124
- /**
125
- * Device language code raw setting. iOS does returns language code in different format than iOS WebView. For example WebView returns en_US, but iOS returns en-US. Field below will
126
- * return raw value returned by iOS.
127
- */
128
- languageCodeRaw?:
129
- string;
130
- /** Device display resolution height. */
131
- screenResolutionHeight?:
132
- string;
133
- /** Device display resolution width. */
134
- screenResolutionWidth?:
135
- string;
136
- /** Device timezone setting. */
137
- timezone?:
138
- string;
139
- }
140
- interface DynamicLinkEventStat {
141
- /** The number of times this event occurred. */
142
- count?:
143
- string;
144
- /** Link event. */
145
- event?:
146
- string;
147
- /** Requested platform. */
148
- platform?:
149
- string;
150
- }
151
- interface DynamicLinkInfo {
152
- /** Parameters used for tracking. See all tracking parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
153
- analyticsInfo?:
154
- AnalyticsInfo;
155
- /** Android related information. See Android related parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
156
- androidInfo?:
157
- AndroidInfo;
158
- /** Desktop related information. See desktop related parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
159
- desktopInfo?:
160
- DesktopInfo;
161
- /**
162
- * E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps More examples can be found in description of getNormalizedUriPrefix in
163
- * j/c/g/firebase/dynamiclinks/uri/DdlDomain.java Will fallback to dynamic_link_domain is this field is missing
164
- */
165
- domainUriPrefix?:
166
- string;
167
- /**
168
- * Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl [Learn more](https://firebase.google.com/docs/dynamic-links/android/receive) on how to set up Dynamic Link domain
169
- * associated with your Firebase project. Required if missing domain_uri_prefix.
170
- */
171
- dynamicLinkDomain?:
172
- string;
173
- /** iOS related information. See iOS related parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
174
- iosInfo?:
175
- IosInfo;
176
- /**
177
- * The link your app will open, You can specify any URL your app can handle. This link must be a well-formatted URL, be properly URL-encoded, and use the HTTP or HTTPS scheme. See
178
- * 'link' parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). Required.
179
- */
180
- link?:
181
- string;
182
- /** Information of navigation behavior of a Firebase Dynamic Links. */
183
- navigationInfo?:
184
- NavigationInfo;
185
- /** Parameters for social meta tag params. Used to set meta tag data for link previews on social sites. */
186
- socialMetaTagInfo?:
187
- SocialMetaTagInfo;
188
- }
189
- interface DynamicLinkStats {
190
- /** Dynamic Link event stats. */
191
- linkEventStats?:
192
- DynamicLinkEventStat[];
193
- }
194
- interface DynamicLinkWarning {
195
- /** The warning code. */
196
- warningCode?:
197
- string;
198
- /** The document describing the warning, and helps resolve. */
199
- warningDocumentLink?:
200
- string;
201
- /** The warning message to help developers improve their requests. */
202
- warningMessage?:
203
- string;
204
- }
205
- interface GetIosPostInstallAttributionRequest {
206
- /** App installation epoch time (https://en.wikipedia.org/wiki/Unix_time). This is a client signal for a more accurate weak match. */
207
- appInstallationTime?:
208
- string;
209
- /** APP bundle ID. */
210
- bundleId?:
211
- string;
212
- /** Device information. */
213
- device?:
214
- DeviceInfo;
215
- /** iOS version, ie: 9.3.5. Consider adding "build". */
216
- iosVersion?:
217
- string;
218
- /** App post install attribution retrieval information. Disambiguates mechanism (iSDK or developer invoked) to retrieve payload from clicked link. */
219
- retrievalMethod?:
220
- string;
221
- /** Google SDK version. Version takes the form "$major.$minor.$patch" */
222
- sdkVersion?:
223
- string;
224
- /**
225
- * Possible unique matched link that server need to check before performing device heuristics match. If passed link is short server need to expand the link. If link is long server need
226
- * to vslidate the link.
227
- */
228
- uniqueMatchLinkToCheck?:
229
- string;
230
- /** Strong match page information. Disambiguates between default UI and custom page to present when strong match succeeds/fails to find cookie. */
231
- visualStyle?:
232
- string;
233
- }
234
- interface GetIosPostInstallAttributionResponse {
235
- /** The minimum version for app, specified by dev through ?imv= parameter. Return to iSDK to allow app to evaluate if current version meets this. */
236
- appMinimumVersion?:
237
- string;
238
- /** The confidence of the returned attribution. */
239
- attributionConfidence?:
240
- string;
241
- /** The deep-link attributed post-install via one of several techniques (device heuristics, copy unique). */
242
- deepLink?:
243
- string;
244
- /**
245
- * User-agent specific custom-scheme URIs for iSDK to open. This will be set according to the user-agent tha the click was originally made in. There is no Safari-equivalent
246
- * custom-scheme open URLs. ie: googlechrome://www.example.com ie: firefox://open-url?url=http://www.example.com ie: opera-http://example.com
247
- */
248
- externalBrowserDestinationLink?:
249
- string;
250
- /**
251
- * The link to navigate to update the app if min version is not met. This is either (in order): 1) fallback link (from ?ifl= parameter, if specified by developer) or 2) AppStore URL
252
- * (from ?isi= parameter, if specified), or 3) the payload link (from required link= parameter).
253
- */
254
- fallbackLink?:
255
- string;
256
- /** Invitation ID attributed post-install via one of several techniques (device heuristics, copy unique). */
257
- invitationId?:
258
- string;
259
- /** Instruction for iSDK to attemmpt to perform strong match. For instance, if browser does not support/allow cookie or outside of support browsers, this will be false. */
260
- isStrongMatchExecutable?:
261
- boolean;
262
- /** Describes why match failed, ie: "discarded due to low confidence". This message will be publicly visible. */
263
- matchMessage?:
264
- string;
265
- /** Entire FDL (short or long) attributed post-install via one of several techniques (device heuristics, copy unique). */
266
- requestedLink?:
267
- string;
268
- /** Which IP version the request was made from. */
269
- requestIpVersion?:
270
- string;
271
- /**
272
- * The entire FDL, expanded from a short link. It is the same as the requested_link, if it is long. Parameters from this should not be used directly (ie: server can default
273
- * utm_[campaign|medium|source] to a value when requested_link lack them, server determine the best fallback_link when requested_link specifies >1 fallback links).
274
- */
275
- resolvedLink?:
276
- string;
277
- /** Scion campaign value to be propagated by iSDK to Scion at post-install. */
278
- utmCampaign?:
279
- string;
280
- /** Scion content value to be propagated by iSDK to Scion at app-reopen. */
281
- utmContent?:
282
- string;
283
- /** Scion medium value to be propagated by iSDK to Scion at post-install. */
284
- utmMedium?:
285
- string;
286
- /** Scion source value to be propagated by iSDK to Scion at post-install. */
287
- utmSource?:
288
- string;
289
- /** Scion term value to be propagated by iSDK to Scion at app-reopen. */
290
- utmTerm?:
291
- string;
292
- }
293
- interface GetIosReopenAttributionRequest {
294
- /** APP bundle ID. */
295
- bundleId?:
296
- string;
297
- /**
298
- * FDL link to be verified from an app universal link open. The FDL link can be one of: 1) short FDL. e.g. .page.link/, or 2) long FDL. e.g. .page.link/?{query params}, or 3) Invite
299
- * FDL. e.g. .page.link/i/
300
- */
301
- requestedLink?:
302
- string;
303
- /** Google SDK version. Version takes the form "$major.$minor.$patch" */
304
- sdkVersion?:
305
- string;
306
- }
307
- interface GetIosReopenAttributionResponse {
308
- /** The deep-link attributed the app universal link open. For both regular FDL links and invite FDL links. */
309
- deepLink?:
310
- string;
311
- /** Optional invitation ID, for only invite typed requested FDL links. */
312
- invitationId?:
313
- string;
314
- /** FDL input value of the "&imv=" parameter, minimum app version to be returned to Google Firebase SDK running on iOS-9. */
315
- iosMinAppVersion?:
316
- string;
317
- /** The entire FDL, expanded from a short link. It is the same as the requested_link, if it is long. */
318
- resolvedLink?:
319
- string;
320
- /** Scion campaign value to be propagated by iSDK to Scion at app-reopen. */
321
- utmCampaign?:
322
- string;
323
- /** Scion content value to be propagated by iSDK to Scion at app-reopen. */
324
- utmContent?:
325
- string;
326
- /** Scion medium value to be propagated by iSDK to Scion at app-reopen. */
327
- utmMedium?:
328
- string;
329
- /** Scion source value to be propagated by iSDK to Scion at app-reopen. */
330
- utmSource?:
331
- string;
332
- /** Scion term value to be propagated by iSDK to Scion at app-reopen. */
333
- utmTerm?:
334
- string;
335
- }
336
- interface GooglePlayAnalytics {
337
- /** Deprecated; FDL SDK does not process nor log it. */
338
- gclid?:
339
- string;
340
- /** Campaign name; used for keyword analysis to identify a specific product promotion or strategic campaign. */
341
- utmCampaign?:
342
- string;
343
- /** Campaign content; used for A/B testing and content-targeted ads to differentiate ads or links that point to the same URL. */
344
- utmContent?:
345
- string;
346
- /** Campaign medium; used to identify a medium such as email or cost-per-click. */
347
- utmMedium?:
348
- string;
349
- /** Campaign source; used to identify a search engine, newsletter, or other source. */
350
- utmSource?:
351
- string;
352
- /** Campaign term; used with paid search to supply the keywords for ads. */
353
- utmTerm?:
354
- string;
355
- }
356
- interface IosInfo {
357
- /** iOS App Store ID. */
358
- iosAppStoreId?:
359
- string;
360
- /** iOS bundle ID of the app. */
361
- iosBundleId?:
362
- string;
363
- /** Custom (destination) scheme to use for iOS. By default, we’ll use the bundle ID as the custom scheme. Developer can override this behavior using this param. */
364
- iosCustomScheme?:
365
- string;
366
- /** Link to open on iOS if the app is not installed. */
367
- iosFallbackLink?:
368
- string;
369
- /** iPad bundle ID of the app. */
370
- iosIpadBundleId?:
371
- string;
372
- /** If specified, this overrides the ios_fallback_link value on iPads. */
373
- iosIpadFallbackLink?:
374
- string;
375
- /** iOS minimum version. */
376
- iosMinimumVersion?:
377
- string;
378
- }
379
- // tslint:disable-next-line:interface-name
380
- interface ITunesConnectAnalytics {
381
- /** Affiliate token used to create affiliate-coded links. */
382
- at?:
383
- string;
384
- /** Campaign text that developers can optionally add to any link in order to track sales from a specific marketing campaign. */
385
- ct?:
386
- string;
387
- /** iTune media types, including music, podcasts, audiobooks and so on. */
388
- mt?:
389
- string;
390
- /** Provider token that enables analytics for Dynamic Links from within iTunes Connect. */
391
- pt?:
392
- string;
393
- }
394
- interface ManagedShortLink {
395
- /** Creation timestamp of the short link. */
396
- creationTime?:
397
- string;
398
- /** Attributes that have been flagged about this short url. */
399
- flaggedAttribute?:
400
- string[];
401
- /** Full Dyamic Link info */
402
- info?:
403
- DynamicLinkInfo;
404
- /** Short durable link url, for example, "https://sample.app.goo.gl/xyz123". Required. */
405
- link?:
406
- string;
407
- /** Link name defined by the creator. Required. */
408
- linkName?:
409
- string;
410
- /** Visibility status of link. */
411
- visibility?:
412
- string;
413
- }
414
- interface NavigationInfo {
415
- /** If this option is on, FDL click will be forced to redirect rather than show an interstitial page. */
416
- enableForcedRedirect?:
417
- boolean;
418
- }
419
- interface SocialMetaTagInfo {
420
- /** A short description of the link. Optional. */
421
- socialDescription?:
422
- string;
423
- /** An image url string. Optional. */
424
- socialImageLink?:
425
- string;
426
- /** Title to be displayed. Optional. */
427
- socialTitle?:
428
- string;
429
- }
430
- interface Suffix {
431
- /** Only applies to Option.CUSTOM. */
432
- customSuffix?:
433
- string;
434
- /** Suffix option. */
435
- option?:
436
- string;
437
- }
438
- interface ManagedShortLinksResource {
439
- /**
440
- * Creates a managed short Dynamic Link given either a valid long Dynamic Link or details such as Dynamic Link domain, Android and iOS app information. The created short Dynamic Link
441
- * will not expire. This differs from CreateShortDynamicLink in the following ways: - The request will also contain a name for the link (non unique name for the front end). - The
442
- * response must be authenticated with an auth token (generated with the admin service account). - The link will appear in the FDL list of links in the console front end. The Dynamic
443
- * Link domain in the request must be owned by requester's Firebase project.
444
- */
445
- create(request: {
446
- /** V1 error format. */
447
- "$.xgafv"?:
448
- string;
449
- /** OAuth access token. */
450
- access_token?:
451
- string;
452
- /** Data format for response. */
453
- alt?:
454
- string;
455
- /** JSONP */
456
- callback?:
457
- string;
458
- /** Selector specifying which fields to include in a partial response. */
459
- fields?:
460
- string;
461
- /** 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. */
462
- key?:
463
- string;
464
- /** OAuth 2.0 token for the current user. */
465
- oauth_token?:
466
- string;
467
- /** Returns response with indentations and line breaks. */
468
- prettyPrint?:
469
- boolean;
470
- /** 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. */
471
- quotaUser?:
472
- string;
473
- /** Upload protocol for media (e.g. "raw", "multipart"). */
474
- upload_protocol?:
475
- string;
476
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
477
- uploadType?:
478
- string;
479
- /** Request body */
480
- resource:
481
- CreateManagedShortLinkRequest;
482
- }): Request<CreateManagedShortLinkResponse>;
483
- create(request: {
484
- /** V1 error format. */
485
- "$.xgafv"?:
486
- string;
487
- /** OAuth access token. */
488
- access_token?:
489
- string;
490
- /** Data format for response. */
491
- alt?:
492
- string;
493
- /** JSONP */
494
- callback?:
495
- string;
496
- /** Selector specifying which fields to include in a partial response. */
497
- fields?:
498
- string;
499
- /** 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. */
500
- key?:
501
- string;
502
- /** OAuth 2.0 token for the current user. */
503
- oauth_token?:
504
- string;
505
- /** Returns response with indentations and line breaks. */
506
- prettyPrint?:
507
- boolean;
508
- /** 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. */
509
- quotaUser?:
510
- string;
511
- /** Upload protocol for media (e.g. "raw", "multipart"). */
512
- upload_protocol?:
513
- string;
514
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
515
- uploadType?:
516
- string;
517
- },
518
- body: CreateManagedShortLinkRequest): Request<CreateManagedShortLinkResponse>;
519
- }
520
- interface ShortLinksResource {
521
- /**
522
- * Creates a short Dynamic Link given either a valid long Dynamic Link or details such as Dynamic Link domain, Android and iOS app information. The created short Dynamic Link will not
523
- * expire. Repeated calls with the same long Dynamic Link or Dynamic Link information will produce the same short Dynamic Link. The Dynamic Link domain in the request must be owned by
524
- * requester's Firebase project.
525
- */
526
- create(request: {
527
- /** V1 error format. */
528
- "$.xgafv"?:
529
- string;
530
- /** OAuth access token. */
531
- access_token?:
532
- string;
533
- /** Data format for response. */
534
- alt?:
535
- string;
536
- /** JSONP */
537
- callback?:
538
- string;
539
- /** Selector specifying which fields to include in a partial response. */
540
- fields?:
541
- string;
542
- /** 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. */
543
- key?:
544
- string;
545
- /** OAuth 2.0 token for the current user. */
546
- oauth_token?:
547
- string;
548
- /** Returns response with indentations and line breaks. */
549
- prettyPrint?:
550
- boolean;
551
- /** 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. */
552
- quotaUser?:
553
- string;
554
- /** Upload protocol for media (e.g. "raw", "multipart"). */
555
- upload_protocol?:
556
- string;
557
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
558
- uploadType?:
559
- string;
560
- /** Request body */
561
- resource:
562
- CreateShortDynamicLinkRequest;
563
- }): Request<CreateShortDynamicLinkResponse>;
564
- create(request: {
565
- /** V1 error format. */
566
- "$.xgafv"?:
567
- string;
568
- /** OAuth access token. */
569
- access_token?:
570
- string;
571
- /** Data format for response. */
572
- alt?:
573
- string;
574
- /** JSONP */
575
- callback?:
576
- string;
577
- /** Selector specifying which fields to include in a partial response. */
578
- fields?:
579
- string;
580
- /** 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. */
581
- key?:
582
- string;
583
- /** OAuth 2.0 token for the current user. */
584
- oauth_token?:
585
- string;
586
- /** Returns response with indentations and line breaks. */
587
- prettyPrint?:
588
- boolean;
589
- /** 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. */
590
- quotaUser?:
591
- string;
592
- /** Upload protocol for media (e.g. "raw", "multipart"). */
593
- upload_protocol?:
594
- string;
595
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
596
- uploadType?:
597
- string;
598
- },
599
- body: CreateShortDynamicLinkRequest): Request<CreateShortDynamicLinkResponse>;
600
- }
601
- interface V1Resource {
602
- /** Fetches analytics stats of a short Dynamic Link for a given duration. Metrics include number of clicks, redirects, installs, app first opens, and app reopens. */
603
- getLinkStats(request?: {
604
- /** V1 error format. */
605
- "$.xgafv"?:
606
- string;
607
- /** OAuth access token. */
608
- access_token?:
609
- string;
610
- /** Data format for response. */
611
- alt?:
612
- string;
613
- /** JSONP */
614
- callback?:
615
- string;
616
- /** The span of time requested in days. */
617
- durationDays?:
618
- string;
619
- /** Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz */
620
- dynamicLink:
621
- string;
622
- /** Selector specifying which fields to include in a partial response. */
623
- fields?:
624
- string;
625
- /** 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. */
626
- key?:
627
- string;
628
- /** OAuth 2.0 token for the current user. */
629
- oauth_token?:
630
- string;
631
- /** Returns response with indentations and line breaks. */
632
- prettyPrint?:
633
- boolean;
634
- /** 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. */
635
- quotaUser?:
636
- string;
637
- /** Google SDK version. Version takes the form "$major.$minor.$patch" */
638
- sdkVersion?:
639
- string;
640
- /** Upload protocol for media (e.g. "raw", "multipart"). */
641
- upload_protocol?:
642
- string;
643
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
644
- uploadType?:
645
- string;
646
- }): Request<DynamicLinkStats>;
647
- /** Get iOS strong/weak-match info for post-install attribution. */
648
- installAttribution(request: {
649
- /** V1 error format. */
650
- "$.xgafv"?:
651
- string;
652
- /** OAuth access token. */
653
- access_token?:
654
- string;
655
- /** Data format for response. */
656
- alt?:
657
- string;
658
- /** JSONP */
659
- callback?:
660
- string;
661
- /** Selector specifying which fields to include in a partial response. */
662
- fields?:
663
- string;
664
- /** 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. */
665
- key?:
666
- string;
667
- /** OAuth 2.0 token for the current user. */
668
- oauth_token?:
669
- string;
670
- /** Returns response with indentations and line breaks. */
671
- prettyPrint?:
672
- boolean;
673
- /** 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. */
674
- quotaUser?:
675
- string;
676
- /** Upload protocol for media (e.g. "raw", "multipart"). */
677
- upload_protocol?:
678
- string;
679
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
680
- uploadType?:
681
- string;
682
- /** Request body */
683
- resource:
684
- GetIosPostInstallAttributionRequest;
685
- }): Request<GetIosPostInstallAttributionResponse>;
686
- installAttribution(request: {
687
- /** V1 error format. */
688
- "$.xgafv"?:
689
- string;
690
- /** OAuth access token. */
691
- access_token?:
692
- string;
693
- /** Data format for response. */
694
- alt?:
695
- string;
696
- /** JSONP */
697
- callback?:
698
- string;
699
- /** Selector specifying which fields to include in a partial response. */
700
- fields?:
701
- string;
702
- /** 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. */
703
- key?:
704
- string;
705
- /** OAuth 2.0 token for the current user. */
706
- oauth_token?:
707
- string;
708
- /** Returns response with indentations and line breaks. */
709
- prettyPrint?:
710
- boolean;
711
- /** 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. */
712
- quotaUser?:
713
- string;
714
- /** Upload protocol for media (e.g. "raw", "multipart"). */
715
- upload_protocol?:
716
- string;
717
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
718
- uploadType?:
719
- string;
720
- },
721
- body: GetIosPostInstallAttributionRequest): Request<GetIosPostInstallAttributionResponse>;
722
- /** Get iOS reopen attribution for app universal link open deeplinking. */
723
- reopenAttribution(request: {
724
- /** V1 error format. */
725
- "$.xgafv"?:
726
- string;
727
- /** OAuth access token. */
728
- access_token?:
729
- string;
730
- /** Data format for response. */
731
- alt?:
732
- string;
733
- /** JSONP */
734
- callback?:
735
- string;
736
- /** Selector specifying which fields to include in a partial response. */
737
- fields?:
738
- string;
739
- /** 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. */
740
- key?:
741
- string;
742
- /** OAuth 2.0 token for the current user. */
743
- oauth_token?:
744
- string;
745
- /** Returns response with indentations and line breaks. */
746
- prettyPrint?:
747
- boolean;
748
- /** 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. */
749
- quotaUser?:
750
- string;
751
- /** Upload protocol for media (e.g. "raw", "multipart"). */
752
- upload_protocol?:
753
- string;
754
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
755
- uploadType?:
756
- string;
757
- /** Request body */
758
- resource:
759
- GetIosReopenAttributionRequest;
760
- }): Request<GetIosReopenAttributionResponse>;
761
- reopenAttribution(request: {
762
- /** V1 error format. */
763
- "$.xgafv"?:
764
- string;
765
- /** OAuth access token. */
766
- access_token?:
767
- string;
768
- /** Data format for response. */
769
- alt?:
770
- string;
771
- /** JSONP */
772
- callback?:
773
- string;
774
- /** Selector specifying which fields to include in a partial response. */
775
- fields?:
776
- string;
777
- /** 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. */
778
- key?:
779
- string;
780
- /** OAuth 2.0 token for the current user. */
781
- oauth_token?:
782
- string;
783
- /** Returns response with indentations and line breaks. */
784
- prettyPrint?:
785
- boolean;
786
- /** 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. */
787
- quotaUser?:
788
- string;
789
- /** Upload protocol for media (e.g. "raw", "multipart"). */
790
- upload_protocol?:
791
- string;
792
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
793
- uploadType?:
794
- string;
795
- },
796
- body: GetIosReopenAttributionRequest): Request<GetIosReopenAttributionResponse>;
797
- }
30
+ namespace firebasedynamiclinks {
31
+ interface AnalyticsInfo {
32
+ /** Google Play Campaign Measurements. */
33
+ googlePlayAnalytics?: GooglePlayAnalytics;
34
+ /** iTunes Connect App Analytics. */
35
+ itunesConnectAnalytics?: ITunesConnectAnalytics;
36
+ }
37
+ interface AndroidInfo {
38
+ /** Link to open on Android if the app is not installed. */
39
+ androidFallbackLink?: string;
40
+ /** If specified, this overrides the ‘link’ parameter on Android. */
41
+ androidLink?: string;
42
+ /** Minimum version code for the Android app. If the installed app’s version code is lower, then the user is taken to the Play Store. */
43
+ androidMinPackageVersionCode?: string;
44
+ /** Android package name of the app. */
45
+ androidPackageName?: string;
46
+ }
47
+ interface CreateManagedShortLinkRequest {
48
+ /** Information about the Dynamic Link to be shortened. [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */
49
+ dynamicLinkInfo?: DynamicLinkInfo;
50
+ /** Full long Dynamic Link URL with desired query parameters specified. For example, "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample", [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */
51
+ longDynamicLink?: string;
52
+ /** Link name to associate with the link. It's used for marketer to identify manually-created links in the Firebase console (https://console.firebase.google.com/). Links must be named to be tracked. */
53
+ name?: string;
54
+ /** Google SDK version. Version takes the form "$major.$minor.$patch" */
55
+ sdkVersion?: string;
56
+ /** Short Dynamic Link suffix. Optional. */
57
+ suffix?: Suffix;
58
+ }
59
+ interface CreateManagedShortLinkResponse {
60
+ /** Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */
61
+ managedShortLink?: ManagedShortLink;
62
+ /** Preview link to show the link flow chart. (debug info.) */
63
+ previewLink?: string;
64
+ /** Information about potential warnings on link creation. */
65
+ warning?: DynamicLinkWarning[];
66
+ }
67
+ interface CreateShortDynamicLinkRequest {
68
+ /** Information about the Dynamic Link to be shortened. [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */
69
+ dynamicLinkInfo?: DynamicLinkInfo;
70
+ /** Full long Dynamic Link URL with desired query parameters specified. For example, "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample", [Learn more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). */
71
+ longDynamicLink?: string;
72
+ /** Google SDK version. Version takes the form "$major.$minor.$patch" */
73
+ sdkVersion?: string;
74
+ /** Short Dynamic Link suffix. Optional. */
75
+ suffix?: Suffix;
76
+ }
77
+ interface CreateShortDynamicLinkResponse {
78
+ /** Preview link to show the link flow chart. (debug info.) */
79
+ previewLink?: string;
80
+ /** Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */
81
+ shortLink?: string;
82
+ /** Information about potential warnings on link creation. */
83
+ warning?: DynamicLinkWarning[];
84
+ }
85
+ interface DesktopInfo {
86
+ /** Link to open on desktop. */
87
+ desktopFallbackLink?: string;
88
+ }
89
+ interface DeviceInfo {
90
+ /** Device model name. */
91
+ deviceModelName?: string;
92
+ /** Device language code setting. */
93
+ languageCode?: string;
94
+ /** Device language code setting obtained by executing JavaScript code in WebView. */
95
+ languageCodeFromWebview?: string;
96
+ /** Device language code raw setting. iOS does returns language code in different format than iOS WebView. For example WebView returns en_US, but iOS returns en-US. Field below will return raw value returned by iOS. */
97
+ languageCodeRaw?: string;
98
+ /** Device display resolution height. */
99
+ screenResolutionHeight?: string;
100
+ /** Device display resolution width. */
101
+ screenResolutionWidth?: string;
102
+ /** Device timezone setting. */
103
+ timezone?: string;
104
+ }
105
+ interface DynamicLinkEventStat {
106
+ /** The number of times this event occurred. */
107
+ count?: string;
108
+ /** Link event. */
109
+ event?: string;
110
+ /** Requested platform. */
111
+ platform?: string;
112
+ }
113
+ interface DynamicLinkInfo {
114
+ /** Parameters used for tracking. See all tracking parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
115
+ analyticsInfo?: AnalyticsInfo;
116
+ /** Android related information. See Android related parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
117
+ androidInfo?: AndroidInfo;
118
+ /** Desktop related information. See desktop related parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
119
+ desktopInfo?: DesktopInfo;
120
+ /** E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps More examples can be found in description of getNormalizedUriPrefix in j/c/g/firebase/dynamiclinks/uri/DdlDomain.java Will fallback to dynamic_link_domain is this field is missing */
121
+ domainUriPrefix?: string;
122
+ /** Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl [Learn more](https://firebase.google.com/docs/dynamic-links/android/receive) on how to set up Dynamic Link domain associated with your Firebase project. Required if missing domain_uri_prefix. */
123
+ dynamicLinkDomain?: string;
124
+ /** iOS related information. See iOS related parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). */
125
+ iosInfo?: IosInfo;
126
+ /** The link your app will open, You can specify any URL your app can handle. This link must be a well-formatted URL, be properly URL-encoded, and use the HTTP or HTTPS scheme. See 'link' parameters in the [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). Required. */
127
+ link?: string;
128
+ /** Information of navigation behavior of a Firebase Dynamic Links. */
129
+ navigationInfo?: NavigationInfo;
130
+ /** Parameters for social meta tag params. Used to set meta tag data for link previews on social sites. */
131
+ socialMetaTagInfo?: SocialMetaTagInfo;
132
+ }
133
+ interface DynamicLinkStats {
134
+ /** Dynamic Link event stats. */
135
+ linkEventStats?: DynamicLinkEventStat[];
136
+ }
137
+ interface DynamicLinkWarning {
138
+ /** The warning code. */
139
+ warningCode?: string;
140
+ /** The document describing the warning, and helps resolve. */
141
+ warningDocumentLink?: string;
142
+ /** The warning message to help developers improve their requests. */
143
+ warningMessage?: string;
144
+ }
145
+ interface GetIosPostInstallAttributionRequest {
146
+ /** App installation epoch time (https://en.wikipedia.org/wiki/Unix_time). This is a client signal for a more accurate weak match. */
147
+ appInstallationTime?: string;
148
+ /** APP bundle ID. */
149
+ bundleId?: string;
150
+ /** Device information. */
151
+ device?: DeviceInfo;
152
+ /** iOS version, ie: 9.3.5. Consider adding "build". */
153
+ iosVersion?: string;
154
+ /** App post install attribution retrieval information. Disambiguates mechanism (iSDK or developer invoked) to retrieve payload from clicked link. */
155
+ retrievalMethod?: string;
156
+ /** Google SDK version. Version takes the form "$major.$minor.$patch" */
157
+ sdkVersion?: string;
158
+ /** Possible unique matched link that server need to check before performing device heuristics match. If passed link is short server need to expand the link. If link is long server need to vslidate the link. */
159
+ uniqueMatchLinkToCheck?: string;
160
+ /** Strong match page information. Disambiguates between default UI and custom page to present when strong match succeeds/fails to find cookie. */
161
+ visualStyle?: string;
162
+ }
163
+ interface GetIosPostInstallAttributionResponse {
164
+ /** The minimum version for app, specified by dev through ?imv= parameter. Return to iSDK to allow app to evaluate if current version meets this. */
165
+ appMinimumVersion?: string;
166
+ /** The confidence of the returned attribution. */
167
+ attributionConfidence?: string;
168
+ /** The deep-link attributed post-install via one of several techniques (device heuristics, copy unique). */
169
+ deepLink?: string;
170
+ /** User-agent specific custom-scheme URIs for iSDK to open. This will be set according to the user-agent tha the click was originally made in. There is no Safari-equivalent custom-scheme open URLs. ie: googlechrome://www.example.com ie: firefox://open-url?url=http://www.example.com ie: opera-http://example.com */
171
+ externalBrowserDestinationLink?: string;
172
+ /** The link to navigate to update the app if min version is not met. This is either (in order): 1) fallback link (from ?ifl= parameter, if specified by developer) or 2) AppStore URL (from ?isi= parameter, if specified), or 3) the payload link (from required link= parameter). */
173
+ fallbackLink?: string;
174
+ /** Invitation ID attributed post-install via one of several techniques (device heuristics, copy unique). */
175
+ invitationId?: string;
176
+ /** Instruction for iSDK to attemmpt to perform strong match. For instance, if browser does not support/allow cookie or outside of support browsers, this will be false. */
177
+ isStrongMatchExecutable?: boolean;
178
+ /** Describes why match failed, ie: "discarded due to low confidence". This message will be publicly visible. */
179
+ matchMessage?: string;
180
+ /** Entire FDL (short or long) attributed post-install via one of several techniques (device heuristics, copy unique). */
181
+ requestedLink?: string;
182
+ /** Which IP version the request was made from. */
183
+ requestIpVersion?: string;
184
+ /** The entire FDL, expanded from a short link. It is the same as the requested_link, if it is long. Parameters from this should not be used directly (ie: server can default utm_[campaign|medium|source] to a value when requested_link lack them, server determine the best fallback_link when requested_link specifies >1 fallback links). */
185
+ resolvedLink?: string;
186
+ /** Scion campaign value to be propagated by iSDK to Scion at post-install. */
187
+ utmCampaign?: string;
188
+ /** Scion content value to be propagated by iSDK to Scion at app-reopen. */
189
+ utmContent?: string;
190
+ /** Scion medium value to be propagated by iSDK to Scion at post-install. */
191
+ utmMedium?: string;
192
+ /** Scion source value to be propagated by iSDK to Scion at post-install. */
193
+ utmSource?: string;
194
+ /** Scion term value to be propagated by iSDK to Scion at app-reopen. */
195
+ utmTerm?: string;
196
+ }
197
+ interface GetIosReopenAttributionRequest {
198
+ /** APP bundle ID. */
199
+ bundleId?: string;
200
+ /** FDL link to be verified from an app universal link open. The FDL link can be one of: 1) short FDL. e.g. .page.link/, or 2) long FDL. e.g. .page.link/?{query params}, or 3) Invite FDL. e.g. .page.link/i/ */
201
+ requestedLink?: string;
202
+ /** Google SDK version. Version takes the form "$major.$minor.$patch" */
203
+ sdkVersion?: string;
204
+ }
205
+ interface GetIosReopenAttributionResponse {
206
+ /** The deep-link attributed the app universal link open. For both regular FDL links and invite FDL links. */
207
+ deepLink?: string;
208
+ /** Optional invitation ID, for only invite typed requested FDL links. */
209
+ invitationId?: string;
210
+ /** FDL input value of the "&imv=" parameter, minimum app version to be returned to Google Firebase SDK running on iOS-9. */
211
+ iosMinAppVersion?: string;
212
+ /** The entire FDL, expanded from a short link. It is the same as the requested_link, if it is long. */
213
+ resolvedLink?: string;
214
+ /** Scion campaign value to be propagated by iSDK to Scion at app-reopen. */
215
+ utmCampaign?: string;
216
+ /** Scion content value to be propagated by iSDK to Scion at app-reopen. */
217
+ utmContent?: string;
218
+ /** Scion medium value to be propagated by iSDK to Scion at app-reopen. */
219
+ utmMedium?: string;
220
+ /** Scion source value to be propagated by iSDK to Scion at app-reopen. */
221
+ utmSource?: string;
222
+ /** Scion term value to be propagated by iSDK to Scion at app-reopen. */
223
+ utmTerm?: string;
224
+ }
225
+ interface GooglePlayAnalytics {
226
+ /** Deprecated; FDL SDK does not process nor log it. */
227
+ gclid?: string;
228
+ /** Campaign name; used for keyword analysis to identify a specific product promotion or strategic campaign. */
229
+ utmCampaign?: string;
230
+ /** Campaign content; used for A/B testing and content-targeted ads to differentiate ads or links that point to the same URL. */
231
+ utmContent?: string;
232
+ /** Campaign medium; used to identify a medium such as email or cost-per-click. */
233
+ utmMedium?: string;
234
+ /** Campaign source; used to identify a search engine, newsletter, or other source. */
235
+ utmSource?: string;
236
+ /** Campaign term; used with paid search to supply the keywords for ads. */
237
+ utmTerm?: string;
238
+ }
239
+ interface IosInfo {
240
+ /** iOS App Store ID. */
241
+ iosAppStoreId?: string;
242
+ /** iOS bundle ID of the app. */
243
+ iosBundleId?: string;
244
+ /** Custom (destination) scheme to use for iOS. By default, we’ll use the bundle ID as the custom scheme. Developer can override this behavior using this param. */
245
+ iosCustomScheme?: string;
246
+ /** Link to open on iOS if the app is not installed. */
247
+ iosFallbackLink?: string;
248
+ /** iPad bundle ID of the app. */
249
+ iosIpadBundleId?: string;
250
+ /** If specified, this overrides the ios_fallback_link value on iPads. */
251
+ iosIpadFallbackLink?: string;
252
+ /** iOS minimum version. */
253
+ iosMinimumVersion?: string;
254
+ }
255
+ interface ITunesConnectAnalytics {
256
+ /** Affiliate token used to create affiliate-coded links. */
257
+ at?: string;
258
+ /** Campaign text that developers can optionally add to any link in order to track sales from a specific marketing campaign. */
259
+ ct?: string;
260
+ /** iTune media types, including music, podcasts, audiobooks and so on. */
261
+ mt?: string;
262
+ /** Provider token that enables analytics for Dynamic Links from within iTunes Connect. */
263
+ pt?: string;
264
+ }
265
+ interface ManagedShortLink {
266
+ /** Creation timestamp of the short link. */
267
+ creationTime?: string;
268
+ /** Attributes that have been flagged about this short url. */
269
+ flaggedAttribute?: string[];
270
+ /** Full Dyamic Link info */
271
+ info?: DynamicLinkInfo;
272
+ /** Short durable link url, for example, "https://sample.app.goo.gl/xyz123". Required. */
273
+ link?: string;
274
+ /** Link name defined by the creator. Required. */
275
+ linkName?: string;
276
+ /** Visibility status of link. */
277
+ visibility?: string;
278
+ }
279
+ interface NavigationInfo {
280
+ /** If this option is on, FDL click will be forced to redirect rather than show an interstitial page. */
281
+ enableForcedRedirect?: boolean;
282
+ }
283
+ interface SocialMetaTagInfo {
284
+ /** A short description of the link. Optional. */
285
+ socialDescription?: string;
286
+ /** An image url string. Optional. */
287
+ socialImageLink?: string;
288
+ /** Title to be displayed. Optional. */
289
+ socialTitle?: string;
290
+ }
291
+ interface Suffix {
292
+ /** Only applies to Option.CUSTOM. */
293
+ customSuffix?: string;
294
+ /** Suffix option. */
295
+ option?: string;
296
+ }
297
+ interface ManagedShortLinksResource {
298
+ /** Creates a managed short Dynamic Link given either a valid long Dynamic Link or details such as Dynamic Link domain, Android and iOS app information. The created short Dynamic Link will not expire. This differs from CreateShortDynamicLink in the following ways: - The request will also contain a name for the link (non unique name for the front end). - The response must be authenticated with an auth token (generated with the admin service account). - The link will appear in the FDL list of links in the console front end. The Dynamic Link domain in the request must be owned by requester's Firebase project. */
299
+ create(request: {
300
+ /** V1 error format. */
301
+ '$.xgafv'?: string;
302
+ /** OAuth access token. */
303
+ access_token?: string;
304
+ /** Data format for response. */
305
+ alt?: string;
306
+ /** JSONP */
307
+ callback?: string;
308
+ /** Selector specifying which fields to include in a partial response. */
309
+ fields?: string;
310
+ /** 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. */
311
+ key?: string;
312
+ /** OAuth 2.0 token for the current user. */
313
+ oauth_token?: string;
314
+ /** Returns response with indentations and line breaks. */
315
+ prettyPrint?: boolean;
316
+ /** 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. */
317
+ quotaUser?: string;
318
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
319
+ upload_protocol?: string;
320
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
321
+ uploadType?: string;
322
+ /** Request body */
323
+ resource: CreateManagedShortLinkRequest;
324
+ }): Request<CreateManagedShortLinkResponse>;
325
+ create(
326
+ request: {
327
+ /** V1 error format. */
328
+ '$.xgafv'?: string;
329
+ /** OAuth access token. */
330
+ access_token?: string;
331
+ /** Data format for response. */
332
+ alt?: string;
333
+ /** JSONP */
334
+ callback?: string;
335
+ /** Selector specifying which fields to include in a partial response. */
336
+ fields?: string;
337
+ /** 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. */
338
+ key?: string;
339
+ /** OAuth 2.0 token for the current user. */
340
+ oauth_token?: string;
341
+ /** Returns response with indentations and line breaks. */
342
+ prettyPrint?: boolean;
343
+ /** 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. */
344
+ quotaUser?: string;
345
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
346
+ upload_protocol?: string;
347
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
348
+ uploadType?: string;
349
+ },
350
+ body: CreateManagedShortLinkRequest
351
+ ): Request<CreateManagedShortLinkResponse>;
352
+ }
353
+ interface ShortLinksResource {
354
+ /** Creates a short Dynamic Link given either a valid long Dynamic Link or details such as Dynamic Link domain, Android and iOS app information. The created short Dynamic Link will not expire. Repeated calls with the same long Dynamic Link or Dynamic Link information will produce the same short Dynamic Link. The Dynamic Link domain in the request must be owned by requester's Firebase project. */
355
+ create(request: {
356
+ /** V1 error format. */
357
+ '$.xgafv'?: string;
358
+ /** OAuth access token. */
359
+ access_token?: string;
360
+ /** Data format for response. */
361
+ alt?: string;
362
+ /** JSONP */
363
+ callback?: string;
364
+ /** Selector specifying which fields to include in a partial response. */
365
+ fields?: string;
366
+ /** 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. */
367
+ key?: string;
368
+ /** OAuth 2.0 token for the current user. */
369
+ oauth_token?: string;
370
+ /** Returns response with indentations and line breaks. */
371
+ prettyPrint?: boolean;
372
+ /** 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. */
373
+ quotaUser?: string;
374
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
375
+ upload_protocol?: string;
376
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
377
+ uploadType?: string;
378
+ /** Request body */
379
+ resource: CreateShortDynamicLinkRequest;
380
+ }): Request<CreateShortDynamicLinkResponse>;
381
+ create(
382
+ request: {
383
+ /** V1 error format. */
384
+ '$.xgafv'?: string;
385
+ /** OAuth access token. */
386
+ access_token?: string;
387
+ /** Data format for response. */
388
+ alt?: string;
389
+ /** JSONP */
390
+ callback?: string;
391
+ /** Selector specifying which fields to include in a partial response. */
392
+ fields?: string;
393
+ /** 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. */
394
+ key?: 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
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
402
+ upload_protocol?: string;
403
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
404
+ uploadType?: string;
405
+ },
406
+ body: CreateShortDynamicLinkRequest
407
+ ): Request<CreateShortDynamicLinkResponse>;
408
+ }
409
+ interface V1Resource {
410
+ /** Fetches analytics stats of a short Dynamic Link for a given duration. Metrics include number of clicks, redirects, installs, app first opens, and app reopens. */
411
+ getLinkStats(request?: {
412
+ /** V1 error format. */
413
+ '$.xgafv'?: string;
414
+ /** OAuth access token. */
415
+ access_token?: string;
416
+ /** Data format for response. */
417
+ alt?: string;
418
+ /** JSONP */
419
+ callback?: string;
420
+ /** The span of time requested in days. */
421
+ durationDays?: string;
422
+ /** Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz */
423
+ dynamicLink: string;
424
+ /** Selector specifying which fields to include in a partial response. */
425
+ fields?: string;
426
+ /** 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. */
427
+ key?: string;
428
+ /** OAuth 2.0 token for the current user. */
429
+ oauth_token?: string;
430
+ /** Returns response with indentations and line breaks. */
431
+ prettyPrint?: boolean;
432
+ /** 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. */
433
+ quotaUser?: string;
434
+ /** Google SDK version. Version takes the form "$major.$minor.$patch" */
435
+ sdkVersion?: string;
436
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
437
+ upload_protocol?: string;
438
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
439
+ uploadType?: string;
440
+ }): Request<DynamicLinkStats>;
441
+ /** Get iOS strong/weak-match info for post-install attribution. */
442
+ installAttribution(request: {
443
+ /** V1 error format. */
444
+ '$.xgafv'?: string;
445
+ /** OAuth access token. */
446
+ access_token?: string;
447
+ /** Data format for response. */
448
+ alt?: string;
449
+ /** JSONP */
450
+ callback?: string;
451
+ /** Selector specifying which fields to include in a partial response. */
452
+ fields?: string;
453
+ /** 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. */
454
+ key?: string;
455
+ /** OAuth 2.0 token for the current user. */
456
+ oauth_token?: string;
457
+ /** Returns response with indentations and line breaks. */
458
+ prettyPrint?: boolean;
459
+ /** 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. */
460
+ quotaUser?: string;
461
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
462
+ upload_protocol?: string;
463
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
464
+ uploadType?: string;
465
+ /** Request body */
466
+ resource: GetIosPostInstallAttributionRequest;
467
+ }): Request<GetIosPostInstallAttributionResponse>;
468
+ installAttribution(
469
+ request: {
470
+ /** V1 error format. */
471
+ '$.xgafv'?: string;
472
+ /** OAuth access token. */
473
+ access_token?: string;
474
+ /** Data format for response. */
475
+ alt?: string;
476
+ /** JSONP */
477
+ callback?: string;
478
+ /** Selector specifying which fields to include in a partial response. */
479
+ fields?: string;
480
+ /** 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. */
481
+ key?: string;
482
+ /** OAuth 2.0 token for the current user. */
483
+ oauth_token?: string;
484
+ /** Returns response with indentations and line breaks. */
485
+ prettyPrint?: boolean;
486
+ /** 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. */
487
+ quotaUser?: string;
488
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
489
+ upload_protocol?: string;
490
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
491
+ uploadType?: string;
492
+ },
493
+ body: GetIosPostInstallAttributionRequest
494
+ ): Request<GetIosPostInstallAttributionResponse>;
495
+ /** Get iOS reopen attribution for app universal link open deeplinking. */
496
+ reopenAttribution(request: {
497
+ /** V1 error format. */
498
+ '$.xgafv'?: string;
499
+ /** OAuth access token. */
500
+ access_token?: string;
501
+ /** Data format for response. */
502
+ alt?: string;
503
+ /** JSONP */
504
+ callback?: string;
505
+ /** Selector specifying which fields to include in a partial response. */
506
+ fields?: string;
507
+ /** 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. */
508
+ key?: string;
509
+ /** OAuth 2.0 token for the current user. */
510
+ oauth_token?: string;
511
+ /** Returns response with indentations and line breaks. */
512
+ prettyPrint?: boolean;
513
+ /** 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. */
514
+ quotaUser?: string;
515
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
516
+ upload_protocol?: string;
517
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
518
+ uploadType?: string;
519
+ /** Request body */
520
+ resource: GetIosReopenAttributionRequest;
521
+ }): Request<GetIosReopenAttributionResponse>;
522
+ reopenAttribution(
523
+ request: {
524
+ /** V1 error format. */
525
+ '$.xgafv'?: string;
526
+ /** OAuth access token. */
527
+ access_token?: string;
528
+ /** Data format for response. */
529
+ alt?: string;
530
+ /** JSONP */
531
+ callback?: string;
532
+ /** Selector specifying which fields to include in a partial response. */
533
+ fields?: string;
534
+ /** 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. */
535
+ key?: string;
536
+ /** OAuth 2.0 token for the current user. */
537
+ oauth_token?: string;
538
+ /** Returns response with indentations and line breaks. */
539
+ prettyPrint?: boolean;
540
+ /** 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. */
541
+ quotaUser?: string;
542
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
543
+ upload_protocol?: string;
544
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
545
+ uploadType?: string;
546
+ },
547
+ body: GetIosReopenAttributionRequest
548
+ ): Request<GetIosReopenAttributionResponse>;
549
+ }
798
550
 
799
- const managedShortLinks: ManagedShortLinksResource;
551
+ const managedShortLinks: ManagedShortLinksResource;
800
552
 
801
- const shortLinks: ShortLinksResource;
553
+ const shortLinks: ShortLinksResource;
802
554
 
803
- const v1: V1Resource;
804
- }
555
+ const v1: V1Resource;
556
+ }
805
557
  }