chat_sdk-teams 0.5.0 → 0.6.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chat_sdk/teams/adapter.rb +2 -28
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 799f1b70fcdec6365e02ec7fd3920c83f171f60d37abc00caafb370f4250336f
4
- data.tar.gz: f75bd7b4950741c194ec432e82689caf59d911591cb1fe21ea236ffccf6b98a3
3
+ metadata.gz: 5077208fda83c5941a590c7daa94b0d821399dcd49d92f3b5368498cd7e30f0b
4
+ data.tar.gz: 6271ccca3f36db8cadb455bfa47ead36eccf5ab6b6363edc39342d223f39979d
5
5
  SHA512:
6
- metadata.gz: '091619ca8e40cfedc334ed3a14a7d7922ebc84d58f5a9072aacf71ba8cebbb3e8c758c51a8a06320644ed0b5a21e600def9ede392bffa692beb5d82b6a8abcce'
7
- data.tar.gz: 71523b1aa4925c80c695ba3838dca729a5fa33468c86437aa4bedd3bf8e027ea5b610f97161bc40184aa117eda1bb82e32ee89955aadf745e50273248a17b71f
6
+ metadata.gz: 7a219d54aa4725525307540f3fec911ce6c956f3421faf2ba88ac2ab672972a46509b85128d044b1f8d48152ffe52973a3e241c5bc3a047c110edfef3f607ebd
7
+ data.tar.gz: 19555fa3ae535a42cf93ebd79e3e7695221648880d19d42d2a1562550b29085db991f630a12f4b60424074a85941fb4c485bf4e6f67f39ffbb4025223289840e
@@ -4,8 +4,7 @@ module ChatSDK
4
4
  module Teams
5
5
  class Adapter < ChatSDK::Adapter::Base
6
6
  capabilities :edit_messages, :delete_messages, :threads, :direct_messages,
7
- :message_history, :reactions, :file_uploads, :streaming_edit,
8
- :typing_indicator
7
+ :file_uploads, :streaming_edit, :typing_indicator
9
8
 
10
9
  attr_reader :client
11
10
 
@@ -130,24 +129,6 @@ module ChatSDK
130
129
  )
131
130
  end
132
131
 
133
- def add_reaction(channel_id:, message_id:, emoji:)
134
- require_capability!(:reactions)
135
- # Teams Bot Framework API does not support adding reactions programmatically
136
- # The capability is declared because inbound reactions are parsed
137
- raise ChatSDK::PlatformError.new(
138
- "Teams Bot Framework API does not support adding reactions programmatically",
139
- adapter_name: :teams
140
- )
141
- end
142
-
143
- def remove_reaction(channel_id:, message_id:, emoji:)
144
- require_capability!(:reactions)
145
- raise ChatSDK::PlatformError.new(
146
- "Teams Bot Framework API does not support removing reactions programmatically",
147
- adapter_name: :teams
148
- )
149
- end
150
-
151
132
  def open_dm(user_id)
152
133
  require_capability!(:direct_messages)
153
134
  # To open a DM, we need a service URL. Use the first cached one.
@@ -171,15 +152,8 @@ module ChatSDK
171
152
  conversation_id
172
153
  end
173
154
 
174
- def fetch_messages(channel_id:, thread_id: nil, cursor: nil, limit: 50)
175
- require_capability!(:message_history)
176
- # Teams Bot Framework doesn't provide a message history API
177
- # Return empty to satisfy the interface
178
- [[], nil]
179
- end
180
-
181
155
  def open_modal(trigger_id:, modal:)
182
- super # raises NotSupportedError
156
+ super
183
157
  end
184
158
 
185
159
  def start_typing(channel_id:, thread_id: nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chat_sdk-teams
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Quentin Rousseau