daytona_toolbox_api_client 0.169.0 → 0.170.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 (105) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +1 -0
  3. data/.openapi-generator/VERSION +1 -1
  4. data/lib/daytona_toolbox_api_client/api/computer_use_api.rb +1 -1
  5. data/lib/daytona_toolbox_api_client/api/file_system_api.rb +1 -1
  6. data/lib/daytona_toolbox_api_client/api/git_api.rb +1 -1
  7. data/lib/daytona_toolbox_api_client/api/info_api.rb +1 -1
  8. data/lib/daytona_toolbox_api_client/api/interpreter_api.rb +1 -1
  9. data/lib/daytona_toolbox_api_client/api/lsp_api.rb +1 -1
  10. data/lib/daytona_toolbox_api_client/api/port_api.rb +1 -1
  11. data/lib/daytona_toolbox_api_client/api/process_api.rb +1 -1
  12. data/lib/daytona_toolbox_api_client/api/server_api.rb +1 -1
  13. data/lib/daytona_toolbox_api_client/api_client.rb +7 -3
  14. data/lib/daytona_toolbox_api_client/api_error.rb +1 -1
  15. data/lib/daytona_toolbox_api_client/api_model_base.rb +88 -0
  16. data/lib/daytona_toolbox_api_client/configuration.rb +1 -1
  17. data/lib/daytona_toolbox_api_client/models/chart.rb +2 -75
  18. data/lib/daytona_toolbox_api_client/models/chart_element.rb +2 -75
  19. data/lib/daytona_toolbox_api_client/models/code_run_artifacts.rb +2 -75
  20. data/lib/daytona_toolbox_api_client/models/code_run_request.rb +2 -75
  21. data/lib/daytona_toolbox_api_client/models/code_run_response.rb +2 -75
  22. data/lib/daytona_toolbox_api_client/models/command.rb +2 -75
  23. data/lib/daytona_toolbox_api_client/models/completion_context.rb +2 -75
  24. data/lib/daytona_toolbox_api_client/models/completion_item.rb +2 -75
  25. data/lib/daytona_toolbox_api_client/models/completion_list.rb +2 -75
  26. data/lib/daytona_toolbox_api_client/models/computer_use_start_response.rb +2 -75
  27. data/lib/daytona_toolbox_api_client/models/computer_use_status_response.rb +2 -75
  28. data/lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb +2 -75
  29. data/lib/daytona_toolbox_api_client/models/create_context_request.rb +2 -75
  30. data/lib/daytona_toolbox_api_client/models/create_session_request.rb +2 -75
  31. data/lib/daytona_toolbox_api_client/models/display_info.rb +2 -75
  32. data/lib/daytona_toolbox_api_client/models/display_info_response.rb +2 -75
  33. data/lib/daytona_toolbox_api_client/models/execute_request.rb +2 -75
  34. data/lib/daytona_toolbox_api_client/models/execute_response.rb +2 -75
  35. data/lib/daytona_toolbox_api_client/models/file_info.rb +2 -75
  36. data/lib/daytona_toolbox_api_client/models/file_status.rb +2 -75
  37. data/lib/daytona_toolbox_api_client/models/files_download_request.rb +2 -75
  38. data/lib/daytona_toolbox_api_client/models/git_add_request.rb +2 -75
  39. data/lib/daytona_toolbox_api_client/models/git_branch_request.rb +2 -75
  40. data/lib/daytona_toolbox_api_client/models/git_checkout_request.rb +2 -75
  41. data/lib/daytona_toolbox_api_client/models/git_clone_request.rb +2 -75
  42. data/lib/daytona_toolbox_api_client/models/git_commit_info.rb +18 -91
  43. data/lib/daytona_toolbox_api_client/models/git_commit_request.rb +2 -75
  44. data/lib/daytona_toolbox_api_client/models/git_commit_response.rb +18 -91
  45. data/lib/daytona_toolbox_api_client/models/git_delete_branch_request.rb +2 -75
  46. data/lib/daytona_toolbox_api_client/models/git_repo_request.rb +2 -75
  47. data/lib/daytona_toolbox_api_client/models/git_status.rb +2 -75
  48. data/lib/daytona_toolbox_api_client/models/initialize_request.rb +2 -75
  49. data/lib/daytona_toolbox_api_client/models/interpreter_context.rb +2 -75
  50. data/lib/daytona_toolbox_api_client/models/is_port_in_use_response.rb +2 -75
  51. data/lib/daytona_toolbox_api_client/models/keyboard_hotkey_request.rb +2 -75
  52. data/lib/daytona_toolbox_api_client/models/keyboard_press_request.rb +2 -75
  53. data/lib/daytona_toolbox_api_client/models/keyboard_type_request.rb +2 -75
  54. data/lib/daytona_toolbox_api_client/models/list_branch_response.rb +2 -75
  55. data/lib/daytona_toolbox_api_client/models/list_contexts_response.rb +2 -75
  56. data/lib/daytona_toolbox_api_client/models/list_recordings_response.rb +2 -75
  57. data/lib/daytona_toolbox_api_client/models/lsp_completion_params.rb +2 -75
  58. data/lib/daytona_toolbox_api_client/models/lsp_document_request.rb +2 -75
  59. data/lib/daytona_toolbox_api_client/models/lsp_location.rb +2 -75
  60. data/lib/daytona_toolbox_api_client/models/lsp_position.rb +2 -75
  61. data/lib/daytona_toolbox_api_client/models/lsp_range.rb +2 -75
  62. data/lib/daytona_toolbox_api_client/models/lsp_server_request.rb +2 -75
  63. data/lib/daytona_toolbox_api_client/models/lsp_symbol.rb +2 -75
  64. data/lib/daytona_toolbox_api_client/models/match.rb +2 -75
  65. data/lib/daytona_toolbox_api_client/models/mouse_click_request.rb +2 -75
  66. data/lib/daytona_toolbox_api_client/models/mouse_click_response.rb +2 -75
  67. data/lib/daytona_toolbox_api_client/models/mouse_drag_request.rb +2 -75
  68. data/lib/daytona_toolbox_api_client/models/mouse_drag_response.rb +2 -75
  69. data/lib/daytona_toolbox_api_client/models/mouse_move_request.rb +2 -75
  70. data/lib/daytona_toolbox_api_client/models/mouse_position_response.rb +2 -75
  71. data/lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb +2 -75
  72. data/lib/daytona_toolbox_api_client/models/port_list.rb +2 -75
  73. data/lib/daytona_toolbox_api_client/models/position.rb +2 -75
  74. data/lib/daytona_toolbox_api_client/models/process_errors_response.rb +2 -75
  75. data/lib/daytona_toolbox_api_client/models/process_logs_response.rb +2 -75
  76. data/lib/daytona_toolbox_api_client/models/process_restart_response.rb +2 -75
  77. data/lib/daytona_toolbox_api_client/models/process_status.rb +2 -75
  78. data/lib/daytona_toolbox_api_client/models/process_status_response.rb +2 -75
  79. data/lib/daytona_toolbox_api_client/models/pty_create_request.rb +2 -75
  80. data/lib/daytona_toolbox_api_client/models/pty_create_response.rb +2 -75
  81. data/lib/daytona_toolbox_api_client/models/pty_list_response.rb +2 -75
  82. data/lib/daytona_toolbox_api_client/models/pty_resize_request.rb +2 -75
  83. data/lib/daytona_toolbox_api_client/models/pty_session_info.rb +2 -75
  84. data/lib/daytona_toolbox_api_client/models/recording.rb +2 -75
  85. data/lib/daytona_toolbox_api_client/models/replace_request.rb +2 -75
  86. data/lib/daytona_toolbox_api_client/models/replace_result.rb +2 -75
  87. data/lib/daytona_toolbox_api_client/models/screenshot_response.rb +2 -75
  88. data/lib/daytona_toolbox_api_client/models/scroll_response.rb +2 -75
  89. data/lib/daytona_toolbox_api_client/models/search_files_response.rb +2 -75
  90. data/lib/daytona_toolbox_api_client/models/session.rb +2 -75
  91. data/lib/daytona_toolbox_api_client/models/session_command_logs_response.rb +2 -75
  92. data/lib/daytona_toolbox_api_client/models/session_execute_request.rb +2 -75
  93. data/lib/daytona_toolbox_api_client/models/session_execute_response.rb +2 -75
  94. data/lib/daytona_toolbox_api_client/models/session_send_input_request.rb +2 -75
  95. data/lib/daytona_toolbox_api_client/models/start_recording_request.rb +2 -75
  96. data/lib/daytona_toolbox_api_client/models/status.rb +4 -3
  97. data/lib/daytona_toolbox_api_client/models/stop_recording_request.rb +2 -75
  98. data/lib/daytona_toolbox_api_client/models/user_home_dir_response.rb +2 -75
  99. data/lib/daytona_toolbox_api_client/models/window_info.rb +2 -75
  100. data/lib/daytona_toolbox_api_client/models/windows_response.rb +2 -75
  101. data/lib/daytona_toolbox_api_client/models/work_dir_response.rb +2 -75
  102. data/lib/daytona_toolbox_api_client/version.rb +2 -2
  103. data/lib/daytona_toolbox_api_client.rb +2 -1
  104. data/project.json +6 -2
  105. metadata +2 -1
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DaytonaToolboxApiClient
17
- class WindowInfo
17
+ class WindowInfo < ApiModelBase
18
18
  attr_accessor :height
