diff --git a/README.md b/README.md index e17eed6..6b8c365 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ activitysmith = ActivitySmith( ```python response = 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 } ) @@ -54,9 +54,9 @@ print(response.devices_notified) start = activitysmith.live_activities.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", @@ -75,9 +75,9 @@ update = activitysmith.live_activities.update( { "activity_id": activity_id, "content_state": { - "title": "ActivitySmith API Deployment", - "subtitle": "npm i & pm2", - "current_step": 3, + "title": "Nightly database backup", + "subtitle": "upload archive", + "current_step": 2, } } ) @@ -92,10 +92,10 @@ end = activitysmith.live_activities.end( { "activity_id": activity_id, "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, } } ) @@ -109,7 +109,7 @@ print(end.success) try: activitysmith.notifications.send( { - "title": "Build Failed", + "title": "New subscription 💸", } ) except Exception as err: diff --git a/activitysmith_openapi/docs/LiveActivitiesApi.md b/activitysmith_openapi/docs/LiveActivitiesApi.md index 9b7880c..e8e8ecb 100644 --- a/activitysmith_openapi/docs/LiveActivitiesApi.md +++ b/activitysmith_openapi/docs/LiveActivitiesApi.md @@ -47,7 +47,7 @@ configuration = activitysmith_openapi.Configuration( with activitysmith_openapi.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = activitysmith_openapi.LiveActivitiesApi(api_client) - live_activity_end_request = {"activity_id":"pLAr-Hnq9ZFW4sxlk43Lhbuok4GLh7UW","content_state":{"title":"ActivitySmith API Deployment","subtitle":"done","current_step":4,"auto_dismiss_minutes":3}} # LiveActivityEndRequest | + live_activity_end_request = {"activity_id":"pLAr-Hnq9ZFW4sxlk43Lhbuok4GLh7UW","content_state":{"title":"Nightly database backup","subtitle":"verify restore","current_step":3,"auto_dismiss_minutes":2}} # LiveActivityEndRequest | try: # End a Live Activity @@ -128,7 +128,7 @@ configuration = activitysmith_openapi.Configuration( with activitysmith_openapi.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = activitysmith_openapi.LiveActivitiesApi(api_client) - live_activity_start_request = {"content_state":{"title":"ActivitySmith API Deployment","subtitle":"start","number_of_steps":4,"current_step":1,"type":"segmented_progress","color":"yellow"}} # LiveActivityStartRequest | + live_activity_start_request = {"content_state":{"title":"Nightly database backup","subtitle":"create snapshot","number_of_steps":3,"current_step":1,"type":"segmented_progress","color":"yellow"}} # LiveActivityStartRequest | try: # Start a Live Activity @@ -211,7 +211,7 @@ configuration = activitysmith_openapi.Configuration( with activitysmith_openapi.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = activitysmith_openapi.LiveActivitiesApi(api_client) - live_activity_update_request = {"activity_id":"pLAr-Hnq9ZFW4sxlk43Lhbuok4GLh7UW","content_state":{"title":"ActivitySmith API Deployment","subtitle":"npm i & pm2","current_step":3}} # LiveActivityUpdateRequest | + live_activity_update_request = {"activity_id":"pLAr-Hnq9ZFW4sxlk43Lhbuok4GLh7UW","content_state":{"title":"Nightly database backup","subtitle":"upload archive","current_step":2}} # LiveActivityUpdateRequest | try: # Update a Live Activity diff --git a/activitysmith_openapi/docs/PushNotificationsApi.md b/activitysmith_openapi/docs/PushNotificationsApi.md index ce8a04a..83fa3cc 100644 --- a/activitysmith_openapi/docs/PushNotificationsApi.md +++ b/activitysmith_openapi/docs/PushNotificationsApi.md @@ -45,7 +45,7 @@ configuration = activitysmith_openapi.Configuration( with activitysmith_openapi.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = activitysmith_openapi.PushNotificationsApi(api_client) - push_notification_request = {"title":"Build Failed 🚨","message":"CI pipeline failed on main branch"} # PushNotificationRequest | + push_notification_request = {"title":"New subscription 💸","message":"Customer upgraded to Pro plan"} # PushNotificationRequest | try: # Send a push notification 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