|
362 | 362 | "type": "boolean", |
363 | 363 | "default": true, |
364 | 364 | "description": "Indicates whether to send to all devices registered under your app's Apple iOS platform.", |
365 | | - "writeOnly": true |
| 365 | + "writeOnly": true, |
| 366 | + "nullable": true |
366 | 367 | }, |
367 | 368 | "isAndroid": { |
368 | 369 | "type": "boolean", |
369 | 370 | "description": "Indicates whether to send to all devices registered under your app's Google Android platform.", |
370 | | - "writeOnly": true |
| 371 | + "writeOnly": true, |
| 372 | + "nullable": true |
371 | 373 | }, |
372 | 374 | "isHuawei": { |
373 | 375 | "type": "boolean", |
374 | 376 | "description": "Indicates whether to send to all devices registered under your app's Huawei Android platform.", |
375 | | - "writeOnly": true |
| 377 | + "writeOnly": true, |
| 378 | + "nullable": true |
376 | 379 | }, |
377 | 380 | "isAnyWeb": { |
378 | 381 | "type": "boolean", |
379 | 382 | "description": "Indicates whether to send to all subscribed web browser users, including Chrome, Firefox, and Safari.\nYou may use this instead as a combined flag instead of separately enabling isChromeWeb, isFirefox, and isSafari, though the three options are equivalent to this one.\n", |
380 | | - "writeOnly": true |
| 383 | + "writeOnly": true, |
| 384 | + "nullable": true |
381 | 385 | }, |
382 | 386 | "isChromeWeb": { |
383 | 387 | "type": "boolean", |
384 | 388 | "writeOnly": true, |
| 389 | + "nullable": true, |
385 | 390 | "description": "Indicates whether to send to all Google Chrome, Chrome on Android, and Mozilla Firefox users registered under your Chrome & Firefox web push platform." |
386 | 391 | }, |
387 | 392 | "isFirefox": { |
388 | 393 | "type": "boolean", |
389 | 394 | "writeOnly": true, |
| 395 | + "nullable": true, |
390 | 396 | "description": "Indicates whether to send to all Mozilla Firefox desktop users registered under your Firefox web push platform." |
391 | 397 | }, |
392 | 398 | "isSafari": { |
393 | 399 | "type": "boolean", |
394 | 400 | "writeOnly": true, |
| 401 | + "nullable": true, |
395 | 402 | "description": "Does not support iOS Safari. Indicates whether to send to all Apple's Safari desktop users registered under your Safari web push platform. Read more iOS Safari" |
396 | 403 | }, |
397 | 404 | "isWP_WNS": { |
398 | 405 | "type": "boolean", |
399 | 406 | "writeOnly": true, |
| 407 | + "nullable": true, |
400 | 408 | "description": "Indicates whether to send to all devices registered under your app's Windows platform." |
401 | 409 | }, |
402 | 410 | "isAdm": { |
403 | 411 | "type": "boolean", |
404 | 412 | "writeOnly": true, |
| 413 | + "nullable": true, |
405 | 414 | "description": "Indicates whether to send to all devices registered under your app's Amazon Fire platform." |
406 | 415 | }, |
407 | 416 | "isChrome": { |
408 | 417 | "type": "boolean", |
409 | 418 | "writeOnly": true, |
| 419 | + "nullable": true, |
410 | 420 | "description": "This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions.\nIndicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform.\n" |
411 | 421 | }, |
412 | 422 | "channel_for_external_user_ids": { |
|
494 | 504 | "content_available": { |
495 | 505 | "type": "boolean", |
496 | 506 | "description": "Channel: Push Notifications\nPlatform: iOS\nSending true wakes your app from background to run custom native code (Apple interprets this as content-available=1). Note: Not applicable if the app is in the \"force-quit\" state (i.e app was swiped away). Omit the contents field to prevent displaying a visible notification.\n", |
497 | | - "writeOnly": true |
| 507 | + "writeOnly": true, |
| 508 | + "nullable": true |
498 | 509 | }, |
499 | 510 | "mutable_content": { |
500 | 511 | "type": "boolean", |
|
688 | 699 | "android_visibility": { |
689 | 700 | "type": "integer", |
690 | 701 | "description": "Channel: Push Notifications\nPlatform: Android 5.0_\n⚠️Deprecated, this field doesn't work on Android 8 (Oreo) and newer devices!\nPlease use Notification Categories / Channels noted above instead to support ALL versions of Android.\n1 = Public (default) (Shows the full message on the lock screen unless the user has disabled all notifications from showing on the lock screen. Please consider the user and mark private if the contents are.)\n0 = Private (Hides message contents on lock screen if the user set \"Hide sensitive notification content\" in the system settings)\n-1 = Secret (Notification does not show on the lock screen at all)\n", |
691 | | - "writeOnly": true |
| 702 | + "writeOnly": true, |
| 703 | + "nullable": true |
692 | 704 | }, |
693 | 705 | "huawei_visibility": { |
694 | 706 | "type": "integer", |
| 707 | + "nullable": true, |
695 | 708 | "description": "Channel: Push Notifications\nPlatform: Huawei\n⚠️Deprecated, this field ONLY works on EMUI 5 (Android 7 based) and older devices.\nPlease also set Notification Categories / Channels noted above to support EMUI 8 (Android 8 based) devices.\n1 = Public (default) (Shows the full message on the lock screen unless the user has disabled all notifications from showing on the lock screen. Please consider the user and mark private if the contents are.)\n0 = Private (Hides message contents on lock screen if the user set \"Hide sensitive notification content\" in the system settings)\n-1 = Secret (Notification does not show on the lock screen at all)\n", |
696 | 709 | "writeOnly": true |
697 | 710 | }, |
|
702 | 715 | }, |
703 | 716 | "ios_badgeCount": { |
704 | 717 | "type": "integer", |
| 718 | + "nullable": true, |
705 | 719 | "description": "Channel: Push Notifications\nPlatform: iOS\nUsed with ios_badgeType, describes the value to set or amount to increase/decrease your app's iOS badge count by.\nYou can use a negative number to decrease the badge count when used with an ios_badgeType of Increase.\n", |
706 | 720 | "writeOnly": true |
707 | 721 | }, |
|
721 | 735 | }, |
722 | 736 | "send_after": { |
723 | 737 | "type": "string", |
| 738 | + "format": "date-time", |
724 | 739 | "description": "Channel: All\nSchedule notification for future delivery. API defaults to UTC -1100\nExamples: All examples are the exact same date & time.\n\"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\"\n\"September 24th 2015, 2:00:00 pm UTC-07:00\"\n\"2015-09-24 14:00:00 GMT-0700\"\n\"Sept 24 2015 14:00:00 GMT-0700\"\n\"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\"\nNote: SMS currently only supports send_after parameter.\n", |
725 | 740 | "writeOnly": true |
726 | 741 | }, |
|
736 | 751 | }, |
737 | 752 | "ttl": { |
738 | 753 | "type": "integer", |
| 754 | + "nullable": true, |
739 | 755 | "description": "Channel: Push Notifications\nPlatform: iOS, Android, Chrome, Firefox, Safari, ChromeWeb\nTime To Live - In seconds. The notification will be expired if the device does not come back online within this time. The default is 259,200 seconds (3 days).\nMax value to set is 2419200 seconds (28 days).\n", |
740 | 756 | "writeOnly": true |
741 | 757 | }, |
742 | 758 | "priority": { |
743 | 759 | "type": "integer", |
| 760 | + "nullable": true, |
744 | 761 | "description": "Channel: Push Notifications\nPlatform: Android, Chrome, ChromeWeb\nDelivery priority through the push server (example GCM/FCM). Pass 10 for high priority or any other integer for normal priority. Defaults to normal priority for Android and high for iOS. For Android 6.0+ devices setting priority to high will wake the device out of doze mode.\n", |
745 | 762 | "writeOnly": true |
746 | 763 | }, |
|
831 | 848 | } |
832 | 849 | ] |
833 | 850 | }, |
| 851 | + "NotificationWithMeta": { |
| 852 | + "allOf": [ |
| 853 | + { |
| 854 | + "$ref": "#/components/schemas/Notification" |
| 855 | + }, |
| 856 | + { |
| 857 | + "$ref": "#/components/schemas/DeliveryData" |
| 858 | + }, |
| 859 | + { |
| 860 | + "$ref": "#/components/schemas/OutcomesData" |
| 861 | + }, |
| 862 | + { |
| 863 | + "type": "object", |
| 864 | + "properties": { |
| 865 | + "remaining": { |
| 866 | + "type": "integer", |
| 867 | + "description": "Number of notifications that have not been sent out yet. This can mean either our system is still processing the notification or you have delayed options set." |
| 868 | + }, |
| 869 | + "successful": { |
| 870 | + "type": "integer", |
| 871 | + "description": "Number of notifications that were successfully delivered." |
| 872 | + }, |
| 873 | + "failed": { |
| 874 | + "type": "integer", |
| 875 | + "description": "Number of notifications that could not be delivered due to those devices being unsubscribed." |
| 876 | + }, |
| 877 | + "errored": { |
| 878 | + "type": "integer", |
| 879 | + "description": "Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard." |
| 880 | + }, |
| 881 | + "converted": { |
| 882 | + "type": "integer", |
| 883 | + "description": "Number of users who have clicked / tapped on your notification." |
| 884 | + }, |
| 885 | + "queued_at": { |
| 886 | + "type": "integer", |
| 887 | + "format": "int64", |
| 888 | + "description": "Unix timestamp indicating when the notification was created." |
| 889 | + }, |
| 890 | + "send_after": { |
| 891 | + "type": "integer", |
| 892 | + "format": "int64", |
| 893 | + "description": "Unix timestamp indicating when notification delivery should begin." |
| 894 | + }, |
| 895 | + "completed_at": { |
| 896 | + "type": "integer", |
| 897 | + "format": "int64", |
| 898 | + "nullable": true, |
| 899 | + "description": "Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after." |
| 900 | + }, |
| 901 | + "platform_delivery_stats": { |
| 902 | + "$ref": "#/components/schemas/PlatformDeliveryData" |
| 903 | + }, |
| 904 | + "received": { |
| 905 | + "type": "integer", |
| 906 | + "nullable": true, |
| 907 | + "description": "Confirmed Deliveries number of devices that received the push notification. Paid Feature Only. Free accounts will see 0." |
| 908 | + }, |
| 909 | + "throttle_rate_per_minute": { |
| 910 | + "type": "integer", |
| 911 | + "nullable": true, |
| 912 | + "description": "number of push notifications sent per minute. Paid Feature Only. If throttling is not enabled for the app or the notification, and for free accounts, null is returned. Refer to Throttling for more details." |
| 913 | + } |
| 914 | + } |
| 915 | + } |
| 916 | + ] |
| 917 | + }, |
834 | 918 | "Button": { |
835 | 919 | "type": "object", |
836 | 920 | "properties": { |
|
1029 | 1113 | "type": "string", |
1030 | 1114 | "description": "Text in Vietnamese." |
1031 | 1115 | } |
1032 | | - }, |
1033 | | - "required": [ |
1034 | | - "en" |
1035 | | - ] |
1036 | | - }, |
1037 | | - "Notifications": { |
1038 | | - "type": "array", |
1039 | | - "items": { |
1040 | | - "$ref": "#/components/schemas/Notification" |
1041 | 1116 | } |
1042 | 1117 | }, |
1043 | 1118 | "NotificationSlice": { |
|
1055 | 1130 | "notifications": { |
1056 | 1131 | "type": "array", |
1057 | 1132 | "items": { |
1058 | | - "$ref": "#/components/schemas/Notification" |
| 1133 | + "$ref": "#/components/schemas/NotificationWithMeta" |
1059 | 1134 | } |
1060 | 1135 | } |
1061 | 1136 | } |
|
1088 | 1163 | "type": "object", |
1089 | 1164 | "properties": { |
1090 | 1165 | "successful": { |
1091 | | - "type": "integer" |
| 1166 | + "type": "integer", |
| 1167 | + "nullable": true |
1092 | 1168 | }, |
1093 | 1169 | "failed": { |
1094 | | - "type": "integer" |
| 1170 | + "type": "integer", |
| 1171 | + "nullable": true |
1095 | 1172 | }, |
1096 | 1173 | "errored": { |
1097 | | - "type": "integer" |
| 1174 | + "type": "integer", |
| 1175 | + "nullable": true |
1098 | 1176 | }, |
1099 | 1177 | "converted": { |
1100 | | - "type": "integer" |
| 1178 | + "type": "integer", |
| 1179 | + "nullable": true |
1101 | 1180 | }, |
1102 | 1181 | "received": { |
1103 | | - "type": "integer" |
| 1182 | + "type": "integer", |
| 1183 | + "nullable": true |
1104 | 1184 | } |
1105 | 1185 | } |
1106 | 1186 | }, |
|
1284 | 1364 | }, |
1285 | 1365 | "timezone": { |
1286 | 1366 | "type": "integer", |
| 1367 | + "nullable": true, |
1287 | 1368 | "description": "Number of seconds away from UTC. Example: -28800\n" |
1288 | 1369 | }, |
1289 | 1370 | "game_version": { |
|
1320 | 1401 | }, |
1321 | 1402 | "created_at": { |
1322 | 1403 | "type": "integer", |
| 1404 | + "format": "int64", |
1323 | 1405 | "description": "Unixtime when the player joined the game" |
1324 | 1406 | }, |
1325 | 1407 | "playtime": { |
1326 | 1408 | "type": "integer", |
| 1409 | + "format": "int64", |
1327 | 1410 | "description": "Seconds player was running your app." |
1328 | 1411 | }, |
1329 | 1412 | "badge_count": { |
|
1340 | 1423 | }, |
1341 | 1424 | "test_type": { |
1342 | 1425 | "type": "integer", |
| 1426 | + "nullable": true, |
1343 | 1427 | "description": "This is used in deciding whether to use your iOS Sandbox or Production push certificate when sending a push when both have been uploaded. Set to the iOS provisioning profile that was used to build your app.\n1 = Development\n2 = Ad-Hoc\nOmit this field for App Store builds.\n" |
1344 | 1428 | }, |
1345 | 1429 | "long": { |
|
1356 | 1440 | } |
1357 | 1441 | }, |
1358 | 1442 | "required": [ |
1359 | | - "app_id", |
1360 | 1443 | "device_type", |
1361 | 1444 | "id" |
1362 | 1445 | ] |
|
1409 | 1492 | "NoSubscribersError": { |
1410 | 1493 | "type": "array", |
1411 | 1494 | "items": { |
1412 | | - "type": "string" |
| 1495 | + "type": "string", |
| 1496 | + "format": "string" |
1413 | 1497 | }, |
1414 | 1498 | "description": "Returned if no subscribed players.\n" |
1415 | 1499 | }, |
|
1443 | 1527 | "in": "query", |
1444 | 1528 | "name": "limit", |
1445 | 1529 | "schema": { |
1446 | | - "type": "string" |
| 1530 | + "type": "integer" |
1447 | 1531 | }, |
1448 | 1532 | "required": false, |
1449 | 1533 | "description": "How many notifications to return. Max is 50. Default is 50." |
|
1589 | 1673 | "content": { |
1590 | 1674 | "application/json": { |
1591 | 1675 | "schema": { |
1592 | | - "allOf": [ |
1593 | | - { |
1594 | | - "$ref": "#/components/schemas/Notification" |
1595 | | - }, |
1596 | | - { |
1597 | | - "$ref": "#/components/schemas/DeliveryData" |
1598 | | - }, |
1599 | | - { |
1600 | | - "$ref": "#/components/schemas/OutcomesData" |
1601 | | - }, |
1602 | | - { |
1603 | | - "type": "object", |
1604 | | - "properties": { |
1605 | | - "remaining": { |
1606 | | - "type": "integer", |
1607 | | - "description": "Number of notifications that have not been sent out yet. This can mean either our system is still processing the notification or you have delayed options set." |
1608 | | - }, |
1609 | | - "successful": { |
1610 | | - "type": "integer", |
1611 | | - "description": "Number of notifications that were successfully delivered." |
1612 | | - }, |
1613 | | - "failed": { |
1614 | | - "type": "integer", |
1615 | | - "description": "Number of notifications that could not be delivered due to those devices being unsubscribed." |
1616 | | - }, |
1617 | | - "errored": { |
1618 | | - "type": "integer", |
1619 | | - "description": "Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard." |
1620 | | - }, |
1621 | | - "converted": { |
1622 | | - "type": "integer", |
1623 | | - "description": "Number of users who have clicked / tapped on your notification." |
1624 | | - }, |
1625 | | - "queued_at": { |
1626 | | - "type": "integer", |
1627 | | - "description": "Unix timestamp indicating when the notification was created." |
1628 | | - }, |
1629 | | - "send_after": { |
1630 | | - "type": "integer", |
1631 | | - "description": "Unix timestamp indicating when notification delivery should begin." |
1632 | | - }, |
1633 | | - "completed_at": { |
1634 | | - "type": "integer", |
1635 | | - "description": "Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after." |
1636 | | - }, |
1637 | | - "platform_delivery_stats": { |
1638 | | - "$ref": "#/components/schemas/PlatformDeliveryData" |
1639 | | - }, |
1640 | | - "received": { |
1641 | | - "type": "integer", |
1642 | | - "description": "Confirmed Deliveries number of devices that received the push notification. Paid Feature Only. Free accounts will see 0." |
1643 | | - }, |
1644 | | - "throttle_rate_per_minute": { |
1645 | | - "type": "integer", |
1646 | | - "description": "number of push notifications sent per minute. Paid Feature Only. If throttling is not enabled for the app or the notification, and for free accounts, null is returned. Refer to Throttling for more details." |
1647 | | - } |
1648 | | - } |
1649 | | - } |
1650 | | - ] |
| 1676 | + "$ref": "#/components/schemas/NotificationWithMeta" |
1651 | 1677 | } |
1652 | 1678 | } |
1653 | 1679 | } |
|
1895 | 1921 | "type": "object", |
1896 | 1922 | "properties": { |
1897 | 1923 | "success": { |
1898 | | - "type": "string" |
| 1924 | + "type": "boolean" |
1899 | 1925 | }, |
1900 | 1926 | "destination_url": { |
1901 | 1927 | "type": "string" |
|
2277 | 2303 | "in": "query", |
2278 | 2304 | "name": "limit", |
2279 | 2305 | "schema": { |
2280 | | - "type": "string" |
| 2306 | + "type": "integer" |
2281 | 2307 | }, |
2282 | 2308 | "required": false, |
2283 | 2309 | "description": "How many devices to return. Max is 300. Default is 300" |
|
0 commit comments