daytona_api_client 0.146.0 → 0.147.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: 568ae0d27391006fc1a8a850bd169e52e3e637cbb7f3299a17598b8301d6e2b5
4
- data.tar.gz: 31cb54958f0ab04e4e1f4da273d2cc33ea34560574f83781a8ef94dfda4478f6
3
+ metadata.gz: cfdebabc1874b44971ddf67ed741b02a8ed270c0b7ba21787cc8e23fbe49fdca
4
+ data.tar.gz: b23577cb0b934f999acb47e480b52fb87da4e4d4e8664ca8bc6ca0d8163aeee2
5
5
  SHA512:
6
- metadata.gz: e087df9dbb862713e38b85f396a082cb3252fff8b449a8d9eef6d0290e1085cf7cbc5c6d12b3fce4b75f3ecf569960acf06b5326dcf69ca6eb688087f5486b65
7
- data.tar.gz: 1677a49c3048dd9205c11f635a0b29e218aa01467ec62fe613cff4624d93f58d2faaf567e37b6d0d571ae504d92e579e0c09aa493f6c4ecad35d64e7733f8dc3
6
+ metadata.gz: 11a9369064deec0f91a7dea56277737f3374faaec3601f4856a22dd734ba89ae487c6b7ec6ca56c3a1c772c71a7d6a9adbf36761edaef528a8f6d136ec608eb6
7
+ data.tar.gz: 44d37334837c07fb6df192471690969d04b6dc0de94e781ce46fd0f967082e9d1f705d52d48873f345aee51b6c818e7e3f221236e419a3069b0411836f6512ad
@@ -196,6 +196,7 @@ lib/daytona_api_client/models/volume_dto.rb
196
196
  lib/daytona_api_client/models/volume_state.rb
197
197
  lib/daytona_api_client/models/webhook_app_portal_access.rb
198
198
  lib/daytona_api_client/models/webhook_controller_get_status200_response.rb
199
+ lib/daytona_api_client/models/webhook_event.rb
199
200
  lib/daytona_api_client/models/webhook_initialization_status.rb
200
201
  lib/daytona_api_client/models/windows_response.rb
201
202
  lib/daytona_api_client/models/work_dir_response.rb
@@ -19,7 +19,7 @@ module DaytonaApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get Svix Consumer App Portal access URL for an organization
22
+ # Get Svix Consumer App Portal access for an organization
23
23
  # @param organization_id [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
@@ -29,7 +29,7 @@ module DaytonaApiClient
29
29
  data
30
30
  end
31
31
 
32
- # Get Svix Consumer App Portal access URL for an organization
32
+ # Get Svix Consumer App Portal access for an organization
33
33
  # @param organization_id [String]
34
34
  # @param [Hash] opts the optional parameters
35
35
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
@@ -108,6 +108,9 @@ module DaytonaApiClient
108
108
  # The runner ID of the sandbox
109
109
  attr_accessor :runner_id
110
110
 
111
+ # The toolbox proxy URL for the sandbox
112
+ attr_accessor :toolbox_proxy_url
113
+
111
114
  class EnumAttributeValidator
112
115
  attr_reader :datatype
113
116
  attr_reader :allowable_values
@@ -163,7 +166,8 @@ module DaytonaApiClient
163
166
  :'updated_at' => :'updatedAt',
164
167
  :'_class' => :'class',
165
168
  :'daemon_version' => :'daemonVersion',
166
- :'runner_id' => :'runnerId'
169
+ :'runner_id' => :'runnerId',
170
+ :'toolbox_proxy_url' => :'toolboxProxyUrl'
167
171
  }
168
172
  end
169
173
 
@@ -210,7 +214,8 @@ module DaytonaApiClient
210
214
  :'updated_at' => :'String',
211
215
  :'_class' => :'String',
212
216
  :'daemon_version' => :'String',
213
- :'runner_id' => :'String'
217
+ :'runner_id' => :'String',
218
+ :'toolbox_proxy_url' => :'String'
214
219
  }
215
220
  end
216
221
 
@@ -391,6 +396,12 @@ module DaytonaApiClient
391
396
  if attributes.key?(:'runner_id')
392
397
  self.runner_id = attributes[:'runner_id']
393
398
  end
399
+
400
+ if attributes.key?(:'toolbox_proxy_url')
401
+ self.toolbox_proxy_url = attributes[:'toolbox_proxy_url']
402
+ else
403
+ self.toolbox_proxy_url = nil
404
+ end
394
405
  end
395
406
 
