daytona_toolbox_api_client 0.163.0.alpha.1 → 0.163.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6d5edb852db5be116890348bddc2206fa9524dcbd99eab86dc4302803411ca1
4
- data.tar.gz: e2dbde87f611ccd8e61e14fee05bdf7c6d889dd3f64818e1edd7455649b72fa2
3
+ metadata.gz: bfd0b4d8256048fd763faf8ad531cf0c9ff1510f95c43c89c93f0715edb8502a
4
+ data.tar.gz: 54da162bef37bc06c3788c8340acafdc38272aec5c2233c7c67927394d842cae
5
5
  SHA512:
6
- metadata.gz: fc63095997da260d004f20f84b4704c16f54997f3c9773586444f9dd1d0cffc5be7d24867e4806ebeedda0645a6f7eb10a469c49238904dd9fd6b1f2fe7627e4
7
- data.tar.gz: '0314833a88f1147d4a1ec73b0d06cde55943d4a5bb1a4585e56740fc24c78ecc4aab41b92c8c8dd5797d62fa347545269c8848215ee8dcc35bfaeb2f98c5904a'
6
+ metadata.gz: 439eb09ba4286b559ec5044adbf095d454d8e7306393d5842926dd91b6bd160e3ebecfad42d934966999eb1b4badc6001bb539719e406f2bf2ea996006c25fac
7
+ data.tar.gz: ce50650caf86189755e49f4f4d6b155a33d446858971b8349fdc9609d2464bf590e4306f89f3c31ad5318142ff746604b78b9a1ed3877585975ce16d0b1b28e9
@@ -16,11 +16,6 @@ lib/daytona_toolbox_api_client/api/server_api.rb
16
16
  lib/daytona_toolbox_api_client/api_client.rb
17
17
  lib/daytona_toolbox_api_client/api_error.rb
18
18
  lib/daytona_toolbox_api_client/configuration.rb
19
- lib/daytona_toolbox_api_client/models/chart.rb
20
- lib/daytona_toolbox_api_client/models/chart_element.rb
21
- lib/daytona_toolbox_api_client/models/code_run_artifacts.rb
22
- lib/daytona_toolbox_api_client/models/code_run_request.rb
23
- lib/daytona_toolbox_api_client/models/code_run_response.rb
24
19
  lib/daytona_toolbox_api_client/models/command.rb
25
20
  lib/daytona_toolbox_api_client/models/completion_context.rb
26
21
  lib/daytona_toolbox_api_client/models/completion_item.rb
@@ -44,7 +39,7 @@ lib/daytona_toolbox_api_client/models/git_clone_request.rb
44
39
  lib/daytona_toolbox_api_client/models/git_commit_info.rb
45
40
  lib/daytona_toolbox_api_client/models/git_commit_request.rb
46
41
  lib/daytona_toolbox_api_client/models/git_commit_response.rb
47
- lib/daytona_toolbox_api_client/models/git_delete_branch_request.rb
42
+ lib/daytona_toolbox_api_client/models/git_git_delete_branch_request.rb
48
43
  lib/daytona_toolbox_api_client/models/git_repo_request.rb
49
44
  lib/daytona_toolbox_api_client/models/git_status.rb
50
45
  lib/daytona_toolbox_api_client/models/initialize_request.rb
@@ -90,7 +85,6 @@ lib/daytona_toolbox_api_client/models/screenshot_response.rb
90
85
  lib/daytona_toolbox_api_client/models/scroll_response.rb
91
86
  lib/daytona_toolbox_api_client/models/search_files_response.rb
92
87
  lib/daytona_toolbox_api_client/models/session.rb
93
- lib/daytona_toolbox_api_client/models/session_command_logs_response.rb
94
88
  lib/daytona_toolbox_api_client/models/session_execute_request.rb
95
89
  lib/daytona_toolbox_api_client/models/session_execute_response.rb
96
90
  lib/daytona_toolbox_api_client/models/session_send_input_request.rb
@@ -218,7 +218,7 @@ module DaytonaToolboxApiClient
218
218
  end
219
219
 
220
220
  # Download multiple files
221
- # Download multiple files by providing their paths
221
+ # Download multiple files by providing their paths. Successful files are returned as multipart parts named `file`. Per-file failures are returned as multipart parts named `error` with JSON payloads shaped like ErrorResponse.
222
222
  # @param download_files [FilesDownloadRequest] Paths of files to download
