openai 0.86.0 → 0.88.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 (1248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +10 -1
  4. data/examples/audio/record_and_play.rb +19 -0
  5. data/examples/responses/websocket_workflows.rb +159 -0
  6. data/lib/openai/helpers/local_audio/errors.rb +27 -0
  7. data/lib/openai/helpers/local_audio/process.rb +158 -0
  8. data/lib/openai/helpers/local_audio.rb +157 -0
  9. data/lib/openai/helpers/realtime/connection.rb +20 -2
  10. data/lib/openai/helpers/realtime/errors.rb +18 -0
  11. data/lib/openai/helpers/realtime/recovery.rb +489 -0
  12. data/lib/openai/helpers/realtime/resources/realtime_extension.rb +26 -1
  13. data/lib/openai/helpers/realtime.rb +1 -0
  14. data/lib/openai/models/admin/organization/admin_api_key.rb +26 -13
  15. data/lib/openai/models/admin/organization/admin_api_key_create_params.rb +3 -4
  16. data/lib/openai/models/admin/organization/admin_api_key_create_response.rb +16 -8
  17. data/lib/openai/models/admin/organization/admin_api_key_delete_params.rb +2 -1
  18. data/lib/openai/models/admin/organization/admin_api_key_list_params.rb +6 -3
  19. data/lib/openai/models/admin/organization/admin_api_key_retrieve_params.rb +2 -1
  20. data/lib/openai/models/admin/organization/audit_log_list_params.rb +47 -22
  21. data/lib/openai/models/admin/organization/audit_log_list_response.rb +486 -254
  22. data/lib/openai/models/admin/organization/certificate.rb +24 -11
  23. data/lib/openai/models/admin/organization/certificate_activate_response.rb +14 -7
  24. data/lib/openai/models/admin/organization/certificate_create_params.rb +4 -2
  25. data/lib/openai/models/admin/organization/certificate_deactivate_response.rb +14 -7
  26. data/lib/openai/models/admin/organization/certificate_delete_response.rb +4 -2
  27. data/lib/openai/models/admin/organization/certificate_list_params.rb +11 -6
  28. data/lib/openai/models/admin/organization/certificate_list_response.rb +14 -7
  29. data/lib/openai/models/admin/organization/certificate_retrieve_params.rb +3 -5
  30. data/lib/openai/models/admin/organization/certificate_update_params.rb +2 -1
  31. data/lib/openai/models/admin/organization/data_retention_update_params.rb +2 -1
  32. data/lib/openai/models/admin/organization/group.rb +11 -8
  33. data/lib/openai/models/admin/organization/group_create_params.rb +2 -1
  34. data/lib/openai/models/admin/organization/group_delete_response.rb +6 -3
  35. data/lib/openai/models/admin/organization/group_list_params.rb +10 -6
  36. data/lib/openai/models/admin/organization/group_update_params.rb +2 -1
  37. data/lib/openai/models/admin/organization/group_update_response.rb +9 -7
  38. data/lib/openai/models/admin/organization/groups/organization_group_user.rb +6 -3
  39. data/lib/openai/models/admin/organization/groups/role_create_params.rb +2 -1
  40. data/lib/openai/models/admin/organization/groups/role_create_response.rb +16 -8
  41. data/lib/openai/models/admin/organization/groups/role_delete_response.rb +5 -6
  42. data/lib/openai/models/admin/organization/groups/role_list_params.rb +7 -6
  43. data/lib/openai/models/admin/organization/groups/role_list_response.rb +24 -13
  44. data/lib/openai/models/admin/organization/groups/role_retrieve_response.rb +24 -13
  45. data/lib/openai/models/admin/organization/groups/user_create_params.rb +2 -1
  46. data/lib/openai/models/admin/organization/groups/user_create_response.rb +6 -3
  47. data/lib/openai/models/admin/organization/groups/user_delete_response.rb +4 -2
  48. data/lib/openai/models/admin/organization/groups/user_list_params.rb +8 -6
  49. data/lib/openai/models/admin/organization/groups/user_retrieve_response.rb +12 -6
  50. data/lib/openai/models/admin/organization/invite.rb +22 -12
  51. data/lib/openai/models/admin/organization/invite_create_params.rb +13 -8
  52. data/lib/openai/models/admin/organization/invite_delete_response.rb +2 -1
  53. data/lib/openai/models/admin/organization/invite_list_params.rb +8 -5
  54. data/lib/openai/models/admin/organization/organization_data_retention.rb +4 -2
  55. data/lib/openai/models/admin/organization/organization_spend_alert.rb +18 -9
  56. data/lib/openai/models/admin/organization/organization_spend_alert_deleted.rb +6 -3
  57. data/lib/openai/models/admin/organization/organization_spend_limit.rb +13 -9
  58. data/lib/openai/models/admin/organization/organization_spend_limit_deleted.rb +4 -2
  59. data/lib/openai/models/admin/organization/organization_user.rb +32 -16
  60. data/lib/openai/models/admin/organization/project.rb +16 -8
  61. data/lib/openai/models/admin/organization/project_create_params.rb +18 -9
  62. data/lib/openai/models/admin/organization/project_list_params.rb +11 -6
  63. data/lib/openai/models/admin/organization/project_update_params.rb +7 -6
  64. data/lib/openai/models/admin/organization/projects/api_key_list_params.rb +14 -7
  65. data/lib/openai/models/admin/organization/projects/certificate_activate_response.rb +14 -7
  66. data/lib/openai/models/admin/organization/projects/certificate_deactivate_response.rb +14 -7
  67. data/lib/openai/models/admin/organization/projects/certificate_list_params.rb +11 -7
  68. data/lib/openai/models/admin/organization/projects/certificate_list_response.rb +14 -7
  69. data/lib/openai/models/admin/organization/projects/data_retention_update_params.rb +2 -1
  70. data/lib/openai/models/admin/organization/projects/group_create_params.rb +4 -2
  71. data/lib/openai/models/admin/organization/projects/group_delete_response.rb +4 -2
  72. data/lib/openai/models/admin/organization/projects/group_list_params.rb +7 -7
  73. data/lib/openai/models/admin/organization/projects/group_retrieve_params.rb +2 -1
  74. data/lib/openai/models/admin/organization/projects/groups/role_create_params.rb +2 -1
  75. data/lib/openai/models/admin/organization/projects/groups/role_create_response.rb +16 -8
  76. data/lib/openai/models/admin/organization/projects/groups/role_delete_response.rb +5 -6
  77. data/lib/openai/models/admin/organization/projects/groups/role_list_params.rb +7 -7
  78. data/lib/openai/models/admin/organization/projects/groups/role_list_response.rb +24 -13
  79. data/lib/openai/models/admin/organization/projects/groups/role_retrieve_response.rb +24 -13
  80. data/lib/openai/models/admin/organization/projects/hosted_tool_permission_update_params.rb +20 -10
  81. data/lib/openai/models/admin/organization/projects/model_permission_update_params.rb +4 -2
  82. data/lib/openai/models/admin/organization/projects/project_api_key.rb +50 -20
  83. data/lib/openai/models/admin/organization/projects/project_data_retention.rb +4 -2
  84. data/lib/openai/models/admin/organization/projects/project_group.rb +12 -6
  85. data/lib/openai/models/admin/organization/projects/project_hosted_tool_permissions.rb +20 -10
  86. data/lib/openai/models/admin/organization/projects/project_model_permissions.rb +6 -3
  87. data/lib/openai/models/admin/organization/projects/project_model_permissions_deleted.rb +4 -2
  88. data/lib/openai/models/admin/organization/projects/project_rate_limit.rb +18 -9
  89. data/lib/openai/models/admin/organization/projects/project_service_account.rb +10 -5
  90. data/lib/openai/models/admin/organization/projects/project_spend_alert.rb +18 -9
  91. data/lib/openai/models/admin/organization/projects/project_spend_alert_deleted.rb +6 -3
  92. data/lib/openai/models/admin/organization/projects/project_spend_limit.rb +13 -10
  93. data/lib/openai/models/admin/organization/projects/project_spend_limit_deleted.rb +4 -2
  94. data/lib/openai/models/admin/organization/projects/project_user.rb +12 -6
  95. data/lib/openai/models/admin/organization/projects/rate_limit_list_rate_limits_params.rb +12 -7
  96. data/lib/openai/models/admin/organization/projects/rate_limit_update_rate_limit_params.rb +12 -6
  97. data/lib/openai/models/admin/organization/projects/role_create_params.rb +6 -3
  98. data/lib/openai/models/admin/organization/projects/role_delete_response.rb +6 -3
  99. data/lib/openai/models/admin/organization/projects/role_list_params.rb +7 -7
  100. data/lib/openai/models/admin/organization/projects/role_update_params.rb +6 -3
  101. data/lib/openai/models/admin/organization/projects/service_account_create_params.rb +22 -3
  102. data/lib/openai/models/admin/organization/projects/service_account_create_response.rb +17 -7
  103. data/lib/openai/models/admin/organization/projects/service_account_list_params.rb +8 -6
  104. data/lib/openai/models/admin/organization/projects/service_account_update_params.rb +4 -2
  105. data/lib/openai/models/admin/organization/projects/service_accounts/api_key_create_params.rb +10 -5
  106. data/lib/openai/models/admin/organization/projects/service_accounts/api_key_create_response.rb +13 -10
  107. data/lib/openai/models/admin/organization/projects/spend_alert_create_params.rb +14 -7
  108. data/lib/openai/models/admin/organization/projects/spend_alert_list_params.rb +10 -8
  109. data/lib/openai/models/admin/organization/projects/spend_alert_update_params.rb +14 -7
  110. data/lib/openai/models/admin/organization/projects/spend_limit_update_params.rb +7 -7
  111. data/lib/openai/models/admin/organization/projects/user_create_params.rb +6 -3
  112. data/lib/openai/models/admin/organization/projects/user_list_params.rb +8 -6
  113. data/lib/openai/models/admin/organization/projects/user_update_params.rb +2 -1
  114. data/lib/openai/models/admin/organization/projects/users/role_create_params.rb +2 -1
  115. data/lib/openai/models/admin/organization/projects/users/role_create_response.rb +6 -3
  116. data/lib/openai/models/admin/organization/projects/users/role_delete_response.rb +5 -6
  117. data/lib/openai/models/admin/organization/projects/users/role_list_params.rb +7 -7
  118. data/lib/openai/models/admin/organization/projects/users/role_list_response.rb +24 -13
  119. data/lib/openai/models/admin/organization/projects/users/role_retrieve_response.rb +24 -13
  120. data/lib/openai/models/admin/organization/role.rb +15 -10
  121. data/lib/openai/models/admin/organization/role_create_params.rb +6 -3
  122. data/lib/openai/models/admin/organization/role_delete_response.rb +6 -3
  123. data/lib/openai/models/admin/organization/role_list_params.rb +7 -6
  124. data/lib/openai/models/admin/organization/role_update_params.rb +6 -3
  125. data/lib/openai/models/admin/organization/spend_alert_create_params.rb +14 -7
  126. data/lib/openai/models/admin/organization/spend_alert_list_params.rb +10 -7
  127. data/lib/openai/models/admin/organization/spend_alert_update_params.rb +14 -7
  128. data/lib/openai/models/admin/organization/spend_limit_update_params.rb +7 -6
  129. data/lib/openai/models/admin/organization/usage_audio_speeches_params.rb +26 -13
  130. data/lib/openai/models/admin/organization/usage_audio_speeches_response.rb +205 -121
  131. data/lib/openai/models/admin/organization/usage_audio_transcriptions_params.rb +26 -13
  132. data/lib/openai/models/admin/organization/usage_audio_transcriptions_response.rb +205 -121
  133. data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_params.rb +20 -10
  134. data/lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb +205 -121
  135. data/lib/openai/models/admin/organization/usage_completions_params.rb +30 -13
  136. data/lib/openai/models/admin/organization/usage_completions_response.rb +205 -121
  137. data/lib/openai/models/admin/organization/usage_costs_params.rb +23 -12
  138. data/lib/openai/models/admin/organization/usage_costs_response.rb +205 -121
  139. data/lib/openai/models/admin/organization/usage_embeddings_params.rb +26 -12
  140. data/lib/openai/models/admin/organization/usage_embeddings_response.rb +205 -121
  141. data/lib/openai/models/admin/organization/usage_file_search_calls_params.rb +27 -13
  142. data/lib/openai/models/admin/organization/usage_file_search_calls_response.rb +205 -121
  143. data/lib/openai/models/admin/organization/usage_images_params.rb +33 -14
  144. data/lib/openai/models/admin/organization/usage_images_response.rb +205 -121
  145. data/lib/openai/models/admin/organization/usage_moderations_params.rb +26 -12
  146. data/lib/openai/models/admin/organization/usage_moderations_response.rb +205 -121
  147. data/lib/openai/models/admin/organization/usage_vector_stores_params.rb +20 -9
  148. data/lib/openai/models/admin/organization/usage_vector_stores_response.rb +205 -121
  149. data/lib/openai/models/admin/organization/usage_web_search_calls_params.rb +29 -14
  150. data/lib/openai/models/admin/organization/usage_web_search_calls_response.rb +205 -121
  151. data/lib/openai/models/admin/organization/user_list_params.rb +10 -6
  152. data/lib/openai/models/admin/organization/user_update_params.rb +8 -4
  153. data/lib/openai/models/admin/organization/users/role_create_params.rb +2 -1
  154. data/lib/openai/models/admin/organization/users/role_create_response.rb +6 -3
  155. data/lib/openai/models/admin/organization/users/role_delete_response.rb +5 -6
  156. data/lib/openai/models/admin/organization/users/role_list_params.rb +7 -6
  157. data/lib/openai/models/admin/organization/users/role_list_response.rb +24 -13
  158. data/lib/openai/models/admin/organization/users/role_retrieve_response.rb +24 -13
  159. data/lib/openai/models/audio/speech_create_params.rb +34 -16
  160. data/lib/openai/models/audio/transcription.rb +35 -20
  161. data/lib/openai/models/audio/transcription_create_params.rb +86 -24
  162. data/lib/openai/models/audio/transcription_diarized.rb +28 -14
  163. data/lib/openai/models/audio/transcription_diarized_segment.rb +14 -9
  164. data/lib/openai/models/audio/transcription_language.rb +2 -1
  165. data/lib/openai/models/audio/transcription_segment.rb +23 -13
  166. data/lib/openai/models/audio/transcription_stream_event.rb +4 -4
  167. data/lib/openai/models/audio/transcription_text_delta_event.rb +19 -16
  168. data/lib/openai/models/audio/transcription_text_done_event.rb +36 -24
  169. data/lib/openai/models/audio/transcription_text_segment_event.rb +13 -7
  170. data/lib/openai/models/audio/transcription_verbose.rb +16 -8
  171. data/lib/openai/models/audio/transcription_word.rb +6 -3
  172. data/lib/openai/models/audio/translation_create_params.rb +26 -8
  173. data/lib/openai/models/audio/translation_verbose.rb +8 -4
  174. data/lib/openai/models/auto_file_chunking_strategy_param.rb +2 -1
  175. data/lib/openai/models/batch.rb +55 -26
  176. data/lib/openai/models/batch_create_params.rb +40 -14
  177. data/lib/openai/models/batch_error.rb +8 -4
  178. data/lib/openai/models/batch_list_params.rb +8 -5
  179. data/lib/openai/models/batch_request_counts.rb +6 -3
  180. data/lib/openai/models/batch_usage.rb +16 -11
  181. data/lib/openai/models/beta/assistant.rb +99 -49
  182. data/lib/openai/models/beta/assistant_create_params.rb +127 -61
  183. data/lib/openai/models/beta/assistant_list_params.rb +16 -7
  184. data/lib/openai/models/beta/assistant_response_format_option.rb +5 -5
  185. data/lib/openai/models/beta/assistant_stream_event.rb +137 -185
  186. data/lib/openai/models/beta/assistant_tool_choice.rb +2 -1
  187. data/lib/openai/models/beta/assistant_tool_choice_function.rb +2 -1
  188. data/lib/openai/models/beta/assistant_update_params.rb +94 -41
  189. data/lib/openai/models/beta/beta_apply_patch_tool.rb +4 -3
  190. data/lib/openai/models/beta/beta_compacted_response.rb +12 -8
  191. data/lib/openai/models/beta/beta_computer_action.rb +78 -58
  192. data/lib/openai/models/beta/beta_computer_tool.rb +3 -2
  193. data/lib/openai/models/beta/beta_computer_use_preview_tool.rb +9 -5
  194. data/lib/openai/models/beta/beta_container_auto.rb +10 -5
  195. data/lib/openai/models/beta/beta_container_network_policy_allowlist.rb +6 -3
  196. data/lib/openai/models/beta/beta_container_network_policy_disabled.rb +2 -1
  197. data/lib/openai/models/beta/beta_container_network_policy_domain_secret.rb +6 -3
  198. data/lib/openai/models/beta/beta_container_reference.rb +4 -2
  199. data/lib/openai/models/beta/beta_custom_tool.rb +24 -16
  200. data/lib/openai/models/beta/beta_easy_input_message.rb +13 -7
  201. data/lib/openai/models/beta/beta_file_search_tool.rb +64 -37
  202. data/lib/openai/models/beta/beta_function_shell_tool.rb +4 -3
  203. data/lib/openai/models/beta/beta_function_tool.rb +19 -13
  204. data/lib/openai/models/beta/beta_inline_skill.rb +8 -4
  205. data/lib/openai/models/beta/beta_inline_skill_source.rb +6 -3
  206. data/lib/openai/models/beta/beta_local_environment.rb +4 -2
  207. data/lib/openai/models/beta/beta_local_skill.rb +6 -3
  208. data/lib/openai/models/beta/beta_namespace_tool.rb +23 -13
  209. data/lib/openai/models/beta/beta_response.rb +372 -165
  210. data/lib/openai/models/beta/beta_response_apply_patch_tool_call.rb +38 -21
  211. data/lib/openai/models/beta/beta_response_apply_patch_tool_call_output.rb +21 -13
  212. data/lib/openai/models/beta/beta_response_audio_delta_event.rb +10 -8
  213. data/lib/openai/models/beta/beta_response_audio_done_event.rb +8 -7
  214. data/lib/openai/models/beta/beta_response_audio_transcript_delta_event.rb +10 -8
  215. data/lib/openai/models/beta/beta_response_audio_transcript_done_event.rb +8 -7
  216. data/lib/openai/models/beta/beta_response_code_interpreter_call_code_delta_event.rb +15 -11
  217. data/lib/openai/models/beta/beta_response_code_interpreter_call_code_done_event.rb +14 -7
  218. data/lib/openai/models/beta/beta_response_code_interpreter_call_completed_event.rb +13 -10
  219. data/lib/openai/models/beta/beta_response_code_interpreter_call_in_progress_event.rb +13 -10
  220. data/lib/openai/models/beta/beta_response_code_interpreter_call_interpreting_event.rb +13 -10
  221. data/lib/openai/models/beta/beta_response_code_interpreter_tool_call.rb +26 -15
  222. data/lib/openai/models/beta/beta_response_compaction_item.rb +13 -7
  223. data/lib/openai/models/beta/beta_response_compaction_item_param.rb +11 -6
  224. data/lib/openai/models/beta/beta_response_completed_event.rb +10 -8
  225. data/lib/openai/models/beta/beta_response_computer_tool_call.rb +27 -17
  226. data/lib/openai/models/beta/beta_response_computer_tool_call_output_item.rb +26 -15
  227. data/lib/openai/models/beta/beta_response_computer_tool_call_output_screenshot.rb +7 -7
  228. data/lib/openai/models/beta/beta_response_configuration_update_item.rb +13 -10
  229. data/lib/openai/models/beta/beta_response_configuration_update_item_param.rb +13 -10
  230. data/lib/openai/models/beta/beta_response_container_reference.rb +2 -1
  231. data/lib/openai/models/beta/beta_response_content.rb +5 -3
  232. data/lib/openai/models/beta/beta_response_content_part_added_event.rb +20 -13
  233. data/lib/openai/models/beta/beta_response_content_part_done_event.rb +20 -13
  234. data/lib/openai/models/beta/beta_response_conversation_param.rb +2 -1
  235. data/lib/openai/models/beta/beta_response_created_event.rb +10 -8
  236. data/lib/openai/models/beta/beta_response_custom_tool_call.rb +22 -14
  237. data/lib/openai/models/beta/beta_response_custom_tool_call_input_delta_event.rb +14 -7
  238. data/lib/openai/models/beta/beta_response_custom_tool_call_input_done_event.rb +14 -7
  239. data/lib/openai/models/beta/beta_response_custom_tool_call_item.rb +23 -14
  240. data/lib/openai/models/beta/beta_response_custom_tool_call_output.rb +22 -14
  241. data/lib/openai/models/beta/beta_response_custom_tool_call_output_item.rb +18 -11
  242. data/lib/openai/models/beta/beta_response_error.rb +12 -9
  243. data/lib/openai/models/beta/beta_response_error_event.rb +14 -10
  244. data/lib/openai/models/beta/beta_response_failed_event.rb +10 -8
  245. data/lib/openai/models/beta/beta_response_file_search_call_completed_event.rb +12 -10
  246. data/lib/openai/models/beta/beta_response_file_search_call_in_progress_event.rb +12 -10
  247. data/lib/openai/models/beta/beta_response_file_search_call_searching_event.rb +12 -10
  248. data/lib/openai/models/beta/beta_response_file_search_tool_call.rb +30 -20
  249. data/lib/openai/models/beta/beta_response_format_text_config.rb +6 -4
  250. data/lib/openai/models/beta/beta_response_format_text_json_schema_config.rb +19 -10
  251. data/lib/openai/models/beta/beta_response_function_call_arguments_delta_event.rb +14 -11
  252. data/lib/openai/models/beta/beta_response_function_call_arguments_done_event.rb +12 -6
  253. data/lib/openai/models/beta/beta_response_function_call_output_item.rb +1 -1
  254. data/lib/openai/models/beta/beta_response_function_shell_call_output_content.rb +12 -6
  255. data/lib/openai/models/beta/beta_response_function_shell_tool_call.rb +28 -16
  256. data/lib/openai/models/beta/beta_response_function_shell_tool_call_output.rb +40 -27
  257. data/lib/openai/models/beta/beta_response_function_tool_call.rb +26 -16
  258. data/lib/openai/models/beta/beta_response_function_tool_call_item.rb +24 -15
  259. data/lib/openai/models/beta/beta_response_function_tool_call_output_item.rb +31 -18
  260. data/lib/openai/models/beta/beta_response_function_web_search.rb +37 -39
  261. data/lib/openai/models/beta/beta_response_image_gen_call_completed_event.rb +12 -6
  262. data/lib/openai/models/beta/beta_response_image_gen_call_generating_event.rb +12 -6
  263. data/lib/openai/models/beta/beta_response_image_gen_call_in_progress_event.rb +12 -6
  264. data/lib/openai/models/beta/beta_response_image_gen_call_partial_image_event.rb +25 -16
  265. data/lib/openai/models/beta/beta_response_in_progress_event.rb +10 -8
  266. data/lib/openai/models/beta/beta_response_incomplete_event.rb +10 -8
  267. data/lib/openai/models/beta/beta_response_inject_created_event.rb +9 -7
  268. data/lib/openai/models/beta/beta_response_inject_event.rb +6 -3
  269. data/lib/openai/models/beta/beta_response_inject_failed_event.rb +17 -11
  270. data/lib/openai/models/beta/beta_response_input_audio.rb +6 -9
  271. data/lib/openai/models/beta/beta_response_input_content.rb +1 -1
  272. data/lib/openai/models/beta/beta_response_input_file.rb +22 -11
  273. data/lib/openai/models/beta/beta_response_input_file_content.rb +22 -11
  274. data/lib/openai/models/beta/beta_response_input_image.rb +17 -10
  275. data/lib/openai/models/beta/beta_response_input_image_content.rb +17 -10
  276. data/lib/openai/models/beta/beta_response_input_item.rb +560 -291
  277. data/lib/openai/models/beta/beta_response_input_message_item.rb +16 -10
  278. data/lib/openai/models/beta/beta_response_input_text.rb +10 -7
  279. data/lib/openai/models/beta/beta_response_input_text_content.rb +10 -7
  280. data/lib/openai/models/beta/beta_response_item.rb +316 -150
  281. data/lib/openai/models/beta/beta_response_local_environment.rb +2 -1
  282. data/lib/openai/models/beta/beta_response_mcp_call_arguments_delta_event.rb +15 -10
  283. data/lib/openai/models/beta/beta_response_mcp_call_arguments_done_event.rb +14 -10
  284. data/lib/openai/models/beta/beta_response_mcp_call_completed_event.rb +12 -6
  285. data/lib/openai/models/beta/beta_response_mcp_call_failed_event.rb +12 -6
  286. data/lib/openai/models/beta/beta_response_mcp_call_in_progress_event.rb +12 -6
  287. data/lib/openai/models/beta/beta_response_mcp_list_tools_completed_event.rb +12 -6
  288. data/lib/openai/models/beta/beta_response_mcp_list_tools_failed_event.rb +12 -6
  289. data/lib/openai/models/beta/beta_response_mcp_list_tools_in_progress_event.rb +12 -6
  290. data/lib/openai/models/beta/beta_response_output_audio.rb +6 -6
  291. data/lib/openai/models/beta/beta_response_output_item.rb +328 -155
  292. data/lib/openai/models/beta/beta_response_output_item_added_event.rb +15 -9
  293. data/lib/openai/models/beta/beta_response_output_item_done_event.rb +12 -9
  294. data/lib/openai/models/beta/beta_response_output_message.rb +20 -11
  295. data/lib/openai/models/beta/beta_response_output_refusal.rb +4 -2
  296. data/lib/openai/models/beta/beta_response_output_text.rb +42 -25
  297. data/lib/openai/models/beta/beta_response_output_text_annotation_added_event.rb +54 -31
  298. data/lib/openai/models/beta/beta_response_prompt.rb +10 -8
  299. data/lib/openai/models/beta/beta_response_queued_event.rb +10 -5
  300. data/lib/openai/models/beta/beta_response_reasoning_item.rb +33 -17
  301. data/lib/openai/models/beta/beta_response_reasoning_summary_part_added_event.rb +20 -14
  302. data/lib/openai/models/beta/beta_response_reasoning_summary_part_done_event.rb +23 -15
  303. data/lib/openai/models/beta/beta_response_reasoning_summary_text_delta_event.rb +16 -12
  304. data/lib/openai/models/beta/beta_response_reasoning_summary_text_done_event.rb +16 -12
  305. data/lib/openai/models/beta/beta_response_reasoning_text_delta_event.rb +16 -11
  306. data/lib/openai/models/beta/beta_response_reasoning_text_done_event.rb +16 -11
  307. data/lib/openai/models/beta/beta_response_refusal_delta_event.rb +16 -11
  308. data/lib/openai/models/beta/beta_response_refusal_done_event.rb +16 -11
  309. data/lib/openai/models/beta/beta_response_shell_call_command_added_event.rb +14 -7
  310. data/lib/openai/models/beta/beta_response_shell_call_command_delta_event.rb +16 -8
  311. data/lib/openai/models/beta/beta_response_shell_call_command_done_event.rb +14 -7
  312. data/lib/openai/models/beta/beta_response_shell_call_output_content_delta_event.rb +20 -10
  313. data/lib/openai/models/beta/beta_response_shell_call_output_content_done_event.rb +31 -20
  314. data/lib/openai/models/beta/beta_response_steer_accepted_event.rb +13 -9
  315. data/lib/openai/models/beta/beta_response_steer_event.rb +14 -6
  316. data/lib/openai/models/beta/beta_response_steer_failed_event.rb +45 -22
  317. data/lib/openai/models/beta/beta_response_steer_input.rb +42 -24
  318. data/lib/openai/models/beta/beta_response_steer_input_content.rb +1 -1
  319. data/lib/openai/models/beta/beta_response_steer_pending_event.rb +24 -11
  320. data/lib/openai/models/beta/beta_response_text_config.rb +22 -8
  321. data/lib/openai/models/beta/beta_response_text_delta_event.rb +28 -22
  322. data/lib/openai/models/beta/beta_response_text_done_event.rb +28 -22
  323. data/lib/openai/models/beta/beta_response_tool_search_call.rb +18 -9
  324. data/lib/openai/models/beta/beta_response_tool_search_output_item.rb +18 -9
  325. data/lib/openai/models/beta/beta_response_tool_search_output_item_param.rb +16 -8
  326. data/lib/openai/models/beta/beta_response_usage.rb +18 -12
  327. data/lib/openai/models/beta/beta_response_web_search_call_completed_event.rb +12 -10
  328. data/lib/openai/models/beta/beta_response_web_search_call_in_progress_event.rb +12 -10
  329. data/lib/openai/models/beta/beta_response_web_search_call_searching_event.rb +12 -10
  330. data/lib/openai/models/beta/beta_responses_client_event.rb +401 -162
  331. data/lib/openai/models/beta/beta_responses_server_event.rb +862 -629
  332. data/lib/openai/models/beta/beta_skill_reference.rb +6 -3
  333. data/lib/openai/models/beta/beta_tool.rb +236 -129
  334. data/lib/openai/models/beta/beta_tool_choice_allowed.rb +21 -6
  335. data/lib/openai/models/beta/beta_tool_choice_apply_patch.rb +2 -1
  336. data/lib/openai/models/beta/beta_tool_choice_custom.rb +4 -2
  337. data/lib/openai/models/beta/beta_tool_choice_function.rb +4 -2
  338. data/lib/openai/models/beta/beta_tool_choice_mcp.rb +6 -6
  339. data/lib/openai/models/beta/beta_tool_choice_shell.rb +2 -1
  340. data/lib/openai/models/beta/beta_tool_choice_types.rb +16 -7
  341. data/lib/openai/models/beta/beta_tool_search_tool.rb +8 -4
  342. data/lib/openai/models/beta/beta_web_search_preview_tool.rb +21 -15
  343. data/lib/openai/models/beta/beta_web_search_tool.rb +31 -21
  344. data/lib/openai/models/beta/chatkit/chat_session.rb +20 -10
  345. data/lib/openai/models/beta/chatkit/chat_session_automatic_thread_titling.rb +2 -1
  346. data/lib/openai/models/beta/chatkit/chat_session_chatkit_configuration.rb +6 -3
  347. data/lib/openai/models/beta/chatkit/chat_session_chatkit_configuration_param.rb +23 -21
  348. data/lib/openai/models/beta/chatkit/chat_session_expires_after_param.rb +4 -2
  349. data/lib/openai/models/beta/chatkit/chat_session_file_upload.rb +6 -3
  350. data/lib/openai/models/beta/chatkit/chat_session_history.rb +5 -5
  351. data/lib/openai/models/beta/chatkit/chat_session_rate_limits.rb +2 -1
  352. data/lib/openai/models/beta/chatkit/chat_session_rate_limits_param.rb +2 -1
  353. data/lib/openai/models/beta/chatkit/chat_session_workflow_param.rb +12 -9
  354. data/lib/openai/models/beta/chatkit/chatkit_attachment.rb +10 -5
  355. data/lib/openai/models/beta/chatkit/chatkit_response_output_text.rb +22 -11
  356. data/lib/openai/models/beta/chatkit/chatkit_thread.rb +23 -14
  357. data/lib/openai/models/beta/chatkit/chatkit_thread_assistant_message_item.rb +12 -6
  358. data/lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb +65 -41
  359. data/lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb +29 -18
  360. data/lib/openai/models/beta/chatkit/chatkit_widget_item.rb +12 -6
  361. data/lib/openai/models/beta/chatkit/session_create_params.rb +12 -8
  362. data/lib/openai/models/beta/chatkit/thread_delete_response.rb +6 -3
  363. data/lib/openai/models/beta/chatkit/thread_list_items_params.rb +10 -7
  364. data/lib/openai/models/beta/chatkit/thread_list_params.rb +13 -8
  365. data/lib/openai/models/beta/chatkit_workflow.rb +12 -9
  366. data/lib/openai/models/beta/code_interpreter_tool.rb +2 -1
  367. data/lib/openai/models/beta/file_search_tool.rb +29 -16
  368. data/lib/openai/models/beta/function_tool.rb +2 -1
  369. data/lib/openai/models/beta/message_stream_event.rb +32 -41
  370. data/lib/openai/models/beta/response_compact_params.rb +89 -46
  371. data/lib/openai/models/beta/response_create_params.rb +382 -149
  372. data/lib/openai/models/beta/response_retrieve_params.rb +12 -6
  373. data/lib/openai/models/beta/responses/beta_response_item_list.rb +10 -5
  374. data/lib/openai/models/beta/responses/input_item_list_params.rb +13 -7
  375. data/lib/openai/models/beta/responses/input_token_count_params.rb +113 -42
  376. data/lib/openai/models/beta/run_step_stream_event.rb +36 -57
  377. data/lib/openai/models/beta/run_stream_event.rb +61 -72
  378. data/lib/openai/models/beta/thread.rb +32 -21
  379. data/lib/openai/models/beta/thread_create_and_run_params.rb +232 -123
  380. data/lib/openai/models/beta/thread_create_params.rb +89 -52
  381. data/lib/openai/models/beta/thread_stream_event.rb +7 -7
  382. data/lib/openai/models/beta/thread_update_params.rb +25 -19
  383. data/lib/openai/models/beta/threads/file_citation_annotation.rb +6 -3
  384. data/lib/openai/models/beta/threads/file_citation_delta_annotation.rb +10 -5
  385. data/lib/openai/models/beta/threads/file_path_annotation.rb +6 -3
  386. data/lib/openai/models/beta/threads/file_path_delta_annotation.rb +8 -4
  387. data/lib/openai/models/beta/threads/image_file.rb +10 -8
  388. data/lib/openai/models/beta/threads/image_file_content_block.rb +5 -3
  389. data/lib/openai/models/beta/threads/image_file_delta.rb +10 -8
  390. data/lib/openai/models/beta/threads/image_file_delta_block.rb +7 -4
  391. data/lib/openai/models/beta/threads/image_url.rb +6 -5
  392. data/lib/openai/models/beta/threads/image_url_content_block.rb +2 -1
  393. data/lib/openai/models/beta/threads/image_url_delta.rb +6 -5
  394. data/lib/openai/models/beta/threads/image_url_delta_block.rb +4 -2
  395. data/lib/openai/models/beta/threads/message.rb +52 -28
  396. data/lib/openai/models/beta/threads/message_content.rb +4 -3
  397. data/lib/openai/models/beta/threads/message_content_delta.rb +4 -3
  398. data/lib/openai/models/beta/threads/message_content_part_param.rb +4 -3
  399. data/lib/openai/models/beta/threads/message_create_params.rb +25 -12
  400. data/lib/openai/models/beta/threads/message_delta.rb +4 -2
  401. data/lib/openai/models/beta/threads/message_delta_event.rb +6 -3
  402. data/lib/openai/models/beta/threads/message_list_params.rb +18 -8
  403. data/lib/openai/models/beta/threads/message_update_params.rb +7 -4
  404. data/lib/openai/models/beta/threads/refusal_content_block.rb +2 -1
  405. data/lib/openai/models/beta/threads/refusal_delta_block.rb +4 -2
  406. data/lib/openai/models/beta/threads/required_action_function_tool_call.rb +15 -10
  407. data/lib/openai/models/beta/threads/run.rb +174 -89
  408. data/lib/openai/models/beta/threads/run_create_params.rb +173 -74
  409. data/lib/openai/models/beta/threads/run_list_params.rb +16 -7
  410. data/lib/openai/models/beta/threads/run_submit_tool_outputs_params.rb +7 -7
  411. data/lib/openai/models/beta/threads/run_update_params.rb +7 -4
  412. data/lib/openai/models/beta/threads/runs/code_interpreter_logs.rb +6 -3
  413. data/lib/openai/models/beta/threads/runs/code_interpreter_output_image.rb +9 -9
  414. data/lib/openai/models/beta/threads/runs/code_interpreter_tool_call.rb +24 -22
  415. data/lib/openai/models/beta/threads/runs/code_interpreter_tool_call_delta.rb +15 -14
  416. data/lib/openai/models/beta/threads/runs/file_search_tool_call.rb +31 -25
  417. data/lib/openai/models/beta/threads/runs/file_search_tool_call_delta.rb +9 -7
  418. data/lib/openai/models/beta/threads/runs/function_tool_call.rb +15 -15
  419. data/lib/openai/models/beta/threads/runs/function_tool_call_delta.rb +17 -16
  420. data/lib/openai/models/beta/threads/runs/message_creation_step_details.rb +4 -2
  421. data/lib/openai/models/beta/threads/runs/run_step.rb +62 -29
  422. data/lib/openai/models/beta/threads/runs/run_step_delta.rb +2 -1
  423. data/lib/openai/models/beta/threads/runs/run_step_delta_event.rb +6 -3
  424. data/lib/openai/models/beta/threads/runs/run_step_delta_message_delta.rb +4 -2
  425. data/lib/openai/models/beta/threads/runs/step_list_params.rb +29 -13
  426. data/lib/openai/models/beta/threads/runs/step_retrieve_params.rb +9 -5
  427. data/lib/openai/models/beta/threads/runs/tool_call_delta_object.rb +6 -5
  428. data/lib/openai/models/beta/threads/runs/tool_calls_step_details.rb +6 -5
  429. data/lib/openai/models/beta/threads/text.rb +2 -1
  430. data/lib/openai/models/beta/threads/text_content_block.rb +2 -1
  431. data/lib/openai/models/beta/threads/text_content_block_param.rb +4 -2
  432. data/lib/openai/models/beta/threads/text_delta.rb +2 -1
  433. data/lib/openai/models/beta/threads/text_delta_block.rb +4 -2
  434. data/lib/openai/models/chat/chat_completion.rb +143 -75
  435. data/lib/openai/models/chat/chat_completion_allowed_tool_choice.rb +4 -5
  436. data/lib/openai/models/chat/chat_completion_allowed_tools.rb +18 -5
  437. data/lib/openai/models/chat/chat_completion_assistant_message_param.rb +31 -26
  438. data/lib/openai/models/chat/chat_completion_audio.rb +11 -8
  439. data/lib/openai/models/chat/chat_completion_audio_param.rb +11 -7
  440. data/lib/openai/models/chat/chat_completion_chunk.rb +174 -97
  441. data/lib/openai/models/chat/chat_completion_content_part.rb +22 -20
  442. data/lib/openai/models/chat/chat_completion_content_part_image.rb +17 -15
  443. data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +13 -13
  444. data/lib/openai/models/chat/chat_completion_content_part_refusal.rb +4 -2
  445. data/lib/openai/models/chat/chat_completion_content_part_text.rb +11 -9
  446. data/lib/openai/models/chat/chat_completion_custom_tool.rb +20 -16
  447. data/lib/openai/models/chat/chat_completion_deleted.rb +6 -3
  448. data/lib/openai/models/chat/chat_completion_developer_message_param.rb +7 -6
  449. data/lib/openai/models/chat/chat_completion_function_call_option.rb +2 -1
  450. data/lib/openai/models/chat/chat_completion_function_message_param.rb +6 -3
  451. data/lib/openai/models/chat/chat_completion_function_tool.rb +2 -1
  452. data/lib/openai/models/chat/chat_completion_message.rb +39 -24
  453. data/lib/openai/models/chat/chat_completion_message_custom_tool_call.rb +10 -5
  454. data/lib/openai/models/chat/chat_completion_message_function_tool_call.rb +13 -9
  455. data/lib/openai/models/chat/chat_completion_named_tool_choice.rb +4 -2
  456. data/lib/openai/models/chat/chat_completion_named_tool_choice_custom.rb +4 -2
  457. data/lib/openai/models/chat/chat_completion_prediction_content.rb +8 -6
  458. data/lib/openai/models/chat/chat_completion_store_message.rb +26 -16
  459. data/lib/openai/models/chat/chat_completion_stream_options.rb +15 -5
  460. data/lib/openai/models/chat/chat_completion_system_message_param.rb +7 -6
  461. data/lib/openai/models/chat/chat_completion_token_logprob.rb +25 -14
  462. data/lib/openai/models/chat/chat_completion_tool_message_param.rb +6 -3
  463. data/lib/openai/models/chat/chat_completion_user_message_param.rb +8 -7
  464. data/lib/openai/models/chat/completion_create_params.rb +388 -161
  465. data/lib/openai/models/chat/completion_list_params.rb +12 -7
  466. data/lib/openai/models/chat/completion_update_params.rb +7 -4
  467. data/lib/openai/models/chat/completions/message_list_params.rb +7 -6
  468. data/lib/openai/models/comparison_filter.rb +17 -6
  469. data/lib/openai/models/completion.rb +17 -10
  470. data/lib/openai/models/completion_choice.rb +5 -4
  471. data/lib/openai/models/completion_create_params.rb +124 -37
  472. data/lib/openai/models/completion_usage.rb +34 -18
  473. data/lib/openai/models/compound_filter.rb +5 -5
  474. data/lib/openai/models/container_create_params.rb +15 -10
  475. data/lib/openai/models/container_create_response.rb +28 -16
  476. data/lib/openai/models/container_list_params.rb +13 -7
  477. data/lib/openai/models/container_list_response.rb +28 -16
  478. data/lib/openai/models/container_retrieve_response.rb +28 -16
  479. data/lib/openai/models/containers/file_create_params.rb +8 -5
  480. data/lib/openai/models/containers/file_create_response.rb +14 -7
  481. data/lib/openai/models/containers/file_list_params.rb +11 -6
  482. data/lib/openai/models/containers/file_list_response.rb +14 -7
  483. data/lib/openai/models/containers/file_retrieve_response.rb +14 -7
  484. data/lib/openai/models/content_provenance_check.rb +44 -25
  485. data/lib/openai/models/content_provenance_check_create_params.rb +6 -1
  486. data/lib/openai/models/conversations/computer_screenshot_content.rb +16 -9
  487. data/lib/openai/models/conversations/conversation.rb +16 -10
  488. data/lib/openai/models/conversations/conversation_create_params.rb +9 -4
  489. data/lib/openai/models/conversations/conversation_item.rb +216 -100
  490. data/lib/openai/models/conversations/conversation_item_list.rb +10 -5
  491. data/lib/openai/models/conversations/conversation_update_params.rb +7 -4
  492. data/lib/openai/models/conversations/item_create_params.rb +7 -6
  493. data/lib/openai/models/conversations/item_list_params.rb +29 -7
  494. data/lib/openai/models/conversations/item_retrieve_params.rb +5 -5
  495. data/lib/openai/models/conversations/message.rb +22 -12
  496. data/lib/openai/models/conversations/summary_text_content.rb +4 -2
  497. data/lib/openai/models/create_embedding_response.rb +12 -6
  498. data/lib/openai/models/custom_tool_input_format.rb +8 -4
  499. data/lib/openai/models/embedding.rb +9 -7
  500. data/lib/openai/models/embedding_create_params.rb +36 -18
  501. data/lib/openai/models/error_object.rb +8 -4
  502. data/lib/openai/models/eval_create_params.rb +105 -74
  503. data/lib/openai/models/eval_create_response.rb +69 -42
  504. data/lib/openai/models/eval_custom_data_source_config.rb +5 -5
  505. data/lib/openai/models/eval_list_params.rb +10 -7
  506. data/lib/openai/models/eval_list_response.rb +69 -42
  507. data/lib/openai/models/eval_retrieve_response.rb +69 -42
  508. data/lib/openai/models/eval_stored_completions_data_source_config.rb +12 -6
  509. data/lib/openai/models/eval_update_params.rb +9 -5
  510. data/lib/openai/models/eval_update_response.rb +69 -42
  511. data/lib/openai/models/evals/create_eval_completions_run_data_source.rb +97 -64
  512. data/lib/openai/models/evals/create_eval_jsonl_run_data_source.rb +12 -7
  513. data/lib/openai/models/evals/eval_api_error.rb +4 -2
  514. data/lib/openai/models/evals/run_cancel_response.rb +204 -114
  515. data/lib/openai/models/evals/run_create_params.rb +156 -90
  516. data/lib/openai/models/evals/run_create_response.rb +204 -114
  517. data/lib/openai/models/evals/run_list_params.rb +10 -7
  518. data/lib/openai/models/evals/run_list_response.rb +204 -114
  519. data/lib/openai/models/evals/run_retrieve_response.rb +204 -114
  520. data/lib/openai/models/evals/runs/output_item_list_params.rb +10 -7
  521. data/lib/openai/models/evals/runs/output_item_list_response.rb +66 -38
  522. data/lib/openai/models/evals/runs/output_item_retrieve_response.rb +66 -39
  523. data/lib/openai/models/file_create_params.rb +23 -10
  524. data/lib/openai/models/file_list_params.rb +13 -7
  525. data/lib/openai/models/file_object.rb +22 -12
  526. data/lib/openai/models/fine_tuning/alpha/grader_run_params.rb +18 -10
  527. data/lib/openai/models/fine_tuning/alpha/grader_validate_params.rb +2 -1
  528. data/lib/openai/models/fine_tuning/alpha/grader_validate_response.rb +2 -1
  529. data/lib/openai/models/fine_tuning/checkpoints/permission_create_params.rb +2 -1
  530. data/lib/openai/models/fine_tuning/checkpoints/permission_create_response.rb +8 -4
  531. data/lib/openai/models/fine_tuning/checkpoints/permission_delete_response.rb +6 -3
  532. data/lib/openai/models/fine_tuning/checkpoints/permission_list_params.rb +8 -4
  533. data/lib/openai/models/fine_tuning/checkpoints/permission_list_response.rb +8 -4
  534. data/lib/openai/models/fine_tuning/checkpoints/permission_retrieve_params.rb +8 -4
  535. data/lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb +8 -4
  536. data/lib/openai/models/fine_tuning/dpo_hyperparameters.rb +12 -7
  537. data/lib/openai/models/fine_tuning/dpo_method.rb +2 -1
  538. data/lib/openai/models/fine_tuning/fine_tuning_job.rb +82 -41
  539. data/lib/openai/models/fine_tuning/fine_tuning_job_event.rb +14 -7
  540. data/lib/openai/models/fine_tuning/fine_tuning_job_wandb_integration.rb +13 -7
  541. data/lib/openai/models/fine_tuning/fine_tuning_job_wandb_integration_object.rb +7 -6
  542. data/lib/openai/models/fine_tuning/job_create_params.rb +107 -42
  543. data/lib/openai/models/fine_tuning/job_list_events_params.rb +4 -2
  544. data/lib/openai/models/fine_tuning/job_list_params.rb +7 -6
  545. data/lib/openai/models/fine_tuning/jobs/checkpoint_list_params.rb +4 -2
  546. data/lib/openai/models/fine_tuning/jobs/fine_tuning_job_checkpoint.rb +14 -7
  547. data/lib/openai/models/fine_tuning/reinforcement_hyperparameters.rb +17 -10
  548. data/lib/openai/models/fine_tuning/reinforcement_method.rb +4 -2
  549. data/lib/openai/models/fine_tuning/supervised_hyperparameters.rb +9 -6
  550. data/lib/openai/models/fine_tuning/supervised_method.rb +2 -1
  551. data/lib/openai/models/function_definition.rb +22 -9
  552. data/lib/openai/models/graders/grader_input_item.rb +11 -11
  553. data/lib/openai/models/graders/label_model_grader.rb +29 -25
  554. data/lib/openai/models/graders/multi_grader.rb +9 -7
  555. data/lib/openai/models/graders/python_grader.rb +8 -4
  556. data/lib/openai/models/graders/score_model_grader.rb +48 -38
  557. data/lib/openai/models/graders/string_check_grader.rb +10 -5
  558. data/lib/openai/models/graders/text_similarity_grader.rb +11 -8
  559. data/lib/openai/models/image.rb +10 -6
  560. data/lib/openai/models/image_create_variation_params.rb +23 -9
  561. data/lib/openai/models/image_edit_completed_event.rb +62 -27
  562. data/lib/openai/models/image_edit_params.rb +169 -72
  563. data/lib/openai/models/image_edit_partial_image_event.rb +49 -18
  564. data/lib/openai/models/image_gen_completed_event.rb +62 -27
  565. data/lib/openai/models/image_gen_partial_image_event.rb +49 -18
  566. data/lib/openai/models/image_generate_params.rb +141 -62
  567. data/lib/openai/models/image_input_reference_param.rb +2 -1
  568. data/lib/openai/models/image_model.rb +4 -0
  569. data/lib/openai/models/images_response.rb +69 -30
  570. data/lib/openai/models/model.rb +10 -5
  571. data/lib/openai/models/moderation.rb +115 -62
  572. data/lib/openai/models/moderation_create_params.rb +16 -13
  573. data/lib/openai/models/moderation_create_response.rb +6 -3
  574. data/lib/openai/models/moderation_image_url_input.rb +6 -3
  575. data/lib/openai/models/moderation_text_input.rb +4 -2
  576. data/lib/openai/models/other_file_chunking_strategy_object.rb +2 -1
  577. data/lib/openai/models/realtime/audio_transcription.rb +29 -10
  578. data/lib/openai/models/realtime/call_accept_params.rb +85 -30
  579. data/lib/openai/models/realtime/call_create_params.rb +4 -2
  580. data/lib/openai/models/realtime/call_refer_params.rb +3 -4
  581. data/lib/openai/models/realtime/call_reject_params.rb +3 -4
  582. data/lib/openai/models/realtime/client_secret_create_params.rb +16 -11
  583. data/lib/openai/models/realtime/client_secret_create_response.rb +6 -6
  584. data/lib/openai/models/realtime/conversation_created_event.rb +10 -5
  585. data/lib/openai/models/realtime/conversation_item_added.rb +9 -7
  586. data/lib/openai/models/realtime/conversation_item_create_event.rb +16 -7
  587. data/lib/openai/models/realtime/conversation_item_created_event.rb +10 -7
  588. data/lib/openai/models/realtime/conversation_item_delete_event.rb +6 -3
  589. data/lib/openai/models/realtime/conversation_item_deleted_event.rb +6 -3
  590. data/lib/openai/models/realtime/conversation_item_done.rb +9 -7
  591. data/lib/openai/models/realtime/conversation_item_input_audio_transcription_completed_event.rb +36 -21
  592. data/lib/openai/models/realtime/conversation_item_input_audio_transcription_delta_event.rb +17 -10
  593. data/lib/openai/models/realtime/conversation_item_input_audio_transcription_failed_event.rb +18 -13
  594. data/lib/openai/models/realtime/conversation_item_input_audio_transcription_segment.rb +18 -9
  595. data/lib/openai/models/realtime/conversation_item_retrieve_event.rb +6 -3
  596. data/lib/openai/models/realtime/conversation_item_truncate_event.rb +13 -8
  597. data/lib/openai/models/realtime/conversation_item_truncated_event.rb +10 -8
  598. data/lib/openai/models/realtime/conversation_item_with_reference.rb +47 -24
  599. data/lib/openai/models/realtime/input_audio_buffer_append_event.rb +7 -6
  600. data/lib/openai/models/realtime/input_audio_buffer_clear_event.rb +4 -2
  601. data/lib/openai/models/realtime/input_audio_buffer_cleared_event.rb +4 -2
  602. data/lib/openai/models/realtime/input_audio_buffer_commit_event.rb +4 -2
  603. data/lib/openai/models/realtime/input_audio_buffer_committed_event.rb +9 -7
  604. data/lib/openai/models/realtime/input_audio_buffer_dtmf_event_received_event.rb +6 -7
  605. data/lib/openai/models/realtime/input_audio_buffer_speech_started_event.rb +11 -7
  606. data/lib/openai/models/realtime/input_audio_buffer_speech_stopped_event.rb +10 -7
  607. data/lib/openai/models/realtime/input_audio_buffer_timeout_triggered.rb +12 -8
  608. data/lib/openai/models/realtime/log_prob_properties.rb +6 -6
  609. data/lib/openai/models/realtime/mcp_list_tools_completed.rb +6 -3
  610. data/lib/openai/models/realtime/mcp_list_tools_failed.rb +6 -3
  611. data/lib/openai/models/realtime/mcp_list_tools_in_progress.rb +6 -3
  612. data/lib/openai/models/realtime/output_audio_buffer_clear_event.rb +5 -3
  613. data/lib/openai/models/realtime/rate_limits_updated_event.rb +14 -11
  614. data/lib/openai/models/realtime/realtime_audio_config_input.rb +38 -12
  615. data/lib/openai/models/realtime/realtime_audio_config_output.rb +18 -6
  616. data/lib/openai/models/realtime/realtime_audio_formats.rb +8 -4
  617. data/lib/openai/models/realtime/realtime_audio_input_turn_detection.rb +61 -25
  618. data/lib/openai/models/realtime/realtime_client_event.rb +1 -1
  619. data/lib/openai/models/realtime/realtime_conversation_item_assistant_message.rb +26 -19
  620. data/lib/openai/models/realtime/realtime_conversation_item_function_call.rb +18 -11
  621. data/lib/openai/models/realtime/realtime_conversation_item_function_call_output.rb +15 -10
  622. data/lib/openai/models/realtime/realtime_conversation_item_system_message.rb +18 -13
  623. data/lib/openai/models/realtime/realtime_conversation_item_user_message.rb +32 -21
  624. data/lib/openai/models/realtime/realtime_error.rb +10 -8
  625. data/lib/openai/models/realtime/realtime_error_event.rb +6 -3
  626. data/lib/openai/models/realtime/realtime_function_tool.rb +9 -7
  627. data/lib/openai/models/realtime/realtime_mcp_approval_request.rb +10 -5
  628. data/lib/openai/models/realtime/realtime_mcp_approval_response.rb +10 -5
  629. data/lib/openai/models/realtime/realtime_mcp_list_tools.rb +16 -12
  630. data/lib/openai/models/realtime/realtime_mcp_tool_call.rb +16 -8
  631. data/lib/openai/models/realtime/realtime_reasoning.rb +3 -4
  632. data/lib/openai/models/realtime/realtime_response.rb +47 -19
  633. data/lib/openai/models/realtime/realtime_response_create_audio_output.rb +11 -7
  634. data/lib/openai/models/realtime/realtime_response_create_mcp_tool.rb +71 -43
  635. data/lib/openai/models/realtime/realtime_response_create_params.rb +56 -18
  636. data/lib/openai/models/realtime/realtime_response_status.rb +16 -8
  637. data/lib/openai/models/realtime/realtime_response_usage.rb +16 -8
  638. data/lib/openai/models/realtime/realtime_response_usage_input_token_details.rb +16 -8
  639. data/lib/openai/models/realtime/realtime_response_usage_output_token_details.rb +4 -2
  640. data/lib/openai/models/realtime/realtime_server_event.rb +30 -18
  641. data/lib/openai/models/realtime/realtime_session.rb +191 -82
  642. data/lib/openai/models/realtime/realtime_session_create_request.rb +86 -32
  643. data/lib/openai/models/realtime/realtime_session_create_response.rb +256 -110
  644. data/lib/openai/models/realtime/realtime_tools_config_union.rb +73 -45
  645. data/lib/openai/models/realtime/realtime_tracing_config.rb +9 -7
  646. data/lib/openai/models/realtime/realtime_transcription_session_audio_input.rb +38 -13
  647. data/lib/openai/models/realtime/realtime_transcription_session_audio_input_turn_detection.rb +61 -25
  648. data/lib/openai/models/realtime/realtime_transcription_session_create_request.rb +10 -8
  649. data/lib/openai/models/realtime/realtime_transcription_session_create_response.rb +28 -22
  650. data/lib/openai/models/realtime/realtime_transcription_session_turn_detection.rb +13 -8
  651. data/lib/openai/models/realtime/realtime_translation_client_secret_create_request.rb +16 -12
  652. data/lib/openai/models/realtime/realtime_translation_client_secret_create_response.rb +7 -7
  653. data/lib/openai/models/realtime/realtime_translation_input_audio_buffer_append_event.rb +6 -3
  654. data/lib/openai/models/realtime/realtime_translation_input_transcript_delta_event.rb +11 -8
  655. data/lib/openai/models/realtime/realtime_translation_output_audio_delta_event.rb +16 -11
  656. data/lib/openai/models/realtime/realtime_translation_output_transcript_delta_event.rb +11 -8
  657. data/lib/openai/models/realtime/realtime_translation_session.rb +25 -25
  658. data/lib/openai/models/realtime/realtime_translation_session_close_event.rb +4 -2
  659. data/lib/openai/models/realtime/realtime_translation_session_closed_event.rb +4 -2
  660. data/lib/openai/models/realtime/realtime_translation_session_create_request.rb +18 -23
  661. data/lib/openai/models/realtime/realtime_translation_session_created_event.rb +6 -3
  662. data/lib/openai/models/realtime/realtime_translation_session_update_event.rb +7 -7
  663. data/lib/openai/models/realtime/realtime_translation_session_update_request.rb +16 -22
  664. data/lib/openai/models/realtime/realtime_translation_session_updated_event.rb +6 -3
  665. data/lib/openai/models/realtime/realtime_truncation_retention_ratio.rb +16 -11
  666. data/lib/openai/models/realtime/response_audio_delta_event.rb +14 -7
  667. data/lib/openai/models/realtime/response_audio_done_event.rb +12 -6
  668. data/lib/openai/models/realtime/response_audio_transcript_delta_event.rb +14 -7
  669. data/lib/openai/models/realtime/response_audio_transcript_done_event.rb +14 -7
  670. data/lib/openai/models/realtime/response_cancel_event.rb +7 -6
  671. data/lib/openai/models/realtime/response_content_part_added_event.rb +22 -11
  672. data/lib/openai/models/realtime/response_content_part_done_event.rb +22 -11
  673. data/lib/openai/models/realtime/response_create_event.rb +6 -3
  674. data/lib/openai/models/realtime/response_created_event.rb +6 -3
  675. data/lib/openai/models/realtime/response_done_event.rb +6 -3
  676. data/lib/openai/models/realtime/response_function_call_arguments_delta_event.rb +14 -11
  677. data/lib/openai/models/realtime/response_function_call_arguments_done_event.rb +16 -12
  678. data/lib/openai/models/realtime/response_mcp_call_arguments_delta.rb +14 -7
  679. data/lib/openai/models/realtime/response_mcp_call_arguments_done.rb +12 -6
  680. data/lib/openai/models/realtime/response_mcp_call_completed.rb +8 -4
  681. data/lib/openai/models/realtime/response_mcp_call_failed.rb +8 -4
  682. data/lib/openai/models/realtime/response_mcp_call_in_progress.rb +8 -4
  683. data/lib/openai/models/realtime/response_output_item_added_event.rb +10 -5
  684. data/lib/openai/models/realtime/response_output_item_done_event.rb +10 -5
  685. data/lib/openai/models/realtime/response_text_delta_event.rb +14 -7
  686. data/lib/openai/models/realtime/response_text_done_event.rb +14 -7
  687. data/lib/openai/models/realtime/session_created_event.rb +6 -3
  688. data/lib/openai/models/realtime/session_update_event.rb +10 -6
  689. data/lib/openai/models/realtime/session_updated_event.rb +6 -3
  690. data/lib/openai/models/realtime/transcription_session_update.rb +45 -26
  691. data/lib/openai/models/realtime/transcription_session_updated_event.rb +42 -28
  692. data/lib/openai/models/reasoning.rb +33 -10
  693. data/lib/openai/models/reasoning_effort.rb +1 -1
  694. data/lib/openai/models/response_format_json_object.rb +2 -1
  695. data/lib/openai/models/response_format_json_schema.rb +21 -14
  696. data/lib/openai/models/response_format_text.rb +2 -1
  697. data/lib/openai/models/response_format_text_grammar.rb +5 -3
  698. data/lib/openai/models/response_format_text_python.rb +3 -2
  699. data/lib/openai/models/responses/apply_patch_tool.rb +4 -3
  700. data/lib/openai/models/responses/compacted_response.rb +12 -8
  701. data/lib/openai/models/responses/computer_action.rb +78 -58
  702. data/lib/openai/models/responses/computer_tool.rb +3 -2
  703. data/lib/openai/models/responses/computer_use_preview_tool.rb +9 -5
  704. data/lib/openai/models/responses/container_auto.rb +10 -5
  705. data/lib/openai/models/responses/container_network_policy_allowlist.rb +6 -3
  706. data/lib/openai/models/responses/container_network_policy_disabled.rb +2 -1
  707. data/lib/openai/models/responses/container_network_policy_domain_secret.rb +6 -3
  708. data/lib/openai/models/responses/container_reference.rb +4 -2
  709. data/lib/openai/models/responses/custom_tool.rb +16 -12
  710. data/lib/openai/models/responses/easy_input_message.rb +13 -7
  711. data/lib/openai/models/responses/file_search_tool.rb +25 -17
  712. data/lib/openai/models/responses/function_shell_tool.rb +4 -3
  713. data/lib/openai/models/responses/function_tool.rb +19 -13
  714. data/lib/openai/models/responses/inline_skill.rb +8 -4
  715. data/lib/openai/models/responses/inline_skill_source.rb +6 -3
  716. data/lib/openai/models/responses/input_item_list_params.rb +13 -7
  717. data/lib/openai/models/responses/input_token_count_params.rb +79 -30
  718. data/lib/openai/models/responses/local_environment.rb +4 -2
  719. data/lib/openai/models/responses/local_skill.rb +6 -3
  720. data/lib/openai/models/responses/namespace_tool.rb +23 -13
  721. data/lib/openai/models/responses/response.rb +336 -152
  722. data/lib/openai/models/responses/response_apply_patch_tool_call.rb +34 -19
  723. data/lib/openai/models/responses/response_apply_patch_tool_call_output.rb +17 -11
  724. data/lib/openai/models/responses/response_audio_delta_event.rb +6 -6
  725. data/lib/openai/models/responses/response_audio_done_event.rb +4 -5
  726. data/lib/openai/models/responses/response_audio_transcript_delta_event.rb +6 -6
  727. data/lib/openai/models/responses/response_audio_transcript_done_event.rb +4 -5
  728. data/lib/openai/models/responses/response_code_interpreter_call_code_delta_event.rb +11 -9
  729. data/lib/openai/models/responses/response_code_interpreter_call_code_done_event.rb +10 -5
  730. data/lib/openai/models/responses/response_code_interpreter_call_completed_event.rb +9 -8
  731. data/lib/openai/models/responses/response_code_interpreter_call_in_progress_event.rb +9 -8
  732. data/lib/openai/models/responses/response_code_interpreter_call_interpreting_event.rb +9 -8
  733. data/lib/openai/models/responses/response_code_interpreter_tool_call.rb +22 -13
  734. data/lib/openai/models/responses/response_compact_params.rb +89 -46
  735. data/lib/openai/models/responses/response_compaction_item.rb +9 -5
  736. data/lib/openai/models/responses/response_compaction_item_param.rb +7 -4
  737. data/lib/openai/models/responses/response_completed_event.rb +6 -6
  738. data/lib/openai/models/responses/response_computer_tool_call.rb +101 -82
  739. data/lib/openai/models/responses/response_computer_tool_call_output_item.rb +22 -14
  740. data/lib/openai/models/responses/response_computer_tool_call_output_screenshot.rb +7 -7
  741. data/lib/openai/models/responses/response_configuration_update_item.rb +9 -8
  742. data/lib/openai/models/responses/response_configuration_update_item_param.rb +9 -8
  743. data/lib/openai/models/responses/response_container_reference.rb +2 -1
  744. data/lib/openai/models/responses/response_content.rb +5 -3
  745. data/lib/openai/models/responses/response_content_part_added_event.rb +16 -11
  746. data/lib/openai/models/responses/response_content_part_done_event.rb +16 -11
  747. data/lib/openai/models/responses/response_conversation_param.rb +2 -1
  748. data/lib/openai/models/responses/response_create_params.rb +334 -130
  749. data/lib/openai/models/responses/response_created_event.rb +6 -6
  750. data/lib/openai/models/responses/response_custom_tool_call.rb +18 -12
  751. data/lib/openai/models/responses/response_custom_tool_call_input_delta_event.rb +10 -5
  752. data/lib/openai/models/responses/response_custom_tool_call_input_done_event.rb +10 -5
  753. data/lib/openai/models/responses/response_custom_tool_call_item.rb +21 -13
  754. data/lib/openai/models/responses/response_custom_tool_call_output.rb +18 -12
  755. data/lib/openai/models/responses/response_custom_tool_call_output_item.rb +16 -10
  756. data/lib/openai/models/responses/response_error.rb +12 -9
  757. data/lib/openai/models/responses/response_error_event.rb +10 -8
  758. data/lib/openai/models/responses/response_failed_event.rb +6 -6
  759. data/lib/openai/models/responses/response_file_search_call_completed_event.rb +8 -8
  760. data/lib/openai/models/responses/response_file_search_call_in_progress_event.rb +8 -8
  761. data/lib/openai/models/responses/response_file_search_call_searching_event.rb +8 -8
  762. data/lib/openai/models/responses/response_file_search_tool_call.rb +26 -19
  763. data/lib/openai/models/responses/response_format_text_config.rb +2 -2
  764. data/lib/openai/models/responses/response_format_text_json_schema_config.rb +19 -11
  765. data/lib/openai/models/responses/response_function_call_arguments_delta_event.rb +10 -9
  766. data/lib/openai/models/responses/response_function_call_arguments_done_event.rb +8 -4
  767. data/lib/openai/models/responses/response_function_call_output_item.rb +1 -1
  768. data/lib/openai/models/responses/response_function_shell_call_output_content.rb +12 -6
  769. data/lib/openai/models/responses/response_function_shell_tool_call.rb +24 -14
  770. data/lib/openai/models/responses/response_function_shell_tool_call_output.rb +36 -25
  771. data/lib/openai/models/responses/response_function_tool_call.rb +22 -14
  772. data/lib/openai/models/responses/response_function_tool_call_item.rb +22 -14
  773. data/lib/openai/models/responses/response_function_tool_call_output_item.rb +27 -17
  774. data/lib/openai/models/responses/response_function_web_search.rb +33 -37
  775. data/lib/openai/models/responses/response_image_gen_call_completed_event.rb +8 -4
  776. data/lib/openai/models/responses/response_image_gen_call_generating_event.rb +8 -4
  777. data/lib/openai/models/responses/response_image_gen_call_in_progress_event.rb +8 -4
  778. data/lib/openai/models/responses/response_image_gen_call_partial_image_event.rb +21 -14
  779. data/lib/openai/models/responses/response_in_progress_event.rb +6 -6
  780. data/lib/openai/models/responses/response_incomplete_event.rb +6 -6
  781. data/lib/openai/models/responses/response_input_audio.rb +6 -9
  782. data/lib/openai/models/responses/response_input_content.rb +1 -1
  783. data/lib/openai/models/responses/response_input_file.rb +22 -11
  784. data/lib/openai/models/responses/response_input_file_content.rb +22 -11
  785. data/lib/openai/models/responses/response_input_image.rb +17 -10
  786. data/lib/openai/models/responses/response_input_image_content.rb +17 -10
  787. data/lib/openai/models/responses/response_input_item.rb +397 -209
  788. data/lib/openai/models/responses/response_input_message_item.rb +12 -8
  789. data/lib/openai/models/responses/response_input_text.rb +10 -7
  790. data/lib/openai/models/responses/response_input_text_content.rb +10 -7
  791. data/lib/openai/models/responses/response_item.rb +205 -93
  792. data/lib/openai/models/responses/response_item_list.rb +10 -5
  793. data/lib/openai/models/responses/response_local_environment.rb +2 -1
  794. data/lib/openai/models/responses/response_mcp_call_arguments_delta_event.rb +11 -9
  795. data/lib/openai/models/responses/response_mcp_call_arguments_done_event.rb +10 -8
  796. data/lib/openai/models/responses/response_mcp_call_completed_event.rb +8 -4
  797. data/lib/openai/models/responses/response_mcp_call_failed_event.rb +8 -4
  798. data/lib/openai/models/responses/response_mcp_call_in_progress_event.rb +8 -4
  799. data/lib/openai/models/responses/response_mcp_list_tools_completed_event.rb +8 -4
  800. data/lib/openai/models/responses/response_mcp_list_tools_failed_event.rb +8 -4
  801. data/lib/openai/models/responses/response_mcp_list_tools_in_progress_event.rb +8 -4
  802. data/lib/openai/models/responses/response_output_audio.rb +6 -6
  803. data/lib/openai/models/responses/response_output_item.rb +217 -98
  804. data/lib/openai/models/responses/response_output_item_added_event.rb +11 -7
  805. data/lib/openai/models/responses/response_output_item_done_event.rb +8 -7
  806. data/lib/openai/models/responses/response_output_message.rb +16 -9
  807. data/lib/openai/models/responses/response_output_refusal.rb +4 -2
  808. data/lib/openai/models/responses/response_output_text.rb +42 -25
  809. data/lib/openai/models/responses/response_output_text_annotation_added_event.rb +50 -29
  810. data/lib/openai/models/responses/response_prompt.rb +10 -8
  811. data/lib/openai/models/responses/response_queued_event.rb +6 -3
  812. data/lib/openai/models/responses/response_reasoning_item.rb +29 -15
  813. data/lib/openai/models/responses/response_reasoning_summary_part_added_event.rb +16 -12
  814. data/lib/openai/models/responses/response_reasoning_summary_part_done_event.rb +19 -13
  815. data/lib/openai/models/responses/response_reasoning_summary_text_delta_event.rb +12 -10
  816. data/lib/openai/models/responses/response_reasoning_summary_text_done_event.rb +12 -10
  817. data/lib/openai/models/responses/response_reasoning_text_delta_event.rb +12 -9
  818. data/lib/openai/models/responses/response_reasoning_text_done_event.rb +12 -9
  819. data/lib/openai/models/responses/response_refusal_delta_event.rb +12 -9
  820. data/lib/openai/models/responses/response_refusal_done_event.rb +12 -9
  821. data/lib/openai/models/responses/response_retrieve_params.rb +12 -6
  822. data/lib/openai/models/responses/response_shell_call_command_added_event.rb +10 -5
  823. data/lib/openai/models/responses/response_shell_call_command_delta_event.rb +12 -6
  824. data/lib/openai/models/responses/response_shell_call_command_done_event.rb +10 -5
  825. data/lib/openai/models/responses/response_shell_call_output_content_delta_event.rb +16 -8
  826. data/lib/openai/models/responses/response_shell_call_output_content_done_event.rb +27 -18
  827. data/lib/openai/models/responses/response_steer_accepted_event.rb +13 -9
  828. data/lib/openai/models/responses/response_steer_event.rb +14 -6
  829. data/lib/openai/models/responses/response_steer_failed_event.rb +45 -22
  830. data/lib/openai/models/responses/response_steer_input.rb +34 -20
  831. data/lib/openai/models/responses/response_steer_input_content.rb +1 -1
  832. data/lib/openai/models/responses/response_steer_pending_event.rb +24 -11
  833. data/lib/openai/models/responses/response_text_config.rb +22 -8
  834. data/lib/openai/models/responses/response_text_delta_event.rb +24 -20
  835. data/lib/openai/models/responses/response_text_done_event.rb +24 -20
  836. data/lib/openai/models/responses/response_tool_search_call.rb +14 -7
  837. data/lib/openai/models/responses/response_tool_search_output_item.rb +14 -7
  838. data/lib/openai/models/responses/response_tool_search_output_item_param.rb +12 -6
  839. data/lib/openai/models/responses/response_usage.rb +18 -12
  840. data/lib/openai/models/responses/response_web_search_call_completed_event.rb +8 -8
  841. data/lib/openai/models/responses/response_web_search_call_in_progress_event.rb +8 -8
  842. data/lib/openai/models/responses/response_web_search_call_searching_event.rb +8 -8
  843. data/lib/openai/models/responses/responses_client_event.rb +353 -140
  844. data/lib/openai/models/responses/responses_server_event.rb +744 -570
  845. data/lib/openai/models/responses/skill_reference.rb +6 -3
  846. data/lib/openai/models/responses/tool.rb +236 -129
  847. data/lib/openai/models/responses/tool_choice_allowed.rb +21 -6
  848. data/lib/openai/models/responses/tool_choice_apply_patch.rb +2 -1
  849. data/lib/openai/models/responses/tool_choice_custom.rb +4 -2
  850. data/lib/openai/models/responses/tool_choice_function.rb +4 -2
  851. data/lib/openai/models/responses/tool_choice_mcp.rb +6 -6
  852. data/lib/openai/models/responses/tool_choice_shell.rb +2 -1
  853. data/lib/openai/models/responses/tool_choice_types.rb +16 -7
  854. data/lib/openai/models/responses/tool_search_tool.rb +8 -4
  855. data/lib/openai/models/responses/web_search_preview_tool.rb +21 -16
  856. data/lib/openai/models/responses/web_search_tool.rb +31 -21
  857. data/lib/openai/models/safety/alert_retrieve_params.rb +2 -1
  858. data/lib/openai/models/safety/safety_alert.rb +6 -5
  859. data/lib/openai/models/skill.rb +14 -7
  860. data/lib/openai/models/skill_create_params.rb +6 -1
  861. data/lib/openai/models/skill_list.rb +10 -5
  862. data/lib/openai/models/skill_list_params.rb +7 -6
  863. data/lib/openai/models/skill_update_params.rb +2 -1
  864. data/lib/openai/models/skills/deleted_skill_version.rb +2 -1
  865. data/lib/openai/models/skills/skill_version.rb +14 -7
  866. data/lib/openai/models/skills/skill_version_list.rb +10 -5
  867. data/lib/openai/models/skills/version_create_params.rb +8 -2
  868. data/lib/openai/models/skills/version_delete_params.rb +2 -1
  869. data/lib/openai/models/skills/version_list_params.rb +6 -3
  870. data/lib/openai/models/skills/version_retrieve_params.rb +2 -1
  871. data/lib/openai/models/skills/versions/content_retrieve_params.rb +2 -1
  872. data/lib/openai/models/static_file_chunking_strategy.rb +6 -4
  873. data/lib/openai/models/static_file_chunking_strategy_object.rb +2 -1
  874. data/lib/openai/models/static_file_chunking_strategy_object_param.rb +2 -1
  875. data/lib/openai/models/upload.rb +21 -13
  876. data/lib/openai/models/upload_complete_params.rb +5 -5
  877. data/lib/openai/models/upload_create_params.rb +23 -13
  878. data/lib/openai/models/uploads/part_create_params.rb +6 -4
  879. data/lib/openai/models/uploads/upload_part.rb +8 -4
  880. data/lib/openai/models/vector_store.rb +42 -23
  881. data/lib/openai/models/vector_store_create_params.rb +28 -16
  882. data/lib/openai/models/vector_store_list_params.rb +16 -7
  883. data/lib/openai/models/vector_store_search_params.rb +13 -9
  884. data/lib/openai/models/vector_store_search_response.rb +18 -11
  885. data/lib/openai/models/vector_store_update_params.rb +16 -11
  886. data/lib/openai/models/vector_stores/file_batch_create_params.rb +47 -23
  887. data/lib/openai/models/vector_stores/file_batch_list_files_params.rb +18 -8
  888. data/lib/openai/models/vector_stores/file_content_response.rb +4 -2
  889. data/lib/openai/models/vector_stores/file_create_params.rb +18 -9
  890. data/lib/openai/models/vector_stores/file_list_params.rb +18 -8
  891. data/lib/openai/models/vector_stores/file_update_params.rb +6 -4
  892. data/lib/openai/models/vector_stores/vector_store_file.rb +35 -16
  893. data/lib/openai/models/vector_stores/vector_store_file_batch.rb +27 -15
  894. data/lib/openai/models/video.rb +27 -16
  895. data/lib/openai/models/video_create_character_params.rb +8 -2
  896. data/lib/openai/models/video_create_character_response.rb +6 -3
  897. data/lib/openai/models/video_create_error.rb +12 -6
  898. data/lib/openai/models/video_create_params.rb +15 -7
  899. data/lib/openai/models/video_delete_response.rb +6 -3
  900. data/lib/openai/models/video_download_content_params.rb +2 -1
  901. data/lib/openai/models/video_edit_params.rb +10 -3
  902. data/lib/openai/models/video_extend_params.rb +12 -6
  903. data/lib/openai/models/video_get_character_response.rb +6 -3
  904. data/lib/openai/models/video_list_params.rb +7 -6
  905. data/lib/openai/models/video_remix_params.rb +2 -1
  906. data/lib/openai/models/webhooks/batch_cancelled_webhook_event.rb +12 -12
  907. data/lib/openai/models/webhooks/batch_completed_webhook_event.rb +12 -12
  908. data/lib/openai/models/webhooks/batch_expired_webhook_event.rb +12 -12
  909. data/lib/openai/models/webhooks/batch_failed_webhook_event.rb +12 -12
  910. data/lib/openai/models/webhooks/eval_run_canceled_webhook_event.rb +12 -12
  911. data/lib/openai/models/webhooks/eval_run_failed_webhook_event.rb +12 -12
  912. data/lib/openai/models/webhooks/eval_run_succeeded_webhook_event.rb +12 -12
  913. data/lib/openai/models/webhooks/fine_tuning_job_cancelled_webhook_event.rb +12 -13
  914. data/lib/openai/models/webhooks/fine_tuning_job_failed_webhook_event.rb +12 -13
  915. data/lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb +12 -13
  916. data/lib/openai/models/webhooks/live_call_incoming_webhook_event.rb +26 -23
  917. data/lib/openai/models/webhooks/realtime_call_incoming_webhook_event.rb +30 -24
  918. data/lib/openai/models/webhooks/response_cancelled_webhook_event.rb +12 -13
  919. data/lib/openai/models/webhooks/response_completed_webhook_event.rb +12 -13
  920. data/lib/openai/models/webhooks/response_failed_webhook_event.rb +12 -12
  921. data/lib/openai/models/webhooks/response_incomplete_webhook_event.rb +12 -13
  922. data/lib/openai/models/webhooks/safety_alert_created_webhook_event.rb +10 -5
  923. data/lib/openai/models/webhooks/safety_org_alert_created_webhook_event.rb +10 -5
  924. data/lib/openai/resources/admin/organization/admin_api_keys.rb +13 -9
  925. data/lib/openai/resources/admin/organization/audit_logs.rb +44 -22
  926. data/lib/openai/resources/admin/organization/certificates.rb +26 -17
  927. data/lib/openai/resources/admin/organization/data_retention.rb +2 -1
  928. data/lib/openai/resources/admin/organization/groups/roles.rb +21 -13
  929. data/lib/openai/resources/admin/organization/groups/users.rb +22 -13
  930. data/lib/openai/resources/admin/organization/groups.rb +20 -11
  931. data/lib/openai/resources/admin/organization/invites.rb +21 -13
  932. data/lib/openai/resources/admin/organization/projects/api_keys.rb +24 -12
  933. data/lib/openai/resources/admin/organization/projects/certificates.rb +17 -10
  934. data/lib/openai/resources/admin/organization/projects/data_retention.rb +6 -3
  935. data/lib/openai/resources/admin/organization/projects/groups/roles.rb +29 -18
  936. data/lib/openai/resources/admin/organization/projects/groups.rb +25 -16
  937. data/lib/openai/resources/admin/organization/projects/hosted_tool_permissions.rb +14 -7
  938. data/lib/openai/resources/admin/organization/projects/model_permissions.rb +10 -5
  939. data/lib/openai/resources/admin/organization/projects/rate_limits.rb +32 -20
  940. data/lib/openai/resources/admin/organization/projects/roles.rb +35 -21
  941. data/lib/openai/resources/admin/organization/projects/service_accounts/api_keys.rb +10 -5
  942. data/lib/openai/resources/admin/organization/projects/service_accounts.rb +40 -19
  943. data/lib/openai/resources/admin/organization/projects/spend_alerts.rb +42 -24
  944. data/lib/openai/resources/admin/organization/projects/spend_limit.rb +13 -10
  945. data/lib/openai/resources/admin/organization/projects/users/roles.rb +29 -18
  946. data/lib/openai/resources/admin/organization/projects/users.rb +32 -18
  947. data/lib/openai/resources/admin/organization/projects.rb +40 -22
  948. data/lib/openai/resources/admin/organization/roles.rb +25 -15
  949. data/lib/openai/resources/admin/organization/spend_alerts.rb +32 -18
  950. data/lib/openai/resources/admin/organization/spend_limit.rb +7 -6
  951. data/lib/openai/resources/admin/organization/usage.rb +296 -145
  952. data/lib/openai/resources/admin/organization/users/roles.rb +21 -13
  953. data/lib/openai/resources/admin/organization/users.rb +24 -13
  954. data/lib/openai/resources/audio/speech.rb +25 -10
  955. data/lib/openai/resources/audio/transcriptions.rb +172 -56
  956. data/lib/openai/resources/audio/translations.rb +26 -8
  957. data/lib/openai/resources/batches.rb +43 -15
  958. data/lib/openai/resources/beta/assistants.rb +177 -59
  959. data/lib/openai/resources/beta/chatkit/sessions.rb +14 -9
  960. data/lib/openai/resources/beta/chatkit/threads.rb +29 -18
  961. data/lib/openai/resources/beta/responses/input_items.rb +17 -9
  962. data/lib/openai/resources/beta/responses/input_tokens.rb +65 -28
  963. data/lib/openai/resources/beta/responses.rb +640 -195
  964. data/lib/openai/resources/beta/threads/messages.rb +65 -30
  965. data/lib/openai/resources/beta/threads/runs/steps.rb +50 -23
  966. data/lib/openai/resources/beta/threads/runs.rb +309 -109
  967. data/lib/openai/resources/beta/threads.rb +240 -78
  968. data/lib/openai/resources/chat/completions/messages.rb +9 -7
  969. data/lib/openai/resources/chat/completions.rb +594 -169
  970. data/lib/openai/resources/completions.rb +212 -40
  971. data/lib/openai/resources/containers/files.rb +19 -11
  972. data/lib/openai/resources/containers.rb +27 -14
  973. data/lib/openai/resources/content_provenance_checks.rb +7 -2
  974. data/lib/openai/resources/conversations/items.rb +58 -26
  975. data/lib/openai/resources/conversations.rb +23 -12
  976. data/lib/openai/resources/embeddings.rb +26 -8
  977. data/lib/openai/resources/evals/runs/output_items.rb +21 -12
  978. data/lib/openai/resources/evals/runs.rb +37 -21
  979. data/lib/openai/resources/evals.rb +43 -23
  980. data/lib/openai/resources/files.rb +42 -21
  981. data/lib/openai/resources/fine_tuning/alpha/graders.rb +15 -7
  982. data/lib/openai/resources/fine_tuning/checkpoints/permissions.rb +36 -34
  983. data/lib/openai/resources/fine_tuning/jobs/checkpoints.rb +6 -6
  984. data/lib/openai/resources/fine_tuning/jobs.rb +84 -42
  985. data/lib/openai/resources/images.rb +423 -131
  986. data/lib/openai/resources/models.rb +4 -2
  987. data/lib/openai/resources/moderations.rb +10 -6
  988. data/lib/openai/resources/realtime/calls.rb +114 -48
  989. data/lib/openai/resources/realtime/client_secrets.rb +9 -6
  990. data/lib/openai/resources/responses/input_items.rb +15 -8
  991. data/lib/openai/resources/responses/input_tokens.rb +60 -26
  992. data/lib/openai/resources/responses.rb +601 -262
  993. data/lib/openai/resources/safety/alerts.rb +2 -1
  994. data/lib/openai/resources/skills/content.rb +2 -1
  995. data/lib/openai/resources/skills/versions/content.rb +4 -2
  996. data/lib/openai/resources/skills/versions.rb +26 -11
  997. data/lib/openai/resources/skills.rb +21 -11
  998. data/lib/openai/resources/uploads/parts.rb +13 -9
  999. data/lib/openai/resources/uploads.rb +35 -27
  1000. data/lib/openai/resources/vector_stores/file_batches.rb +60 -26
  1001. data/lib/openai/resources/vector_stores/files.rb +62 -31
  1002. data/lib/openai/resources/vector_stores.rb +67 -34
  1003. data/lib/openai/resources/videos.rb +64 -31
  1004. data/lib/openai/version.rb +1 -1
  1005. data/local-audio.md +146 -0
  1006. data/rbi/openai/helpers/local_audio/interface.rbi +110 -0
  1007. data/rbi/openai/helpers/realtime/connection.rbi +18 -2
  1008. data/rbi/openai/helpers/realtime/extensions.rbi +8 -0
  1009. data/rbi/openai/helpers/realtime/recovery.rbi +27 -0
  1010. data/rbi/openai/models/admin/organization/audit_log_list_params.rbi +2 -2
  1011. data/rbi/openai/models/admin/organization/project_create_params.rbi +4 -4
  1012. data/rbi/openai/models/admin/organization/projects/project_api_key.rbi +13 -1
  1013. data/rbi/openai/models/admin/organization/projects/service_account_create_params.rbi +18 -0
  1014. data/rbi/openai/models/admin/organization/projects/service_account_create_response.rbi +19 -1
  1015. data/rbi/openai/models/audio/speech_create_params.rbi +9 -6
  1016. data/rbi/openai/models/audio/transcription_create_params.rbi +2 -2
  1017. data/rbi/openai/models/audio/transcription_stream_event.rbi +1 -1
  1018. data/rbi/openai/models/audio/transcription_text_delta_event.rbi +3 -3
  1019. data/rbi/openai/models/audio/transcription_text_done_event.rbi +3 -3
  1020. data/rbi/openai/models/audio/transcription_text_segment_event.rbi +1 -1
  1021. data/rbi/openai/models/audio/translation_create_params.rbi +2 -2
  1022. data/rbi/openai/models/batch.rbi +4 -4
  1023. data/rbi/openai/models/batch_create_params.rbi +6 -4
  1024. data/rbi/openai/models/batch_usage.rbi +2 -2
  1025. data/rbi/openai/models/beta/assistant.rbi +24 -24
  1026. data/rbi/openai/models/beta/assistant_create_params.rbi +40 -40
  1027. data/rbi/openai/models/beta/assistant_response_format_option.rbi +4 -4
  1028. data/rbi/openai/models/beta/assistant_stream_event.rbi +63 -65
  1029. data/rbi/openai/models/beta/assistant_update_params.rbi +30 -30
  1030. data/rbi/openai/models/beta/beta_computer_tool.rbi +1 -1
  1031. data/rbi/openai/models/beta/beta_computer_use_preview_tool.rbi +1 -1
  1032. data/rbi/openai/models/beta/beta_custom_tool.rbi +1 -1
  1033. data/rbi/openai/models/beta/beta_file_search_tool.rbi +1 -1
  1034. data/rbi/openai/models/beta/beta_function_tool.rbi +1 -1
  1035. data/rbi/openai/models/beta/beta_response.rbi +72 -64
  1036. data/rbi/openai/models/beta/beta_response_compaction_item.rbi +1 -1
  1037. data/rbi/openai/models/beta/beta_response_compaction_item_param.rbi +1 -1
  1038. data/rbi/openai/models/beta/beta_response_computer_tool_call.rbi +1 -1
  1039. data/rbi/openai/models/beta/beta_response_file_search_tool_call.rbi +1 -1
  1040. data/rbi/openai/models/beta/beta_response_format_text_config.rbi +1 -1
  1041. data/rbi/openai/models/beta/beta_response_format_text_json_schema_config.rbi +3 -3
  1042. data/rbi/openai/models/beta/beta_response_function_tool_call.rbi +1 -1
  1043. data/rbi/openai/models/beta/beta_response_function_tool_call_item.rbi +1 -1
  1044. data/rbi/openai/models/beta/beta_response_function_web_search.rbi +2 -2
  1045. data/rbi/openai/models/beta/beta_response_input_image.rbi +1 -1
  1046. data/rbi/openai/models/beta/beta_response_input_image_content.rbi +1 -1
  1047. data/rbi/openai/models/beta/beta_response_input_item.rbi +86 -1
  1048. data/rbi/openai/models/beta/beta_response_item.rbi +78 -1
  1049. data/rbi/openai/models/beta/beta_response_output_item.rbi +84 -1
  1050. data/rbi/openai/models/beta/beta_response_prompt.rbi +1 -1
  1051. data/rbi/openai/models/beta/beta_response_reasoning_item.rbi +1 -1
  1052. data/rbi/openai/models/beta/beta_response_text_config.rbi +4 -4
  1053. data/rbi/openai/models/beta/beta_response_usage.rbi +2 -2
  1054. data/rbi/openai/models/beta/beta_responses_client_event.rbi +98 -84
  1055. data/rbi/openai/models/beta/beta_tool.rbi +94 -55
  1056. data/rbi/openai/models/beta/beta_tool_choice_types.rbi +4 -4
  1057. data/rbi/openai/models/beta/beta_web_search_preview_tool.rbi +1 -1
  1058. data/rbi/openai/models/beta/beta_web_search_tool.rbi +1 -1
  1059. data/rbi/openai/models/beta/file_search_tool.rbi +5 -5
  1060. data/rbi/openai/models/beta/message_stream_event.rbi +16 -16
  1061. data/rbi/openai/models/beta/response_compact_params.rbi +44 -44
  1062. data/rbi/openai/models/beta/response_create_params.rbi +96 -82
  1063. data/rbi/openai/models/beta/responses/input_token_count_params.rbi +20 -20
  1064. data/rbi/openai/models/beta/run_step_stream_event.rbi +14 -16
  1065. data/rbi/openai/models/beta/run_stream_event.rbi +31 -31
  1066. data/rbi/openai/models/beta/thread.rbi +9 -9
  1067. data/rbi/openai/models/beta/thread_create_and_run_params.rbi +61 -56
  1068. data/rbi/openai/models/beta/thread_create_params.rbi +24 -22
  1069. data/rbi/openai/models/beta/thread_stream_event.rbi +3 -3
  1070. data/rbi/openai/models/beta/thread_update_params.rbi +8 -8
  1071. data/rbi/openai/models/beta/threads/image_file.rbi +6 -6
  1072. data/rbi/openai/models/beta/threads/image_file_content_block.rbi +3 -2
  1073. data/rbi/openai/models/beta/threads/image_file_delta.rbi +6 -6
  1074. data/rbi/openai/models/beta/threads/image_file_delta_block.rbi +3 -2
  1075. data/rbi/openai/models/beta/threads/message.rbi +9 -9
  1076. data/rbi/openai/models/beta/threads/message_content.rbi +3 -2
  1077. data/rbi/openai/models/beta/threads/message_content_delta.rbi +3 -2
  1078. data/rbi/openai/models/beta/threads/message_content_part_param.rbi +3 -2
  1079. data/rbi/openai/models/beta/threads/required_action_function_tool_call.rbi +2 -2
  1080. data/rbi/openai/models/beta/threads/run.rbi +33 -31
  1081. data/rbi/openai/models/beta/threads/run_create_params.rbi +37 -34
  1082. data/rbi/openai/models/beta/threads/runs/code_interpreter_output_image.rbi +4 -4
  1083. data/rbi/openai/models/beta/threads/runs/code_interpreter_tool_call.rbi +4 -4
  1084. data/rbi/openai/models/beta/threads/runs/function_tool_call.rbi +2 -4
  1085. data/rbi/openai/models/beta/threads/runs/function_tool_call_delta.rbi +2 -4
  1086. data/rbi/openai/models/beta/threads/runs/run_step.rbi +12 -10
  1087. data/rbi/openai/models/beta/threads/runs/step_list_params.rbi +2 -2
  1088. data/rbi/openai/models/beta/threads/runs/step_retrieve_params.rbi +2 -2
  1089. data/rbi/openai/models/chat/chat_completion.rbi +27 -21
  1090. data/rbi/openai/models/chat/chat_completion_assistant_message_param.rbi +4 -5
  1091. data/rbi/openai/models/chat/chat_completion_audio.rbi +1 -1
  1092. data/rbi/openai/models/chat/chat_completion_audio_param.rbi +1 -1
  1093. data/rbi/openai/models/chat/chat_completion_chunk.rbi +28 -22
  1094. data/rbi/openai/models/chat/chat_completion_content_part.rbi +3 -4
  1095. data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +5 -4
  1096. data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +1 -1
  1097. data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +1 -2
  1098. data/rbi/openai/models/chat/chat_completion_message.rbi +4 -4
  1099. data/rbi/openai/models/chat/chat_completion_store_message.rbi +3 -4
  1100. data/rbi/openai/models/chat/completion_create_params.rbi +95 -85
  1101. data/rbi/openai/models/completion_create_params.rbi +34 -32
  1102. data/rbi/openai/models/conversations/conversation_item.rbi +89 -2
  1103. data/rbi/openai/models/conversations/item_create_params.rbi +2 -2
  1104. data/rbi/openai/models/conversations/item_retrieve_params.rbi +2 -2
  1105. data/rbi/openai/models/embedding.rbi +2 -2
  1106. data/rbi/openai/models/embedding_create_params.rbi +14 -14
  1107. data/rbi/openai/models/evals/create_eval_completions_run_data_source.rbi +5 -5
  1108. data/rbi/openai/models/evals/run_cancel_response.rbi +22 -20
  1109. data/rbi/openai/models/evals/run_create_params.rbi +22 -20
  1110. data/rbi/openai/models/evals/run_create_response.rbi +22 -20
  1111. data/rbi/openai/models/evals/run_list_response.rbi +22 -20
  1112. data/rbi/openai/models/evals/run_retrieve_response.rbi +22 -20
  1113. data/rbi/openai/models/fine_tuning/alpha/grader_run_params.rbi +10 -8
  1114. data/rbi/openai/models/fine_tuning/fine_tuning_job.rbi +6 -6
  1115. data/rbi/openai/models/fine_tuning/job_create_params.rbi +17 -15
  1116. data/rbi/openai/models/function_definition.rbi +6 -6
  1117. data/rbi/openai/models/graders/score_model_grader.rbi +2 -2
  1118. data/rbi/openai/models/image_create_variation_params.rbi +2 -2
  1119. data/rbi/openai/models/image_edit_completed_event.rbi +20 -9
  1120. data/rbi/openai/models/image_edit_params.rbi +91 -62
  1121. data/rbi/openai/models/image_edit_partial_image_event.rbi +20 -9
  1122. data/rbi/openai/models/image_gen_completed_event.rbi +20 -9
  1123. data/rbi/openai/models/image_gen_partial_image_event.rbi +20 -9
  1124. data/rbi/openai/models/image_generate_params.rbi +73 -50
  1125. data/rbi/openai/models/image_model.rbi +4 -0
  1126. data/rbi/openai/models/images_response.rbi +27 -16
  1127. data/rbi/openai/models/moderation_create_params.rbi +9 -9
  1128. data/rbi/openai/models/realtime/audio_transcription.rbi +2 -2
  1129. data/rbi/openai/models/realtime/call_accept_params.rbi +1 -1
  1130. data/rbi/openai/models/realtime/output_audio_buffer_clear_event.rbi +1 -1
  1131. data/rbi/openai/models/realtime/realtime_audio_config_input.rbi +2 -2
  1132. data/rbi/openai/models/realtime/realtime_response_create_mcp_tool.rbi +4 -4
  1133. data/rbi/openai/models/realtime/realtime_response_create_params.rbi +3 -3
  1134. data/rbi/openai/models/realtime/realtime_server_event.rbi +3 -3
  1135. data/rbi/openai/models/realtime/realtime_session.rbi +4 -4
  1136. data/rbi/openai/models/realtime/realtime_session_create_request.rbi +2 -2
  1137. data/rbi/openai/models/realtime/realtime_session_create_response.rbi +7 -7
  1138. data/rbi/openai/models/realtime/realtime_tools_config_union.rbi +5 -5
  1139. data/rbi/openai/models/realtime/realtime_transcription_session_audio_input.rbi +2 -2
  1140. data/rbi/openai/models/reasoning.rbi +3 -3
  1141. data/rbi/openai/models/reasoning_effort.rbi +1 -1
  1142. data/rbi/openai/models/response_format_json_schema.rbi +3 -3
  1143. data/rbi/openai/models/response_format_text_grammar.rbi +1 -1
  1144. data/rbi/openai/models/response_format_text_python.rbi +1 -1
  1145. data/rbi/openai/models/responses/computer_tool.rbi +1 -1
  1146. data/rbi/openai/models/responses/computer_use_preview_tool.rbi +1 -1
  1147. data/rbi/openai/models/responses/custom_tool.rbi +1 -1
  1148. data/rbi/openai/models/responses/file_search_tool.rbi +1 -1
  1149. data/rbi/openai/models/responses/function_tool.rbi +1 -1
  1150. data/rbi/openai/models/responses/input_token_count_params.rbi +16 -16
  1151. data/rbi/openai/models/responses/response.rbi +66 -58
  1152. data/rbi/openai/models/responses/response_compact_params.rbi +44 -44
  1153. data/rbi/openai/models/responses/response_compaction_item.rbi +1 -1
  1154. data/rbi/openai/models/responses/response_compaction_item_param.rbi +1 -1
  1155. data/rbi/openai/models/responses/response_computer_tool_call.rbi +1 -1
  1156. data/rbi/openai/models/responses/response_create_params.rbi +90 -76
  1157. data/rbi/openai/models/responses/response_file_search_tool_call.rbi +1 -1
  1158. data/rbi/openai/models/responses/response_format_text_config.rbi +1 -1
  1159. data/rbi/openai/models/responses/response_format_text_json_schema_config.rbi +3 -3
  1160. data/rbi/openai/models/responses/response_function_tool_call.rbi +1 -1
  1161. data/rbi/openai/models/responses/response_function_tool_call_item.rbi +1 -1
  1162. data/rbi/openai/models/responses/response_function_web_search.rbi +2 -2
  1163. data/rbi/openai/models/responses/response_input_image.rbi +1 -1
  1164. data/rbi/openai/models/responses/response_input_image_content.rbi +1 -1
  1165. data/rbi/openai/models/responses/response_input_item.rbi +88 -1
  1166. data/rbi/openai/models/responses/response_item.rbi +80 -1
  1167. data/rbi/openai/models/responses/response_output_item.rbi +84 -1
  1168. data/rbi/openai/models/responses/response_prompt.rbi +1 -1
  1169. data/rbi/openai/models/responses/response_reasoning_item.rbi +1 -1
  1170. data/rbi/openai/models/responses/response_text_config.rbi +4 -4
  1171. data/rbi/openai/models/responses/response_usage.rbi +2 -2
  1172. data/rbi/openai/models/responses/responses_client_event.rbi +92 -78
  1173. data/rbi/openai/models/responses/tool.rbi +94 -55
  1174. data/rbi/openai/models/responses/tool_choice_types.rbi +4 -4
  1175. data/rbi/openai/models/responses/web_search_preview_tool.rbi +1 -1
  1176. data/rbi/openai/models/responses/web_search_tool.rbi +1 -1
  1177. data/rbi/openai/models/upload.rbi +2 -2
  1178. data/rbi/openai/models/upload_create_params.rbi +2 -2
  1179. data/rbi/openai/models/vector_store_create_params.rbi +6 -6
  1180. data/rbi/openai/models/vector_stores/file_batch_create_params.rbi +18 -18
  1181. data/rbi/openai/models/vector_stores/file_create_params.rbi +6 -6
  1182. data/rbi/openai/models/vector_stores/vector_store_file.rbi +4 -4
  1183. data/rbi/openai/models/vector_stores/vector_store_file_batch.rbi +4 -4
  1184. data/rbi/openai/models/webhooks/live_call_incoming_webhook_event.rbi +10 -6
  1185. data/rbi/openai/models/webhooks/realtime_call_incoming_webhook_event.rbi +14 -6
  1186. data/rbi/openai/resources/admin/organization/audit_logs.rbi +1 -1
  1187. data/rbi/openai/resources/admin/organization/projects/service_accounts.rbi +7 -0
  1188. data/rbi/openai/resources/admin/organization/projects.rbi +2 -2
  1189. data/rbi/openai/resources/audio/speech.rbi +3 -2
  1190. data/rbi/openai/resources/audio/transcriptions.rbi +2 -2
  1191. data/rbi/openai/resources/audio/translations.rbi +1 -1
  1192. data/rbi/openai/resources/batches.rbi +3 -2
  1193. data/rbi/openai/resources/beta/assistants.rbi +18 -18
  1194. data/rbi/openai/resources/beta/responses/input_tokens.rbi +6 -6
  1195. data/rbi/openai/resources/beta/responses.rbi +112 -102
  1196. data/rbi/openai/resources/beta/threads/messages.rbi +9 -6
  1197. data/rbi/openai/resources/beta/threads/runs/steps.rbi +2 -2
  1198. data/rbi/openai/resources/beta/threads/runs.rbi +37 -33
  1199. data/rbi/openai/resources/beta/threads.rbi +27 -24
  1200. data/rbi/openai/resources/chat/completions.rbi +90 -82
  1201. data/rbi/openai/resources/completions.rbi +30 -28
  1202. data/rbi/openai/resources/content_provenance_checks.rbi +1 -1
  1203. data/rbi/openai/resources/conversations/items.rbi +2 -2
  1204. data/rbi/openai/resources/embeddings.rbi +5 -5
  1205. data/rbi/openai/resources/evals.rbi +1 -1
  1206. data/rbi/openai/resources/files.rbi +5 -5
  1207. data/rbi/openai/resources/fine_tuning/alpha/graders.rbi +5 -4
  1208. data/rbi/openai/resources/fine_tuning/checkpoints/permissions.rbi +8 -4
  1209. data/rbi/openai/resources/fine_tuning/jobs.rbi +10 -9
  1210. data/rbi/openai/resources/images.rbi +113 -83
  1211. data/rbi/openai/resources/moderations.rbi +5 -4
  1212. data/rbi/openai/resources/realtime/calls.rbi +6 -6
  1213. data/rbi/openai/resources/realtime/client_secrets.rbi +1 -1
  1214. data/rbi/openai/resources/responses/input_tokens.rbi +6 -6
  1215. data/rbi/openai/resources/responses.rbi +112 -100
  1216. data/rbi/openai/resources/uploads/parts.rbi +5 -4
  1217. data/rbi/openai/resources/uploads.rbi +10 -10
  1218. data/rbi/openai/resources/vector_stores/file_batches.rbi +6 -6
  1219. data/rbi/openai/resources/vector_stores/files.rbi +6 -6
  1220. data/rbi/openai/resources/vector_stores.rbi +3 -3
  1221. data/realtime.md +101 -0
  1222. data/responses-websocket.md +182 -0
  1223. data/sig/openai/helpers/local_audio/interface.rbs +62 -0
  1224. data/sig/openai/helpers/realtime/connection.rbs +9 -1
  1225. data/sig/openai/helpers/realtime/extensions.rbs +4 -0
  1226. data/sig/openai/helpers/realtime/recovery.rbs +19 -0
  1227. data/sig/openai/models/admin/organization/projects/project_api_key.rbs +7 -2
  1228. data/sig/openai/models/admin/organization/projects/service_account_create_params.rbs +5 -0
  1229. data/sig/openai/models/admin/organization/projects/service_account_create_response.rbs +7 -2
  1230. data/sig/openai/models/beta/beta_response_input_item.rbs +39 -2
  1231. data/sig/openai/models/beta/beta_response_item.rbs +39 -2
  1232. data/sig/openai/models/beta/beta_response_output_item.rbs +39 -2
  1233. data/sig/openai/models/beta/beta_tool.rbs +11 -1
  1234. data/sig/openai/models/conversations/conversation_item.rbs +39 -2
  1235. data/sig/openai/models/image_edit_completed_event.rbs +11 -4
  1236. data/sig/openai/models/image_edit_params.rbs +3 -1
  1237. data/sig/openai/models/image_edit_partial_image_event.rbs +11 -4
  1238. data/sig/openai/models/image_gen_completed_event.rbs +11 -4
  1239. data/sig/openai/models/image_gen_partial_image_event.rbs +11 -4
  1240. data/sig/openai/models/image_generate_params.rbs +4 -1
  1241. data/sig/openai/models/image_model.rbs +8 -0
  1242. data/sig/openai/models/images_response.rbs +10 -4
  1243. data/sig/openai/models/responses/response_input_item.rbs +39 -2
  1244. data/sig/openai/models/responses/response_item.rbs +39 -2
  1245. data/sig/openai/models/responses/response_output_item.rbs +39 -2
  1246. data/sig/openai/models/responses/tool.rbs +11 -1
  1247. data/sig/openai/resources/admin/organization/projects/service_accounts.rbs +1 -0
  1248. metadata +15 -1
@@ -582,130 +582,190 @@ module OpenAI
582
582
  )
