openai 0.109.0 → 0.111.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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/audio/voice_delete_params.rb +22 -0
  5. data/lib/openai/models/audio/voice_deleted.rb +38 -0
  6. data/lib/openai/models/decision_create_params.rb +798 -28
  7. data/lib/openai/models/decision_input_json.rb +45 -0
  8. data/lib/openai/models/decision_input_message.rb +304 -48
  9. data/lib/openai/models/decision_input_part.rb +4 -1
  10. data/lib/openai/models/decision_question_input_image.rb +54 -0
  11. data/lib/openai/models/decision_question_input_part.rb +23 -0
  12. data/lib/openai/models/decision_question_input_text.rb +21 -0
  13. data/lib/openai/models/live/decision_trigger.rb +82 -9
  14. data/lib/openai/models/live/decisions_delegation_config.rb +82 -9
  15. data/lib/openai/models/live/decisions_delegation_update_config.rb +82 -9
  16. data/lib/openai/models.rb +8 -0
  17. data/lib/openai/resources/admin/organization/projects/api_keys.rb +5 -3
  18. data/lib/openai/resources/audio/voices.rb +29 -0
  19. data/lib/openai/resources/decisions.rb +5 -6
  20. data/lib/openai/version.rb +1 -1
  21. data/lib/openai.rb +6 -0
  22. data/rbi/openai/models/audio/voice_delete_params.rbi +53 -0
  23. data/rbi/openai/models/audio/voice_deleted.rbi +67 -0
  24. data/rbi/openai/models/decision_create_params.rbi +1273 -26
  25. data/rbi/openai/models/decision_input_json.rbi +75 -0
  26. data/rbi/openai/models/decision_input_message.rbi +455 -52
  27. data/rbi/openai/models/decision_input_part.rbi +2 -1
  28. data/rbi/openai/models/decision_question_input_image.rbi +82 -0
  29. data/rbi/openai/models/decision_question_input_part.rbi +25 -0
  30. data/rbi/openai/models/decision_question_input_text.rbi +49 -0
  31. data/rbi/openai/models/live/decision_trigger.rbi +72 -9
  32. data/rbi/openai/models/live/decisions_delegation_config.rbi +72 -9
  33. data/rbi/openai/models/live/decisions_delegation_update_config.rbi +72 -9
  34. data/rbi/openai/models.rbi +8 -0
  35. data/rbi/openai/resources/admin/organization/projects/api_keys.rbi +5 -3
  36. data/rbi/openai/resources/audio/voices.rbi +18 -0
  37. data/rbi/openai/resources/decisions.rbi +4 -5
  38. data/sig/openai/models/audio/voice_delete_params.rbs +25 -0
  39. data/sig/openai/models/audio/voice_deleted.rbs +37 -0
  40. data/sig/openai/models/decision_create_params.rbs +610 -24
  41. data/sig/openai/models/decision_input_json.rbs +34 -0
  42. data/sig/openai/models/decision_input_message.rbs +264 -35
  43. data/sig/openai/models/decision_input_part.rbs +3 -1
  44. data/sig/openai/models/decision_question_input_image.rbs +51 -0
  45. data/sig/openai/models/decision_question_input_part.rbs +14 -0
  46. data/sig/openai/models/decision_question_input_text.rbs +15 -0
  47. data/sig/openai/models/live/decision_trigger.rbs +49 -12
  48. data/sig/openai/models/live/decisions_delegation_config.rbs +49 -12
  49. data/sig/openai/models/live/decisions_delegation_update_config.rbs +49 -12
  50. data/sig/openai/models.rbs +9 -1
  51. data/sig/openai/resources/audio/voices.rbs +5 -0
  52. metadata +19 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54cd64155cb1af2bb57a7c61bc15355979a7c0d9e50951ce7e893911fcfe473b
4
- data.tar.gz: 29101b3385b4be69545f1bd5516c90329c34d1e6f0bf303f28b5ea379b36fde8
3
+ metadata.gz: 5c3a397f39a65a401262afe470818b903373e6f5ce1d23cc525d594e60230c99
4
+ data.tar.gz: b1e4d78ffe270f88e1f4867df5560c4979e13a6a9f7a208fe26d46b5b6150ffa
5
5
  SHA512:
6
- metadata.gz: b3d15cf0ee35ec3f58df82ea2f7249b62e63c02c1ee5351d0d6e95f50d1929c707a458225ee71e8568f816149a7c8346788286b22ba9ec38faeb42d3e511746c
7
- data.tar.gz: b0e8720cecf2f4f600f7ac05226a8cbbba2eae974a81e0312b9d8ac88bef0bc7e4883a591ec2ac0fa2e9b30de13a79607a23b4a904f03f945fc10a79bb4a3913
6
+ metadata.gz: df7fcc802346afe0280fb0554e394ce27979725a8ed91dc8d49fa070c0fa4db0f5ff29e4d18ba8c880ce955b6bbd53c43232551dd3e3533724a4066d705e75a4
7
+ data.tar.gz: 0107cb35d2a615a182bea31a4f58fd191412966f92189521fbae596ff75bf485d998556ad2e6d801ba0456d9a01b74859ceffd2eee96ec8fbc1eb27c50d40a76
data/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.111.0](https://github.com/openai/openai-ruby/compare/v0.110.0...v0.111.0) (2026-10-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api: Breaking change in a minor release.** A Live response question’s `instructions` can now be a string or an array of text, image, or JSON parts. Code like `question.instructions.strip` will fail if it receives an array. Check `question.instructions.is_a?(String)` and handle the array case. Decisions request inputs can also contain new message roles and tool-history items, so update code that assumes it knows every input type. Replace `OpenAI::DecisionInputMessage.new(content: ...)` with `OpenAI::DecisionInputMessage::User.new(content: ...)` for user-message inputs. Existing string instructions still work. ([#959](https://github.com/openai/openai-ruby/issues/959)) ([ff91bf6](https://github.com/openai/openai-ruby/commit/ff91bf63d2c8a565b155d554c70f45a0fb6efc1f))
9
+
10
+
11
+ ### Chores
12
+
13
+ * **deps:** bump ruby/setup-ruby from 1.331.0 to 1.332.0 ([#958](https://github.com/openai/openai-ruby/issues/958)) ([38170d0](https://github.com/openai/openai-ruby/commit/38170d06553453c0223e317dd4eb0579bc22223f))
14
+
15
+ ## [0.110.0](https://github.com/openai/openai-ruby/compare/v0.109.0...v0.110.0) (2026-10-22)
16
+
17
+
18
+ ### Features
19
+
20
+ * **api:** add voice deletion ([#954](https://github.com/openai/openai-ruby/issues/954)) ([a6257f2](https://github.com/openai/openai-ruby/commit/a6257f2737b1b98d6bda684a4fed8e2726052a3a))
21
+
22
+
23
+ ### Chores
24
+
25
+ * **api:** clarify service-account API key deletion ([#956](https://github.com/openai/openai-ruby/issues/956)) ([fac910a](https://github.com/openai/openai-ruby/commit/fac910a671e53a7c5499e1cb323dffe23c9e247d))
26
+
3
27
  ## [0.109.0](https://github.com/openai/openai-ruby/compare/v0.108.0...v0.109.0) (2026-10-21)
4
28
 
5
29
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "openai", "~> 0.109.0"
18
+ gem "openai", "~> 0.111.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OpenAI
4
+ module Models
5
+ module Audio
6
+ # @see OpenAI::Resources::Audio::Voices#delete
7
+ class VoiceDeleteParams < OpenAI::Internal::Type::BaseModel
8
+ extend OpenAI::Internal::Type::RequestParameters::Converter
9
+ include OpenAI::Internal::Type::RequestParameters
10
+
11
+ # @!attribute voice_id
12
+ #
13
+ # @return [String]
14
+ required :voice_id, String
15
+
16
+ # @!method initialize(voice_id:, request_options: {})
17
+ # @param voice_id [String]
18
+ # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OpenAI
4
+ module Models
5
+ module Audio
6
+ # @see OpenAI::Resources::Audio::Voices#delete
7
+ class VoiceDeleted < OpenAI::Internal::Type::BaseModel
8
+ # @!attribute id
9
+ # The voice identifier.
10
+ #
11
+ # @return [String]
12
+ required :id, String
13
+
14
+ # @!attribute deleted
15
+ # Whether the voice was deleted.
16
+ #
17
+ # @return [Boolean]
18
+ required :deleted, OpenAI::Internal::Type::Boolean
19
+
20
+ # @!attribute object
21
+ # The object type, which is always `audio.voice.deleted`.
22
+ #
23
+ # @return [Symbol, :"audio.voice.deleted"]
24
+ required :object, const: :"audio.voice.deleted"
25
+
26
+ # @!method initialize(id:, deleted:, object: :"audio.voice.deleted")
27
+ # @param id [String]
28
+ # The voice identifier.
29
+ #
30
+ # @param deleted [Boolean]
31
+ # Whether the voice was deleted.
32
+ #
33
+ # @param object [Symbol, :"audio.voice.deleted"]
34
+ # The object type, which is always `audio.voice.deleted`.
35
+ end
36
+ end
37
+ end
38
+ end