396
407
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -450,6 +461,10 @@ module DaytonaApiClient
450
461
  invalid_properties.push('invalid value for "disk", disk cannot be nil.')
451
462
  end
452
463
 
464
+ if @toolbox_proxy_url.nil?
465
+ invalid_properties.push('invalid value for "toolbox_proxy_url", toolbox_proxy_url cannot be nil.')
466
+ end
467
+
453
468
  invalid_properties
454
469
  end
455
470
 
@@ -474,6 +489,7 @@ module DaytonaApiClient
474
489
  return false unless backup_state_validator.valid?(@backup_state)
475
490
  _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large"])
476
491
  return false unless _class_validator.valid?(@_class)
492
+ return false if @toolbox_proxy_url.nil?
477
493
  true
478
494
  end
479
495
 
@@ -627,6 +643,16 @@ module DaytonaApiClient
627
643
  @_class = _class
628
644
  end
629
645
 
646
+ # Custom attribute writer method with validation
647
+ # @param [Object] toolbox_proxy_url Value to be assigned
648
+ def toolbox_proxy_url=(toolbox_proxy_url)
649
+ if toolbox_proxy_url.nil?
650
+ fail ArgumentError, 'toolbox_proxy_url cannot be nil'
651
+ end
652
+
653
+ @toolbox_proxy_url = toolbox_proxy_url
654
+ end
655
+
630
656
  # Checks equality by comparing each attribute.
631
657
  # @param [Object] Object to be compared
632
658
  def ==(o)
@@ -662,7 +688,8 @@ module DaytonaApiClient
662
688
  updated_at == o.updated_at &&
663
689
  _class == o._class &&
664
690
  daemon_version == o.daemon_version &&
665
- runner_id == o.runner_id
691
+ runner_id == o.runner_id &&
692
+ toolbox_proxy_url == o.toolbox_proxy_url
666
693
  end
667
694
 
668
695
  # @see the `==` method
@@ -674,7 +701,7 @@ module DaytonaApiClient
674
701
  # Calculates hash code according to all attributes.
675
702
  # @return [Integer] Hash code
676
703
  def hash
677
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, _class, daemon_version, runner_id].hash
704
+ [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, _class, daemon_version, runner_id, toolbox_proxy_url].hash
678
705
  end
679
706
 
680
707
  # Builds the object from hash
@@ -24,6 +24,28 @@ module DaytonaApiClient
24
24
  # Optional event ID for idempotency
25
25
  attr_accessor :event_id
26
26
 
27
+ class EnumAttributeValidator
28
+ attr_reader :datatype
29
+ attr_reader :allowable_values
30
+
31
+ def initialize(datatype, allowable_values)
32
+ @allowable_values = allowable_values.map do |value|
33
+ case datatype.to_s
34
+ when /Integer/i
35
+ value.to_i
36
+ when /Float/i
37
+ value.to_f
38
+ else
39
+ value
40
+ end
41
+ end
42
+ end
43
+
44
+ def valid?(value)
45
+ !value || allowable_values.include?(value)
46
+ end
47
+ end
48
+
27
49
  # Attribute mapping from ruby-style variable name to JSON key.
28
50
  def self.attribute_map
29
51
  {
@@ -46,7 +68,7 @@ module DaytonaApiClient
46
68
  # Attribute type mapping.
47
69
  def self.openapi_types
48
70
  {
49
- :'event_type' => :'String',
71
+ :'event_type' => :'WebhookEvent',
50
72
  :'payload' => :'Object',
51
73
  :'event_id' => :'String'
52
74
  }
@@ -15,12 +15,16 @@ require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
17
  class WebhookAppPortalAccess
18
+ # The authentication token for the Svix consumer app portal
19
+ attr_accessor :token
20
+
18
21
  # The URL to the webhook app portal
19
22
  attr_accessor :url
20
23
 
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
27
+ :'token' => :'token',
24
28
  :'url' => :'url'
25
29
  }
26
30
  end
@@ -38,6 +42,7 @@ module DaytonaApiClient
38
42
  # Attribute type mapping.
39
43
  def self.openapi_types
40
44
  {
45
+ :'token' => :'String',
41
46
  :'url' => :'String'
42
47
  }
43
48
  end
@@ -64,6 +69,12 @@ module DaytonaApiClient
64
69
  h[k.to_sym] = v
65
70
  }
66
71
 
72
+ if attributes.key?(:'token')
73
+ self.token = attributes[:'token']
74
+ else
75
+ self.token = nil
76
+ end
77
+
67
78
  if attributes.key?(:'url')
