daily-ruby 0.0.0 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +74 -67
  4. data/daily-ruby.gemspec +1 -1
  5. data/daily.yaml +72 -34
  6. data/docs/{CreateMeetingToken200Response.md → MeetingTokenResponse.md} +3 -3
  7. data/docs/MeetingTokensApi.md +5 -5
  8. data/docs/RoomApi.md +71 -1
  9. data/docs/ServerErrorResponse.md +1 -1
  10. data/lib/daily-ruby/api/meeting_tokens_api.rb +6 -6
  11. data/lib/daily-ruby/api/room_api.rb +66 -3
  12. data/lib/daily-ruby/api_client.rb +1 -1
  13. data/lib/daily-ruby/api_error.rb +1 -1
  14. data/lib/daily-ruby/configuration.rb +1 -1
  15. data/lib/daily-ruby/models/meeting_token_request.rb +1 -1
  16. data/lib/daily-ruby/models/meeting_token_request_properties.rb +1 -1
  17. data/lib/daily-ruby/models/meeting_token_request_properties_permissions.rb +1 -1
  18. data/lib/daily-ruby/models/meeting_token_request_properties_permissions_can_admin.rb +1 -1
  19. data/lib/daily-ruby/models/meeting_token_request_properties_permissions_can_send.rb +1 -1
  20. data/lib/daily-ruby/models/{create_meeting_token200_response.rb → meeting_token_response.rb} +6 -4
  21. data/lib/daily-ruby/models/room_deleted_response.rb +1 -1
  22. data/lib/daily-ruby/models/room_not_found_response.rb +1 -1
  23. data/lib/daily-ruby/models/room_request.rb +1 -1
  24. data/lib/daily-ruby/models/room_request_properties.rb +1 -1
  25. data/lib/daily-ruby/models/room_response.rb +1 -1
  26. data/lib/daily-ruby/models/server_error_response.rb +3 -2
  27. data/lib/daily-ruby/version.rb +2 -2
  28. data/lib/daily-ruby.rb +2 -2
  29. data/run.sh +1 -1
  30. data/spec/api/meeting_tokens_api_spec.rb +3 -3
  31. data/spec/api/room_api_spec.rb +14 -2
  32. data/spec/models/meeting_token_request_properties_permissions_can_admin_spec.rb +1 -1
  33. data/spec/models/meeting_token_request_properties_permissions_can_send_spec.rb +1 -1
  34. data/spec/models/meeting_token_request_properties_permissions_spec.rb +1 -1
  35. data/spec/models/meeting_token_request_properties_spec.rb +1 -1
  36. data/spec/models/meeting_token_request_spec.rb +1 -1
  37. data/spec/models/{create_meeting_token200_response_spec.rb → meeting_token_response_spec.rb} +7 -7
  38. data/spec/models/room_deleted_response_spec.rb +1 -1
  39. data/spec/models/room_not_found_response_spec.rb +1 -1
  40. data/spec/models/room_request_properties_spec.rb +1 -1
  41. data/spec/models/room_request_spec.rb +1 -1
  42. data/spec/models/room_response_spec.rb +1 -1
  43. data/spec/models/server_error_response_spec.rb +1 -1
  44. data/spec/spec_helper.rb +1 -1
  45. metadata +6 -7
  46. data/script.rb +0 -35
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -20,7 +20,7 @@ module Daily
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a new room
23
- # A POST request to /rooms creates a new room.
23
+ # Creates a new meeting room. The name of the room, privacy settings, and other properties can be specified in the request body.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [RoomRequest] :room_request A room object
26
26
  # @return [RoomResponse]
@@ -30,7 +30,7 @@ module Daily
30
30
  end
31
31
 
32
32
  # Create a new room
33
- # A POST request to /rooms creates a new room.
33
+ # Creates a new meeting room. The name of the room, privacy settings, and other properties can be specified in the request body.
34
34
  # @param [Hash] opts the optional parameters
35
35
  # @option opts [RoomRequest] :room_request A room object
36
36
  # @return [Array<(RoomResponse, Integer, Hash)>] RoomResponse data, response status code and response headers
