daytona_api_client 0.196.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 (81) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +3 -68
  3. data/lib/daytona_api_client/api/admin_api.rb +70 -0
  4. data/lib/daytona_api_client/api/organizations_api.rb +131 -0
  5. data/lib/daytona_api_client/api/preview_api.rb +64 -0
  6. data/lib/daytona_api_client/api/sandbox_api.rb +70 -0
  7. data/lib/daytona_api_client/models/{computer_use_status_response.rb → available_sandbox_class.rb} +84 -24
  8. data/lib/daytona_api_client/models/create_sandbox.rb +11 -1
  9. data/lib/daytona_api_client/models/organization.rb +28 -1
  10. data/lib/daytona_api_client/models/{create_session_request.rb → organization_preview_warning.rb} +20 -20
  11. data/lib/daytona_api_client/models/{download_files.rb → preview_warning.rb} +20 -22
  12. data/lib/daytona_api_client/models/sandbox.rb +11 -1
  13. data/lib/daytona_api_client/models/sandbox_list_item.rb +11 -1
  14. data/lib/daytona_api_client/version.rb +1 -1
  15. data/lib/daytona_api_client.rb +3 -68
  16. metadata +4 -69
  17. data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
  18. data/lib/daytona_api_client/models/command.rb +0 -202
  19. data/lib/daytona_api_client/models/completion_context.rb +0 -173
  20. data/lib/daytona_api_client/models/completion_item.rb +0 -218
  21. data/lib/daytona_api_client/models/completion_list.rb +0 -192
  22. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
  23. data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
  24. data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
  25. data/lib/daytona_api_client/models/display_info_response.rb +0 -167
  26. data/lib/daytona_api_client/models/execute_request.rb +0 -184
  27. data/lib/daytona_api_client/models/execute_response.rb +0 -192
  28. data/lib/daytona_api_client/models/file_info.rb +0 -346
  29. data/lib/daytona_api_client/models/file_status.rb +0 -242
  30. data/lib/daytona_api_client/models/git_add_request.rb +0 -193
  31. data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
  32. data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
  33. data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
  34. data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
  35. data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
  36. data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
  37. data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
  38. data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
  39. data/lib/daytona_api_client/models/git_status.rb +0 -219
  40. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
  41. data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
  42. data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
  43. data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
  44. data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
  45. data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
  46. data/lib/daytona_api_client/models/lsp_location.rb +0 -190
  47. data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
  48. data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
  49. data/lib/daytona_api_client/models/match.rb +0 -216
  50. data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
  51. data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
  52. data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
  53. data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
  54. data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
  55. data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
  56. data/lib/daytona_api_client/models/mouse_position.rb +0 -192
  57. data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
  58. data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
  59. data/lib/daytona_api_client/models/position.rb +0 -190
  60. data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
  61. data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
  62. data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
  63. data/lib/daytona_api_client/models/process_status_response.rb +0 -192
  64. data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
  65. data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
  66. data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
  67. data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
  68. data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
  69. data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
  70. data/lib/daytona_api_client/models/range.rb +0 -190
  71. data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
  72. data/lib/daytona_api_client/models/replace_request.rb +0 -218
  73. data/lib/daytona_api_client/models/replace_result.rb +0 -165
  74. data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
  75. data/lib/daytona_api_client/models/search_files_response.rb +0 -166
  76. data/lib/daytona_api_client/models/session.rb +0 -180
  77. data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
  78. data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
  79. data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
  80. data/lib/daytona_api_client/models/windows_response.rb +0 -194
  81. data/lib/daytona_api_client/models/work_dir_response.rb +0 -147