583
583
 
584
584
  # @!method initialize(id:, effective_at:, type:, actor: nil, api_key_created: nil, api_key_deleted: nil, api_key_updated: nil, certificate_created: nil, certificate_deleted: nil, certificate_updated: nil, certificates_activated: nil, certificates_deactivated: nil, checkpoint_permission_created: nil, checkpoint_permission_deleted: nil, external_key_registered: nil, external_key_removed: nil, group_created: nil, group_deleted: nil, group_updated: nil, invite_accepted: nil, invite_deleted: nil, invite_sent: nil, ip_allowlist_config_activated: nil, ip_allowlist_config_deactivated: nil, ip_allowlist_created: nil, ip_allowlist_deleted: nil, ip_allowlist_updated: nil, login_failed: nil, login_succeeded: nil, logout_failed: nil, logout_succeeded: nil, organization_updated: nil, project: nil, project_archived: nil, project_created: nil, project_deleted: nil, project_updated: nil, rate_limit_deleted: nil, rate_limit_updated: nil, role_assignment_created: nil, role_assignment_deleted: nil, role_bound_to_resource: nil, role_created: nil, role_deleted: nil, role_unbound_from_resource: nil, role_updated: nil, scim_disabled: nil, scim_enabled: nil, service_account_created: nil, service_account_deleted: nil, service_account_updated: nil, user_added: nil, user_deleted: nil, user_updated: nil, workload_identity_provider_mapping_created: nil, workload_identity_provider_mapping_deleted: nil, workload_identity_provider_mapping_updated: nil, workload_identity_provider_created: nil, workload_identity_provider_deleted: nil, workload_identity_provider_updated: nil)