68
79
  self.url = attributes[:'url']
69
80
  else
@@ -76,6 +87,10 @@ module DaytonaApiClient
76
87
  def list_invalid_properties
77
88
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
89
  invalid_properties = Array.new
90
+ if @token.nil?
91
+ invalid_properties.push('invalid value for "token", token cannot be nil.')
92
+ end
93
+
79
94
  if @url.nil?
80
95
  invalid_properties.push('invalid value for "url", url cannot be nil.')
81
96
  end
@@ -87,10 +102,21 @@ module DaytonaApiClient
87
102
  # @return true if the model is valid
88
103
  def valid?
89
104
  warn '[DEPRECATED] the `valid?` method is obsolete'
105
+ return false if @token.nil?
90
106
  return false if @url.nil?
91
107
  true
92
108
  end
93
109
 
110
+ # Custom attribute writer method with validation
111
+ # @param [Object] token Value to be assigned
112
+ def token=(token)
113
+ if token.nil?
114
+ fail ArgumentError, 'token cannot be nil'
115
+ end
116
+
117
+ @token = token
118
+ end
119
+
94
120
  # Custom attribute writer method with validation
95
121
  # @param [Object] url Value to be assigned
96
122
  def url=(url)
@@ -106,6 +132,7 @@ module DaytonaApiClient
106
132
  def ==(o)
107
133
  return true if self.equal?(o)
108
134
  self.class == o.class &&
135
+ token == o.token &&
109
136
  url == o.url
110
137
  end
111
138
 
@@ -118,7 +145,7 @@ module DaytonaApiClient
118
145
  # Calculates hash code according to all attributes.
119
146
  # @return [Integer] Hash code
120
147
  def hash
121
- [url].hash
148
+ [token, url].hash
122
149
  end
123
150
 
124
151
  # Builds the object from hash
@@ -0,0 +1,45 @@
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.12.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DaytonaApiClient
17
+ class WebhookEvent
18
+ SANDBOX_CREATED = "sandbox.created".freeze
19
+ SANDBOX_STATE_UPDATED = "sandbox.state.updated".freeze
20
+ SNAPSHOT_CREATED = "snapshot.created".freeze
21
+ SNAPSHOT_STATE_UPDATED = "snapshot.state.updated".freeze
22
+ SNAPSHOT_REMOVED = "snapshot.removed".freeze
23
+ VOLUME_CREATED = "volume.created".freeze
24
+ VOLUME_STATE_UPDATED = "volume.state.updated".freeze
25
+
26
+ def self.all_vars
27
+ @all_vars ||= [SANDBOX_CREATED, SANDBOX_STATE_UPDATED, SNAPSHOT_CREATED, SNAPSHOT_STATE_UPDATED, SNAPSHOT_REMOVED, VOLUME_CREATED, VOLUME_STATE_UPDATED].freeze
28
+ end
29
+
30
+ # Builds the enum from string
31
+ # @param [String] The enum value in the form of the string
32
+ # @return [String] The enum value
33
+ def self.build_from_hash(value)
34
+ new.build_from_hash(value)
35
+ end
36
+
37
+ # Builds the enum from string
38
+ # @param [String] The enum value in the form of the string
39
+ # @return [String] The enum value
40
+ def build_from_hash(value)
41
+ return value if WebhookEvent.all_vars.include?(value)
42
+ raise "Invalid ENUM value #{value} for class #WebhookEvent"
43
+ end
44
+ end
45
+ end
@@ -108,6 +108,9 @@ module DaytonaApiClient
108
108
  # The runner ID of the sandbox
109
109
  attr_accessor :runner_id
110
110
 
111
+ # The toolbox proxy URL for the sandbox
112
+ attr_accessor :toolbox_proxy_url
113
+
111
114
  # The image used for the workspace
112
115
  attr_accessor :image
113
116
 
@@ -176,6 +179,7 @@ module DaytonaApiClient
176
179
  :'_class' => :'class',
177
180
  :'daemon_version' => :'daemonVersion',
178
181
  :'runner_id' => :'runnerId',
182
+ :'toolbox_proxy_url' => :'toolboxProxyUrl',
179
183
  :'image' => :'image',
180
184
  :'snapshot_state' => :'snapshotState',
181
185
  :'snapshot_created_at' => :'snapshotCreatedAt',
@@ -227,6 +231,7 @@ module DaytonaApiClient
227
231
  :'_class' => :'String',
228
232
  :'daemon_version' => :'String',
229
233
  :'runner_id' => :'String',
234
+ :'toolbox_proxy_url' => :'String',
230
235
  :'image' => :'String',
