1111import type * as functions from "../functions.js" ;
1212import type * as helpers from "../helpers.js" ;
1313import type * as internal_ from "../internal.js" ;
14- import type * as public from "../public.js" ;
14+ import type * as public_ from "../public.js" ;
1515
1616import type {
1717 ApiFromModules ,
@@ -31,7 +31,7 @@ declare const fullApi: ApiFromModules<{
3131 functions : typeof functions ;
3232 helpers : typeof helpers ;
3333 internal : typeof internal_ ;
34- public : typeof public ;
34+ public : typeof public_ ;
3535} > ;
3636export type Mounts = {
3737 public : {
@@ -46,12 +46,23 @@ export type Mounts = {
4646 "public" ,
4747 { id : string ; logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" } ,
4848 null | {
49+ _contentAvailable ?: boolean ;
4950 _creationTime : number ;
51+ badge ?: number ;
5052 body ?: string ;
51- categoryIdentifier ?: string ;
53+ categoryId ?: string ;
54+ channelId ?: string ;
5255 data ?: any ;
56+ expiration ?: number ;
57+ interruptionLevel ?:
58+ | "active"
59+ | "critical"
60+ | "passive"
61+ | "time-sensitive" ;
62+ mutableContent ?: boolean ;
5363 numPreviousFailures : number ;
54- sound ?: string ;
64+ priority ?: "default" | "normal" | "high" ;
65+ sound ?: string | null ;
5566 state :
5667 | "awaiting_delivery"
5768 | "in_progress"
@@ -61,7 +72,8 @@ export type Mounts = {
6172 | "maybe_delivered"
6273 | "unable_to_deliver" ;
6374 subtitle ?: string ;
64- title : string ;
75+ title ?: string ;
76+ ttl ?: number ;
6577 }
6678 > ;
6779 getNotificationsForUser : FunctionReference <
@@ -73,13 +85,24 @@ export type Mounts = {
7385 userId : string ;
7486 } ,
7587 Array < {
88+ _contentAvailable ?: boolean ;
7689 _creationTime : number ;
90+ badge ?: number ;
7791 body ?: string ;
78- categoryIdentifier ?: string ;
92+ categoryId ?: string ;
93+ channelId ?: string ;
7994 data ?: any ;
95+ expiration ?: number ;
8096 id : string ;
97+ interruptionLevel ?:
98+ | "active"
99+ | "critical"
100+ | "passive"
101+ | "time-sensitive" ;
102+ mutableContent ?: boolean ;
81103 numPreviousFailures : number ;
82- sound ?: string ;
104+ priority ?: "default" | "normal" | "high" ;
105+ sound ?: string | null ;
83106 state :
84107 | "awaiting_delivery"
85108 | "in_progress"
@@ -89,7 +112,8 @@ export type Mounts = {
89112 | "maybe_delivered"
90113 | "unable_to_deliver" ;
91114 subtitle ?: string ;
92- title : string ;
115+ title ?: string ;
116+ ttl ?: number ;
93117 } >
94118 > ;
95119 getStatusForUser : FunctionReference <
@@ -133,17 +157,61 @@ export type Mounts = {
133157 allowUnregisteredTokens ?: boolean ;
134158 logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ;
135159 notification : {
160+ _contentAvailable ?: boolean ;
161+ badge ?: number ;
136162 body ?: string ;
137- categoryIdentifier ?: string ;
163+ categoryId ?: string ;
164+ channelId ?: string ;
138165 data ?: any ;
139- sound ?: string ;
166+ expiration ?: number ;
167+ interruptionLevel ?:
168+ | "active"
169+ | "critical"
170+ | "passive"
171+ | "time-sensitive" ;
172+ mutableContent ?: boolean ;
173+ priority ?: "default" | "normal" | "high" ;
174+ sound ?: string | null ;
140175 subtitle ?: string ;
141- title : string ;
176+ title ?: string ;
177+ ttl ?: number ;
142178 } ;
143179 userId : string ;
144180 } ,
145181 string | null
146182 > ;
183+ sendPushNotificationBatch : FunctionReference <
184+ "mutation" ,
185+ "public" ,
186+ {
187+ allowUnregisteredTokens ?: boolean ;
188+ logLevel : "DEBUG" | "INFO" | "WARN" | "ERROR" ;
189+ notifications : Array < {
190+ notification : {
191+ _contentAvailable ?: boolean ;
192+ badge ?: number ;
193+ body ?: string ;
194+ categoryId ?: string ;
195+ channelId ?: string ;
196+ data ?: any ;
197+ expiration ?: number ;
198+ interruptionLevel ?:
199+ | "active"
200+ | "critical"
201+ | "passive"
202+ | "time-sensitive" ;
203+ mutableContent ?: boolean ;
204+ priority ?: "default" | "normal" | "high" ;
205+ sound ?: string | null ;
206+ subtitle ?: string ;
207+ title ?: string ;
208+ ttl ?: number ;
209+ } ;
210+ userId : string ;
211+ } > ;
212+ } ,
213+ Array < string | null >
214+ > ;
147215 shutdown : FunctionReference <
148216 "mutation" ,
149217 "public" ,
0 commit comments