19
19
 
20
20
  attr_accessor :id
@@ -180,61 +180,6 @@ module DaytonaToolboxApiClient
180
180
  new(transformed_hash)
181
181
  end
182
182
 
183
- # Deserializes the data based on type
184
- # @param string type Data type
185
- # @param string value Value to be deserialized
186
- # @return [Object] Deserialized data
187
- def self._deserialize(type, value)
188
- case type.to_sym
189
- when :Time
190
- Time.parse(value)
191
- when :Date
192
- Date.parse(value)
193
- when :String
194
- value.to_s
195
- when :Integer
196
- value.to_i
197
- when :Float
198
- value.to_f
199
- when :Boolean
200
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
201
- true
202
- else
203
- false
204
- end
205
- when :Object
206
- # generic object (usually a Hash), return directly
207
- value
208
- when /\AArray<(?<inner_type>.+)>\z/
209
- inner_type = Regexp.last_match[:inner_type]
210
- value.map { |v| _deserialize(inner_type, v) }
211
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
212
- k_type = Regexp.last_match[:k_type]
213
- v_type = Regexp.last_match[:v_type]
214
- {}.tap do |hash|
215
- value.each do |k, v|
216
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
217
- end
218
- end
219
- else # model
220
- # models (e.g. Pet) or oneOf
221
- klass = DaytonaToolboxApiClient.const_get(type)
222
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
223
- end
224
- end
225
-
226
- # Returns the string representation of the object
227
- # @return [String] String presentation of the object
228
- def to_s
229
- to_hash.to_s
230
- end
231
-
232
- # to_body is an alias to to_hash (backward compatibility)
233
- # @return [Hash] Returns the object in the form of hash
234
- def to_body
235
- to_hash
236
- end
237
-
238
183
  # Returns the object in the form of hash
