activitysmith 1.16.0 → 1.17.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 847a7358606e055a340575251f75cb645d7608c17a5186653024be6208df41bc
4
- data.tar.gz: 8ec8a64892be880476a14ce17e77d4381ca35ee5174a935fe8605fc075268c1f
3
+ metadata.gz: d21771a83fde5f599e162b06b3fef72fe55ff98fea01597191016fbbb49083ea
4
+ data.tar.gz: eaac2cc0e29be7bb04da544d545ea1bd0ed498f1e1bf62032e9b5c322c042883
5
5
  SHA512:
6
- metadata.gz: 0f60325e034b85d8a5d921099ba0e0755738d5b495223bf91e6c3c6bb4ed59fc538ef87e9971cab21006e54ac31d9bba4bfedd8addf8cb277bff64fc08856a5e
7
- data.tar.gz: 285c44d33d021653406b401a795b40acd0e7eacf571417133f3bd265fa2745a566fd29ca6ef07768aca163cc63329993262c733d5ebcf12552d6e8fea96f0faf
6
+ metadata.gz: fee62a36f58650306ba5d07fe73d34497f7060f92a58b20036617dd4566634750d9f66492b8ee4d94b589b53b58316a2a4b1eee663995057095fb99f4b5c457d
7
+ data.tar.gz: '0318bd89da3bc922ae9f8aa92b3356b6fa4e4aded43214265beb03081adaa1dee764824e23b08d123193a97ae36ae982def9dcb09408c5c8f1e66d59c602830e'
data/README.md CHANGED
@@ -562,15 +562,20 @@ Choose from these colors for the Live Activity accent, including progress bars a
562
562
 
563
563
  Live Activities can include an action button.
564
564
 
565
- - `open_url`: Open a web page or run an iOS Shortcut
565
+ - `open_url`: Open a web page, run an iOS Shortcut, or open an app
566
566
  - `webhook`: Trigger a backend GET/POST workflow
567
567
 
568
568
  #### Open URL action
569
569
 
570
- Open a web page or run an iOS Shortcut when someone taps the button. Supported links:
570
+ Open a web page, run an iOS Shortcut, or open an app when someone taps the button. Supported links:
571
571
 
572
572
  - **HTTP/HTTPS:** Web pages, e.g. `https://example.com`
573
573
  - **Shortcuts:** Run Jarvis with `shortcuts://run-shortcut?name=Jarvis` <!-- full-width -->
574
+ - **App deep links:** Installed apps or specific content within them
575
+ - **Spotify:** A track, e.g. `spotify:track:6rqhFgbbKwnb9MLmUQDhG6`
576
+ - **Termius:** `termius://` to open the app
577
+ - **Claude:** `claude://code` to open the Code tab
578
+ - **ChatGPT:** `chatgpt://` to open the app <!-- Verify ChatGPT URL scheme on iOS before publishing -->
574
579
 
575
580
  ```ruby
576
581
  activitysmith.live_activities.stream(
@@ -618,6 +623,30 @@ activitysmith.live_activities.stream(
618
623
  )
619
624
  ```
620
625
 
626
+ #### End after the tap
627
+
628
+ Set `dismiss_after_action` on an `open_url` button to end the Live Activity when someone taps it. The button opens its link, then the Live Activity ends.
629
+
630
+ ```ruby
631
+ activitysmith.live_activities.stream(
632
+ "agent-review",
633
+ {
634
+ content_state: {
635
+ title: "Review Ready",
636
+ message: "Claude finished the checkout refactor.",
637
+ type: "alert",
638
+ color: "green"
639
+ },
640
+ action: {
641
+ title: "Open Claude",
642
+ type: "open_url",
643
+ url: "claude://code",
644
+ dismiss_after_action: true
645
+ }
646
+ }
647
+ )
648
+ ```
649
+
621
650
  #### Webhook action
622
651
 
