You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -25,13 +25,9 @@ export class BasicNotification {
25
25
*/
26
26
'excluded_segments'?: Array<string>;
27
27
/**
28
-
* Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
28
+
* Specific subscription ids to send your notification to. _Does not require API Auth Key._ Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
29
29
*/
30
-
'include_player_ids'?: Array<string>;
31
-
/**
32
-
* Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms.
33
-
*/
34
-
'include_external_user_ids'?: Array<string>;
30
+
'include_subscription_ids'?: Array<string>;
35
31
/**
36
32
* Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call
37
33
*/
@@ -41,30 +37,33 @@ export class BasicNotification {
41
37
*/
42
38
'include_phone_numbers'?: Array<string>;
43
39
/**
44
-
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call
40
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call
45
41
*/
46
42
'include_ios_tokens'?: Array<string>;
47
43
/**
48
-
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call
44
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call
49
45
*/
50
46
'include_wp_wns_uris'?: Array<string>;
51
47
/**
52
-
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call
48
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call
53
49
*/
54
50
'include_amazon_reg_ids'?: Array<string>;
55
51
/**
56
-
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
52
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
57
53
*/
58
54
'include_chrome_reg_ids'?: Array<string>;
59
55
/**
60
-
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
56
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
61
57
*/
62
58
'include_chrome_web_reg_ids'?: Array<string>;
63
59
/**
64
-
* Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
60
+
* Not Recommended: Please consider using include_subscription_ids or include_aliases instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call
* Target specific users by aliases assigned via API. An alias can be an external_id, onesignal_id, or a custom alias. Accepts an object where keys are alias labels and values are arrays of alias IDs to include Example usage: { \"external_id\": [\"exId1\", \"extId2\"], \"internal_label\": [\"id1\", \"id2\"] } Not compatible with any other targeting parameters. REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call Note: If targeting push, email, or sms subscribers with same ids, use with target_channel to indicate you are sending a push or email or sms.
@@ -114,20 +113,16 @@ export class BasicNotification {
114
113
*/
115
114
'is_chrome'?: boolean;
116
115
/**
117
-
* Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS.
118
-
*/
119
-
'channel_for_external_user_ids'?: string;
120
-
/**
121
116
* Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434.
122
117
*/
123
118
'app_id': string;
124
119
/**
125
120
* Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
126
121
*/
127
122
'external_id'?: string;
128
-
'contents'?: StringMap;
129
-
'headings'?: StringMap;
130
-
'subtitle'?: StringMap;
123
+
'contents'?: LanguageStringMap;
124
+
'headings'?: LanguageStringMap;
125
+
'subtitle'?: LanguageStringMap;
131
126
/**
132
127
* Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1}
133
128
*/
@@ -195,7 +190,7 @@ export class BasicNotification {
195
190
/**
196
191
* Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}]
197
192
*/
198
-
'web_buttons'?: Array<Button>;
193
+
'web_buttons'?: Array<WebButton>;
199
194
/**
200
195
* Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category.
201
196
*/
@@ -374,6 +369,14 @@ export class BasicNotification {
374
369
*/
375
370
'summary_arg_count'?: number;
376
371
/**
372
+
* Channel: Push Notifications Platform: iOS 15+ A score to be set per notification to indicate how it should be displayed when grouped. Use a float between 0-1.
373
+
*/
374
+
'ios_relevance_score'?: number;
375
+
/**
376
+
* Channel: Push Notifications Platform: iOS 15+ Focus Modes and Interruption Levels indicate the priority and delivery timing of a notification, to \"interrupt\" the user. Can choose from options: [\'active\', \'passive\', \'time_sensitive\', \'critical\']. Default is active.
377
+
*/
378
+
'ios_interruption_level'?: string;
379
+
/**
377
380
* Channel: Email Required. The subject of the email.
378
381
*/
379
382
'email_subject'?: string;
@@ -405,7 +408,7 @@ export class BasicNotification {
405
408
* Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs.
406
409
*/
407
410
'sms_media_urls'?: Array<string>;
408
-
'filters'?: Array<Filter>;
411
+
'filters'?: Array<FilterExpression>;
409
412
/**
410
413
* Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
411
414
*/
@@ -427,14 +430,8 @@ export class BasicNotification {
427
430
"format": ""
428
431
},
429
432
{
430
-
"name": "include_player_ids",
431
-
"baseName": "include_player_ids",
432
-
"type": "Array<string>",
433
-
"format": ""
434
-
},
435
-
{
436
-
"name": "include_external_user_ids",
437
-
"baseName": "include_external_user_ids",
433
+
"name": "include_subscription_ids",
434
+
"baseName": "include_subscription_ids",
438
435
"type": "Array<string>",
439
436
"format": ""
440
437
},
@@ -489,7 +486,7 @@ export class BasicNotification {
489
486
{
490
487
"name": "include_aliases",
491
488
"baseName": "include_aliases",
492
-
"type": "PlayerNotificationTargetIncludeAliases",
489
+
"type": "{ [key: string]: Array<string>; }",
493
490
"format": ""
494
491
},
495
492
{
@@ -582,12 +579,6 @@ export class BasicNotification {
582
579
"type": "boolean",
583
580
"format": ""
584
581
},
585
-
{
586
-
"name": "channel_for_external_user_ids",
587
-
"baseName": "channel_for_external_user_ids",
588
-
"type": "string",
589
-
"format": ""
590
-
},
591
582
{
592
583
"name": "app_id",
593
584
"baseName": "app_id",
@@ -603,19 +594,19 @@ export class BasicNotification {
603
594
{
604
595
"name": "contents",
605
596
"baseName": "contents",
606
-
"type": "StringMap",
597
+
"type": "LanguageStringMap",
607
598
"format": ""
608
599
},
609
600
{
610
601
"name": "headings",
611
602
"baseName": "headings",
612
-
"type": "StringMap",
603
+
"type": "LanguageStringMap",
613
604
"format": ""
614
605
},
615
606
{
616
607
"name": "subtitle",
617
608
"baseName": "subtitle",
618
-
"type": "StringMap",
609
+
"type": "LanguageStringMap",
619
610
"format": ""
620
611
},
621
612
{
@@ -717,7 +708,7 @@ export class BasicNotification {
717
708
{
718
709
"name": "web_buttons",
719
710
"baseName": "web_buttons",
720
-
"type": "Array<Button>",
711
+
"type": "Array<WebButton>",
721
712
"format": ""
722
713
},
723
714
{
@@ -990,6 +981,18 @@ export class BasicNotification {
990
981
"type": "number",
991
982
"format": ""
992
983
},
984
+
{
985
+
"name": "ios_relevance_score",
986
+
"baseName": "ios_relevance_score",
987
+
"type": "number",
988
+
"format": ""
989
+
},
990
+
{
991
+
"name": "ios_interruption_level",
992
+
"baseName": "ios_interruption_level",
993
+
"type": "string",
994
+
"format": ""
995
+
},
993
996
{
994
997
"name": "email_subject",
995
998
"baseName": "email_subject",
@@ -1041,7 +1044,7 @@ export class BasicNotification {
0 commit comments