585
- # Some parameter documentations has been truncated, see
586
- # {OpenAI::Models::Admin::Organization::AuditLogListResponse} for more details.
587
- #
588
585
  # A log of a user action or configuration change within this organization.
589
586
  #
590
- # @param id [String] The ID of this log.
587
+ # @param id [String]
588
+ # The ID of this log.
591
589
  #
592
- # @param effective_at [Integer] The Unix timestamp (in seconds) of the event.
590
+ # @param effective_at [Integer]
591
+ # The Unix timestamp (in seconds) of the event.
593
592
  #
594
- # @param type [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::Type] The event type.
593
+ # @param type [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::Type]
594
+ # The event type.
595
595
  #
596
- # @param actor [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor, nil] The actor who performed the audit logged action.
596
+ # @param actor [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor, nil]
597
+ # The actor who performed the audit logged action.
597
598
  #
598
- # @param api_key_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyCreated] The details for events with this `type`.
599
+ # @param api_key_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyCreated]
600
+ # The details for events with this `type`.
599
601
  #
600
- # @param api_key_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyDeleted] The details for events with this `type`.
602
+ # @param api_key_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyDeleted]
603
+ # The details for events with this `type`.
601
604
  #
602
- # @param api_key_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyUpdated] The details for events with this `type`.
605
+ # @param api_key_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyUpdated]
606
+ # The details for events with this `type`.
603
607
  #
