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