@xyd-js/opensdk-python 0.0.0-build-f0c10f6-20260703195526

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 (539) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +21 -0
  3. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/input.json +325 -0
  4. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__create/output.py +26 -0
  5. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/input.json +201 -0
  6. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__delete/output.py +28 -0
  7. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/input.json +400 -0
  8. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__list/output.py +29 -0
  9. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/input.json +304 -0
  10. package/__fixtures__/-2.complex.openai/admin__organization__admin_api_keys__retrieve/output.py +28 -0
  11. package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/input.json +2602 -0
  12. package/__fixtures__/-2.complex.openai/admin__organization__audit_logs__list/output.py +29 -0
  13. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/input.json +308 -0
  14. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate__create/output.py +32 -0
  15. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/input.json +308 -0
  16. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/output.py +28 -0
  17. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/input.json +308 -0
  18. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate__create/output.py +32 -0
  19. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/input.json +196 -0
  20. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/output.py +28 -0
  21. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/input.json +356 -0
  22. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/output.py +29 -0
  23. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/input.json +300 -0
  24. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/output.py +30 -0
  25. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/input.json +310 -0
  26. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/output.py +30 -0
  27. package/__fixtures__/-2.complex.openai/admin__organization__costs__list/input.json +1062 -0
  28. package/__fixtures__/-2.complex.openai/admin__organization__costs__list/output.py +29 -0
  29. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/input.json +239 -0
  30. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/output.py +26 -0
  31. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/input.json +206 -0
  32. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/output.py +28 -0
  33. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/input.json +316 -0
  34. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/output.py +29 -0
  35. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/input.json +364 -0
  36. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/output.py +34 -0
  37. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/input.json +210 -0
  38. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/output.py +36 -0
  39. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/input.json +398 -0
  40. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/output.py +37 -0
  41. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/input.json +241 -0
  42. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/output.py +28 -0
  43. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/input.json +237 -0
  44. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/output.py +34 -0
  45. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/input.json +211 -0
  46. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/output.py +36 -0
  47. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/input.json +314 -0
  48. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/output.py +37 -0
  49. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/input.json +386 -0
  50. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/output.py +28 -0
  51. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/input.json +203 -0
  52. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/output.py +28 -0
  53. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/input.json +414 -0
  54. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/output.py +29 -0
  55. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/input.json +337 -0
  56. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/output.py +28 -0
  57. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/input.json +279 -0
  58. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__delete/output.py +36 -0
  59. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/input.json +475 -0
  60. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__list/output.py +37 -0
  61. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/input.json +400 -0
  62. package/__fixtures__/-2.complex.openai/admin__organization__projects__api_keys__retrieve/output.py +36 -0
  63. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/input.json +247 -0
  64. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/output.py +28 -0
  65. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/input.json +324 -0
  66. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__activate__create/output.py +40 -0
  67. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/input.json +324 -0
  68. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__deactivate__create/output.py +40 -0
  69. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/input.json +372 -0
  70. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/output.py +37 -0
  71. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/input.json +281 -0
  72. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/output.py +28 -0
  73. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/input.json +274 -0
  74. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/output.py +34 -0
  75. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/input.json +211 -0
  76. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/output.py +36 -0
  77. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/input.json +342 -0
  78. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/output.py +37 -0
  79. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/input.json +330 -0
  80. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/output.py +29 -0
  81. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/input.json +358 -0
  82. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__list_rate_limits/output.py +37 -0
  83. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/input.json +407 -0
  84. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate_limits__update_rate_limit/output.py +38 -0
  85. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/input.json +247 -0
  86. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/output.py +28 -0
  87. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/input.json +372 -0
  88. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__create/output.py +34 -0
  89. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/input.json +216 -0
  90. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__delete/output.py +36 -0
  91. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/input.json +391 -0
  92. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__list/output.py +37 -0
  93. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/input.json +253 -0
  94. package/__fixtures__/-2.complex.openai/admin__organization__projects__service_accounts__retrieve/output.py +36 -0
  95. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/input.json +356 -0
  96. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/output.py +30 -0
  97. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/input.json +349 -0
  98. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/output.py +36 -0
  99. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/input.json +279 -0
  100. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/output.py +36 -0
  101. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/input.json +387 -0
  102. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/output.py +37 -0
  103. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/input.json +250 -0
  104. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/output.py +36 -0
  105. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/input.json +339 -0
  106. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/output.py +38 -0
  107. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/input.json +283 -0
  108. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/output.py +28 -0
  109. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/input.json +206 -0
  110. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/output.py +28 -0
  111. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/input.json +338 -0
  112. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/output.py +29 -0
  113. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/input.json +296 -0
  114. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/output.py +30 -0
  115. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/input.json +1108 -0
  116. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_speeches__list/output.py +35 -0
  117. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/input.json +1108 -0
  118. package/__fixtures__/-2.complex.openai/admin__organization__usage__audio_transcriptions__list/output.py +35 -0
  119. package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/input.json +1054 -0
  120. package/__fixtures__/-2.complex.openai/admin__organization__usage__code_interpreter_sessions__list/output.py +35 -0
  121. package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/input.json +1123 -0
  122. package/__fixtures__/-2.complex.openai/admin__organization__usage__completions__list/output.py +35 -0
  123. package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/input.json +1108 -0
  124. package/__fixtures__/-2.complex.openai/admin__organization__usage__embeddings__list/output.py +35 -0
  125. package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/input.json +1176 -0
  126. package/__fixtures__/-2.complex.openai/admin__organization__usage__images__list/output.py +35 -0
  127. package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/input.json +1108 -0
  128. package/__fixtures__/-2.complex.openai/admin__organization__usage__moderations__list/output.py +35 -0
  129. package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/input.json +1054 -0
  130. package/__fixtures__/-2.complex.openai/admin__organization__usage__vector_stores__list/output.py +35 -0
  131. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/input.json +202 -0
  132. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/output.py +28 -0
  133. package/__fixtures__/-2.complex.openai/admin__organization__users__list/input.json +557 -0
  134. package/__fixtures__/-2.complex.openai/admin__organization__users__list/output.py +29 -0
  135. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/input.json +472 -0
  136. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/output.py +28 -0
  137. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/input.json +611 -0
  138. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/output.py +34 -0
  139. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/input.json +210 -0
  140. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/output.py +36 -0
  141. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/input.json +398 -0
  142. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/output.py +37 -0
  143. package/__fixtures__/-2.complex.openai/admin__organization__users__update/input.json +528 -0
  144. package/__fixtures__/-2.complex.openai/admin__organization__users__update/output.py +30 -0
  145. package/__fixtures__/-2.complex.openai/audio__speech__create/input.json +388 -0
  146. package/__fixtures__/-2.complex.openai/audio__speech__create/output.py +22 -0
  147. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/input.json +999 -0
  148. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/output.py +22 -0
  149. package/__fixtures__/-2.complex.openai/audio__translations__create/input.json +430 -0
  150. package/__fixtures__/-2.complex.openai/audio__translations__create/output.py +22 -0
  151. package/__fixtures__/-2.complex.openai/audio__voice_consents__create/input.json +244 -0
  152. package/__fixtures__/-2.complex.openai/audio__voice_consents__create/output.py +22 -0
  153. package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/input.json +190 -0
  154. package/__fixtures__/-2.complex.openai/audio__voice_consents__delete/output.py +22 -0
  155. package/__fixtures__/-2.complex.openai/audio__voice_consents__list/input.json +285 -0
  156. package/__fixtures__/-2.complex.openai/audio__voice_consents__list/output.py +23 -0
  157. package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/input.json +212 -0
  158. package/__fixtures__/-2.complex.openai/audio__voice_consents__retrieve/output.py +22 -0
  159. package/__fixtures__/-2.complex.openai/audio__voice_consents__update/input.json +236 -0
  160. package/__fixtures__/-2.complex.openai/audio__voice_consents__update/output.py +22 -0
  161. package/__fixtures__/-2.complex.openai/audio__voices__create/input.json +235 -0
  162. package/__fixtures__/-2.complex.openai/audio__voices__create/output.py +22 -0
  163. package/__fixtures__/-2.complex.openai/batches__cancel/input.json +594 -0
  164. package/__fixtures__/-2.complex.openai/batches__cancel/output.py +16 -0
  165. package/__fixtures__/-2.complex.openai/batches__create/input.json +701 -0
  166. package/__fixtures__/-2.complex.openai/batches__create/output.py +16 -0
  167. package/__fixtures__/-2.complex.openai/batches__list/input.json +665 -0
  168. package/__fixtures__/-2.complex.openai/batches__list/output.py +17 -0
  169. package/__fixtures__/-2.complex.openai/batches__retrieve/input.json +594 -0
  170. package/__fixtures__/-2.complex.openai/batches__retrieve/output.py +16 -0
  171. package/__fixtures__/-2.complex.openai/beta__assistants__create/input.json +1029 -0
  172. package/__fixtures__/-2.complex.openai/beta__assistants__create/output.py +22 -0
  173. package/__fixtures__/-2.complex.openai/beta__assistants__delete/input.json +190 -0
  174. package/__fixtures__/-2.complex.openai/beta__assistants__delete/output.py +22 -0
  175. package/__fixtures__/-2.complex.openai/beta__assistants__list/input.json +796 -0
  176. package/__fixtures__/-2.complex.openai/beta__assistants__list/output.py +23 -0
  177. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/input.json +694 -0
  178. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/output.py +22 -0
  179. package/__fixtures__/-2.complex.openai/beta__assistants__update/input.json +1045 -0
  180. package/__fixtures__/-2.complex.openai/beta__assistants__update/output.py +24 -0
  181. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/input.json +482 -0
  182. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__cancel/output.py +28 -0
  183. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/input.json +738 -0
  184. package/__fixtures__/-2.complex.openai/beta__chat_kit__sessions__create/output.py +28 -0
  185. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/input.json +200 -0
  186. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__delete/output.py +28 -0
  187. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/input.json +1218 -0
  188. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__items__list/output.py +37 -0
  189. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/input.json +444 -0
  190. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__list/output.py +29 -0
  191. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/input.json +328 -0
  192. package/__fixtures__/-2.complex.openai/beta__chat_kit__threads__retrieve/output.py +28 -0
  193. package/__fixtures__/-2.complex.openai/beta__threads__create/input.json +665 -0
  194. package/__fixtures__/-2.complex.openai/beta__threads__create/output.py +22 -0
  195. package/__fixtures__/-2.complex.openai/beta__threads__delete/input.json +189 -0
  196. package/__fixtures__/-2.complex.openai/beta__threads__delete/output.py +22 -0
  197. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/input.json +938 -0
  198. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/output.py +30 -0
  199. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/input.json +203 -0
  200. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/output.py +30 -0
  201. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/input.json +945 -0
  202. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/output.py +31 -0
  203. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/input.json +832 -0
  204. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/output.py +30 -0
  205. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/input.json +855 -0
  206. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/output.py +32 -0
  207. package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/input.json +1899 -0
  208. package/__fixtures__/-2.complex.openai/beta__threads__new_and_run/output.py +22 -0
  209. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/input.json +283 -0
  210. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/output.py +22 -0
  211. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/input.json +1181 -0
  212. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/output.py +30 -0
  213. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/input.json +1851 -0
  214. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/output.py +30 -0
  215. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/input.json +1285 -0
  216. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/output.py +31 -0
  217. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/input.json +1181 -0
  218. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/output.py +30 -0
  219. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/input.json +1066 -0
  220. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/output.py +39 -0
  221. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/input.json +964 -0
  222. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/output.py +40 -0
  223. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/input.json +1246 -0
  224. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit_tool_outputs__create/output.py +38 -0
  225. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/input.json +1204 -0
  226. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/output.py +32 -0
  227. package/__fixtures__/-2.complex.openai/beta__threads__update/input.json +315 -0
  228. package/__fixtures__/-2.complex.openai/beta__threads__update/output.py +24 -0
  229. package/__fixtures__/-2.complex.openai/chat__completions__create/input.json +3325 -0
  230. package/__fixtures__/-2.complex.openai/chat__completions__create/output.py +22 -0
  231. package/__fixtures__/-2.complex.openai/chat__completions__delete/input.json +192 -0
  232. package/__fixtures__/-2.complex.openai/chat__completions__delete/output.py +22 -0
  233. package/__fixtures__/-2.complex.openai/chat__completions__list/input.json +1069 -0
  234. package/__fixtures__/-2.complex.openai/chat__completions__list/output.py +23 -0
  235. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/input.json +770 -0
  236. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/output.py +31 -0
  237. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/input.json +938 -0
  238. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/output.py +22 -0
  239. package/__fixtures__/-2.complex.openai/chat__completions__update/input.json +973 -0
  240. package/__fixtures__/-2.complex.openai/chat__completions__update/output.py +22 -0
  241. package/__fixtures__/-2.complex.openai/completions__create/input.json +788 -0
  242. package/__fixtures__/-2.complex.openai/completions__create/output.py +16 -0
  243. package/__fixtures__/-2.complex.openai/containers__create/input.json +671 -0
  244. package/__fixtures__/-2.complex.openai/containers__create/output.py +16 -0
  245. package/__fixtures__/-2.complex.openai/containers__delete/input.json +142 -0
  246. package/__fixtures__/-2.complex.openai/containers__delete/output.py +16 -0
  247. package/__fixtures__/-2.complex.openai/containers__files__content/input.json +154 -0
  248. package/__fixtures__/-2.complex.openai/containers__files__content/output.py +24 -0
  249. package/__fixtures__/-2.complex.openai/containers__files__create/input.json +261 -0
  250. package/__fixtures__/-2.complex.openai/containers__files__create/output.py +24 -0
  251. package/__fixtures__/-2.complex.openai/containers__files__delete/input.json +154 -0
  252. package/__fixtures__/-2.complex.openai/containers__files__delete/output.py +24 -0
  253. package/__fixtures__/-2.complex.openai/containers__files__list/input.json +337 -0
  254. package/__fixtures__/-2.complex.openai/containers__files__list/output.py +25 -0
  255. package/__fixtures__/-2.complex.openai/containers__files__retrieve/input.json +235 -0
  256. package/__fixtures__/-2.complex.openai/containers__files__retrieve/output.py +24 -0
  257. package/__fixtures__/-2.complex.openai/containers__list/input.json +438 -0
  258. package/__fixtures__/-2.complex.openai/containers__list/output.py +17 -0
  259. package/__fixtures__/-2.complex.openai/containers__retrieve/input.json +329 -0
  260. package/__fixtures__/-2.complex.openai/containers__retrieve/output.py +16 -0
  261. package/__fixtures__/-2.complex.openai/conversations__create/input.json +6737 -0
  262. package/__fixtures__/-2.complex.openai/conversations__create/output.py +16 -0
  263. package/__fixtures__/-2.complex.openai/conversations__delete/input.json +186 -0
  264. package/__fixtures__/-2.complex.openai/conversations__delete/output.py +16 -0
  265. package/__fixtures__/-2.complex.openai/conversations__items__create/input.json +8352 -0
  266. package/__fixtures__/-2.complex.openai/conversations__items__create/output.py +25 -0
  267. package/__fixtures__/-2.complex.openai/conversations__items__delete/input.json +213 -0
  268. package/__fixtures__/-2.complex.openai/conversations__items__delete/output.py +24 -0
  269. package/__fixtures__/-2.complex.openai/conversations__items__list/input.json +6695 -0
  270. package/__fixtures__/-2.complex.openai/conversations__items__list/output.py +25 -0
  271. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/input.json +6597 -0
  272. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/output.py +26 -0
  273. package/__fixtures__/-2.complex.openai/conversations__retrieve/input.json +198 -0
  274. package/__fixtures__/-2.complex.openai/conversations__retrieve/output.py +16 -0
  275. package/__fixtures__/-2.complex.openai/conversations__update/input.json +233 -0
  276. package/__fixtures__/-2.complex.openai/conversations__update/output.py +16 -0
  277. package/__fixtures__/-2.complex.openai/embeddings__create/input.json +395 -0
  278. package/__fixtures__/-2.complex.openai/embeddings__create/output.py +16 -0
  279. package/__fixtures__/-2.complex.openai/evals__create/input.json +1424 -0
  280. package/__fixtures__/-2.complex.openai/evals__create/output.py +16 -0
  281. package/__fixtures__/-2.complex.openai/evals__delete/input.json +232 -0
  282. package/__fixtures__/-2.complex.openai/evals__delete/output.py +16 -0
  283. package/__fixtures__/-2.complex.openai/evals__list/input.json +1251 -0
  284. package/__fixtures__/-2.complex.openai/evals__list/output.py +17 -0
  285. package/__fixtures__/-2.complex.openai/evals__retrieve/input.json +1127 -0
  286. package/__fixtures__/-2.complex.openai/evals__retrieve/output.py +16 -0
  287. package/__fixtures__/-2.complex.openai/evals__runs__cancel/input.json +4445 -0
  288. package/__fixtures__/-2.complex.openai/evals__runs__cancel/output.py +24 -0
  289. package/__fixtures__/-2.complex.openai/evals__runs__create/input.json +4526 -0
  290. package/__fixtures__/-2.complex.openai/evals__runs__create/output.py +24 -0
  291. package/__fixtures__/-2.complex.openai/evals__runs__delete/input.json +246 -0
  292. package/__fixtures__/-2.complex.openai/evals__runs__delete/output.py +24 -0
  293. package/__fixtures__/-2.complex.openai/evals__runs__list/input.json +4579 -0
  294. package/__fixtures__/-2.complex.openai/evals__runs__list/output.py +25 -0
  295. package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/input.json +685 -0
  296. package/__fixtures__/-2.complex.openai/evals__runs__output_items__list/output.py +33 -0
  297. package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/input.json +560 -0
  298. package/__fixtures__/-2.complex.openai/evals__runs__output_items__retrieve/output.py +32 -0
  299. package/__fixtures__/-2.complex.openai/evals__runs__retrieve/input.json +4445 -0
  300. package/__fixtures__/-2.complex.openai/evals__runs__retrieve/output.py +24 -0
  301. package/__fixtures__/-2.complex.openai/evals__update/input.json +1160 -0
  302. package/__fixtures__/-2.complex.openai/evals__update/output.py +18 -0
  303. package/__fixtures__/-2.complex.openai/files__content/input.json +151 -0
  304. package/__fixtures__/-2.complex.openai/files__content/output.py +16 -0
  305. package/__fixtures__/-2.complex.openai/files__create/input.json +379 -0
  306. package/__fixtures__/-2.complex.openai/files__create/output.py +16 -0
  307. package/__fixtures__/-2.complex.openai/files__delete/input.json +184 -0
  308. package/__fixtures__/-2.complex.openai/files__delete/output.py +16 -0
  309. package/__fixtures__/-2.complex.openai/files__list/input.json +397 -0
  310. package/__fixtures__/-2.complex.openai/files__list/output.py +17 -0
  311. package/__fixtures__/-2.complex.openai/files__retrieve/input.json +295 -0
  312. package/__fixtures__/-2.complex.openai/files__retrieve/output.py +16 -0
  313. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/input.json +1225 -0
  314. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__run__create/output.py +34 -0
  315. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/input.json +991 -0
  316. package/__fixtures__/-2.complex.openai/fine_tuning__alpha__graders__validate__create/output.py +32 -0
  317. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/input.json +297 -0
  318. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__create/output.py +29 -0
  319. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/input.json +208 -0
  320. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__delete/output.py +30 -0
  321. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/input.json +325 -0
  322. package/__fixtures__/-2.complex.openai/fine_tuning__checkpoints__permissions__list/output.py +31 -0
  323. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/input.json +1645 -0
  324. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__cancel/output.py +22 -0
  325. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/input.json +383 -0
  326. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__checkpoints__list/output.py +31 -0
  327. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/input.json +1887 -0
  328. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__create/output.py +22 -0
  329. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/input.json +1714 -0
  330. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list/output.py +23 -0
  331. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/input.json +330 -0
  332. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__list_events/output.py +25 -0
  333. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/input.json +1645 -0
  334. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__pause/output.py +22 -0
  335. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/input.json +1645 -0
  336. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__resume/output.py +22 -0
  337. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/input.json +1645 -0
  338. package/__fixtures__/-2.complex.openai/fine_tuning__jobs__retrieve/output.py +22 -0
  339. package/__fixtures__/-2.complex.openai/images__edits__create/input.json +744 -0
  340. package/__fixtures__/-2.complex.openai/images__edits__create/output.py +22 -0
  341. package/__fixtures__/-2.complex.openai/images__generations__create/input.json +789 -0
  342. package/__fixtures__/-2.complex.openai/images__generations__create/output.py +22 -0
  343. package/__fixtures__/-2.complex.openai/images__variations__create/input.json +550 -0
  344. package/__fixtures__/-2.complex.openai/images__variations__create/output.py +22 -0
  345. package/__fixtures__/-2.complex.openai/models__delete/input.json +184 -0
  346. package/__fixtures__/-2.complex.openai/models__delete/output.py +16 -0
  347. package/__fixtures__/-2.complex.openai/models__list/input.json +221 -0
  348. package/__fixtures__/-2.complex.openai/models__list/output.py +15 -0
  349. package/__fixtures__/-2.complex.openai/models__retrieve/input.json +199 -0
  350. package/__fixtures__/-2.complex.openai/models__retrieve/output.py +16 -0
  351. package/__fixtures__/-2.complex.openai/moderations__create/input.json +831 -0
  352. package/__fixtures__/-2.complex.openai/moderations__create/output.py +16 -0
  353. package/__fixtures__/-2.complex.openai/projects__groups__roles__create/input.json +368 -0
  354. package/__fixtures__/-2.complex.openai/projects__groups__roles__create/output.py +30 -0
  355. package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/input.json +214 -0
  356. package/__fixtures__/-2.complex.openai/projects__groups__roles__delete/output.py +32 -0
  357. package/__fixtures__/-2.complex.openai/projects__groups__roles__list/input.json +402 -0
  358. package/__fixtures__/-2.complex.openai/projects__groups__roles__list/output.py +33 -0
  359. package/__fixtures__/-2.complex.openai/projects__roles__create/input.json +289 -0
  360. package/__fixtures__/-2.complex.openai/projects__roles__create/output.py +24 -0
  361. package/__fixtures__/-2.complex.openai/projects__roles__delete/input.json +210 -0
  362. package/__fixtures__/-2.complex.openai/projects__roles__delete/output.py +24 -0
  363. package/__fixtures__/-2.complex.openai/projects__roles__list/input.json +344 -0
  364. package/__fixtures__/-2.complex.openai/projects__roles__list/output.py +25 -0
  365. package/__fixtures__/-2.complex.openai/projects__roles__update/input.json +300 -0
  366. package/__fixtures__/-2.complex.openai/projects__roles__update/output.py +26 -0
  367. package/__fixtures__/-2.complex.openai/projects__users__roles__create/input.json +615 -0
  368. package/__fixtures__/-2.complex.openai/projects__users__roles__create/output.py +30 -0
  369. package/__fixtures__/-2.complex.openai/projects__users__roles__delete/input.json +214 -0
  370. package/__fixtures__/-2.complex.openai/projects__users__roles__delete/output.py +32 -0
  371. package/__fixtures__/-2.complex.openai/projects__users__roles__list/input.json +402 -0
  372. package/__fixtures__/-2.complex.openai/projects__users__roles__list/output.py +33 -0
  373. package/__fixtures__/-2.complex.openai/realtime__calls__accept/input.json +1768 -0
  374. package/__fixtures__/-2.complex.openai/realtime__calls__accept/output.py +24 -0
  375. package/__fixtures__/-2.complex.openai/realtime__calls__create/input.json +1790 -0
  376. package/__fixtures__/-2.complex.openai/realtime__calls__create/output.py +22 -0
  377. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/input.json +147 -0
  378. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/output.py +22 -0
  379. package/__fixtures__/-2.complex.openai/realtime__calls__refer/input.json +175 -0
  380. package/__fixtures__/-2.complex.openai/realtime__calls__refer/output.py +22 -0
  381. package/__fixtures__/-2.complex.openai/realtime__calls__reject/input.json +175 -0
  382. package/__fixtures__/-2.complex.openai/realtime__calls__reject/output.py +24 -0
  383. package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/input.json +2407 -0
  384. package/__fixtures__/-2.complex.openai/realtime__client_secrets__create/output.py +22 -0
  385. package/__fixtures__/-2.complex.openai/realtime__sessions__create/input.json +1400 -0
  386. package/__fixtures__/-2.complex.openai/realtime__sessions__create/output.py +22 -0
  387. package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/input.json +562 -0
  388. package/__fixtures__/-2.complex.openai/realtime__transcription_sessions__create/output.py +22 -0
  389. package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/input.json +498 -0
  390. package/__fixtures__/-2.complex.openai/realtime__translations__client_secrets__create/output.py +28 -0
  391. package/__fixtures__/-2.complex.openai/responses__cancel/input.json +9526 -0
  392. package/__fixtures__/-2.complex.openai/responses__cancel/output.py +16 -0
  393. package/__fixtures__/-2.complex.openai/responses__compact__create/input.json +8721 -0
  394. package/__fixtures__/-2.complex.openai/responses__compact__create/output.py +22 -0
  395. package/__fixtures__/-2.complex.openai/responses__create/input.json +9862 -0
  396. package/__fixtures__/-2.complex.openai/responses__create/output.py +16 -0
  397. package/__fixtures__/-2.complex.openai/responses__delete/input.json +194 -0
  398. package/__fixtures__/-2.complex.openai/responses__delete/output.py +16 -0
  399. package/__fixtures__/-2.complex.openai/responses__input_items__list/input.json +6686 -0
  400. package/__fixtures__/-2.complex.openai/responses__input_items__list/output.py +25 -0
  401. package/__fixtures__/-2.complex.openai/responses__input_tokens__count/input.json +7368 -0
  402. package/__fixtures__/-2.complex.openai/responses__input_tokens__count/output.py +22 -0
  403. package/__fixtures__/-2.complex.openai/responses__retrieve/input.json +9550 -0
  404. package/__fixtures__/-2.complex.openai/responses__retrieve/output.py +18 -0
  405. package/__fixtures__/-2.complex.openai/skills__content/input.json +152 -0
  406. package/__fixtures__/-2.complex.openai/skills__content/output.py +16 -0
  407. package/__fixtures__/-2.complex.openai/skills__create/input.json +258 -0
  408. package/__fixtures__/-2.complex.openai/skills__create/output.py +14 -0
  409. package/__fixtures__/-2.complex.openai/skills__delete/input.json +186 -0
  410. package/__fixtures__/-2.complex.openai/skills__delete/output.py +16 -0
  411. package/__fixtures__/-2.complex.openai/skills__list/input.json +323 -0
  412. package/__fixtures__/-2.complex.openai/skills__list/output.py +17 -0
  413. package/__fixtures__/-2.complex.openai/skills__retrieve/input.json +226 -0
  414. package/__fixtures__/-2.complex.openai/skills__retrieve/output.py +16 -0
  415. package/__fixtures__/-2.complex.openai/skills__update/input.json +251 -0
  416. package/__fixtures__/-2.complex.openai/skills__update/output.py +16 -0
  417. package/__fixtures__/-2.complex.openai/skills__versions__content/input.json +166 -0
  418. package/__fixtures__/-2.complex.openai/skills__versions__content/output.py +24 -0
  419. package/__fixtures__/-2.complex.openai/skills__versions__create/input.json +284 -0
  420. package/__fixtures__/-2.complex.openai/skills__versions__create/output.py +24 -0
  421. package/__fixtures__/-2.complex.openai/skills__versions__delete/input.json +209 -0
  422. package/__fixtures__/-2.complex.openai/skills__versions__delete/output.py +24 -0
  423. package/__fixtures__/-2.complex.openai/skills__versions__list/input.json +341 -0
  424. package/__fixtures__/-2.complex.openai/skills__versions__list/output.py +25 -0
  425. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/input.json +240 -0
  426. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/output.py +24 -0
  427. package/__fixtures__/-2.complex.openai/uploads__cancel/input.json +407 -0
  428. package/__fixtures__/-2.complex.openai/uploads__cancel/output.py +16 -0
  429. package/__fixtures__/-2.complex.openai/uploads__complete/input.json +443 -0
  430. package/__fixtures__/-2.complex.openai/uploads__complete/output.py +18 -0
  431. package/__fixtures__/-2.complex.openai/uploads__create/input.json +501 -0
  432. package/__fixtures__/-2.complex.openai/uploads__create/output.py +16 -0
  433. package/__fixtures__/-2.complex.openai/uploads__parts__create/input.json +229 -0
  434. package/__fixtures__/-2.complex.openai/uploads__parts__create/output.py +24 -0
  435. package/__fixtures__/-2.complex.openai/vector_stores__create/input.json +507 -0
  436. package/__fixtures__/-2.complex.openai/vector_stores__create/output.py +16 -0
  437. package/__fixtures__/-2.complex.openai/vector_stores__delete/input.json +184 -0
  438. package/__fixtures__/-2.complex.openai/vector_stores__delete/output.py +16 -0
  439. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/input.json +300 -0
  440. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__cancel/output.py +24 -0
  441. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/input.json +314 -0
  442. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__create/output.py +22 -0
  443. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/input.json +571 -0
  444. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__list_files/output.py +27 -0
  445. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/input.json +302 -0
  446. package/__fixtures__/-2.complex.openai/vector_stores__file_batches__retrieve/output.py +24 -0
  447. package/__fixtures__/-2.complex.openai/vector_stores__files__content/input.json +249 -0
  448. package/__fixtures__/-2.complex.openai/vector_stores__files__content/output.py +25 -0
  449. package/__fixtures__/-2.complex.openai/vector_stores__files__create/input.json +527 -0
  450. package/__fixtures__/-2.complex.openai/vector_stores__files__create/output.py +24 -0
  451. package/__fixtures__/-2.complex.openai/vector_stores__files__delete/input.json +198 -0
  452. package/__fixtures__/-2.complex.openai/vector_stores__files__delete/output.py +24 -0
  453. package/__fixtures__/-2.complex.openai/vector_stores__files__list/input.json +562 -0
  454. package/__fixtures__/-2.complex.openai/vector_stores__files__list/output.py +25 -0
  455. package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/input.json +432 -0
  456. package/__fixtures__/-2.complex.openai/vector_stores__files__retrieve/output.py +24 -0
  457. package/__fixtures__/-2.complex.openai/vector_stores__files__update/input.json +455 -0
  458. package/__fixtures__/-2.complex.openai/vector_stores__files__update/output.py +24 -0
  459. package/__fixtures__/-2.complex.openai/vector_stores__list/input.json +468 -0
  460. package/__fixtures__/-2.complex.openai/vector_stores__list/output.py +17 -0
  461. package/__fixtures__/-2.complex.openai/vector_stores__retrieve/input.json +366 -0
  462. package/__fixtures__/-2.complex.openai/vector_stores__retrieve/output.py +16 -0
  463. package/__fixtures__/-2.complex.openai/vector_stores__search/input.json +637 -0
  464. package/__fixtures__/-2.complex.openai/vector_stores__search/output.py +19 -0
  465. package/__fixtures__/-2.complex.openai/vector_stores__update/input.json +409 -0
  466. package/__fixtures__/-2.complex.openai/vector_stores__update/output.py +18 -0
  467. package/__fixtures__/-2.complex.openai/videos__characters__create/input.json +216 -0
  468. package/__fixtures__/-2.complex.openai/videos__characters__create/output.py +22 -0
  469. package/__fixtures__/-2.complex.openai/videos__characters__retrieve/input.json +193 -0
  470. package/__fixtures__/-2.complex.openai/videos__characters__retrieve/output.py +22 -0
  471. package/__fixtures__/-2.complex.openai/videos__create/input.json +465 -0
  472. package/__fixtures__/-2.complex.openai/videos__create/output.py +16 -0
  473. package/__fixtures__/-2.complex.openai/videos__delete/input.json +190 -0
  474. package/__fixtures__/-2.complex.openai/videos__delete/output.py +16 -0
  475. package/__fixtures__/-2.complex.openai/videos__download_content/input.json +181 -0
  476. package/__fixtures__/-2.complex.openai/videos__download_content/output.py +18 -0
  477. package/__fixtures__/-2.complex.openai/videos__edits__create/input.json +422 -0
  478. package/__fixtures__/-2.complex.openai/videos__edits__create/output.py +20 -0
  479. package/__fixtures__/-2.complex.openai/videos__extensions__create/input.json +446 -0
  480. package/__fixtures__/-2.complex.openai/videos__extensions__create/output.py +20 -0
  481. package/__fixtures__/-2.complex.openai/videos__list/input.json +477 -0
  482. package/__fixtures__/-2.complex.openai/videos__list/output.py +17 -0
  483. package/__fixtures__/-2.complex.openai/videos__remix/input.json +405 -0
  484. package/__fixtures__/-2.complex.openai/videos__remix/output.py +16 -0
  485. package/__fixtures__/-2.complex.openai/videos__retrieve/input.json +380 -0
  486. package/__fixtures__/-2.complex.openai/videos__retrieve/output.py +16 -0
  487. package/__fixtures__/1.basic/input.json +249 -0
  488. package/__fixtures__/1.basic/output/petstore/__init__.py +6 -0
  489. package/__fixtures__/1.basic/output/petstore/_client.py +21 -0
  490. package/__fixtures__/1.basic/output/petstore/_pagination.py +42 -0
  491. package/__fixtures__/1.basic/output/petstore/_transport.py +391 -0
  492. package/__fixtures__/1.basic/output/petstore/models.py +33 -0
  493. package/__fixtures__/1.basic/output/petstore/resources.py +25 -0
  494. package/__fixtures__/1.basic/output/pyproject.toml +12 -0
  495. package/__fixtures__/1.basic/output/tests/conftest.py +16 -0
  496. package/__fixtures__/1.basic/output/tests/test_pets.py +36 -0
  497. package/__fixtures__/1.basic/output/tests/utils.py +28 -0
  498. package/__fixtures__/2.wire/input.json +351 -0
  499. package/__fixtures__/2.wire/output/pyproject.toml +12 -0
  500. package/__fixtures__/2.wire/output/tests/conftest.py +16 -0
  501. package/__fixtures__/2.wire/output/tests/test_items.py +18 -0
  502. package/__fixtures__/2.wire/output/tests/test_tokens.py +17 -0
  503. package/__fixtures__/2.wire/output/tests/test_uploads.py +27 -0
  504. package/__fixtures__/2.wire/output/tests/utils.py +28 -0
  505. package/__fixtures__/2.wire/output/wire_service/__init__.py +6 -0
  506. package/__fixtures__/2.wire/output/wire_service/_client.py +23 -0
  507. package/__fixtures__/2.wire/output/wire_service/_pagination.py +42 -0
  508. package/__fixtures__/2.wire/output/wire_service/_transport.py +391 -0
  509. package/__fixtures__/2.wire/output/wire_service/models.py +44 -0
  510. package/__fixtures__/2.wire/output/wire_service/resources.py +38 -0
  511. package/__tests__/docs.test.ts +115 -0
  512. package/__tests__/e2e/harness.ts +79 -0
  513. package/__tests__/e2e/openai.test.ts +14 -0
  514. package/__tests__/e2e/publish.test.ts +19 -0
  515. package/__tests__/opensdk-python.test.ts +134 -0
  516. package/__tests__/utils.ts +117 -0
  517. package/biome.json +25 -0
  518. package/dist/index.cjs +1274 -0
  519. package/dist/index.cjs.map +1 -0
  520. package/dist/index.d.cts +32 -0
  521. package/dist/index.d.ts +32 -0
  522. package/dist/index.js +1246 -0
  523. package/dist/index.js.map +1 -0
  524. package/index.ts +1 -0
  525. package/package.json +30 -0
  526. package/src/emitter.ts +95 -0
  527. package/src/example-py.ts +60 -0
  528. package/src/index.ts +4 -0
  529. package/src/method.ts +13 -0
  530. package/src/naming.ts +45 -0
  531. package/src/project.ts +446 -0
  532. package/src/publish.ts +22 -0
  533. package/src/pytype.ts +86 -0
  534. package/src/runtime.ts +551 -0
  535. package/src/tests-py.ts +197 -0
  536. package/src/types.ts +8 -0
  537. package/tsconfig.json +18 -0
  538. package/tsup.config.ts +19 -0
  539. package/vitest.config.ts +8 -0
