vonage 7.21.0 → 7.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/vonage/client.rb +9 -0
- data/lib/vonage/conversation/event/list_response.rb +11 -0
- data/lib/vonage/conversation/event.rb +108 -0
- data/lib/vonage/conversation/list_response.rb +11 -0
- data/lib/vonage/conversation/member/list_response.rb +11 -0
- data/lib/vonage/conversation/member.rb +134 -0
- data/lib/vonage/conversation/user/conversations_list_response.rb +11 -0
- data/lib/vonage/conversation/user/sessions_list_response.rb +11 -0
- data/lib/vonage/conversation/user.rb +67 -0
- data/lib/vonage/conversation.rb +164 -0
- data/lib/vonage/conversations/events.rb +12 -0
- data/lib/vonage/conversations/legs.rb +6 -0
- data/lib/vonage/conversations/members.rb +15 -0
- data/lib/vonage/conversations/users.rb +15 -0
- data/lib/vonage/conversations.rb +30 -0
- data/lib/vonage/keys.rb +6 -1
- data/lib/vonage/messaging.rb +8 -3
- data/lib/vonage/verify2/channels/sms.rb +10 -0
- data/lib/vonage/verify2/channels/whats_app.rb +3 -2
- data/lib/vonage/verify2.rb +7 -0
- data/lib/vonage/version.rb +1 -1
- data/lib/vonage/video/captions.rb +67 -0
- data/lib/vonage/video/renders/list_response.rb +11 -0
- data/lib/vonage/video/renders.rb +107 -0
- data/lib/vonage/video/web_socket.rb +61 -0
- data/lib/vonage/video.rb +19 -0
- metadata +16 -3
data/lib/vonage/video.rb
CHANGED
@@ -54,6 +54,9 @@ module Vonage
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def generate_client_token(session_id:, scope: 'session.connect', role: 'publisher', **params)
|
57
|
+
valid_roles = %w[publisher subscriber moderator publisheronly]
|
58
|
+
raise ArgumentError, "Invalid role: #{role}" unless valid_roles.include?(role)
|
59
|
+
|
57
60
|
claims = {
|
58
61
|
application_id: @config.application_id,
|
59
62
|
scope: scope,
|
@@ -104,6 +107,22 @@ module Vonage
|
|
104
107
|
@streams ||= Streams.new(@config)
|
105
108
|
end
|
106
109
|
|
110
|
+
# @return [Captions]
|
111
|
+
#
|
112
|
+
def captions
|
113
|
+
@captions ||= Captions.new(@config)
|
114
|
+
end
|
115
|
+
|
116
|
+
# @return [Renders]
|
117
|
+
#
|
118
|
+
def renders
|
119
|
+
@renders ||= Renders.new(@config)
|
120
|
+
end
|
107
121
|
|
122
|
+
# @return [WebSocket]
|
123
|
+
#
|
124
|
+
def web_socket
|
125
|
+
@web_socket ||= WebSocket.new(@config)
|
126
|
+
end
|
108
127
|
end
|
109
128
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vonage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vonage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vonage-jwt
|
@@ -142,6 +142,15 @@ files:
|
|
142
142
|
- lib/vonage/client.rb
|
143
143
|
- lib/vonage/client_error.rb
|
144
144
|
- lib/vonage/config.rb
|
145
|
+
- lib/vonage/conversation.rb
|
146
|
+
- lib/vonage/conversation/event.rb
|
147
|
+
- lib/vonage/conversation/event/list_response.rb
|
148
|
+
- lib/vonage/conversation/list_response.rb
|
149
|
+
- lib/vonage/conversation/member.rb
|
150
|
+
- lib/vonage/conversation/member/list_response.rb
|
151
|
+
- lib/vonage/conversation/user.rb
|
152
|
+
- lib/vonage/conversation/user/conversations_list_response.rb
|
153
|
+
- lib/vonage/conversation/user/sessions_list_response.rb
|
145
154
|
- lib/vonage/conversations.rb
|
146
155
|
- lib/vonage/conversations/events.rb
|
147
156
|
- lib/vonage/conversations/legs.rb
|
@@ -231,11 +240,15 @@ files:
|
|
231
240
|
- lib/vonage/video/archives/list_response.rb
|
232
241
|
- lib/vonage/video/broadcasts.rb
|
233
242
|
- lib/vonage/video/broadcasts/list_response.rb
|
243
|
+
- lib/vonage/video/captions.rb
|
234
244
|
- lib/vonage/video/moderation.rb
|
245
|
+
- lib/vonage/video/renders.rb
|
246
|
+
- lib/vonage/video/renders/list_response.rb
|
235
247
|
- lib/vonage/video/signals.rb
|
236
248
|
- lib/vonage/video/sip.rb
|
237
249
|
- lib/vonage/video/streams.rb
|
238
250
|
- lib/vonage/video/streams/list_response.rb
|
251
|
+
- lib/vonage/video/web_socket.rb
|
239
252
|
- lib/vonage/voice.rb
|
240
253
|
- lib/vonage/voice/actions/connect.rb
|
241
254
|
- lib/vonage/voice/actions/conversation.rb
|
@@ -274,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
287
|
- !ruby/object:Gem::Version
|
275
288
|
version: '0'
|
276
289
|
requirements: []
|
277
|
-
rubygems_version: 3.5.
|
290
|
+
rubygems_version: 3.5.11
|
278
291
|
signing_key:
|
279
292
|
specification_version: 4
|
280
293
|
summary: This is the Ruby Server SDK for Vonage APIs. To use it you'll need a Vonage
|