604
- # @param certificate_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificateCreated] The details for events with this `type`.
608
+ # @param certificate_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificateCreated]
609
+ # The details for events with this `type`.
605
610
  #
606
- # @param certificate_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificateDeleted] The details for events with this `type`.
611
+ # @param certificate_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificateDeleted]
612
+ # The details for events with this `type`.
607
613
  #
608
- # @param certificate_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificateUpdated] The details for events with this `type`.
614
+ # @param certificate_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificateUpdated]
615
+ # The details for events with this `type`.
609
616
  #
610
- # @param certificates_activated [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificatesActivated] The details for events with this `type`.
617
+ # @param certificates_activated [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificatesActivated]
618
+ # The details for events with this `type`.
611
619
  #
612
- # @param certificates_deactivated [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificatesDeactivated] The details for events with this `type`.
620
+ # @param certificates_deactivated [OpenAI::Models::Admin::Organization::AuditLogListResponse::CertificatesDeactivated]
621
+ # The details for events with this `type`.
613
622
  #
614
- # @param checkpoint_permission_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::CheckpointPermissionCreated] The project and fine-tuned model checkpoint that the checkpoint permission was c
623
+ # @param checkpoint_permission_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::CheckpointPermissionCreated]
624
+ # The project and fine-tuned model checkpoint that the checkpoint permission was
625
+ # created for.
615
626
  #