239
184
  # @return [Hash] Returns the object in the form of hash
240
185
  def to_hash
@@ -251,24 +196,6 @@ module DaytonaToolboxApiClient
251
196
  hash
252
197
  end
253
198
 
254
- # Outputs non-array value in the form of hash
255
- # For object, use to_hash. Otherwise, just return the value
256
- # @param [Object] value Any valid value
257
- # @return [Hash] Returns the value in the form of hash
258
- def _to_hash(value)
259
- if value.is_a?(Array)
260
- value.compact.map { |v| _to_hash(v) }
261
- elsif value.is_a?(Hash)
262
- {}.tap do |hash|
263
- value.each { |k, v| hash[k] = _to_hash(v) }
264
- end
265
- elsif value.respond_to? :to_hash
266
- value.to_hash
267
- else
268
- value
269
- end
270
- end
271
-
272
199
  end
273
200
 
274
201
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DaytonaToolboxApiClient
17
- class WindowsResponse
17
+ class WindowsResponse < ApiModelBase
18
18
  attr_accessor :windows
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -128,61 +128,6 @@ module DaytonaToolboxApiClient
128
128
  new(transformed_hash)
129
129
  end
130
130
 
131
- # Deserializes the data based on type
132
- # @param string type Data type
133
- # @param string value Value to be deserialized
134
- # @return [Object] Deserialized data
135
- def self._deserialize(type, value)
136
- case type.to_sym
137
- when :Time
138
- Time.parse(value)
139
- when :Date
140
- Date.parse(value)
141
- when :String
142
- value.to_s
143
- when :Integer
144
- value.to_i
145
- when :Float
146
- value.to_f
147
- when :Boolean
148
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
- true
150
- else
151
- false
152
- end
153
- when :Object
154
- # generic object (usually a Hash), return directly
155
- value
156
- when /\AArray<(?<inner_type>.+)>\z/
157
- inner_type = Regexp.last_match[:inner_type]
158
- value.map { |v| _deserialize(inner_type, v) }
159
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
- k_type = Regexp.last_match[:k_type]
161
- v_type = Regexp.last_match[:v_type]
162
- {}.tap do |hash|
163
- value.each do |k, v|
164
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
- end
166
- end
167
- else # model
168
- # models (e.g. Pet) or oneOf
169
- klass = DaytonaToolboxApiClient.const_get(type)
170
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
171
- end
172
- end
173
-
174
- # Returns the string representation of the object
175
- # @return [String] String presentation of the object
176
- def to_s
177
- to_hash.to_s
178
- end
179
-
180
- # to_body is an alias to to_hash (backward compatibility)
181
- # @return [Hash] Returns the object in the form of hash
182
- def to_body
183
- to_hash
184
- end
185
-
186
131
  # Returns the object in the form of hash
