@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,1069 @@
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": "Metadata",
29
+ "kind": "alias",
30
+ "of": {
31
+ "kind": "map",
32
+ "values": {
33
+ "kind": "scalar",
34
+ "scalar": "string"
35
+ },
36
+ "nullable": true
37
+ }
38
+ },
39
+ {
40
+ "name": "ChatCompletionsListOrder",
41
+ "kind": "enum",
42
+ "base": "string",
43
+ "values": [
44
+ {
45
+ "value": "asc"
46
+ },
47
+ {
48
+ "value": "desc"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "name": "ChatCompletionList",
54
+ "kind": "struct",
55
+ "fields": [
56
+ {
57
+ "name": "object",
58
+ "type": {
59
+ "kind": "scalar",
60
+ "scalar": "string",
61
+ "const": "list"
62
+ },
63
+ "required": true,
64
+ "default": "list",
65
+ "description": "The type of this object. It is always set to \"list\".\n"
66
+ },
67
+ {
68
+ "name": "data",
69
+ "type": {
70
+ "kind": "array",
71
+ "items": {
72
+ "kind": "ref",
73
+ "name": "CreateChatCompletionResponse"
74
+ }
75
+ },
76
+ "required": true,
77
+ "description": "An array of chat completion objects.\n"
78
+ },
79
+ {
80
+ "name": "first_id",
81
+ "type": {
82
+ "kind": "scalar",
83
+ "scalar": "string"
84
+ },
85
+ "required": true,
86
+ "description": "The identifier of the first chat completion in the data array."
87
+ },
88
+ {
89
+ "name": "last_id",
90
+ "type": {
91
+ "kind": "scalar",
92
+ "scalar": "string"
93
+ },
94
+ "required": true,
95
+ "description": "The identifier of the last chat completion in the data array."
96
+ },
97
+ {
98
+ "name": "has_more",
99
+ "type": {
100
+ "kind": "scalar",
101
+ "scalar": "boolean"
102
+ },
103
+ "required": true,
104
+ "description": "Indicates whether there are more Chat Completions available."
105
+ }
106
+ ],
107
+ "description": "An object representing a list of Chat Completions.\n"
108
+ },
109
+ {
110
+ "name": "CreateChatCompletionResponse",
111
+ "kind": "struct",
112
+ "fields": [
113
+ {
114
+ "name": "id",
115
+ "type": {
116
+ "kind": "scalar",
117
+ "scalar": "string"
118
+ },
119
+ "required": true,
120
+ "description": "A unique identifier for the chat completion."
121
+ },
122
+ {
123
+ "name": "choices",
124
+ "type": {
125
+ "kind": "array",
126
+ "items": {
127
+ "kind": "ref",
128
+ "name": "CreateChatCompletionResponseChoicesItem"
129
+ }
130
+ },
131
+ "required": true,
132
+ "description": "A list of chat completion choices. Can be more than one if `n` is greater than 1."
133
+ },
134
+ {
135
+ "name": "created",
136
+ "type": {
137
+ "kind": "scalar",
138
+ "scalar": "integer",
139
+ "format": "unixtime"
140
+ },
141
+ "required": true,
142
+ "description": "The Unix timestamp (in seconds) of when the chat completion was created."
143
+ },
144
+ {
145
+ "name": "model",
146
+ "type": {
147
+ "kind": "scalar",
148
+ "scalar": "string"
149
+ },
150
+ "required": true,
151
+ "description": "The model used for the chat completion."
152
+ },
153
+ {
154
+ "name": "service_tier",
155
+ "type": {
156
+ "kind": "ref",
157
+ "name": "ServiceTier"
158
+ },
159
+ "required": false
160
+ },
161
+ {
162
+ "name": "system_fingerprint",
163
+ "type": {
164
+ "kind": "scalar",
165
+ "scalar": "string"
166
+ },
167
+ "required": false,
168
+ "deprecated": true,
169
+ "description": "This fingerprint represents the backend configuration that the model runs with.\n\nCan be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism.\n"
170
+ },
171
+ {
172
+ "name": "object",
173
+ "type": {
174
+ "kind": "scalar",
175
+ "scalar": "string",
176
+ "const": "chat.completion"
177
+ },
178
+ "required": true,
179
+ "description": "The object type, which is always `chat.completion`."
180
+ },
181
+ {
182
+ "name": "usage",
183
+ "type": {
184
+ "kind": "ref",
185
+ "name": "CompletionUsage"
186
+ },
187
+ "required": false
188
+ }
189
+ ],
190
+ "description": "Represents a chat completion response returned by model, based on the provided input."
191
+ },
192
+ {
193
+ "name": "CreateChatCompletionResponseChoicesItem",
194
+ "kind": "struct",
195
+ "fields": [
196
+ {
197
+ "name": "finish_reason",
198
+ "type": {
199
+ "kind": "ref",
200
+ "name": "CreateChatCompletionResponseChoicesItemFinishReason"
201
+ },
202
+ "required": true,
203
+ "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n"
204
+ },
205
+ {
206
+ "name": "index",
207
+ "type": {
208
+ "kind": "scalar",
209
+ "scalar": "integer"
210
+ },
211
+ "required": true,
212
+ "description": "The index of the choice in the list of choices."
213
+ },
214
+ {
215
+ "name": "message",
216
+ "type": {
217
+ "kind": "ref",
218
+ "name": "ChatCompletionResponseMessage"
219
+ },
220
+ "required": true
221
+ },
222
+ {
223
+ "name": "logprobs",
224
+ "type": {
225
+ "kind": "ref",
226
+ "name": "CreateChatCompletionResponseChoicesItemLogprobs",
227
+ "nullable": true
228
+ },
229
+ "required": true
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "name": "CreateChatCompletionResponseChoicesItemFinishReason",
235
+ "kind": "enum",
236
+ "base": "string",
237
+ "values": [
238
+ {
239
+ "value": "stop"
240
+ },
241
+ {
242
+ "value": "length"
243
+ },
244
+ {
245
+ "value": "tool_calls"
246
+ },
247
+ {
248
+ "value": "content_filter"
249
+ },
250
+ {
251
+ "value": "function_call"
252
+ }
253
+ ],
254
+ "description": "The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,\n`length` if the maximum number of tokens specified in the request was reached,\n`content_filter` if content was omitted due to a flag from our content filters,\n`tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.\n"
255
+ },
256
+ {
257
+ "name": "ChatCompletionResponseMessage",
258
+ "kind": "struct",
259
+ "fields": [
260
+ {
261
+ "name": "content",
262
+ "type": {
263
+ "kind": "scalar",
264
+ "scalar": "string",
265
+ "nullable": true
266
+ },
267
+ "required": true
268
+ },
269
+ {
270
+ "name": "refusal",
271
+ "type": {
272
+ "kind": "scalar",
273
+ "scalar": "string",
274
+ "nullable": true
275
+ },
276
+ "required": true
277
+ },
278
+ {
279
+ "name": "tool_calls",
280
+ "type": {
281
+ "kind": "ref",
282
+ "name": "ChatCompletionMessageToolCalls"
283
+ },
284
+ "required": false
285
+ },
286
+ {
287
+ "name": "annotations",
288
+ "type": {
289
+ "kind": "array",
290
+ "items": {
291
+ "kind": "ref",
292
+ "name": "ChatCompletionResponseMessageAnnotationsItem"
293
+ }
294
+ },
295
+ "required": false,
296
+ "description": "Annotations for the message, when applicable, as when using the\n[web search tool](/docs/guides/tools-web-search?api-mode=chat).\n"
297
+ },
298
+ {
299
+ "name": "role",
300
+ "type": {
301
+ "kind": "scalar",
302
+ "scalar": "string",
303
+ "const": "assistant"
304
+ },
305
+ "required": true,
306
+ "description": "The role of the author of this message."
307
+ },
308
+ {
309
+ "name": "function_call",
310
+ "type": {
311
+ "kind": "ref",
312
+ "name": "ChatCompletionResponseMessageFunctionCall"
313
+ },
314
+ "required": false,
315
+ "deprecated": true,
316
+ "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model."
317
+ },
318
+ {
319
+ "name": "audio",
320
+ "type": {
321
+ "kind": "ref",
322
+ "name": "ChatCompletionResponseMessageAudio",
323
+ "nullable": true
324
+ },
325
+ "required": false
326
+ }
327
+ ],
328
+ "description": "A chat completion message generated by the model."
329
+ },
330
+ {
331
+ "name": "ChatCompletionMessageToolCalls",
332
+ "kind": "alias",
333
+ "of": {
334
+ "kind": "array",
335
+ "items": {
336
+ "kind": "ref",
337
+ "name": "ChatCompletionMessageToolCallsItem"
338
+ }
339
+ }
340
+ },
341
+ {
342
+ "name": "ChatCompletionMessageToolCallsItem",
343
+ "kind": "union",
344
+ "semantics": "oneOf",
345
+ "variants": [
346
+ {
347
+ "kind": "ref",
348
+ "name": "ChatCompletionMessageToolCall"
349
+ },
350
+ {
351
+ "kind": "ref",
352
+ "name": "ChatCompletionMessageCustomToolCall"
353
+ }
354
+ ],
355
+ "discriminator": {
356
+ "propertyName": "type",
357
+ "mapping": {
358
+ "function": "ChatCompletionMessageToolCall",
359
+ "custom": "ChatCompletionMessageCustomToolCall"
360
+ }
361
+ }
362
+ },
363
+ {
364
+ "name": "ChatCompletionMessageToolCall",
365
+ "kind": "struct",
366
+ "fields": [
367
+ {
368
+ "name": "id",
369
+ "type": {
370
+ "kind": "scalar",
371
+ "scalar": "string"
372
+ },
373
+ "required": true,
374
+ "description": "The ID of the tool call."
375
+ },
376
+ {
377
+ "name": "type",
378
+ "type": {
379
+ "kind": "scalar",
380
+ "scalar": "string",
381
+ "const": "function"
382
+ },
383
+ "required": true,
384
+ "description": "The type of the tool. Currently, only `function` is supported."
385
+ },
386
+ {
387
+ "name": "function",
388
+ "type": {
389
+ "kind": "ref",
390
+ "name": "ChatCompletionMessageToolCallFunction"
391
+ },
392
+ "required": true,
393
+ "description": "The function that the model called."
394
+ }
395
+ ],
396
+ "description": "A call to a function tool created by the model.\n"
397
+ },
398
+ {
399
+ "name": "ChatCompletionMessageToolCallFunction",
400
+ "kind": "struct",
401
+ "fields": [
402
+ {
403
+ "name": "name",
404
+ "type": {
405
+ "kind": "scalar",
406
+ "scalar": "string"
407
+ },
408
+ "required": true,
409
+ "description": "The name of the function to call."
410
+ },
411
+ {
412
+ "name": "arguments",
413
+ "type": {
414
+ "kind": "scalar",
415
+ "scalar": "string"
416
+ },
417
+ "required": true,
418
+ "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
419
+ }
420
+ ],
421
+ "description": "The function that the model called."
422
+ },
423
+ {
424
+ "name": "ChatCompletionMessageCustomToolCall",
425
+ "kind": "struct",
426
+ "fields": [
427
+ {
428
+ "name": "id",
429
+ "type": {
430
+ "kind": "scalar",
431
+ "scalar": "string"
432
+ },
433
+ "required": true,
434
+ "description": "The ID of the tool call."
435
+ },
436
+ {
437
+ "name": "type",
438
+ "type": {
439
+ "kind": "scalar",
440
+ "scalar": "string",
441
+ "const": "custom"
442
+ },
443
+ "required": true,
444
+ "description": "The type of the tool. Always `custom`."
445
+ },
446
+ {
447
+ "name": "custom",
448
+ "type": {
449
+ "kind": "ref",
450
+ "name": "ChatCompletionMessageCustomToolCallCustom"
451
+ },
452
+ "required": true,
453
+ "description": "The custom tool that the model called."
454
+ }
455
+ ],
456
+ "description": "A call to a custom tool created by the model.\n"
457
+ },
458
+ {
459
+ "name": "ChatCompletionMessageCustomToolCallCustom",
460
+ "kind": "struct",
461
+ "fields": [
462
+ {
463
+ "name": "name",
464
+ "type": {
465
+ "kind": "scalar",
466
+ "scalar": "string"
467
+ },
468
+ "required": true,
469
+ "description": "The name of the custom tool to call."
470
+ },
471
+ {
472
+ "name": "input",
473
+ "type": {
474
+ "kind": "scalar",
475
+ "scalar": "string"
476
+ },
477
+ "required": true,
478
+ "description": "The input for the custom tool call generated by the model."
479
+ }
480
+ ],
481
+ "description": "The custom tool that the model called."
482
+ },
483
+ {
484
+ "name": "ChatCompletionResponseMessageAnnotationsItem",
485
+ "kind": "struct",
486
+ "fields": [
487
+ {
488
+ "name": "type",
489
+ "type": {
490
+ "kind": "scalar",
491
+ "scalar": "string",
492
+ "const": "url_citation"
493
+ },
494
+ "required": true,
495
+ "description": "The type of the URL citation. Always `url_citation`."
496
+ },
497
+ {
498
+ "name": "url_citation",
499
+ "type": {
500
+ "kind": "ref",
501
+ "name": "ChatCompletionResponseMessageAnnotationsItemUrlCitation"
502
+ },
503
+ "required": true,
504
+ "description": "A URL citation when using web search."
505
+ }
506
+ ],
507
+ "description": "A URL citation when using web search.\n"
508
+ },
509
+ {
510
+ "name": "ChatCompletionResponseMessageAnnotationsItemUrlCitation",
511
+ "kind": "struct",
512
+ "fields": [
513
+ {
514
+ "name": "end_index",
515
+ "type": {
516
+ "kind": "scalar",
517
+ "scalar": "integer"
518
+ },
519
+ "required": true,
520
+ "description": "The index of the last character of the URL citation in the message."
521
+ },
522
+ {
523
+ "name": "start_index",
524
+ "type": {
525
+ "kind": "scalar",
526
+ "scalar": "integer"
527
+ },
528
+ "required": true,
529
+ "description": "The index of the first character of the URL citation in the message."
530
+ },
531
+ {
532
+ "name": "url",
533
+ "type": {
534
+ "kind": "scalar",
535
+ "scalar": "string",
536
+ "format": "uri"
537
+ },
538
+ "required": true,
539
+ "description": "The URL of the web resource."
540
+ },
541
+ {
542
+ "name": "title",
543
+ "type": {
544
+ "kind": "scalar",
545
+ "scalar": "string"
546
+ },
547
+ "required": true,
548
+ "description": "The title of the web resource."
549
+ }
550
+ ],
551
+ "description": "A URL citation when using web search."
552
+ },
553
+ {
554
+ "name": "ChatCompletionResponseMessageFunctionCall",
555
+ "kind": "struct",
556
+ "fields": [
557
+ {
558
+ "name": "arguments",
559
+ "type": {
560
+ "kind": "scalar",
561
+ "scalar": "string"
562
+ },
563
+ "required": true,
564
+ "description": "The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function."
565
+ },
566
+ {
567
+ "name": "name",
568
+ "type": {
569
+ "kind": "scalar",
570
+ "scalar": "string"
571
+ },
572
+ "required": true,
573
+ "description": "The name of the function to call."
574
+ }
575
+ ],
576
+ "description": "Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model."
577
+ },
578
+ {
579
+ "name": "ChatCompletionResponseMessageAudio",
580
+ "kind": "struct",
581
+ "fields": [
582
+ {
583
+ "name": "id",
584
+ "type": {
585
+ "kind": "scalar",
586
+ "scalar": "string"
587
+ },
588
+ "required": true,
589
+ "description": "Unique identifier for this audio response."
590
+ },
591
+ {
592
+ "name": "expires_at",
593
+ "type": {
594
+ "kind": "scalar",
595
+ "scalar": "integer",
596
+ "format": "unixtime"
597
+ },
598
+ "required": true,
599
+ "description": "The Unix timestamp (in seconds) for when this audio response will\nno longer be accessible on the server for use in multi-turn\nconversations.\n"
600
+ },
601
+ {
602
+ "name": "data",
603
+ "type": {
604
+ "kind": "scalar",
605
+ "scalar": "string"
606
+ },
607
+ "required": true,
608
+ "description": "Base64 encoded audio bytes generated by the model, in the format\nspecified in the request.\n"
609
+ },
610
+ {
611
+ "name": "transcript",
612
+ "type": {
613
+ "kind": "scalar",
614
+ "scalar": "string"
615
+ },
616
+ "required": true,
617
+ "description": "Transcript of the audio generated by the model."
618
+ }
619
+ ],
620
+ "description": "If the audio output modality is requested, this object contains data\nabout the audio response from the model. [Learn more](/docs/guides/audio).\n"
621
+ },
622
+ {
623
+ "name": "CreateChatCompletionResponseChoicesItemLogprobs",
624
+ "kind": "struct",
625
+ "fields": [
626
+ {
627
+ "name": "content",
628
+ "type": {
629
+ "kind": "array",
630
+ "items": {
631
+ "kind": "ref",
632
+ "name": "ChatCompletionTokenLogprob"
633
+ },
634
+ "nullable": true
635
+ },
636
+ "required": true
637
+ },
638
+ {
639
+ "name": "refusal",
640
+ "type": {
641
+ "kind": "array",
642
+ "items": {
643
+ "kind": "ref",
644
+ "name": "ChatCompletionTokenLogprob"
645
+ },
646
+ "nullable": true
647
+ },
648
+ "required": true
649
+ }
650
+ ],
651
+ "description": "Log probability information for the choice."
652
+ },
653
+ {
654
+ "name": "ChatCompletionTokenLogprob",
655
+ "kind": "struct",
656
+ "fields": [
657
+ {
658
+ "name": "token",
659
+ "type": {
660
+ "kind": "scalar",
661
+ "scalar": "string"
662
+ },
663
+ "required": true,
664
+ "description": "The token."
665
+ },
666
+ {
667
+ "name": "logprob",
668
+ "type": {
669
+ "kind": "scalar",
670
+ "scalar": "number"
671
+ },
672
+ "required": true,
673
+ "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."
674
+ },
675
+ {
676
+ "name": "bytes",
677
+ "type": {
678
+ "kind": "array",
679
+ "items": {
680
+ "kind": "scalar",
681
+ "scalar": "integer"
682
+ },
683
+ "nullable": true
684
+ },
685
+ "required": true
686
+ },
687
+ {
688
+ "name": "top_logprobs",
689
+ "type": {
690
+ "kind": "array",
691
+ "items": {
692
+ "kind": "ref",
693
+ "name": "ChatCompletionTokenLogprobTopLogprobsItem"
694
+ }
695
+ },
696
+ "required": true,
697
+ "description": "List of the most likely tokens and their log probability, at this token position. The number of entries may be fewer than the requested `top_logprobs`."
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ "name": "ChatCompletionTokenLogprobTopLogprobsItem",
703
+ "kind": "struct",
704
+ "fields": [
705
+ {
706
+ "name": "token",
707
+ "type": {
708
+ "kind": "scalar",
709
+ "scalar": "string"
710
+ },
711
+ "required": true,
712
+ "description": "The token."
713
+ },
714
+ {
715
+ "name": "logprob",
716
+ "type": {
717
+ "kind": "scalar",
718
+ "scalar": "number"
719
+ },
720
+ "required": true,
721
+ "description": "The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."
722
+ },
723
+ {
724
+ "name": "bytes",
725
+ "type": {
726
+ "kind": "array",
727
+ "items": {
728
+ "kind": "scalar",
729
+ "scalar": "integer"
730
+ },
731
+ "nullable": true
732
+ },
733
+ "required": true
734
+ }
735
+ ]
736
+ },
737
+ {
738
+ "name": "ServiceTier",
739
+ "kind": "enum",
740
+ "base": "string",
741
+ "values": [
742
+ {
743
+ "value": "auto"
744
+ },
745
+ {
746
+ "value": "default"
747
+ },
748
+ {
749
+ "value": "flex"
750
+ },
751
+ {
752
+ "value": "scale"
753
+ },
754
+ {
755
+ "value": "priority"
756
+ }
757
+ ],
758
+ "description": "Specifies the processing type used for serving the request.\n - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.\n - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.\n - If set to '[flex](/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.\n - When not set, the default behavior is 'auto'.\n\n When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.\n"
759
+ },
760
+ {
761
+ "name": "CompletionUsage",
762
+ "kind": "struct",
763
+ "fields": [
764
+ {
765
+ "name": "completion_tokens",
766
+ "type": {
767
+ "kind": "scalar",
768
+ "scalar": "integer"
769
+ },
770
+ "required": true,
771
+ "default": 0,
772
+ "description": "Number of tokens in the generated completion."
773
+ },
774
+ {
775
+ "name": "prompt_tokens",
776
+ "type": {
777
+ "kind": "scalar",
778
+ "scalar": "integer"
779
+ },
780
+ "required": true,
781
+ "default": 0,
782
+ "description": "Number of tokens in the prompt."
783
+ },
784
+ {
785
+ "name": "total_tokens",
786
+ "type": {
787
+ "kind": "scalar",
788
+ "scalar": "integer"
789
+ },
790
+ "required": true,
791
+ "default": 0,
792
+ "description": "Total number of tokens used in the request (prompt + completion)."
793
+ },
794
+ {
795
+ "name": "completion_tokens_details",
796
+ "type": {
797
+ "kind": "ref",
798
+ "name": "CompletionUsageCompletionTokensDetails"
799
+ },
800
+ "required": false,
801
+ "description": "Breakdown of tokens used in a completion."
802
+ },
803
+ {
804
+ "name": "prompt_tokens_details",
805
+ "type": {
806
+ "kind": "ref",
807
+ "name": "CompletionUsagePromptTokensDetails"
808
+ },
809
+ "required": false,
810
+ "description": "Breakdown of tokens used in the prompt."
811
+ }
812
+ ],
813
+ "description": "Usage statistics for the completion request."
814
+ },
815
+ {
816
+ "name": "CompletionUsageCompletionTokensDetails",
817
+ "kind": "struct",
818
+ "fields": [
819
+ {
820
+ "name": "accepted_prediction_tokens",
821
+ "type": {
822
+ "kind": "scalar",
823
+ "scalar": "integer"
824
+ },
825
+ "required": false,
826
+ "default": 0,
827
+ "description": "When using Predicted Outputs, the number of tokens in the\nprediction that appeared in the completion.\n"
828
+ },
829
+ {
830
+ "name": "audio_tokens",
831
+ "type": {
832
+ "kind": "scalar",
833
+ "scalar": "integer"
834
+ },
835
+ "required": false,
836
+ "default": 0,
837
+ "description": "Audio input tokens generated by the model."
838
+ },
839
+ {
840
+ "name": "reasoning_tokens",
841
+ "type": {
842
+ "kind": "scalar",
843
+ "scalar": "integer"
844
+ },
845
+ "required": false,
846
+ "default": 0,
847
+ "description": "Tokens generated by the model for reasoning."
848
+ },
849
+ {
850
+ "name": "rejected_prediction_tokens",
851
+ "type": {
852
+ "kind": "scalar",
853
+ "scalar": "integer"
854
+ },
855
+ "required": false,
856
+ "default": 0,
857
+ "description": "When using Predicted Outputs, the number of tokens in the\nprediction that did not appear in the completion. However, like\nreasoning tokens, these tokens are still counted in the total\ncompletion tokens for purposes of billing, output, and context window\nlimits.\n"
858
+ }
859
+ ],
860
+ "description": "Breakdown of tokens used in a completion."
861
+ },
862
+ {
863
+ "name": "CompletionUsagePromptTokensDetails",
864
+ "kind": "struct",
865
+ "fields": [
866
+ {
867
+ "name": "audio_tokens",
868
+ "type": {
869
+ "kind": "scalar",
870
+ "scalar": "integer"
871
+ },
872
+ "required": false,
873
+ "default": 0,
874
+ "description": "Audio input tokens present in the prompt."
875
+ },
876
+ {
877
+ "name": "cached_tokens",
878
+ "type": {
879
+ "kind": "scalar",
880
+ "scalar": "integer"
881
+ },
882
+ "required": false,
883
+ "default": 0,
884
+ "description": "Cached tokens present in the prompt."
885
+ }
886
+ ],
887
+ "description": "Breakdown of tokens used in the prompt."
888
+ }
889
+ ],
890
+ "resources": [
891
+ {
892
+ "name": "chat",
893
+ "resources": [
894
+ {
895
+ "name": "completions",
896
+ "methods": [
897
+ {
898
+ "action": "list",
899
+ "httpMethod": "get",
900
+ "path": "/chat/completions",
901
+ "operationId": "listChatCompletions",
902
+ "description": "List stored Chat Completions. Only Chat Completions that have been stored\nwith the `store` parameter set to `true` will be returned.\n",
903
+ "queryParams": [
904
+ {
905
+ "name": "model",
906
+ "type": {
907
+ "kind": "scalar",
908
+ "scalar": "string"
909
+ },
910
+ "required": false,
911
+ "description": "The model used to generate the Chat Completions."
912
+ },
913
+ {
914
+ "name": "metadata",
915
+ "type": {
916
+ "kind": "ref",
917
+ "name": "Metadata"
918
+ },
919
+ "required": false,
920
+ "description": "A list of metadata keys to filter the Chat Completions by. Example:\n\n`metadata[key1]=value1&metadata[key2]=value2`\n"
921
+ },
922
+ {
923
+ "name": "after",
924
+ "type": {
925
+ "kind": "scalar",
926
+ "scalar": "string"
927
+ },
928
+ "required": false,
929
+ "description": "Identifier for the last chat completion from the previous pagination request."
930
+ },
931
+ {
932
+ "name": "limit",
933
+ "type": {
934
+ "kind": "scalar",
935
+ "scalar": "integer"
936
+ },
937
+ "required": false,
938
+ "description": "Number of Chat Completions to retrieve.",
939
+ "default": 20
940
+ },
941
+ {
942
+ "name": "order",
943
+ "type": {
944
+ "kind": "ref",
945
+ "name": "ChatCompletionsListOrder"
946
+ },
947
+ "required": false,
948
+ "description": "Sort order for Chat Completions by timestamp. Use `asc` for ascending order or `desc` for descending order. Defaults to `asc`.",
949
+ "default": "asc"
950
+ }
951
+ ],
952
+ "responses": [
953
+ {
954
+ "status": "200",
955
+ "description": "A list of Chat Completions",
956
+ "contentType": "application/json",
957
+ "type": {
958
+ "kind": "ref",
959
+ "name": "ChatCompletionList"
960
+ }
961
+ }
962
+ ],
963
+ "primaryResponse": {
964
+ "kind": "ref",
965
+ "name": "ChatCompletionList"
966
+ },
967
+ "pagination": {
968
+ "style": "cursor",
969
+ "itemsField": "data",
970
+ "nextField": "has_more",
971
+ "itemType": {
972
+ "kind": "ref",
973
+ "name": "CreateChatCompletionResponse"
974
+ },
975
+ "cursorParam": "after",
976
+ "limitParam": "limit"
977
+ }
978
+ }
979
+ ]
980
+ }
981
+ ]
982
+ }
983
+ ],
984
+ "sdk": {
985
+ "retry": {
986
+ "maxRetries": 2,
987
+ "retryableStatusCodes": [
988
+ 408,
989
+ 429,
990
+ 500,
991
+ 502,
992
+ 503,
993
+ 504
994
+ ],
995
+ "retryConnectionErrors": true,
996
+ "honorRetryAfterHeader": true,
997
+ "backoff": {
998
+ "initialDelayMs": 500,
999
+ "maxDelayMs": 8000,
1000
+ "multiplier": 2,
1001
+ "jitter": 0.25
1002
+ }
1003
+ },
1004
+ "timeout": {
1005
+ "defaultTimeoutMs": 60000
1006
+ },
1007
+ "errors": {
1008
+ "statusCodeMap": {
1009
+ "400": "BadRequest",
1010
+ "401": "Unauthorized",
1011
+ "403": "PermissionDenied",
1012
+ "404": "NotFound",
1013
+ "409": "Conflict",
1014
+ "422": "UnprocessableEntity",
1015
+ "429": "RateLimited"
1016
+ },
1017
+ "clientErrorKind": "API",
1018
+ "serverErrorKind": "Internal"
1019
+ },
1020
+ "userAgent": {
1021
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1022
+ "includeRuntimeVersion": false,
1023
+ "aiAgentEnvVars": {
1024
+ "CLAUDE_CODE": "claude-code",
1025
+ "CURSOR_AGENT": "cursor",
1026
+ "CLINE_ACTIVE": "cline",
1027
+ "WINDSURF_ACTIVE": "windsurf",
1028
+ "COPILOT_AGENT": "copilot"
1029
+ }
1030
+ },
1031
+ "telemetry": {
1032
+ "requestIdHeader": "X-Request-ID",
1033
+ "headerName": "X-Client-Telemetry",
1034
+ "enabledByDefault": false
1035
+ },
1036
+ "logging": {
1037
+ "events": [
1038
+ "request.start",
1039
+ "request.success",
1040
+ "request.retry",
1041
+ "request.rate_limited",
1042
+ "request.error",
1043
+ "request.connection_error"
1044
+ ]
1045
+ },
1046
+ "idempotency": {
1047
+ "headerName": "Idempotency-Key",
1048
+ "autoGenerateForPost": true
1049
+ },
1050
+ "pagination": {
1051
+ "autoPageDelayMs": 0
1052
+ },
1053
+ "requestGuard": {
1054
+ "optionKeys": [
1055
+ "api_key",
1056
+ "apiKey",
1057
+ "idempotency_key",
1058
+ "idempotencyKey",
1059
+ "extra_headers",
1060
+ "extraHeaders",
1061
+ "max_retries",
1062
+ "maxRetries",
1063
+ "base_url",
1064
+ "baseUrl",
1065
+ "timeout"
1066
+ ]
1067
+ }
1068
+ }
1069
+ }