@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,938 @@
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": "CreateMessageRequest",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "role",
33
+ "type": {
34
+ "kind": "ref",
35
+ "name": "CreateMessageRequestRole"
36
+ },
37
+ "required": true,
38
+ "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n"
39
+ },
40
+ {
41
+ "name": "content",
42
+ "type": {
43
+ "kind": "ref",
44
+ "name": "CreateMessageRequestContent"
45
+ },
46
+ "required": true
47
+ },
48
+ {
49
+ "name": "attachments",
50
+ "type": {
51
+ "kind": "array",
52
+ "items": {
53
+ "kind": "ref",
54
+ "name": "CreateMessageRequestAttachmentsItem"
55
+ },
56
+ "nullable": true
57
+ },
58
+ "required": false
59
+ },
60
+ {
61
+ "name": "metadata",
62
+ "type": {
63
+ "kind": "ref",
64
+ "name": "Metadata"
65
+ },
66
+ "required": false
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "name": "CreateMessageRequestRole",
72
+ "kind": "enum",
73
+ "base": "string",
74
+ "values": [
75
+ {
76
+ "value": "user"
77
+ },
78
+ {
79
+ "value": "assistant"
80
+ }
81
+ ],
82
+ "description": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most cases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the assistant. Use this value to insert messages from the assistant into the conversation.\n"
83
+ },
84
+ {
85
+ "name": "CreateMessageRequestContent",
86
+ "kind": "union",
87
+ "semantics": "oneOf",
88
+ "variants": [
89
+ {
90
+ "kind": "scalar",
91
+ "scalar": "string"
92
+ },
93
+ {
94
+ "kind": "array",
95
+ "items": {
96
+ "kind": "ref",
97
+ "name": "CreateMessageRequestContentArrayOfContentPartsItem"
98
+ }
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "name": "CreateMessageRequestContentArrayOfContentPartsItem",
104
+ "kind": "union",
105
+ "semantics": "oneOf",
106
+ "variants": [
107
+ {
108
+ "kind": "ref",
109
+ "name": "MessageContentImageFileObject"
110
+ },
111
+ {
112
+ "kind": "ref",
113
+ "name": "MessageContentImageUrlObject"
114
+ },
115
+ {
116
+ "kind": "ref",
117
+ "name": "MessageRequestContentTextObject"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "name": "MessageContentImageFileObject",
123
+ "kind": "struct",
124
+ "fields": [
125
+ {
126
+ "name": "type",
127
+ "type": {
128
+ "kind": "scalar",
129
+ "scalar": "string",
130
+ "const": "image_file"
131
+ },
132
+ "required": true,
133
+ "description": "Always `image_file`."
134
+ },
135
+ {
136
+ "name": "image_file",
137
+ "type": {
138
+ "kind": "ref",
139
+ "name": "MessageContentImageFileObjectImageFile"
140
+ },
141
+ "required": true
142
+ }
143
+ ],
144
+ "description": "References an image [File](/docs/api-reference/files) in the content of a message."
145
+ },
146
+ {
147
+ "name": "MessageContentImageFileObjectImageFile",
148
+ "kind": "struct",
149
+ "fields": [
150
+ {
151
+ "name": "file_id",
152
+ "type": {
153
+ "kind": "scalar",
154
+ "scalar": "string"
155
+ },
156
+ "required": true,
157
+ "description": "The [File](/docs/api-reference/files) ID of the image in the message content. Set `purpose=\"vision\"` when uploading the File if you need to later display the file content."
158
+ },
159
+ {
160
+ "name": "detail",
161
+ "type": {
162
+ "kind": "ref",
163
+ "name": "MessageContentImageFileObjectImageFileDetail"
164
+ },
165
+ "required": false,
166
+ "default": "auto",
167
+ "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`."
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "name": "MessageContentImageFileObjectImageFileDetail",
173
+ "kind": "enum",
174
+ "base": "string",
175
+ "values": [
176
+ {
177
+ "value": "auto"
178
+ },
179
+ {
180
+ "value": "low"
181
+ },
182
+ {
183
+ "value": "high"
184
+ }
185
+ ],
186
+ "description": "Specifies the detail level of the image if specified by the user. `low` uses fewer tokens, you can opt in to high resolution using `high`."
187
+ },
188
+ {
189
+ "name": "MessageContentImageUrlObject",
190
+ "kind": "struct",
191
+ "fields": [
192
+ {
193
+ "name": "type",
194
+ "type": {
195
+ "kind": "scalar",
196
+ "scalar": "string",
197
+ "const": "image_url"
198
+ },
199
+ "required": true,
200
+ "description": "The type of the content part."
201
+ },
202
+ {
203
+ "name": "image_url",
204
+ "type": {
205
+ "kind": "ref",
206
+ "name": "MessageContentImageUrlObjectImageUrl"
207
+ },
208
+ "required": true
209
+ }
210
+ ],
211
+ "description": "References an image URL in the content of a message."
212
+ },
213
+ {
214
+ "name": "MessageContentImageUrlObjectImageUrl",
215
+ "kind": "struct",
216
+ "fields": [
217
+ {
218
+ "name": "url",
219
+ "type": {
220
+ "kind": "scalar",
221
+ "scalar": "string",
222
+ "format": "uri"
223
+ },
224
+ "required": true,
225
+ "description": "The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp."
226
+ },
227
+ {
228
+ "name": "detail",
229
+ "type": {
230
+ "kind": "ref",
231
+ "name": "MessageContentImageFileObjectImageFileDetail"
232
+ },
233
+ "required": false,
234
+ "default": "auto",
235
+ "description": "Specifies the detail level of the image. `low` uses fewer tokens, you can opt in to high resolution using `high`. Default value is `auto`"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "name": "MessageRequestContentTextObject",
241
+ "kind": "struct",
242
+ "fields": [
243
+ {
244
+ "name": "type",
245
+ "type": {
246
+ "kind": "scalar",
247
+ "scalar": "string",
248
+ "const": "text"
249
+ },
250
+ "required": true,
251
+ "description": "Always `text`."
252
+ },
253
+ {
254
+ "name": "text",
255
+ "type": {
256
+ "kind": "scalar",
257
+ "scalar": "string"
258
+ },
259
+ "required": true,
260
+ "description": "Text content to be sent to the model"
261
+ }
262
+ ],
263
+ "description": "The text content that is part of a message."
264
+ },
265
+ {
266
+ "name": "CreateMessageRequestAttachmentsItem",
267
+ "kind": "struct",
268
+ "fields": [
269
+ {
270
+ "name": "file_id",
271
+ "type": {
272
+ "kind": "scalar",
273
+ "scalar": "string"
274
+ },
275
+ "required": false,
276
+ "description": "The ID of the file to attach to the message."
277
+ },
278
+ {
279
+ "name": "tools",
280
+ "type": {
281
+ "kind": "array",
282
+ "items": {
283
+ "kind": "ref",
284
+ "name": "CreateMessageRequestAttachmentsItemToolsItem"
285
+ }
286
+ },
287
+ "required": false,
288
+ "description": "The tools to add this file to."
289
+ }
290
+ ]
291
+ },
292
+ {
293
+ "name": "CreateMessageRequestAttachmentsItemToolsItem",
294
+ "kind": "union",
295
+ "semantics": "oneOf",
296
+ "variants": [
297
+ {
298
+ "kind": "ref",
299
+ "name": "AssistantToolsCode"
300
+ },
301
+ {
302
+ "kind": "ref",
303
+ "name": "AssistantToolsFileSearchTypeOnly"
304
+ }
305
+ ]
306
+ },
307
+ {
308
+ "name": "AssistantToolsCode",
309
+ "kind": "struct",
310
+ "fields": [
311
+ {
312
+ "name": "type",
313
+ "type": {
314
+ "kind": "scalar",
315
+ "scalar": "string",
316
+ "const": "code_interpreter"
317
+ },
318
+ "required": true,
319
+ "description": "The type of tool being defined: `code_interpreter`"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "name": "AssistantToolsFileSearchTypeOnly",
325
+ "kind": "struct",
326
+ "fields": [
327
+ {
328
+ "name": "type",
329
+ "type": {
330
+ "kind": "scalar",
331
+ "scalar": "string",
332
+ "const": "file_search"
333
+ },
334
+ "required": true,
335
+ "description": "The type of tool being defined: `file_search`"
336
+ }
337
+ ]
338
+ },
339
+ {
340
+ "name": "Metadata",
341
+ "kind": "alias",
342
+ "of": {
343
+ "kind": "map",
344
+ "values": {
345
+ "kind": "scalar",
346
+ "scalar": "string"
347
+ },
348
+ "nullable": true
349
+ }
350
+ },
351
+ {
352
+ "name": "MessageObject",
353
+ "kind": "struct",
354
+ "fields": [
355
+ {
356
+ "name": "id",
357
+ "type": {
358
+ "kind": "scalar",
359
+ "scalar": "string"
360
+ },
361
+ "required": true,
362
+ "description": "The identifier, which can be referenced in API endpoints."
363
+ },
364
+ {
365
+ "name": "object",
366
+ "type": {
367
+ "kind": "scalar",
368
+ "scalar": "string",
369
+ "const": "thread.message"
370
+ },
371
+ "required": true,
372
+ "description": "The object type, which is always `thread.message`."
373
+ },
374
+ {
375
+ "name": "created_at",
376
+ "type": {
377
+ "kind": "scalar",
378
+ "scalar": "integer",
379
+ "format": "unixtime"
380
+ },
381
+ "required": true,
382
+ "description": "The Unix timestamp (in seconds) for when the message was created."
383
+ },
384
+ {
385
+ "name": "thread_id",
386
+ "type": {
387
+ "kind": "scalar",
388
+ "scalar": "string"
389
+ },
390
+ "required": true,
391
+ "description": "The [thread](/docs/api-reference/threads) ID that this message belongs to."
392
+ },
393
+ {
394
+ "name": "status",
395
+ "type": {
396
+ "kind": "ref",
397
+ "name": "MessageObjectStatus"
398
+ },
399
+ "required": true,
400
+ "description": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`."
401
+ },
402
+ {
403
+ "name": "incomplete_details",
404
+ "type": {
405
+ "kind": "ref",
406
+ "name": "MessageObjectIncompleteDetails",
407
+ "nullable": true
408
+ },
409
+ "required": true
410
+ },
411
+ {
412
+ "name": "completed_at",
413
+ "type": {
414
+ "kind": "scalar",
415
+ "scalar": "integer",
416
+ "format": "unixtime",
417
+ "nullable": true
418
+ },
419
+ "required": true
420
+ },
421
+ {
422
+ "name": "incomplete_at",
423
+ "type": {
424
+ "kind": "scalar",
425
+ "scalar": "integer",
426
+ "format": "unixtime",
427
+ "nullable": true
428
+ },
429
+ "required": true
430
+ },
431
+ {
432
+ "name": "role",
433
+ "type": {
434
+ "kind": "ref",
435
+ "name": "CreateMessageRequestRole"
436
+ },
437
+ "required": true,
438
+ "description": "The entity that produced the message. One of `user` or `assistant`."
439
+ },
440
+ {
441
+ "name": "content",
442
+ "type": {
443
+ "kind": "array",
444
+ "items": {
445
+ "kind": "ref",
446
+ "name": "MessageObjectContentItem"
447
+ }
448
+ },
449
+ "required": true,
450
+ "description": "The content of the message in array of text and/or images."
451
+ },
452
+ {
453
+ "name": "assistant_id",
454
+ "type": {
455
+ "kind": "scalar",
456
+ "scalar": "string",
457
+ "nullable": true
458
+ },
459
+ "required": true
460
+ },
461
+ {
462
+ "name": "run_id",
463
+ "type": {
464
+ "kind": "scalar",
465
+ "scalar": "string",
466
+ "nullable": true
467
+ },
468
+ "required": true
469
+ },
470
+ {
471
+ "name": "attachments",
472
+ "type": {
473
+ "kind": "array",
474
+ "items": {
475
+ "kind": "ref",
476
+ "name": "CreateMessageRequestAttachmentsItem"
477
+ },
478
+ "nullable": true
479
+ },
480
+ "required": true
481
+ },
482
+ {
483
+ "name": "metadata",
484
+ "type": {
485
+ "kind": "ref",
486
+ "name": "Metadata"
487
+ },
488
+ "required": true
489
+ }
490
+ ],
491
+ "description": "Represents a message within a [thread](/docs/api-reference/threads)."
492
+ },
493
+ {
494
+ "name": "MessageObjectStatus",
495
+ "kind": "enum",
496
+ "base": "string",
497
+ "values": [
498
+ {
499
+ "value": "in_progress"
500
+ },
501
+ {
502
+ "value": "incomplete"
503
+ },
504
+ {
505
+ "value": "completed"
506
+ }
507
+ ],
508
+ "description": "The status of the message, which can be either `in_progress`, `incomplete`, or `completed`."
509
+ },
510
+ {
511
+ "name": "MessageObjectIncompleteDetails",
512
+ "kind": "struct",
513
+ "fields": [
514
+ {
515
+ "name": "reason",
516
+ "type": {
517
+ "kind": "ref",
518
+ "name": "MessageObjectIncompleteDetailsReason"
519
+ },
520
+ "required": true,
521
+ "description": "The reason the message is incomplete."
522
+ }
523
+ ],
524
+ "description": "On an incomplete message, details about why the message is incomplete."
525
+ },
526
+ {
527
+ "name": "MessageObjectIncompleteDetailsReason",
528
+ "kind": "enum",
529
+ "base": "string",
530
+ "values": [
531
+ {
532
+ "value": "content_filter"
533
+ },
534
+ {
535
+ "value": "max_tokens"
536
+ },
537
+ {
538
+ "value": "run_cancelled"
539
+ },
540
+ {
541
+ "value": "run_expired"
542
+ },
543
+ {
544
+ "value": "run_failed"
545
+ }
546
+ ],
547
+ "description": "The reason the message is incomplete."
548
+ },
549
+ {
550
+ "name": "MessageObjectContentItem",
551
+ "kind": "union",
552
+ "semantics": "oneOf",
553
+ "variants": [
554
+ {
555
+ "kind": "ref",
556
+ "name": "MessageContentImageFileObject"
557
+ },
558
+ {
559
+ "kind": "ref",
560
+ "name": "MessageContentImageUrlObject"
561
+ },
562
+ {
563
+ "kind": "ref",
564
+ "name": "MessageContentTextObject"
565
+ },
566
+ {
567
+ "kind": "ref",
568
+ "name": "MessageContentRefusalObject"
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "name": "MessageContentTextObject",
574
+ "kind": "struct",
575
+ "fields": [
576
+ {
577
+ "name": "type",
578
+ "type": {
579
+ "kind": "scalar",
580
+ "scalar": "string",
581
+ "const": "text"
582
+ },
583
+ "required": true,
584
+ "description": "Always `text`."
585
+ },
586
+ {
587
+ "name": "text",
588
+ "type": {
589
+ "kind": "ref",
590
+ "name": "MessageContentTextObjectText"
591
+ },
592
+ "required": true
593
+ }
594
+ ],
595
+ "description": "The text content that is part of a message."
596
+ },
597
+ {
598
+ "name": "MessageContentTextObjectText",
599
+ "kind": "struct",
600
+ "fields": [
601
+ {
602
+ "name": "value",
603
+ "type": {
604
+ "kind": "scalar",
605
+ "scalar": "string"
606
+ },
607
+ "required": true,
608
+ "description": "The data that makes up the text."
609
+ },
610
+ {
611
+ "name": "annotations",
612
+ "type": {
613
+ "kind": "array",
614
+ "items": {
615
+ "kind": "ref",
616
+ "name": "MessageContentTextObjectTextAnnotationsItem"
617
+ }
618
+ },
619
+ "required": true
620
+ }
621
+ ]
622
+ },
623
+ {
624
+ "name": "MessageContentTextObjectTextAnnotationsItem",
625
+ "kind": "union",
626
+ "semantics": "oneOf",
627
+ "variants": [
628
+ {
629
+ "kind": "ref",
630
+ "name": "MessageContentTextAnnotationsFileCitationObject"
631
+ },
632
+ {
633
+ "kind": "ref",
634
+ "name": "MessageContentTextAnnotationsFilePathObject"
635
+ }
636
+ ]
637
+ },
638
+ {
639
+ "name": "MessageContentTextAnnotationsFileCitationObject",
640
+ "kind": "struct",
641
+ "fields": [
642
+ {
643
+ "name": "type",
644
+ "type": {
645
+ "kind": "scalar",
646
+ "scalar": "string",
647
+ "const": "file_citation"
648
+ },
649
+ "required": true,
650
+ "description": "Always `file_citation`."
651
+ },
652
+ {
653
+ "name": "text",
654
+ "type": {
655
+ "kind": "scalar",
656
+ "scalar": "string"
657
+ },
658
+ "required": true,
659
+ "description": "The text in the message content that needs to be replaced."
660
+ },
661
+ {
662
+ "name": "file_citation",
663
+ "type": {
664
+ "kind": "ref",
665
+ "name": "MessageContentTextAnnotationsFileCitationObjectFileCitation"
666
+ },
667
+ "required": true
668
+ },
669
+ {
670
+ "name": "start_index",
671
+ "type": {
672
+ "kind": "scalar",
673
+ "scalar": "integer"
674
+ },
675
+ "required": true
676
+ },
677
+ {
678
+ "name": "end_index",
679
+ "type": {
680
+ "kind": "scalar",
681
+ "scalar": "integer"
682
+ },
683
+ "required": true
684
+ }
685
+ ],
686
+ "description": "A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the \"file_search\" tool to search files."
687
+ },
688
+ {
689
+ "name": "MessageContentTextAnnotationsFileCitationObjectFileCitation",
690
+ "kind": "struct",
691
+ "fields": [
692
+ {
693
+ "name": "file_id",
694
+ "type": {
695
+ "kind": "scalar",
696
+ "scalar": "string"
697
+ },
698
+ "required": true,
699
+ "description": "The ID of the specific File the citation is from."
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "name": "MessageContentTextAnnotationsFilePathObject",
705
+ "kind": "struct",
706
+ "fields": [
707
+ {
708
+ "name": "type",
709
+ "type": {
710
+ "kind": "scalar",
711
+ "scalar": "string",
712
+ "const": "file_path"
713
+ },
714
+ "required": true,
715
+ "description": "Always `file_path`."
716
+ },
717
+ {
718
+ "name": "text",
719
+ "type": {
720
+ "kind": "scalar",
721
+ "scalar": "string"
722
+ },
723
+ "required": true,
724
+ "description": "The text in the message content that needs to be replaced."
725
+ },
726
+ {
727
+ "name": "file_path",
728
+ "type": {
729
+ "kind": "ref",
730
+ "name": "MessageContentTextAnnotationsFilePathObjectFilePath"
731
+ },
732
+ "required": true
733
+ },
734
+ {
735
+ "name": "start_index",
736
+ "type": {
737
+ "kind": "scalar",
738
+ "scalar": "integer"
739
+ },
740
+ "required": true
741
+ },
742
+ {
743
+ "name": "end_index",
744
+ "type": {
745
+ "kind": "scalar",
746
+ "scalar": "integer"
747
+ },
748
+ "required": true
749
+ }
750
+ ],
751
+ "description": "A URL for the file that's generated when the assistant used the `code_interpreter` tool to generate a file."
752
+ },
753
+ {
754
+ "name": "MessageContentTextAnnotationsFilePathObjectFilePath",
755
+ "kind": "struct",
756
+ "fields": [
757
+ {
758
+ "name": "file_id",
759
+ "type": {
760
+ "kind": "scalar",
761
+ "scalar": "string"
762
+ },
763
+ "required": true,
764
+ "description": "The ID of the file that was generated."
765
+ }
766
+ ]
767
+ },
768
+ {
769
+ "name": "MessageContentRefusalObject",
770
+ "kind": "struct",
771
+ "fields": [
772
+ {
773
+ "name": "type",
774
+ "type": {
775
+ "kind": "scalar",
776
+ "scalar": "string",
777
+ "const": "refusal"
778
+ },
779
+ "required": true,
780
+ "description": "Always `refusal`."
781
+ },
782
+ {
783
+ "name": "refusal",
784
+ "type": {
785
+ "kind": "scalar",
786
+ "scalar": "string"
787
+ },
788
+ "required": true
789
+ }
790
+ ],
791
+ "description": "The refusal content generated by the assistant."
792
+ }
793
+ ],
794
+ "resources": [
795
+ {
796
+ "name": "beta",
797
+ "resources": [
798
+ {
799
+ "name": "threads",
800
+ "resources": [
801
+ {
802
+ "name": "messages",
803
+ "methods": [
804
+ {
805
+ "action": "create",
806
+ "httpMethod": "post",
807
+ "path": "/threads/{thread_id}/messages",
808
+ "operationId": "createMessage",
809
+ "description": "Create a message.",
810
+ "pathParams": [
811
+ {
812
+ "name": "thread_id",
813
+ "type": {
814
+ "kind": "scalar",
815
+ "scalar": "string"
816
+ },
817
+ "required": true,
818
+ "description": "The ID of the [thread](/docs/api-reference/threads) to create a message for."
819
+ }
820
+ ],
821
+ "requestBody": {
822
+ "contentType": "application/json",
823
+ "type": {
824
+ "kind": "ref",
825
+ "name": "CreateMessageRequest"
826
+ },
827
+ "required": true,
828
+ "encoding": "json"
829
+ },
830
+ "responses": [
831
+ {
832
+ "status": "200",
833
+ "description": "OK",
834
+ "contentType": "application/json",
835
+ "type": {
836
+ "kind": "ref",
837
+ "name": "MessageObject"
838
+ }
839
+ }
840
+ ],
841
+ "primaryResponse": {
842
+ "kind": "ref",
843
+ "name": "MessageObject"
844
+ }
845
+ }
846
+ ]
847
+ }
848
+ ]
849
+ }
850
+ ]
851
+ }
852
+ ],
853
+ "sdk": {
854
+ "retry": {
855
+ "maxRetries": 2,
856
+ "retryableStatusCodes": [
857
+ 408,
858
+ 429,
859
+ 500,
860
+ 502,
861
+ 503,
862
+ 504
863
+ ],
864
+ "retryConnectionErrors": true,
865
+ "honorRetryAfterHeader": true,
866
+ "backoff": {
867
+ "initialDelayMs": 500,
868
+ "maxDelayMs": 8000,
869
+ "multiplier": 2,
870
+ "jitter": 0.25
871
+ }
872
+ },
873
+ "timeout": {
874
+ "defaultTimeoutMs": 60000
875
+ },
876
+ "errors": {
877
+ "statusCodeMap": {
878
+ "400": "BadRequest",
879
+ "401": "Unauthorized",
880
+ "403": "PermissionDenied",
881
+ "404": "NotFound",
882
+ "409": "Conflict",
883
+ "422": "UnprocessableEntity",
884
+ "429": "RateLimited"
885
+ },
886
+ "clientErrorKind": "API",
887
+ "serverErrorKind": "Internal"
888
+ },
889
+ "userAgent": {
890
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
891
+ "includeRuntimeVersion": false,
892
+ "aiAgentEnvVars": {
893
+ "CLAUDE_CODE": "claude-code",
894
+ "CURSOR_AGENT": "cursor",
895
+ "CLINE_ACTIVE": "cline",
896
+ "WINDSURF_ACTIVE": "windsurf",
897
+ "COPILOT_AGENT": "copilot"
898
+ }
899
+ },
900
+ "telemetry": {
901
+ "requestIdHeader": "X-Request-ID",
902
+ "headerName": "X-Client-Telemetry",
903
+ "enabledByDefault": false
904
+ },
905
+ "logging": {
906
+ "events": [
907
+ "request.start",
908
+ "request.success",
909
+ "request.retry",
910
+ "request.rate_limited",
911
+ "request.error",
912
+ "request.connection_error"
913
+ ]
914
+ },
915
+ "idempotency": {
916
+ "headerName": "Idempotency-Key",
917
+ "autoGenerateForPost": true
918
+ },
919
+ "pagination": {
920
+ "autoPageDelayMs": 0
921
+ },
922
+ "requestGuard": {
923
+ "optionKeys": [
924
+ "api_key",
925
+ "apiKey",
926
+ "idempotency_key",
927
+ "idempotencyKey",
928
+ "extra_headers",
929
+ "extraHeaders",
930
+ "max_retries",
931
+ "maxRetries",
932
+ "base_url",
933
+ "baseUrl",
934
+ "timeout"
935
+ ]
936
+ }
937
+ }
938
+ }