trophy_api_client 1.30.0 → 1.31.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 +4 -4
- data/lib/trophy/types/messaging_preferences.rb +13 -0
- data/lib/trophy/types/user_preferences_response.rb +2 -0
- data/lib/trophy/users/client.rb +3 -3
- data/lib/trophy/users/types/update_user_preferences_request.rb +2 -0
- data/lib/trophy/version.rb +1 -1
- data/lib/trophy.rb +1 -0
- data/reference.md +10 -2
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e04ba2c76416d9073837bf8c81f761dbd9805825b338dda318631ee430dbdb1b
|
|
4
|
+
data.tar.gz: 681810527cc470cb1e9f4f6e4f8f99bdf9d25a565a7e94088ccc816f0622bfd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '045921d6681fddb0a154d08165b598ce4fb82c30bc9e558ac41fa439985cfe50d5b1a4b34145254772a98ab787846752a5775b369e6664cf4c323a172af68615'
|
|
7
|
+
data.tar.gz: c4f1aedb273494df5699d013a3888941ee6616c888cfea5604654f131f487805447a864dfe2e91413f59c33cfc1ab8b953e1cbf9bd43e223cbe3f4e848706edd
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Trophy
|
|
4
|
+
module Types
|
|
5
|
+
# The user's agentic messaging preferences: the channels its messages may use, and how many and what kinds of
|
|
6
|
+
# messages they want.
|
|
7
|
+
class MessagingPreferences < Internal::Types::Model
|
|
8
|
+
field :channels, -> { Internal::Types::Array[Trophy::Types::NotificationChannel] }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :temperature, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -7,6 +7,8 @@ module Trophy
|
|
|
7
7
|
field :notifications, -> { Trophy::Types::NotificationPreferences }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :streak, -> { Trophy::Types::StreakPreferences }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :messaging, -> { Trophy::Types::MessagingPreferences }, optional: false, nullable: false
|
|
10
12
|
end
|
|
11
13
|
end
|
|
12
14
|
end
|
data/lib/trophy/users/client.rb
CHANGED
|
@@ -152,7 +152,7 @@ module Trophy
|
|
|
152
152
|
end
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
-
# Get a user's notification preferences.
|
|
155
|
+
# Get a user's notification, streak and agentic messaging preferences.
|
|
156
156
|
#
|
|
157
157
|
# @param request_options [Hash]
|
|
158
158
|
# @param params [Hash]
|
|
@@ -186,8 +186,8 @@ module Trophy
|
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
# Update a user's notification and
|
|
190
|
-
# streak customization to be enabled in your Trophy dashboard settings.
|
|
189
|
+
# Update a user's notification, streak and agentic messaging preferences. Streak preferences other than
|
|
190
|
+
# `streak.enabled` require streak customization to be enabled in your Trophy dashboard settings.
|
|
191
191
|
#
|
|
192
192
|
# @param request_options [Hash]
|
|
193
193
|
# @param params [Trophy::Users::Types::UpdateUserPreferencesRequest]
|
|
@@ -9,6 +9,8 @@ module Trophy
|
|
|
9
9
|
field :notifications, -> { Trophy::Types::NotificationPreferences }, optional: true, nullable: false
|
|
10
10
|
|
|
11
11
|
field :streak, -> { Trophy::Types::StreakPreferences }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :messaging, -> { Trophy::Types::MessagingPreferences }, optional: true, nullable: false
|
|
12
14
|
end
|
|
13
15
|
end
|
|
14
16
|
end
|
data/lib/trophy/version.rb
CHANGED
data/lib/trophy.rb
CHANGED
|
@@ -122,6 +122,7 @@ require_relative "trophy/types/notification_preferences"
|
|
|
122
122
|
require_relative "trophy/types/streak_evaluation_mode_preference"
|
|
123
123
|
require_relative "trophy/types/streak_metric_preference"
|
|
124
124
|
require_relative "trophy/types/streak_preferences"
|
|
125
|
+
require_relative "trophy/types/messaging_preferences"
|
|
125
126
|
require_relative "trophy/types/user_preferences_response"
|
|
126
127
|
require_relative "trophy/types/error_body"
|
|
127
128
|
require_relative "trophy/types/reward_summary_type"
|
data/reference.md
CHANGED
|
@@ -622,7 +622,7 @@ client.users.update(
|
|
|
622
622
|
<dl>
|
|
623
623
|
<dd>
|
|
624
624
|
|
|
625
|
-
Get a user's notification preferences.
|
|
625
|
+
Get a user's notification, streak and agentic messaging preferences.
|
|
626
626
|
</dd>
|
|
627
627
|
</dl>
|
|
628
628
|
</dd>
|
|
@@ -684,7 +684,7 @@ client.users.get_preferences(id: "user-123")
|
|
|
684
684
|
<dl>
|
|
685
685
|
<dd>
|
|
686
686
|
|
|
687
|
-
Update a user's notification and
|
|
687
|
+
Update a user's notification, streak and agentic messaging preferences. Streak preferences other than `streak.enabled` require streak customization to be enabled in your Trophy dashboard settings.
|
|
688
688
|
</dd>
|
|
689
689
|
</dl>
|
|
690
690
|
</dd>
|
|
@@ -743,6 +743,14 @@ client.users.update_preferences(
|
|
|
743
743
|
<dl>
|
|
744
744
|
<dd>
|
|
745
745
|
|
|
746
|
+
**messaging:** `Trophy::Types::MessagingPreferences`
|
|
747
|
+
|
|
748
|
+
</dd>
|
|
749
|
+
</dl>
|
|
750
|
+
|
|
751
|
+
<dl>
|
|
752
|
+
<dd>
|
|
753
|
+
|
|
746
754
|
**request_options:** `Trophy::Users::RequestOptions`
|
|
747
755
|
|
|
748
756
|
</dd>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trophy_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.31.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trophy
|
|
@@ -302,6 +302,7 @@ files:
|
|
|
302
302
|
- lib/trophy/types/list_reward_triggers_response.rb
|
|
303
303
|
- lib/trophy/types/list_rewards_response.rb
|
|
304
304
|
- lib/trophy/types/list_tenants_response.rb
|
|
305
|
+
- lib/trophy/types/messaging_preferences.rb
|
|
305
306
|
- lib/trophy/types/metric_event_leaderboard_response.rb
|
|
306
307
|
- lib/trophy/types/metric_event_leaderboard_response_breakdown_attribute_values_item.rb
|
|
307
308
|
- lib/trophy/types/metric_event_points_response.rb
|