223
223
  # @param [Hash] opts the optional parameters
224
224
  # @return [Hash<String, Object>]
@@ -228,7 +228,7 @@ module DaytonaToolboxApiClient
228
228
  end
229
229
 
230
230
  # Download multiple files
231
- # Download multiple files by providing their paths
231
+ # Download multiple files by providing their paths. Successful files are returned as multipart parts named &#x60;file&#x60;. Per-file failures are returned as multipart parts named &#x60;error&#x60; with JSON payloads shaped like ErrorResponse.
232
232
  # @param download_files [FilesDownloadRequest] Paths of files to download
233
233
  # @param [Hash] opts the optional parameters
234
234
  # @return [Array<(Hash<String, Object>, Integer, Hash)>] Hash<String, Object> data, response status code and response headers
@@ -353,7 +353,7 @@ module DaytonaToolboxApiClient
353
353
 
354
354
  # Delete a branch
355
355
  # Delete a branch from the Git repository
356
- # @param request [GitDeleteBranchRequest] Delete branch request
356
+ # @param request [GitGitDeleteBranchRequest] Delete branch request
357
357
  # @param [Hash] opts the optional parameters
358
358
  # @return [nil]
359
359
  def delete_branch(request, opts = {})
@@ -363,7 +363,7 @@ module DaytonaToolboxApiClient
363
363
 
364
364
  # Delete a branch
365
365
  # Delete a branch from the Git repository
366
- # @param request [GitDeleteBranchRequest] Delete branch request
366
+ # @param request [GitGitDeleteBranchRequest] Delete branch request
367
367
  # @param [Hash] opts the optional parameters
368
368
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
369
369
  def delete_branch_with_http_info(request, opts = {})