187
132
  # @return [Hash] Returns the object in the form of hash
188
133
  def to_hash
@@ -199,24 +144,6 @@ module DaytonaToolboxApiClient
199
144
  hash
200
145
  end
201
146
 
202
- # Outputs non-array value in the form of hash
203
- # For object, use to_hash. Otherwise, just return the value
204
- # @param [Object] value Any valid value
205
- # @return [Hash] Returns the value in the form of hash
206
- def _to_hash(value)
207
- if value.is_a?(Array)
208
- value.compact.map { |v| _to_hash(v) }
209
- elsif value.is_a?(Hash)
210
- {}.tap do |hash|
211
- value.each { |k, v| hash[k] = _to_hash(v) }
212
- end
213
- elsif value.respond_to? :to_hash
214
- value.to_hash
215
- else
216
- value
217
- end
218
- end
219
-
220
147
  end
221
148
 
222
149
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DaytonaToolboxApiClient
17
- class WorkDirResponse
17
+ class WorkDirResponse < ApiModelBase
18
18
  attr_accessor :dir
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -143,61 +143,6 @@ module DaytonaToolboxApiClient
143
143
  new(transformed_hash)
144
144
  end
145
145
 
146
- # Deserializes the data based on type
147
- # @param string type Data type
148
- # @param string value Value to be deserialized
149
- # @return [Object] Deserialized data
150
- def self._deserialize(type, value)
151
- case type.to_sym
152
- when :Time
153
- Time.parse(value)
154
- when :Date
155
- Date.parse(value)
156
- when :String
157
- value.to_s
158
- when :Integer
159
- value.to_i
160
- when :Float
161
- value.to_f
162
- when :Boolean
163
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
- true
165
- else
166
- false
167
- end
168
- when :Object
169
- # generic object (usually a Hash), return directly
170
- value
171
- when /\AArray<(?<inner_type>.+)>\z/
172
- inner_type = Regexp.last_match[:inner_type]
173
- value.map { |v| _deserialize(inner_type, v) }
174
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
- k_type = Regexp.last_match[:k_type]
176
- v_type = Regexp.last_match[:v_type]
177
- {}.tap do |hash|
178
- value.each do |k, v|
179
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
- end
181
- end
182
- else # model
183
- # models (e.g. Pet) or oneOf
184
- klass = DaytonaToolboxApiClient.const_get(type)
185
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
- end
187
- end
188
-
189
- # Returns the string representation of the object
190
- # @return [String] String presentation of the object
191
- def to_s
192
- to_hash.to_s
193
- end
194
-
195
- # to_body is an alias to to_hash (backward compatibility)
196
- # @return [Hash] Returns the object in the form of hash
197
- def to_body
198
- to_hash
199
- end
200
-
201
146
  # Returns the object in the form of hash
202
147
  # @return [Hash] Returns the object in the form of hash
203
148
  def to_hash
@@ -214,24 +159,6 @@ module DaytonaToolboxApiClient
214
159
  hash
215
160
  end
216
161
 
