66
77import { Agent } from ' http' ;
88
9+ // @public
10+ export interface AndroidBackgroundSyncConfig extends AndroidConfigV2Base {
11+ backgroundSync: AndroidBackgroundSyncMessage ;
12+ remoteNotification? : never ;
13+ }
14+
15+ // @public
16+ export type AndroidBackgroundSyncMessage = Record <string , never >;
17+
918// @public
1019export interface AndroidConfig {
1120 bandwidthConstrainedOk? : boolean ;
@@ -22,6 +31,23 @@ export interface AndroidConfig {
2231 ttl? : number ;
2332}
2433
34+ // @public
35+ export type AndroidConfigV2 = AndroidRemoteNotificationConfig | AndroidBackgroundSyncConfig ;
36+
37+ // @public
38+ export interface AndroidConfigV2Base {
39+ bandwidthConstrainedOk? : boolean ;
40+ collapseKey? : string ;
41+ data? : {
42+ [key : string ]: string ;
43+ };
44+ directBootOk? : boolean ;
45+ fcmOptions? : AndroidFcmOptions ;
46+ restrictedPackageName? : string ;
47+ restrictedSatelliteOk? : boolean ;
48+ ttl? : number ;
49+ }
50+
2551// @public
2652export interface AndroidFcmOptions {
2753 analyticsLabel? : string ;
@@ -57,6 +83,49 @@ export interface AndroidNotification {
5783 visibility? : (' private' | ' public' | ' secret' );
5884}
5985
86+ // @public
87+ export interface AndroidNotificationV2 {
88+ body? : string ;
89+ bodyLocArgs? : string [];
90+ bodyLocKey? : string ;
91+ channelId? : string ;
92+ clickAction? : string ;
93+ color? : string ;
94+ defaultLightSettings? : boolean ;
95+ defaultSound? : boolean ;
96+ defaultVibrateTimings? : boolean ;
97+ eventTime? : Date ;
98+ icon? : string ;
99+ id? : string ;
100+ imageUrl? : string ;
101+ lightSettings? : LightSettings ;
102+ localOnly? : boolean ;
103+ notificationCount? : number ;
104+ priority? : (' min' | ' low' | ' default' | ' high' | ' max' );
105+ sound? : string ;
106+ sticky? : boolean ;
107+ tag? : string ;
108+ ticker? : string ;
109+ title? : string ;
110+ titleLocArgs? : string [];
111+ titleLocKey? : string ;
112+ vibrateTimingsMillis? : number [];
113+ visibility? : (' private' | ' public' | ' secret' );
114+ }
115+
116+ // @public
117+ export interface AndroidRemoteNotification {
118+ mutableContent? : boolean ;
119+ notification: AndroidNotificationV2 ;
120+ useAsV1DataMessage? : boolean ;
121+ }
122+
123+ // @public
124+ export interface AndroidRemoteNotificationConfig extends AndroidConfigV2Base {
125+ backgroundSync? : never ;
126+ remoteNotification: AndroidRemoteNotification ;
127+ }
128+
60129// @public
61130export interface ApnsConfig {
62131 fcmOptions? : ApnsFcmOptions ;
@@ -124,6 +193,8 @@ export interface BaseMessage {
124193 // (undocumented)
125194 android? : AndroidConfig ;
126195 // (undocumented)
196+ androidV2? : AndroidConfigV2 ;
197+ // (undocumented)
127198 apns? : ApnsConfig ;
128199 // (undocumented)
129200 data? : {
0 commit comments