@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,1029 @@
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": "CreateAssistantRequest",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "model",
33
+ "type": {
34
+ "kind": "ref",
35
+ "name": "CreateAssistantRequestModel"
36
+ },
37
+ "required": true,
38
+ "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n"
39
+ },
40
+ {
41
+ "name": "name",
42
+ "type": {
43
+ "kind": "scalar",
44
+ "scalar": "string",
45
+ "nullable": true
46
+ },
47
+ "required": false
48
+ },
49
+ {
50
+ "name": "description",
51
+ "type": {
52
+ "kind": "scalar",
53
+ "scalar": "string",
54
+ "nullable": true
55
+ },
56
+ "required": false
57
+ },
58
+ {
59
+ "name": "instructions",
60
+ "type": {
61
+ "kind": "scalar",
62
+ "scalar": "string",
63
+ "nullable": true
64
+ },
65
+ "required": false
66
+ },
67
+ {
68
+ "name": "reasoning_effort",
69
+ "type": {
70
+ "kind": "ref",
71
+ "name": "ReasoningEffort"
72
+ },
73
+ "required": false
74
+ },
75
+ {
76
+ "name": "tools",
77
+ "type": {
78
+ "kind": "array",
79
+ "items": {
80
+ "kind": "ref",
81
+ "name": "CreateAssistantRequestToolsItem"
82
+ }
83
+ },
84
+ "required": false,
85
+ "default": [],
86
+ "description": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n"
87
+ },
88
+ {
89
+ "name": "tool_resources",
90
+ "type": {
91
+ "kind": "ref",
92
+ "name": "CreateAssistantRequestToolResources",
93
+ "nullable": true
94
+ },
95
+ "required": false
96
+ },
97
+ {
98
+ "name": "metadata",
99
+ "type": {
100
+ "kind": "ref",
101
+ "name": "Metadata"
102
+ },
103
+ "required": false
104
+ },
105
+ {
106
+ "name": "temperature",
107
+ "type": {
108
+ "kind": "scalar",
109
+ "scalar": "number",
110
+ "nullable": true
111
+ },
112
+ "required": false
113
+ },
114
+ {
115
+ "name": "top_p",
116
+ "type": {
117
+ "kind": "scalar",
118
+ "scalar": "number",
119
+ "nullable": true
120
+ },
121
+ "required": false
122
+ },
123
+ {
124
+ "name": "response_format",
125
+ "type": {
126
+ "kind": "ref",
127
+ "name": "AssistantsApiResponseFormatOption",
128
+ "nullable": true
129
+ },
130
+ "required": false
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "name": "CreateAssistantRequestModel",
136
+ "kind": "union",
137
+ "semantics": "anyOf",
138
+ "variants": [
139
+ {
140
+ "kind": "scalar",
141
+ "scalar": "string"
142
+ },
143
+ {
144
+ "kind": "ref",
145
+ "name": "AssistantSupportedModels"
146
+ }
147
+ ],
148
+ "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n"
149
+ },
150
+ {
151
+ "name": "AssistantSupportedModels",
152
+ "kind": "enum",
153
+ "base": "string",
154
+ "values": [
155
+ {
156
+ "value": "gpt-5"
157
+ },
158
+ {
159
+ "value": "gpt-5-mini"
160
+ },
161
+ {
162
+ "value": "gpt-5-nano"
163
+ },
164
+ {
165
+ "value": "gpt-5-2025-08-07"
166
+ },
167
+ {
168
+ "value": "gpt-5-mini-2025-08-07"
169
+ },
170
+ {
171
+ "value": "gpt-5-nano-2025-08-07"
172
+ },
173
+ {
174
+ "value": "gpt-4.1"
175
+ },
176
+ {
177
+ "value": "gpt-4.1-mini"
178
+ },
179
+ {
180
+ "value": "gpt-4.1-nano"
181
+ },
182
+ {
183
+ "value": "gpt-4.1-2025-04-14"
184
+ },
185
+ {
186
+ "value": "gpt-4.1-mini-2025-04-14"
187
+ },
188
+ {
189
+ "value": "gpt-4.1-nano-2025-04-14"
190
+ },
191
+ {
192
+ "value": "o3-mini"
193
+ },
194
+ {
195
+ "value": "o3-mini-2025-01-31"
196
+ },
197
+ {
198
+ "value": "o1"
199
+ },
200
+ {
201
+ "value": "o1-2024-12-17"
202
+ },
203
+ {
204
+ "value": "gpt-4o"
205
+ },
206
+ {
207
+ "value": "gpt-4o-2024-11-20"
208
+ },
209
+ {
210
+ "value": "gpt-4o-2024-08-06"
211
+ },
212
+ {
213
+ "value": "gpt-4o-2024-05-13"
214
+ },
215
+ {
216
+ "value": "gpt-4o-mini"
217
+ },
218
+ {
219
+ "value": "gpt-4o-mini-2024-07-18"
220
+ },
221
+ {
222
+ "value": "gpt-4.5-preview"
223
+ },
224
+ {
225
+ "value": "gpt-4.5-preview-2025-02-27"
226
+ },
227
+ {
228
+ "value": "gpt-4-turbo"
229
+ },
230
+ {
231
+ "value": "gpt-4-turbo-2024-04-09"
232
+ },
233
+ {
234
+ "value": "gpt-4-0125-preview"
235
+ },
236
+ {
237
+ "value": "gpt-4-turbo-preview"
238
+ },
239
+ {
240
+ "value": "gpt-4-1106-preview"
241
+ },
242
+ {
243
+ "value": "gpt-4-vision-preview"
244
+ },
245
+ {
246
+ "value": "gpt-4"
247
+ },
248
+ {
249
+ "value": "gpt-4-0314"
250
+ },
251
+ {
252
+ "value": "gpt-4-0613"
253
+ },
254
+ {
255
+ "value": "gpt-4-32k"
256
+ },
257
+ {
258
+ "value": "gpt-4-32k-0314"
259
+ },
260
+ {
261
+ "value": "gpt-4-32k-0613"
262
+ },
263
+ {
264
+ "value": "gpt-3.5-turbo"
265
+ },
266
+ {
267
+ "value": "gpt-3.5-turbo-16k"
268
+ },
269
+ {
270
+ "value": "gpt-3.5-turbo-0613"
271
+ },
272
+ {
273
+ "value": "gpt-3.5-turbo-1106"
274
+ },
275
+ {
276
+ "value": "gpt-3.5-turbo-0125"
277
+ },
278
+ {
279
+ "value": "gpt-3.5-turbo-16k-0613"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "name": "ReasoningEffort",
285
+ "kind": "enum",
286
+ "base": "string",
287
+ "values": [
288
+ {
289
+ "value": "none"
290
+ },
291
+ {
292
+ "value": "minimal"
293
+ },
294
+ {
295
+ "value": "low"
296
+ },
297
+ {
298
+ "value": "medium"
299
+ },
300
+ {
301
+ "value": "high"
302
+ },
303
+ {
304
+ "value": "xhigh"
305
+ }
306
+ ],
307
+ "description": "Constrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n\n- `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.\n- All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.\n- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.\n- `xhigh` is supported for all models after `gpt-5.1-codex-max`.\n"
308
+ },
309
+ {
310
+ "name": "CreateAssistantRequestToolsItem",
311
+ "kind": "union",
312
+ "semantics": "oneOf",
313
+ "variants": [
314
+ {
315
+ "kind": "ref",
316
+ "name": "AssistantToolsCode"
317
+ },
318
+ {
319
+ "kind": "ref",
320
+ "name": "AssistantToolsFileSearch"
321
+ },
322
+ {
323
+ "kind": "ref",
324
+ "name": "AssistantToolsFunction"
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "name": "AssistantToolsCode",
330
+ "kind": "struct",
331
+ "fields": [
332
+ {
333
+ "name": "type",
334
+ "type": {
335
+ "kind": "scalar",
336
+ "scalar": "string",
337
+ "const": "code_interpreter"
338
+ },
339
+ "required": true,
340
+ "description": "The type of tool being defined: `code_interpreter`"
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "name": "AssistantToolsFileSearch",
346
+ "kind": "struct",
347
+ "fields": [
348
+ {
349
+ "name": "type",
350
+ "type": {
351
+ "kind": "scalar",
352
+ "scalar": "string",
353
+ "const": "file_search"
354
+ },
355
+ "required": true,
356
+ "description": "The type of tool being defined: `file_search`"
357
+ },
358
+ {
359
+ "name": "file_search",
360
+ "type": {
361
+ "kind": "ref",
362
+ "name": "AssistantToolsFileSearchFileSearch"
363
+ },
364
+ "required": false,
365
+ "description": "Overrides for the file search tool."
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "name": "AssistantToolsFileSearchFileSearch",
371
+ "kind": "struct",
372
+ "fields": [
373
+ {
374
+ "name": "max_num_results",
375
+ "type": {
376
+ "kind": "scalar",
377
+ "scalar": "integer"
378
+ },
379
+ "required": false,
380
+ "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"
381
+ },
382
+ {
383
+ "name": "ranking_options",
384
+ "type": {
385
+ "kind": "ref",
386
+ "name": "FileSearchRankingOptions"
387
+ },
388
+ "required": false
389
+ }
390
+ ],
391
+ "description": "Overrides for the file search tool."
392
+ },
393
+ {
394
+ "name": "FileSearchRankingOptions",
395
+ "kind": "struct",
396
+ "fields": [
397
+ {
398
+ "name": "ranker",
399
+ "type": {
400
+ "kind": "ref",
401
+ "name": "FileSearchRanker"
402
+ },
403
+ "required": false
404
+ },
405
+ {
406
+ "name": "score_threshold",
407
+ "type": {
408
+ "kind": "scalar",
409
+ "scalar": "number"
410
+ },
411
+ "required": true,
412
+ "description": "The score threshold for the file search. All values must be a floating point number between 0 and 1."
413
+ }
414
+ ],
415
+ "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"
416
+ },
417
+ {
418
+ "name": "FileSearchRanker",
419
+ "kind": "enum",
420
+ "base": "string",
421
+ "values": [
422
+ {
423
+ "value": "auto"
424
+ },
425
+ {
426
+ "value": "default_2024_08_21"
427
+ }
428
+ ],
429
+ "description": "The ranker to use for the file search. If not specified will use the `auto` ranker."
430
+ },
431
+ {
432
+ "name": "AssistantToolsFunction",
433
+ "kind": "struct",
434
+ "fields": [
435
+ {
436
+ "name": "type",
437
+ "type": {
438
+ "kind": "scalar",
439
+ "scalar": "string",
440
+ "const": "function"
441
+ },
442
+ "required": true,
443
+ "description": "The type of tool being defined: `function`"
444
+ },
445
+ {
446
+ "name": "function",
447
+ "type": {
448
+ "kind": "ref",
449
+ "name": "FunctionObject"
450
+ },
451
+ "required": true
452
+ }
453
+ ]
454
+ },
455
+ {
456
+ "name": "FunctionObject",
457
+ "kind": "struct",
458
+ "fields": [
459
+ {
460
+ "name": "description",
461
+ "type": {
462
+ "kind": "scalar",
463
+ "scalar": "string"
464
+ },
465
+ "required": false,
466
+ "description": "A description of what the function does, used by the model to choose when and how to call the function."
467
+ },
468
+ {
469
+ "name": "name",
470
+ "type": {
471
+ "kind": "scalar",
472
+ "scalar": "string"
473
+ },
474
+ "required": true,
475
+ "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."
476
+ },
477
+ {
478
+ "name": "parameters",
479
+ "type": {
480
+ "kind": "ref",
481
+ "name": "FunctionParameters"
482
+ },
483
+ "required": false
484
+ },
485
+ {
486
+ "name": "strict",
487
+ "type": {
488
+ "kind": "scalar",
489
+ "scalar": "boolean",
490
+ "nullable": true
491
+ },
492
+ "required": false
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "name": "FunctionParameters",
498
+ "kind": "alias",
499
+ "of": {
500
+ "kind": "map",
501
+ "values": {
502
+ "kind": "any"
503
+ }
504
+ }
505
+ },
506
+ {
507
+ "name": "CreateAssistantRequestToolResources",
508
+ "kind": "struct",
509
+ "fields": [
510
+ {
511
+ "name": "code_interpreter",
512
+ "type": {
513
+ "kind": "ref",
514
+ "name": "CreateAssistantRequestToolResourcesCodeInterpreter"
515
+ },
516
+ "required": false
517
+ },
518
+ {
519
+ "name": "file_search",
520
+ "type": {
521
+ "kind": "ref",
522
+ "name": "CreateAssistantRequestToolResourcesFileSearch"
523
+ },
524
+ "required": false
525
+ }
526
+ ],
527
+ "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n"
528
+ },
529
+ {
530
+ "name": "CreateAssistantRequestToolResourcesCodeInterpreter",
531
+ "kind": "struct",
532
+ "fields": [
533
+ {
534
+ "name": "file_ids",
535
+ "type": {
536
+ "kind": "array",
537
+ "items": {
538
+ "kind": "scalar",
539
+ "scalar": "string"
540
+ }
541
+ },
542
+ "required": false,
543
+ "default": [],
544
+ "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "name": "CreateAssistantRequestToolResourcesFileSearch",
550
+ "kind": "union",
551
+ "semantics": "oneOf",
552
+ "variants": [
553
+ {
554
+ "kind": "any"
555
+ },
556
+ {
557
+ "kind": "any"
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "name": "Metadata",
563
+ "kind": "alias",
564
+ "of": {
565
+ "kind": "map",
566
+ "values": {
567
+ "kind": "scalar",
568
+ "scalar": "string"
569
+ },
570
+ "nullable": true
571
+ }
572
+ },
573
+ {
574
+ "name": "AssistantsApiResponseFormatOption",
575
+ "kind": "union",
576
+ "semantics": "oneOf",
577
+ "variants": [
578
+ {
579
+ "kind": "scalar",
580
+ "scalar": "string",
581
+ "const": "auto"
582
+ },
583
+ {
584
+ "kind": "ref",
585
+ "name": "ResponseFormatText"
586
+ },
587
+ {
588
+ "kind": "ref",
589
+ "name": "ResponseFormatJsonObject"
590
+ },
591
+ {
592
+ "kind": "ref",
593
+ "name": "ResponseFormatJsonSchema"
594
+ }
595
+ ],
596
+ "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"
597
+ },
598
+ {
599
+ "name": "ResponseFormatText",
600
+ "kind": "struct",
601
+ "fields": [
602
+ {
603
+ "name": "type",
604
+ "type": {
605
+ "kind": "scalar",
606
+ "scalar": "string",
607
+ "const": "text"
608
+ },
609
+ "required": true,
610
+ "description": "The type of response format being defined. Always `text`."
611
+ }
612
+ ],
613
+ "description": "Default response format. Used to generate text responses.\n"
614
+ },
615
+ {
616
+ "name": "ResponseFormatJsonObject",
617
+ "kind": "struct",
618
+ "fields": [
619
+ {
620
+ "name": "type",
621
+ "type": {
622
+ "kind": "scalar",
623
+ "scalar": "string",
624
+ "const": "json_object"
625
+ },
626
+ "required": true,
627
+ "description": "The type of response format being defined. Always `json_object`."
628
+ }
629
+ ],
630
+ "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"
631
+ },
632
+ {
633
+ "name": "ResponseFormatJsonSchema",
634
+ "kind": "struct",
635
+ "fields": [
636
+ {
637
+ "name": "type",
638
+ "type": {
639
+ "kind": "scalar",
640
+ "scalar": "string",
641
+ "const": "json_schema"
642
+ },
643
+ "required": true,
644
+ "description": "The type of response format being defined. Always `json_schema`."
645
+ },
646
+ {
647
+ "name": "json_schema",
648
+ "type": {
649
+ "kind": "ref",
650
+ "name": "ResponseFormatJsonSchemaJsonSchema"
651
+ },
652
+ "required": true,
653
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
654
+ }
655
+ ],
656
+ "description": "JSON Schema response format. Used to generate structured JSON responses.\nLearn more about [Structured Outputs](/docs/guides/structured-outputs).\n"
657
+ },
658
+ {
659
+ "name": "ResponseFormatJsonSchemaJsonSchema",
660
+ "kind": "struct",
661
+ "fields": [
662
+ {
663
+ "name": "description",
664
+ "type": {
665
+ "kind": "scalar",
666
+ "scalar": "string"
667
+ },
668
+ "required": false,
669
+ "description": "A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n"
670
+ },
671
+ {
672
+ "name": "name",
673
+ "type": {
674
+ "kind": "scalar",
675
+ "scalar": "string"
676
+ },
677
+ "required": true,
678
+ "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"
679
+ },
680
+ {
681
+ "name": "schema",
682
+ "type": {
683
+ "kind": "ref",
684
+ "name": "ResponseFormatJsonSchemaSchema"
685
+ },
686
+ "required": false
687
+ },
688
+ {
689
+ "name": "strict",
690
+ "type": {
691
+ "kind": "scalar",
692
+ "scalar": "boolean",
693
+ "nullable": true
694
+ },
695
+ "required": false
696
+ }
697
+ ],
698
+ "description": "Structured Outputs configuration options, including a JSON Schema.\n"
699
+ },
700
+ {
701
+ "name": "ResponseFormatJsonSchemaSchema",
702
+ "kind": "alias",
703
+ "of": {
704
+ "kind": "map",
705
+ "values": {
706
+ "kind": "any"
707
+ }
708
+ }
709
+ },
710
+ {
711
+ "name": "AssistantObject",
712
+ "kind": "struct",
713
+ "fields": [
714
+ {
715
+ "name": "id",
716
+ "type": {
717
+ "kind": "scalar",
718
+ "scalar": "string"
719
+ },
720
+ "required": true,
721
+ "description": "The identifier, which can be referenced in API endpoints."
722
+ },
723
+ {
724
+ "name": "object",
725
+ "type": {
726
+ "kind": "scalar",
727
+ "scalar": "string",
728
+ "const": "assistant"
729
+ },
730
+ "required": true,
731
+ "description": "The object type, which is always `assistant`."
732
+ },
733
+ {
734
+ "name": "created_at",
735
+ "type": {
736
+ "kind": "scalar",
737
+ "scalar": "integer",
738
+ "format": "unixtime"
739
+ },
740
+ "required": true,
741
+ "description": "The Unix timestamp (in seconds) for when the assistant was created."
742
+ },
743
+ {
744
+ "name": "name",
745
+ "type": {
746
+ "kind": "scalar",
747
+ "scalar": "string",
748
+ "nullable": true
749
+ },
750
+ "required": true
751
+ },
752
+ {
753
+ "name": "description",
754
+ "type": {
755
+ "kind": "scalar",
756
+ "scalar": "string",
757
+ "nullable": true
758
+ },
759
+ "required": true
760
+ },
761
+ {
762
+ "name": "model",
763
+ "type": {
764
+ "kind": "scalar",
765
+ "scalar": "string"
766
+ },
767
+ "required": true,
768
+ "description": "ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models) for descriptions of them.\n"
769
+ },
770
+ {
771
+ "name": "instructions",
772
+ "type": {
773
+ "kind": "scalar",
774
+ "scalar": "string",
775
+ "nullable": true
776
+ },
777
+ "required": true
778
+ },
779
+ {
780
+ "name": "tools",
781
+ "type": {
782
+ "kind": "array",
783
+ "items": {
784
+ "kind": "ref",
785
+ "name": "CreateAssistantRequestToolsItem"
786
+ }
787
+ },
788
+ "required": true,
789
+ "default": [],
790
+ "description": "A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.\n"
791
+ },
792
+ {
793
+ "name": "tool_resources",
794
+ "type": {
795
+ "kind": "ref",
796
+ "name": "AssistantObjectToolResources",
797
+ "nullable": true
798
+ },
799
+ "required": false
800
+ },
801
+ {
802
+ "name": "metadata",
803
+ "type": {
804
+ "kind": "ref",
805
+ "name": "Metadata"
806
+ },
807
+ "required": true
808
+ },
809
+ {
810
+ "name": "temperature",
811
+ "type": {
812
+ "kind": "scalar",
813
+ "scalar": "number",
814
+ "nullable": true
815
+ },
816
+ "required": false
817
+ },
818
+ {
819
+ "name": "top_p",
820
+ "type": {
821
+ "kind": "scalar",
822
+ "scalar": "number",
823
+ "nullable": true
824
+ },
825
+ "required": false
826
+ },
827
+ {
828
+ "name": "response_format",
829
+ "type": {
830
+ "kind": "ref",
831
+ "name": "AssistantsApiResponseFormatOption",
832
+ "nullable": true
833
+ },
834
+ "required": false
835
+ }
836
+ ],
837
+ "description": "Represents an `assistant` that can call the model and use tools."
838
+ },
839
+ {
840
+ "name": "AssistantObjectToolResources",
841
+ "kind": "struct",
842
+ "fields": [
843
+ {
844
+ "name": "code_interpreter",
845
+ "type": {
846
+ "kind": "ref",
847
+ "name": "AssistantObjectToolResourcesCodeInterpreter"
848
+ },
849
+ "required": false
850
+ },
851
+ {
852
+ "name": "file_search",
853
+ "type": {
854
+ "kind": "ref",
855
+ "name": "AssistantObjectToolResourcesFileSearch"
856
+ },
857
+ "required": false
858
+ }
859
+ ],
860
+ "description": "A set of resources that are used by the assistant's tools. The resources are specific to the type of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.\n"
861
+ },
862
+ {
863
+ "name": "AssistantObjectToolResourcesCodeInterpreter",
864
+ "kind": "struct",
865
+ "fields": [
866
+ {
867
+ "name": "file_ids",
868
+ "type": {
869
+ "kind": "array",
870
+ "items": {
871
+ "kind": "scalar",
872
+ "scalar": "string"
873
+ }
874
+ },
875
+ "required": false,
876
+ "default": [],
877
+ "description": "A list of [file](/docs/api-reference/files) IDs made available to the `code_interpreter`` tool. There can be a maximum of 20 files associated with the tool.\n"
878
+ }
879
+ ]
880
+ },
881
+ {
882
+ "name": "AssistantObjectToolResourcesFileSearch",
883
+ "kind": "struct",
884
+ "fields": [
885
+ {
886
+ "name": "vector_store_ids",
887
+ "type": {
888
+ "kind": "array",
889
+ "items": {
890
+ "kind": "scalar",
891
+ "scalar": "string"
892
+ }
893
+ },
894
+ "required": false,
895
+ "description": "The ID of the [vector store](/docs/api-reference/vector-stores/object) attached to this assistant. There can be a maximum of 1 vector store attached to the assistant.\n"
896
+ }
897
+ ]
898
+ }
899
+ ],
900
+ "resources": [
901
+ {
902
+ "name": "beta",
903
+ "resources": [
904
+ {
905
+ "name": "assistants",
906
+ "methods": [
907
+ {
908
+ "action": "create",
909
+ "httpMethod": "post",
910
+ "path": "/assistants",
911
+ "operationId": "createAssistant",
912
+ "description": "Create an assistant with a model and instructions.",
913
+ "deprecated": true,
914
+ "requestBody": {
915
+ "contentType": "application/json",
916
+ "type": {
917
+ "kind": "ref",
918
+ "name": "CreateAssistantRequest"
919
+ },
920
+ "required": true,
921
+ "encoding": "json"
922
+ },
923
+ "responses": [
924
+ {
925
+ "status": "200",
926
+ "description": "OK",
927
+ "contentType": "application/json",
928
+ "type": {
929
+ "kind": "ref",
930
+ "name": "AssistantObject"
931
+ }
932
+ }
933
+ ],
934
+ "primaryResponse": {
935
+ "kind": "ref",
936
+ "name": "AssistantObject"
937
+ }
938
+ }
939
+ ]
940
+ }
941
+ ]
942
+ }
943
+ ],
944
+ "sdk": {
945
+ "retry": {
946
+ "maxRetries": 2,
947
+ "retryableStatusCodes": [
948
+ 408,
949
+ 429,
950
+ 500,
951
+ 502,
952
+ 503,
953
+ 504
954
+ ],
955
+ "retryConnectionErrors": true,
956
+ "honorRetryAfterHeader": true,
957
+ "backoff": {
958
+ "initialDelayMs": 500,
959
+ "maxDelayMs": 8000,
960
+ "multiplier": 2,
961
+ "jitter": 0.25
962
+ }
963
+ },
964
+ "timeout": {
965
+ "defaultTimeoutMs": 60000
966
+ },
967
+ "errors": {
968
+ "statusCodeMap": {
969
+ "400": "BadRequest",
970
+ "401": "Unauthorized",
971
+ "403": "PermissionDenied",
972
+ "404": "NotFound",
973
+ "409": "Conflict",
974
+ "422": "UnprocessableEntity",
975
+ "429": "RateLimited"
976
+ },
977
+ "clientErrorKind": "API",
978
+ "serverErrorKind": "Internal"
979
+ },
980
+ "userAgent": {
981
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
982
+ "includeRuntimeVersion": false,
983
+ "aiAgentEnvVars": {
984
+ "CLAUDE_CODE": "claude-code",
985
+ "CURSOR_AGENT": "cursor",
986
+ "CLINE_ACTIVE": "cline",
987
+ "WINDSURF_ACTIVE": "windsurf",
988
+ "COPILOT_AGENT": "copilot"
989
+ }
990
+ },
991
+ "telemetry": {
992
+ "requestIdHeader": "X-Request-ID",
993
+ "headerName": "X-Client-Telemetry",
994
+ "enabledByDefault": false
995
+ },
996
+ "logging": {
997
+ "events": [
998
+ "request.start",
999
+ "request.success",
1000
+ "request.retry",
1001
+ "request.rate_limited",
1002
+ "request.error",
1003
+ "request.connection_error"
1004
+ ]
1005
+ },
1006
+ "idempotency": {
1007
+ "headerName": "Idempotency-Key",
1008
+ "autoGenerateForPost": true
1009
+ },
1010
+ "pagination": {
1011
+ "autoPageDelayMs": 0
1012
+ },
1013
+ "requestGuard": {
1014
+ "optionKeys": [
1015
+ "api_key",
1016
+ "apiKey",
1017
+ "idempotency_key",
1018
+ "idempotencyKey",
1019
+ "extra_headers",
1020
+ "extraHeaders",
1021
+ "max_retries",
1022
+ "maxRetries",
1023
+ "base_url",
1024
+ "baseUrl",
1025
+ "timeout"
1026
+ ]
1027
+ }
1028
+ }
1029
+ }