activitysmith 0.1.8 → 1.1.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
@@ -32,7 +32,7 @@ const activitysmith = new ActivitySmith({
32
32
  });
33
33
  ```
34
34
 
35
- ## Usage
35
+ ## Push Notifications
36
36
 
37
37
  ### Send a Push Notification
38
38
 
@@ -41,38 +41,282 @@ const activitysmith = new ActivitySmith({
41
41
  </p>
42
42
 
43
43
  ```ts
44
- const response = await activitysmith.notifications.send({
44
+ await activitysmith.notifications.send({
45
45
  title: "New subscription 💸",
46
46
  message: "Customer upgraded to Pro plan",
47
47
  });
48
+ ```
49
+
50
+ ### Rich Push Notifications with Media
48
51
 
49
- console.log(response.success);
50
- console.log(response.devices_notified);
52
+ <p align="center">
53
+ <img src="https://cdn.activitysmith.com/features/rich-push-notification-with-image.png" alt="Rich push notification with image" width="680" />
54
+ </p>
55
+
56
+ ```ts
57
+ await activitysmith.notifications.send({
58
+ title: "Homepage ready",
59
+ message: "Your agent finished the redesign.",
60
+ media: "https://cdn.example.com/output/homepage-v2.png",
61
+ redirection: "https://github.com/acme/web/pull/482",
62
+ });
63
+ ```
64
+
65
+ Send images, videos, or audio with your push notifications, press and hold to preview media directly from the notification, then tap through to open the linked content.
66
+
67
+ <p align="center">
68
+ <img src="https://cdn.activitysmith.com/features/rich-push-notification-with-audio.png" alt="Rich push notification with audio" width="680" />
69
+ </p>
70
+
71
+ What will work:
72
+
73
+ - direct image URL: `.jpg`, `.png`, `.gif`, etc.
74
+ - direct audio file URL: `.mp3`, `.m4a`, etc.
75
+ - direct video file URL: `.mp4`, `.mov`, etc.
76
+ - URL that responds with a proper media `Content-Type`, even if the path has no extension
77
+
78
+ ### Actionable Push Notifications
79
+
80
+ <p align="center">
81
+ <img src="https://cdn.activitysmith.com/features/actionable-push-notifications-2.png" alt="Actionable push notification example" width="680" />
82
+ </p>
83
+
84
+ Actionable push notifications can open a URL on tap or trigger actions when someone long-presses the notification.
85
+ Webhooks are executed by the ActivitySmith backend.
86
+
87
+ ```ts
88
+ await activitysmith.notifications.send({
89
+ title: "New subscription 💸",
90
+ message: "Customer upgraded to Pro plan",
91
+ redirection: "https://crm.example.com/customers/cus_9f3a1d", // Optional
92
+ actions: [
93
+ {
94
+ title: "Open CRM Profile",
95
+ type: "open_url",
96
+ url: "https://crm.example.com/customers/cus_9f3a1d",
97
+ },
98
+ {
99
+ title: "Start Onboarding Workflow",
100
+ type: "webhook",
101
+ url: "https://hooks.example.com/activitysmith/onboarding/start",
102
+ method: "POST",
103
+ body: {
104
+ customer_id: "cus_9f3a1d",
105
+ plan: "pro",
106
+ },
107
+ },
108
+ ], // Optional (max 4)
109
+ });
51
110
  ```
52
111
 
53
112
  ## Live Activities
54
113
 
55
- Live Activities come in two UI types, but the lifecycle stays the same:
56
- start the activity, keep the returned `activity_id`, update it as state
57
- changes, then end it when the work is done.
114
+ <p align="center">
115
+ <img src="https://cdn.activitysmith.com/features/metrics-live-activity-action.png" alt="Live Activities example" width="680" />
116
+ </p>
117
+
118
+ ActivitySmith supports two ways to drive Live Activities:
119
+
120
+ - Recommended: stream updates with `activitysmith.liveActivities.stream(...)`
121
+ - Advanced: manual lifecycle control with `start`, `update`, and `end`
122
+
123
+ Use stream updates when you want the easiest, stateless flow. You don't need to
124
+ store `activity_id` or manage lifecycle state yourself. Send the latest state
125
+ for a stable `streamKey` and ActivitySmith will start or update the Live
126
+ Activity for you. When the tracked process is over, call `endStream(...)`.
127
+
128
+ Use the manual lifecycle methods when you need direct control over a specific
129
+ Live Activity instance.
130
+
131
+ Live Activity UI types:
132
+
133
+ - `metrics`: best for live operational stats like server CPU and memory, queue depth, or replica lag
134
+ - `segmented_progress`: best for step-based workflows like deployments, backups, and ETL pipelines
135
+ - `progress`: best for continuous jobs like uploads, reindexes, and long-running migrations tracked as a percentage
136
+
137
+ ### Recommended: Stream updates
138
+
139
+ Use a stable `streamKey` to identify the system or workflow you are tracking,
140
+ such as a server, deployment, build pipeline, cron job, or charging session.
141
+ This is especially useful for cron jobs and other scheduled tasks where you do
142
+ not want to store `activity_id` between runs.
143
+
144
+ #### Metrics
145
+
146
+ <p align="center">
147
+ <img src="https://cdn.activitysmith.com/features/metrics-live-activity-start.png" alt="Metrics stream example" width="680" />
148
+ </p>
149
+
150
+ ```ts
151
+ const status = await activitysmith.liveActivities.stream("prod-web-1", {
152
+ content_state: {
153
+ title: "Server Health",
154
+ subtitle: "prod-web-1",
155
+ type: "metrics",
156
+ metrics: [
157
+ { label: "CPU", value: 9, unit: "%" },
158
+ { label: "MEM", value: 45, unit: "%" },
159
+ ],
160
+ },
161
+ });
162
+ ```
163
+
164
+ #### Segmented progress
165
+
166
+ <p align="center">
167
+ <img src="https://cdn.activitysmith.com/features/update-live-activity.png" alt="Segmented progress stream example" width="680" />
168
+ </p>
169
+
170
+ ```ts
171
+ await activitysmith.liveActivities.stream("nightly-backup", {
172
+ content_state: {
173
+ title: "Nightly Backup",
174
+ subtitle: "upload archive",
175
+ type: "segmented_progress",
176
+ number_of_steps: 3,
177
+ current_step: 2,
178
+ },
179
+ });
180
+ ```
181
+
182
+ #### Progress
183
+
184
+ <p align="center">
185
+ <img src="https://cdn.activitysmith.com/features/progress-live-activity.png" alt="Progress stream example" width="680" />
186
+ </p>
187
+
188
+ ```ts
189
+ await activitysmith.liveActivities.stream("search-reindex", {
190
+ content_state: {
191
+ title: "Search Reindex",
192
+ subtitle: "catalog-v2",
193
+ type: "progress",
194
+ percentage: 42,
195
+ },
196
+ });
197
+ ```
198
+
199
+ Call `stream(...)` again with the same `streamKey` whenever the state changes.
200
+
201
+ #### End a stream
202
+
203
+ Use this when the tracked process is finished and you no longer want the Live
204
+ Activity on devices. `content_state` is optional here; include it if you want
205
+ to end the stream with a final state.
206
+
207
+ ```ts
208
+ await activitysmith.liveActivities.endStream("prod-web-1", {
209
+ content_state: {
210
+ title: "Server Health",
211
+ subtitle: "prod-web-1",
212
+ type: "metrics",
213
+ metrics: [
214
+ { label: "CPU", value: 7, unit: "%" },
215
+ { label: "MEM", value: 38, unit: "%" },
216
+ ],
217
+ },
218
+ });
219
+ ```
220
+
221
+ If you later send another `stream(...)` request with the same `streamKey`,
222
+ ActivitySmith starts a new Live Activity for that stream again.
223
+
224
+ Stream responses include an `operation` field:
58
225
 
59
- - `segmented_progress`: best for jobs tracked in steps
60
- - `progress`: best for jobs tracked as a percentage or numeric range
226
+ - `started`: ActivitySmith started a new Live Activity for this `streamKey`
227
+ - `updated`: ActivitySmith updated the current Live Activity
228
+ - `rotated`: ActivitySmith ended the previous Live Activity and started a new one
229
+ - `noop`: the incoming state matched the current state, so no update was sent
230
+ - `paused`: the stream is paused, so no Live Activity was started or updated
231
+ - `ended`: returned by `endStream(...)` after the stream is ended
61
232
 
62
- ### Shared flow
233
+ ### Advanced: Manual lifecycle control
234
+
235
+ Use these methods when you want to manage the Live Activity lifecycle yourself.
236
+
237
+ #### Shared flow
63
238
 
64
239
  1. Call `activitysmith.liveActivities.start(...)`.
65
240
  2. Save the returned `activity_id`.
66
241
  3. Call `activitysmith.liveActivities.update(...)` as progress changes.
67
242
  4. Call `activitysmith.liveActivities.end(...)` when the work is finished.
68
243
 
244
+ ### Metrics Type
245
+
246
+ Use `metrics` when you want to keep a small set of live stats visible, such as
247
+ server health, queue pressure, or database load.
248
+
249
+ #### Start
250
+
251
+ <p align="center">
252
+ <img src="https://cdn.activitysmith.com/features/metrics-live-activity-start.png" alt="Metrics start example" width="680" />
253
+ </p>
254
+
255
+ ```ts
256
+ const start = await activitysmith.liveActivities.start({
257
+ content_state: {
258
+ title: "Server Health",
259
+ subtitle: "prod-web-1",
260
+ type: "metrics",
261
+ metrics: [
262
+ { label: "CPU", value: 9, unit: "%" },
263
+ { label: "MEM", value: 45, unit: "%" },
264
+ ],
265
+ },
266
+ });
267
+
268
+ const activityId = start.activity_id;
269
+ ```
270
+
271
+ #### Update
272
+
273
+ <p align="center">
274
+ <img src="https://cdn.activitysmith.com/features/metrics-live-activity-update.png" alt="Metrics update example" width="680" />
275
+ </p>
276
+
277
+ ```ts
278
+ await activitysmith.liveActivities.update({
279
+ activity_id: activityId,
280
+ content_state: {
281
+ title: "Server Health",
282
+ subtitle: "prod-web-1",
283
+ type: "metrics",
284
+ metrics: [
285
+ { label: "CPU", value: 76, unit: "%" },
286
+ { label: "MEM", value: 52, unit: "%" },
287
+ ],
288
+ },
289
+ });
290
+ ```
291
+
292
+ #### End
293
+
294
+ <p align="center">
295
+ <img src="https://cdn.activitysmith.com/features/metrics-live-activity-end.png" alt="Metrics end example" width="680" />
296
+ </p>
297
+
298
+ ```ts
299
+ await activitysmith.liveActivities.end({
300
+ activity_id: activityId,
301
+ content_state: {
302
+ title: "Server Health",
303
+ subtitle: "prod-web-1",
304
+ type: "metrics",
305
+ metrics: [
306
+ { label: "CPU", value: 7, unit: "%" },
307
+ { label: "MEM", value: 38, unit: "%" },
308
+ ],
309
+ auto_dismiss_minutes: 2,
310
+ },
311
+ });
312
+ ```
313
+
69
314
  ### Segmented Progress Type
70
315
 
71
316
  Use `segmented_progress` when progress is easier to follow as steps instead of a
72
317
  raw percentage. It fits jobs like backups, deployments, ETL pipelines, and
73
- checklists where "step 2 of 3" is more useful than "67%".
74
- `number_of_steps` is dynamic, so you can increase or decrease it later if the
75
- workflow changes.
318
+ checklists where "step 2 of 3" is more useful than "67%". `number_of_steps` is
319
+ dynamic, so you can increase or decrease it later if the workflow changes.
76
320
 
77
321
  #### Start
78
322
 
@@ -90,7 +334,6 @@ const start = await activitysmith.liveActivities.start({
90
334
  type: "segmented_progress",
91
335
  color: "yellow",
92
336
  },
93
- channels: ["devs", "ops"], // Optional
94
337
  });
95
338
 
96
339
  const activityId = start.activity_id;
@@ -103,17 +346,15 @@ const activityId = start.activity_id;
103
346
  </p>
104
347
 
105
348
  ```ts
106
- const update = await activitysmith.liveActivities.update({
349
+ await activitysmith.liveActivities.update({
107
350
  activity_id: activityId,
108
351
  content_state: {
109
352
  title: "Nightly database backup",
110
353
  subtitle: "upload archive",
111
- number_of_steps: 4,
354
+ number_of_steps: 3,
112
355
  current_step: 2,
113
356
  },
114
357
  });
115
-
116
- console.log(update.devices_notified);
117
358
  ```
118
359
 
119
360
  #### End
@@ -123,18 +364,16 @@ console.log(update.devices_notified);
123
364
  </p>
124
365
 
125
366
  ```ts
126
- const end = await activitysmith.liveActivities.end({
367
+ await activitysmith.liveActivities.end({
127
368
  activity_id: activityId,
128
369
  content_state: {
129
370
  title: "Nightly database backup",
130
371
  subtitle: "verify restore",
131
- number_of_steps: 4,
132
- current_step: 4,
372
+ number_of_steps: 3,
373
+ current_step: 3,
133
374
  auto_dismiss_minutes: 2,
134
375
  },
135
376
  });
136
-
137
- console.log(end.success);
138
377
  ```
139
378
 
140
379
  ### Progress Type
@@ -198,73 +437,74 @@ await activitysmith.liveActivities.end({
198
437
  });
199
438
  ```
200
439
 
201
- ## Channels
440
+ ### Live Activity Action
202
441
 
203
- Channels are used to target specific team members or devices. Can be used for both push notifications and live activities.
442
+ Just like Actionable Push Notifications, Live Activities can have a button that opens provided URL in a browser or triggers a webhook. Webhooks are executed by the ActivitySmith backend.
204
443
 
205
- ```ts
206
- const response = await activitysmith.notifications.send({
207
- title: "New subscription 💸",
208
- message: "Customer upgraded to Pro plan",
209
- channels: ["sales", "customer-success"], // Optional
210
- });
211
- ```
212
-
213
- ## Rich Push Notifications with Media
444
+ #### Open URL action
214
445
 
215
446
  <p align="center">
216
- <img src="https://cdn.activitysmith.com/features/rich-push-notification-with-image.png" alt="Rich push notification with image" width="680" />
447
+ <img src="https://cdn.activitysmith.com/features/metrics-live-activity-action.png" alt="Metrics Live Activity with action" width="680" />
217
448
  </p>
218
449
 
219
450
  ```ts
220
- const response = await activitysmith.notifications.send({
221
- title: "Homepage ready",
222
- message: "Your agent finished the redesign.",
223
- media: "https://cdn.example.com/output/homepage-v2.png",
224
- redirection: "https://github.com/acme/web/pull/482",
451
+ const start = await activitysmith.liveActivities.start({
452
+ content_state: {
453
+ title: "Server Health",
454
+ subtitle: "prod-web-1",
455
+ type: "metrics",
456
+ metrics: [
457
+ { label: "CPU", value: 76, unit: "%" },
458
+ { label: "MEM", value: 52, unit: "%" },
459
+ ],
460
+ },
461
+ action: {
462
+ title: "Open Dashboard",
463
+ type: "open_url",
464
+ url: "https://ops.example.com/servers/prod-web-1",
465
+ },
225
466
  });
467
+
468
+ const activityId = start.activity_id;
226
469
  ```
227
470
 
228
- Send images, videos, or audio with your push notifications, press and hold to preview media directly from the notification, then tap through to open the linked content.
471
+ #### Webhook action
229
472
 
230
473
  <p align="center">
231
- <img src="https://cdn.activitysmith.com/features/rich-push-notification-with-audio.png" alt="Rich push notification with audio" width="680" />
474
+ <img src="https://cdn.activitysmith.com/features/live-activity-with-action.png?v=20260319-1" alt="Live Activity with action" width="680" />
232
475
  </p>
233
476
 
234
- What will work:
235
-
236
- - direct image URL: `.jpg`, `.png`, `.gif`, etc.
237
- - direct audio file URL: `.mp3`, `.m4a`, etc.
238
- - direct video file URL: `.mp4`, `.mov`, etc.
239
- - URL that responds with a proper media `Content-Type`, even if the path has no extension
477
+ ```ts
478
+ await activitysmith.liveActivities.update({
479
+ activity_id: activityId,
480
+ content_state: {
481
+ title: "Reindexing product search",
482
+ subtitle: "Shard 7 of 12",
483
+ number_of_steps: 12,
484
+ current_step: 7,
485
+ },
486
+ action: {
487
+ title: "Pause Reindex",
488
+ type: "webhook",
489
+ url: "https://ops.example.com/hooks/search/reindex/pause",
490
+ method: "POST",
491
+ body: {
492
+ job_id: "reindex-2026-03-19",
493
+ requested_by: "activitysmith-node",
494
+ },
495
+ },
496
+ });
497
+ ```
240
498
 
241
- ## Push Notification Redirection and Actions
499
+ ## Channels
242
500
 
243
- Push notification redirection and actions are optional and can be used to redirect the user to a specific URL when they tap the notification or to trigger a specific action when they long-press the notification.
244
- Webhooks are executed by ActivitySmith backend.
501
+ Channels are used to target specific team members or devices. Can be used for both push notifications and live activities.
245
502
 
246
503
  ```ts
247
- const response = await activitysmith.notifications.send({
504
+ await activitysmith.notifications.send({
248
505
  title: "New subscription 💸",
249
506
  message: "Customer upgraded to Pro plan",
250
- redirection: "https://crm.example.com/customers/cus_9f3a1d", // Optional
251
- actions: [
252
- {
253
- title: "Open CRM Profile",
254
- type: "open_url",
255
- url: "https://crm.example.com/customers/cus_9f3a1d",
256
- },
257
- {
258
- title: "Start Onboarding Workflow",
259
- type: "webhook",
260
- url: "https://hooks.example.com/activitysmith/onboarding/start",
261
- method: "POST",
262
- body: {
263
- customer_id: "cus_9f3a1d",
264
- plan: "pro",
265
- },
266
- },
267
- ], // Optional (max 4)
507
+ channels: ["sales", "customer-success"], // Optional
268
508
  });
269
509
  ```
270
510
 
@@ -10,10 +10,18 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { LiveActivityEndRequest, LiveActivityEndResponse, LiveActivityStartRequest, LiveActivityStartResponse, LiveActivityUpdateRequest, LiveActivityUpdateResponse } from '../models/index';
13
+ import type { LiveActivityEndRequest, LiveActivityEndResponse, LiveActivityStartRequest, LiveActivityStartResponse, LiveActivityStreamDeleteRequest, LiveActivityStreamDeleteResponse, LiveActivityStreamPutResponse, LiveActivityStreamRequest, LiveActivityUpdateRequest, LiveActivityUpdateResponse } from '../models/index';
14
14
  export interface EndLiveActivityRequest {
15
15
  liveActivityEndRequest: LiveActivityEndRequest;
16
16
  }
17
+ export interface EndLiveActivityStreamRequest {
18
+ streamKey: string;
19
+ liveActivityStreamDeleteRequest?: LiveActivityStreamDeleteRequest;
20
+ }
21
+ export interface ReconcileLiveActivityStreamRequest {
22
+ streamKey: string;
23
+ liveActivityStreamRequest: LiveActivityStreamRequest;
24
+ }
17
25
  export interface StartLiveActivityRequest {
18
26
  liveActivityStartRequest: LiveActivityStartRequest;
19
27
  }
@@ -25,32 +33,52 @@ export interface UpdateLiveActivityRequest {
25
33
  */
26
34
  export declare class LiveActivitiesApi extends runtime.BaseAPI {
27
35
  /**
28
- * Ends a Live Activity and archives its lifecycle. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
36
+ * Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, and the legacy counter/timer/countdown step-based activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
29
37
  * End a Live Activity
30
38
  */
31
39
  endLiveActivityRaw(requestParameters: EndLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityEndResponse>>;
32
40
  /**
33
- * Ends a Live Activity and archives its lifecycle. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
41
+ * Ends a Live Activity and archives its lifecycle. Supports segmented_progress, progress, metrics, and the legacy counter/timer/countdown step-based activity types. For segmented_progress activities, you can send the latest number_of_steps here if the workflow changed after start.
34
42
  * End a Live Activity
35
43
  */
36
44
  endLiveActivity(requestParameters: EndLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityEndResponse>;
37
45
  /**
38
- * Starts a Live Activity on devices matched by API key scope and optional target channels. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
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.
47
+ * End a stream
48
+ */
49
+ endLiveActivityStreamRaw(requestParameters: EndLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStreamDeleteResponse>>;
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.
52
+ * End a stream
53
+ */
54
+ endLiveActivityStream(requestParameters: EndLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStreamDeleteResponse>;
55
+ /**
56
+ * Use this endpoint when you want the easiest, stateless way to trigger Live Activities. You do not need to store activity_id or manage the Live Activity lifecycle yourself. Send the latest state for a stable stream_key and ActivitySmith will handle the rest for you: if there is no Live Activity yet, it starts one; if there is already one for this stream, it updates it. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead.
57
+ * Send a stream update
58
+ */
59
+ reconcileLiveActivityStreamRaw(requestParameters: ReconcileLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStreamPutResponse>>;
60
+ /**
61
+ * Use this endpoint when you want the easiest, stateless way to trigger Live Activities. You do not need to store activity_id or manage the Live Activity lifecycle yourself. Send the latest state for a stable stream_key and ActivitySmith will handle the rest for you: if there is no Live Activity yet, it starts one; if there is already one for this stream, it updates it. If you need direct lifecycle control, use /live-activity/start, /live-activity/update, and /live-activity/end instead.
62
+ * Send a stream update
63
+ */
64
+ reconcileLiveActivityStream(requestParameters: ReconcileLiveActivityStreamRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStreamPutResponse>;
65
+ /**
66
+ * Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, and the legacy counter/timer/countdown step-based activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
39
67
  * Start a Live Activity
40
68
  */
41
69
  startLiveActivityRaw(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityStartResponse>>;
42
70
  /**
43
- * Starts a Live Activity on devices matched by API key scope and optional target channels. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
71
+ * Starts a Live Activity on devices matched by API key scope and optional target channels. Supports segmented_progress, progress, metrics, and the legacy counter/timer/countdown step-based activity types. For segmented_progress activities, number_of_steps can be changed later during update or end calls if the workflow changes.
44
72
  * Start a Live Activity
45
73
  */
46
74
  startLiveActivity(requestParameters: StartLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityStartResponse>;
47
75
  /**
48
- * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
76
+ * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, and the legacy counter/timer/countdown step-based activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
49
77
  * Update a Live Activity
50
78
  */
51
79
  updateLiveActivityRaw(requestParameters: UpdateLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LiveActivityUpdateResponse>>;
52
80
  /**
53
- * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
81
+ * Updates an existing Live Activity. If the per-activity token is not registered yet, the update is queued. Supports segmented_progress, progress, metrics, and the legacy counter/timer/countdown step-based activity types. For segmented_progress activities, you can increase or decrease number_of_steps here as the workflow changes.
54
82
  * Update a Live Activity
55
83
  */
56
84
  updateLiveActivity(requestParameters: UpdateLiveActivityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LiveActivityUpdateResponse>;