616
- # @param checkpoint_permission_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::CheckpointPermissionDeleted] The details for events with this `type`.
627
+ # @param checkpoint_permission_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::CheckpointPermissionDeleted]
628
+ # The details for events with this `type`.
617
629
  #
618
- # @param external_key_registered [OpenAI::Models::Admin::Organization::AuditLogListResponse::ExternalKeyRegistered] The details for events with this `type`.
630
+ # @param external_key_registered [OpenAI::Models::Admin::Organization::AuditLogListResponse::ExternalKeyRegistered]
631
+ # The details for events with this `type`.
619
632
  #
620
- # @param external_key_removed [OpenAI::Models::Admin::Organization::AuditLogListResponse::ExternalKeyRemoved] The details for events with this `type`.
633
+ # @param external_key_removed [OpenAI::Models::Admin::Organization::AuditLogListResponse::ExternalKeyRemoved]
634
+ # The details for events with this `type`.
621
635
  #
622
- # @param group_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupCreated] The details for events with this `type`.
636
+ # @param group_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupCreated]
637
+ # The details for events with this `type`.
623
638
  #
624
- # @param group_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupDeleted] The details for events with this `type`.
639
+ # @param group_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupDeleted]
640
+ # The details for events with this `type`.
625
641
  #
626
- # @param group_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupUpdated] The details for events with this `type`.
642
+ # @param group_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupUpdated]
643
+ # The details for events with this `type`.
627
644
  #