@@ -146,6 +146,69 @@ module Daily
146
146
  return data, status_code, headers
147
147
  end
148
148
 
149
+ # Get room
150
+ # Get a Daily room.
151
+ # @param name [String] The room name that needs to be fetched
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [RoomResponse]
154
+ def get_room(name, opts = {})
155
+ data, _status_code, _headers = get_room_with_http_info(name, opts)
156
+ data
157
+ end
158
+
159
+ # Get room
160
+ # Get a Daily room.
161
+ # @param name [String] The room name that needs to be fetched
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [Array<(RoomResponse, Integer, Hash)>] RoomResponse data, response status code and response headers
164
+ def get_room_with_http_info(name, opts = {})
165
+ if @api_client.config.debugging
166
+ @api_client.config.logger.debug 'Calling API: RoomApi.get_room ...'
167
+ end
168
+ # verify the required parameter 'name' is set
169
+ if @api_client.config.client_side_validation && name.nil?
170
+ fail ArgumentError, "Missing the required parameter 'name' when calling RoomApi.get_room"
171
+ end
172
+ # resource path
173
+ local_var_path = '/rooms/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
174
+
175
+ # query parameters
176
+ query_params = opts[:query_params] || {}
177
+
178
+ # header parameters
179
+ header_params = opts[:header_params] || {}
180
+ # HTTP header 'Accept' (if needed)
181
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
182
+
183
+ # form parameters
184
+ form_params = opts[:form_params] || {}
185
+
186
+ # http body (model)
187
+ post_body = opts[:debug_body]
188
+
189
+ # return_type
190
+ return_type = opts[:debug_return_type] || 'RoomResponse'
191
+
192
+ # auth_names
193
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
194
+
195
+ new_options = opts.merge(
196
+ :operation => :"RoomApi.get_room",
197
+ :header_params => header_params,
198
+ :query_params => query_params,
199
+ :form_params => form_params,
200
+ :body => post_body,
201
+ :auth_names => auth_names,
202
+ :return_type => return_type
203
+ )
204
+
205
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
206
+ if @api_client.config.debugging
207
+ @api_client.config.logger.debug "API called: RoomApi#get_room\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
+ end
209
+ return data, status_code, headers
210
+ end
211
+
149
212
  # Get a list rooms
150
213
  # A GET request to /rooms returns a list of rooms.
151
214
  # @param [Hash] opts the optional parameters
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -14,7 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Daily
17
- class CreateMeetingToken200Response
17
+ # Meeting token response
18
+ class MeetingTokenResponse
19
+ # The JWT token for the meeting.
18
20
  attr_accessor :token
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,13 +48,13 @@ module Daily
46
48
  # @param [Hash] attributes Model attributes in the form of hash
47
49
  def initialize(attributes = {})
48
50
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::CreateMeetingToken200Response` initialize method"
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Daily::MeetingTokenResponse` initialize method"
50
52
  end
51
53
 
52
54
  # check to see if the attribute exists and convert string to symbol for hash key
53
55
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
56
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::CreateMeetingToken200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Daily::MeetingTokenResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
58
  end
57
59
  h[k.to_sym] = v
58
60
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -14,8 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Daily
17
- # Server error response
17
+ # Details about the server error.
18
18
  class ServerErrorResponse
19
+ # A message describing the server error.
19
20
  attr_accessor :error
20
21
 
21
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.3.0
11
11
  =end
12
12
 
13
13
  module Daily
14
- VERSION = '0.0.0'
14
+ VERSION = '0.0.2'
15
15
  end
data/lib/daily-ruby.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -17,12 +17,12 @@ require 'daily-ruby/version'
17
17
  require 'daily-ruby/configuration'
18
18
 
19
19
  # Models
20
- require 'daily-ruby/models/create_meeting_token200_response'
21
20
  require 'daily-ruby/models/meeting_token_request'
22
21
  require 'daily-ruby/models/meeting_token_request_properties'
23
22
  require 'daily-ruby/models/meeting_token_request_properties_permissions'
24
23
  require 'daily-ruby/models/meeting_token_request_properties_permissions_can_admin'
25
24
  require 'daily-ruby/models/meeting_token_request_properties_permissions_can_send'
