daytona_api_client 0.197.0 → 0.198.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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +0 -68
  3. data/lib/daytona_api_client/version.rb +1 -1
  4. data/lib/daytona_api_client.rb +0 -68
  5. metadata +1 -69
  6. data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
  7. data/lib/daytona_api_client/models/command.rb +0 -202
  8. data/lib/daytona_api_client/models/completion_context.rb +0 -173
  9. data/lib/daytona_api_client/models/completion_item.rb +0 -218
  10. data/lib/daytona_api_client/models/completion_list.rb +0 -192
  11. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
  12. data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
  13. data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -189
  14. data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
  15. data/lib/daytona_api_client/models/create_session_request.rb +0 -165
  16. data/lib/daytona_api_client/models/display_info_response.rb +0 -167
  17. data/lib/daytona_api_client/models/download_files.rb +0 -167
  18. data/lib/daytona_api_client/models/execute_request.rb +0 -184
  19. data/lib/daytona_api_client/models/execute_response.rb +0 -192
  20. data/lib/daytona_api_client/models/file_info.rb +0 -346
  21. data/lib/daytona_api_client/models/file_status.rb +0 -242
  22. data/lib/daytona_api_client/models/git_add_request.rb +0 -193
  23. data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
  24. data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
  25. data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
  26. data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
  27. data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
  28. data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
  29. data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
  30. data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
  31. data/lib/daytona_api_client/models/git_status.rb +0 -219
  32. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
  33. data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
  34. data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
  35. data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
  36. data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
  37. data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
  38. data/lib/daytona_api_client/models/lsp_location.rb +0 -190
  39. data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
  40. data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
  41. data/lib/daytona_api_client/models/match.rb +0 -216
  42. data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
  43. data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
  44. data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
  45. data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
  46. data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
  47. data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
  48. data/lib/daytona_api_client/models/mouse_position.rb +0 -192
  49. data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
  50. data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
  51. data/lib/daytona_api_client/models/position.rb +0 -190
  52. data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
  53. data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
  54. data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
  55. data/lib/daytona_api_client/models/process_status_response.rb +0 -192
  56. data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
  57. data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
  58. data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
  59. data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
  60. data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
  61. data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
  62. data/lib/daytona_api_client/models/range.rb +0 -190
  63. data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
  64. data/lib/daytona_api_client/models/replace_request.rb +0 -218
  65. data/lib/daytona_api_client/models/replace_result.rb +0 -165
  66. data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
  67. data/lib/daytona_api_client/models/search_files_response.rb +0 -166
  68. data/lib/daytona_api_client/models/session.rb +0 -180
  69. data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
  70. data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
  71. data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
  72. data/lib/daytona_api_client/models/windows_response.rb +0 -194
  73. data/lib/daytona_api_client/models/work_dir_response.rb +0 -147