628
- # @param invite_accepted [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteAccepted] The details for events with this `type`.
645
+ # @param invite_accepted [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteAccepted]
646
+ # The details for events with this `type`.
629
647
  #
630
- # @param invite_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteDeleted] The details for events with this `type`.
648
+ # @param invite_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteDeleted]
649
+ # The details for events with this `type`.
631
650
  #
632
- # @param invite_sent [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteSent] The details for events with this `type`.
651
+ # @param invite_sent [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteSent]
652
+ # The details for events with this `type`.
633
653
  #
634
- # @param ip_allowlist_config_activated [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigActivated] The details for events with this `type`.
654
+ # @param ip_allowlist_config_activated [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigActivated]
655
+ # The details for events with this `type`.
635
656
  #
636
- # @param ip_allowlist_config_deactivated [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigDeactivated] The details for events with this `type`.
657
+ # @param ip_allowlist_config_deactivated [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigDeactivated]
658
+ # The details for events with this `type`.
637
659
  #
638
- # @param ip_allowlist_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistCreated] The details for events with this `type`.
660
+ # @param ip_allowlist_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistCreated]
661
+ # The details for events with this `type`.
639
662
  #
640
- # @param ip_allowlist_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistDeleted] The details for events with this `type`.
663
+ # @param ip_allowlist_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistDeleted]
664
+ # The details for events with this `type`.
641
665
  #
642
- # @param ip_allowlist_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistUpdated] The details for events with this `type`.
666
+ # @param ip_allowlist_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistUpdated]
667
+ # The details for events with this `type`.
643
668
  #
644
- # @param login_failed [OpenAI::Models::Admin::Organization::AuditLogListResponse::LoginFailed] The details for events with this `type`.
669
+ # @param login_failed [OpenAI::Models::Admin::Organization::AuditLogListResponse::LoginFailed]
670
+ # The details for events with this `type`.
645
671
  #
646
- # @param login_succeeded [Object] This event has no additional fields beyond the standard audit log attributes.
672
+ # @param login_succeeded [Object]
673
+ # This event has no additional fields beyond the standard audit log attributes.
647
674
  #
648
- # @param logout_failed [OpenAI::Models::Admin::Organization::AuditLogListResponse::LogoutFailed] The details for events with this `type`.
675
+ # @param logout_failed [OpenAI::Models::Admin::Organization::AuditLogListResponse::LogoutFailed]
676
+ # The details for events with this `type`.
649
677
  #
650
- # @param logout_succeeded [Object] This event has no additional fields beyond the standard audit log attributes.
678
+ # @param logout_succeeded [Object]
679
+ # This event has no additional fields beyond the standard audit log attributes.
651
680
  #
652
- # @param organization_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::OrganizationUpdated] The details for events with this `type`.
681
+ # @param organization_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::OrganizationUpdated]
682
+ # The details for events with this `type`.
653
683
  #
654
- # @param project [OpenAI::Models::Admin::Organization::AuditLogListResponse::Project] The project that the action was scoped to. Absent for actions not scoped to proj
684
+ # @param project [OpenAI::Models::Admin::Organization::AuditLogListResponse::Project]
685
+ # The project that the action was scoped to. Absent for actions not scoped to
686
+ # projects. Note that any admin actions taken via Admin API keys are associated
687
+ # with the default project.
655
688
  #
656
- # @param project_archived [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectArchived] The details for events with this `type`.
689
+ # @param project_archived [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectArchived]
690
+ # The details for events with this `type`.
657
691
  #
658
- # @param project_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectCreated] The details for events with this `type`.
692
+ # @param project_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectCreated]
693
+ # The details for events with this `type`.
659
694
  #
660
- # @param project_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectDeleted] The details for events with this `type`.
695
+ # @param project_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectDeleted]
696
+ # The details for events with this `type`.
661
697
  #
662
- # @param project_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectUpdated] The details for events with this `type`.
698
+ # @param project_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectUpdated]
699
+ # The details for events with this `type`.
663
700
  #
664
- # @param rate_limit_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::RateLimitDeleted] The details for events with this `type`.
701
+ # @param rate_limit_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::RateLimitDeleted]
702
+ # The details for events with this `type`.
665
703
  #
666
- # @param rate_limit_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::RateLimitUpdated] The details for events with this `type`.
704
+ # @param rate_limit_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::RateLimitUpdated]
705
+ # The details for events with this `type`.
667
706
  #
668
- # @param role_assignment_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleAssignmentCreated] The details for events with this `type`.
707
+ # @param role_assignment_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleAssignmentCreated]
708
+ # The details for events with this `type`.
669
709
  #
670
- # @param role_assignment_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleAssignmentDeleted] The details for events with this `type`.
710
+ # @param role_assignment_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleAssignmentDeleted]
711
+ # The details for events with this `type`.
671
712
  #
672
- # @param role_bound_to_resource [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource] The details for events with this `type`.
713
+ # @param role_bound_to_resource [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource]
714
+ # The details for events with this `type`.
673
715
  #
674
- # @param role_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleCreated] The details for events with this `type`.
716
+ # @param role_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleCreated]
717
+ # The details for events with this `type`.
675
718
  #
676
- # @param role_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleDeleted] The details for events with this `type`.
719
+ # @param role_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleDeleted]
720
+ # The details for events with this `type`.
677
721
  #
678
- # @param role_unbound_from_resource [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUnboundFromResource] The details for events with this `type`.
722
+ # @param role_unbound_from_resource [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUnboundFromResource]
723
+ # The details for events with this `type`.
679
724
  #
680
- # @param role_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUpdated] The details for events with this `type`.
725
+ # @param role_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUpdated]
726
+ # The details for events with this `type`.
681
727
  #
682
- # @param scim_disabled [OpenAI::Models::Admin::Organization::AuditLogListResponse::ScimDisabled] The details for events with this `type`.
728
+ # @param scim_disabled [OpenAI::Models::Admin::Organization::AuditLogListResponse::ScimDisabled]
729
+ # The details for events with this `type`.
683
730
  #
684
- # @param scim_enabled [OpenAI::Models::Admin::Organization::AuditLogListResponse::ScimEnabled] The details for events with this `type`.
731
+ # @param scim_enabled [OpenAI::Models::Admin::Organization::AuditLogListResponse::ScimEnabled]
732
+ # The details for events with this `type`.
685
733
  #
686
- # @param service_account_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountCreated] The details for events with this `type`.
734
+ # @param service_account_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountCreated]
735
+ # The details for events with this `type`.
687
736
  #
688
- # @param service_account_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountDeleted] The details for events with this `type`.
737
+ # @param service_account_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountDeleted]
738
+ # The details for events with this `type`.
689
739
  #
690
- # @param service_account_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountUpdated] The details for events with this `type`.
740
+ # @param service_account_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountUpdated]
741
+ # The details for events with this `type`.
691
742
  #
692
- # @param user_added [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserAdded] The details for events with this `type`.
743
+ # @param user_added [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserAdded]
744
+ # The details for events with this `type`.
693
745
  #
694
- # @param user_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserDeleted] The details for events with this `type`.
746
+ # @param user_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserDeleted]
747
+ # The details for events with this `type`.
695
748
  #
696
- # @param user_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated] The details for events with this `type`.
749
+ # @param user_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated]
750
+ # The details for events with this `type`.
697
751
  #
698
- # @param workload_identity_provider_mapping_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingCreated] The details for events with this `type`.
752
+ # @param workload_identity_provider_mapping_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingCreated]
753
+ # The details for events with this `type`.
699
754
  #
700
- # @param workload_identity_provider_mapping_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingDeleted] The details for events with this `type`.
755
+ # @param workload_identity_provider_mapping_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingDeleted]
756
+ # The details for events with this `type`.
701
757
  #
702
- # @param workload_identity_provider_mapping_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingUpdated] The details for events with this `type`.
758
+ # @param workload_identity_provider_mapping_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderMappingUpdated]
759
+ # The details for events with this `type`.
703
760
  #
704
- # @param workload_identity_provider_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderCreated] The details for events with this `type`.
761
+ # @param workload_identity_provider_created [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderCreated]
762
+ # The details for events with this `type`.
705
763
  #
706
- # @param workload_identity_provider_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderDeleted] The details for events with this `type`.
764
+ # @param workload_identity_provider_deleted [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderDeleted]
765
+ # The details for events with this `type`.
707
766
  #
708
- # @param workload_identity_provider_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderUpdated] The details for events with this `type`.
767
+ # @param workload_identity_provider_updated [OpenAI::Models::Admin::Organization::AuditLogListResponse::WorkloadIdentityProviderUpdated]
768
+ # The details for events with this `type`.
709
769
 
710
770
  # The event type.
711
771
  #
@@ -888,11 +948,14 @@ module OpenAI
888
948
  # @!method initialize(api_key: nil, session: nil, type: nil)
889
949
  # The actor who performed the audit logged action.
890
950
  #
891
- # @param api_key [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey] The API Key used to perform the audit logged action.
951
+ # @param api_key [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey]
952
+ # The API Key used to perform the audit logged action.
892
953
  #
893
- # @param session [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::Session] The session in which the audit logged action was performed.
954
+ # @param session [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::Session]
955
+ # The session in which the audit logged action was performed.
894
956
  #
895
- # @param type [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::Type] The type of actor. Is either `session` or `api_key`.
957
+ # @param type [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::Type]
958
+ # The type of actor. Is either `session` or `api_key`.
896
959
 
897
960
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor#api_key
898
961
  class APIKey < OpenAI::Internal::Type::BaseModel
@@ -929,13 +992,17 @@ module OpenAI
929
992
  # @!method initialize(id: nil, service_account: nil, type: nil, user: nil)
930
993
  # The API Key used to perform the audit logged action.
931
994
  #
932
- # @param id [String] The tracking id of the API key.
995
+ # @param id [String]
996
+ # The tracking id of the API key.
933
997
  #
934
- # @param service_account [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey::ServiceAccount] The service account that performed the audit logged action.
998
+ # @param service_account [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey::ServiceAccount]
999
+ # The service account that performed the audit logged action.
935
1000
  #
936
- # @param type [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey::Type] The type of API key. Can be either `user` or `service_account`.
1001
+ # @param type [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey::Type]
1002
+ # The type of API key. Can be either `user` or `service_account`.
937
1003
  #
938
- # @param user [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey::User] The user who performed the audit logged action.
1004
+ # @param user [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey::User]
1005
+ # The user who performed the audit logged action.
939
1006
 
940
1007
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::APIKey#service_account
941
1008
  class ServiceAccount < OpenAI::Internal::Type::BaseModel
@@ -948,7 +1015,8 @@ module OpenAI
948
1015
  # @!method initialize(id: nil)
949
1016
  # The service account that performed the audit logged action.
950
1017
  #
951
- # @param id [String] The service account id.
1018
+ # @param id [String]
1019
+ # The service account id.
952
1020
  end
953
1021
 
954
1022
  # The type of API key. Can be either `user` or `service_account`.
@@ -981,9 +1049,11 @@ module OpenAI
981
1049
  # @!method initialize(id: nil, email: nil)
982
1050
  # The user who performed the audit logged action.
983
1051
  #
984
- # @param id [String] The user id.
1052
+ # @param id [String]
1053
+ # The user id.
985
1054
  #
986
- # @param email [String] The user email.
1055
+ # @param email [String]
1056
+ # The user email.
987
1057
  end
988
1058
  end
989
1059
 
@@ -1004,9 +1074,11 @@ module OpenAI
1004
1074
  # @!method initialize(ip_address: nil, user: nil)
1005
1075
  # The session in which the audit logged action was performed.
1006
1076
  #
1007
- # @param ip_address [String] The IP address from which the action was performed.
1077
+ # @param ip_address [String]
1078
+ # The IP address from which the action was performed.
1008
1079
  #
1009
- # @param user [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::Session::User] The user who performed the audit logged action.
1080
+ # @param user [OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::Session::User]
1081
+ # The user who performed the audit logged action.
1010
1082
 
1011
1083
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::Actor::Session#user
1012
1084
  class User < OpenAI::Internal::Type::BaseModel
@@ -1025,9 +1097,11 @@ module OpenAI
1025
1097
  # @!method initialize(id: nil, email: nil)
1026
1098
  # The user who performed the audit logged action.
1027
1099
  #
1028
- # @param id [String] The user id.
1100
+ # @param id [String]
1101
+ # The user id.
1029
1102
  #
1030
- # @param email [String] The user email.
1103
+ # @param email [String]
1104
+ # The user email.
1031
1105
  end
1032
1106
  end
1033
1107
 
@@ -1062,9 +1136,11 @@ module OpenAI
1062
1136
  # @!method initialize(id: nil, data: nil)
1063
1137
  # The details for events with this `type`.
1064
1138
  #
1065
- # @param id [String] The tracking ID of the API key.
1139
+ # @param id [String]
1140
+ # The tracking ID of the API key.
1066
1141
  #
1067
- # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyCreated::Data] The payload used to create the API key.
1142
+ # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyCreated::Data]
1143
+ # The payload used to create the API key.
1068
1144
 
1069
1145
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyCreated#data
1070
1146
  class Data < OpenAI::Internal::Type::BaseModel
@@ -1077,7 +1153,8 @@ module OpenAI
1077
1153
  # @!method initialize(scopes: nil)
1078
1154
  # The payload used to create the API key.
1079
1155
  #
1080
- # @param scopes [Array<String>] A list of scopes allowed for the API key, e.g. `["api.model.request"]`
1156
+ # @param scopes [Array<String>]
1157
+ # A list of scopes allowed for the API key, e.g. `["api.model.request"]`
1081
1158
  end
1082
1159
  end
1083
1160
 
@@ -1092,7 +1169,8 @@ module OpenAI
1092
1169
  # @!method initialize(id: nil)
1093
1170
  # The details for events with this `type`.
1094
1171
  #
1095
- # @param id [String] The tracking ID of the API key.
1172
+ # @param id [String]
1173
+ # The tracking ID of the API key.
1096
1174
  end
1097
1175
 
1098
1176
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#api_key_updated
@@ -1115,9 +1193,11 @@ module OpenAI
1115
1193
  # @!method initialize(id: nil, changes_requested: nil)
1116
1194
  # The details for events with this `type`.
1117
1195
  #
1118
- # @param id [String] The tracking ID of the API key.
1196
+ # @param id [String]
1197
+ # The tracking ID of the API key.
1119
1198
  #
1120
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyUpdated::ChangesRequested] The payload used to update the API key.
1199
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyUpdated::ChangesRequested]
1200
+ # The payload used to update the API key.
1121
1201
 
1122
1202
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::APIKeyUpdated#changes_requested
1123
1203
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -1130,7 +1210,8 @@ module OpenAI
1130
1210
  # @!method initialize(scopes: nil)
1131
1211
  # The payload used to update the API key.
1132
1212
  #
1133
- # @param scopes [Array<String>] A list of scopes allowed for the API key, e.g. `["api.model.request"]`
1213
+ # @param scopes [Array<String>]
1214
+ # A list of scopes allowed for the API key, e.g. `["api.model.request"]`
1134
1215
  end
1135
1216
  end
1136
1217
 
@@ -1151,9 +1232,11 @@ module OpenAI
1151
1232
  # @!method initialize(id: nil, name: nil)
1152
1233
  # The details for events with this `type`.
1153
1234
  #
1154
- # @param id [String] The certificate ID.
1235
+ # @param id [String]
1236
+ # The certificate ID.
1155
1237
  #
1156
- # @param name [String] The name of the certificate.
1238
+ # @param name [String]
1239
+ # The name of the certificate.
1157
1240
  end
1158
1241
 
1159
1242
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#certificate_deleted
@@ -1179,11 +1262,14 @@ module OpenAI
1179
1262
  # @!method initialize(id: nil, certificate: nil, name: nil)
1180
1263
  # The details for events with this `type`.
1181
1264
  #
1182
- # @param id [String] The certificate ID.
1265
+ # @param id [String]
1266
+ # The certificate ID.
1183
1267
  #
1184
- # @param certificate [String] The certificate content in PEM format.
1268
+ # @param certificate [String]
1269
+ # The certificate content in PEM format.
1185
1270
  #
1186
- # @param name [String] The name of the certificate.
1271
+ # @param name [String]
1272
+ # The name of the certificate.
1187
1273
  end
1188
1274
 
1189
1275
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#certificate_updated
@@ -1203,9 +1289,11 @@ module OpenAI
1203
1289
  # @!method initialize(id: nil, name: nil)
1204
1290
  # The details for events with this `type`.
1205
1291
  #
1206
- # @param id [String] The certificate ID.
1292
+ # @param id [String]
1293
+ # The certificate ID.
1207
1294
  #
1208
- # @param name [String] The name of the certificate.
1295
+ # @param name [String]
1296
+ # The name of the certificate.
1209
1297
  end
1210
1298
 
1211
1299
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#certificates_activated
@@ -1241,9 +1329,11 @@ module OpenAI
1241
1329
  optional :name, String
1242
1330
 
1243
1331
  # @!method initialize(id: nil, name: nil)
1244
- # @param id [String] The certificate ID.
1332
+ # @param id [String]
1333
+ # The certificate ID.
1245
1334
  #
1246
- # @param name [String] The name of the certificate.
1335
+ # @param name [String]
1336
+ # The name of the certificate.
1247
1337
  end
1248
1338
  end
1249
1339
 
@@ -1280,9 +1370,11 @@ module OpenAI
1280
1370
  optional :name, String
1281
1371
 
1282
1372
  # @!method initialize(id: nil, name: nil)
1283
- # @param id [String] The certificate ID.
1373
+ # @param id [String]
1374
+ # The certificate ID.
1284
1375
  #
1285
- # @param name [String] The name of the certificate.
1376
+ # @param name [String]
1377
+ # The name of the certificate.
1286
1378
  end
1287
1379
  end
1288
1380
 
@@ -1307,9 +1399,11 @@ module OpenAI
1307
1399
  # The project and fine-tuned model checkpoint that the checkpoint permission was
1308
1400
  # created for.
1309
1401
  #
1310
- # @param id [String] The ID of the checkpoint permission.
1402
+ # @param id [String]
1403
+ # The ID of the checkpoint permission.
1311
1404
  #
1312
- # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::CheckpointPermissionCreated::Data] The payload used to create the checkpoint permission.
1405
+ # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::CheckpointPermissionCreated::Data]
1406
+ # The payload used to create the checkpoint permission.
1313
1407
 