@@ -1,177 +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 KeyboardPressRequest < ApiModelBase
18
- # The key to press (e.g., a, b, c, enter, space, etc.)
19
- attr_accessor :key
20
-
21
- # Array of modifier keys to press along with the main key (ctrl, alt, shift, cmd)
22
- attr_accessor :modifiers
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'key' => :'key',
28
- :'modifiers' => :'modifiers'
29
- }
30
- end
31
-
32
- # Returns attribute mapping this model knows about
33
- def self.acceptable_attribute_map
34
- attribute_map
35
- end
36
-
37
- # Returns all the JSON keys this model knows about
38
- def self.acceptable_attributes
39
- acceptable_attribute_map.values
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.openapi_types
44
- {
45
- :'key' => :'String',
46
- :'modifiers' => :'Array<String>'
47
- }
48
- end
49
-
50
- # List of attributes with nullable: true
51
- def self.openapi_nullable
52
- Set.new([
53
- ])
54
- end
55
-
56
- # Initializes the object
57
- # @param [Hash] attributes Model attributes in the form of hash
58
- def initialize(attributes = {})
59
- if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::KeyboardPressRequest` initialize method"
61
- end
62
-
63
- # check to see if the attribute exists and convert string to symbol for hash key
64
- acceptable_attribute_map = self.class.acceptable_attribute_map
65
- attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::KeyboardPressRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
- end
69
- h[k.to_sym] = v
70
- }
71
-
72
- if attributes.key?(:'key')
73
- self.key = attributes[:'key']
74
- else
75
- self.key = nil
76
- end
77
-
78
- if attributes.key?(:'modifiers')
79
- if (value = attributes[:'modifiers']).is_a?(Array)
80
- self.modifiers = value
81
- end
82
- end
83
- end
84
-
85
- # Show invalid properties with the reasons. Usually used together with valid?
86
- # @return Array for valid properties with the reasons
87
- def list_invalid_properties
88
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
- invalid_properties = Array.new
90
- if @key.nil?
91
- invalid_properties.push('invalid value for "key", key cannot be nil.')
92
- end
93
-
94
- invalid_properties
95
- end
96
-
97
- # Check to see if the all the properties in the model are valid
98
- # @return true if the model is valid
99
- def valid?
100
- warn '[DEPRECATED] the `valid?` method is obsolete'
101
- return false if @key.nil?
102
- true
103
- end
104
-
105
- # Custom attribute writer method with validation
106
- # @param [Object] key Value to be assigned
107
- def key=(key)
108
- if key.nil?
109
- fail ArgumentError, 'key cannot be nil'
110
- end
111
-
112
- @key = key
113
- end
114
-
115
- # Checks equality by comparing each attribute.
116
- # @param [Object] Object to be compared
117
- def ==(o)
118
- return true if self.equal?(o)
119
- self.class == o.class &&
120
- key == o.key &&
121
- modifiers == o.modifiers
122
- end
123
-
124
- # @see the `==` method
125
- # @param [Object] Object to be compared
126
- def eql?(o)
127
- self == o
128
- end
129
-
130
- # Calculates hash code according to all attributes.
131
- # @return [Integer] Hash code
132
- def hash
133
- [key, modifiers].hash
134
- end
135
-
136
- # Builds the object from hash
137
- # @param [Hash] attributes Model attributes in the form of hash
138
- # @return [Object] Returns the model itself
139
- def self.build_from_hash(attributes)
140
- return nil unless attributes.is_a?(Hash)
141
- attributes = attributes.transform_keys(&:to_sym)
142
- transformed_hash = {}
143
- openapi_types.each_pair do |key, type|
144
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
145
- transformed_hash["#{key}"] = nil
146
- elsif type =~ /\AArray<(.*)>/i
147
- # check to ensure the input is an array given that the attribute
148
- # is documented as an array but the input is not
149
- if attributes[attribute_map[key]].is_a?(Array)
150
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
151
- end
152
- elsif !attributes[attribute_map[key]].nil?
153
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
154
- end
155
- end
156
- new(transformed_hash)
157
- end
158
-
159
- # Returns the object in the form of hash
160
- # @return [Hash] Returns the object in the form of hash
161
- def to_hash
162
- hash = {}
163
- self.class.attribute_map.each_pair do |attr, param|
164
- value = self.send(attr)
165
- if value.nil?
166
- is_nullable = self.class.openapi_nullable.include?(attr)
167
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
168
- end
169
-
170
- hash[param] = _to_hash(value)
171
- end
172
- hash
173
- end
174
-
175
- end
176
-
177
- end
@@ -1,175 +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 KeyboardTypeRequest < ApiModelBase
18
- # The text to type using the keyboard
19
- attr_accessor :text
20
-
21
- # Delay in milliseconds between keystrokes. Defaults to 0
22
- attr_accessor :delay
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'text' => :'text',
28
- :'delay' => :'delay'
29
- }
30
- end
31
-
32
- # Returns attribute mapping this model knows about
33
- def self.acceptable_attribute_map
34
- attribute_map
35
- end
36
-
37
- # Returns all the JSON keys this model knows about
38
- def self.acceptable_attributes
39
- acceptable_attribute_map.values
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.openapi_types
44
- {
45
- :'text' => :'String',
46
- :'delay' => :'Float'
47
- }
48
- end
49
-
50
- # List of attributes with nullable: true
51
- def self.openapi_nullable
52
- Set.new([
53
- ])
54
- end
55
-
56
- # Initializes the object
57
- # @param [Hash] attributes Model attributes in the form of hash
58
- def initialize(attributes = {})
59
- if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::KeyboardTypeRequest` initialize method"
61
- end
62
-
63
- # check to see if the attribute exists and convert string to symbol for hash key
64
- acceptable_attribute_map = self.class.acceptable_attribute_map
65
- attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::KeyboardTypeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
- end
69
- h[k.to_sym] = v
70
- }
71
-
72
- if attributes.key?(:'text')
73
- self.text = attributes[:'text']
74
- else
75
- self.text = nil
76
- end
77
-
78
- if attributes.key?(:'delay')
79
- self.delay = attributes[:'delay']
80
- end
81
- end
82
-
83
- # Show invalid properties with the reasons. Usually used together with valid?
84
- # @return Array for valid properties with the reasons
85
- def list_invalid_properties
86
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
- invalid_properties = Array.new
88
- if @text.nil?
89
- invalid_properties.push('invalid value for "text", text cannot be nil.')
90
- end
91
-
92
- invalid_properties
93
- end
94
-
95
- # Check to see if the all the properties in the model are valid
96
- # @return true if the model is valid
97
- def valid?
98
- warn '[DEPRECATED] the `valid?` method is obsolete'
99
- return false if @text.nil?
100
- true
101
- end
102
-
103
- # Custom attribute writer method with validation
104
- # @param [Object] text Value to be assigned
105
- def text=(text)
106
- if text.nil?
107
- fail ArgumentError, 'text cannot be nil'
108
- end
109
-
110
- @text = text
111
- end
112
-
113
- # Checks equality by comparing each attribute.
114
- # @param [Object] Object to be compared
115
- def ==(o)
116
- return true if self.equal?(o)
117
- self.class == o.class &&
118
- text == o.text &&
119
- delay == o.delay
120
- end
121
-
122
- # @see the `==` method
123
- # @param [Object] Object to be compared
124
- def eql?(o)
125
- self == o
126
- end
127
-
128
- # Calculates hash code according to all attributes.
129
- # @return [Integer] Hash code
130
- def hash
131
- [text, delay].hash
132
- end
133
-
134
- # Builds the object from hash
135
- # @param [Hash] attributes Model attributes in the form of hash
136
- # @return [Object] Returns the model itself
137
- def self.build_from_hash(attributes)
138
- return nil unless attributes.is_a?(Hash)
139
- attributes = attributes.transform_keys(&:to_sym)
140
- transformed_hash = {}
141
- openapi_types.each_pair do |key, type|
142
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
143
- transformed_hash["#{key}"] = nil
144
- elsif type =~ /\AArray<(.*)>/i
145
- # check to ensure the input is an array given that the attribute
146
- # is documented as an array but the input is not
147
- if attributes[attribute_map[key]].is_a?(Array)
148
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
149
- end
150
- elsif !attributes[attribute_map[key]].nil?
151
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
152
- end
153
- end
154
- new(transformed_hash)
155
- end
156
-
157
- # Returns the object in the form of hash
158
- # @return [Hash] Returns the object in the form of hash
159
- def to_hash
160
- hash = {}
161
- self.class.attribute_map.each_pair do |attr, param|
162
- value = self.send(attr)
163
- if value.nil?
164
- is_nullable = self.class.openapi_nullable.include?(attr)
165
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
166
- end
167
-
168
- hash[param] = _to_hash(value)
169
- end
170
- hash
171
- end
172
-
173
- end
174
-
175
- end
@@ -1,166 +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 ListBranchResponse < ApiModelBase
18
- attr_accessor :branches
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'branches' => :'branches'
24
- }
25
- end
26
-
27
- # Returns attribute mapping this model knows about
28
- def self.acceptable_attribute_map
29
- attribute_map
30
- end
31
-
32
- # Returns all the JSON keys this model knows about
33
- def self.acceptable_attributes
34
- acceptable_attribute_map.values
35
- end
36
-
37
- # Attribute type mapping.
38
- def self.openapi_types
39
- {
40
- :'branches' => :'Array<String>'
41
- }
42
- end
43
-
44
- # List of attributes with nullable: true
45
- def self.openapi_nullable
46
- Set.new([
47
- ])
48
- end
49
-
50
- # Initializes the object
51
- # @param [Hash] attributes Model attributes in the form of hash
52
- def initialize(attributes = {})
53
- if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ListBranchResponse` initialize method"
55
- end
56
-
57
- # check to see if the attribute exists and convert string to symbol for hash key
58
- acceptable_attribute_map = self.class.acceptable_attribute_map
59
- attributes = attributes.each_with_object({}) { |(k, v), h|
60
- if (!acceptable_attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ListBranchResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
- end
63
- h[k.to_sym] = v
64
- }
65
-
66
- if attributes.key?(:'branches')
67
- if (value = attributes[:'branches']).is_a?(Array)
68
- self.branches = value
69
- end
70
- else
71
- self.branches = nil
72
- end
73
- end
74
-
75
- # Show invalid properties with the reasons. Usually used together with valid?
76
- # @return Array for valid properties with the reasons
77
- def list_invalid_properties
78
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
79
- invalid_properties = Array.new
80
- if @branches.nil?
81
- invalid_properties.push('invalid value for "branches", branches cannot be nil.')
82
- end
83
-
84
- invalid_properties
85
- end
86
-
87
- # Check to see if the all the properties in the model are valid
88
- # @return true if the model is valid
89
- def valid?
90
- warn '[DEPRECATED] the `valid?` method is obsolete'
91
- return false if @branches.nil?
92
- true
93
- end
94
-
95
- # Custom attribute writer method with validation
96
- # @param [Object] branches Value to be assigned
97
- def branches=(branches)
98
- if branches.nil?
99
- fail ArgumentError, 'branches cannot be nil'
100
- end
101
-
102
- @branches = branches
103
- end
104
-
105
- # Checks equality by comparing each attribute.
106
- # @param [Object] Object to be compared
107
- def ==(o)
108
- return true if self.equal?(o)
109
- self.class == o.class &&
110
- branches == o.branches
111
- end
112
-
113
- # @see the `==` method
114
- # @param [Object] Object to be compared
115
- def eql?(o)
116
- self == o
117
- end
118
-
119
- # Calculates hash code according to all attributes.
120
- # @return [Integer] Hash code
121
- def hash
122
- [branches].hash
123
- end
124
-
125
- # Builds the object from hash
126
- # @param [Hash] attributes Model attributes in the form of hash
127
- # @return [Object] Returns the model itself
128
- def self.build_from_hash(attributes)
129
- return nil unless attributes.is_a?(Hash)
130
- attributes = attributes.transform_keys(&:to_sym)
131
- transformed_hash = {}
132
- openapi_types.each_pair do |key, type|
133
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
- transformed_hash["#{key}"] = nil
135
- elsif type =~ /\AArray<(.*)>/i
136
- # check to ensure the input is an array given that the attribute
137
- # is documented as an array but the input is not
138
- if attributes[attribute_map[key]].is_a?(Array)
139
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
- end
141
- elsif !attributes[attribute_map[key]].nil?
142
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
- end
144
- end
145
- new(transformed_hash)
146
- end
147
-
148
- # Returns the object in the form of hash
149
- # @return [Hash] Returns the object in the form of hash
150
- def to_hash
151
- hash = {}
152
- self.class.attribute_map.each_pair do |attr, param|
153
- value = self.send(attr)
154
- if value.nil?
155
- is_nullable = self.class.openapi_nullable.include?(attr)
156
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
157
- end
158
-
159
- hash[param] = _to_hash(value)
160
- end
161
- hash
162
- end
163
-
164
- end
165
-
166
- end