@@ -1,217 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class PtyCreateRequest < ApiModelBase
18
- # The unique identifier for the PTY session
19
- attr_accessor :id
20
-
21
- # Starting directory for the PTY session, defaults to the sandbox's working directory
22
- attr_accessor :cwd
23
-
24
- # Environment variables for the PTY session
25
- attr_accessor :envs
26
-
27
- # Number of terminal columns
28
- attr_accessor :cols
29
-
30
- # Number of terminal rows
31
- attr_accessor :rows
32
-
33
- # Whether to start the PTY session lazily (only start when first client connects)
34
- attr_accessor :lazy_start
35
-
36
- # Attribute mapping from ruby-style variable name to JSON key.
37
- def self.attribute_map
38
- {
39
- :'id' => :'id',
40
- :'cwd' => :'cwd',
41
- :'envs' => :'envs',
42
- :'cols' => :'cols',
43
- :'rows' => :'rows',
44
- :'lazy_start' => :'lazyStart'
45
- }
46
- end
47
-
48
- # Returns attribute mapping this model knows about
49
- def self.acceptable_attribute_map
50
- attribute_map
51
- end
52
-
53
- # Returns all the JSON keys this model knows about
54
- def self.acceptable_attributes
55
- acceptable_attribute_map.values
56
- end
57
-
58
- # Attribute type mapping.
59
- def self.openapi_types
60
- {
61
- :'id' => :'String',
62
- :'cwd' => :'String',
63
- :'envs' => :'Object',
64
- :'cols' => :'Float',
65
- :'rows' => :'Float',
66
- :'lazy_start' => :'Boolean'
67
- }
68
- end
69
-
70
- # List of attributes with nullable: true
71
- def self.openapi_nullable
72
- Set.new([
73
- ])
74
- end
75
-
76
- # Initializes the object
77
- # @param [Hash] attributes Model attributes in the form of hash
78
- def initialize(attributes = {})
79
- if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PtyCreateRequest` initialize method"
81
- end
82
-
83
- # check to see if the attribute exists and convert string to symbol for hash key
84
- acceptable_attribute_map = self.class.acceptable_attribute_map
85
- attributes = attributes.each_with_object({}) { |(k, v), h|
86
- if (!acceptable_attribute_map.key?(k.to_sym))
87
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PtyCreateRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
- end
89
- h[k.to_sym] = v
90
- }
91
-
92
- if attributes.key?(:'id')
93
- self.id = attributes[:'id']
94
- else
95
- self.id = nil
96
- end
97
-
98
- if attributes.key?(:'cwd')
99
- self.cwd = attributes[:'cwd']
100
- end
101
-
102
- if attributes.key?(:'envs')
103
- self.envs = attributes[:'envs']
104
- end
105
-
106
- if attributes.key?(:'cols')
107
- self.cols = attributes[:'cols']
108
- end
109
-
110
- if attributes.key?(:'rows')
111
- self.rows = attributes[:'rows']
112
- end
113
-
114
- if attributes.key?(:'lazy_start')
115
- self.lazy_start = attributes[:'lazy_start']
116
- else
117
- self.lazy_start = false
118
- end
119
- end
120
-
121
- # Show invalid properties with the reasons. Usually used together with valid?
122
- # @return Array for valid properties with the reasons
123
- def list_invalid_properties
124
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
125
- invalid_properties = Array.new
126
- if @id.nil?
127
- invalid_properties.push('invalid value for "id", id cannot be nil.')
128
- end
129
-
130
- invalid_properties
131
- end
132
-
133
- # Check to see if the all the properties in the model are valid
134
- # @return true if the model is valid
135
- def valid?
136
- warn '[DEPRECATED] the `valid?` method is obsolete'
137
- return false if @id.nil?
138
- true
139
- end
140
-
141
- # Custom attribute writer method with validation
142
- # @param [Object] id Value to be assigned
143
- def id=(id)
144
- if id.nil?
145
- fail ArgumentError, 'id cannot be nil'
146
- end
147
-
148
- @id = id
149
- end
150
-
151
- # Checks equality by comparing each attribute.
152
- # @param [Object] Object to be compared
153
- def ==(o)
154
- return true if self.equal?(o)
155
- self.class == o.class &&
156
- id == o.id &&
157
- cwd == o.cwd &&
158
- envs == o.envs &&
159
- cols == o.cols &&
160
- rows == o.rows &&
161
- lazy_start == o.lazy_start
162
- end
163
-
164
- # @see the `==` method
165
- # @param [Object] Object to be compared
166
- def eql?(o)
167
- self == o
168
- end
169
-
170
- # Calculates hash code according to all attributes.
171
- # @return [Integer] Hash code
172
- def hash
173
- [id, cwd, envs, cols, rows, lazy_start].hash
174
- end
175
-
176
- # Builds the object from hash
177
- # @param [Hash] attributes Model attributes in the form of hash
178
- # @return [Object] Returns the model itself
179
- def self.build_from_hash(attributes)
180
- return nil unless attributes.is_a?(Hash)
181
- attributes = attributes.transform_keys(&:to_sym)
182
- transformed_hash = {}
183
- openapi_types.each_pair do |key, type|
184
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
185
- transformed_hash["#{key}"] = nil
186
- elsif type =~ /\AArray<(.*)>/i
187
- # check to ensure the input is an array given that the attribute
188
- # is documented as an array but the input is not
189
- if attributes[attribute_map[key]].is_a?(Array)
190
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
191
- end
192
- elsif !attributes[attribute_map[key]].nil?
193
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
194
- end
195
- end
196
- new(transformed_hash)
197
- end
198
-
199
- # Returns the object in the form of hash
200
- # @return [Hash] Returns the object in the form of hash
201
- def to_hash
202
- hash = {}
203
- self.class.attribute_map.each_pair do |attr, param|
204
- value = self.send(attr)
205
- if value.nil?
206
- is_nullable = self.class.openapi_nullable.include?(attr)
207
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
208
- end
209
-
210
- hash[param] = _to_hash(value)
211
- end
212
- hash
213
- end
214
-
215
- end
216
-
217
- end
@@ -1,165 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class PtyCreateResponse < ApiModelBase
18
- # The unique identifier for the created PTY session
19
- attr_accessor :session_id
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'session_id' => :'sessionId'
25
- }
26
- end
27
-
28
- # Returns attribute mapping this model knows about
29
- def self.acceptable_attribute_map
30
- attribute_map
31
- end
32
-
33
- # Returns all the JSON keys this model knows about
34
- def self.acceptable_attributes
35
- acceptable_attribute_map.values
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.openapi_types
40
- {
41
- :'session_id' => :'String'
42
- }
43
- end
44
-
45
- # List of attributes with nullable: true
46
- def self.openapi_nullable
47
- Set.new([
48
- ])
49
- end
50
-
51
- # Initializes the object
52
- # @param [Hash] attributes Model attributes in the form of hash
53
- def initialize(attributes = {})
54
- if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PtyCreateResponse` initialize method"
56
- end
57
-
58
- # check to see if the attribute exists and convert string to symbol for hash key
59
- acceptable_attribute_map = self.class.acceptable_attribute_map
60
- attributes = attributes.each_with_object({}) { |(k, v), h|
61
- if (!acceptable_attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PtyCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
- end
64
- h[k.to_sym] = v
65
- }
66
-
67
- if attributes.key?(:'session_id')
68
- self.session_id = attributes[:'session_id']
69
- else
70
- self.session_id = nil
71
- end
72
- end
73
-
74
- # Show invalid properties with the reasons. Usually used together with valid?
75
- # @return Array for valid properties with the reasons
76
- def list_invalid_properties
77
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
- invalid_properties = Array.new
79
- if @session_id.nil?
80
- invalid_properties.push('invalid value for "session_id", session_id cannot be nil.')
81
- end
82
-
83
- invalid_properties
84
- end
85
-
86
- # Check to see if the all the properties in the model are valid
87
- # @return true if the model is valid
88
- def valid?
89
- warn '[DEPRECATED] the `valid?` method is obsolete'
90
- return false if @session_id.nil?
91
- true
92
- end
93
-
94
- # Custom attribute writer method with validation
95
- # @param [Object] session_id Value to be assigned
96
- def session_id=(session_id)
97
- if session_id.nil?
98
- fail ArgumentError, 'session_id cannot be nil'
99
- end
100
-
101
- @session_id = session_id
102
- end
103
-
104
- # Checks equality by comparing each attribute.
105
- # @param [Object] Object to be compared
106
- def ==(o)
107
- return true if self.equal?(o)
108
- self.class == o.class &&
109
- session_id == o.session_id
110
- end
111
-
112
- # @see the `==` method
113
- # @param [Object] Object to be compared
114
- def eql?(o)
115
- self == o
116
- end
117
-
118
- # Calculates hash code according to all attributes.
119
- # @return [Integer] Hash code
120
- def hash
121
- [session_id].hash
122
- end
123
-
124
- # Builds the object from hash
125
- # @param [Hash] attributes Model attributes in the form of hash
126
- # @return [Object] Returns the model itself
127
- def self.build_from_hash(attributes)
128
- return nil unless attributes.is_a?(Hash)
129
- attributes = attributes.transform_keys(&:to_sym)
130
- transformed_hash = {}
131
- openapi_types.each_pair do |key, type|
132
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
- transformed_hash["#{key}"] = nil
134
- elsif type =~ /\AArray<(.*)>/i
135
- # check to ensure the input is an array given that the attribute
136
- # is documented as an array but the input is not
137
- if attributes[attribute_map[key]].is_a?(Array)
138
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
- end
140
- elsif !attributes[attribute_map[key]].nil?
141
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
- end
143
- end
144
- new(transformed_hash)
145
- end
146
-
147
- # Returns the object in the form of hash
148
- # @return [Hash] Returns the object in the form of hash
149
- def to_hash
150
- hash = {}
151
- self.class.attribute_map.each_pair do |attr, param|
152
- value = self.send(attr)
153
- if value.nil?
154
- is_nullable = self.class.openapi_nullable.include?(attr)
155
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
156
- end
157
-
158
- hash[param] = _to_hash(value)
159
- end
160
- hash
161
- end
162
-
163
- end
164
-
165
- end
@@ -1,167 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class PtyListResponse < ApiModelBase
18
- # List of active PTY sessions
19
- attr_accessor :sessions
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'sessions' => :'sessions'
25
- }
26
- end
27
-
28
- # Returns attribute mapping this model knows about
29
- def self.acceptable_attribute_map
30
- attribute_map
31
- end
32
-
33
- # Returns all the JSON keys this model knows about
34
- def self.acceptable_attributes
35
- acceptable_attribute_map.values
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.openapi_types
40
- {
41
- :'sessions' => :'Array<PtySessionInfo>'
42
- }
43
- end
44
-
45
- # List of attributes with nullable: true
46
- def self.openapi_nullable
47
- Set.new([
48
- ])
49
- end
50
-
51
- # Initializes the object
52
- # @param [Hash] attributes Model attributes in the form of hash
53
- def initialize(attributes = {})
54
- if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PtyListResponse` initialize method"
56
- end
57
-
58
- # check to see if the attribute exists and convert string to symbol for hash key
59
- acceptable_attribute_map = self.class.acceptable_attribute_map
60
- attributes = attributes.each_with_object({}) { |(k, v), h|
61
- if (!acceptable_attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PtyListResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
- end
64
- h[k.to_sym] = v
65
- }
66
-
67
- if attributes.key?(:'sessions')
68
- if (value = attributes[:'sessions']).is_a?(Array)
69
- self.sessions = value
70
- end
71
- else
72
- self.sessions = nil
73
- end
74
- end
75
-
76
- # Show invalid properties with the reasons. Usually used together with valid?
77
- # @return Array for valid properties with the reasons
78
- def list_invalid_properties
79
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
80
- invalid_properties = Array.new
81
- if @sessions.nil?
82
- invalid_properties.push('invalid value for "sessions", sessions cannot be nil.')
83
- end
84
-
85
- invalid_properties
86
- end
87
-
88
- # Check to see if the all the properties in the model are valid
89
- # @return true if the model is valid
90
- def valid?
91
- warn '[DEPRECATED] the `valid?` method is obsolete'
92
- return false if @sessions.nil?
93
- true
94
- end
95
-
96
- # Custom attribute writer method with validation
97
- # @param [Object] sessions Value to be assigned
98
- def sessions=(sessions)
99
- if sessions.nil?
100
- fail ArgumentError, 'sessions cannot be nil'
101
- end
102
-
103
- @sessions = sessions
104
- end
105
-
106
- # Checks equality by comparing each attribute.
107
- # @param [Object] Object to be compared
108
- def ==(o)
109
- return true if self.equal?(o)
110
- self.class == o.class &&
111
- sessions == o.sessions
112
- end
113
-
114
- # @see the `==` method
115
- # @param [Object] Object to be compared
116
- def eql?(o)
117
- self == o
118
- end
119
-
120
- # Calculates hash code according to all attributes.
121
- # @return [Integer] Hash code
122
- def hash
123
- [sessions].hash
124
- end
125
-
126
- # Builds the object from hash
127
- # @param [Hash] attributes Model attributes in the form of hash
128
- # @return [Object] Returns the model itself
129
- def self.build_from_hash(attributes)
130
- return nil unless attributes.is_a?(Hash)
131
- attributes = attributes.transform_keys(&:to_sym)
132
- transformed_hash = {}
133
- openapi_types.each_pair do |key, type|
134
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
135
- transformed_hash["#{key}"] = nil
136
- elsif type =~ /\AArray<(.*)>/i
137
- # check to ensure the input is an array given that the attribute
138
- # is documented as an array but the input is not
139
- if attributes[attribute_map[key]].is_a?(Array)
140
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
141
- end
142
- elsif !attributes[attribute_map[key]].nil?
143
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
144
- end
145
- end
146
- new(transformed_hash)
147
- end
148
-
149
- # Returns the object in the form of hash
150
- # @return [Hash] Returns the object in the form of hash
151
- def to_hash
152
- hash = {}
153
- self.class.attribute_map.each_pair do |attr, param|
154
- value = self.send(attr)
155
- if value.nil?
156
- is_nullable = self.class.openapi_nullable.include?(attr)
157
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
158
- end
159
-
160
- hash[param] = _to_hash(value)
161
- end
162
- hash
163
- end
164
-
165
- end
166
-
167
- end