623
652
  ```ruby
@@ -691,7 +720,7 @@ activitysmith.live_activities.stream(
691
720
 
692
721
  ### Live Activity Sounds
693
722
 
694
- Starting a Live Activity plays the Live Activities sound picked in the ActivitySmith app. Updates and ends are silent. Set `sound` on a start, update, or end to choose its sound, with the same values as [Push Notification Sounds](#push-notification-sounds). A sound on an update or end also expands the Live Activity on the Lock Screen, so use it for moments that need attention, such as a failed step.
723
+ Starting a Live Activity plays the Live Activities sound picked in the ActivitySmith app. Updates and ends are silent. Set `sound` on a start, update, or end to choose its sound, with the same values as [Push Notification Sounds](#push-notification-sounds). A sound on an update or end plays only while the screen is on. Use it for moments that need attention, such as a failed step.
695
724
 
696
725
  ```ruby
697
726
  activitysmith.live_activities.stream(
@@ -21,9 +21,12 @@ module OpenapiClient
21
21
 
22
22
  attr_accessor :type
23
23
 
24
- # Action URL. For open_url, use an HTTP or HTTPS URL or a shortcuts://run-shortcut?name=... URL that runs a specific iPhone Shortcut. For webhook, use an HTTPS URL called by the ActivitySmith backend.
24
+ # Action URL. For open_url, use an HTTP or HTTPS URL, a shortcuts://run-shortcut?name=... URL that runs a specific iPhone Shortcut, or an installed app's custom URL scheme, such as spotify:// or spotify:track:123. Custom app schemes need the target app installed and have no web fallback. Unsafe schemes and ActivitySmith's own scheme are blocked. For webhook, use an HTTPS URL called by the ActivitySmith backend.
25
25
  attr_accessor :url
26
26
 
27
+ # Ends the Live Activity after the button opens its URL. Used only when type=open_url. Defaults to false.
28
+ attr_accessor :dismiss_after_action
29
+
27
30
  # Webhook HTTP method. Used only when type=webhook.
28
31
  attr_accessor :method
29
32
 
@@ -58,6 +61,7 @@ module OpenapiClient
58
61
  :'title' => :'title',
59
62
  :'type' => :'type',
60
63
  :'url' => :'url',
64
+ :'dismiss_after_action' => :'dismiss_after_action',
61
65
  :'method' => :'method',
62
66
  :'body' => :'body'
63
67
  }
@@ -74,6 +78,7 @@ module OpenapiClient
74
78
  :'title' => :'String',
75
79
  :'type' => :'LiveActivityActionType',
76
80
  :'url' => :'String',
81
+ :'dismiss_after_action' => :'Boolean',
77
82
  :'method' => :'LiveActivityWebhookMethod',
78
83
  :'body' => :'Object'
79
84
  }
@@ -118,6 +123,10 @@ module OpenapiClient
118
123
  self.url = nil
119
124
  end
120
125
 
126
+ if attributes.key?(:'dismiss_after_action')
127
+ self.dismiss_after_action = attributes[:'dismiss_after_action']
128
+ end
129
+
121
130
  if attributes.key?(:'method')
122
131
  self.method = attributes[:'method']
123
132
  else
@@ -167,6 +176,7 @@ module OpenapiClient
167
176
  title == o.title &&
168
177
  type == o.type &&
169
178
  url == o.url &&
179
+ dismiss_after_action == o.dismiss_after_action &&
170
180
  method == o.method &&
171
181
  body == o.body
172
182
  end
@@ -180,7 +190,7 @@ module OpenapiClient
180
190
  # Calculates hash code according to all attributes.
181
191
  # @return [Integer] Hash code
182
192
  def hash
183
- [title, type, url, method, body].hash
193
+ [title, type, url, dismiss_after_action, method, body].hash
184
194
  end
185
195
 
186
196
  # Builds the object from hash
@@ -28,10 +28,10 @@ module OpenapiClient
28
28
 
29
29
  attr_accessor :action
30
30
 
31
- # 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.
31
+ # Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url and webhook shapes as action, including app URL schemes and dismiss_after_action.
32
32
  attr_accessor :secondary_action
33
33
 
34
- # Optional sound for the end. Ends are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
34
+ # Optional sound for the end. Ends are silent unless you set one. iOS plays the sound only while the screen is on. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
35
35
  attr_accessor :sound