231
236
  :'snapshot_state' => :'String',
232
237
  :'snapshot_created_at' => :'String',
@@ -412,6 +417,12 @@ module DaytonaApiClient
412
417
  self.runner_id = attributes[:'runner_id']
413
418
  end
414
419
 
420
+ if attributes.key?(:'toolbox_proxy_url')
421
+ self.toolbox_proxy_url = attributes[:'toolbox_proxy_url']
422
+ else
423
+ self.toolbox_proxy_url = nil
424
+ end
425
+
415
426
  if attributes.key?(:'image')
416
427
  self.image = attributes[:'image']
417
428
  end
@@ -486,6 +497,10 @@ module DaytonaApiClient
486
497
  invalid_properties.push('invalid value for "disk", disk cannot be nil.')
487
498
  end
488
499
 
500
+ if @toolbox_proxy_url.nil?
501
+ invalid_properties.push('invalid value for "toolbox_proxy_url", toolbox_proxy_url cannot be nil.')
502
+ end
503
+
489
504
  invalid_properties
490
505
  end
491
506
 
@@ -510,6 +525,7 @@ module DaytonaApiClient
510
525
  return false unless backup_state_validator.valid?(@backup_state)
511
526
  _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large"])
512
527
  return false unless _class_validator.valid?(@_class)
528
+ return false if @toolbox_proxy_url.nil?
513
529
  snapshot_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error"])
514
530
  return false unless snapshot_state_validator.valid?(@snapshot_state)
515
531
  true
@@ -665,6 +681,16 @@ module DaytonaApiClient
665
681
  @_class = _class
666
682
  end
667
683
 
684
+ # Custom attribute writer method with validation
685
+ # @param [Object] toolbox_proxy_url Value to be assigned
686
+ def toolbox_proxy_url=(toolbox_proxy_url)
687
+ if toolbox_proxy_url.nil?
688
+ fail ArgumentError, 'toolbox_proxy_url cannot be nil'
689
+ end
690
+
691
+ @toolbox_proxy_url = toolbox_proxy_url
692
+ end
693
+
668
694
  # Custom attribute writer method checking allowed values (enum).
669
695
  # @param [Object] snapshot_state Object to be assigned
670
696
  def snapshot_state=(snapshot_state)
@@ -711,6 +737,7 @@ module DaytonaApiClient
711
737
  _class == o._class &&
712
738
  daemon_version == o.daemon_version &&
713
739
  runner_id == o.runner_id &&
740
+ toolbox_proxy_url == o.toolbox_proxy_url &&
714
741
  image == o.image &&
715
742
  snapshot_state == o.snapshot_state &&
716
743
  snapshot_created_at == o.snapshot_created_at &&
@@ -726,7 +753,7 @@ module DaytonaApiClient
726
753
  # Calculates hash code according to all attributes.
727
754
  # @return [Integer] Hash code
728
755
  def hash
729
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, _class, daemon_version, runner_id, image, snapshot_state, snapshot_created_at, info].hash
756
+ [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, _class, daemon_version, runner_id, toolbox_proxy_url, image, snapshot_state, snapshot_created_at, info].hash
730
757
  end
731
758
 
732
759
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.12.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.146.0'
14
+ VERSION = '0.147.0'
15
15
  end
@@ -187,6 +187,7 @@ require 'daytona_api_client/models/volume_dto'
187
187
  require 'daytona_api_client/models/volume_state'
188
188
  require 'daytona_api_client/models/webhook_app_portal_access'
189
189
  require 'daytona_api_client/models/webhook_controller_get_status200_response'
190
+ require 'daytona_api_client/models/webhook_event'
190
191
  require 'daytona_api_client/models/webhook_initialization_status'
191
192
  require 'daytona_api_client/models/windows_response'
192
193
  require 'daytona_api_client/models/work_dir_response'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.146.0
4
+ version: 0.147.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-25 00:00:00.000000000 Z
11
+ date: 2026-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -259,6 +259,7 @@ files:
259
259
  - lib/daytona_api_client/models/volume_state.rb
260
260
  - lib/daytona_api_client/models/webhook_app_portal_access.rb
261
261
  - lib/daytona_api_client/models/webhook_controller_get_status200_response.rb
262
+ - lib/daytona_api_client/models/webhook_event.rb
262
263
  - lib/daytona_api_client/models/webhook_initialization_status.rb
263
264
  - lib/daytona_api_client/models/windows_response.rb
264
265
  - lib/daytona_api_client/models/work_dir_response.rb