1314
1408
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::CheckpointPermissionCreated#data
1315
1409
  class Data < OpenAI::Internal::Type::BaseModel
@@ -1328,9 +1422,11 @@ module OpenAI
1328
1422
  # @!method initialize(fine_tuned_model_checkpoint: nil, project_id: nil)
1329
1423
  # The payload used to create the checkpoint permission.
1330
1424
  #
1331
- # @param fine_tuned_model_checkpoint [String] The ID of the fine-tuned model checkpoint.
1425
+ # @param fine_tuned_model_checkpoint [String]
1426
+ # The ID of the fine-tuned model checkpoint.
1332
1427
  #
1333
- # @param project_id [String] The ID of the project that the checkpoint permission was created for.
1428
+ # @param project_id [String]
1429
+ # The ID of the project that the checkpoint permission was created for.
1334
1430
  end
1335
1431
  end
1336
1432
 
@@ -1345,7 +1441,8 @@ module OpenAI
1345
1441
  # @!method initialize(id: nil)
1346
1442
  # The details for events with this `type`.
1347
1443
  #
1348
- # @param id [String] The ID of the checkpoint permission.
1444
+ # @param id [String]
1445
+ # The ID of the checkpoint permission.
1349
1446
  end
1350
1447
 
1351
1448
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#external_key_registered
@@ -1365,9 +1462,11 @@ module OpenAI
1365
1462
  # @!method initialize(id: nil, data: nil)
1366
1463
  # The details for events with this `type`.
1367
1464
  #
1368
- # @param id [String] The ID of the external key configuration.
1465
+ # @param id [String]
1466
+ # The ID of the external key configuration.
1369
1467
  #
1370
- # @param data [Object] The configuration for the external key.
1468
+ # @param data [Object]
1469
+ # The configuration for the external key.
1371
1470
  end
1372
1471
 
1373
1472
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#external_key_removed
@@ -1381,7 +1480,8 @@ module OpenAI
1381
1480
  # @!method initialize(id: nil)
1382
1481
  # The details for events with this `type`.
1383
1482
  #
1384
- # @param id [String] The ID of the external key configuration.
1483
+ # @param id [String]
1484
+ # The ID of the external key configuration.
1385
1485
  end
1386
1486
 
1387
1487
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#group_created
@@ -1401,9 +1501,11 @@ module OpenAI
1401
1501
  # @!method initialize(id: nil, data: nil)
1402
1502
  # The details for events with this `type`.
1403
1503
  #
1404
- # @param id [String] The ID of the group.
1504
+ # @param id [String]
1505
+ # The ID of the group.
1405
1506
  #
1406
- # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupCreated::Data] Information about the created group.
1507
+ # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupCreated::Data]
1508
+ # Information about the created group.
1407
1509
 
1408
1510
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupCreated#data
1409
1511
  class Data < OpenAI::Internal::Type::BaseModel
@@ -1416,7 +1518,8 @@ module OpenAI
1416
1518
  # @!method initialize(group_name: nil)
1417
1519
  # Information about the created group.
1418
1520
  #
1419
- # @param group_name [String] The group name.
1521
+ # @param group_name [String]
1522
+ # The group name.
1420
1523
  end
1421
1524
  end
1422
1525
 
@@ -1431,7 +1534,8 @@ module OpenAI
1431
1534
  # @!method initialize(id: nil)
1432
1535
  # The details for events with this `type`.
1433
1536
  #
1434
- # @param id [String] The ID of the group.
1537
+ # @param id [String]
1538
+ # The ID of the group.
1435
1539
  end
1436
1540
 
1437
1541
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#group_updated
@@ -1454,9 +1558,11 @@ module OpenAI
1454
1558
  # @!method initialize(id: nil, changes_requested: nil)
1455
1559
  # The details for events with this `type`.
1456
1560
  #
1457
- # @param id [String] The ID of the group.
1561
+ # @param id [String]
1562
+ # The ID of the group.
1458
1563
  #
1459
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupUpdated::ChangesRequested] The payload used to update the group.
1564
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupUpdated::ChangesRequested]
1565
+ # The payload used to update the group.
1460
1566
 
1461
1567
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::GroupUpdated#changes_requested
1462
1568
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -1469,7 +1575,8 @@ module OpenAI
1469
1575
  # @!method initialize(group_name: nil)
1470
1576
  # The payload used to update the group.
1471
1577
  #
1472
- # @param group_name [String] The updated group name.
1578
+ # @param group_name [String]
1579
+ # The updated group name.
1473
1580
  end
1474
1581
  end
1475
1582
 
@@ -1484,7 +1591,8 @@ module OpenAI
1484
1591
  # @!method initialize(id: nil)
1485
1592
  # The details for events with this `type`.
1486
1593
  #
1487
- # @param id [String] The ID of the invite.
1594
+ # @param id [String]
1595
+ # The ID of the invite.
1488
1596
  end
1489
1597
 
1490
1598
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#invite_deleted
@@ -1498,7 +1606,8 @@ module OpenAI
1498
1606
  # @!method initialize(id: nil)
1499
1607
  # The details for events with this `type`.
1500
1608
  #
1501
- # @param id [String] The ID of the invite.
1609
+ # @param id [String]
1610
+ # The ID of the invite.
1502
1611
  end
1503
1612
 
1504
1613
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#invite_sent
@@ -1518,9 +1627,11 @@ module OpenAI
1518
1627
  # @!method initialize(id: nil, data: nil)
1519
1628
  # The details for events with this `type`.
1520
1629
  #
1521
- # @param id [String] The ID of the invite.
1630
+ # @param id [String]
1631
+ # The ID of the invite.
1522
1632
  #
1523
- # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteSent::Data] The payload used to create the invite.
1633
+ # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteSent::Data]
1634
+ # The payload used to create the invite.
1524
1635
 
1525
1636
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::InviteSent#data
1526
1637
  class Data < OpenAI::Internal::Type::BaseModel
@@ -1539,9 +1650,11 @@ module OpenAI
1539
1650
  # @!method initialize(email: nil, role: nil)
1540
1651
  # The payload used to create the invite.
1541
1652
  #
1542
- # @param email [String] The email invited to the organization.
1653
+ # @param email [String]
1654
+ # The email invited to the organization.
1543
1655
  #
1544
- # @param role [String] The role the email was invited to be. Is either `owner` or `member`.
1656
+ # @param role [String]
1657
+ # The role the email was invited to be. Is either `owner` or `member`.
1545
1658
  end
1546
1659
  end
1547
1660
 
@@ -1563,8 +1676,8 @@ module OpenAI
1563
1676
  # @!method initialize(configs: nil)
1564
1677
  # The details for events with this `type`.
1565
1678
  #
1566
- # @param configs [Array<OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigActivated::Config>] The configurations that were activated.
1567
-
1679
+ # @param configs [Array<OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigActivated::Config>]
1680
+ # The configurations that were activated.
1568
1681
  class Config < OpenAI::Internal::Type::BaseModel
1569
1682
  # @!attribute id
1570
1683
  # The ID of the IP allowlist configuration.
@@ -1579,9 +1692,11 @@ module OpenAI
1579
1692
  optional :name, String
1580
1693
 
1581
1694
  # @!method initialize(id: nil, name: nil)
1582
- # @param id [String] The ID of the IP allowlist configuration.
1695
+ # @param id [String]
1696
+ # The ID of the IP allowlist configuration.
1583
1697
  #
1584
- # @param name [String] The name of the IP allowlist configuration.
1698
+ # @param name [String]
1699
+ # The name of the IP allowlist configuration.
1585
1700
  end
1586
1701
  end
1587
1702
 
@@ -1603,8 +1718,8 @@ module OpenAI
1603
1718
  # @!method initialize(configs: nil)
1604
1719
  # The details for events with this `type`.
1605
1720
  #
1606
- # @param configs [Array<OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigDeactivated::Config>] The configurations that were deactivated.
1607
-
1721
+ # @param configs [Array<OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigDeactivated::Config>]
1722
+ # The configurations that were deactivated.
1608
1723
  class Config < OpenAI::Internal::Type::BaseModel
1609
1724
  # @!attribute id
1610
1725
  # The ID of the IP allowlist configuration.
@@ -1619,9 +1734,11 @@ module OpenAI
1619
1734
  optional :name, String
1620
1735
 
1621
1736
  # @!method initialize(id: nil, name: nil)
1622
- # @param id [String] The ID of the IP allowlist configuration.
1737
+ # @param id [String]
1738
+ # The ID of the IP allowlist configuration.
1623
1739
  #
1624
- # @param name [String] The name of the IP allowlist configuration.
1740
+ # @param name [String]
1741
+ # The name of the IP allowlist configuration.
1625
1742
  end
1626
1743
  end
1627
1744
 
@@ -1648,11 +1765,14 @@ module OpenAI
1648
1765
  # @!method initialize(id: nil, allowed_ips: nil, name: nil)
1649
1766
  # The details for events with this `type`.
1650
1767
  #
1651
- # @param id [String] The ID of the IP allowlist configuration.
1768
+ # @param id [String]
1769
+ # The ID of the IP allowlist configuration.
1652
1770
  #
1653
- # @param allowed_ips [Array<String>] The IP addresses or CIDR ranges included in the configuration.
1771
+ # @param allowed_ips [Array<String>]
1772
+ # The IP addresses or CIDR ranges included in the configuration.
1654
1773
  #
1655
- # @param name [String] The name of the IP allowlist configuration.
1774
+ # @param name [String]
1775
+ # The name of the IP allowlist configuration.
1656
1776
  end
1657
1777
 
1658
1778
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#ip_allowlist_deleted
@@ -1678,11 +1798,14 @@ module OpenAI
1678
1798
  # @!method initialize(id: nil, allowed_ips: nil, name: nil)
1679
1799
  # The details for events with this `type`.
1680
1800
  #
1681
- # @param id [String] The ID of the IP allowlist configuration.
1801
+ # @param id [String]
1802
+ # The ID of the IP allowlist configuration.
1682
1803
  #
1683
- # @param allowed_ips [Array<String>] The IP addresses or CIDR ranges that were in the configuration.
1804
+ # @param allowed_ips [Array<String>]
1805
+ # The IP addresses or CIDR ranges that were in the configuration.
1684
1806
  #
1685
- # @param name [String] The name of the IP allowlist configuration.
1807
+ # @param name [String]
1808
+ # The name of the IP allowlist configuration.
1686
1809
  end
1687
1810
 
1688
1811
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#ip_allowlist_updated
@@ -1702,9 +1825,11 @@ module OpenAI
1702
1825
  # @!method initialize(id: nil, allowed_ips: nil)
1703
1826
  # The details for events with this `type`.
1704
1827
  #
1705
- # @param id [String] The ID of the IP allowlist configuration.
1828
+ # @param id [String]
1829
+ # The ID of the IP allowlist configuration.
1706
1830
  #
1707
- # @param allowed_ips [Array<String>] The updated set of IP addresses or CIDR ranges in the configuration.
1831
+ # @param allowed_ips [Array<String>]
1832
+ # The updated set of IP addresses or CIDR ranges in the configuration.
1708
1833
  end
1709
1834
 
1710
1835
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#login_failed
@@ -1724,9 +1849,11 @@ module OpenAI
1724
1849
  # @!method initialize(error_code: nil, error_message: nil)
1725
1850
  # The details for events with this `type`.
1726
1851
  #
1727
- # @param error_code [String] The error code of the failure.
1852
+ # @param error_code [String]
1853
+ # The error code of the failure.
1728
1854
  #
1729
- # @param error_message [String] The error message of the failure.
1855
+ # @param error_message [String]
1856
+ # The error message of the failure.
1730
1857
  end
1731
1858
 
1732
1859
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#logout_failed
@@ -1746,9 +1873,11 @@ module OpenAI
1746
1873
  # @!method initialize(error_code: nil, error_message: nil)
1747
1874
  # The details for events with this `type`.
1748
1875
  #
1749
- # @param error_code [String] The error code of the failure.
1876
+ # @param error_code [String]
1877
+ # The error code of the failure.
1750
1878
  #
1751
- # @param error_message [String] The error message of the failure.
1879
+ # @param error_message [String]
1880
+ # The error message of the failure.
1752
1881
  end
1753
1882
 
1754
1883
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#organization_updated
@@ -1771,9 +1900,11 @@ module OpenAI
1771
1900
  # @!method initialize(id: nil, changes_requested: nil)
1772
1901
  # The details for events with this `type`.
1773
1902
  #
1774
- # @param id [String] The organization ID.
1903
+ # @param id [String]
1904
+ # The organization ID.
1775
1905
  #
1776
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::OrganizationUpdated::ChangesRequested] The payload used to update the organization settings.
1906
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::OrganizationUpdated::ChangesRequested]
1907
+ # The payload used to update the organization settings.
1777
1908
 
1778
1909
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::OrganizationUpdated#changes_requested
1779
1910
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -1825,25 +1956,33 @@ module OpenAI
1825
1956
  optional :usage_dashboard_visibility, String
1826
1957
 
1827
1958
  # @!method initialize(api_call_logging: nil, api_call_logging_project_ids: nil, description: nil, name: nil, threads_ui_visibility: nil, title: nil, usage_dashboard_visibility: nil)
1828
- # Some parameter documentations has been truncated, see
1829
- # {OpenAI::Models::Admin::Organization::AuditLogListResponse::OrganizationUpdated::ChangesRequested}
1830
- # for more details.
1831
- #
1832
1959
  # The payload used to update the organization settings.
1833
1960
  #
1834
- # @param api_call_logging [String] How your organization logs data from supported API calls. One of `disabled`, `en
1961
+ # @param api_call_logging [String]
1962
+ # How your organization logs data from supported API calls. One of `disabled`,
1963
+ # `enabled_per_call`, `enabled_for_all_projects`, or
1964
+ # `enabled_for_selected_projects`
1835
1965
  #
1836
- # @param api_call_logging_project_ids [String] The list of project ids if api_call_logging is set to `enabled_for_selected_proj
1966
+ # @param api_call_logging_project_ids [String]
1967
+ # The list of project ids if api_call_logging is set to
1968
+ # `enabled_for_selected_projects`
1837
1969
  #
1838
- # @param description [String] The organization description.
1970
+ # @param description [String]
1971
+ # The organization description.
1839
1972
  #
1840
- # @param name [String] The organization name.
1973
+ # @param name [String]
1974
+ # The organization name.
1841
1975
  #
1842
- # @param threads_ui_visibility [String] Visibility of the threads page which shows messages created with the Assistants
1976
+ # @param threads_ui_visibility [String]
1977
+ # Visibility of the threads page which shows messages created with the Assistants
1978
+ # API and Playground. One of `ANY_ROLE`, `OWNERS`, or `NONE`.
1843
1979
  #
1844
- # @param title [String] The organization title.
1980
+ # @param title [String]
1981
+ # The organization title.
1845
1982
  #
1846
- # @param usage_dashboard_visibility [String] Visibility of the usage dashboard which shows activity and costs for your organi
1983
+ # @param usage_dashboard_visibility [String]
1984
+ # Visibility of the usage dashboard which shows activity and costs for your
1985
+ # organization. One of `ANY_ROLE` or `OWNERS`.
1847
1986
  end
1848
1987
  end
1849
1988
 
@@ -1866,9 +2005,11 @@ module OpenAI
1866
2005
  # projects. Note that any admin actions taken via Admin API keys are associated
1867
2006
  # with the default project.
1868
2007
  #
1869
- # @param id [String] The project ID.
2008
+ # @param id [String]
2009
+ # The project ID.
1870
2010
  #
1871
- # @param name [String] The project title.
2011
+ # @param name [String]
2012
+ # The project title.
1872
2013
  end
1873
2014
 
1874
2015
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#project_archived
@@ -1882,7 +2023,8 @@ module OpenAI
1882
2023
  # @!method initialize(id: nil)
1883
2024
  # The details for events with this `type`.
1884
2025
  #
1885
- # @param id [String] The project ID.
2026
+ # @param id [String]
2027
+ # The project ID.
1886
2028
  end
1887
2029
 
1888
2030
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#project_created
@@ -1902,9 +2044,11 @@ module OpenAI
1902
2044
  # @!method initialize(id: nil, data: nil)
1903
2045
  # The details for events with this `type`.
1904
2046
  #
1905
- # @param id [String] The project ID.
2047
+ # @param id [String]
2048
+ # The project ID.
1906
2049
  #
1907
- # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectCreated::Data] The payload used to create the project.
2050
+ # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectCreated::Data]
2051
+ # The payload used to create the project.
1908
2052
 
1909
2053
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectCreated#data
1910
2054
  class Data < OpenAI::Internal::Type::BaseModel
@@ -1923,9 +2067,11 @@ module OpenAI
1923
2067
  # @!method initialize(name: nil, title: nil)
1924
2068
  # The payload used to create the project.
1925
2069
  #
1926
- # @param name [String] The project name.
2070
+ # @param name [String]
2071
+ # The project name.
1927
2072
  #
1928
- # @param title [String] The title of the project as seen on the dashboard.
2073
+ # @param title [String]
2074
+ # The title of the project as seen on the dashboard.
1929
2075
  end
1930
2076
  end
1931
2077
 
@@ -1940,7 +2086,8 @@ module OpenAI
1940
2086
  # @!method initialize(id: nil)
1941
2087
  # The details for events with this `type`.
1942
2088
  #
1943
- # @param id [String] The project ID.
2089
+ # @param id [String]
2090
+ # The project ID.
1944
2091
  end
1945
2092
 
1946
2093
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#project_updated
@@ -1963,9 +2110,11 @@ module OpenAI
1963
2110
  # @!method initialize(id: nil, changes_requested: nil)
1964
2111
  # The details for events with this `type`.
1965
2112
  #
1966
- # @param id [String] The project ID.
2113
+ # @param id [String]
2114
+ # The project ID.
1967
2115
  #
1968
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectUpdated::ChangesRequested] The payload used to update the project.
2116
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectUpdated::ChangesRequested]
2117
+ # The payload used to update the project.
1969
2118
 
1970
2119
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::ProjectUpdated#changes_requested
1971
2120
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -1978,7 +2127,8 @@ module OpenAI
1978
2127
  # @!method initialize(title: nil)
1979
2128
  # The payload used to update the project.
1980
2129
  #
1981
- # @param title [String] The title of the project as seen on the dashboard.
2130
+ # @param title [String]
2131
+ # The title of the project as seen on the dashboard.
1982
2132
  end
1983
2133
  end
1984
2134
 
@@ -1993,7 +2143,8 @@ module OpenAI
1993
2143
  # @!method initialize(id: nil)
1994
2144
  # The details for events with this `type`.
1995
2145
  #
1996
- # @param id [String] The rate limit ID
2146
+ # @param id [String]
2147
+ # The rate limit ID
1997
2148
  end
1998
2149
 
1999
2150
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#rate_limit_updated
@@ -2016,9 +2167,11 @@ module OpenAI
2016
2167
  # @!method initialize(id: nil, changes_requested: nil)
2017
2168
  # The details for events with this `type`.
2018
2169
  #
2019
- # @param id [String] The rate limit ID
2170
+ # @param id [String]
2171
+ # The rate limit ID
2020
2172
  #
2021
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::RateLimitUpdated::ChangesRequested] The payload used to update the rate limits.
2173
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::RateLimitUpdated::ChangesRequested]
2174
+ # The payload used to update the rate limits.
2022
2175
 
2023
2176
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::RateLimitUpdated#changes_requested
2024
2177
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -2061,17 +2214,23 @@ module OpenAI
2061
2214
  # @!method initialize(batch_1_day_max_input_tokens: nil, max_audio_megabytes_per_1_minute: nil, max_images_per_1_minute: nil, max_requests_per_1_day: nil, max_requests_per_1_minute: nil, max_tokens_per_1_minute: nil)
2062
2215
  # The payload used to update the rate limits.
2063
2216
  #
2064
- # @param batch_1_day_max_input_tokens [Integer] The maximum batch input tokens per day. Only relevant for certain models.
2217
+ # @param batch_1_day_max_input_tokens [Integer]
2218
+ # The maximum batch input tokens per day. Only relevant for certain models.
2065
2219
  #
2066
- # @param max_audio_megabytes_per_1_minute [Integer] The maximum audio megabytes per minute. Only relevant for certain models.
2220
+ # @param max_audio_megabytes_per_1_minute [Integer]
2221
+ # The maximum audio megabytes per minute. Only relevant for certain models.
2067
2222
  #
2068
- # @param max_images_per_1_minute [Integer] The maximum images per minute. Only relevant for certain models.
2223
+ # @param max_images_per_1_minute [Integer]
2224
+ # The maximum images per minute. Only relevant for certain models.
2069
2225
  #
2070
- # @param max_requests_per_1_day [Integer] The maximum requests per day. Only relevant for certain models.
2226
+ # @param max_requests_per_1_day [Integer]
2227
+ # The maximum requests per day. Only relevant for certain models.
2071
2228
  #
2072
- # @param max_requests_per_1_minute [Integer] The maximum requests per minute.
2229
+ # @param max_requests_per_1_minute [Integer]
2230
+ # The maximum requests per minute.
2073
2231
  #
2074
- # @param max_tokens_per_1_minute [Integer] The maximum tokens per minute.
2232
+ # @param max_tokens_per_1_minute [Integer]
2233
+ # The maximum tokens per minute.
2075
2234
  end
2076
2235
  end
2077
2236
 