25
+ require 'daily-ruby/models/meeting_token_response'
26
26
  require 'daily-ruby/models/room_deleted_response'
27
27
  require 'daily-ruby/models/room_not_found_response'
28
28
  require 'daily-ruby/models/room_request'
data/run.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  openapi-generator generate -g ruby -o . -i daily.yaml \
4
4
  --additional-properties=gemName=daily-ruby \
5
5
  --additional-properties=moduleName=Daily \
6
- --additional-properties=gemVersion=0.0.0 \
6
+ --additional-properties=gemVersion=0.0.2 \
7
7
  --additional-properties=gemLicense=MIT \
8
8
  --additional-properties=gemAuthor=Daily \
9
9
  --additional-properties=gemAuthorEmail=help@daily.co \
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -34,10 +34,10 @@ describe 'MeetingTokensApi' do
34
34
 
35
35
  # unit tests for create_meeting_token
36
36
  # Creates a meeting token
37
- # A POST request to /meeting-tokens creates a new meeting token.
37
+ # A POST request to /meeting-tokens creates a new meeting token. This token can be used to authenticate a user for a specific meeting.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [MeetingTokenRequest] :meeting_token_request A room object
40
- # @return [CreateMeetingToken200Response]
40
+ # @return [MeetingTokenResponse]
41
41
  describe 'create_meeting_token test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -34,7 +34,7 @@ describe 'RoomApi' do
34
34
 
35
35
  # unit tests for create_room
36
36
  # Create a new room
37
- # A POST request to /rooms creates a new room.
37
+ # Creates a new meeting room. The name of the room, privacy settings, and other properties can be specified in the request body.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [RoomRequest] :room_request A room object
40
40
  # @return [RoomResponse]
@@ -56,6 +56,18 @@ describe 'RoomApi' do
56
56
  end
57
57
  end
58
58
 
59
+ # unit tests for get_room
60
+ # Get room
61
+ # Get a Daily room.
62
+ # @param name The room name that needs to be fetched
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [RoomResponse]
65
+ describe 'get_room test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
59
71
  # unit tests for get_rooms
60
72
  # Get a list rooms
61
73
  # A GET request to /rooms returns a list of rooms.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -14,16 +14,16 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for Daily::CreateMeetingToken200Response
17
+ # Unit tests for Daily::MeetingTokenResponse
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe Daily::CreateMeetingToken200Response do
21
- let(:instance) { Daily::CreateMeetingToken200Response.new }
20
+ describe Daily::MeetingTokenResponse do
21
+ let(:instance) { Daily::MeetingTokenResponse.new }
22
22
 
23
- describe 'test an instance of CreateMeetingToken200Response' do
24
- it 'should create an instance of CreateMeetingToken200Response' do
23
+ describe 'test an instance of MeetingTokenResponse' do
24
+ it 'should create an instance of MeetingTokenResponse' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(Daily::CreateMeetingToken200Response)
26
+ #expect(instance).to be_instance_of(Daily::MeetingTokenResponse)
27
27
  end
28
28
  end
29
29
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The official library for communicating with the Daily REST API.
5
5
 
6
- The version of the OpenAPI document: 0.0.0
6
+ The version of the OpenAPI document: 0.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.3.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daily-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daily
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-23 00:00:00.000000000 Z
11
+ date: 2024-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -77,12 +77,12 @@ files:
77
77
  - Rakefile
78
78
  - daily-ruby.gemspec
79
79
  - daily.yaml
80
- - docs/CreateMeetingToken200Response.md
81
80
  - docs/MeetingTokenRequest.md
82
81
  - docs/MeetingTokenRequestProperties.md
83
82
  - docs/MeetingTokenRequestPropertiesPermissions.md
84
83
  - docs/MeetingTokenRequestPropertiesPermissionsCanAdmin.md
85
84
  - docs/MeetingTokenRequestPropertiesPermissionsCanSend.md
85
+ - docs/MeetingTokenResponse.md
86
86
  - docs/MeetingTokensApi.md
87
87
  - docs/RoomApi.md
88
88
  - docs/RoomDeletedResponse.md
