activitysmith 1.17.0 → 1.18.0

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.
@@ -1370,6 +1370,12 @@ export interface LiveActivityStartRequest {
1370
1370
  * @memberof LiveActivityStartRequest
1371
1371
  */
1372
1372
  sound?: string;
1373
+ /**
1374
+ * Optional order when several Live Activities run at once, from 0 to 100. iOS shows the Live Activity with the highest score in the Dynamic Island and first on the Lock Screen. It changes only the order, never delivery. Omit it to use the iOS default order. Later updates keep this score unless they send a new one.
1375
+ * @type {number}
1376
+ * @memberof LiveActivityStartRequest
1377
+ */
1378
+ relevance_score?: number;
1373
1379
  }
1374
1380
  /**
1375
1381
  * Returned after a Live Activity starts. Save activity_id and use it for all later updates and for the final end call.
@@ -1757,6 +1763,12 @@ export interface LiveActivityStreamRequest {
1757
1763
  * @memberof LiveActivityStreamRequest
1758
1764
  */
1759
1765
  sound?: string;
1766
+ /**
1767
+ * Optional order when several Live Activities run at once, from 0 to 100. iOS shows the Live Activity with the highest score in the Dynamic Island and first on the Lock Screen. It changes only the order, never delivery. Omit it to keep the stream's current score; a stream without one uses the iOS default order. The score carries over when the stream starts a new Live Activity.
1768
+ * @type {number}
1769
+ * @memberof LiveActivityStreamRequest
1770
+ */
1771
+ relevance_score?: number;
1760
1772
  }
1761
1773
  /**
1762
1774
  * Update an existing Live Activity by activity_id.
@@ -1808,6 +1820,12 @@ export interface LiveActivityUpdateRequest {
1808
1820
  * @memberof LiveActivityUpdateRequest
1809
1821
  */
1810
1822
  sound?: string;
1823
+ /**
1824
+ * Optional new order for this Live Activity, from 0 to 100. Higher scores show first in the Dynamic Island and on the Lock Screen. Omit it to keep the current score.
1825
+ * @type {number}
1826
+ * @memberof LiveActivityUpdateRequest
1827
+ */
1828
+ relevance_score?: number;
1811
1829
  }
1812
1830
  /**
1813
1831
  * Returned after a Live Activity update is sent or queued.
@@ -2293,7 +2311,7 @@ export interface PushNotificationReplaceRequest {
2293
2311
  */
2294
2312
  title: string;
2295
2313
  /**
2296
- *
2314
+ * Optional message body. Apple limits a notification to 4 KB, so a longer message is shortened on the device. Notification history keeps up to 16 KB.
2297
2315
  * @type {string}
2298
2316
  * @memberof PushNotificationReplaceRequest
2299
2317
  */
@@ -2329,7 +2347,7 @@ export interface PushNotificationReplaceRequest {
2329
2347
  */
2330
2348
  actions?: Array<PushNotificationAction>;
2331
2349
  /**
2332
- *
2350
+ * Optional custom JSON delivered with the notification. It counts toward Apple's 4 KB limit. Use `metadata` for details that only need to appear in the app.
2333
2351
  * @type {object}
2334
2352
  * @memberof PushNotificationReplaceRequest
2335
2353
  */
@@ -2418,7 +2436,7 @@ export interface PushNotificationRequest {
2418
2436
  */
2419
2437
  title: string;
2420
2438
  /**
2421
- *
2439
+ * Optional message body. Apple limits a notification to 4 KB, so a longer message is shortened on the device. Notification history keeps up to 16 KB.
2422
2440
  * @type {string}
2423
2441
  * @memberof PushNotificationRequest
2424
2442
  */
@@ -2460,7 +2478,7 @@ export interface PushNotificationRequest {
2460
2478
  */
2461
2479
  actions?: Array<PushNotificationAction>;
2462
2480
  /**
2463
- *
2481
+ * Optional custom JSON delivered with the notification. It counts toward Apple's 4 KB limit. Use `metadata` for details that only need to appear in the app.
2464
2482
  * @type {object}
2465
2483
  * @memberof PushNotificationRequest
2466
2484
  */
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivitySmith = exports.DevicesResource = exports.MetricsResource = exports.LiveActivitiesResource = exports.NotificationsResource = void 0;
4
4
  const index_1 = require("../generated/index");
5
- const SDK_VERSION = "1.17.0";
5
+ const SDK_VERSION = "1.18.0";
6
6
  const SDK_HEADER_NAME = "X-ActivitySmith-SDK";
7
7
  const DEFAULT_SDK_NAME = "node";
8
8
  const SDK_HEADER_VALUE = `${DEFAULT_SDK_NAME}-v${SDK_VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "activitysmith",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "Official ActivitySmith Node.js SDK",
5
5
  "keywords": [
6
6
  "activitysmith",