activitysmith 1.11.0 → 1.12.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.
package/README.md CHANGED
@@ -132,33 +132,42 @@ await activitysmith.notifications.send({
132
132
 
133
133
  Choose the Live Activity type that matches what you want to show:
134
134
 
135
- ![Stats Live Activity with six labeled sales metrics](https://cdn.activitysmith.com/features/stats-live-activity.png)
135
+ - ![Value Live Activity showing revenue with a growth badge](https://cdn.activitysmith.com/features/value-live-activity.png) **Value**: Show a single value on your Lock Screen, such as revenue, a queue count, or a temperature.
136
136
 
137
- **Stats**: Show up to 8 labeled values on your Lock Screen, from revenue and orders to uptime and conversion.
137
+ - ![Stats Live Activity with six labeled sales metrics](https://cdn.activitysmith.com/features/stats-live-activity.png) **Stats**: Show up to 8 labeled values on your Lock Screen, from revenue and orders to uptime and conversion.
138
138
 
139
- ![Metrics Live Activity with CPU and memory values](https://cdn.activitysmith.com/features/metrics-live-activity-start.png)
139
+ - ![Alert Live Activity showing a customer reactivation update](https://cdn.activitysmith.com/features/alert-live-activity.png) **Alert**: Show status updates with a clear message, badge, and icon. When you add an action button, `color` controls the button tint.
140
140
 
141
- **Metrics**: Track two related values with segmented bars, such as CPU and memory.
141
+ - ![Metrics Live Activity with CPU and memory values](https://cdn.activitysmith.com/features/metrics-live-activity-start.png) **Metrics**: Track two related values with segmented bars, such as CPU and memory.
142
142
 
143
- ![Segmented Progress Live Activity showing a workflow step](https://cdn.activitysmith.com/features/update-live-activity.png)
143
+ - ![Segmented Progress Live Activity showing a workflow step](https://cdn.activitysmith.com/features/update-live-activity.png) **Segmented Progress**: Show progress through a known set of steps, like build, test, deploy, and verify.
144
144
 
145
- **Segmented Progress**: Show progress through a known set of steps, like build, test, deploy, and verify.
145
+ - ![Progress Live Activity showing percentage completion](https://cdn.activitysmith.com/features/progress-live-activity.png) **Progress**: Show percentage progress for jobs that move continuously toward completion.
146
146
 
147
- ![Progress Live Activity showing percentage completion](https://cdn.activitysmith.com/features/progress-live-activity.png)
147
+ - ![Timer Live Activity showing a benchmark run countdown](https://cdn.activitysmith.com/features/timer-live-activity.png) **Timer**: Count down from a duration, or count up from 00:00 while a job runs.
148
148
 
149
- **Progress**: Show percentage progress for jobs that move continuously toward completion.
150
-
151
- ![Alert Live Activity showing a customer reactivation update](https://cdn.activitysmith.com/features/alert-live-activity.png)
149
+ ### Start & Update Live Activity
152
150
 
153
- **Alert**: Show status updates with a clear message, badge, and icon. When you add an action button, `color` controls the button tint.
151
+ Use a stable `streamKey` to identify the metric, job, deployment, or system you want to keep visible. The first `stream(...)` call starts the Live Activity. Later calls with the same `streamKey` update it.
154
152
 
155
- ![Timer Live Activity showing a benchmark run countdown](https://cdn.activitysmith.com/features/timer-live-activity.png)
153
+ #### Value
156
154
 
157
- **Timer**: Count down from a duration, or count up from 00:00 while a job runs.
155
+ ![Value Live Activity stream example](https://cdn.activitysmith.com/features/value-live-activity.png)
158
156
 
159
- ### Start & Update Live Activity
157
+ ```ts
158
+ await activitysmith.liveActivities.stream("revenue-today", {
159
+ content_state: ActivitySmith.contentState({
160
+ title: "Revenue",
161
+ type: "value",
162
+ value: "$1,240",
163
+ color: "green",
164
+ icon: ActivitySmith.alertIcon("dollarsign.circle", { color: "green" }),
165
+ badge: ActivitySmith.alertBadge("↑ 18%", { color: "purple" }),
166
+ }),
167
+ });
168
+ ```
160
169
 
161
- Use a stable `streamKey` to identify the metric, job, deployment, or system you want to keep visible. The first `stream(...)` call starts the Live Activity. Later calls with the same `streamKey` update it.
170
+ Send a string or number in `value`. Strings keep their formatting, including currency symbols, units, and decimal places.
162
171
 
163
172
  #### Stats
164
173
 
@@ -182,6 +191,22 @@ await activitysmith.liveActivities.stream("sales-hourly", {
182
191
  });
183
192
  ```
184
193
 
194
+ #### Alert
195
+
196
+ ![Alert Live Activity stream example](https://cdn.activitysmith.com/features/alert-live-activity.png)
197
+
198
+ ```ts
199
+ await activitysmith.liveActivities.stream("customer-ops", {
200
+ content_state: ActivitySmith.contentState({
201
+ title: "Reactivation",
202
+ message: "Lumen came back after 2 weeks",
203
+ type: "alert",
204
+ icon: ActivitySmith.alertIcon("cloud.sun", { color: "yellow" }),
205
+ badge: ActivitySmith.alertBadge("Customer", { color: "magenta" }),
206
+ }),
207
+ });
208
+ ```
209
+
185
210
  #### Metrics
186
211
 
187
212
  ![Metrics Live Activity stream example](https://cdn.activitysmith.com/features/metrics-live-activity-start.png)
@@ -231,22 +256,6 @@ await activitysmith.liveActivities.stream("search-reindex", {
231
256
  });
232
257
  ```
233
258
 
234
- #### Alert
235
-
236
- ![Alert Live Activity stream example](https://cdn.activitysmith.com/features/alert-live-activity.png)
237
-
238
- ```ts
239
- await activitysmith.liveActivities.stream("customer-ops", {
240
- content_state: ActivitySmith.contentState({
241
- title: "Reactivation",
242
- message: "Lumen came back after 2 weeks",
243
- type: "alert",
244
- icon: ActivitySmith.alertIcon("cloud.sun", { color: "yellow" }),
245
- badge: ActivitySmith.alertBadge("Customer", { color: "magenta" }),
246
- }),
247
- });
248
- ```
249
-
250
259
  #### Timer
251
260
 
252
261
  ![Timer Live Activity stream example](https://cdn.activitysmith.com/features/timer-live-activity.png)
@@ -292,7 +301,7 @@ Add more context to Live Activities with icons and badges.
292
301
 
293
302
  #### Icon
294
303
 
295
- Supported Live Activity types: `stats`, `metrics`, `progress`, `segmented_progress`, `alert`, and `timer`.
304
+ Supported Live Activity types: `value`, `stats`, `alert`, `metrics`, `segmented_progress`, `progress`, and `timer`.
296
305
 
297
306
  ![Metrics Live Activity with an SF Symbol icon on the iPhone Lock Screen](https://cdn.activitysmith.com/features/metrics-live-activity-with-icon.png)
298
307
 
@@ -319,7 +328,7 @@ The `icon.symbol` value is an Apple SF Symbol name. Browse the catalog with one
319
328
 
320
329
  #### Badge
321
330
 
322
- Badges are supported by `alert`, `progress`, and `segmented_progress` Live Activities.
331
+ Badges are supported by `value`, `alert`, `segmented_progress`, and `progress` Live Activities.
323
332
 
324
333
  ![Progress Live Activity with a badge on the iPhone Lock Screen](https://cdn.activitysmith.com/features/progress-live-activity-with-badge.png)
325
334
 
@@ -427,7 +436,7 @@ await activitysmith.liveActivities.stream("search-reindex", {
427
436
 
428
437
  Use `secondary_action` when you want a second button beside the primary `action`.
429
438
 
430
- The secondary action button is supported for `alert`, `progress`, and `segmented_progress` Live Activities. Both buttons use the same `open_url`, `webhook`, and Apple Shortcut payload shapes.
439
+ The secondary action button is supported for `value`, `alert`, `segmented_progress`, and `progress` Live Activities. Both buttons use the same `open_url`, `webhook`, and Apple Shortcut payload shapes.
431
440
 
432
441
  ```ts
433
442
  await activitysmith.liveActivities.stream("agent-approval", {
@@ -604,3 +613,7 @@ try {
604
613
  ### [NPM Package](https://www.npmjs.com/package/activitysmith)
605
614
 
606
615
  Install the ActivitySmith Node.js SDK from npm
616
+
617
+ ### [Source Code](https://github.com/ActivitySmithHQ/activitysmith-node)
618
+
619
+ View the Node.js SDK source on GitHub
@@ -33,52 +33,52 @@ export interface UpdateLiveActivityRequest {
33
33
  */
34
34
  export declare class LiveActivitiesApi extends runtime.BaseAPI {
35
35
  /**
36
- * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
36
+ * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
37
37
  * End a Live Activity (legacy manual lifecycle)
38
38
  */
39
39
  endLiveActivityRaw(requestParameters: EndLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityEndResponse>>;
40
40
  /**
41
- * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
41
+ * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
42
42
  * End a Live Activity (legacy manual lifecycle)
43
43
  */
44
44
  endLiveActivity(requestParameters: EndLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityEndResponse>;
45
45
  /**
46
- * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
46
+ * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
47
47
  * End a stream
48
48
  */
49
49
  endLiveActivityStreamRaw(requestParameters: EndLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStreamDeleteResponse>>;
50
50
  /**
51
- * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
51
+ * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
52
52
  * End a stream
53
53
  */
54
54
  endLiveActivityStream(requestParameters: EndLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStreamDeleteResponse>;
55
55
  /**
56
- * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
56
+ * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
57
57
  * Start a new Live Activity or update an existing one
58
58
  */
59
59
  reconcileLiveActivityStreamRaw(requestParameters: ReconcileLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStreamPutResponse>>;
60
60
  /**
61
- * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
61
+ * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
62
62
  * Start a new Live Activity or update an existing one
63
63
  */
64
64
  reconcileLiveActivityStream(requestParameters: ReconcileLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStreamPutResponse>;
65
65
  /**
66
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history.
66
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history.
67
67
  * Start a Live Activity (legacy manual lifecycle)
68
68
  */
69
69
  startLiveActivityRaw(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStartResponse>>;
70
70
  /**
71
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history.
71
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history.
72
72
  * Start a Live Activity (legacy manual lifecycle)
73
73
  */
74
74
  startLiveActivity(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStartResponse>;
75
75
  /**
76
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
76
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
77
77
  * Update a Live Activity (legacy manual lifecycle)
78
78
  */
79
79
  updateLiveActivityRaw(requestParameters: UpdateLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityUpdateResponse>>;
80
80
  /**
81
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
81
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
82
82
  * Update a Live Activity (legacy manual lifecycle)
83
83
  */
84
84
  updateLiveActivity(requestParameters: UpdateLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityUpdateResponse>;
@@ -20,7 +20,7 @@ const runtime = require("../runtime");
20
20
  */
21
21
  class LiveActivitiesApi extends runtime.BaseAPI {
22
22
  /**
23
- * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
23
+ * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
24
24
  * End a Live Activity (legacy manual lifecycle)
25
25
  */
26
26
  async endLiveActivityRaw(requestParameters, initOverrides) {
@@ -47,7 +47,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
47
47
  return new runtime.JSONApiResponse(response);
48
48
  }
49
49
  /**
50
- * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
50
+ * Legacy manual lifecycle endpoint. For new integrations, use DELETE /live-activity/stream/{stream_key} to end a managed Live Activity stream. This endpoint remains supported for existing integrations and advanced lifecycle control. Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
51
51
  * End a Live Activity (legacy manual lifecycle)
52
52
  */
53
53
  async endLiveActivity(requestParameters, initOverrides) {
@@ -55,7 +55,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
55
55
  return await response.value();
56
56
  }
57
57
  /**
58
- * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
58
+ * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
59
59
  * End a stream
60
60
  */
61
61
  async endLiveActivityStreamRaw(requestParameters, initOverrides) {
@@ -82,7 +82,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
82
82
  return new runtime.JSONApiResponse(response);
83
83
  }
84
84
  /**
85
- * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
85
+ * Use this endpoint when the process you are tracking is finished and you no longer want the Live Activity on your devices. ActivitySmith ends the current Live Activity for this stream and dismisses it from devices. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
86
86
  * End a stream
87
87
  */
88
88
  async endLiveActivityStream(requestParameters, initOverrides) {
@@ -90,7 +90,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
90
90
  return await response.value();
91
91
  }
92
92
  /**
93
- * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
93
+ * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
94
94
  * Start a new Live Activity or update an existing one
95
95
  */
96
96
  async reconcileLiveActivityStreamRaw(requestParameters, initOverrides) {
@@ -120,7 +120,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
120
120
  return new runtime.JSONApiResponse(response);
121
121
  }
122
122
  /**
123
- * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
123
+ * Use a stable stream_key for each ongoing thing you want to show as a Live Activity. Send the latest content_state whenever it changes, and ActivitySmith will keep the Live Activity in sync. For timer streams, send duration_seconds to start or reset the timer; omit duration_seconds on later updates to preserve the existing timer window. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history. On later stream updates, omit tags to keep the current tags, send tags again to replace them, or send an empty array to clear them.
124
124
  * Start a new Live Activity or update an existing one
125
125
  */
126
126
  async reconcileLiveActivityStream(requestParameters, initOverrides) {
@@ -128,7 +128,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
128
128
  return await response.value();
129
129
  }
130
130
  /**
131
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history.
131
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history.
132
132
  * Start a Live Activity (legacy manual lifecycle)
133
133
  */
134
134
  async startLiveActivityRaw(requestParameters, initOverrides) {
@@ -155,7 +155,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
155
155
  return new runtime.JSONApiResponse(response);
156
156
  }
157
157
  /**
158
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities. Optional tags to organize and filter notification history.
158
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities. Optional tags to organize and filter notification history.
159
159
  * Start a Live Activity (legacy manual lifecycle)
160
160
  */
161
161
  async startLiveActivity(requestParameters, initOverrides) {
@@ -163,7 +163,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
163
163
  return await response.value();
164
164
  }
165
165
  /**
166
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
166
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
167
167
  * Update a Live Activity (legacy manual lifecycle)
168
168
  */
169
169
  async updateLiveActivityRaw(requestParameters, initOverrides) {
@@ -190,7 +190,7 @@ class LiveActivitiesApi extends runtime.BaseAPI {
190
190
  return new runtime.JSONApiResponse(response);
191
191
  }
192
192
  /**
193
- * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, and timer activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, and segmented_progress Live Activities.
193
+ * Legacy manual lifecycle endpoint. For new integrations, use PUT /live-activity/stream/{stream_key} so ActivitySmith can manage start, update, rotation, and end state for you. This endpoint remains supported for existing integrations and advanced lifecycle control. Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, stats, alert, timer, and value activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes. For timer activities, send duration_seconds only when you want to reset the timer window; omit it to keep the current timer running. Use secondary_action for a second button on alert, progress, segmented_progress, and value Live Activities.
194
194
  * Update a Live Activity (legacy manual lifecycle)
195
195
  */
196
196
  async updateLiveActivity(requestParameters, initOverrides) {
@@ -20,12 +20,12 @@ export interface UpdateMetricValueRequest {
20
20
  */
21
21
  export declare class MetricsApi extends runtime.BaseAPI {
22
22
  /**
23
- * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
23
+ * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key. Metric updates have an independent 300-requests-per-minute account allowance. They do not consume the Push Notification, badge, or Live Activity allowances.
24
24
  * Update a widget metric value
25
25
  */
26
26
  updateMetricValueRaw(requestParameters: UpdateMetricValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MetricValueUpdateResponse>>;
27
27
  /**
28
- * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
28
+ * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key. Metric updates have an independent 300-requests-per-minute account allowance. They do not consume the Push Notification, badge, or Live Activity allowances.
29
29
  * Update a widget metric value
30
30
  */
31
31
  updateMetricValue(requestParameters: UpdateMetricValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MetricValueUpdateResponse>;
@@ -20,7 +20,7 @@ const runtime = require("../runtime");
20
20
  */
21
21
  class MetricsApi extends runtime.BaseAPI {
22
22
  /**
23
- * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
23
+ * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key. Metric updates have an independent 300-requests-per-minute account allowance. They do not consume the Push Notification, badge, or Live Activity allowances.
24
24
  * Update a widget metric value
25
25
  */
26
26
  async updateMetricValueRaw(requestParameters, initOverrides) {
@@ -50,7 +50,7 @@ class MetricsApi extends runtime.BaseAPI {
50
50
  return new runtime.JSONApiResponse(response);
51
51
  }
52
52
  /**
53
- * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key.
53
+ * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key. Metric updates have an independent 300-requests-per-minute account allowance. They do not consume the Push Notification, badge, or Live Activity allowances.
54
54
  * Update a widget metric value
55
55
  */
56
56
  async updateMetricValue(requestParameters, initOverrides) {
@@ -249,7 +249,7 @@ export interface ChannelTarget {
249
249
  channels: Array<string>;
250
250
  }
251
251
  /**
252
- * End payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer, omit duration_seconds to preserve and freeze the latest timer state. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
252
+ * End payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer, omit duration_seconds to preserve and freeze the latest timer state. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. Type is optional when ending an existing activity. You can send an updated number_of_steps here if the workflow changed after start.
253
253
  * @export
254
254
  * @interface ContentStateEnd
255
255
  */
@@ -285,11 +285,11 @@ export interface ContentStateEnd {
285
285
  */
286
286
  percentage?: number;
287
287
  /**
288
- * Current progress value. Use with upper_limit for type=progress.
289
- * @type {number}
288
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
289
+ * @type {LiveActivityValue}
290
290
  * @memberof ContentStateEnd
291
291
  */
292
- value?: number;
292
+ value?: LiveActivityValue;
293
293
  /**
294
294
  * Maximum progress value. Use with value for type=progress.
295
295
  * @type {number}
@@ -327,13 +327,13 @@ export interface ContentStateEnd {
327
327
  */
328
328
  message?: string;
329
329
  /**
330
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
330
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
331
331
  * @type {LiveActivityAlertIcon}
332
332
  * @memberof ContentStateEnd
333
333
  */
334
334
  icon?: LiveActivityAlertIcon;
335
335
  /**
336
- * Optional badge. Supported by alert, progress, and segmented_progress.
336
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
337
337
  * @type {LiveActivityAlertBadge}
338
338
  * @memberof ContentStateEnd
339
339
  */
@@ -345,7 +345,7 @@ export interface ContentStateEnd {
345
345
  */
346
346
  type?: ContentStateEndTypeEnum;
347
347
  /**
348
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
348
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
349
349
  * @type {string}
350
350
  * @memberof ContentStateEnd
351
351
  */
@@ -379,6 +379,7 @@ export declare const ContentStateEndTypeEnum: {
379
379
  readonly Stats: "stats";
380
380
  readonly Alert: "alert";
381
381
  readonly Timer: "timer";
382
+ readonly Value: "value";
382
383
  };
383
384
  export type ContentStateEndTypeEnum = typeof ContentStateEndTypeEnum[keyof typeof ContentStateEndTypeEnum];
384
385
  /**
@@ -430,7 +431,7 @@ export declare const ContentStateEndStepColorsEnum: {
430
431
  };
431
432
  export type ContentStateEndStepColorsEnum = typeof ContentStateEndStepColorsEnum[keyof typeof ContentStateEndStepColorsEnum];
432
433
  /**
433
- * Start payload requires title and type. For segmented_progress include number_of_steps and current_step. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer include duration_seconds for countdowns, or set counts_down false without duration_seconds for an open-ended elapsed timer. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
434
+ * Start payload requires title and type. For segmented_progress include number_of_steps and current_step. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer include duration_seconds for countdowns, or set counts_down false without duration_seconds for an open-ended elapsed timer. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. For segmented_progress, number_of_steps is not locked and can be changed in later update or end calls.
434
435
  * @export
435
436
  * @interface ContentStateStart
436
437
  */
@@ -466,11 +467,11 @@ export interface ContentStateStart {
466
467
  */
467
468
  percentage?: number;
468
469
  /**
469
- * Current progress value. Use with upper_limit for type=progress.
470
- * @type {number}
470
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
471
+ * @type {LiveActivityValue}
471
472
  * @memberof ContentStateStart
472
473
  */
473
- value?: number;
474
+ value?: LiveActivityValue;
474
475
  /**
475
476
  * Maximum progress value. Use with value for type=progress.
476
477
  * @type {number}
@@ -508,13 +509,13 @@ export interface ContentStateStart {
508
509
  */
509
510
  message?: string;
510
511
  /**
511
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
512
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
512
513
  * @type {LiveActivityAlertIcon}
513
514
  * @memberof ContentStateStart
514
515
  */
515
516
  icon?: LiveActivityAlertIcon;
516
517
  /**
517
- * Optional badge. Supported by alert, progress, and segmented_progress.
518
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
518
519
  * @type {LiveActivityAlertBadge}
519
520
  * @memberof ContentStateStart
520
521
  */
@@ -526,7 +527,7 @@ export interface ContentStateStart {
526
527
  */
527
528
  type: ContentStateStartTypeEnum;
528
529
  /**
529
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
530
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
530
531
  * @type {string}
531
532
  * @memberof ContentStateStart
532
533
  */
@@ -554,6 +555,7 @@ export declare const ContentStateStartTypeEnum: {
554
555
  readonly Stats: "stats";
555
556
  readonly Alert: "alert";
556
557
  readonly Timer: "timer";
558
+ readonly Value: "value";
557
559
  };
558
560
  export type ContentStateStartTypeEnum = typeof ContentStateStartTypeEnum[keyof typeof ContentStateStartTypeEnum];
559
561
  /**
@@ -605,7 +607,7 @@ export declare const ContentStateStartStepColorsEnum: {
605
607
  };
606
608
  export type ContentStateStartStepColorsEnum = typeof ContentStateStartStepColorsEnum[keyof typeof ContentStateStartStepColorsEnum];
607
609
  /**
608
- * Update payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For alert include message. For timer, omit duration_seconds to preserve the current timer window or send duration_seconds to reset the timer from the update request time. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, and segmented_progress. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
610
+ * Update payload requires title. For segmented_progress include current_step and optionally number_of_steps. For progress include percentage or value with upper_limit. For metrics and stats include a non-empty metrics array. For value include a string or number in value; strings preserve currency, units, and other formatting. For alert include message. For timer, omit duration_seconds to preserve the current timer window or send duration_seconds to reset the timer from the update request time. Optional icon is supported by all Live Activity types. Optional badge is supported by alert, progress, segmented_progress, and value. Type is optional when updating an existing activity. You can increase or decrease number_of_steps during updates.
609
611
  * @export
610
612
  * @interface ContentStateUpdate
611
613
  */
@@ -641,11 +643,11 @@ export interface ContentStateUpdate {
641
643
  */
642
644
  percentage?: number;
643
645
  /**
644
- * Current progress value. Use with upper_limit for type=progress.
645
- * @type {number}
646
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For type=progress, a numeric progress value used with upper_limit.
647
+ * @type {LiveActivityValue}
646
648
  * @memberof ContentStateUpdate
647
649
  */
648
- value?: number;
650
+ value?: LiveActivityValue;
649
651
  /**
650
652
  * Maximum progress value. Use with value for type=progress.
651
653
  * @type {number}
@@ -683,13 +685,13 @@ export interface ContentStateUpdate {
683
685
  */
684
686
  message?: string;
685
687
  /**
686
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
688
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
687
689
  * @type {LiveActivityAlertIcon}
688
690
  * @memberof ContentStateUpdate
689
691
  */
690
692
  icon?: LiveActivityAlertIcon;
691
693
  /**
692
- * Optional badge. Supported by alert, progress, and segmented_progress.
694
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
693
695
  * @type {LiveActivityAlertBadge}
694
696
  * @memberof ContentStateUpdate
695
697
  */
@@ -701,7 +703,7 @@ export interface ContentStateUpdate {
701
703
  */
702
704
  type?: ContentStateUpdateTypeEnum;
703
705
  /**
704
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
706
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
705
707
  * @type {string}
706
708
  * @memberof ContentStateUpdate
707
709
  */
@@ -729,6 +731,7 @@ export declare const ContentStateUpdateTypeEnum: {
729
731
  readonly Stats: "stats";
730
732
  readonly Alert: "alert";
731
733
  readonly Timer: "timer";
734
+ readonly Value: "value";
732
735
  };
733
736
  export type ContentStateUpdateTypeEnum = typeof ContentStateUpdateTypeEnum[keyof typeof ContentStateUpdateTypeEnum];
734
737
  /**
@@ -799,7 +802,7 @@ export interface ForbiddenError {
799
802
  message: string;
800
803
  }
801
804
  /**
802
- * Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, and segmented_progress Live Activities.
805
+ * Optional action button shown in the Live Activity UI. Use action for the primary button, or secondary_action for a secondary button on alert, progress, segmented_progress, and value Live Activities.
803
806
  * @export
804
807
  * @interface LiveActivityAction
805
808
  */
@@ -939,7 +942,7 @@ export interface LiveActivityEndRequest {
939
942
  */
940
943
  action?: LiveActivityAction;
941
944
  /**
942
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
945
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
943
946
  * @type {LiveActivityAction}
944
947
  * @memberof LiveActivityEndRequest
945
948
  */
@@ -1052,7 +1055,7 @@ export interface LiveActivityStartRequest {
1052
1055
  */
1053
1056
  action?: LiveActivityAction;
1054
1057
  /**
1055
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1058
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1056
1059
  * @type {LiveActivityAction}
1057
1060
  * @memberof LiveActivityStartRequest
1058
1061
  */
@@ -1158,7 +1161,7 @@ export interface LiveActivityStreamDeleteRequest {
1158
1161
  */
1159
1162
  action?: LiveActivityAction;
1160
1163
  /**
1161
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1164
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1162
1165
  * @type {LiveActivityAction}
1163
1166
  * @memberof LiveActivityStreamDeleteRequest
1164
1167
  */
@@ -1337,7 +1340,7 @@ export interface LiveActivityStreamRequest {
1337
1340
  */
1338
1341
  action?: LiveActivityAction;
1339
1342
  /**
1340
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1343
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1341
1344
  * @type {LiveActivityAction}
1342
1345
  * @memberof LiveActivityStreamRequest
1343
1346
  */
@@ -1406,7 +1409,7 @@ export interface LiveActivityUpdateRequest {
1406
1409
  */
1407
1410
  action?: LiveActivityAction;
1408
1411
  /**
1409
- * Optional secondary action button. Supported for alert, progress, and segmented_progress Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1412
+ * Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url, shortcuts://, and webhook shapes as action.
1410
1413
  * @type {LiveActivityAction}
1411
1414
  * @memberof LiveActivityUpdateRequest
1412
1415
  */
@@ -1449,6 +1452,12 @@ export interface LiveActivityUpdateResponse {
1449
1452
  */
1450
1453
  timestamp: string;
1451
1454
  }
1455
+ /**
1456
+ * @type LiveActivityValue
1457
+ * A formatted string or finite numeric Live Activity value. String formatting is preserved.
1458
+ * @export
1459
+ */
1460
+ export type LiveActivityValue = number | string;
1452
1461
  /**
1453
1462
  *
1454
1463
  * @export
@@ -1752,6 +1761,12 @@ export type PushNotificationWebhookMethod = typeof PushNotificationWebhookMethod
1752
1761
  * @interface RateLimitError
1753
1762
  */
1754
1763
  export interface RateLimitError {
1764
+ /**
1765
+ *
1766
+ * @type {string}
1767
+ * @memberof RateLimitError
1768
+ */
1769
+ code?: RateLimitErrorCodeEnum;
1755
1770
  /**
1756
1771
  *
1757
1772
  * @type {string}
@@ -1765,6 +1780,13 @@ export interface RateLimitError {
1765
1780
  */
1766
1781
  message: string;
1767
1782
  }
1783
+ /**
1784
+ * @export
1785
+ */
1786
+ export declare const RateLimitErrorCodeEnum: {
1787
+ readonly RateLimited: "rate_limited";
1788
+ };
1789
+ export type RateLimitErrorCodeEnum = typeof RateLimitErrorCodeEnum[keyof typeof RateLimitErrorCodeEnum];
1768
1790
  /**
1769
1791
  * @type SendPushNotification429Response
1770
1792
  *
@@ -1772,7 +1794,7 @@ export interface RateLimitError {
1772
1794
  */
1773
1795
  export type SendPushNotification429Response = LiveActivityLimitError | RateLimitError;
1774
1796
  /**
1775
- * Current state for a managed Live Activity stream. Include type on the first PUT, and whenever the stream may need to start a fresh activity. Supports segmented_progress, progress, metrics, stats, alert, and timer types. For timer, send duration_seconds to start or reset a bounded timer; omit duration_seconds on later updates to preserve the existing timer window.
1797
+ * Current state for a managed Live Activity stream. Include type on the first PUT, and whenever the stream may need to start a fresh activity. Supports segmented_progress, progress, metrics, stats, alert, timer, and value types. For timer, send duration_seconds to start or reset a bounded timer; omit duration_seconds on later updates to preserve the existing timer window.
1776
1798
  * @export
1777
1799
  * @interface StreamContentState
1778
1800
  */
@@ -1808,11 +1830,11 @@ export interface StreamContentState {
1808
1830
  */
1809
1831
  percentage?: number;
1810
1832
  /**
1811
- * Current progress value. Use with upper_limit for progress.
1812
- * @type {number}
1833
+ * For type=value, the required prominent readout (string or finite number); strings preserve exact formatting. For progress, a numeric progress value used with upper_limit.
1834
+ * @type {LiveActivityValue}
1813
1835
  * @memberof StreamContentState
1814
1836
  */
1815
- value?: number;
1837
+ value?: LiveActivityValue;
1816
1838
  /**
1817
1839
  * Maximum progress value. Use with value for progress.
1818
1840
  * @type {number}
@@ -1844,7 +1866,7 @@ export interface StreamContentState {
1844
1866
  */
1845
1867
  type?: StreamContentStateTypeEnum;
1846
1868
  /**
1847
- * Optional. Accent color for progress, segmented_progress, metrics, and timer Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
1869
+ * Optional. Accent color for progress, segmented_progress, metrics, timer, and value Live Activities. For Alert Live Activities, this tints action and secondary_action buttons when included.
1848
1870
  * @type {string}
1849
1871
  * @memberof StreamContentState
1850
1872
  */
@@ -1874,13 +1896,13 @@ export interface StreamContentState {
1874
1896
  */
1875
1897
  message?: string;
1876
1898
  /**
1877
- * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, and timer.
1899
+ * Optional SF Symbol icon. Supported by alert, progress, segmented_progress, metrics, stats, timer, and value.
1878
1900
  * @type {LiveActivityAlertIcon}
1879
1901
  * @memberof StreamContentState
1880
1902
  */
1881
1903
  icon?: LiveActivityAlertIcon;
1882
1904
  /**
1883
- * Optional badge. Supported by alert, progress, and segmented_progress.
1905
+ * Optional badge. Supported by alert, progress, segmented_progress, and value.
1884
1906
  * @type {LiveActivityAlertBadge}
1885
1907
  * @memberof StreamContentState
1886
1908
  */
@@ -1908,6 +1930,7 @@ export declare const StreamContentStateTypeEnum: {
1908
1930
  readonly Stats: "stats";
1909
1931
  readonly Alert: "alert";
1910
1932
  readonly Timer: "timer";
1933
+ readonly Value: "value";
1911
1934
  };
1912
1935
  export type StreamContentStateTypeEnum = typeof StreamContentStateTypeEnum[keyof typeof StreamContentStateTypeEnum];
1913
1936
  /**
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StreamContentStateStepColorsEnum = exports.StreamContentStateStepColorEnum = exports.StreamContentStateColorEnum = exports.StreamContentStateTypeEnum = exports.PushNotificationWebhookMethod = exports.PushNotificationActionType = exports.LiveActivityWebhookMethod = exports.LiveActivityStreamPutResponseOperationEnum = exports.LiveActivityStreamDeleteResponseOperationEnum = exports.LiveActivityColor = exports.LiveActivityActionType = exports.ContentStateUpdateStepColorsEnum = exports.ContentStateUpdateStepColorEnum = exports.ContentStateUpdateColorEnum = exports.ContentStateUpdateTypeEnum = exports.ContentStateStartStepColorsEnum = exports.ContentStateStartStepColorEnum = exports.ContentStateStartColorEnum = exports.ContentStateStartTypeEnum = exports.ContentStateEndStepColorsEnum = exports.ContentStateEndStepColorEnum = exports.ContentStateEndColorEnum = exports.ContentStateEndTypeEnum = exports.AppIconBadgeCountUpdateErrorCodeEnum = exports.ActivityMetricColorEnum = void 0;
3
+ exports.StreamContentStateStepColorsEnum = exports.StreamContentStateStepColorEnum = exports.StreamContentStateColorEnum = exports.StreamContentStateTypeEnum = exports.RateLimitErrorCodeEnum = exports.PushNotificationWebhookMethod = exports.PushNotificationActionType = exports.LiveActivityWebhookMethod = exports.LiveActivityStreamPutResponseOperationEnum = exports.LiveActivityStreamDeleteResponseOperationEnum = exports.LiveActivityColor = exports.LiveActivityActionType = exports.ContentStateUpdateStepColorsEnum = exports.ContentStateUpdateStepColorEnum = exports.ContentStateUpdateColorEnum = exports.ContentStateUpdateTypeEnum = exports.ContentStateStartStepColorsEnum = exports.ContentStateStartStepColorEnum = exports.ContentStateStartColorEnum = exports.ContentStateStartTypeEnum = exports.ContentStateEndStepColorsEnum = exports.ContentStateEndStepColorEnum = exports.ContentStateEndColorEnum = exports.ContentStateEndTypeEnum = exports.AppIconBadgeCountUpdateErrorCodeEnum = exports.ActivityMetricColorEnum = void 0;
4
4
  /**
5
5
  * @export
6
6
  */
@@ -32,7 +32,8 @@ exports.ContentStateEndTypeEnum = {
32
32
  Metrics: 'metrics',
33
33
  Stats: 'stats',
34
34
  Alert: 'alert',
35
- Timer: 'timer'
35
+ Timer: 'timer',
36
+ Value: 'value'
36
37
  };
37
38
  /**
38
39
  * @export
@@ -88,7 +89,8 @@ exports.ContentStateStartTypeEnum = {
88
89
  Metrics: 'metrics',
89
90
  Stats: 'stats',
90
91
  Alert: 'alert',
91
- Timer: 'timer'
92
+ Timer: 'timer',
93
+ Value: 'value'
92
94
  };
93
95
  /**
94
96
  * @export
@@ -144,7 +146,8 @@ exports.ContentStateUpdateTypeEnum = {
144
146
  Metrics: 'metrics',
145
147
  Stats: 'stats',
146
148
  Alert: 'alert',
147
- Timer: 'timer'
149
+ Timer: 'timer',
150
+ Value: 'value'
148
151
  };
149
152
  /**
150
153
  * @export
@@ -255,6 +258,12 @@ exports.PushNotificationWebhookMethod = {
255
258
  Get: 'GET',
256
259
  Post: 'POST'
257
260
  };
261
+ /**
262
+ * @export
263
+ */
264
+ exports.RateLimitErrorCodeEnum = {
265
+ RateLimited: 'rate_limited'
266
+ };
258
267
  /**
259
268
  * @export
260
269
  */
@@ -264,7 +273,8 @@ exports.StreamContentStateTypeEnum = {
264
273
  Metrics: 'metrics',
265
274
  Stats: 'stats',
266
275
  Alert: 'alert',
267
- Timer: 'timer'
276
+ Timer: 'timer',
277
+ Value: 'value'
268
278
  };
269
279
  /**
270
280
  * @export
@@ -36,6 +36,7 @@ declare const LiveActivityTypes: {
36
36
  readonly stats: "stats";
37
37
  readonly alert: "alert";
38
38
  readonly timer: "timer";
39
+ readonly value: "value";
39
40
  };
40
41
  export type LiveActivityType = (typeof LiveActivityTypes)[keyof typeof LiveActivityTypes];
41
42
  export type LiveActivityAlertIcon = {
@@ -51,6 +52,7 @@ export type LiveActivityContentState = Record<string, unknown> & {
51
52
  subtitle?: string;
52
53
  type?: LiveActivityType | string;
53
54
  message?: string;
55
+ value?: string | number;
54
56
  icon?: LiveActivityAlertIcon;
55
57
  badge?: LiveActivityAlertBadge;
56
58
  color?: string;
@@ -98,6 +100,7 @@ export declare class LiveActivitiesResource {
98
100
  readonly stats: "stats";
99
101
  readonly alert: "alert";
100
102
  readonly timer: "timer";
103
+ readonly value: "value";
101
104
  };
102
105
  private readonly api;
103
106
  constructor(api: LiveActivitiesApi);
@@ -132,6 +135,7 @@ export declare class ActivitySmith {
132
135
  readonly stats: "stats";
133
136
  readonly alert: "alert";
134
137
  readonly timer: "timer";
138
+ readonly value: "value";
135
139
  };
136
140
  static readonly contentState: typeof contentState;
137
141
  static readonly alertIcon: typeof alertIcon;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActivitySmith = exports.MetricsResource = exports.LiveActivitiesResource = exports.NotificationsResource = void 0;
4
4
  const index_1 = require("../generated/index");
5
- const SDK_VERSION = "1.11.0";
5
+ const SDK_VERSION = "1.12.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}`;
@@ -13,6 +13,7 @@ const LiveActivityTypes = {
13
13
  stats: "stats",
14
14
  alert: "alert",
15
15
  timer: "timer",
16
+ value: "value",
16
17
  };
17
18
  function withTargetChannels(request) {
18
19
  const channels = request.channels;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "activitysmith",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Official ActivitySmith Node.js SDK",
5
5
  "keywords": [
6
6
  "activitysmith",