@@ -98,12 +98,12 @@ files:
98
98
  - lib/daily-ruby/api_client.rb
99
99
  - lib/daily-ruby/api_error.rb
100
100
  - lib/daily-ruby/configuration.rb
101
- - lib/daily-ruby/models/create_meeting_token200_response.rb
102
101
  - lib/daily-ruby/models/meeting_token_request.rb
103
102
  - lib/daily-ruby/models/meeting_token_request_properties.rb
104
103
  - lib/daily-ruby/models/meeting_token_request_properties_permissions.rb
105
104
  - lib/daily-ruby/models/meeting_token_request_properties_permissions_can_admin.rb
106
105
  - lib/daily-ruby/models/meeting_token_request_properties_permissions_can_send.rb
106
+ - lib/daily-ruby/models/meeting_token_response.rb
107
107
  - lib/daily-ruby/models/room_deleted_response.rb
108
108
  - lib/daily-ruby/models/room_not_found_response.rb
109
109
  - lib/daily-ruby/models/room_request.rb
@@ -112,15 +112,14 @@ files:
112
112
  - lib/daily-ruby/models/server_error_response.rb
113
113
  - lib/daily-ruby/version.rb
114
114
  - run.sh
115
- - script.rb
116
115
  - spec/api/meeting_tokens_api_spec.rb
117
116
  - spec/api/room_api_spec.rb
118
- - spec/models/create_meeting_token200_response_spec.rb
119
117
  - spec/models/meeting_token_request_properties_permissions_can_admin_spec.rb
120
118
  - spec/models/meeting_token_request_properties_permissions_can_send_spec.rb
121
119
  - spec/models/meeting_token_request_properties_permissions_spec.rb
122
120
  - spec/models/meeting_token_request_properties_spec.rb
123
121
  - spec/models/meeting_token_request_spec.rb
122
+ - spec/models/meeting_token_response_spec.rb
124
123
  - spec/models/room_deleted_response_spec.rb
125
124
  - spec/models/room_not_found_response_spec.rb
126
125
  - spec/models/room_request_properties_spec.rb
@@ -159,10 +158,10 @@ test_files:
159
158
  - spec/models/room_not_found_response_spec.rb
160
159
  - spec/models/meeting_token_request_properties_spec.rb
161
160
  - spec/models/meeting_token_request_properties_permissions_can_admin_spec.rb
162
- - spec/models/create_meeting_token200_response_spec.rb
163
161
  - spec/models/meeting_token_request_properties_permissions_can_send_spec.rb
164
162
  - spec/models/room_deleted_response_spec.rb
165
163
  - spec/models/room_response_spec.rb
164
+ - spec/models/meeting_token_response_spec.rb
166
165
  - spec/models/room_request_spec.rb
167
166
  - spec/models/meeting_token_request_spec.rb
168
167
  - spec/models/server_error_response_spec.rb
data/script.rb DELETED
@@ -1,35 +0,0 @@
1
- # Load the gem
2
- require 'daily-ruby'
3
-
4
- # Setup authorization
5
- Daily.configure do |config|
6
- # Configure Bearer authorization: bearerAuth
7
- config.access_token = ENV['DAILY_API_KEY']
8
- end
9
-
10
- room_api_instance = Daily::RoomApi.new
11
- opts = {
12
- room_request: Daily::RoomRequest.new( privacy: 'private' ) # RoomRequest | A room object
13
- }
14
-
15
- begin
16
- # Create a new room
17
- room = room_api_instance.create_room(opts)
18
- p room
19
- rescue Daily::ApiError => e
20
- puts "Error when calling RoomApi->create_room: #{e}"
21
- end
22
-
23
- meeting_token_api_instance = Daily::MeetingTokensApi.new
24
-
25
- opts = {
26
- meeting_token_request: { properties: { room_name: room.name } } # MeetingTokenRequest | A meeting token object
27
- }
28
-
29
- begin
30
- # Create a new meeting token
31
- meeting_token = meeting_token_api_instance.create_meeting_token(opts)
32
- p meeting_token
33
- rescue Daily::ApiError => e
34
- puts "Error when calling MeetingTokensApi->create_meeting_token: #{e}"
35
- end