@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,1204 @@
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": "ModifyRunRequest",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "metadata",
33
+ "type": {
34
+ "kind": "ref",
35
+ "name": "Metadata"
36
+ },
37
+ "required": false
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "name": "Metadata",
43
+ "kind": "alias",
44
+ "of": {
45
+ "kind": "map",
46
+ "values": {
47
+ "kind": "scalar",
48
+ "scalar": "string"
49
+ },
50
+ "nullable": true
51
+ }
52
+ },
53
+ {
54
+ "name": "RunObject",
55
+ "kind": "struct",
56
+ "fields": [
57
+ {
58
+ "name": "id",
59
+ "type": {
60
+ "kind": "scalar",
61
+ "scalar": "string"
62
+ },
63
+ "required": true,
64
+ "description": "The identifier, which can be referenced in API endpoints."
65
+ },
66
+ {
67
+ "name": "object",
68
+ "type": {
69
+ "kind": "scalar",
70
+ "scalar": "string",
71
+ "const": "thread.run"
72
+ },
73
+ "required": true,
74
+ "description": "The object type, which is always `thread.run`."
75
+ },
76
+ {
77
+ "name": "created_at",
78
+ "type": {
79
+ "kind": "scalar",
80
+ "scalar": "integer",
81
+ "format": "unixtime"
82
+ },
83
+ "required": true,
84
+ "description": "The Unix timestamp (in seconds) for when the run was created."
85
+ },
86
+ {
87
+ "name": "thread_id",
88
+ "type": {
89
+ "kind": "scalar",
90
+ "scalar": "string"
91
+ },
92
+ "required": true,
93
+ "description": "The ID of the [thread](/docs/api-reference/threads) that was executed on as a part of this run."
94
+ },
95
+ {
96
+ "name": "assistant_id",
97
+ "type": {
98
+ "kind": "scalar",
99
+ "scalar": "string"
100
+ },
101
+ "required": true,
102
+ "description": "The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run."
103
+ },
104
+ {
105
+ "name": "status",
106
+ "type": {
107
+ "kind": "ref",
108
+ "name": "RunObjectStatus"
109
+ },
110
+ "required": true,
111
+ "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
112
+ },
113
+ {
114
+ "name": "required_action",
115
+ "type": {
116
+ "kind": "ref",
117
+ "name": "RunObjectRequiredAction",
118
+ "nullable": true
119
+ },
120
+ "required": true,
121
+ "nullable": true,
122
+ "description": "Details on the action required to continue the run. Will be `null` if no action is required."
123
+ },
124
+ {
125
+ "name": "last_error",
126
+ "type": {
127
+ "kind": "ref",
128
+ "name": "RunObjectLastError",
129
+ "nullable": true
130
+ },
131
+ "required": true,
132
+ "nullable": true,
133
+ "description": "The last error associated with this run. Will be `null` if there are no errors."
134
+ },
135
+ {
136
+ "name": "expires_at",
137
+ "type": {
138
+ "kind": "scalar",
139
+ "scalar": "integer",
140
+ "format": "unixtime",
141
+ "nullable": true
142
+ },
143
+ "required": true,
144
+ "nullable": true,
145
+ "description": "The Unix timestamp (in seconds) for when the run will expire."
146
+ },
147
+ {
148
+ "name": "started_at",
149
+ "type": {
150
+ "kind": "scalar",
151
+ "scalar": "integer",
152
+ "format": "unixtime",
153
+ "nullable": true
154
+ },
155
+ "required": true,
156
+ "nullable": true,
157
+ "description": "The Unix timestamp (in seconds) for when the run was started."
158
+ },
159
+ {
160
+ "name": "cancelled_at",
161
+ "type": {
162
+ "kind": "scalar",
163
+ "scalar": "integer",
164
+ "format": "unixtime",
165
+ "nullable": true
166
+ },
167
+ "required": true,
168
+ "nullable": true,
169
+ "description": "The Unix timestamp (in seconds) for when the run was cancelled."
170
+ },
171
+ {
172
+ "name": "failed_at",
173
+ "type": {
174
+ "kind": "scalar",
175
+ "scalar": "integer",
176
+ "format": "unixtime",
177
+ "nullable": true
178
+ },
179
+ "required": true,
180
+ "nullable": true,
181
+ "description": "The Unix timestamp (in seconds) for when the run failed."
182
+ },
183
+ {
184
+ "name": "completed_at",
185
+ "type": {
186
+ "kind": "scalar",
187
+ "scalar": "integer",
188
+ "format": "unixtime",
189
+ "nullable": true
190
+ },
191
+ "required": true,
192
+ "nullable": true,
193
+ "description": "The Unix timestamp (in seconds) for when the run was completed."
194
+ },
195
+ {
196
+ "name": "incomplete_details",
197
+ "type": {
198
+ "kind": "ref",
199
+ "name": "RunObjectIncompleteDetails",
200
+ "nullable": true
201
+ },
202
+ "required": true,
203
+ "nullable": true,
204
+ "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
205
+ },
206
+ {
207
+ "name": "model",
208
+ "type": {
209
+ "kind": "scalar",
210
+ "scalar": "string"
211
+ },
212
+ "required": true,
213
+ "description": "The model that the [assistant](/docs/api-reference/assistants) used for this run."
214
+ },
215
+ {
216
+ "name": "instructions",
217
+ "type": {
218
+ "kind": "scalar",
219
+ "scalar": "string"
220
+ },
221
+ "required": true,
222
+ "description": "The instructions that the [assistant](/docs/api-reference/assistants) used for this run."
223
+ },
224
+ {
225
+ "name": "tools",
226
+ "type": {
227
+ "kind": "array",
228
+ "items": {
229
+ "kind": "ref",
230
+ "name": "RunObjectToolsItem"
231
+ }
232
+ },
233
+ "required": true,
234
+ "default": [],
235
+ "description": "The list of tools that the [assistant](/docs/api-reference/assistants) used for this run."
236
+ },
237
+ {
238
+ "name": "metadata",
239
+ "type": {
240
+ "kind": "ref",
241
+ "name": "Metadata"
242
+ },
243
+ "required": true
244
+ },
245
+ {
246
+ "name": "usage",
247
+ "type": {
248
+ "kind": "ref",
249
+ "name": "RunCompletionUsage"
250
+ },
251
+ "required": true
252
+ },
253
+ {
254
+ "name": "temperature",
255
+ "type": {
256
+ "kind": "scalar",
257
+ "scalar": "number",
258
+ "nullable": true
259
+ },
260
+ "required": false,
261
+ "nullable": true,
262
+ "description": "The sampling temperature used for this run. If not set, defaults to 1."
263
+ },
264
+ {
265
+ "name": "top_p",
266
+ "type": {
267
+ "kind": "scalar",
268
+ "scalar": "number",
269
+ "nullable": true
270
+ },
271
+ "required": false,
272
+ "nullable": true,
273
+ "description": "The nucleus sampling value used for this run. If not set, defaults to 1."
274
+ },
275
+ {
276
+ "name": "max_prompt_tokens",
277
+ "type": {
278
+ "kind": "scalar",
279
+ "scalar": "integer",
280
+ "nullable": true
281
+ },
282
+ "required": true,
283
+ "nullable": true,
284
+ "description": "The maximum number of prompt tokens specified to have been used over the course of the run.\n"
285
+ },
286
+ {
287
+ "name": "max_completion_tokens",
288
+ "type": {
289
+ "kind": "scalar",
290
+ "scalar": "integer",
291
+ "nullable": true
292
+ },
293
+ "required": true,
294
+ "nullable": true,
295
+ "description": "The maximum number of completion tokens specified to have been used over the course of the run.\n"
296
+ },
297
+ {
298
+ "name": "truncation_strategy",
299
+ "type": {
300
+ "kind": "ref",
301
+ "name": "TruncationObject",
302
+ "nullable": true
303
+ },
304
+ "required": true
305
+ },
306
+ {
307
+ "name": "tool_choice",
308
+ "type": {
309
+ "kind": "ref",
310
+ "name": "AssistantsApiToolChoiceOption",
311
+ "nullable": true
312
+ },
313
+ "required": true
314
+ },
315
+ {
316
+ "name": "parallel_tool_calls",
317
+ "type": {
318
+ "kind": "ref",
319
+ "name": "ParallelToolCalls"
320
+ },
321
+ "required": true
322
+ },
323
+ {
324
+ "name": "response_format",
325
+ "type": {
326
+ "kind": "ref",
327
+ "name": "AssistantsApiResponseFormatOption"
328
+ },
329
+ "required": true
330
+ }
331
+ ],
332
+ "description": "Represents an execution run on a [thread](/docs/api-reference/threads)."
333
+ },
334
+ {
335
+ "name": "RunObjectStatus",
336
+ "kind": "enum",
337
+ "base": "string",
338
+ "values": [
339
+ {
340
+ "value": "queued"
341
+ },
342
+ {
343
+ "value": "in_progress"
344
+ },
345
+ {
346
+ "value": "requires_action"
347
+ },
348
+ {
349
+ "value": "cancelling"
350
+ },
351
+ {
352
+ "value": "cancelled"
353
+ },
354
+ {
355
+ "value": "failed"
356
+ },
357
+ {
358
+ "value": "completed"
359
+ },
360
+ {
361
+ "value": "incomplete"
362
+ },
363
+ {
364
+ "value": "expired"
365
+ }
366
+ ],
367
+ "description": "The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`."
368
+ },
369
+ {
370
+ "name": "RunObjectRequiredAction",
371
+ "kind": "struct",
372
+ "fields": [
373
+ {
374
+ "name": "type",
375
+ "type": {
376
+ "kind": "scalar",
377
+ "scalar": "string",
378
+ "const": "submit_tool_outputs"
379
+ },
380
+ "required": true,
381
+ "description": "For now, this is always `submit_tool_outputs`."
382
+ },
383
+ {
384
+ "name": "submit_tool_outputs",
385
+ "type": {
386
+ "kind": "ref",
387
+ "name": "RunObjectRequiredActionSubmitToolOutputs"
388
+ },
389
+ "required": true,
390
+ "description": "Details on the tool outputs needed for this run to continue."
391
+ }
392
+ ],
393
+ "description": "Details on the action required to continue the run. Will be `null` if no action is required."
394
+ },
395
+ {
396
+ "name": "RunObjectRequiredActionSubmitToolOutputs",
397
+ "kind": "struct",
398
+ "fields": [
399
+ {
400
+ "name": "tool_calls",
401
+ "type": {
402
+ "kind": "array",
403
+ "items": {
404
+ "kind": "ref",
405
+ "name": "RunToolCallObject"
406
+ }
407
+ },
408
+ "required": true,
409
+ "description": "A list of the relevant tool calls."
410
+ }
411
+ ],
412
+ "description": "Details on the tool outputs needed for this run to continue."
413
+ },
414
+ {
415
+ "name": "RunToolCallObject",
416
+ "kind": "struct",
417
+ "fields": [
418
+ {
419
+ "name": "id",
420
+ "type": {
421
+ "kind": "scalar",
422
+ "scalar": "string"
423
+ },
424
+ "required": true,
425
+ "description": "The ID of the tool call. This ID must be referenced when you submit the tool outputs in using the [Submit tool outputs to run](/docs/api-reference/runs/submitToolOutputs) endpoint."
426
+ },
427
+ {
428
+ "name": "type",
429
+ "type": {
430
+ "kind": "scalar",
431
+ "scalar": "string",
432
+ "const": "function"
433
+ },
434
+ "required": true,
435
+ "description": "The type of tool call the output is required for. For now, this is always `function`."
436
+ },
437
+ {
438
+ "name": "function",
439
+ "type": {
440
+ "kind": "ref",
441
+ "name": "RunToolCallObjectFunction"
442
+ },
443
+ "required": true,
444
+ "description": "The function definition."
445
+ }
446
+ ],
447
+ "description": "Tool call objects"
448
+ },
449
+ {
450
+ "name": "RunToolCallObjectFunction",
451
+ "kind": "struct",
452
+ "fields": [
453
+ {
454
+ "name": "name",
455
+ "type": {
456
+ "kind": "scalar",
457
+ "scalar": "string"
458
+ },
459
+ "required": true,
460
+ "description": "The name of the function."
461
+ },
462
+ {
463
+ "name": "arguments",
464
+ "type": {
465
+ "kind": "scalar",
466
+ "scalar": "string"
467
+ },
468
+ "required": true,
469
+ "description": "The arguments that the model expects you to pass to the function."
470
+ }
471
+ ],
472
+ "description": "The function definition."
473
+ },
474
+ {
475
+ "name": "RunObjectLastError",
476
+ "kind": "struct",
477
+ "fields": [
478
+ {
479
+ "name": "code",
480
+ "type": {
481
+ "kind": "ref",
482
+ "name": "RunObjectLastErrorCode"
483
+ },
484
+ "required": true,
485
+ "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
486
+ },
487
+ {
488
+ "name": "message",
489
+ "type": {
490
+ "kind": "scalar",
491
+ "scalar": "string"
492
+ },
493
+ "required": true,
494
+ "description": "A human-readable description of the error."
495
+ }
496
+ ],
497
+ "description": "The last error associated with this run. Will be `null` if there are no errors."
498
+ },
499
+ {
500
+ "name": "RunObjectLastErrorCode",
501
+ "kind": "enum",
502
+ "base": "string",
503
+ "values": [
504
+ {
505
+ "value": "server_error"
506
+ },
507
+ {
508
+ "value": "rate_limit_exceeded"
509
+ },
510
+ {
511
+ "value": "invalid_prompt"
512
+ }
513
+ ],
514
+ "description": "One of `server_error`, `rate_limit_exceeded`, or `invalid_prompt`."
515
+ },
516
+ {
517
+ "name": "RunObjectIncompleteDetails",
518
+ "kind": "struct",
519
+ "fields": [
520
+ {
521
+ "name": "reason",
522
+ "type": {
523
+ "kind": "ref",
524
+ "name": "RunObjectIncompleteDetailsReason"
525
+ },
526
+ "required": false,
527
+ "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
528
+ }
529
+ ],
530
+ "description": "Details on why the run is incomplete. Will be `null` if the run is not incomplete."
531
+ },
532
+ {
533
+ "name": "RunObjectIncompleteDetailsReason",
534
+ "kind": "enum",
535
+ "base": "string",
536
+ "values": [
537
+ {
538
+ "value": "max_completion_tokens"
539
+ },
540
+ {
541
+ "value": "max_prompt_tokens"
542
+ }
543
+ ],
544
+ "description": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run."
545
+ },
546
+ {
547
+ "name": "RunObjectToolsItem",
548
+ "kind": "union",
549
+ "semantics": "oneOf",
550
+ "variants": [
551
+ {
552
+ "kind": "ref",
553
+ "name": "AssistantToolsCode"
554
+ },
555
+ {
556
+ "kind": "ref",
557
+ "name": "AssistantToolsFileSearch"
558
+ },
559
+ {
560
+ "kind": "ref",
561
+ "name": "AssistantToolsFunction"
562
+ }
563
+ ]
564
+ },
565
+ {
566
+ "name": "AssistantToolsCode",
567
+ "kind": "struct",
568
+ "fields": [
569
+ {
570
+ "name": "type",
571
+ "type": {
572
+ "kind": "scalar",
573
+ "scalar": "string",
574
+ "const": "code_interpreter"
575
+ },
576
+ "required": true,
577
+ "description": "The type of tool being defined: `code_interpreter`"
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "name": "AssistantToolsFileSearch",
583
+ "kind": "struct",
584
+ "fields": [
585
+ {
586
+ "name": "type",
587
+ "type": {
588
+ "kind": "scalar",
589
+ "scalar": "string",
590
+ "const": "file_search"
591
+ },
592
+ "required": true,
593
+ "description": "The type of tool being defined: `file_search`"
594
+ },
595
+ {
596
+ "name": "file_search",
597
+ "type": {
598
+ "kind": "ref",
599
+ "name": "AssistantToolsFileSearchFileSearch"
600
+ },
601
+ "required": false,
602
+ "description": "Overrides for the file search tool."
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "name": "AssistantToolsFileSearchFileSearch",
608
+ "kind": "struct",
609
+ "fields": [
610
+ {
611
+ "name": "max_num_results",
612
+ "type": {
613
+ "kind": "scalar",
614
+ "scalar": "integer"
615
+ },
616
+ "required": false,
617
+ "description": "The maximum number of results the file search tool should output. The default is 20 for `gpt-4*` models and 5 for `gpt-3.5-turbo`. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n"
618
+ },
619
+ {
620
+ "name": "ranking_options",
621
+ "type": {
622
+ "kind": "ref",
623
+ "name": "FileSearchRankingOptions"
624
+ },
625
+ "required": false
626
+ }
627
+ ],
628
+ "description": "Overrides for the file search tool."
629
+ },
630
+ {
631
+ "name": "FileSearchRankingOptions",
632
+ "kind": "struct",
633
+ "fields": [
634
+ {
635
+ "name": "ranker",
636
+ "type": {
637
+ "kind": "ref",
638
+ "name": "FileSearchRanker"
639
+ },
640
+ "required": false
641
+ },
642
+ {
643
+ "name": "score_threshold",
644
+ "type": {
645
+ "kind": "scalar",
646
+ "scalar": "number"
647
+ },
648
+ "required": true,
649
+ "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1."
650
+ }
651
+ ],
652
+ "description": "The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.\n\nSee the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.\n"
653
+ },
654
+ {
655
+ "name": "FileSearchRanker",
656
+ "kind": "enum",
657
+ "base": "string",
658
+ "values": [
659
+ {
660
+ "value": "auto"
661
+ },
662
+ {
663
+ "value": "default_2024_08_21"
664
+ }
665
+ ],
666
+ "description": "The ranker to use for the file search. If not specified will use the `auto` ranker."
667
+ },
668
+ {
669
+ "name": "AssistantToolsFunction",
670
+ "kind": "struct",
671
+ "fields": [
672
+ {
673
+ "name": "type",
674
+ "type": {
675
+ "kind": "scalar",
676
+ "scalar": "string",
677
+ "const": "function"
678
+ },
679
+ "required": true,
680
+ "description": "The type of tool being defined: `function`"
681
+ },
682
+ {
683
+ "name": "function",
684
+ "type": {
685
+ "kind": "ref",
686
+ "name": "FunctionObject"
687
+ },
688
+ "required": true
689
+ }
690
+ ]
691
+ },
692
+ {
693
+ "name": "FunctionObject",
694
+ "kind": "struct",
695
+ "fields": [
696
+ {
697
+ "name": "description",
698
+ "type": {
699
+ "kind": "scalar",
700
+ "scalar": "string"
701
+ },
702
+ "required": false,
703
+ "description": "A description of what the function does, used by the model to choose when and how to call the function."
704
+ },
705
+ {
706
+ "name": "name",
707
+ "type": {
708
+ "kind": "scalar",
709
+ "scalar": "string"
710
+ },
711
+ "required": true,
712
+ "description": "The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64."
713
+ },
714
+ {
715
+ "name": "parameters",
716
+ "type": {
717
+ "kind": "ref",
718
+ "name": "FunctionParameters"
719
+ },
720
+ "required": false
721
+ },
722
+ {
723
+ "name": "strict",
724
+ "type": {
725
+ "kind": "scalar",
726
+ "scalar": "boolean",
727
+ "nullable": true
728
+ },
729
+ "required": false
730
+ }
731
+ ]
732
+ },
733
+ {
734
+ "name": "FunctionParameters",
735
+ "kind": "alias",
736
+ "of": {
737
+ "kind": "map",
738
+ "values": {
739
+ "kind": "any"
740
+ }
741
+ }
742
+ },
743
+ {
744
+ "name": "RunCompletionUsage",
745
+ "kind": "struct",
746
+ "fields": [
747
+ {
748
+ "name": "completion_tokens",
749
+ "type": {
750
+ "kind": "scalar",
751
+ "scalar": "integer"
752
+ },
753
+ "required": true,
754
+ "description": "Number of completion tokens used over the course of the run."
755
+ },
756
+ {
757
+ "name": "prompt_tokens",
758
+ "type": {
759
+ "kind": "scalar",
760
+ "scalar": "integer"
761
+ },
762
+ "required": true,
763
+ "description": "Number of prompt tokens used over the course of the run."
764
+ },
765
+ {
766
+ "name": "total_tokens",
767
+ "type": {
768
+ "kind": "scalar",
769
+ "scalar": "integer"
770
+ },
771
+ "required": true,
772
+ "description": "Total number of tokens used (prompt + completion)."
773
+ }
774
+ ],
775
+ "description": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.)."
776
+ },
777
+ {
778
+ "name": "TruncationObject",
779
+ "kind": "struct",
780
+ "fields": [
781
+ {
782
+ "name": "type",
783
+ "type": {
784
+ "kind": "ref",
785
+ "name": "TruncationObjectType"
786
+ },
787
+ "required": true,
788
+ "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`."
789
+ },
790
+ {
791
+ "name": "last_messages",
792
+ "type": {
793
+ "kind": "scalar",
794
+ "scalar": "integer",
795
+ "nullable": true
796
+ },
797
+ "required": false
798
+ }
799
+ ],
800
+ "description": "Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run."
801
+ },
802
+ {
803
+ "name": "TruncationObjectType",
804
+ "kind": "enum",
805
+ "base": "string",
806
+ "values": [
807
+ {
808
+ "value": "auto"
809
+ },
810
+ {
811
+ "value": "last_messages"
812
+ }
813
+ ],
814
+ "description": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will be truncated to the n most recent messages in the thread. When set to `auto`, messages in the middle of the thread will be dropped to fit the context length of the model, `max_prompt_tokens`."
815
+ },
816
+ {
817
+ "name": "AssistantsApiToolChoiceOption",
818
+ "kind": "union",
819
+ "semantics": "oneOf",
820
+ "variants": [
821
+ {
822
+ "kind": "ref",
823
+ "name": "AssistantsApiToolChoiceOptionString"
824
+ },
825
+ {
826
+ "kind": "ref",
827
+ "name": "AssistantsNamedToolChoice"
828
+ }
829
+ ],
830
+ "description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tools and instead generates a message.\n`auto` is the default value and means the model can pick between generating a message or calling one or more tools.\n`required` means the model must call one or more tools before responding to the user.\nSpecifying a particular tool like `{\"type\": \"file_search\"}` or `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool.\n"
831
+ },
832
+ {
833
+ "name": "AssistantsApiToolChoiceOptionString",
834
+ "kind": "enum",
835
+ "base": "string",
836
+ "values": [
837
+ {
838
+ "value": "none"
839
+ },
840
+ {
841
+ "value": "auto"
842
+ },
843
+ {
844
+ "value": "required"
845
+ }
846
+ ],
847
+ "description": "`none` means the model will not call any tools and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools before responding to the user.\n"
848
+ },
849
+ {
850
+ "name": "AssistantsNamedToolChoice",
851
+ "kind": "struct",
852
+ "fields": [
853
+ {
854
+ "name": "type",
855
+ "type": {
856
+ "kind": "ref",
857
+ "name": "AssistantsNamedToolChoiceType"
858
+ },
859
+ "required": true,
860
+ "description": "The type of the tool. If type is `function`, the function name must be set"
861
+ },
862
+ {
863
+ "name": "function",
864
+ "type": {
865
+ "kind": "ref",
866
+ "name": "AssistantsNamedToolChoiceFunction"
867
+ },
868
+ "required": false
869
+ }
870
+ ],
871
+ "description": "Specifies a tool the model should use. Use to force the model to call a specific tool."
872
+ },
873
+ {
874
+ "name": "AssistantsNamedToolChoiceType",
875
+ "kind": "enum",
876
+ "base": "string",
877
+ "values": [
878
+ {
879
+ "value": "function"
880
+ },
881
+ {
882
+ "value": "code_interpreter"
883
+ },
884
+ {
885
+ "value": "file_search"
886
+ }
887
+ ],
888
+ "description": "The type of the tool. If type is `function`, the function name must be set"
889
+ },
890
+ {
891
+ "name": "AssistantsNamedToolChoiceFunction",
892
+ "kind": "struct",
893
+ "fields": [
894
+ {
895
+ "name": "name",
896
+ "type": {
897
+ "kind": "scalar",
898
+ "scalar": "string"
899
+ },
900
+ "required": true,
901
+ "description": "The name of the function to call."
902
+ }
903
+ ]
904
+ },
905
+ {
906
+ "name": "ParallelToolCalls",
907
+ "kind": "alias",
908
+ "of": {
909
+ "kind": "scalar",
910
+ "scalar": "boolean"
911
+ }
912
+ },
913
+ {
914
+ "name": "AssistantsApiResponseFormatOption",
915
+ "kind": "union",
916
+ "semantics": "oneOf",
917
+ "variants": [
918
+ {
919
+ "kind": "scalar",
920
+ "scalar": "string",
921
+ "const": "auto"
922
+ },
923
+ {
924
+ "kind": "ref",
925
+ "name": "ResponseFormatText"
926
+ },
927
+ {
928
+ "kind": "ref",
929
+ "name": "ResponseFormatJsonObject"
930
+ },
931
+ {
932
+ "kind": "ref",
933
+ "name": "ResponseFormatJsonSchema"
934
+ }
935
+ ],
936
+ "description": "Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models#gpt-4o), [GPT-4 Turbo](/docs/models#gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.\n\nSetting to `{ \"type\": \"json_schema\", \"json_schema\": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the [Structured Outputs guide](/docs/guides/structured-outputs).\n\nSetting to `{ \"type\": \"json_object\" }` enables JSON mode, which ensures the message the model generates is valid JSON.\n\n**Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly \"stuck\" request. Also note that the message content may be partially cut off if `finish_reason=\"length\"`, which indicates the generation exceeded `max_tokens` or the conversation exceeded the max context length.\n"
937
+ },
938
+ {
939
+ "name": "ResponseFormatText",
940
+ "kind": "struct",
941
+ "fields": [
942
+ {
943
+ "name": "type",
944
+ "type": {
945
+ "kind": "scalar",
946
+ "scalar": "string",
947
+ "const": "text"
948
+ },
949
+ "required": true,
950
+ "description": "The type of response format being defined. Always `text`."
951
+ }
952
+ ],
953
+ "description": "Default response format. Used to generate text responses.\n"
954
+ },
955
+ {
956
+ "name": "ResponseFormatJsonObject",
957
+ "kind": "struct",
958
+ "fields": [
959
+ {
960
+ "name": "type",
961
+ "type": {
962
+ "kind": "scalar",
963
+ "scalar": "string",
964
+ "const": "json_object"
965
+ },
966
+ "required": true,
967
+ "description": "The type of response format being defined. Always `json_object`."
968
+ }
969
+ ],
970
+ "description": "JSON object response format. An older method of generating JSON responses.\nUsing `json_schema` is recommended for models that support it. Note that the\nmodel will not generate JSON without a system or user message instructing it\nto do so.\n"
971
+ },
972
+ {
973
+ "name": "ResponseFormatJsonSchema",
974
+ "kind": "struct",
975
+ "fields": [
976
+ {
977
+ "name": "type",
978
+ "type": {
979
+ "kind": "scalar",
980
+ "scalar": "string",
981
+ "const": "json_schema"
982
+ },
983
+ "required": true,
984
+ "description": "The type of response format being defined. Always `json_schema`."
985
+ },
986
+ {
987
+ "name": "json_schema",
988
+ "type": {
989
+ "kind": "ref",
990
+ "name": "ResponseFormatJsonSchemaJsonSchema"
991
+ },
992
+ "required": true,
993
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
994
+ }
995
+ ],
996
+ "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n"
997
+ },
998
+ {
999
+ "name": "ResponseFormatJsonSchemaJsonSchema",
1000
+ "kind": "struct",
1001
+ "fields": [
1002
+ {
1003
+ "name": "description",
1004
+ "type": {
1005
+ "kind": "scalar",
1006
+ "scalar": "string"
1007
+ },
1008
+ "required": false,
1009
+ "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n"
1010
+ },
1011
+ {
1012
+ "name": "name",
1013
+ "type": {
1014
+ "kind": "scalar",
1015
+ "scalar": "string"
1016
+ },
1017
+ "required": true,
1018
+ "description": "The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n"
1019
+ },
1020
+ {
1021
+ "name": "schema",
1022
+ "type": {
1023
+ "kind": "ref",
1024
+ "name": "ResponseFormatJsonSchemaSchema"
1025
+ },
1026
+ "required": false
1027
+ },
1028
+ {
1029
+ "name": "strict",
1030
+ "type": {
1031
+ "kind": "scalar",
1032
+ "scalar": "boolean",
1033
+ "nullable": true
1034
+ },
1035
+ "required": false
1036
+ }
1037
+ ],
1038
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
1039
+ },
1040
+ {
1041
+ "name": "ResponseFormatJsonSchemaSchema",
1042
+ "kind": "alias",
1043
+ "of": {
1044
+ "kind": "map",
1045
+ "values": {
1046
+ "kind": "any"
1047
+ }
1048
+ }
1049
+ }
1050
+ ],
1051
+ "resources": [
1052
+ {
1053
+ "name": "beta",
1054
+ "resources": [
1055
+ {
1056
+ "name": "threads",
1057
+ "resources": [
1058
+ {
1059
+ "name": "runs",
1060
+ "methods": [
1061
+ {
1062
+ "action": "update",
1063
+ "httpMethod": "post",
1064
+ "path": "/threads/{thread_id}/runs/{run_id}",
1065
+ "operationId": "modifyRun",
1066
+ "description": "Modifies a run.",
1067
+ "pathParams": [
1068
+ {
1069
+ "name": "thread_id",
1070
+ "type": {
1071
+ "kind": "scalar",
1072
+ "scalar": "string"
1073
+ },
1074
+ "required": true,
1075
+ "description": "The ID of the [thread](/docs/api-reference/threads) that was run."
1076
+ },
1077
+ {
1078
+ "name": "run_id",
1079
+ "type": {
1080
+ "kind": "scalar",
1081
+ "scalar": "string"
1082
+ },
1083
+ "required": true,
1084
+ "description": "The ID of the run to modify."
1085
+ }
1086
+ ],
1087
+ "requestBody": {
1088
+ "contentType": "application/json",
1089
+ "type": {
1090
+ "kind": "ref",
1091
+ "name": "ModifyRunRequest"
1092
+ },
1093
+ "required": true,
1094
+ "encoding": "json"
1095
+ },
1096
+ "responses": [
1097
+ {
1098
+ "status": "200",
1099
+ "description": "OK",
1100
+ "contentType": "application/json",
1101
+ "type": {
1102
+ "kind": "ref",
1103
+ "name": "RunObject"
1104
+ }
1105
+ }
1106
+ ],
1107
+ "primaryResponse": {
1108
+ "kind": "ref",
1109
+ "name": "RunObject"
1110
+ }
1111
+ }
1112
+ ]
1113
+ }
1114
+ ]
1115
+ }
1116
+ ]
1117
+ }
1118
+ ],
1119
+ "sdk": {
1120
+ "retry": {
1121
+ "maxRetries": 2,
1122
+ "retryableStatusCodes": [
1123
+ 408,
1124
+ 429,
1125
+ 500,
1126
+ 502,
1127
+ 503,
1128
+ 504
1129
+ ],
1130
+ "retryConnectionErrors": true,
1131
+ "honorRetryAfterHeader": true,
1132
+ "backoff": {
1133
+ "initialDelayMs": 500,
1134
+ "maxDelayMs": 8000,
1135
+ "multiplier": 2,
1136
+ "jitter": 0.25
1137
+ }
1138
+ },
1139
+ "timeout": {
1140
+ "defaultTimeoutMs": 60000
1141
+ },
1142
+ "errors": {
1143
+ "statusCodeMap": {
1144
+ "400": "BadRequest",
1145
+ "401": "Unauthorized",
1146
+ "403": "PermissionDenied",
1147
+ "404": "NotFound",
1148
+ "409": "Conflict",
1149
+ "422": "UnprocessableEntity",
1150
+ "429": "RateLimited"
1151
+ },
1152
+ "clientErrorKind": "API",
1153
+ "serverErrorKind": "Internal"
1154
+ },
1155
+ "userAgent": {
1156
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1157
+ "includeRuntimeVersion": false,
1158
+ "aiAgentEnvVars": {
1159
+ "CLAUDE_CODE": "claude-code",
1160
+ "CURSOR_AGENT": "cursor",
1161
+ "CLINE_ACTIVE": "cline",
1162
+ "WINDSURF_ACTIVE": "windsurf",
1163
+ "COPILOT_AGENT": "copilot"
1164
+ }
1165
+ },
1166
+ "telemetry": {
1167
+ "requestIdHeader": "X-Request-ID",
1168
+ "headerName": "X-Client-Telemetry",
1169
+ "enabledByDefault": false
1170
+ },
1171
+ "logging": {
1172
+ "events": [
1173
+ "request.start",
1174
+ "request.success",
1175
+ "request.retry",
1176
+ "request.rate_limited",
1177
+ "request.error",
1178
+ "request.connection_error"
1179
+ ]
1180
+ },
1181
+ "idempotency": {
1182
+ "headerName": "Idempotency-Key",
1183
+ "autoGenerateForPost": true
1184
+ },
1185
+ "pagination": {
1186
+ "autoPageDelayMs": 0
1187
+ },
1188
+ "requestGuard": {
1189
+ "optionKeys": [
1190
+ "api_key",
1191
+ "apiKey",
1192
+ "idempotency_key",
1193
+ "idempotencyKey",
1194
+ "extra_headers",
1195
+ "extraHeaders",
1196
+ "max_retries",
1197
+ "maxRetries",
1198
+ "base_url",
1199
+ "baseUrl",
1200
+ "timeout"
1201
+ ]
1202
+ }
1203
+ }
1204
+ }