@@ -19,74 +19,6 @@ module DaytonaToolboxApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Execute code
23
- # Execute Python, JavaScript, or TypeScript code and return output, exit code, and artifacts
24
- # @param request [CodeRunRequest] Code execution request
25
- # @param [Hash] opts the optional parameters
26
- # @return [CodeRunResponse]
27
- def code_run(request, opts = {})
28
- data, _status_code, _headers = code_run_with_http_info(request, opts)
29
- data
30
- end
31
-
32
- # Execute code
33
- # Execute Python, JavaScript, or TypeScript code and return output, exit code, and artifacts
34
- # @param request [CodeRunRequest] Code execution request
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(CodeRunResponse, Integer, Hash)>] CodeRunResponse data, response status code and response headers
37
- def code_run_with_http_info(request, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: ProcessApi.code_run ...'
40
- end
41
- # verify the required parameter 'request' is set
42
- if @api_client.config.client_side_validation && request.nil?
43
- fail ArgumentError, "Missing the required parameter 'request' when calling ProcessApi.code_run"
44
- end
45
- # resource path
46
- local_var_path = '/process/code-run'
47
-
48
- # query parameters
49
- query_params = opts[:query_params] || {}
50
-
51
- # header parameters
52
- header_params = opts[:header_params] || {}
53
- # HTTP header 'Accept' (if needed)
54
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
- # HTTP header 'Content-Type'
56
- content_type = @api_client.select_header_content_type(['application/json'])
57
- if !content_type.nil?
58
- header_params['Content-Type'] = content_type
59
- end
60
-
61
- # form parameters
62
- form_params = opts[:form_params] || {}
63
-
64
- # http body (model)
65
- post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
66
-
67
- # return_type
68
- return_type = opts[:debug_return_type] || 'CodeRunResponse'
69
-
70
- # auth_names
71
- auth_names = opts[:debug_auth_names] || []
72
-
73
- new_options = opts.merge(
74
- :operation => :"ProcessApi.code_run",
75
- :header_params => header_params,
76
- :query_params => query_params,
77
- :form_params => form_params,
78
- :body => post_body,
79
- :auth_names => auth_names,
80
- :return_type => return_type
81
- )
82
-
83
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
- if @api_client.config.debugging
85
- @api_client.config.logger.debug "API called: ProcessApi#code_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
- end
87
- return data, status_code, headers
88
- end
89
-
90
22
  # Connect to PTY session via WebSocket
91
23
  # Establish a WebSocket connection to interact with a pseudo-terminal session
92
24
  # @param session_id [String] PTY session ID
@@ -475,20 +407,20 @@ module DaytonaToolboxApiClient
475
407
  end
476
408
 
477
409
  # Get entrypoint logs
478
- # Get logs for a sandbox entrypoint session. Returns JSON with separated stdout/stderr for SDK >= 0.161.0, plain text otherwise. Supports WebSocket streaming.
410
+ # Get logs for a sandbox entrypoint session. Supports both HTTP and WebSocket streaming.
479
411
  # @param [Hash] opts the optional parameters
480
412
  # @option opts [Boolean] :follow Follow logs in real-time (WebSocket only)
481
- # @return [SessionCommandLogsResponse]
413
+ # @return [String]
482
414
  def get_entrypoint_logs(opts = {})
483
415
  data, _status_code, _headers = get_entrypoint_logs_with_http_info(opts)
484
416
  data
485
417
  end
486
418
 
487
419
  # Get entrypoint logs
488
- # Get logs for a sandbox entrypoint session. Returns JSON with separated stdout/stderr for SDK &gt;&#x3D; 0.161.0, plain text otherwise. Supports WebSocket streaming.
420
+ # Get logs for a sandbox entrypoint session. Supports both HTTP and WebSocket streaming.
489
421
  # @param [Hash] opts the optional parameters
490
422
  # @option opts [Boolean] :follow Follow logs in real-time (WebSocket only)
491
- # @return [Array<(SessionCommandLogsResponse, Integer, Hash)>] SessionCommandLogsResponse data, response status code and response headers
423
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
492
424
  def get_entrypoint_logs_with_http_info(opts = {})
493
425
  if @api_client.config.debugging
494
426
  @api_client.config.logger.debug 'Calling API: ProcessApi.get_entrypoint_logs ...'
@@ -503,7 +435,7 @@ module DaytonaToolboxApiClient
503
435
  # header parameters
504
436
  header_params = opts[:header_params] || {}
505
437
  # HTTP header 'Accept' (if needed)
506
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain']) unless header_params['Accept']
438
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain']) unless header_params['Accept']
507
439
 
508
440
  # form parameters
509
441
  form_params = opts[:form_params] || {}
@@ -512,7 +444,7 @@ module DaytonaToolboxApiClient
512
444
  post_body = opts[:debug_body]
513
445
 
514
446
  # return_type
515
- return_type = opts[:debug_return_type] || 'SessionCommandLogsResponse'
447
+ return_type = opts[:debug_return_type] || 'String'
516
448
 
517
449
  # auth_names
518
450
  auth_names = opts[:debug_auth_names] || []
@@ -787,24 +719,24 @@ module DaytonaToolboxApiClient
787
719
  end
788
720
 
789
721
  # Get session command logs
790
- # Get logs for a specific command within a session. Returns JSON with separated stdout/stderr for SDK >= 0.163.0, plain text otherwise. Supports WebSocket streaming.
722
+ # Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
791
723
  # @param session_id [String] Session ID
792
724
  # @param command_id [String] Command ID
793
725
  # @param [Hash] opts the optional parameters
794
726
  # @option opts [Boolean] :follow Follow logs in real-time (WebSocket only)
795
- # @return [SessionCommandLogsResponse]
727
+ # @return [String]
796
728
  def get_session_command_logs(session_id, command_id, opts = {})
797
729
  data, _status_code, _headers = get_session_command_logs_with_http_info(session_id, command_id, opts)
798
730
  data
799
731
  end
800
732
 
801
733
  # Get session command logs
802
- # Get logs for a specific command within a session. Returns JSON with separated stdout/stderr for SDK &gt;&#x3D; 0.163.0, plain text otherwise. Supports WebSocket streaming.
734
+ # Get logs for a specific command within a session. Supports both HTTP and WebSocket streaming.
803
735
  # @param session_id [String] Session ID
804
736
  # @param command_id [String] Command ID
805
737
  # @param [Hash] opts the optional parameters
806
738
  # @option opts [Boolean] :follow Follow logs in real-time (WebSocket only)
807
- # @return [Array<(SessionCommandLogsResponse, Integer, Hash)>] SessionCommandLogsResponse data, response status code and response headers
739
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
808
740
  def get_session_command_logs_with_http_info(session_id, command_id, opts = {})
809
741
  if @api_client.config.debugging
810
742
  @api_client.config.logger.debug 'Calling API: ProcessApi.get_session_command_logs ...'
@@ -827,7 +759,7 @@ module DaytonaToolboxApiClient
827
759
  # header parameters
828
760
  header_params = opts[:header_params] || {}
829
761
  # HTTP header 'Accept' (if needed)
830
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/plain']) unless header_params['Accept']
762
+ header_params['Accept'] = @api_client.select_header_accept(['text/plain']) unless header_params['Accept']
831
763
 
832
764
  # form parameters
833
765
  form_params = opts[:form_params] || {}
@@ -836,7 +768,7 @@ module DaytonaToolboxApiClient
836
768
  post_body = opts[:debug_body]
837
769
 
838
770
  # return_type
839
- return_type = opts[:debug_return_type] || 'SessionCommandLogsResponse'
771
+ return_type = opts[:debug_return_type] || 'String'
840
772
 
841
773
  # auth_names
842
774
  auth_names = opts[:debug_auth_names] || []
@@ -20,9 +20,6 @@ module DaytonaToolboxApiClient
20
20
  # Current working directory
21
21
  attr_accessor :cwd
22
22
 
23
- # Environment variables to set for the command
24
- attr_accessor :envs
25
-
26
23
  # Timeout in seconds, defaults to 10 seconds
27
24
  attr_accessor :timeout
28
25
 
@@ -31,7 +28,6 @@ module DaytonaToolboxApiClient
31
28
  {
32
29
  :'command' => :'command',
33
30
  :'cwd' => :'cwd',
34
- :'envs' => :'envs',
35
31
  :'timeout' => :'timeout'
36
32
  }
37
33
  end
@@ -51,7 +47,6 @@ module DaytonaToolboxApiClient
51
47
  {
52
48
  :'command' => :'String',
53
49
  :'cwd' => :'String',
54
- :'envs' => :'Hash<String, String>',
55
50
  :'timeout' => :'Integer'
56
51
  }
57
52
  end
@@ -88,12 +83,6 @@ module DaytonaToolboxApiClient
88
83
  self.cwd = attributes[:'cwd']
89
84
  end
90
85
 
91
- if attributes.key?(:'envs')
92
- if (value = attributes[:'envs']).is_a?(Hash)
93
- self.envs = value
94
- end
95
- end
96
-
97
86
  if attributes.key?(:'timeout')
98
87
  self.timeout = attributes[:'timeout']
99
88
  end
@@ -136,7 +125,6 @@ module DaytonaToolboxApiClient
136
125
  self.class == o.class &&
137
126
  command == o.command &&
138
127
  cwd == o.cwd &&
139
- envs == o.envs &&
140
128
  timeout == o.timeout
141
129
  end
142
130
 
@@ -149,7 +137,7 @@ module DaytonaToolboxApiClient
149
137
  # Calculates hash code according to all attributes.
150
138
  # @return [Integer] Hash code
151
139
  def hash
152
- [command, cwd, envs, timeout].hash
140
+ [command, cwd, timeout].hash
153
141
  end
154
142
 
155
143
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DaytonaToolboxApiClient
17
- class GitDeleteBranchRequest
17
+ class GitGitDeleteBranchRequest
18
18
  attr_accessor :name
19
19
 
20
20
  attr_accessor :path
@@ -55,14 +55,14 @@ module DaytonaToolboxApiClient
55
55
  # @param [Hash] attributes Model attributes in the form of hash
56
56
  def initialize(attributes = {})
57
57
  if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaToolboxApiClient::GitDeleteBranchRequest` initialize method"
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaToolboxApiClient::GitGitDeleteBranchRequest` initialize method"
59
59
  end
60
60
 
61
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
62
  acceptable_attribute_map = self.class.acceptable_attribute_map
63
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
64
  if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaToolboxApiClient::GitDeleteBranchRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaToolboxApiClient::GitGitDeleteBranchRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
66
  end
67
67
  h[k.to_sym] = v
68
68
  }
