@azure/notification-hubs 1.0.0-beta.6 → 1.0.0-beta.8

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.
Files changed (217) hide show
  1. package/README.md +86 -78
  2. package/dist/index.cjs +321 -369
  3. package/dist/index.cjs.map +1 -1
  4. package/dist-esm/src/{client → api}/beginSubmitNotificationHubJob.js +0 -0
  5. package/dist-esm/src/api/beginSubmitNotificationHubJob.js.map +1 -0
  6. package/dist-esm/src/{client → api}/cancelScheduledNotification.js +0 -0
  7. package/dist-esm/src/api/cancelScheduledNotification.js.map +1 -0
  8. package/dist-esm/src/{client → api}/createOrUpdateInstallation.js +0 -0
  9. package/dist-esm/src/api/createOrUpdateInstallation.js.map +1 -0
  10. package/dist-esm/src/{client → api}/createOrUpdateRegistration.js +0 -0
  11. package/dist-esm/src/api/createOrUpdateRegistration.js.map +1 -0
  12. package/dist-esm/src/{client → api}/createRegistration.js +0 -0
  13. package/dist-esm/src/api/createRegistration.js.map +1 -0
  14. package/dist-esm/src/{client → api}/createRegistrationId.js +8 -0
  15. package/dist-esm/src/api/createRegistrationId.js.map +1 -0
  16. package/dist-esm/src/{client → api}/deleteInstallation.js +0 -0
  17. package/dist-esm/src/api/deleteInstallation.js.map +1 -0
  18. package/dist-esm/src/{client → api}/deleteRegistration.js +0 -0
  19. package/dist-esm/src/api/deleteRegistration.js.map +1 -0
  20. package/dist-esm/src/{client → api}/getFeedbackContainerUrl.js +0 -0
  21. package/dist-esm/src/api/getFeedbackContainerUrl.js.map +1 -0
  22. package/dist-esm/src/{client → api}/getInstallation.js +0 -0
  23. package/dist-esm/src/api/getInstallation.js.map +1 -0
  24. package/dist-esm/src/{client → api}/getNotificationHubJob.js +0 -0
  25. package/dist-esm/src/api/getNotificationHubJob.js.map +1 -0
  26. package/dist-esm/src/{client → api}/getNotificationOutcomeDetails.js +0 -0
  27. package/dist-esm/src/api/getNotificationOutcomeDetails.js.map +1 -0
  28. package/dist-esm/src/{client → api}/getRegistration.js +0 -0
  29. package/dist-esm/src/api/getRegistration.js.map +1 -0
  30. package/dist-esm/src/{client → api}/index.js +22 -0
  31. package/dist-esm/src/api/index.js.map +1 -0
  32. package/dist-esm/src/{client → api}/internal/_client.js +1 -1
  33. package/dist-esm/src/api/internal/_client.js.map +1 -0
  34. package/dist-esm/src/{client → api}/internal/_createOrUpdateRegistrationDescription.js +0 -0
  35. package/dist-esm/src/api/internal/_createOrUpdateRegistrationDescription.js.map +1 -0
  36. package/dist-esm/src/{client/listRegistrations.js → api/internal/_listRegistrations.js} +6 -38
  37. package/dist-esm/src/api/internal/_listRegistrations.js.map +1 -0
  38. package/dist-esm/src/{client → api}/listNotificationHubJobs.js +0 -0
  39. package/dist-esm/src/api/listNotificationHubJobs.js.map +1 -0
  40. package/dist-esm/src/api/listRegistrations.js +35 -0
  41. package/dist-esm/src/api/listRegistrations.js.map +1 -0
  42. package/dist-esm/src/api/listRegistrationsByChannel.js +58 -0
  43. package/dist-esm/src/api/listRegistrationsByChannel.js.map +1 -0
  44. package/dist-esm/src/{client → api}/listRegistrationsByTag.js +0 -0
  45. package/dist-esm/src/api/listRegistrationsByTag.js.map +1 -0
  46. package/dist-esm/src/{client → api}/scheduleNotification.js +2 -3
  47. package/dist-esm/src/api/scheduleNotification.js.map +1 -0
  48. package/dist-esm/src/{client → api}/sendNotification.js +3 -3
  49. package/dist-esm/src/api/sendNotification.js.map +1 -0
  50. package/dist-esm/src/{client → api}/submitNotificationHubJob.js +0 -0
  51. package/dist-esm/src/api/submitNotificationHubJob.js.map +1 -0
  52. package/dist-esm/src/{client → api}/updateInstallation.js +0 -0
  53. package/dist-esm/src/api/updateInstallation.js.map +1 -0
  54. package/dist-esm/src/{client → api}/updateRegistration.js +0 -0
  55. package/dist-esm/src/api/updateRegistration.js.map +1 -0
  56. package/dist-esm/src/index.js +3 -2
  57. package/dist-esm/src/index.js.map +1 -1
  58. package/dist-esm/src/models/index.js +12 -0
  59. package/dist-esm/src/models/index.js.map +1 -0
  60. package/dist-esm/src/models/installation.js.map +1 -1
  61. package/dist-esm/src/models/notification.js.map +1 -1
  62. package/dist-esm/src/models/notificationBodyBuilder.js +48 -0
  63. package/dist-esm/src/models/notificationBodyBuilder.js.map +1 -0
  64. package/dist-esm/src/models/notificationDetails.js.map +1 -1
  65. package/dist-esm/src/models/options.js.map +1 -1
  66. package/dist-esm/src/models/registration.js +12 -12
  67. package/dist-esm/src/models/registration.js.map +1 -1
  68. package/dist-esm/src/models/tagExpressionBuilder.js +11 -0
  69. package/dist-esm/src/models/tagExpressionBuilder.js.map +1 -0
  70. package/dist-esm/src/notificationHubsClient.js +34 -24
  71. package/dist-esm/src/notificationHubsClient.js.map +1 -1
  72. package/dist-esm/src/serializers/notificationDetailsSerializer.js +1 -0
  73. package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -1
  74. package/dist-esm/src/serializers/notificationOutcomeSerializer.js +2 -2
  75. package/dist-esm/src/serializers/notificationOutcomeSerializer.js.map +1 -1
  76. package/dist-esm/src/serializers/registrationSerializer.js +17 -16
  77. package/dist-esm/src/serializers/registrationSerializer.js.map +1 -1
  78. package/dist-esm/src/utils/constants.js +1 -1
  79. package/dist-esm/src/utils/constants.js.map +1 -1
  80. package/dist-esm/src/utils/notificationUtils.js +0 -6
  81. package/dist-esm/src/utils/notificationUtils.js.map +1 -1
  82. package/package.json +23 -19
  83. package/types/3.1/notification-hubs.d.ts +420 -249
  84. package/types/latest/notification-hubs.d.ts +448 -254
  85. package/types/latest/tsdoc-metadata.json +1 -1
  86. package/types/src/{client → api}/beginSubmitNotificationHubJob.d.ts +0 -0
  87. package/types/src/api/beginSubmitNotificationHubJob.d.ts.map +1 -0
  88. package/types/src/{client → api}/cancelScheduledNotification.d.ts +0 -0
  89. package/types/src/api/cancelScheduledNotification.d.ts.map +1 -0
  90. package/types/src/{client → api}/createOrUpdateInstallation.d.ts +0 -0
  91. package/types/src/api/createOrUpdateInstallation.d.ts.map +1 -0
  92. package/types/src/{client → api}/createOrUpdateRegistration.d.ts +0 -0
  93. package/types/src/api/createOrUpdateRegistration.d.ts.map +1 -0
  94. package/types/src/{client → api}/createRegistration.d.ts +0 -0
  95. package/types/src/api/createRegistration.d.ts.map +1 -0
  96. package/types/src/{client → api}/createRegistrationId.d.ts +0 -0
  97. package/types/src/api/createRegistrationId.d.ts.map +1 -0
  98. package/types/src/{client → api}/deleteInstallation.d.ts +0 -0
  99. package/types/src/api/deleteInstallation.d.ts.map +1 -0
  100. package/types/src/{client → api}/deleteRegistration.d.ts +0 -0
  101. package/types/src/api/deleteRegistration.d.ts.map +1 -0
  102. package/types/src/{client → api}/getFeedbackContainerUrl.d.ts +0 -0
  103. package/types/src/api/getFeedbackContainerUrl.d.ts.map +1 -0
  104. package/types/src/{client → api}/getInstallation.d.ts +0 -0
  105. package/types/src/api/getInstallation.d.ts.map +1 -0
  106. package/types/src/{client → api}/getNotificationHubJob.d.ts +0 -0
  107. package/types/src/api/getNotificationHubJob.d.ts.map +1 -0
  108. package/types/src/{client → api}/getNotificationOutcomeDetails.d.ts +0 -0
  109. package/types/src/api/getNotificationOutcomeDetails.d.ts.map +1 -0
  110. package/types/src/{client → api}/getRegistration.d.ts +0 -0
  111. package/types/src/api/getRegistration.d.ts.map +1 -0
  112. package/types/src/{client → api}/index.d.ts +22 -0
  113. package/types/src/api/index.d.ts.map +1 -0
  114. package/types/src/{client → api}/internal/_client.d.ts +0 -0
  115. package/types/src/api/internal/_client.d.ts.map +1 -0
  116. package/types/src/{client → api}/internal/_createOrUpdateRegistrationDescription.d.ts +0 -0
  117. package/types/src/api/internal/_createOrUpdateRegistrationDescription.d.ts.map +1 -0
  118. package/types/src/api/internal/_listRegistrations.d.ts +6 -0
  119. package/types/src/api/internal/_listRegistrations.d.ts.map +1 -0
  120. package/types/src/{client → api}/listNotificationHubJobs.d.ts +0 -0
  121. package/types/src/api/listNotificationHubJobs.d.ts.map +1 -0
  122. package/types/src/{client → api}/listRegistrations.d.ts +3 -3
  123. package/types/src/api/listRegistrations.d.ts.map +1 -0
  124. package/types/src/api/listRegistrationsByChannel.d.ts +13 -0
  125. package/types/src/api/listRegistrationsByChannel.d.ts.map +1 -0
  126. package/types/src/{client → api}/listRegistrationsByTag.d.ts +0 -0
  127. package/types/src/api/listRegistrationsByTag.d.ts.map +1 -0
  128. package/types/src/{client → api}/scheduleNotification.d.ts +0 -0
  129. package/types/src/api/scheduleNotification.d.ts.map +1 -0
  130. package/types/src/{client → api}/sendNotification.d.ts +0 -0
  131. package/types/src/api/sendNotification.d.ts.map +1 -0
  132. package/types/src/{client → api}/submitNotificationHubJob.d.ts +0 -0
  133. package/types/src/api/submitNotificationHubJob.d.ts.map +1 -0
  134. package/types/src/{client → api}/updateInstallation.d.ts +0 -0
  135. package/types/src/api/updateInstallation.d.ts.map +1 -0
  136. package/types/src/{client → api}/updateRegistration.d.ts +0 -0
  137. package/types/src/api/updateRegistration.d.ts.map +1 -0
  138. package/types/src/index.d.ts +3 -2
  139. package/types/src/index.d.ts.map +1 -1
  140. package/types/src/models/index.d.ts +10 -0
  141. package/types/src/models/index.d.ts.map +1 -0
  142. package/types/src/models/installation.d.ts +12 -11
  143. package/types/src/models/installation.d.ts.map +1 -1
  144. package/types/src/models/notification.d.ts +10 -18
  145. package/types/src/models/notification.d.ts.map +1 -1
  146. package/types/src/models/{notificationBuilder.d.ts → notificationBodyBuilder.d.ts} +62 -64
  147. package/types/src/models/notificationBodyBuilder.d.ts.map +1 -0
  148. package/types/src/models/notificationDetails.d.ts +9 -9
  149. package/types/src/models/notificationDetails.d.ts.map +1 -1
  150. package/types/src/models/options.d.ts +4 -4
  151. package/types/src/models/options.d.ts.map +1 -1
  152. package/types/src/models/registration.d.ts +235 -69
  153. package/types/src/models/registration.d.ts.map +1 -1
  154. package/types/src/models/tagExpressionBuilder.d.ts +7 -0
  155. package/types/src/models/tagExpressionBuilder.d.ts.map +1 -0
  156. package/types/src/notificationHubsClient.d.ts +12 -5
  157. package/types/src/notificationHubsClient.d.ts.map +1 -1
  158. package/types/src/serializers/notificationDetailsSerializer.d.ts.map +1 -1
  159. package/types/src/serializers/registrationSerializer.d.ts +14 -14
  160. package/types/src/serializers/registrationSerializer.d.ts.map +1 -1
  161. package/types/src/utils/notificationUtils.d.ts +0 -4
  162. package/types/src/utils/notificationUtils.d.ts.map +1 -1
  163. package/dist-esm/src/client/beginSubmitNotificationHubJob.js.map +0 -1
  164. package/dist-esm/src/client/cancelScheduledNotification.js.map +0 -1
  165. package/dist-esm/src/client/createOrUpdateInstallation.js.map +0 -1
  166. package/dist-esm/src/client/createOrUpdateRegistration.js.map +0 -1
  167. package/dist-esm/src/client/createRegistration.js.map +0 -1
  168. package/dist-esm/src/client/createRegistrationId.js.map +0 -1
  169. package/dist-esm/src/client/deleteInstallation.js.map +0 -1
  170. package/dist-esm/src/client/deleteRegistration.js.map +0 -1
  171. package/dist-esm/src/client/getFeedbackContainerUrl.js.map +0 -1
  172. package/dist-esm/src/client/getInstallation.js.map +0 -1
  173. package/dist-esm/src/client/getNotificationHubJob.js.map +0 -1
  174. package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +0 -1
  175. package/dist-esm/src/client/getRegistration.js.map +0 -1
  176. package/dist-esm/src/client/index.js.map +0 -1
  177. package/dist-esm/src/client/internal/_client.js.map +0 -1
  178. package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js.map +0 -1
  179. package/dist-esm/src/client/listNotificationHubJobs.js.map +0 -1
  180. package/dist-esm/src/client/listRegistrations.js.map +0 -1
  181. package/dist-esm/src/client/listRegistrationsByTag.js.map +0 -1
  182. package/dist-esm/src/client/scheduleNotification.js.map +0 -1
  183. package/dist-esm/src/client/sendNotification.js.map +0 -1
  184. package/dist-esm/src/client/submitNotificationHubJob.js.map +0 -1
  185. package/dist-esm/src/client/updateInstallation.js.map +0 -1
  186. package/dist-esm/src/client/updateRegistration.js.map +0 -1
  187. package/dist-esm/src/models/notificationBuilder.js +0 -169
  188. package/dist-esm/src/models/notificationBuilder.js.map +0 -1
  189. package/dist-esm/src/utils/retryPolicy.js +0 -144
  190. package/dist-esm/src/utils/retryPolicy.js.map +0 -1
  191. package/types/src/client/beginSubmitNotificationHubJob.d.ts.map +0 -1
  192. package/types/src/client/cancelScheduledNotification.d.ts.map +0 -1
  193. package/types/src/client/createOrUpdateInstallation.d.ts.map +0 -1
  194. package/types/src/client/createOrUpdateRegistration.d.ts.map +0 -1
  195. package/types/src/client/createRegistration.d.ts.map +0 -1
  196. package/types/src/client/createRegistrationId.d.ts.map +0 -1
  197. package/types/src/client/deleteInstallation.d.ts.map +0 -1
  198. package/types/src/client/deleteRegistration.d.ts.map +0 -1
  199. package/types/src/client/getFeedbackContainerUrl.d.ts.map +0 -1
  200. package/types/src/client/getInstallation.d.ts.map +0 -1
  201. package/types/src/client/getNotificationHubJob.d.ts.map +0 -1
  202. package/types/src/client/getNotificationOutcomeDetails.d.ts.map +0 -1
  203. package/types/src/client/getRegistration.d.ts.map +0 -1
  204. package/types/src/client/index.d.ts.map +0 -1
  205. package/types/src/client/internal/_client.d.ts.map +0 -1
  206. package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts.map +0 -1
  207. package/types/src/client/listNotificationHubJobs.d.ts.map +0 -1
  208. package/types/src/client/listRegistrations.d.ts.map +0 -1
  209. package/types/src/client/listRegistrationsByTag.d.ts.map +0 -1
  210. package/types/src/client/scheduleNotification.d.ts.map +0 -1
  211. package/types/src/client/sendNotification.d.ts.map +0 -1
  212. package/types/src/client/submitNotificationHubJob.d.ts.map +0 -1
  213. package/types/src/client/updateInstallation.d.ts.map +0 -1
  214. package/types/src/client/updateRegistration.d.ts.map +0 -1
  215. package/types/src/models/notificationBuilder.d.ts.map +0 -1
  216. package/types/src/utils/retryPolicy.d.ts +0 -72
  217. package/types/src/utils/retryPolicy.d.ts.map +0 -1
