From e74e1bd1820f9754ce5abc1d058a6aad50127e3d Mon Sep 17 00:00:00 2001 From: activitysmith-bot Date: Sat, 21 Feb 2026 09:08:33 +0000 Subject: [PATCH 1/2] chore: regenerate SDK --- generated/.regen-branch.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generated/.regen-branch.txt b/generated/.regen-branch.txt index 5dbdbb2..4014fec 100644 --- a/generated/.regen-branch.txt +++ b/generated/.regen-branch.txt @@ -1 +1 @@ -regen/openapi-e3d906fdaa37dd3d08772a17115a21f9c25e0ace +regen/openapi-2e618c9b53b45115eb880ab971dae2a3dae7d3f4 From f099d7c7fc79b533819f776bede25b90ea832932 Mon Sep 17 00:00:00 2001 From: bardonadam Date: Sat, 21 Feb 2026 10:19:18 +0100 Subject: [PATCH 2/2] docs: update README examples --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6228337..c978589 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ const activitysmith = new ActivitySmith({ ```ts const response = await activitysmith.notifications.send({ - title: "Build Failed", - message: "CI pipeline failed on main branch", + title: "New subscription 💸", + message: "Customer upgraded to Pro plan", channels: ["devs", "ops"], // Optional }); @@ -52,9 +52,9 @@ console.log(response.devices_notified); ```ts const start = await activitysmith.liveActivities.start({ content_state: { - title: "ActivitySmith API Deployment", - subtitle: "start", - number_of_steps: 4, + title: "Nightly database backup", + subtitle: "create snapshot", + number_of_steps: 3, current_step: 1, type: "segmented_progress", color: "yellow", @@ -71,9 +71,9 @@ const activityId = start.activity_id; const update = await activitysmith.liveActivities.update({ activity_id: activityId, content_state: { - title: "ActivitySmith API Deployment", - subtitle: "npm i & pm2", - current_step: 3, + title: "Nightly database backup", + subtitle: "upload archive", + current_step: 2, }, }); @@ -86,10 +86,10 @@ console.log(update.devices_notified); const end = await activitysmith.liveActivities.end({ activity_id: activityId, content_state: { - title: "ActivitySmith API Deployment", - subtitle: "done", - current_step: 4, - auto_dismiss_minutes: 3, + title: "Nightly database backup", + subtitle: "verify restore", + current_step: 3, + auto_dismiss_minutes: 2, }, }); @@ -101,7 +101,7 @@ console.log(end.success); ```ts try { await activitysmith.notifications.send({ - title: "Build Failed", + title: "New subscription 💸", }); } catch (error) { console.error(error);