36
36
 
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -23,7 +23,7 @@ module OpenapiClient
23
23
 
24
24
  attr_accessor :action
25
25
 
26
- # 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.
26
+ # Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url and webhook shapes as action, including app URL schemes and dismiss_after_action.
27
27
  attr_accessor :secondary_action
28
28
 
29
29
  attr_accessor :alert
@@ -26,12 +26,12 @@ module OpenapiClient
26
26
 
27
27
  attr_accessor :action
28
28
 
29
- # 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.
29
+ # Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url and webhook shapes as action, including app URL schemes and dismiss_after_action.
30
30
  attr_accessor :secondary_action
31
31
 
32
32
  attr_accessor :alert
33
33
 
34
- # Optional sound for the end. Ends are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
34
+ # Optional sound for the end. Ends are silent unless you set one. iOS plays the sound only while the screen is on. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
35
35
  attr_accessor :sound
36
36
 
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -23,7 +23,7 @@ module OpenapiClient
23
23
 
24
24
  attr_accessor :action
25
25
 
26
- # 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.
26
+ # Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url and webhook shapes as action, including app URL schemes and dismiss_after_action.
27
27
  attr_accessor :secondary_action
28
28
 
29
29
  attr_accessor :alert
@@ -36,7 +36,7 @@ module OpenapiClient
36
36
  # Optional tags to organize and filter notification history.
37
37
  attr_accessor :tags
38
38
 
39
- # Optional sound for this call. A call that starts a Live Activity plays the Live Activities sound picked on the device unless you set one. Updates are silent unless you set one. A sound on an update also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
39
+ # Optional sound for this call. A call that starts a Live Activity plays the Live Activities sound picked on the device unless you set one. Updates are silent unless you set one. iOS plays an update sound only while the screen is on. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
40
40
  attr_accessor :sound
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -28,10 +28,10 @@ module OpenapiClient
28
28
 
29
29
  attr_accessor :action
30
30
 
31
- # 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.
31
+ # Optional secondary action button. Supported for alert, progress, segmented_progress, and value Live Activities. Uses the same open_url and webhook shapes as action, including app URL schemes and dismiss_after_action.
32
32
  attr_accessor :secondary_action
33
33
 
34
- # Optional sound for this update. Updates are silent unless you set one. A sound also expands the Live Activity on the Lock Screen. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
34
+ # Optional sound for this update. Updates are silent unless you set one. iOS plays the sound only while the screen is on. Sounds bundled with the ActivitySmith app: `arrive`, `bell`, `bells`, `bitflip`, `bloom`, `callout`, `chime`, `coin`, `corrupt`, `crest`, `cue`, `ding`, `drop`, `ember`, `emblem`, `flourish`, `glimmer`, `glint`, `glitch`, `lantern`, `nightfall`, `nudge`, `pixel`, `pop`, `signal`, `streak`, `tally`, `wand`, `whoosh`, `zip`. Use `default` for the sound picked on the device, or `none` for no sound.
35
35
  attr_accessor :sound
36
36
 
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ Generator version: 7.7.0
11
11
  =end
12
12
 
13
13
  module OpenapiClient
14
- VERSION = '1.15.0'
14
+ VERSION = '1.16.0'
15
15
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "repository": "ActivitySmithHQ/activitysmith-backend",
3
- "commit": "0e64cfe1c855105aff7c2719df28759ae2f2d1cf",
3
+ "commit": "ee4e61daf707d8e4e7d4beecd2c9254998b5ead0",
4
4
  "path": "openapi.json",
5
- "sha256": "72b820a2f8447c24f2f11a3a9b4bf89709e668f39037715498c07565cf075642"
5
+ "sha256": "3234a1b17f86d6abb7c04e1bb7c95ecba9be130fe3b563f88b44d53620bfbde0"
6
6
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActivitySmith
4
- VERSION = "1.16.0"
4
+ VERSION = "1.17.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activitysmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ActivitySmith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-19 00:00:00.000000000 Z
11
+ date: 2026-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json