@@ -11,5 +11,5 @@ Generator version: 7.12.0
11
11
  =end
12
12
 
13
13
  module DaytonaToolboxApiClient
14
- VERSION = '0.163.0.alpha.1'
14
+ VERSION = '0.163.0'
15
15
  end
@@ -17,11 +17,6 @@ require 'daytona_toolbox_api_client/version'
17
17
  require 'daytona_toolbox_api_client/configuration'
18
18
 
19
19
  # Models
20
- require 'daytona_toolbox_api_client/models/chart'
21
- require 'daytona_toolbox_api_client/models/chart_element'
22
- require 'daytona_toolbox_api_client/models/code_run_artifacts'
23
- require 'daytona_toolbox_api_client/models/code_run_request'
24
- require 'daytona_toolbox_api_client/models/code_run_response'
25
20
  require 'daytona_toolbox_api_client/models/command'
26
21
  require 'daytona_toolbox_api_client/models/completion_context'
27
22
  require 'daytona_toolbox_api_client/models/completion_item'
@@ -45,7 +40,7 @@ require 'daytona_toolbox_api_client/models/git_clone_request'
45
40
  require 'daytona_toolbox_api_client/models/git_commit_info'
46
41
  require 'daytona_toolbox_api_client/models/git_commit_request'
47
42
  require 'daytona_toolbox_api_client/models/git_commit_response'