@@ -76,27 +76,27 @@ export declare interface AdmNativeNotification {
76
76
  /**
77
77
  * The action associated with a user click on the notification.
78
78
  */
79
- clickAction?: string;
79
+ click_action?: string;
80
80
  /**
81
81
  * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
82
82
  */
83
- bodyLocKey?: string;
83
+ body_loc_key?: string;
84
84
  /**
85
85
  * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
86
86
  */
87
- bodyLocArgs?: string[];
87
+ body_loc_args?: string[];
88
88
  /**
89
89
  * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
90
90
  */
91
- titleLocKey?: string;
91
+ title_loc_key?: string;
92
92
  /**
93
93
  * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
94
94
  */
95
- titleLocArgs?: string[];
95
+ title_loc_args?: string[];
96
96
  /**
97
97
  * The notification's channel id.
98
98
  */
99
- channelId?: string;
99
+ channel_id?: string;
100
100
  /**
101
101
  * Sets the "ticker" text, which is sent to accessibility services.
102
102
  */
@@ -108,27 +108,27 @@ export declare interface AdmNativeNotification {
108
108
  /**
109
109
  * Set the time that the event in the notification occurred. Must be a timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
110
110
  */
111
- eventTime?: string;
111
+ event_time?: string;
112
112
  /**
113
113
  * Set whether or not this notification is relevant only to the current device.
114
114
  */
115
- localOnly?: boolean;
115
+ local_only?: boolean;
116
116
  /**
117
117
  * Set the relative priority for this notification.
118
118
  */
119
- notificationPriority?: number;
119
+ notification_priority?: "PRIORITY_UNSPECIFIED" | "PRIORITY_MIN" | "PRIORITY_LOW" | "PRIORITY_DEFAULT" | "PRIORITY_HIGH" | "PRIORITY_MAX";
120
120
  /**
121
121
  * If set to true, use the Android framework's default sound for the notification.
122
122
  */
123
- defaultSound?: boolean;
123
+ default_sound?: boolean;
124
124
  /**
125
125
  * Set the Notification.visibility of the notification.
126
126
  */
127
- visibility?: number;
127
+ visibility?: "VISIBILITY_UNSPECIFIED" | "PRIVATE" | "PUBLIC" | "SECRET";
128
128
  /**
129
129
  * Sets the number of items this notification represents.
130
130
  */
131
- notificationCount?: number;
131
+ notification_count?: number;
132
132
  /**
133
133
  * Contains the URL of an image that is going to be displayed in a notification.
134
134
  */
@@ -146,27 +146,50 @@ export declare interface AdmNotification extends JsonNotification {
146
146
  }
147
147
 
148
148
  /**
149
- * Represents the description of the Amazon Device Messaging (ADM) registration.
149
+ * Describes an ADM Registration channel query.
150
150
  */
151
- export declare interface AdmRegistrationDescription extends RegistrationDescriptionCommon {
151
+ export declare interface AdmRegistrationChannel {
152
152
  /**
153
- * The Amazon Device Messaging registration identifier.
153
+ * The ADM Registration ID.
154
154
  */
155
155
  admRegistrationId: string;
156
156
  /**
157
- * The type of the registration.
157
+ * The kind of the registration channel.
158
158
  */
159
- type: "Adm";
159
+ kind: "adm";
160
+ }
161
+
162
+ /**
163
+ * Represents the description of the Amazon Device Messaging (ADM) registration.
164
+ */
165
+ export declare interface AdmRegistrationDescription extends AdmRegistrationDescriptionCommon {
166
+ /**
167
+ * The kind of the registration.
168
+ */
169
+ kind: "Adm";
170
+ }
171
+
172
+ export declare interface AdmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
173
+ /**
174
+ * The Amazon Device Messaging registration identifier.
175
+ */
176
+ admRegistrationId: string;
160
177
  }
161
178
 
162
179
  /**
163
180
  * Represents the description of the Amazon Device Messaging (ADM) template registration.
164
181
  */
165
- export declare interface AdmTemplateRegistrationDescription extends Omit<AdmRegistrationDescription, "type">, TemplateRegistrationDescription {
182
+ export declare interface AdmTemplateRegistrationDescription extends AdmTemplateRegistrationDescriptionCommon {
166
183
  /**
167
- * The type of the registration.
184
+ * The kind of the registration.
168
185
  */
169
- type: "AdmTemplate";
186
+ kind: "AdmTemplate";
187
+ }
188
+
189
+ /**
190
+ * Represents the description of the Amazon Device Messaging (ADM) template registration.
191
+ */
192
+ export declare interface AdmTemplateRegistrationDescriptionCommon extends AdmRegistrationDescriptionCommon, TemplateRegistrationDescription {
170
193
  }
171
194
 
172
195
  /**
@@ -190,45 +213,45 @@ export declare interface AppleAlert {
190
213
  * The name of the launch image file to display. If the user chooses to launch your app,
191
214
  * the contents of the specified image or storyboard file are displayed instead of your app’s normal launch image.
192
215
  */
193
- launchImage?: string;
216
+ "launch-image"?: string;
194
217
  /**
195
218
  * The key for a localized title string. Specify this key instead of the title key to retrieve
196
219
  * the title from your app’s Localizable.strings files. The value must contain the name of a key in your strings file.
197
220
  */
198
- titleLocKey?: string;
221
+ "title-loc-key"?: string;
199
222
  /**
200
223
  * An array of strings containing replacement values for variables in your title string.
201
224
  * Each %\@ character in the string specified by the title-loc-key is replaced by a value
202
225
  * from this array. The first item in the array replaces the first instance
203
226
  * of the %\@ character in the string, the second item replaces the second instance, and so on.
204
227
  */
205
- titleLocArgs?: string[];
228
+ "title-loc-args"?: string[];
206
229
  /**
207
230
  * The key for a localized subtitle string. Use this key, instead of the subtitle key, to
208
231
  * retrieve the subtitle from your app’s Localizable.strings file.
209
232
  * The value must contain the name of a key in your strings file.
210
233
  */
211
- subtitleLocKey?: string;
234
+ "subtitle-loc-key"?: string;
212
235
  /**
213
236
  * An array of strings containing replacement values for variables in your title string.
214
237
  * Each %\@ character in the string specified by subtitle-loc-key is replaced by a value
215
238
  * from this array. The first item in the array replaces the first instance of the
216
239
  * %\@ character in the string, the second item replaces the second instance, and so on.
217
240
  */
218
- subtitleLocArgs?: string[];
241
+ "subtitle-loc-args"?: string[];
219
242
  /**
220
243
  * The key for a localized message string. Use this key, instead of the body key, to
221
244
  * retrieve the message text from your app’s Localizable.strings file. The value must contain
222
245
  * the name of a key in your strings file.
223
246
  */
224
- locKey?: string;
247
+ "loc-key"?: string;
225
248
  /**
226
249
  * An array of strings containing replacement values for variables in your message text.
227
250
  * Each %\@ character in the string specified by loc-key is replaced by a value from
228
251
  * this array. The first item in the array replaces the first instance of the %\@ character
229
252
  * in the string, the second item replaces the second instance, and so on.
230
253
  */
231
- locArgs?: string[];
254
+ "loc-args"?: string[];
232
255
  }
233
256
 
234
257
  /**
@@ -282,7 +305,7 @@ export declare interface AppleNativeMessage extends Record<string, any> {
282
305
  /**
283
306
  * An app-specific identifier for grouping related notifications.
284
307
  */
285
- threadId?: string;
308
+ "thread-id"?: string;
286
309
  /**
287
310
  * The notification’s type.
288
311
  */
@@ -291,29 +314,29 @@ export declare interface AppleNativeMessage extends Record<string, any> {
291
314
  * The background notification flag. To perform a silent background update,
292
315
  * specify the value 1 and don’t include the alert, badge, or sound keys in your payload.
293
316
  */
294
- contentAvailable?: number;
317
+ "content-available"?: number;
295
318
  /**
296
319
  * The notification service app extension flag. If the value is 1, the system passes
297
320
  * the notification to your notification service app extension before delivery.
298
321
  */
299
- mutableContent?: number;
322
+ "mutable-content"?: number;
300
323
  /**
301
324
  * The identifier of the window brought forward.
302
325
  */
303
- targetContentId?: string;
326
+ "target-content-id"?: string;
304
327
  /**
305
328
  * The importance and delivery timing of a notification.
306
329
  */
307
- interruptionLevel?: "passive" | "active" | "time-sensitive" | "critical";
330
+ "interruption-level"?: "passive" | "active" | "time-sensitive" | "critical";
308
331
  /**
309
332
  * The relevance score, a number between 0 and 1, that the system uses to sort the
310
333
  * notifications from your app. The highest score gets featured in the notification summary.
311
334
  */
312
- relevanceScore?: number;
335
+ "relevance-score"?: number;
313
336
  /**
314
337
  * The criteria the system evaluates to determine if it displays the notification in the current Focus.
315
338
  */
316
- filterCriteria?: string;
339
+ "filter-criteria"?: string;
317
340
  }
318
341
 
319
342
  /**
@@ -327,28 +350,53 @@ export declare interface AppleNotification extends JsonNotification {
327
350
  }
328
351
 
329
352
  /**
330
- * The priority of the Apple push notification.
353
+ * Describes an Apple Registration channel query.
354
+ */
355
+ export declare interface AppleRegistrationChannel {
356
+ /**
357
+ * The APNs device token.
358
+ */
359
+ deviceToken: string;
360
+ /**
361
+ * The kind of the registration channel.
362
+ */
363
+ kind: "apple";
364
+ }
365
+
366
+ /**
367
+ * Represents the description of apple registration.
331
368
  */
332
- export declare type ApplePriority = "10" | "5";
369
+ export declare interface AppleRegistrationDescription extends AppleRegistrationDescriptionCommon {
370
+ /**
371
+ * The kind of the registration.
372
+ */
373
+ kind: "Apple";
374
+ }
333
375
 
334
376
  /**
335
377
  * Represents the description of apple registration.
336
378
  */
337
- export declare interface AppleRegistrationDescription extends RegistrationDescriptionCommon {
379
+ export declare interface AppleRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
338
380
  /**
339
381
  * The APNs device token.
340
382
  */
341
383
  deviceToken: string;
384
+ }
385
+
386
+ /**
387
+ * Represents the description of the Apple template registration.
388
+ */
389
+ export declare interface AppleTemplateRegistrationDescription extends AppleTemplateRegistrationDescriptionCommon {
342
390
  /**
343
- * The type of the registration.
391
+ * The kind of the registration.
344
392
  */
345
- type: "Apple";
393
+ kind: "AppleTemplate";
346
394
  }
347
395
 
348
396
  /**
349
397
  * Represents the description of the Apple template registration.
350
398
  */
351
- export declare interface AppleTemplateRegistrationDescription extends Omit<AppleRegistrationDescription, "type">, TemplateRegistrationDescription {
399
+ export declare interface AppleTemplateRegistrationDescriptionCommon extends AppleRegistrationDescriptionCommon, TemplateRegistrationDescription {
352
400
  /**
353
401
  * The expiry date.
354
402
  */
@@ -356,15 +404,11 @@ export declare interface AppleTemplateRegistrationDescription extends Omit<Apple
356
404
  /**
357
405
  * The notification priority.
358
406
  */
359
- priority?: ApplePriority;
407
+ priority?: "10" | "5";
360
408
  /**
361
409
  * The APNS headers.
362
410
  */
363
411
  apnsHeaders?: Record<string, string>;
364
- /**
365
- * The type of the registration.
366
- */
367
- type: "AppleTemplate";
368
412
  }
369
413
 
370
414
  /**
@@ -412,23 +456,23 @@ export declare interface BaiduNativeMessage extends Record<string, any> {
412
456
  /**
413
457
  * Baidu Notification builder ID.
414
458
  */
415
- notificationBuilderId?: number;
459
+ notification_builder_id?: number;
416
460
  /**
417
461
  * Baidu Notification Android basic style.
418
462
  */
419
- notificationBasicStyle?: number;
463
+ notification_basic_style?: number;
420
464
  /**
421
465
  * Baidu Android open type.
422
466
  */
423
- openType?: number;
467
+ open_type?: number;
424
468
  /**
425
469
  * Baidu Android net support option.
426
470
  */
427
- netSupport?: number;
471
+ net_support?: number;
428
472
  /**
429
473
  * Baidu Android user confirm.
430
474
  */
431
- userConfirm?: number;
475
+ user_confirm?: number;
432
476
  /**
433
477
  * Baidu Android URL.
434
478
  */
@@ -436,15 +480,15 @@ export declare interface BaiduNativeMessage extends Record<string, any> {
436
480
  /**
437
481
  * Baidu Android package content.
438
482
  */
439
- pkgContent?: string;
483
+ pkg_content?: string;
440
484
  /**
441
485
  * Baidu Android package version.
442
486
  */
443
- pkgVersion?: string;
487
+ pkg_version?: string;
444
488
  /**
445
489
  * Baidu Android custom content dictionary.
446
490
  */
447
- customContent?: Record<string, any>;
491
+ custom_content?: Record<string, any>;
448
492
  /**
449
493
  * Baidu APNs support.
450
494
  */
@@ -461,10 +505,35 @@ export declare interface BaiduNotification extends JsonNotification {
461
505
  platform: "baidu";
462
506
  }
463
507
 
508
+ /**
509
+ * Describes an Baidu Registration channel query.
510
+ */
511
+ export declare interface BaiduRegistrationChannel {
512
+ /**
513
+ * The Baidu Channel ID.
514
+ */
515
+ baiduChannelId: string;
516
+ /**
517
+ * The Baidu User ID.
518
+ */
519
+ baiduUserId: string;
520
+ /**
521
+ * The kind of the registration channel.
522
+ */
523
+ kind: "baidu";
524
+ }
525
+
464
526
  /**
465
527
  * Represents a Baidu registration description.
466
528
  */
467
- export declare interface BaiduRegistrationDescription extends RegistrationDescriptionCommon {
529
+ export declare interface BaiduRegistrationDescription extends BaiduRegistrationDescriptionCommon {
530
+ /**
531
+ * The kind of the registration.
532
+ */
533
+ kind: "Baidu";
534
+ }
535
+
536
+ export declare interface BaiduRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
468
537
  /**
469
538
  * The Baidu user identifier.
470
539
  */
@@ -473,34 +542,42 @@ export declare interface BaiduRegistrationDescription extends RegistrationDescri
473
542
  * The Baidu channel identifier.
474
543
  */
475
544
  baiduChannelId: string;
545
+ }
546
+
547
+ /**
548
+ * Represents a Baidu template registration description.
549
+ */
550
+ export declare interface BaiduTemplateRegistrationDescription extends BaiduTemplateRegistrationDescriptionCommon {
476
551
  /**
477
- * The type of the registration.
552
+ * The kind of the registration.
478
553
  */
479
- type: "Baidu";
554
+ kind: "BaiduTemplate";
480
555
  }
481
556
 
482
557
  /**
483
558
  * Represents a Baidu template registration description.
484
559
  */
485
- export declare interface BaiduTemplateRegistrationDescription extends Omit<BaiduRegistrationDescription, "type">, TemplateRegistrationDescription {
560
+ export declare interface BaiduTemplateRegistrationDescriptionCommon extends BaiduRegistrationDescriptionCommon, TemplateRegistrationDescription {
561
+ }
562
+
563
+ /**
564
+ * Represents a Browser/Web Push based installation.
565
+ */
566
+ export declare interface BrowserInstallation extends BrowserInstallationCommon {
486
567
  /**
487
- * The type of the registration.
568
+ * The platform for the installation.
488
569
  */
489
- type: "BaiduTemplate";
570
+ platform: "browser";
490
571
  }
491
572
 
492
573
  /**
493
574
  * Represents a Browser/Web Push based installation.
494
575
  */
495
- export declare interface BrowserInstallation extends InstallationCommon {
576
+ export declare interface BrowserInstallationCommon extends InstallationCommon {
496
577
  /**
497
578
  * The push channel for the Web Push API.
498
579
  */
499
580
  pushChannel: BrowserPushChannel;
500
- /**
501
- * The platform for the installation.
502
- */
503
- platform: "browser";
504
581
  }
505
582
 
506
583
  /**
@@ -532,269 +609,309 @@ export declare interface BrowserPushChannel {
532
609
  }
533
610
 
534
611
  /**
535
- * Represents a Browser Push registration description.
612
+ * Describes an Browser Registration channel query.
536
613
  */
537
- export declare interface BrowserRegistrationDescription extends RegistrationDescriptionCommon {
614
+ export declare interface BrowserRegistrationChannel {
538
615
  /**
539
- * The Browser push endpoint.
616
+ * The Web Push endpoint URL.
540
617
  */
541
618
  endpoint: string;
542
619
  /**
543
- * The Browser push P256DH.
620
+ * The Web Push subscription P256DH.
544
621
  */
545
622
  p256dh: string;
546
623
  /**
547
- * The Browser push auth secret.
624
+ * The Web Push subscription auth secret.
548
625
  */
549
626
  auth: string;
550
627
  /**
551
- * The type of the registration.
628
+ * The kind of the registration channel.
552
629
  */
553
- type: "Browser";
630
+ kind: "browser";
554
631
  }
555
632
 
556
633
  /**
557
- * Represents a Browser Push remplate registration description.
634
+ * Represents a Browser Push registration description.
558
635
  */
559
- export declare interface BrowserTemplateRegistrationDescription extends Omit<BrowserRegistrationDescription, "type">, TemplateRegistrationDescription {
636
+ export declare interface BrowserRegistrationDescription extends BrowserRegistrationDescriptionCommon {
560
637
  /**
561
- * The type of the registration.
638
+ * The kind of the registration.
562
639
  */
563
- type: "BrowserTemplate";
640
+ kind: "Browser";
564
641
  }
565
642
 
566
643
  /**
567
- * Creates a AdmNotification from a native ADM payload.
568
- * @param nativeMessage - The native message payload to send to Notification Hubs.
569
- * @returns The AdmNotification to send to Notification Hubs.
570
- */
571
- export declare function buildAdmNativeMessage(nativeMessage: AdmNativeMessage): AdmNotification;
572
-
573
- /**
574
- * Creates an APNs native message to send to Notification Hubs.
575
- * @param nativeMessage - The Apple native message properties to set.
576
- * @param additionalProperties - Additional properties for Apple messages.
577
- * @returns An AppleNotification to send to Notification Hubs.
578
- */
579
- export declare function buildAppleNativeMessage(nativeMessage: AppleNativeMessage, additionalProperties?: Record<string, any>): AppleNotification;
580
-
581
- /**
582
- * Creates a BaiduNotification from a native Baidu payload.
583
- * @param nativeMessage - The native message payload to send to Notification Hubs.
584
- * @param additionalProperties - Additional properties for Apple Baidu messages.
585
- * @returns The BaiduNotification to send to Notification Hubs.
644
+ * Represents a Browser Push registration description.
586
645
  */
587
- export declare function buildBaiduNativeMessage(nativeMessage: BaiduNativeMessage, additionalProperties?: Record<string, any>): BaiduNotification;
646
+ export declare interface BrowserRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
647
+ /**
648
+ * The Browser push endpoint.
649
+ */
650
+ endpoint: string;
651
+ /**
652
+ * The Browser push P256DH.
653
+ */
654
+ p256dh: string;
655
+ /**
656
+ * The Browser push auth secret.
657
+ */
658
+ auth: string;
659
+ }
588
660
 
589
661
  /**
590
- * Creates a FcmLegacyNotification from a native Firebase payload.
591
- * @param nativeMessage - The native message payload to send to Notification Hubs.
592
- * @returns The FcmLegacyNotification to send to Notification Hubs.
662
+ * Represents a Browser Push remplate registration description.
593
663
  */
594
- export declare function buildFirebaseLegacyNativeMessage(nativeMessage: FirebaseLegacyNativeMessage): FcmLegacyNotification;
664
+ export declare interface BrowserTemplateRegistrationDescription extends BrowserTemplateRegistrationDescriptionCommon {
665
+ /**
666
+ * The kind of the registration.
667
+ */
668
+ kind: "BrowserTemplate";
669
+ }
595
670
 
596
671
  /**
597
- * Builds a WindowsNotification from a Windows Badge.
598
- * @param nativeMessage - The Windows Badge Message to build.
599
- * @returns A WindowsNotification created with the badge information.
672
+ * Represents a Browser Push remplate registration description.
600
673
  */
601
- export declare function buildWindowsBadgeNativeMessage(nativeMessage: WindowsBadgeNativeMessage): WindowsNotification;
674
+ export declare interface BrowserTemplateRegistrationDescriptionCommon extends BrowserRegistrationDescriptionCommon, TemplateRegistrationDescription {
675
+ }
602
676
 
603
677
  /**
604
678
  * Creates an Amazon Device Messaging (ADM) based installation.
605
679
  * @param installation - A partial installation used to create the ADM installation.
606
680
  * @returns The newly created ADM installation.
607
681
  */
608
- export declare function createAdmInstallation(installation: Omit<AdmInstallation, "platform">): AdmInstallation;
682
+ export declare function createAdmInstallation(installation: DeviceTokenInstallation): AdmInstallation;
609
683
 
610
684
  /**
611
685
  * Creates a notification to send to an Amazon Device Messaging device.
612
686
  * @param notification - A partial message used to create a message for Amazon Device Messaging.
613
687
  * @returns A newly created Amazon Device Messaging.
614
688
  */
615
- export declare function createAdmNotification(notification: Omit<AdmNotification, "platform" | "contentType">): AdmNotification;
689
+ export declare function createAdmNotification(notification: NotificationCommon): AdmNotification;
690
+
691
+ /**
692
+ * Creates a AdmNotification from a native ADM payload.
693
+ * @param nativeMessage - The native message payload to send to Notification Hubs.
694
+ * @returns The AdmNotification to send to Notification Hubs.
695
+ */
696
+ export declare function createAdmNotificationBody(nativeMessage: AdmNativeMessage): string;
616
697
 
617
698
  /**
618
699
  * Creates an ADM registration description.
619
700
  * @param description - A partial ADM registration description.
620
701
  * @returns A created ADM registration description.
621
702
  */
622
- export declare function createAdmRegistrationDescription(description: Omit<AdmRegistrationDescription, "type">): AdmRegistrationDescription;
703
+ export declare function createAdmRegistrationDescription(description: AdmRegistrationDescriptionCommon): AdmRegistrationDescription;
623
704
 
624
705
  /**
625
706
  * Creates an ADM template registration description.
626
707
  * @param description - A partial ADM template registration description.
627
708
  * @returns A created ADM template registration description.
628
709
  */
629
- export declare function createAdmTemplateRegistrationDescription(description: Omit<AdmTemplateRegistrationDescription, "type">): AdmTemplateRegistrationDescription;
710
+ export declare function createAdmTemplateRegistrationDescription(description: AdmTemplateRegistrationDescriptionCommon): AdmTemplateRegistrationDescription;
630
711
 
631
712
  /**
632
713
  * Creates an Apple based installation.
633
714
  * @param installation - A partial installation used to create the Apple installation.
634
715
  * @returns The newly created Apple installation.
635
716
  */
636
- export declare function createAppleInstallation(installation: Omit<AppleInstallation, "platform">): AppleInstallation;
717
+ export declare function createAppleInstallation(installation: DeviceTokenInstallation): AppleInstallation;
637
718
 
638
719
  /**
639
720
  * Creates a notification to send to an Apple device.
640
721
  * @param notification - A partial message used to create a message for Apple.
641
722
  * @returns A newly created Apple.
642
723
  */
643
- export declare function createAppleNotification(notification: Omit<AppleNotification, "platform" | "contentType">): AppleNotification;
724
+ export declare function createAppleNotification(notification: NotificationCommon): AppleNotification;
725
+
726
+ /**
727
+ * Creates an APNs native message to send to Notification Hubs.
728
+ * @param nativeMessage - The Apple native message properties to set.
729
+ * @param additionalProperties - Additional properties for Apple messages.
730
+ * @returns An AppleNotification to send to Notification Hubs.
731
+ */
732
+ export declare function createAppleNotificationBody(nativeMessage: AppleNativeMessage): string;
644
733
 
645
734
  /**
646
735
  * Creates an Apple registration description.
647
736
  * @param description - A partial Apple registration description.
648
737
  * @returns A created Apple registration description.
649
738
  */
650
- export declare function createAppleRegistrationDescription(description: Omit<AppleRegistrationDescription, "type">): AppleRegistrationDescription;
739
+ export declare function createAppleRegistrationDescription(description: AppleRegistrationDescriptionCommon): AppleRegistrationDescription;
651
740
 
652
741
  /**
653
742
  * Creates an Apple template registration description.
654
743
  * @param description - A partial Apple template registration description.
655
744
  * @returns A created Apple template registration description.
656
745
  */
657
- export declare function createAppleTemplateRegistrationDescription(description: Omit<AppleTemplateRegistrationDescription, "type">): AppleTemplateRegistrationDescription;
746
+ export declare function createAppleTemplateRegistrationDescription(description: AppleTemplateRegistrationDescriptionCommon): AppleTemplateRegistrationDescription;
658
747
 
659
748
  /**
660
749
  * Creates a Baidu based installation.
661
750
  * @param installation - A partial installation used to create the Baidu installation.
662
751
  * @returns The newly created Baidu installation.
663
752
  */
664
- export declare function createBaiduInstallation(installation: Omit<BaiduInstallation, "platform">): BaiduInstallation;
753
+ export declare function createBaiduInstallation(installation: DeviceTokenInstallation): BaiduInstallation;
665
754
 
666
755
  /**
667
756
  * Creates a notification to send to a Baidu registered device.
668
757
  * @param notification - A partial message used to create a message for Baidu.
669
758
  * @returns A newly created Baidu.
670
759
  */
671
- export declare function createBaiduNotification(notification: Omit<BaiduNotification, "platform" | "contentType">): BaiduNotification;
760
+ export declare function createBaiduNotification(notification: NotificationCommon): BaiduNotification;
761
+
762
+ /**
763
+ * Creates a BaiduNotification from a native Baidu payload.
764
+ * @param nativeMessage - The native message payload to send to Notification Hubs.
765
+ * @returns The JSON body to send to Notification Hubs.
766
+ */
767
+ export declare function createBaiduNotificationBody(nativeMessage: BaiduNativeMessage): string;
672
768
 
673
769
  /**
674
770
  * Creates a Baidu registration description.
675
771
  * @param description - A partial Baidu registration description.
676
772
  * @returns A created Baidu registration description.
677
773
  */
678
- export declare function createBaiduRegistrationDescription(description: Omit<BaiduRegistrationDescription, "type">): BaiduRegistrationDescription;
774
+ export declare function createBaiduRegistrationDescription(description: BaiduRegistrationDescriptionCommon): BaiduRegistrationDescription;
679
775
 
680
776
  /**
681
777
  * Creates a Baidu template registration description.
682
778
  * @param description - A partial Baidu template registration description.
683
779
  * @returns A created Baidu template registration description.
684
780
  */
685
- export declare function createBaiduTemplateRegistrationDescription(description: Omit<BaiduTemplateRegistrationDescription, "type">): BaiduTemplateRegistrationDescription;
781
+ export declare function createBaiduTemplateRegistrationDescription(description: BaiduTemplateRegistrationDescriptionCommon): BaiduTemplateRegistrationDescription;
686
782
 
687
783
  /**
688
784
  * Creates a Web Push based installation.
689
785
  * @param installation - A partial installation used to create the Web Push installation.
690
786
  * @returns The newly created Web Push installation.
691
787
  */
692
- export declare function createBrowserInstallation(installation: Omit<BrowserInstallation, "platform">): BrowserInstallation;
788
+ export declare function createBrowserInstallation(installation: BrowserInstallationCommon): BrowserInstallation;
693
789
 
694
790
  /**
695
791
  * Creates a notification to send to a browser.
696
792
  * @param notification - A partial message used to create a message for a browser.
697
793
  * @returns A newly created Web Push browser.
698
794
  */
699
- export declare function createBrowserNotification(notification: Omit<BrowserNotification, "platform" | "contentType">): BrowserNotification;
795
+ export declare function createBrowserNotification(notification: NotificationCommon): BrowserNotification;
700
796
 
701
797
  /**
702
798
  * Creates a Web Push registration description.
703
799
  * @param description - A partial Web Push registration description.
704
800
  * @returns A created Web Push registration description.
705
801
  */
706
- export declare function createBrowserRegistrationDescription(description: Omit<BrowserRegistrationDescription, "type">): BrowserRegistrationDescription;
802
+ export declare function createBrowserRegistrationDescription(description: BrowserRegistrationDescriptionCommon): BrowserRegistrationDescription;
707
803
 
708
804
  /**
709
805
  * Creates a Web Push registration description.
710
806
  * @param description - A partial Web Push template registration description.
711
807
  * @returns A created Web Push template registration description.
712
808
  */
713
- export declare function createBrowserTemplateRegistrationDescription(description: Omit<BrowserTemplateRegistrationDescription, "type">): BrowserTemplateRegistrationDescription;
809
+ export declare function createBrowserTemplateRegistrationDescription(description: BrowserTemplateRegistrationDescriptionCommon): BrowserTemplateRegistrationDescription;
714
810
 
715
811
  /**
716
812
  * Creates a Firebase legacy HTTP based installation.
717
813
  * @param installation - A partial installation used to create the Firebase Legacy HTTP installation.
718
814
  * @returns The newly created Baidu installation.
719
815
  */
720
- export declare function createFcmLegacyInstallation(installation: Omit<FcmLegacyInstallation, "platform">): FcmLegacyInstallation;
816
+ export declare function createFcmLegacyInstallation(installation: DeviceTokenInstallation): FcmLegacyInstallation;
721
817
 
722
818
  /**
723
819
  * Creates a notification to send to Firebase.
724
820
  * @param notification - A partial message used to create a message for Firebase.
725
821
  * @returns A newly created Firebase.
726
822
  */
727
- export declare function createFcmLegacyNotification(notification: Omit<FcmLegacyNotification, "platform" | "contentType">): FcmLegacyNotification;
823
+ export declare function createFcmLegacyNotification(notification: NotificationCommon): FcmLegacyNotification;
728
824
 
729
825
  /**
730
826
  * Creates a Firebase Legacy registration description.
731
827
  * @param description - A partial GCM registration description.
732
828
  * @returns A created GCM registration description.
733
829
  */
734
- export declare function createFcmLegacyRegistrationDescription(description: Omit<GcmRegistrationDescription, "type">): GcmRegistrationDescription;
830
+ export declare function createFcmLegacyRegistrationDescription(description: GcmRegistrationDescriptionCommon): GcmRegistrationDescription;
735
831
 
736
832
  /**
737
833
  * Creates a GCM template registration description.
738
834
  * @param description - A partial GCM template registration description.
739
835
  * @returns A created GCM template registration description.
740
836
  */
741
- export declare function createFcmLegacyTemplateRegistrationDescription(description: Omit<GcmTemplateRegistrationDescription, "type">): GcmTemplateRegistrationDescription;
837
+ export declare function createFcmLegacyTemplateRegistrationDescription(description: GcmTemplateRegistrationDescriptionCommon): GcmTemplateRegistrationDescription;
838
+
839
+ /**
840
+ * Creates a FcmLegacyNotification from a native Firebase payload.
841
+ * @param nativeMessage - The native message payload to send to Notification Hubs.
842
+ * @returns The JSON body to send to Notification Hubs.
843
+ */
844
+ export declare function createFirebaseLegacyNotificationBody(nativeMessage: FirebaseLegacyNativeMessage): string;
845
+
846
+ /**
847
+ * Creates a tag expression from a list of tags as a || expression.
848
+ * @param tags - The tags to create the || expression
849
+ * @returns The tag expression made from the array of strings into an || expression.
850
+ */
851
+ export declare function createTagExpression(tags: string[]): string;
742
852
 
743
853
  /**
744
854
  * Creates a notification to send to Firebase.
745
855
  * @param notification - A partial message used to create a message for Firebase.
746
856
  * @returns A newly created Firebase.
747
857
  */
748
- export declare function createTemplateNotification(notification: Omit<TemplateNotification, "platform" | "contentType">): TemplateNotification;
858
+ export declare function createTemplateNotification(notification: NotificationCommon): TemplateNotification;
749
859
 
750
860
  /**
751
861
  * Creates a badge message to send to WNS.
752
862
  * @param notification - A partial message used to create a badge message for WNS.
753
863
  * @returns A newly created WNS badge.
754
864
  */
755
- export declare function createWindowsBadgeNotification(notification: Omit<WindowsNotification, "platform" | "contentType">): WindowsNotification;
865
+ export declare function createWindowsBadgeNotification(notification: NotificationCommon): WindowsNotification;
866
+
867
+ /**
868
+ * Builds a WindowsNotification from a Windows Badge.
869
+ * @param nativeMessage - The Windows Badge Message to build.
870
+ * @returns The WNS XML created with the badge information.
871
+ */
872
+ export declare function createWindowsBadgeNotificationBody(nativeMessage: WindowsBadgeNativeMessage): string;
756
873
 
757
874
  /**
758
875
  * Creates a Windows Notification Services (WNS) based installation.
759
876
  * @param installation - A partial installation used to create the WNS installation.
760
877
  * @returns The newly created WNS installation.
761
878
  */
762
- export declare function createWindowsInstallation(installation: Omit<WindowsInstallation, "platform">): WindowsInstallation;
879
+ export declare function createWindowsInstallation(installation: DeviceTokenInstallation): WindowsInstallation;
763
880
 
764
881
  /**
765
882
  * Creates a notification to send to WNS in wns/raw format..
766
883
  * @param notification - A partial message used to create a message for WNS in XML format.
767
884
  * @returns A newly created WNS message using XML.
768
885
  */
769
- export declare function createWindowsRawNotification(notification: Omit<WindowsNotification, "platform" | "contentType">): WindowsNotification;
886
+ export declare function createWindowsRawNotification(notification: NotificationCommon): WindowsNotification;
770
887
 
771
888
  /**
772
889
  * Creates a Windows registration description.
773
890
  * @param description - A partial Windows registration description.
774
891
  * @returns A created Windows registration description.
775
892
  */
776
- export declare function createWindowsRegistrationDescription(description: Omit<WindowsRegistrationDescription, "type">): WindowsRegistrationDescription;
893
+ export declare function createWindowsRegistrationDescription(description: WindowsRegistrationDescriptionCommon): WindowsRegistrationDescription;
777
894
 
778
895
  /**
779
896
  * Creates a Windows template registration description.
780
897
  * @param description - A partial Windows template registration description.
781
898
  * @returns A created Windows template registration description.
782
899
  */
783
- export declare function createWindowsTemplateRegistrationDescription(description: Omit<WindowsTemplateRegistrationDescription, "type">): WindowsTemplateRegistrationDescription;
900
+ export declare function createWindowsTemplateRegistrationDescription(description: WindowsTemplateRegistrationDescriptionCommon): WindowsTemplateRegistrationDescription;
784
901
 
785
902
  /**
786
903
  * Creates a tile message to send to WNS.
787
904
  * @param notification - A partial message used to create a tile message for WNS.
788
905
  * @returns A newly created WNS tile.
789
906
  */
790
- export declare function createWindowsTileNotification(notification: Omit<WindowsNotification, "platform" | "contentType">): WindowsNotification;
907
+ export declare function createWindowsTileNotification(notification: NotificationCommon): WindowsNotification;
791
908
 
792
909
  /**
793
910
  * Creates a toast message to send to WNS.
794
911
  * @param notification - A partial message used to create a toast message for WNS.
795
912
  * @returns A newly created WNS toast.
796
913
  */
797
- export declare function createWindowsToastNotification(notification: Omit<WindowsNotification, "platform" | "contentType">): WindowsNotification;
914
+ export declare function createWindowsToastNotification(notification: NotificationCommon): WindowsNotification;
798
915
 
799
916
  /**
800
917
  * Represents an installation with a string based device token.
@@ -861,7 +978,7 @@ export declare interface FirebaseLegacyAndroidNativePayload {
861
978
  /**
862
979
  * The notification's channel ID.
863
980
  */
864
- androidChannelId?: string;
981
+ android_channel_id?: string;
865
982
  /**
866
983
  * The notification's icon.
867
984
  */
@@ -881,23 +998,23 @@ export declare interface FirebaseLegacyAndroidNativePayload {
881
998
  /**
882
999
  * The action associated with a user click on the notification.
883
1000
  */
884
- clickAction?: string;
1001
+ click_action?: string;
885
1002
  /**
886
1003
  * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
887
1004
  */
888
- bodyLocKey?: string;
1005
+ body_loc_key?: string;
889
1006
  /**
890
1007
  * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
891
1008
  */
892
- bodyLocArgs?: string[];
1009
+ body_loc_args?: string[];
893
1010
  /**
894
1011
  * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
895
1012
  */
896
- titleLocKey?: string;
1013
+ title_loc_key?: string;
897
1014
  /**
898
1015
  * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
899
1016
  */
900
- titleLocArgs?: string[];
1017
+ title_loc_args?: string[];
901
1018
  }
902
1019
 
903
1020
  /**
@@ -923,7 +1040,7 @@ export declare interface FirebaseLegacyAppleNativePayload {
923
1040
  /**
924
1041
  * The action associated with a user click on the notification which corresponds to the APNs category.
925
1042
  */
926
- clickAction?: string;
1043
+ click_action?: string;
927
1044
  /**
928
1045
  * The notification's subtitle.
929
1046
  */
@@ -931,19 +1048,19 @@ export declare interface FirebaseLegacyAppleNativePayload {
931
1048
  /**
932
1049
  * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
933
1050
  */
934
- bodyLocKey?: string;
1051
+ body_loc_key?: string;
935
1052
  /**
936
1053
  * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
937
1054
  */
938
- bodyLocArgs?: string[];
1055
+ body_loc_args?: string[];
939
1056
  /**
940
1057
  * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
941
1058
  */
942
- titleLocKey?: string;
1059
+ title_loc_key?: string;
943
1060
  /**
944
1061
  * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
945
1062
  */
946
- titleLocArgs?: string[];
1063
+ title_loc_args?: string[];
947
1064
  }
948
1065
 
949
1066
  /**
@@ -957,7 +1074,7 @@ export declare interface FirebaseLegacyNativeMessage {
957
1074
  /**
958
1075
  * The recipient of a multicast message, a message sent to more than one registration token.
959
1076
  */
960
- registrationIds?: string[];
1077
+ registration_ids?: string[];
961
1078
  /**
962
1079
  * A logical expression of conditions that determine the message target.
963
1080
  */
@@ -965,7 +1082,7 @@ export declare interface FirebaseLegacyNativeMessage {
965
1082
  /**
966
1083
  * Used to identify a group of messages.
967
1084
  */
968
- collapseKey?: string;
1085
+ collapse_key?: string;
969
1086
  /**
970
1087
  * The priority of the message.
971
1088
  */
@@ -974,24 +1091,24 @@ export declare interface FirebaseLegacyNativeMessage {
974
1091
  * The background notification flag. To perform a silent background update,
975
1092
  * specify the value 1 and don’t include the alert, badge, or sound keys in your payload.
976
1093
  */
977
- contentAvailable?: boolean;
1094
+ content_available?: boolean;
978
1095
  /**
979
1096
  * The notification service app extension flag. If the value is 1, the system passes
980
1097
  * the notification to your notification service app extension before delivery.
981
1098
  */
982
- mutableContent?: number;
1099
+ mutable_content?: number;
983
1100
  /**
984
1101
  * Specifies how long (in seconds) the message should be kept in FCM storage if the device is offline
985
1102
  */
986
- timeToLive?: number;
1103
+ time_to_live?: number;
987
1104
  /**
988
1105
  * The package name of the application where the registration tokens must match in order to receive the message.
989
1106
  */
990
- restrictedPackageName?: string;
1107
+ restricted_package_name?: string;
991
1108
  /**
992
1109
  * When set to true, allows developers to test a request without actually sending a message.
993
1110
  */
994
- dryRun?: boolean;
1111
+ dry_run?: boolean;
995
1112
  /**
996
1113
  * Custom key-value pairs of the message's payload.
997
1114
  */
@@ -1002,6 +1119,20 @@ export declare interface FirebaseLegacyNativeMessage {
1002
1119
  notification?: FirebaseLegacyAppleNativePayload | FirebaseLegacyAndroidNativePayload | FirebaseLegacyWebNativePayload;
1003
1120
  }
1004
1121
 
1122
+ /**
1123
+ * Describes an Firebase Legacy Registration channel query.
1124
+ */
1125
+ export declare interface FirebaseLegacyRegistrationChannel {
1126
+ /**
1127
+ * The FCM Legacy registration ID.
1128
+ */
1129
+ gcmRegistrationId: string;
1130
+ /**
1131
+ * The kind of the registration channel.
1132
+ */
1133
+ kind: "gcm";
1134
+ }
1135
+
1005
1136
  /**
1006
1137
  * Represents an Web Push native payload for the Firebase Legacy HTTP interface.
1007
1138
  */
@@ -1021,31 +1152,43 @@ export declare interface FirebaseLegacyWebNativePayload {
1021
1152
  /**
1022
1153
  * The action associated with a user click on the notification.
1023
1154
  */
1024
- clickAction?: string;
1155
+ click_action?: string;
1025
1156
  }
1026
1157
 
1027
1158
  /**
1028
1159
  * Represents Notification Hub registration description for Google Cloud Messaging.
1029
1160
  */
1030
- export declare interface GcmRegistrationDescription extends RegistrationDescriptionCommon {
1161
+ export declare interface GcmRegistrationDescription extends GcmRegistrationDescriptionCommon {
1031
1162
  /**
1032
- * Registration id obtained from the Google Cloud Messaging service.
1163
+ * The kind of the registration.
1033
1164
  */
1034
- gcmRegistrationId: string;
1165
+ kind: "Gcm";
1166
+ }
1167
+
1168
+ /**
1169
+ * Represents Notification Hub registration description for Google Cloud Messaging.
1170
+ */
1171
+ export declare interface GcmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
1035
1172
  /**
1036
- * The type of the registration.
1173
+ * Registration id obtained from the Google Cloud Messaging service.
1037
1174
  */
1038
- type: "Gcm";
1175
+ gcmRegistrationId: string;
1039
1176
  }
1040
1177
 
1041
1178
  /**
1042
1179
  * Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
1043
1180
  */
1044
- export declare interface GcmTemplateRegistrationDescription extends Omit<GcmRegistrationDescription, "type">, TemplateRegistrationDescription {
1181
+ export declare interface GcmTemplateRegistrationDescription extends GcmTemplateRegistrationDescriptionCommon {
1045
1182
  /**
1046
- * The type of the registration.
1183
+ * The kind of the registration.
1047
1184
  */
1048
- type: "GcmTemplate";
1185
+ kind: "GcmTemplate";
1186
+ }
1187
+
1188
+ /**
1189
+ * Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
1190
+ */
1191
+ export declare interface GcmTemplateRegistrationDescriptionCommon extends GcmRegistrationDescriptionCommon, TemplateRegistrationDescription {
1049
1192
  }
1050
1193
 
1051
1194
  /**
@@ -1073,10 +1216,6 @@ export declare interface InstallationCommon {
1073
1216
  * The last update date of the installation.
1074
1217
  */
1075
1218
  readonly lastUpdate?: string;
1076
- /**
1077
- * The platform for the installation.
1078
- */
1079
- platform: "apns" | "adm" | "baidu" | "browser" | "gcm" | "wns";
1080
1219
  /**
1081
1220
  * The tags used for targeting this installation.
1082
1221
  */
@@ -1142,30 +1281,59 @@ export declare type JsonPatchOperation = "add" | "remove" | "replace";
1142
1281
  * Represents a Windows Phone Notification Services registration description.
1143
1282
  * @deprecated Windows Phone is no longer supported.
1144
1283
  */
1145
- export declare interface MpnsRegistrationDescription extends RegistrationDescriptionCommon {
1284
+ export declare interface MpnsRegistrationDescription extends MpnsRegistrationDescriptionCommon {
1146
1285
  /**
1147
- * The channel URI.
1286
+ * The kind of the registration.
1148
1287
  */
1149
- channelUri: string;
1288
+ kind: "Mpns";
1289
+ }
1290
+
1291
+ /**
1292
+ * Represents a Windows Phone Notification Services registration description.
1293
+ * @deprecated Windows Phone is no longer supported.
1294
+ */
1295
+ export declare interface MpnsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
1150
1296
  /**
1151
- * The type of the registration.
1297
+ * The channel URI.
1152
1298
  */
1153
- type: "Mpns";
1299
+ channelUri: string;
1154
1300
  }
1155
1301
 
1156
1302
  /**
1157
1303
  * Represents a Windows Phone Notification Services template registration.
1158
1304
  * @deprecated Windows Phone is no longer supported.
1159
1305
  */
1160
- export declare interface MpnsTemplateRegistrationDescription extends Omit<MpnsRegistrationDescription, "type">, TemplateRegistrationDescription {
1306
+ export declare interface MpnsTemplateRegistrationDescription extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
1161
1307
  /**
1162
1308
  * The WNS headers.
1163
1309
  */
1164
1310
  mpnsHeaders?: Record<string, string>;
1165
1311
  /**
1166
- * The type of the registration.
1312
+ * The kind of the registration.
1313
+ */
1314
+ kind: "MpnsTemplate";
1315
+ }
1316
+
1317
+ /**
1318
+ * Represents a Windows Phone Notification Services template registration.
1319
+ * @deprecated Windows Phone is no longer supported.
1320
+ */
1321
+ export declare interface MpnsTemplateRegistrationDescription extends MpnsTemplateRegistrationDescriptionCommon {
1322
+ /**
1323
+ * The kind of the registration.
1167
1324
  */
1168
- type: "MpnsTemplate";
1325
+ kind: "MpnsTemplate";
1326
+ }
1327
+
1328
+ /**
1329
+ * Represents a Windows Phone Notification Services template registration.
1330
+ * @deprecated Windows Phone is no longer supported.
1331
+ */
1332
+ export declare interface MpnsTemplateRegistrationDescriptionCommon extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
1333
+ /**
1334
+ * The WNS headers.
1335
+ */
1336
+ mpnsHeaders?: Record<string, string>;
1169
1337
  }
1170
1338
 
1171
1339
  /**
@@ -1185,14 +1353,6 @@ export declare interface NotificationCommon {
1185
1353
  * The headers to include for the push notification.
1186
1354
  */
1187
1355
  headers?: Record<string, string>;
1188
- /**
1189
- * The platform for the push notification.
1190
- */
1191
- platform: string;
1192
- /**
1193
- * The content type for the push notification.
1194
- */
1195
- contentType: string;
1196
1356
  }
1197
1357
 
1198
1358
  /**
@@ -1242,27 +1402,27 @@ export declare interface NotificationDetails {
1242
1402
  /**
1243
1403
  * APNs outcomes counts per state.
1244
1404
  */
1245
- apnsOutcomeCounts?: NotificationOutcomeCollectionItem[];
1405
+ apnsOutcomeCounts?: NotificationOutcome[];
1246
1406
  /**
1247
1407
  * WNS outcomes counts per state.
1248
1408
  */
1249
- wnsOutcomeCounts?: NotificationOutcomeCollectionItem[];
1409
+ wnsOutcomeCounts?: NotificationOutcome[];
1250
1410
  /**
1251
1411
  * FCM outcome counts per state.
1252
1412
  */
1253
- fcmOutcomeCounts?: NotificationOutcomeCollectionItem[];
1413
+ fcmOutcomeCounts?: NotificationOutcome[];
1254
1414
  /**
1255
1415
  * ADM outcome counts per state.
1256
1416
  */
1257
- admOutcomeCounts?: NotificationOutcomeCollectionItem[];
1417
+ admOutcomeCounts?: NotificationOutcome[];
1258
1418
  /**
1259
1419
  * Baidu outcome counts per state.
1260
1420
  */
1261
- baiduOutcomeCounts?: NotificationOutcomeCollectionItem[];
1421
+ baiduOutcomeCounts?: NotificationOutcome[];
1262
1422
  /**
1263
1423
  * Web Push outcome counts per state.
1264
1424
  */
1265
- browserOutcomeCounts?: NotificationOutcomeCollectionItem[];
1425
+ browserOutcomeCounts?: NotificationOutcome[];
1266
1426
  }
1267
1427
 
1268
1428
  /**
@@ -1376,61 +1536,11 @@ export declare type NotificationHubJobType =
1376
1536
  */
1377
1537
  | "ImportUpsertRegistrations";
1378
1538
 
1379
- /**
1380
- * Describes the options that can be provided while creating the NotificationHubsClientContext.
1381
- */
1382
- export declare interface NotificationHubsClientOptions extends CommonClientOptions {
1383
- }
1384
-
1385
- /**
1386
- * Describes a response from the Notification Hubs service for send operations.
1387
- */
1388
- export declare interface NotificationHubsMessageResponse extends NotificationHubsResponse {
1389
- /**
1390
- * The notification ID from the operation. Note this is only available in Standard SKU and above.
1391
- */
1392
- notificationId?: string;
1393
- /**
1394
- * The number of devices that successfully received the notification.
1395
- */
1396
- success: number;
1397
- /**
1398
- * The number of devices that failed to receive a notification.
1399
- */
1400
- failure: number;
1401
- /**
1402
- * The list of notification outcome results for each device registered with the hub, to which this notification was sent.
1403
- */
1404
- results: RegistrationResult[];
1405
- /**
1406
- * The state of this notification outcome.
1407
- */
1408
- state: NotificationOutcomeState;
1409
- }
1410
-
1411
- /**
1412
- * Describes a response from the Notification Hubs which includes a tracking ID, correlation ID and location.
1413
- */
1414
- export declare interface NotificationHubsResponse {
1415
- /**
1416
- * The Tracking ID of the operation.
1417
- */
1418
- trackingId?: string;
1419
- /**
1420
- * The correlation ID of the operation.
1421
- */
1422
- correlationId?: string;
1423
- /**
1424
- * The location of the operation.
1425
- */
1426
- location?: string;
1427
- }
1428
-
1429
1539
  /**
1430
1540
  * This represents a client for Azure Notification Hubs to manage installations and send
1431
1541
  * messages to devices.
1432
1542
  */
1433
- export declare class NotificationHubsServiceClient {
1543
+ export declare class NotificationHubsClient {
1434
1544
  private _client;
1435
1545
  /**
1436
1546
  * Creates a new instance of the NotificationClient with a connection string, hub name and options.
@@ -1513,10 +1623,17 @@ export declare class NotificationHubsServiceClient {
1513
1623
  getRegistration(registrationId: string, options?: OperationOptions): Promise<RegistrationDescription>;
1514
1624
  /**
1515
1625
  * Gets all registrations for the notification hub with the given query options.
1516
- * @param options - The options for querying the registrations such as $top and $filter.
1626
+ * @param options - The options for querying the registrations such as $top.
1517
1627
  * @returns A paged async iterable containing all of the registrations for the notification hub.
1518
1628
  */
1519
- listRegistrations(options?: RegistrationQueryOptions): PagedAsyncIterableIterator<RegistrationDescription>;
1629
+ listRegistrations(options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
1630
+ /**
1631
+ * Gets all registrations for the notification hub with the given device information and options.
1632
+ * @param channel - The registration channel information to query per PNS type.
1633
+ * @param options - The options for querying the registrations such as $top.
1634
+ * @returns A paged async iterable containing all of the registrations for the notification hub.
1635
+ */
1636
+ listRegistrationsByChannel(channel: RegistrationChannel, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
1520
1637
  /**
1521
1638
  * Lists all registrations with the matching tag.
1522
1639
  * @param tag - The tag to query for matching registrations.
@@ -1591,10 +1708,60 @@ export declare class NotificationHubsServiceClient {
1591
1708
  listNotificationHubJobs(options?: OperationOptions): Promise<NotificationHubJob[]>;
1592
1709
  }
1593
1710
 
1711
+ /**
1712
+ * Describes the options that can be provided while creating the NotificationHubsClientContext.
1713
+ */
1714
+ export declare interface NotificationHubsClientOptions extends CommonClientOptions {
1715
+ }
1716
+
1717
+ /**
1718
+ * Describes a response from the Notification Hubs service for send operations.
1719
+ */
1720
+ export declare interface NotificationHubsMessageResponse extends NotificationHubsResponse {
1721
+ /**
1722
+ * The notification ID from the operation. Note this is only available in Standard SKU and above.
1723
+ */
1724
+ notificationId?: string;
1725
+ /**
1726
+ * The number of devices that successfully received the notification.
1727
+ */
1728
+ successCount: number;
1729
+ /**
1730
+ * The number of devices that failed to receive a notification.
1731
+ */
1732
+ failureCount: number;
1733
+ /**
1734
+ * The list of notification outcome results for each device registered with the hub, to which this notification was sent.
1735
+ */
1736
+ results: RegistrationResult[];
1737
+ /**
1738
+ * The state of this notification outcome.
1739
+ */
1740
+ state: NotificationOutcomeState;
1741
+ }
1742
+
1743
+ /**
1744
+ * Describes a response from the Notification Hubs which includes a tracking ID, correlation ID and location.
1745
+ */
1746
+ export declare interface NotificationHubsResponse {
1747
+ /**
1748
+ * The Tracking ID of the operation.
1749
+ */
1750
+ trackingId?: string;
1751
+ /**
1752
+ * The correlation ID of the operation.
1753
+ */
1754
+ correlationId?: string;
1755
+ /**
1756
+ * The location of the operation.
1757
+ */
1758
+ location?: string;
1759
+ }
1760
+
1594
1761
  /**
1595
1762
  * The per platform count per state.
1596
1763
  */
1597
- export declare interface NotificationOutcomeCollectionItem {
1764
+ export declare interface NotificationOutcome {
1598
1765
  /**
1599
1766
  * The state of the notification.
1600
1767
  */
@@ -1625,6 +1792,11 @@ export declare interface PolledOperationOptions extends OperationOptions {
1625
1792
  */
1626
1793
  export declare type PushHandle = BrowserPushChannel | string;
1627
1794
 
1795
+ /**
1796
+ * Describes a Registration query.
1797
+ */
1798
+ export declare type RegistrationChannel = AdmRegistrationChannel | AppleRegistrationChannel | BaiduRegistrationChannel | BrowserRegistrationChannel | FirebaseLegacyRegistrationChannel | WindowsRegistrationChannel;
1799
+
1628
1800
  /**
1629
1801
  * Describes the types of registration descriptions.
1630
1802
  */
@@ -1654,10 +1826,6 @@ export declare interface RegistrationDescriptionCommon {
1654
1826
  * A dictionary of push variables associated with property bag.
1655
1827
  */
1656
1828
  pushVariables?: Record<string, string>;
1657
- /**
1658
- * The type of the registration.
1659
- */
1660
- type: RegistrationType;
1661
1829
  }
1662
1830
 
1663
1831
  /**
@@ -1726,10 +1894,10 @@ export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleT
1726
1894
  */
1727
1895
  export declare interface ScheduleNotificationOptions extends OperationOptions {
1728
1896
  /**
1729
- * The tags used to target the device for push notifications in either an array as "an || condition" or tag expression.
1897
+ * A tag expression used to target devices. Use the `createTagExpression` function to create a tag expression from an array of tags.
1730
1898
  * If not set, this results in a broadcast notification to be scheduled.
1731
1899
  */
1732
- tags?: string | string[];
1900
+ tagExpression?: string;
1733
1901
  }
1734
1902
 
1735
1903
  /**
@@ -1737,10 +1905,10 @@ export declare interface ScheduleNotificationOptions extends OperationOptions {
1737
1905
  */
1738
1906
  export declare interface SendNotificationOptions extends OperationOptions {
1739
1907
  /**
1740
- * The tags used to target the device for push notifications in either an array as "an || condition" or tag expression.
1908
+ * A tag expression used to target devices. Use the `createTagExpression` function to create a tag expression from an array of tags.
1741
1909
  * If not set, this results in a broadcast notification to be sent.
1742
1910
  */
1743
- tags?: string | string[];
1911
+ tagExpression?: string;
1744
1912
  /**
1745
1913
  * Set to true to enable test send.
1746
1914
  */
@@ -1815,32 +1983,58 @@ export declare interface WindowsNotification extends NotificationCommon {
1815
1983
  contentType: WindowsContentType;
1816
1984
  }
1817
1985
 
1986
+ /**
1987
+ * Describes an Windows Notification Services Registration channel query.
1988
+ */
1989
+ export declare interface WindowsRegistrationChannel {
1990
+ /**
1991
+ * The WNS Channel URI.
1992
+ */
1993
+ channelUri: string;
1994
+ /**
1995
+ * The kind of the registration channel.
1996
+ */
1997
+ kind: "windows";
1998
+ }
1999
+
1818
2000
  /**
1819
2001
  * Represents a Windows Notification Services (WNS) registration description.
1820
2002
  */
1821
- export declare interface WindowsRegistrationDescription extends RegistrationDescriptionCommon {
2003
+ export declare interface WindowsRegistrationDescription extends WindowsRegistrationDescriptionCommon {
2004
+ /**
2005
+ * The kind of the registration.
2006
+ */
2007
+ kind: "Windows";
2008
+ }
2009
+
2010
+ /**
2011
+ * Represents a Windows Notification Services (WNS) registration description.
2012
+ */
2013
+ export declare interface WindowsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
1822
2014
  /**
1823
2015
  * The channel URI.
1824
2016
  */
1825
2017
  channelUri: string;
2018
+ }
2019
+
2020
+ /**
2021
+ * Represents a Windows Notification Services (WNS) template registration.
2022
+ */
2023
+ export declare interface WindowsTemplateRegistrationDescription extends WindowsTemplateRegistrationDescriptionCommon {
1826
2024
  /**
1827
- * The type of the registration.
2025
+ * The kind of the registration.
1828
2026
  */
1829
- type: "Windows";
2027
+ kind: "WindowsTemplate";
1830
2028
  }
1831
2029
 
1832
2030
  /**
1833
2031
  * Represents a Windows Notification Services (WNS) template registration.
1834
2032
  */
1835
- export declare interface WindowsTemplateRegistrationDescription extends Omit<WindowsRegistrationDescription, "type">, TemplateRegistrationDescription {
2033
+ export declare interface WindowsTemplateRegistrationDescriptionCommon extends WindowsRegistrationDescriptionCommon, TemplateRegistrationDescription {
1836
2034
  /**
1837
2035
  * The WNS headers.
1838
2036
  */
1839
2037
  wnsHeaders?: Record<string, string>;
1840
- /**
1841
- * The type of the registration.
1842
- */
1843
- type: "WindowsTemplate";
1844
2038
  }
1845
2039
 
1846
2040
  export { }