217
- # Outputs non-array value in the form of hash
218
- # For object, use to_hash. Otherwise, just return the value
219
- # @param [Object] value Any valid value
220
- # @return [Hash] Returns the value in the form of hash
221
- def _to_hash(value)
222
- if value.is_a?(Array)
223
- value.compact.map { |v| _to_hash(v) }
224
- elsif value.is_a?(Hash)
225
- {}.tap do |hash|
226
- value.each { |k, v| hash[k] = _to_hash(v) }
227
- end
228
- elsif value.respond_to? :to_hash
229
- value.to_hash
230
- else
231
- value
232
- end
233
- end
234
-
235
162
  end
236
163
 
237
164
  end
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
13
13
  module DaytonaToolboxApiClient
14
- VERSION = '0.169.0'
14
+ VERSION = '0.170.0'
15
15
  end
@@ -6,13 +6,14 @@
6
6
  The version of the OpenAPI document: v0.0.0-dev
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.12.0
9
+ Generator version: 7.21.0
10
10
 
11
11
  =end
12
12
 
13
13
  # Common files
14
14
  require 'daytona_toolbox_api_client/api_client'
15
15
  require 'daytona_toolbox_api_client/api_error'
16
+ require 'daytona_toolbox_api_client/api_model_base'
16
17
  require 'daytona_toolbox_api_client/version'
17
18
  require 'daytona_toolbox_api_client/configuration'
18
19
 
data/project.json CHANGED
@@ -31,7 +31,7 @@
31
31
  "options": {
32
32
  "commands": [
33
33
  "rm -rf libs/toolbox-api-client-ruby/lib",
34
- "yarn run openapi-generator-cli generate -i apps/daemon/pkg/toolbox/docs/swagger.json -g ruby --additional-properties=gemAuthor=daytonaio,gemAuthorEmail=support@daytona.io,gemDescription=\\\"Daytona Toolbox API Client\\\",gemHomepage=\\\"https://github.com/daytonaio/daytona\\\",gemVersion=$DEFAULT_GEM_VERSION,gemName=daytona_toolbox_api_client -o libs/toolbox-api-client-ruby",
34
+ "yarn run openapi-generator-cli generate -i apps/daemon/pkg/toolbox/docs/swagger.json -g ruby -t hack/ruby-client/openapi-templates --name-mappings hash=_hash --additional-properties=gemAuthor=daytonaio,gemAuthorEmail=support@daytona.io,gemDescription=\\\"Daytona Toolbox API Client\\\",gemHomepage=\\\"https://github.com/daytonaio/daytona\\\",gemVersion=$DEFAULT_GEM_VERSION,gemName=daytona_toolbox_api_client,enumUnknownDefaultCase=true -o libs/toolbox-api-client-ruby",
35
35
  "bash libs/toolbox-api-client-ruby/fix-gemspec.sh",
36
36
  "sed -i 's|OpenAPI-Generator/#{VERSION}/ruby|toolbox-api-client-ruby/#{VERSION}|' libs/toolbox-api-client-ruby/lib/daytona_toolbox_api_client/api_client.rb",
37
37
  "cd libs/toolbox-api-client-ruby && bundle install"
@@ -39,7 +39,11 @@
39
39
  "parallel": false
40
40
  },
41
41
  "cache": true,
42
- "inputs": ["apiClient", { "env": "DEFAULT_GEM_VERSION" }],
42
+ "inputs": [
43
+ "apiClient",
44
+ "{workspaceRoot}/hack/ruby-client/openapi-templates/**/*",
45
+ { "env": "DEFAULT_GEM_VERSION" }
46
+ ],
43
47
  "dependsOn": [
44
48
  {
45
49
  "target": "openapi",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_toolbox_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.169.0
4
+ version: 0.170.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio
@@ -77,6 +77,7 @@ files:
77
77
  - lib/daytona_toolbox_api_client/api/server_api.rb
78
78
  - lib/daytona_toolbox_api_client/api_client.rb
79
79
  - lib/daytona_toolbox_api_client/api_error.rb
80
+ - lib/daytona_toolbox_api_client/api_model_base.rb
80
81
  - lib/daytona_toolbox_api_client/configuration.rb
81
82
  - lib/daytona_toolbox_api_client/models/chart.rb
82
83
  - lib/daytona_toolbox_api_client/models/chart_element.rb