@@ -0,0 +1,1400 @@
1
+ {
2
+ "opensdk": "1.0.0",
3
+ "info": {
4
+ "title": "openai",
5
+ "version": "2.3.0"
6
+ },
7
+ "servers": [
8
+ "https://api.openai.com/v1"
9
+ ],
10
+ "security": [
11
+ {
12
+ "type": "http",
13
+ "kind": "bearer",
14
+ "schemeName": "ApiKeyAuth",
15
+ "envVar": "OPENAI_API_KEY",
16
+ "scheme": "bearer"
17
+ },
18
+ {
19
+ "type": "http",
20
+ "kind": "bearer",
21
+ "schemeName": "AdminApiKeyAuth",
22
+ "envVar": "OPENAI_API_KEY",
23
+ "scheme": "bearer"
24
+ }
25
+ ],
26
+ "types": [
27
+ {
28
+ "name": "RealtimeSessionCreateRequest",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "client_secret",
33
+ "type": {
34
+ "kind": "ref",
35
+ "name": "RealtimeSessionCreateRequestClientSecret"
36
+ },
37
+ "required": true,
38
+ "description": "Ephemeral key returned by the API."
39
+ },
40
+ {
41
+ "name": "modalities",
42
+ "type": {
43
+ "kind": "any"
44
+ },
45
+ "required": false,
46
+ "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n"
47
+ },
48
+ {
49
+ "name": "instructions",
50
+ "type": {
51
+ "kind": "scalar",
52
+ "scalar": "string"
53
+ },
54
+ "required": false,
55
+ "description": "The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good responses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion into your voice\", \"laugh frequently\"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.\nNote that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.\n"
56
+ },
57
+ {
58
+ "name": "voice",
59
+ "type": {
60
+ "kind": "ref",
61
+ "name": "VoiceIdsOrCustomVoice"
62
+ },
63
+ "required": false
64
+ },
65
+ {
66
+ "name": "input_audio_format",
67
+ "type": {
68
+ "kind": "scalar",
69
+ "scalar": "string"
70
+ },
71
+ "required": false,
72
+ "description": "The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n"
73
+ },
74
+ {
75
+ "name": "output_audio_format",
76
+ "type": {
77
+ "kind": "scalar",
78
+ "scalar": "string"
79
+ },
80
+ "required": false,
81
+ "description": "The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.\n"
82
+ },
83
+ {
84
+ "name": "input_audio_transcription",
85
+ "type": {
86
+ "kind": "ref",
87
+ "name": "RealtimeSessionCreateRequestInputAudioTranscription"
88
+ },
89
+ "required": false,
90
+ "description": "Configuration for input audio transcription, defaults to off and can be\nset to `null` to turn off once on. Input audio transcription is not native\nto the model, since the model consumes audio directly. Transcription runs\nasynchronously and should be treated as rough guidance\nrather than the representation understood by the model.\n"
91
+ },
92
+ {
93
+ "name": "speed",
94
+ "type": {
95
+ "kind": "scalar",
96
+ "scalar": "number"
97
+ },
98
+ "required": false,
99
+ "default": 1,
100
+ "description": "The speed of the model's spoken response. 1.0 is the default speed. 0.25 is\nthe minimum speed. 1.5 is the maximum speed. This value can only be changed\nin between model turns, not while a response is in progress.\n"
101
+ },
102
+ {
103
+ "name": "tracing",
104
+ "type": {
105
+ "kind": "ref",
106
+ "name": "RealtimeSessionCreateRequestTracing"
107
+ },
108
+ "required": false,
109
+ "description": "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n"
110
+ },
111
+ {
112
+ "name": "turn_detection",
113
+ "type": {
114
+ "kind": "ref",
115
+ "name": "RealtimeSessionCreateRequestTurnDetection"
116
+ },
117
+ "required": false,
118
+ "description": "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.\n"
119
+ },
120
+ {
121
+ "name": "tools",
122
+ "type": {
123
+ "kind": "array",
124
+ "items": {
125
+ "kind": "ref",
126
+ "name": "RealtimeSessionCreateRequestToolsItem"
127
+ }
128
+ },
129
+ "required": false,
130
+ "description": "Tools (functions) available to the model."
131
+ },
132
+ {
133
+ "name": "tool_choice",
134
+ "type": {
135
+ "kind": "scalar",
136
+ "scalar": "string"
137
+ },
138
+ "required": false,
139
+ "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or\nspecify a function.\n"
140
+ },
141
+ {
142
+ "name": "temperature",
143
+ "type": {
144
+ "kind": "scalar",
145
+ "scalar": "number"
146
+ },
147
+ "required": false,
148
+ "description": "Sampling temperature for the model, limited to [0.6, 1.2]. Defaults to 0.8.\n"
149
+ },
150
+ {
151
+ "name": "max_response_output_tokens",
152
+ "type": {
153
+ "kind": "ref",
154
+ "name": "RealtimeSessionCreateRequestMaxResponseOutputTokens"
155
+ },
156
+ "required": false,
157
+ "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n"
158
+ },
159
+ {
160
+ "name": "truncation",
161
+ "type": {
162
+ "kind": "ref",
163
+ "name": "RealtimeTruncation"
164
+ },
165
+ "required": false
166
+ },
167
+ {
168
+ "name": "prompt",
169
+ "type": {
170
+ "kind": "ref",
171
+ "name": "Prompt"
172
+ },
173
+ "required": false
174
+ }
175
+ ],
176
+ "description": "A new Realtime session configuration, with an ephemeral key. Default TTL\nfor keys is one minute.\n"
177
+ },
178
+ {
179
+ "name": "RealtimeSessionCreateRequestClientSecret",
180
+ "kind": "struct",
181
+ "fields": [
182
+ {
183
+ "name": "value",
184
+ "type": {
185
+ "kind": "scalar",
186
+ "scalar": "string"
187
+ },
188
+ "required": true,
189
+ "description": "Ephemeral key usable in client environments to authenticate connections\nto the Realtime API. Use this in client-side environments rather than\na standard API token, which should only be used server-side.\n"
190
+ },
191
+ {
192
+ "name": "expires_at",
193
+ "type": {
194
+ "kind": "scalar",
195
+ "scalar": "integer",
196
+ "format": "unixtime"
197
+ },
198
+ "required": true,
199
+ "description": "Timestamp for when the token expires. Currently, all tokens expire\nafter one minute.\n"
200
+ }
201
+ ],
202
+ "description": "Ephemeral key returned by the API."
203
+ },
204
+ {
205
+ "name": "VoiceIdsOrCustomVoice",
206
+ "kind": "union",
207
+ "semantics": "anyOf",
208
+ "variants": [
209
+ {
210
+ "kind": "ref",
211
+ "name": "VoiceIdsShared"
212
+ },
213
+ {
214
+ "kind": "ref",
215
+ "name": "VoiceIdsOrCustomVoiceVariant1"
216
+ }
217
+ ],
218
+ "description": "A built-in voice name or a custom voice reference.\n"
219
+ },
220
+ {
221
+ "name": "VoiceIdsShared",
222
+ "kind": "union",
223
+ "semantics": "anyOf",
224
+ "variants": [
225
+ {
226
+ "kind": "scalar",
227
+ "scalar": "string"
228
+ },
229
+ {
230
+ "kind": "ref",
231
+ "name": "VoiceIdsSharedString"
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "name": "VoiceIdsSharedString",
237
+ "kind": "enum",
238
+ "base": "string",
239
+ "values": [
240
+ {
241
+ "value": "alloy"
242
+ },
243
+ {
244
+ "value": "ash"
245
+ },
246
+ {
247
+ "value": "ballad"
248
+ },
249
+ {
250
+ "value": "coral"
251
+ },
252
+ {
253
+ "value": "echo"
254
+ },
255
+ {
256
+ "value": "sage"
257
+ },
258
+ {
259
+ "value": "shimmer"
260
+ },
261
+ {
262
+ "value": "verse"
263
+ },
264
+ {
265
+ "value": "marin"
266
+ },
267
+ {
268
+ "value": "cedar"
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "name": "VoiceIdsOrCustomVoiceVariant1",
274
+ "kind": "struct",
275
+ "fields": [
276
+ {
277
+ "name": "id",
278
+ "type": {
279
+ "kind": "scalar",
280
+ "scalar": "string"
281
+ },
282
+ "required": true,
283
+ "description": "The custom voice ID, e.g. `voice_1234`."
284
+ }
285
+ ],
286
+ "description": "Custom voice reference."
287
+ },
288
+ {
289
+ "name": "RealtimeSessionCreateRequestInputAudioTranscription",
290
+ "kind": "struct",
291
+ "fields": [
292
+ {
293
+ "name": "model",
294
+ "type": {
295
+ "kind": "scalar",
296
+ "scalar": "string"
297
+ },
298
+ "required": false,
299
+ "description": "The model to use for transcription.\n"
300
+ }
301
+ ],
302
+ "description": "Configuration for input audio transcription, defaults to off and can be\nset to `null` to turn off once on. Input audio transcription is not native\nto the model, since the model consumes audio directly. Transcription runs\nasynchronously and should be treated as rough guidance\nrather than the representation understood by the model.\n"
303
+ },
304
+ {
305
+ "name": "RealtimeSessionCreateRequestTracing",
306
+ "kind": "union",
307
+ "semantics": "oneOf",
308
+ "variants": [
309
+ {
310
+ "kind": "scalar",
311
+ "scalar": "string",
312
+ "const": "auto"
313
+ },
314
+ {
315
+ "kind": "ref",
316
+ "name": "RealtimeSessionCreateRequestTracingTracingConfiguration"
317
+ }
318
+ ],
319
+ "description": "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n"
320
+ },
321
+ {
322
+ "name": "RealtimeSessionCreateRequestTracingTracingConfiguration",
323
+ "kind": "struct",
324
+ "fields": [
325
+ {
326
+ "name": "workflow_name",
327
+ "type": {
328
+ "kind": "scalar",
329
+ "scalar": "string"
330
+ },
331
+ "required": false,
332
+ "description": "The name of the workflow to attach to this trace. This is used to\nname the trace in the traces dashboard.\n"
333
+ },
334
+ {
335
+ "name": "group_id",
336
+ "type": {
337
+ "kind": "scalar",
338
+ "scalar": "string"
339
+ },
340
+ "required": false,
341
+ "description": "The group id to attach to this trace to enable filtering and\ngrouping in the traces dashboard.\n"
342
+ },
343
+ {
344
+ "name": "metadata",
345
+ "type": {
346
+ "kind": "map",
347
+ "values": {
348
+ "kind": "any"
349
+ }
350
+ },
351
+ "required": false,
352
+ "description": "The arbitrary metadata to attach to this trace to enable\nfiltering in the traces dashboard.\n"
353
+ }
354
+ ],
355
+ "description": "Granular configuration for tracing.\n"
356
+ },
357
+ {
358
+ "name": "RealtimeSessionCreateRequestTurnDetection",
359
+ "kind": "struct",
360
+ "fields": [
361
+ {
362
+ "name": "type",
363
+ "type": {
364
+ "kind": "scalar",
365
+ "scalar": "string"
366
+ },
367
+ "required": false,
368
+ "description": "Type of turn detection, only `server_vad` is currently supported.\n"
369
+ },
370
+ {
371
+ "name": "threshold",
372
+ "type": {
373
+ "kind": "scalar",
374
+ "scalar": "number"
375
+ },
376
+ "required": false,
377
+ "description": "Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A\nhigher threshold will require louder audio to activate the model, and\nthus might perform better in noisy environments.\n"
378
+ },
379
+ {
380
+ "name": "prefix_padding_ms",
381
+ "type": {
382
+ "kind": "scalar",
383
+ "scalar": "integer"
384
+ },
385
+ "required": false,
386
+ "description": "Amount of audio to include before the VAD detected speech (in\nmilliseconds). Defaults to 300ms.\n"
387
+ },
388
+ {
389
+ "name": "silence_duration_ms",
390
+ "type": {
391
+ "kind": "scalar",
392
+ "scalar": "integer"
393
+ },
394
+ "required": false,
395
+ "description": "Duration of silence to detect speech stop (in milliseconds). Defaults\nto 500ms. With shorter values the model will respond more quickly,\nbut may jump in on short pauses from the user.\n"
396
+ }
397
+ ],
398
+ "description": "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.\n"
399
+ },
400
+ {
401
+ "name": "RealtimeSessionCreateRequestToolsItem",
402
+ "kind": "struct",
403
+ "fields": [
404
+ {
405
+ "name": "type",
406
+ "type": {
407
+ "kind": "scalar",
408
+ "scalar": "string",
409
+ "const": "function"
410
+ },
411
+ "required": false,
412
+ "description": "The type of the tool, i.e. `function`."
413
+ },
414
+ {
415
+ "name": "name",
416
+ "type": {
417
+ "kind": "scalar",
418
+ "scalar": "string"
419
+ },
420
+ "required": false,
421
+ "description": "The name of the function."
422
+ },
423
+ {
424
+ "name": "description",
425
+ "type": {
426
+ "kind": "scalar",
427
+ "scalar": "string"
428
+ },
429
+ "required": false,
430
+ "description": "The description of the function, including guidance on when and how\nto call it, and guidance about what to tell the user when calling\n(if anything).\n"
431
+ },
432
+ {
433
+ "name": "parameters",
434
+ "type": {
435
+ "kind": "map",
436
+ "values": {
437
+ "kind": "any"
438
+ }
439
+ },
440
+ "required": false,
441
+ "description": "Parameters of the function in JSON Schema."
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "name": "RealtimeSessionCreateRequestMaxResponseOutputTokens",
447
+ "kind": "union",
448
+ "semantics": "oneOf",
449
+ "variants": [
450
+ {
451
+ "kind": "scalar",
452
+ "scalar": "integer"
453
+ },
454
+ {
455
+ "kind": "scalar",
456
+ "scalar": "string",
457
+ "const": "inf"
458
+ }
459
+ ],
460
+ "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n"
461
+ },
462
+ {
463
+ "name": "RealtimeTruncation",
464
+ "kind": "union",
465
+ "semantics": "oneOf",
466
+ "variants": [
467
+ {
468
+ "kind": "ref",
469
+ "name": "RealtimeTruncationString"
470
+ },
471
+ {
472
+ "kind": "ref",
473
+ "name": "RealtimeTruncationRetentionRatio"
474
+ }
475
+ ],
476
+ "description": "When the number of tokens in a conversation exceeds the model's input token limit, the conversation be truncated, meaning messages (starting from the oldest) will not be included in the model's context. A 32k context model with 4,096 max output tokens can only include 28,224 tokens in the context before truncation occurs.\n\nClients can configure truncation behavior to truncate with a lower max token limit, which is an effective way to control token usage and cost.\n\nTruncation will reduce the number of cached tokens on the next turn (busting the cache), since messages are dropped from the beginning of the context. However, clients can also configure truncation to retain messages up to a fraction of the maximum context size, which will reduce the need for future truncations and thus improve the cache rate.\n\nTruncation can be disabled entirely, which means the server will never truncate but would instead return an error if the conversation exceeds the model's input token limit.\n"
477
+ },
478
+ {
479
+ "name": "RealtimeTruncationString",
480
+ "kind": "enum",
481
+ "base": "string",
482
+ "values": [
483
+ {
484
+ "value": "auto"
485
+ },
486
+ {
487
+ "value": "disabled"
488
+ }
489
+ ],
490
+ "description": "The truncation strategy to use for the session. `auto` is the default truncation strategy. `disabled` will disable truncation and emit errors when the conversation exceeds the input token limit."
491
+ },
492
+ {
493
+ "name": "RealtimeTruncationRetentionRatio",
494
+ "kind": "struct",
495
+ "fields": [
496
+ {
497
+ "name": "type",
498
+ "type": {
499
+ "kind": "scalar",
500
+ "scalar": "string",
501
+ "const": "retention_ratio"
502
+ },
503
+ "required": true,
504
+ "description": "Use retention ratio truncation."
505
+ },
506
+ {
507
+ "name": "retention_ratio",
508
+ "type": {
509
+ "kind": "scalar",
510
+ "scalar": "number"
511
+ },
512
+ "required": true,
513
+ "description": "Fraction of post-instruction conversation tokens to retain (`0.0` - `1.0`) when the conversation exceeds the input token limit. Setting this to `0.8` means that messages will be dropped until 80% of the maximum allowed tokens are used. This helps reduce the frequency of truncations and improve cache rates.\n"
514
+ },
515
+ {
516
+ "name": "token_limits",
517
+ "type": {
518
+ "kind": "ref",
519
+ "name": "RealtimeTruncationRetentionRatioTokenLimits"
520
+ },
521
+ "required": false,
522
+ "description": "Optional custom token limits for this truncation strategy. If not provided, the model's default token limits will be used."
523
+ }
524
+ ],
525
+ "description": "Retain a fraction of the conversation tokens when the conversation exceeds the input token limit. This allows you to amortize truncations across multiple turns, which can help improve cached token usage."
526
+ },
527
+ {
528
+ "name": "RealtimeTruncationRetentionRatioTokenLimits",
529
+ "kind": "struct",
530
+ "fields": [
531
+ {
532
+ "name": "post_instructions",
533
+ "type": {
534
+ "kind": "scalar",
535
+ "scalar": "integer"
536
+ },
537
+ "required": false,
538
+ "description": "Maximum tokens allowed in the conversation after instructions (which including tool definitions). For example, setting this to 5,000 would mean that truncation would occur when the conversation exceeds 5,000 tokens after instructions. This cannot be higher than the model's context window size minus the maximum output tokens."
539
+ }
540
+ ],
541
+ "description": "Optional custom token limits for this truncation strategy. If not provided, the model's default token limits will be used."
542
+ },
543
+ {
544
+ "name": "Prompt",
545
+ "kind": "struct",
546
+ "fields": [
547
+ {
548
+ "name": "id",
549
+ "type": {
550
+ "kind": "scalar",
551
+ "scalar": "string"
552
+ },
553
+ "required": true,
554
+ "description": "The unique identifier of the prompt template to use."
555
+ },
556
+ {
557
+ "name": "version",
558
+ "type": {
559
+ "kind": "scalar",
560
+ "scalar": "string",
561
+ "nullable": true
562
+ },
563
+ "required": false
564
+ },
565
+ {
566
+ "name": "variables",
567
+ "type": {
568
+ "kind": "ref",
569
+ "name": "ResponsePromptVariables"
570
+ },
571
+ "required": false
572
+ }
573
+ ],
574
+ "description": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts).\n"
575
+ },
576
+ {
577
+ "name": "ResponsePromptVariables",
578
+ "kind": "alias",
579
+ "of": {
580
+ "kind": "map",
581
+ "values": {
582
+ "kind": "ref",
583
+ "name": "ResponsePromptVariablesValue"
584
+ },
585
+ "nullable": true
586
+ }
587
+ },
588
+ {
589
+ "name": "ResponsePromptVariablesValue",
590
+ "kind": "union",
591
+ "semantics": "oneOf",
592
+ "variants": [
593
+ {
594
+ "kind": "scalar",
595
+ "scalar": "string"
596
+ },
597
+ {
598
+ "kind": "ref",
599
+ "name": "InputTextContent"
600
+ },
601
+ {
602
+ "kind": "ref",
603
+ "name": "InputImageContent"
604
+ },
605
+ {
606
+ "kind": "ref",
607
+ "name": "InputFileContent"
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "name": "InputTextContent",
613
+ "kind": "struct",
614
+ "fields": [
615
+ {
616
+ "name": "type",
617
+ "type": {
618
+ "kind": "scalar",
619
+ "scalar": "string",
620
+ "const": "input_text"
621
+ },
622
+ "required": true,
623
+ "default": "input_text",
624
+ "description": "The type of the input item. Always `input_text`."
625
+ },
626
+ {
627
+ "name": "text",
628
+ "type": {
629
+ "kind": "scalar",
630
+ "scalar": "string"
631
+ },
632
+ "required": true,
633
+ "description": "The text input to the model."
634
+ }
635
+ ],
636
+ "description": "A text input to the model."
637
+ },
638
+ {
639
+ "name": "InputImageContent",
640
+ "kind": "struct",
641
+ "fields": [
642
+ {
643
+ "name": "type",
644
+ "type": {
645
+ "kind": "scalar",
646
+ "scalar": "string",
647
+ "const": "input_image"
648
+ },
649
+ "required": true,
650
+ "default": "input_image",
651
+ "description": "The type of the input item. Always `input_image`."
652
+ },
653
+ {
654
+ "name": "image_url",
655
+ "type": {
656
+ "kind": "scalar",
657
+ "scalar": "string",
658
+ "format": "uri",
659
+ "nullable": true
660
+ },
661
+ "required": false
662
+ },
663
+ {
664
+ "name": "file_id",
665
+ "type": {
666
+ "kind": "scalar",
667
+ "scalar": "string",
668
+ "nullable": true
669
+ },
670
+ "required": false
671
+ },
672
+ {
673
+ "name": "detail",
674
+ "type": {
675
+ "kind": "ref",
676
+ "name": "ImageDetail"
677
+ },
678
+ "required": true
679
+ }
680
+ ],
681
+ "description": "An image input to the model. Learn about [image inputs](/docs/guides/vision)."
682
+ },
683
+ {
684
+ "name": "ImageDetail",
685
+ "kind": "enum",
686
+ "base": "string",
687
+ "values": [
688
+ {
689
+ "value": "low"
690
+ },
691
+ {
692
+ "value": "high"
693
+ },
694
+ {
695
+ "value": "auto"
696
+ },
697
+ {
698
+ "value": "original"
699
+ }
700
+ ]
701
+ },
702
+ {
703
+ "name": "InputFileContent",
704
+ "kind": "struct",
705
+ "fields": [
706
+ {
707
+ "name": "type",
708
+ "type": {
709
+ "kind": "scalar",
710
+ "scalar": "string",
711
+ "const": "input_file"
712
+ },
713
+ "required": true,
714
+ "default": "input_file",
715
+ "description": "The type of the input item. Always `input_file`."
716
+ },
717
+ {
718
+ "name": "file_id",
719
+ "type": {
720
+ "kind": "scalar",
721
+ "scalar": "string",
722
+ "nullable": true
723
+ },
724
+ "required": false
725
+ },
726
+ {
727
+ "name": "filename",
728
+ "type": {
729
+ "kind": "scalar",
730
+ "scalar": "string"
731
+ },
732
+ "required": false,
733
+ "description": "The name of the file to be sent to the model."
734
+ },
735
+ {
736
+ "name": "file_data",
737
+ "type": {
738
+ "kind": "scalar",
739
+ "scalar": "string"
740
+ },
741
+ "required": false,
742
+ "description": "The content of the file to be sent to the model.\n"
743
+ },
744
+ {
745
+ "name": "file_url",
746
+ "type": {
747
+ "kind": "scalar",
748
+ "scalar": "string",
749
+ "format": "uri"
750
+ },
751
+ "required": false,
752
+ "description": "The URL of the file to be sent to the model."
753
+ },
754
+ {
755
+ "name": "detail",
756
+ "type": {
757
+ "kind": "ref",
758
+ "name": "FileInputDetail"
759
+ },
760
+ "required": false
761
+ }
762
+ ],
763
+ "description": "A file input to the model."
764
+ },
765
+ {
766
+ "name": "FileInputDetail",
767
+ "kind": "enum",
768
+ "base": "string",
769
+ "values": [
770
+ {
771
+ "value": "low"
772
+ },
773
+ {
774
+ "value": "high"
775
+ }
776
+ ]
777
+ },
778
+ {
779
+ "name": "RealtimeSessionCreateResponse",
780
+ "kind": "struct",
781
+ "fields": [
782
+ {
783
+ "name": "id",
784
+ "type": {
785
+ "kind": "scalar",
786
+ "scalar": "string"
787
+ },
788
+ "required": false,
789
+ "description": "Unique identifier for the session that looks like `sess_1234567890abcdef`.\n"
790
+ },
791
+ {
792
+ "name": "object",
793
+ "type": {
794
+ "kind": "scalar",
795
+ "scalar": "string"
796
+ },
797
+ "required": false,
798
+ "description": "The object type. Always `realtime.session`."
799
+ },
800
+ {
801
+ "name": "expires_at",
802
+ "type": {
803
+ "kind": "scalar",
804
+ "scalar": "integer",
805
+ "format": "unixtime"
806
+ },
807
+ "required": false,
808
+ "description": "Expiration timestamp for the session, in seconds since epoch."
809
+ },
810
+ {
811
+ "name": "include",
812
+ "type": {
813
+ "kind": "array",
814
+ "items": {
815
+ "kind": "scalar",
816
+ "scalar": "string",
817
+ "const": "item.input_audio_transcription.logprobs"
818
+ }
819
+ },
820
+ "required": false,
821
+ "description": "Additional fields to include in server outputs.\n- `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.\n"
822
+ },
823
+ {
824
+ "name": "model",
825
+ "type": {
826
+ "kind": "scalar",
827
+ "scalar": "string"
828
+ },
829
+ "required": false,
830
+ "description": "The Realtime model used for this session."
831
+ },
832
+ {
833
+ "name": "output_modalities",
834
+ "type": {
835
+ "kind": "any"
836
+ },
837
+ "required": false,
838
+ "description": "The set of modalities the model can respond with. To disable audio,\nset this to [\"text\"].\n"
839
+ },
840
+ {
841
+ "name": "instructions",
842
+ "type": {
843
+ "kind": "scalar",
844
+ "scalar": "string"
845
+ },
846
+ "required": false,
847
+ "description": "The default system instructions (i.e. system message) prepended to model\ncalls. This field allows the client to guide the model on desired\nresponses. The model can be instructed on response content and format,\n(e.g. \"be extremely succinct\", \"act friendly\", \"here are examples of good\nresponses\") and on audio behavior (e.g. \"talk quickly\", \"inject emotion\ninto your voice\", \"laugh frequently\"). The instructions are not guaranteed\nto be followed by the model, but they provide guidance to the model on the\ndesired behavior.\n\nNote that the server sets default instructions which will be used if this\nfield is not set and are visible in the `session.created` event at the\nstart of the session.\n"
848
+ },
849
+ {
850
+ "name": "audio",
851
+ "type": {
852
+ "kind": "ref",
853
+ "name": "RealtimeSessionCreateResponseAudio"
854
+ },
855
+ "required": false,
856
+ "description": "Configuration for input and output audio for the session.\n"
857
+ },
858
+ {
859
+ "name": "tracing",
860
+ "type": {
861
+ "kind": "ref",
862
+ "name": "RealtimeSessionCreateRequestTracing"
863
+ },
864
+ "required": false,
865
+ "description": "Configuration options for tracing. Set to null to disable tracing. Once\ntracing is enabled for a session, the configuration cannot be modified.\n\n`auto` will create a trace for the session with default values for the\nworkflow name, group id, and metadata.\n"
866
+ },
867
+ {
868
+ "name": "turn_detection",
869
+ "type": {
870
+ "kind": "ref",
871
+ "name": "RealtimeSessionCreateRequestTurnDetection"
872
+ },
873
+ "required": false,
874
+ "description": "Configuration for turn detection. Can be set to `null` to turn off. Server\nVAD means that the model will detect the start and end of speech based on\naudio volume and respond at the end of user speech.\n"
875
+ },
876
+ {
877
+ "name": "tools",
878
+ "type": {
879
+ "kind": "array",
880
+ "items": {
881
+ "kind": "ref",
882
+ "name": "RealtimeFunctionTool"
883
+ }
884
+ },
885
+ "required": false,
886
+ "description": "Tools (functions) available to the model."
887
+ },
888
+ {
889
+ "name": "tool_choice",
890
+ "type": {
891
+ "kind": "scalar",
892
+ "scalar": "string"
893
+ },
894
+ "required": false,
895
+ "description": "How the model chooses tools. Options are `auto`, `none`, `required`, or\nspecify a function.\n"
896
+ },
897
+ {
898
+ "name": "max_output_tokens",
899
+ "type": {
900
+ "kind": "ref",
901
+ "name": "RealtimeSessionCreateRequestMaxResponseOutputTokens"
902
+ },
903
+ "required": false,
904
+ "description": "Maximum number of output tokens for a single assistant response,\ninclusive of tool calls. Provide an integer between 1 and 4096 to\nlimit output tokens, or `inf` for the maximum available tokens for a\ngiven model. Defaults to `inf`.\n"
905
+ }
906
+ ],
907
+ "description": "A Realtime session configuration object.\n"
908
+ },
909
+ {
910
+ "name": "RealtimeSessionCreateResponseAudio",
911
+ "kind": "struct",
912
+ "fields": [
913
+ {
914
+ "name": "input",
915
+ "type": {
916
+ "kind": "ref",
917
+ "name": "RealtimeSessionCreateResponseAudioInput"
918
+ },
919
+ "required": false
920
+ },
921
+ {
922
+ "name": "output",
923
+ "type": {
924
+ "kind": "ref",
925
+ "name": "RealtimeSessionCreateResponseAudioOutput"
926
+ },
927
+ "required": false
928
+ }
929
+ ],
930
+ "description": "Configuration for input and output audio for the session.\n"
931
+ },
932
+ {
933
+ "name": "RealtimeSessionCreateResponseAudioInput",
934
+ "kind": "struct",
935
+ "fields": [
936
+ {
937
+ "name": "format",
938
+ "type": {
939
+ "kind": "ref",
940
+ "name": "RealtimeAudioFormats"
941
+ },
942
+ "required": false
943
+ },
944
+ {
945
+ "name": "transcription",
946
+ "type": {
947
+ "kind": "ref",
948
+ "name": "AudioTranscriptionResponse"
949
+ },
950
+ "required": false
951
+ },
952
+ {
953
+ "name": "noise_reduction",
954
+ "type": {
955
+ "kind": "ref",
956
+ "name": "RealtimeSessionCreateResponseAudioInputNoiseReduction"
957
+ },
958
+ "required": false,
959
+ "description": "Configuration for input audio noise reduction.\n"
960
+ },
961
+ {
962
+ "name": "turn_detection",
963
+ "type": {
964
+ "kind": "ref",
965
+ "name": "RealtimeSessionCreateResponseAudioInputTurnDetection"
966
+ },
967
+ "required": false,
968
+ "description": "Configuration for turn detection.\n"
969
+ }
970
+ ]
971
+ },
972
+ {
973
+ "name": "RealtimeAudioFormats",
974
+ "kind": "union",
975
+ "semantics": "anyOf",
976
+ "variants": [
977
+ {
978
+ "kind": "ref",
979
+ "name": "RealtimeAudioFormatsAudioPcm"
980
+ },
981
+ {
982
+ "kind": "ref",
983
+ "name": "RealtimeAudioFormatsAudioPcmu"
984
+ },
985
+ {
986
+ "kind": "ref",
987
+ "name": "RealtimeAudioFormatsAudioPcma"
988
+ }
989
+ ]
990
+ },
991
+ {
992
+ "name": "RealtimeAudioFormatsAudioPcm",
993
+ "kind": "struct",
994
+ "fields": [
995
+ {
996
+ "name": "type",
997
+ "type": {
998
+ "kind": "scalar",
999
+ "scalar": "string",
1000
+ "const": "audio/pcm"
1001
+ },
1002
+ "required": false,
1003
+ "description": "The audio format. Always `audio/pcm`."
1004
+ },
1005
+ {
1006
+ "name": "rate",
1007
+ "type": {
1008
+ "kind": "scalar",
1009
+ "scalar": "integer",
1010
+ "const": 24000
1011
+ },
1012
+ "required": false,
1013
+ "description": "The sample rate of the audio. Always `24000`."
1014
+ }
1015
+ ],
1016
+ "description": "The PCM audio format. Only a 24kHz sample rate is supported."
1017
+ },
1018
+ {
1019
+ "name": "RealtimeAudioFormatsAudioPcmu",
1020
+ "kind": "struct",
1021
+ "fields": [
1022
+ {
1023
+ "name": "type",
1024
+ "type": {
1025
+ "kind": "scalar",
1026
+ "scalar": "string",
1027
+ "const": "audio/pcmu"
1028
+ },
1029
+ "required": false,
1030
+ "description": "The audio format. Always `audio/pcmu`."
1031
+ }
1032
+ ],
1033
+ "description": "The G.711 μ-law format."
1034
+ },
1035
+ {
1036
+ "name": "RealtimeAudioFormatsAudioPcma",
1037
+ "kind": "struct",
1038
+ "fields": [
1039
+ {
1040
+ "name": "type",
1041
+ "type": {
1042
+ "kind": "scalar",
1043
+ "scalar": "string",
1044
+ "const": "audio/pcma"
1045
+ },
1046
+ "required": false,
1047
+ "description": "The audio format. Always `audio/pcma`."
1048
+ }
1049
+ ],
1050
+ "description": "The G.711 A-law format."
1051
+ },
1052
+ {
1053
+ "name": "AudioTranscriptionResponse",
1054
+ "kind": "struct",
1055
+ "fields": [
1056
+ {
1057
+ "name": "model",
1058
+ "type": {
1059
+ "kind": "ref",
1060
+ "name": "AudioTranscriptionResponseModel"
1061
+ },
1062
+ "required": false,
1063
+ "description": "The model used for transcription. Current options are `whisper-1`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`.\n"
1064
+ },
1065
+ {
1066
+ "name": "language",
1067
+ "type": {
1068
+ "kind": "scalar",
1069
+ "scalar": "string"
1070
+ },
1071
+ "required": false,
1072
+ "description": "The language of the input audio.\n"
1073
+ },
1074
+ {
1075
+ "name": "prompt",
1076
+ "type": {
1077
+ "kind": "scalar",
1078
+ "scalar": "string"
1079
+ },
1080
+ "required": false,
1081
+ "description": "The prompt configured for input audio transcription, when present.\n"
1082
+ }
1083
+ ]
1084
+ },
1085
+ {
1086
+ "name": "AudioTranscriptionResponseModel",
1087
+ "kind": "union",
1088
+ "semantics": "anyOf",
1089
+ "variants": [
1090
+ {
1091
+ "kind": "scalar",
1092
+ "scalar": "string"
1093
+ },
1094
+ {
1095
+ "kind": "ref",
1096
+ "name": "AudioTranscriptionResponseModelString"
1097
+ }
1098
+ ],
1099
+ "description": "The model used for transcription. Current options are `whisper-1`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `gpt-4o-transcribe`, `gpt-4o-transcribe-diarize`, and `gpt-realtime-whisper`.\n"
1100
+ },
1101
+ {
1102
+ "name": "AudioTranscriptionResponseModelString",
1103
+ "kind": "enum",
1104
+ "base": "string",
1105
+ "values": [
1106
+ {
1107
+ "value": "whisper-1"
1108
+ },
1109
+ {
1110
+ "value": "gpt-4o-mini-transcribe"
1111
+ },
1112
+ {
1113
+ "value": "gpt-4o-mini-transcribe-2025-12-15"
1114
+ },
1115
+ {
1116
+ "value": "gpt-4o-transcribe"
1117
+ },
1118
+ {
1119
+ "value": "gpt-4o-transcribe-diarize"
1120
+ },
1121
+ {
1122
+ "value": "gpt-realtime-whisper"
1123
+ }
1124
+ ]
1125
+ },
1126
+ {
1127
+ "name": "RealtimeSessionCreateResponseAudioInputNoiseReduction",
1128
+ "kind": "struct",
1129
+ "fields": [
1130
+ {
1131
+ "name": "type",
1132
+ "type": {
1133
+ "kind": "ref",
1134
+ "name": "NoiseReductionType"
1135
+ },
1136
+ "required": false
1137
+ }
1138
+ ],
1139
+ "description": "Configuration for input audio noise reduction.\n"
1140
+ },
1141
+ {
1142
+ "name": "NoiseReductionType",
1143
+ "kind": "enum",
1144
+ "base": "string",
1145
+ "values": [
1146
+ {
1147
+ "value": "near_field"
1148
+ },
1149
+ {
1150
+ "value": "far_field"
1151
+ }
1152
+ ],
1153
+ "description": "Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.\n"
1154
+ },
1155
+ {
1156
+ "name": "RealtimeSessionCreateResponseAudioInputTurnDetection",
1157
+ "kind": "struct",
1158
+ "fields": [
1159
+ {
1160
+ "name": "type",
1161
+ "type": {
1162
+ "kind": "scalar",
1163
+ "scalar": "string"
1164
+ },
1165
+ "required": false,
1166
+ "description": "Type of turn detection, only `server_vad` is currently supported.\n"
1167
+ },
1168
+ {
1169
+ "name": "threshold",
1170
+ "type": {
1171
+ "kind": "scalar",
1172
+ "scalar": "number"
1173
+ },
1174
+ "required": false
1175
+ },
1176
+ {
1177
+ "name": "prefix_padding_ms",
1178
+ "type": {
1179
+ "kind": "scalar",
1180
+ "scalar": "integer"
1181
+ },
1182
+ "required": false
1183
+ },
1184
+ {
1185
+ "name": "silence_duration_ms",
1186
+ "type": {
1187
+ "kind": "scalar",
1188
+ "scalar": "integer"
1189
+ },
1190
+ "required": false
1191
+ }
1192
+ ],
1193
+ "description": "Configuration for turn detection.\n"
1194
+ },
1195
+ {
1196
+ "name": "RealtimeSessionCreateResponseAudioOutput",
1197
+ "kind": "struct",
1198
+ "fields": [
1199
+ {
1200
+ "name": "format",
1201
+ "type": {
1202
+ "kind": "ref",
1203
+ "name": "RealtimeAudioFormats"
1204
+ },
1205
+ "required": false
1206
+ },
1207
+ {
1208
+ "name": "voice",
1209
+ "type": {
1210
+ "kind": "ref",
1211
+ "name": "VoiceIdsShared"
1212
+ },
1213
+ "required": false
1214
+ },
1215
+ {
1216
+ "name": "speed",
1217
+ "type": {
1218
+ "kind": "scalar",
1219
+ "scalar": "number"
1220
+ },
1221
+ "required": false
1222
+ }
1223
+ ]
1224
+ },
1225
+ {
1226
+ "name": "RealtimeFunctionTool",
1227
+ "kind": "struct",
1228
+ "fields": [
1229
+ {
1230
+ "name": "type",
1231
+ "type": {
1232
+ "kind": "scalar",
1233
+ "scalar": "string",
1234
+ "const": "function"
1235
+ },
1236
+ "required": false,
1237
+ "description": "The type of the tool, i.e. `function`."
1238
+ },
1239
+ {
1240
+ "name": "name",
1241
+ "type": {
1242
+ "kind": "scalar",
1243
+ "scalar": "string"
1244
+ },
1245
+ "required": false,
1246
+ "description": "The name of the function."
1247
+ },
1248
+ {
1249
+ "name": "description",
1250
+ "type": {
1251
+ "kind": "scalar",
1252
+ "scalar": "string"
1253
+ },
1254
+ "required": false,
1255
+ "description": "The description of the function, including guidance on when and how\nto call it, and guidance about what to tell the user when calling\n(if anything).\n"
1256
+ },
1257
+ {
1258
+ "name": "parameters",
1259
+ "type": {
1260
+ "kind": "map",
1261
+ "values": {
1262
+ "kind": "any"
1263
+ }
1264
+ },
1265
+ "required": false,
1266
+ "description": "Parameters of the function in JSON Schema."
1267
+ }
1268
+ ]
1269
+ }
1270
+ ],
1271
+ "resources": [
1272
+ {
1273
+ "name": "realtime",
1274
+ "resources": [
1275
+ {
1276
+ "name": "sessions",
1277
+ "methods": [
1278
+ {
1279
+ "action": "create",
1280
+ "httpMethod": "post",
1281
+ "path": "/realtime/sessions",
1282
+ "operationId": "create-realtime-session",
1283
+ "description": "Create an ephemeral API token for use in client-side applications with the\nRealtime API. Can be configured with the same session parameters as the\n`session.update` client event.\n\nIt responds with a session object, plus a `client_secret` key which contains\na usable ephemeral API token that can be used to authenticate browser clients\nfor the Realtime API.\n\nReturns the created Realtime session object, plus an ephemeral key.\n",
1284
+ "requestBody": {
1285
+ "contentType": "application/json",
1286
+ "type": {
1287
+ "kind": "ref",
1288
+ "name": "RealtimeSessionCreateRequest"
1289
+ },
1290
+ "required": true,
1291
+ "encoding": "json",
1292
+ "description": "Create an ephemeral API key with the given session configuration."
1293
+ },
1294
+ "responses": [
1295
+ {
1296
+ "status": "200",
1297
+ "description": "Session created successfully.",
1298
+ "contentType": "application/json",
1299
+ "type": {
1300
+ "kind": "ref",
1301
+ "name": "RealtimeSessionCreateResponse"
1302
+ }
1303
+ }
1304
+ ],
1305
+ "primaryResponse": {
1306
+ "kind": "ref",
1307
+ "name": "RealtimeSessionCreateResponse"
1308
+ }
1309
+ }
1310
+ ]
1311
+ }
1312
+ ]
1313
+ }
1314
+ ],
1315
+ "sdk": {
1316
+ "retry": {
1317
+ "maxRetries": 2,
1318
+ "retryableStatusCodes": [
1319
+ 408,
1320
+ 429,
1321
+ 500,
1322
+ 502,
1323
+ 503,
1324
+ 504
1325
+ ],
1326
+ "retryConnectionErrors": true,
1327
+ "honorRetryAfterHeader": true,
1328
+ "backoff": {
1329
+ "initialDelayMs": 500,
1330
+ "maxDelayMs": 8000,
1331
+ "multiplier": 2,
1332
+ "jitter": 0.25
1333
+ }
1334
+ },
1335
+ "timeout": {
1336
+ "defaultTimeoutMs": 60000
1337
+ },
1338
+ "errors": {
1339
+ "statusCodeMap": {
1340
+ "400": "BadRequest",
1341
+ "401": "Unauthorized",
1342
+ "403": "PermissionDenied",
1343
+ "404": "NotFound",
1344
+ "409": "Conflict",
1345
+ "422": "UnprocessableEntity",
1346
+ "429": "RateLimited"
1347
+ },
1348
+ "clientErrorKind": "API",
1349
+ "serverErrorKind": "Internal"
1350
+ },
1351
+ "userAgent": {
1352
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1353
+ "includeRuntimeVersion": false,
1354
+ "aiAgentEnvVars": {
1355
+ "CLAUDE_CODE": "claude-code",
1356
+ "CURSOR_AGENT": "cursor",
1357
+ "CLINE_ACTIVE": "cline",
1358
+ "WINDSURF_ACTIVE": "windsurf",
1359
+ "COPILOT_AGENT": "copilot"
1360
+ }
1361
+ },
1362
+ "telemetry": {
1363
+ "requestIdHeader": "X-Request-ID",
1364
+ "headerName": "X-Client-Telemetry",
1365
+ "enabledByDefault": false
1366
+ },
1367
+ "logging": {
1368
+ "events": [
1369
+ "request.start",
1370
+ "request.success",
1371
+ "request.retry",
1372
+ "request.rate_limited",
1373
+ "request.error",
1374
+ "request.connection_error"
1375
+ ]
1376
+ },
1377
+ "idempotency": {
1378
+ "headerName": "Idempotency-Key",
1379
+ "autoGenerateForPost": true
1380
+ },
1381
+ "pagination": {
1382
+ "autoPageDelayMs": 0
1383
+ },
1384
+ "requestGuard": {
1385
+ "optionKeys": [
1386
+ "api_key",
1387
+ "apiKey",
1388
+ "idempotency_key",
1389
+ "idempotencyKey",
1390
+ "extra_headers",
1391
+ "extraHeaders",
1392
+ "max_retries",
1393
+ "maxRetries",
1394
+ "base_url",
1395
+ "baseUrl",
1396
+ "timeout"
1397
+ ]
1398
+ }
1399
+ }
1400
+ }