48
- require 'daytona_toolbox_api_client/models/git_delete_branch_request'
43
+ require 'daytona_toolbox_api_client/models/git_git_delete_branch_request'
49
44
  require 'daytona_toolbox_api_client/models/git_repo_request'
50
45
  require 'daytona_toolbox_api_client/models/git_status'
51
46
  require 'daytona_toolbox_api_client/models/initialize_request'
@@ -91,7 +86,6 @@ require 'daytona_toolbox_api_client/models/screenshot_response'
91
86
  require 'daytona_toolbox_api_client/models/scroll_response'
92
87
  require 'daytona_toolbox_api_client/models/search_files_response'
93
88
  require 'daytona_toolbox_api_client/models/session'
94
- require 'daytona_toolbox_api_client/models/session_command_logs_response'
95
89
  require 'daytona_toolbox_api_client/models/session_execute_request'
96
90
  require 'daytona_toolbox_api_client/models/session_execute_response'
97
91
  require 'daytona_toolbox_api_client/models/session_send_input_request'
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.163.0.alpha.1
4
+ version: 0.163.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio
@@ -78,11 +78,6 @@ files:
78
78
  - lib/daytona_toolbox_api_client/api_client.rb
79
79
  - lib/daytona_toolbox_api_client/api_error.rb
80
80
  - lib/daytona_toolbox_api_client/configuration.rb
81
- - lib/daytona_toolbox_api_client/models/chart.rb
82
- - lib/daytona_toolbox_api_client/models/chart_element.rb
83
- - lib/daytona_toolbox_api_client/models/code_run_artifacts.rb
84
- - lib/daytona_toolbox_api_client/models/code_run_request.rb
85
- - lib/daytona_toolbox_api_client/models/code_run_response.rb
86
81
  - lib/daytona_toolbox_api_client/models/command.rb
87
82
  - lib/daytona_toolbox_api_client/models/completion_context.rb
88
83
  - lib/daytona_toolbox_api_client/models/completion_item.rb
@@ -106,7 +101,7 @@ files:
106
101
  - lib/daytona_toolbox_api_client/models/git_commit_info.rb
107
102
  - lib/daytona_toolbox_api_client/models/git_commit_request.rb
108
103
  - lib/daytona_toolbox_api_client/models/git_commit_response.rb
109
- - lib/daytona_toolbox_api_client/models/git_delete_branch_request.rb
104
+ - lib/daytona_toolbox_api_client/models/git_git_delete_branch_request.rb
110
105
  - lib/daytona_toolbox_api_client/models/git_repo_request.rb
111
106
  - lib/daytona_toolbox_api_client/models/git_status.rb
112
107
  - lib/daytona_toolbox_api_client/models/initialize_request.rb
@@ -152,7 +147,6 @@ files:
152
147
  - lib/daytona_toolbox_api_client/models/scroll_response.rb
153
148
  - lib/daytona_toolbox_api_client/models/search_files_response.rb
154
149
  - lib/daytona_toolbox_api_client/models/session.rb
155
- - lib/daytona_toolbox_api_client/models/session_command_logs_response.rb
156
150
  - lib/daytona_toolbox_api_client/models/session_execute_request.rb
157
151
  - lib/daytona_toolbox_api_client/models/session_execute_response.rb
158
152
  - lib/daytona_toolbox_api_client/models/session_send_input_request.rb