@@ -2110,15 +2269,20 @@ module OpenAI
2110
2269
  # @!method initialize(id: nil, principal_id: nil, principal_type: nil, resource_id: nil, resource_type: nil)
2111
2270
  # The details for events with this `type`.
2112
2271
  #
2113
- # @param id [String] The identifier of the role assignment.
2272
+ # @param id [String]
2273
+ # The identifier of the role assignment.
2114
2274
  #
2115
- # @param principal_id [String] The principal (user or group) that received the role.
2275
+ # @param principal_id [String]
2276
+ # The principal (user or group) that received the role.
2116
2277
  #
2117
- # @param principal_type [String] The type of principal (user or group) that received the role.
2278
+ # @param principal_type [String]
2279
+ # The type of principal (user or group) that received the role.
2118
2280
  #
2119
- # @param resource_id [String] The resource the role assignment is scoped to.
2281
+ # @param resource_id [String]
2282
+ # The resource the role assignment is scoped to.
2120
2283
  #
2121
- # @param resource_type [String] The type of resource the role assignment is scoped to.
2284
+ # @param resource_type [String]
2285
+ # The type of resource the role assignment is scoped to.
2122
2286
  end
2123
2287
 
2124
2288
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#role_assignment_deleted
@@ -2156,15 +2320,20 @@ module OpenAI
2156
2320
  # @!method initialize(id: nil, principal_id: nil, principal_type: nil, resource_id: nil, resource_type: nil)
2157
2321
  # The details for events with this `type`.
2158
2322
  #
2159
- # @param id [String] The identifier of the role assignment.
2323
+ # @param id [String]
2324
+ # The identifier of the role assignment.
2160
2325
  #
2161
- # @param principal_id [String] The principal (user or group) that had the role removed.
2326
+ # @param principal_id [String]
2327
+ # The principal (user or group) that had the role removed.
2162
2328
  #
2163
- # @param principal_type [String] The type of principal (user or group) that had the role removed.
2329
+ # @param principal_type [String]
2330
+ # The type of principal (user or group) that had the role removed.
2164
2331
  #
2165
- # @param resource_id [String] The resource the role assignment was scoped to.
2332
+ # @param resource_id [String]
2333
+ # The resource the role assignment was scoped to.
2166
2334
  #
2167
- # @param resource_type [String] The type of resource the role assignment was scoped to.
2335
+ # @param resource_type [String]
2336
+ # The type of resource the role assignment was scoped to.
2168
2337
  end
2169
2338
 
2170
2339
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#role_bound_to_resource
@@ -2235,31 +2404,39 @@ module OpenAI
2235
2404
  optional :workspace_id, String
2236
2405
 
2237
2406
  # @!method initialize(id: nil, connector_id: nil, connector_name: nil, enabled: nil, permissions: nil, resource_id: nil, resource_type: nil, role_id: nil, source: nil, workspace_id: nil)
2238
- # Some parameter documentations has been truncated, see
2239
- # {OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource}
2240
- # for more details.
2241
- #
2242
2407
  # The details for events with this `type`.
2243
2408
  #
2244
- # @param id [String] The ID of the resource the role was bound to. ChatGPT workspace connector resour
2409
+ # @param id [String]
2410
+ # The ID of the resource the role was bound to. ChatGPT workspace connector
2411
+ # resources use `<workspace_id>__<connector_id>`.
2245
2412
  #
2246
- # @param connector_id [String] The connector ID for a ChatGPT workspace connector resource.
2413
+ # @param connector_id [String]
2414
+ # The connector ID for a ChatGPT workspace connector resource.
2247
2415
  #
2248
- # @param connector_name [String] The connector display name for a ChatGPT workspace connector resource, or the co
2416
+ # @param connector_name [String]
2417
+ # The connector display name for a ChatGPT workspace connector resource, or the
2418
+ # connector ID when the display name could not be resolved.
2249
2419
  #
2250
- # @param enabled [Boolean] Whether the connector is enabled for the role.
2420
+ # @param enabled [Boolean]
2421
+ # Whether the connector is enabled for the role.
2251
2422
  #
2252
- # @param permissions [Array<String>] The permissions granted to the role for the resource.
2423
+ # @param permissions [Array<String>]
2424
+ # The permissions granted to the role for the resource.
2253
2425
  #
2254
- # @param resource_id [String] The ID of the resource the role was bound to.
2426
+ # @param resource_id [String]
2427
+ # The ID of the resource the role was bound to.
2255
2428
  #
2256
- # @param resource_type [String] The type of resource the role was bound to.
2429
+ # @param resource_type [String]
2430
+ # The type of resource the role was bound to.
2257
2431
  #
2258
- # @param role_id [String] The ID of the role that was bound to the resource.
2432
+ # @param role_id [String]
2433
+ # The ID of the role that was bound to the resource.
2259
2434
  #
2260
- # @param source [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::Source] The connector role mutation path that produced the event.
2435
+ # @param source [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleBoundToResource::Source]
2436
+ # The connector role mutation path that produced the event.
2261
2437
  #
2262
- # @param workspace_id [String] The workspace ID for a ChatGPT workspace connector resource.
2438
+ # @param workspace_id [String]
2439
+ # The workspace ID for a ChatGPT workspace connector resource.
2263
2440
 
2264
2441
  # The connector role mutation path that produced the event.
2265
2442
  #
@@ -2313,15 +2490,20 @@ module OpenAI
2313
2490
  # @!method initialize(id: nil, permissions: nil, resource_id: nil, resource_type: nil, role_name: nil)
2314
2491
  # The details for events with this `type`.
2315
2492
  #
2316
- # @param id [String] The role ID.
2493
+ # @param id [String]
2494
+ # The role ID.
2317
2495
  #
2318
- # @param permissions [Array<String>] The permissions granted by the role.
2496
+ # @param permissions [Array<String>]
2497
+ # The permissions granted by the role.
2319
2498
  #
2320
- # @param resource_id [String] The resource the role is scoped to.
2499
+ # @param resource_id [String]
2500
+ # The resource the role is scoped to.
2321
2501
  #
2322
- # @param resource_type [String] The type of resource the role belongs to.
2502
+ # @param resource_type [String]
2503
+ # The type of resource the role belongs to.
2323
2504
  #
2324
- # @param role_name [String] The name of the role.
2505
+ # @param role_name [String]
2506
+ # The name of the role.
2325
2507
  end
2326
2508
 
2327
2509
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#role_deleted
@@ -2335,7 +2517,8 @@ module OpenAI
2335
2517
  # @!method initialize(id: nil)
2336
2518
  # The details for events with this `type`.
2337
2519
  #
2338
- # @param id [String] The role ID.
2520
+ # @param id [String]
2521
+ # The role ID.
2339
2522
  end
2340
2523
 
2341
2524
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#role_unbound_from_resource
@@ -2406,31 +2589,39 @@ module OpenAI
2406
2589
  optional :workspace_id, String
2407
2590
 
2408
2591
  # @!method initialize(id: nil, connector_id: nil, connector_name: nil, enabled: nil, permissions: nil, resource_id: nil, resource_type: nil, role_id: nil, source: nil, workspace_id: nil)
2409
- # Some parameter documentations has been truncated, see
2410
- # {OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUnboundFromResource}
2411
- # for more details.
2412
- #
2413
2592
  # The details for events with this `type`.
2414
2593
  #
2415
- # @param id [String] The ID of the resource the role was unbound from. ChatGPT workspace connector re
2594
+ # @param id [String]
2595
+ # The ID of the resource the role was unbound from. ChatGPT workspace connector
2596
+ # resources use `<workspace_id>__<connector_id>`.
2416
2597
  #
2417
- # @param connector_id [String] The connector ID for a ChatGPT workspace connector resource.
2598
+ # @param connector_id [String]
2599
+ # The connector ID for a ChatGPT workspace connector resource.
2418
2600
  #
2419
- # @param connector_name [String] The connector display name for a ChatGPT workspace connector resource, or the co
2601
+ # @param connector_name [String]
2602
+ # The connector display name for a ChatGPT workspace connector resource, or the
2603
+ # connector ID when the display name could not be resolved.
2420
2604
  #
2421
- # @param enabled [Boolean] Whether the connector is enabled for the role.
2605
+ # @param enabled [Boolean]
2606
+ # Whether the connector is enabled for the role.
2422
2607
  #
2423
- # @param permissions [Array<String>] The permissions remaining for the role after the change.
2608
+ # @param permissions [Array<String>]
2609
+ # The permissions remaining for the role after the change.
2424
2610
  #
2425
- # @param resource_id [String] The ID of the resource the role was unbound from.
2611
+ # @param resource_id [String]
2612
+ # The ID of the resource the role was unbound from.
2426
2613
  #
2427
- # @param resource_type [String] The type of resource the role was unbound from.
2614
+ # @param resource_type [String]
2615
+ # The type of resource the role was unbound from.
2428
2616
  #
2429
- # @param role_id [String] The ID of the role that was unbound from the resource.
2617
+ # @param role_id [String]
2618
+ # The ID of the role that was unbound from the resource.
2430
2619
  #
2431
- # @param source [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUnboundFromResource::Source] The connector role mutation path that produced the event.
2620
+ # @param source [Symbol, OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUnboundFromResource::Source]
2621
+ # The connector role mutation path that produced the event.
2432
2622
  #
2433
- # @param workspace_id [String] The workspace ID for a ChatGPT workspace connector resource.
2623
+ # @param workspace_id [String]
2624
+ # The workspace ID for a ChatGPT workspace connector resource.
2434
2625
 
2435
2626
  # The connector role mutation path that produced the event.
2436
2627
  #
@@ -2469,9 +2660,11 @@ module OpenAI
2469
2660
  # @!method initialize(id: nil, changes_requested: nil)
2470
2661
  # The details for events with this `type`.
2471
2662
  #
2472
- # @param id [String] The role ID.
2663
+ # @param id [String]
2664
+ # The role ID.
2473
2665
  #
2474
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUpdated::ChangesRequested] The payload used to update the role.
2666
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUpdated::ChangesRequested]
2667
+ # The payload used to update the role.
2475
2668
 
2476
2669
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::RoleUpdated#changes_requested
2477
2670
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -2520,19 +2713,26 @@ module OpenAI
2520
2713
  # @!method initialize(description: nil, metadata: nil, permissions_added: nil, permissions_removed: nil, resource_id: nil, resource_type: nil, role_name: nil)
2521
2714
  # The payload used to update the role.
2522
2715
  #
2523
- # @param description [String] The updated role description, when provided.
2716
+ # @param description [String]
2717
+ # The updated role description, when provided.
2524
2718
  #
2525
- # @param metadata [Object] Additional metadata stored on the role.
2719
+ # @param metadata [Object]
2720
+ # Additional metadata stored on the role.
2526
2721
  #
2527
- # @param permissions_added [Array<String>] The permissions added to the role.
2722
+ # @param permissions_added [Array<String>]
2723
+ # The permissions added to the role.
2528
2724
  #
2529
- # @param permissions_removed [Array<String>] The permissions removed from the role.
2725
+ # @param permissions_removed [Array<String>]
2726
+ # The permissions removed from the role.
2530
2727
  #
2531
- # @param resource_id [String] The resource the role is scoped to.
2728
+ # @param resource_id [String]
2729
+ # The resource the role is scoped to.
2532
2730
  #
2533
- # @param resource_type [String] The type of resource the role belongs to.
2731
+ # @param resource_type [String]
2732
+ # The type of resource the role belongs to.
2534
2733
  #
2535
- # @param role_name [String] The updated role name, when provided.
2734
+ # @param role_name [String]
2735
+ # The updated role name, when provided.
2536
2736
  end
2537
2737
  end
2538
2738
 
@@ -2547,7 +2747,8 @@ module OpenAI
2547
2747
  # @!method initialize(id: nil)
2548
2748
  # The details for events with this `type`.
2549
2749
  #
2550
- # @param id [String] The ID of the SCIM was disabled for.
2750
+ # @param id [String]
2751
+ # The ID of the SCIM was disabled for.
2551
2752
  end
2552
2753
 
2553
2754
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#scim_enabled
@@ -2561,7 +2762,8 @@ module OpenAI
2561
2762
  # @!method initialize(id: nil)
2562
2763
  # The details for events with this `type`.
2563
2764
  #
2564
- # @param id [String] The ID of the SCIM was enabled for.
2765
+ # @param id [String]
2766
+ # The ID of the SCIM was enabled for.
2565
2767
  end
2566
2768
 
2567
2769
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#service_account_created
@@ -2584,9 +2786,11 @@ module OpenAI
2584
2786
  # @!method initialize(id: nil, data: nil)
2585
2787
  # The details for events with this `type`.
2586
2788
  #
2587
- # @param id [String] The service account ID.
2789
+ # @param id [String]
2790
+ # The service account ID.
2588
2791
  #
2589
- # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountCreated::Data] The payload used to create the service account.
2792
+ # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountCreated::Data]
2793
+ # The payload used to create the service account.
2590
2794
 
2591
2795
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountCreated#data
2592
2796
  class Data < OpenAI::Internal::Type::BaseModel
@@ -2599,7 +2803,8 @@ module OpenAI
2599
2803
  # @!method initialize(role: nil)
2600
2804
  # The payload used to create the service account.
2601
2805
  #
2602
- # @param role [String] The role of the service account. Is either `owner` or `member`.
2806
+ # @param role [String]
2807
+ # The role of the service account. Is either `owner` or `member`.
2603
2808
  end
2604
2809
  end
2605
2810
 
@@ -2614,7 +2819,8 @@ module OpenAI
2614
2819
  # @!method initialize(id: nil)
2615
2820
  # The details for events with this `type`.
2616
2821
  #
2617
- # @param id [String] The service account ID.
2822
+ # @param id [String]
2823
+ # The service account ID.
2618
2824
  end
2619
2825
 
2620
2826
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#service_account_updated
@@ -2637,9 +2843,11 @@ module OpenAI
2637
2843
  # @!method initialize(id: nil, changes_requested: nil)
2638
2844
  # The details for events with this `type`.
2639
2845
  #
2640
- # @param id [String] The service account ID.
2846
+ # @param id [String]
2847
+ # The service account ID.
2641
2848
  #
2642
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountUpdated::ChangesRequested] The payload used to updated the service account.
2849
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountUpdated::ChangesRequested]
2850
+ # The payload used to updated the service account.
2643
2851
 
2644
2852
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::ServiceAccountUpdated#changes_requested
2645
2853
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -2652,7 +2860,8 @@ module OpenAI
2652
2860
  # @!method initialize(role: nil)
2653
2861
  # The payload used to updated the service account.
2654
2862
  #
2655
- # @param role [String] The role of the service account. Is either `owner` or `member`.
2863
+ # @param role [String]
2864
+ # The role of the service account. Is either `owner` or `member`.
2656
2865
  end
2657
2866
  end
2658
2867
 
@@ -2673,9 +2882,11 @@ module OpenAI
2673
2882
  # @!method initialize(id: nil, data: nil)
2674
2883
  # The details for events with this `type`.
2675
2884
  #
2676
- # @param id [String] The user ID.
2885
+ # @param id [String]
2886
+ # The user ID.
2677
2887
  #
2678
- # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserAdded::Data] The payload used to add the user to the project.
2888
+ # @param data [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserAdded::Data]
2889
+ # The payload used to add the user to the project.
2679
2890
 
2680
2891
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::UserAdded#data
2681
2892
  class Data < OpenAI::Internal::Type::BaseModel
@@ -2688,7 +2899,8 @@ module OpenAI
2688
2899
  # @!method initialize(role: nil)
2689
2900
  # The payload used to add the user to the project.
2690
2901
  #
2691
- # @param role [String] The role of the user. Is either `owner` or `member`.
2902
+ # @param role [String]
2903
+ # The role of the user. Is either `owner` or `member`.
2692
2904
  end
2693
2905
  end
2694
2906
 
@@ -2703,7 +2915,8 @@ module OpenAI
2703
2915
  # @!method initialize(id: nil)
2704
2916
  # The details for events with this `type`.
2705
2917
  #
2706
- # @param id [String] The user ID.
2918
+ # @param id [String]
2919
+ # The user ID.
2707
2920
  end
2708
2921
 
2709
2922
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#user_updated
@@ -2726,9 +2939,11 @@ module OpenAI
2726
2939
  # @!method initialize(id: nil, changes_requested: nil)
2727
2940
  # The details for events with this `type`.
2728
2941
  #
2729
- # @param id [String] The project ID.
2942
+ # @param id [String]
2943
+ # The project ID.
2730
2944
  #
2731
- # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated::ChangesRequested] The payload used to update the user.
2945
+ # @param changes_requested [OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated::ChangesRequested]
2946
+ # The payload used to update the user.
2732
2947
 
2733
2948
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse::UserUpdated#changes_requested
2734
2949
  class ChangesRequested < OpenAI::Internal::Type::BaseModel
@@ -2741,7 +2956,8 @@ module OpenAI
2741
2956
  # @!method initialize(role: nil)
2742
2957
  # The payload used to update the user.
2743
2958
  #
2744
- # @param role [String] The role of the user. Is either `owner` or `member`.
2959
+ # @param role [String]
2960
+ # The role of the user. Is either `owner` or `member`.
2745
2961
  end
2746
2962
  end
2747
2963
 
@@ -2768,11 +2984,14 @@ module OpenAI
2768
2984
  # @!method initialize(id: nil, data: nil, identity_provider_id: nil)
2769
2985
  # The details for events with this `type`.
2770
2986
  #
2771
- # @param id [String] The workload identity provider mapping ID.
2987
+ # @param id [String]
2988
+ # The workload identity provider mapping ID.
2772
2989
  #
2773
- # @param data [Object] The payload used to create the workload identity provider mapping.
2990
+ # @param data [Object]
2991
+ # The payload used to create the workload identity provider mapping.
2774
2992
  #
2775
- # @param identity_provider_id [String] The workload identity provider ID.
2993
+ # @param identity_provider_id [String]
2994
+ # The workload identity provider ID.
2776
2995
  end
2777
2996
 
2778
2997
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#workload_identity_provider_mapping_deleted
@@ -2804,13 +3023,17 @@ module OpenAI
2804
3023
  # @!method initialize(id: nil, identity_provider_id: nil, project_id: nil, service_account_id: nil)
2805
3024
  # The details for events with this `type`.
2806
3025
  #
2807
- # @param id [String] The workload identity provider mapping ID.
3026
+ # @param id [String]
3027
+ # The workload identity provider mapping ID.
2808
3028
  #
2809
- # @param identity_provider_id [String] The workload identity provider ID.
3029
+ # @param identity_provider_id [String]
3030
+ # The workload identity provider ID.
2810
3031
  #
2811
- # @param project_id [String] The project ID.
3032
+ # @param project_id [String]
3033
+ # The project ID.
2812
3034
  #
2813
- # @param service_account_id [String] The mapped service account ID.
3035
+ # @param service_account_id [String]
3036
+ # The mapped service account ID.
2814
3037
  end
2815
3038
 
2816
3039
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#workload_identity_provider_mapping_updated
@@ -2836,11 +3059,14 @@ module OpenAI
2836
3059
  # @!method initialize(id: nil, changes_requested: nil, identity_provider_id: nil)
2837
3060
  # The details for events with this `type`.
2838
3061
  #
2839
- # @param id [String] The workload identity provider mapping ID.
3062
+ # @param id [String]
3063
+ # The workload identity provider mapping ID.
2840
3064
  #
2841
- # @param changes_requested [Object] The payload used to update the workload identity provider mapping.
3065
+ # @param changes_requested [Object]
3066
+ # The payload used to update the workload identity provider mapping.
2842
3067
  #
2843
- # @param identity_provider_id [String] The workload identity provider ID.
3068
+ # @param identity_provider_id [String]
3069
+ # The workload identity provider ID.
2844
3070
  end
2845
3071
 
2846
3072
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#workload_identity_provider_created
@@ -2860,9 +3086,11 @@ module OpenAI
2860
3086
  # @!method initialize(id: nil, data: nil)
2861
3087
  # The details for events with this `type`.
2862
3088
  #
2863
- # @param id [String] The workload identity provider ID.
3089
+ # @param id [String]
3090
+ # The workload identity provider ID.
2864
3091
  #
2865
- # @param data [Object] The payload used to create the workload identity provider.
3092
+ # @param data [Object]
3093
+ # The payload used to create the workload identity provider.
2866
3094
  end
2867
3095
 
2868
3096
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#workload_identity_provider_deleted
@@ -2882,9 +3110,11 @@ module OpenAI
2882
3110
  # @!method initialize(id: nil, name: nil)
2883
3111
  # The details for events with this `type`.
2884
3112
  #
2885
- # @param id [String] The workload identity provider ID.
3113
+ # @param id [String]
3114
+ # The workload identity provider ID.
2886
3115
  #
2887
- # @param name [String] The workload identity provider name.
3116
+ # @param name [String]
3117
+ # The workload identity provider name.
2888
3118
  end
2889
3119
 
2890
3120
  # @see OpenAI::Models::Admin::Organization::AuditLogListResponse#workload_identity_provider_updated
@@ -2904,9 +3134,11 @@ module OpenAI
2904
3134
  # @!method initialize(id: nil, changes_requested: nil)
2905
3135
  # The details for events with this `type`.
2906
3136
  #
2907
- # @param id [String] The workload identity provider ID.
3137
+ # @param id [String]
3138
+ # The workload identity provider ID.
2908
3139
  #
2909
- # @param changes_requested [Object] The payload used to update the workload identity provider.
3140
+ # @param changes_requested [Object]
3141
+ # The payload used to update the workload identity provider.
2910
3142
  end
2911
3143
  end
2912
3144
  end