@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,999 @@
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": "CreateTranscriptionRequest",
29
+ "kind": "struct",
30
+ "fields": [
31
+ {
32
+ "name": "file",
33
+ "type": {
34
+ "kind": "scalar",
35
+ "scalar": "string",
36
+ "format": "binary"
37
+ },
38
+ "required": true,
39
+ "description": "The audio file object (not file name) to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.\n"
40
+ },
41
+ {
42
+ "name": "model",
43
+ "type": {
44
+ "kind": "ref",
45
+ "name": "CreateTranscriptionRequestModel"
46
+ },
47
+ "required": true,
48
+ "description": "ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.\n"
49
+ },
50
+ {
51
+ "name": "language",
52
+ "type": {
53
+ "kind": "scalar",
54
+ "scalar": "string"
55
+ },
56
+ "required": false,
57
+ "description": "The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format will improve accuracy and latency.\n"
58
+ },
59
+ {
60
+ "name": "prompt",
61
+ "type": {
62
+ "kind": "scalar",
63
+ "scalar": "string"
64
+ },
65
+ "required": false,
66
+ "description": "An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language. This field is not supported when using `gpt-4o-transcribe-diarize`.\n"
67
+ },
68
+ {
69
+ "name": "response_format",
70
+ "type": {
71
+ "kind": "ref",
72
+ "name": "AudioResponseFormat"
73
+ },
74
+ "required": false
75
+ },
76
+ {
77
+ "name": "temperature",
78
+ "type": {
79
+ "kind": "scalar",
80
+ "scalar": "number"
81
+ },
82
+ "required": false,
83
+ "default": 0,
84
+ "description": "The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use [log probability](https://en.wikipedia.org/wiki/Log_probability) to automatically increase the temperature until certain thresholds are hit.\n"
85
+ },
86
+ {
87
+ "name": "include",
88
+ "type": {
89
+ "kind": "array",
90
+ "items": {
91
+ "kind": "ref",
92
+ "name": "TranscriptionInclude"
93
+ }
94
+ },
95
+ "required": false,
96
+ "description": "Additional information to include in the transcription response.\n`logprobs` will return the log probabilities of the tokens in the\nresponse to understand the model's confidence in the transcription.\n`logprobs` only works with response_format set to `json` and only with\nthe models `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `gpt-4o-mini-transcribe-2025-12-15`. This field is not supported when using `gpt-4o-transcribe-diarize`.\n"
97
+ },
98
+ {
99
+ "name": "timestamp_granularities",
100
+ "type": {
101
+ "kind": "array",
102
+ "items": {
103
+ "kind": "ref",
104
+ "name": "CreateTranscriptionRequestTimestampGranularitiesItem"
105
+ }
106
+ },
107
+ "required": false,
108
+ "default": [
109
+ "segment"
110
+ ],
111
+ "description": "The timestamp granularities to populate for this transcription. `response_format` must be set `verbose_json` to use timestamp granularities. Either or both of these options are supported: `word`, or `segment`. Note: There is no additional latency for segment timestamps, but generating word timestamps incurs additional latency.\nThis option is not available for `gpt-4o-transcribe-diarize`.\n"
112
+ },
113
+ {
114
+ "name": "stream",
115
+ "type": {
116
+ "kind": "scalar",
117
+ "scalar": "boolean",
118
+ "nullable": true
119
+ },
120
+ "required": false
121
+ },
122
+ {
123
+ "name": "chunking_strategy",
124
+ "type": {
125
+ "kind": "ref",
126
+ "name": "CreateTranscriptionRequestChunkingStrategy",
127
+ "nullable": true
128
+ },
129
+ "required": false
130
+ },
131
+ {
132
+ "name": "known_speaker_names",
133
+ "type": {
134
+ "kind": "array",
135
+ "items": {
136
+ "kind": "scalar",
137
+ "scalar": "string"
138
+ }
139
+ },
140
+ "required": false,
141
+ "description": "Optional list of speaker names that correspond to the audio samples provided in `known_speaker_references[]`. Each entry should be a short identifier (for example `customer` or `agent`). Up to 4 speakers are supported.\n"
142
+ },
143
+ {
144
+ "name": "known_speaker_references",
145
+ "type": {
146
+ "kind": "array",
147
+ "items": {
148
+ "kind": "scalar",
149
+ "scalar": "string"
150
+ }
151
+ },
152
+ "required": false,
153
+ "description": "Optional list of audio samples (as [data URLs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs)) that contain known speaker references matching `known_speaker_names[]`. Each sample must be between 2 and 10 seconds, and can use any of the same input audio formats supported by `file`.\n"
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "name": "CreateTranscriptionRequestModel",
159
+ "kind": "union",
160
+ "semantics": "anyOf",
161
+ "variants": [
162
+ {
163
+ "kind": "scalar",
164
+ "scalar": "string"
165
+ },
166
+ {
167
+ "kind": "ref",
168
+ "name": "CreateTranscriptionRequestModelString"
169
+ }
170
+ ],
171
+ "description": "ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `gpt-4o-mini-transcribe-2025-12-15`, `whisper-1` (which is powered by our open source Whisper V2 model), and `gpt-4o-transcribe-diarize`.\n"
172
+ },
173
+ {
174
+ "name": "CreateTranscriptionRequestModelString",
175
+ "kind": "enum",
176
+ "base": "string",
177
+ "values": [
178
+ {
179
+ "value": "whisper-1"
180
+ },
181
+ {
182
+ "value": "gpt-4o-transcribe"
183
+ },
184
+ {
185
+ "value": "gpt-4o-mini-transcribe"
186
+ },
187
+ {
188
+ "value": "gpt-4o-mini-transcribe-2025-12-15"
189
+ },
190
+ {
191
+ "value": "gpt-4o-transcribe-diarize"
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "name": "AudioResponseFormat",
197
+ "kind": "enum",
198
+ "base": "string",
199
+ "values": [
200
+ {
201
+ "value": "json"
202
+ },
203
+ {
204
+ "value": "text"
205
+ },
206
+ {
207
+ "value": "srt"
208
+ },
209
+ {
210
+ "value": "verbose_json"
211
+ },
212
+ {
213
+ "value": "vtt"
214
+ },
215
+ {
216
+ "value": "diarized_json"
217
+ }
218
+ ],
219
+ "description": "The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`, `vtt`, or `diarized_json`. For `gpt-4o-transcribe` and `gpt-4o-mini-transcribe`, the only supported format is `json`. For `gpt-4o-transcribe-diarize`, the supported formats are `json`, `text`, and `diarized_json`, with `diarized_json` required to receive speaker annotations.\n"
220
+ },
221
+ {
222
+ "name": "TranscriptionInclude",
223
+ "kind": "alias",
224
+ "of": {
225
+ "kind": "scalar",
226
+ "scalar": "string",
227
+ "const": "logprobs"
228
+ }
229
+ },
230
+ {
231
+ "name": "CreateTranscriptionRequestTimestampGranularitiesItem",
232
+ "kind": "enum",
233
+ "base": "string",
234
+ "values": [
235
+ {
236
+ "value": "word"
237
+ },
238
+ {
239
+ "value": "segment"
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "name": "CreateTranscriptionRequestChunkingStrategy",
245
+ "kind": "union",
246
+ "semantics": "anyOf",
247
+ "variants": [
248
+ {
249
+ "kind": "scalar",
250
+ "scalar": "string",
251
+ "const": "auto"
252
+ },
253
+ {
254
+ "kind": "ref",
255
+ "name": "VadConfig"
256
+ }
257
+ ],
258
+ "description": "Controls how the audio is cut into chunks. When set to `\"auto\"`, the server first normalizes loudness and then uses voice activity detection (VAD) to choose boundaries. `server_vad` object can be provided to tweak VAD detection parameters manually. If unset, the audio is transcribed as a single block. Required when using `gpt-4o-transcribe-diarize` for inputs longer than 30 seconds. "
259
+ },
260
+ {
261
+ "name": "VadConfig",
262
+ "kind": "struct",
263
+ "fields": [
264
+ {
265
+ "name": "type",
266
+ "type": {
267
+ "kind": "scalar",
268
+ "scalar": "string",
269
+ "const": "server_vad"
270
+ },
271
+ "required": true,
272
+ "description": "Must be set to `server_vad` to enable manual chunking using server side VAD."
273
+ },
274
+ {
275
+ "name": "prefix_padding_ms",
276
+ "type": {
277
+ "kind": "scalar",
278
+ "scalar": "integer"
279
+ },
280
+ "required": false,
281
+ "default": 300,
282
+ "description": "Amount of audio to include before the VAD detected speech (in \nmilliseconds).\n"
283
+ },
284
+ {
285
+ "name": "silence_duration_ms",
286
+ "type": {
287
+ "kind": "scalar",
288
+ "scalar": "integer"
289
+ },
290
+ "required": false,
291
+ "default": 200,
292
+ "description": "Duration of silence to detect speech stop (in milliseconds).\nWith shorter values the model will respond more quickly, \nbut may jump in on short pauses from the user.\n"
293
+ },
294
+ {
295
+ "name": "threshold",
296
+ "type": {
297
+ "kind": "scalar",
298
+ "scalar": "number"
299
+ },
300
+ "required": false,
301
+ "default": 0.5,
302
+ "description": "Sensitivity threshold (0.0 to 1.0) for voice activity detection. A \nhigher threshold will require louder audio to activate the model, and \nthus might perform better in noisy environments.\n"
303
+ }
304
+ ]
305
+ },
306
+ {
307
+ "name": "AudioTranscriptionsCreateResponse",
308
+ "kind": "union",
309
+ "semantics": "oneOf",
310
+ "variants": [
311
+ {
312
+ "kind": "ref",
313
+ "name": "CreateTranscriptionResponseJson"
314
+ },
315
+ {
316
+ "kind": "ref",
317
+ "name": "CreateTranscriptionResponseDiarizedJson"
318
+ },
319
+ {
320
+ "kind": "ref",
321
+ "name": "CreateTranscriptionResponseVerboseJson"
322
+ }
323
+ ]
324
+ },
325
+ {
326
+ "name": "CreateTranscriptionResponseJson",
327
+ "kind": "struct",
328
+ "fields": [
329
+ {
330
+ "name": "text",
331
+ "type": {
332
+ "kind": "scalar",
333
+ "scalar": "string"
334
+ },
335
+ "required": true,
336
+ "description": "The transcribed text."
337
+ },
338
+ {
339
+ "name": "logprobs",
340
+ "type": {
341
+ "kind": "array",
342
+ "items": {
343
+ "kind": "ref",
344
+ "name": "CreateTranscriptionResponseJsonLogprobsItem"
345
+ }
346
+ },
347
+ "required": false,
348
+ "description": "The log probabilities of the tokens in the transcription. Only returned with the models `gpt-4o-transcribe` and `gpt-4o-mini-transcribe` if `logprobs` is added to the `include` array.\n"
349
+ },
350
+ {
351
+ "name": "usage",
352
+ "type": {
353
+ "kind": "ref",
354
+ "name": "CreateTranscriptionResponseJsonUsage"
355
+ },
356
+ "required": false,
357
+ "description": "Token usage statistics for the request."
358
+ }
359
+ ],
360
+ "description": "Represents a transcription response returned by model, based on the provided input."
361
+ },
362
+ {
363
+ "name": "CreateTranscriptionResponseJsonLogprobsItem",
364
+ "kind": "struct",
365
+ "fields": [
366
+ {
367
+ "name": "token",
368
+ "type": {
369
+ "kind": "scalar",
370
+ "scalar": "string"
371
+ },
372
+ "required": false,
373
+ "description": "The token in the transcription."
374
+ },
375
+ {
376
+ "name": "logprob",
377
+ "type": {
378
+ "kind": "scalar",
379
+ "scalar": "number"
380
+ },
381
+ "required": false,
382
+ "description": "The log probability of the token."
383
+ },
384
+ {
385
+ "name": "bytes",
386
+ "type": {
387
+ "kind": "array",
388
+ "items": {
389
+ "kind": "scalar",
390
+ "scalar": "number"
391
+ }
392
+ },
393
+ "required": false,
394
+ "description": "The bytes of the token."
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "name": "CreateTranscriptionResponseJsonUsage",
400
+ "kind": "union",
401
+ "semantics": "oneOf",
402
+ "variants": [
403
+ {
404
+ "kind": "ref",
405
+ "name": "TranscriptTextUsageTokens"
406
+ },
407
+ {
408
+ "kind": "ref",
409
+ "name": "TranscriptTextUsageDuration"
410
+ }
411
+ ],
412
+ "description": "Token usage statistics for the request."
413
+ },
414
+ {
415
+ "name": "TranscriptTextUsageTokens",
416
+ "kind": "struct",
417
+ "fields": [
418
+ {
419
+ "name": "type",
420
+ "type": {
421
+ "kind": "scalar",
422
+ "scalar": "string",
423
+ "const": "tokens"
424
+ },
425
+ "required": true,
426
+ "description": "The type of the usage object. Always `tokens` for this variant."
427
+ },
428
+ {
429
+ "name": "input_tokens",
430
+ "type": {
431
+ "kind": "scalar",
432
+ "scalar": "integer"
433
+ },
434
+ "required": true,
435
+ "description": "Number of input tokens billed for this request."
436
+ },
437
+ {
438
+ "name": "input_token_details",
439
+ "type": {
440
+ "kind": "ref",
441
+ "name": "TranscriptTextUsageTokensInputTokenDetails"
442
+ },
443
+ "required": false,
444
+ "description": "Details about the input tokens billed for this request."
445
+ },
446
+ {
447
+ "name": "output_tokens",
448
+ "type": {
449
+ "kind": "scalar",
450
+ "scalar": "integer"
451
+ },
452
+ "required": true,
453
+ "description": "Number of output tokens generated."
454
+ },
455
+ {
456
+ "name": "total_tokens",
457
+ "type": {
458
+ "kind": "scalar",
459
+ "scalar": "integer"
460
+ },
461
+ "required": true,
462
+ "description": "Total number of tokens used (input + output)."
463
+ }
464
+ ],
465
+ "description": "Usage statistics for models billed by token usage."
466
+ },
467
+ {
468
+ "name": "TranscriptTextUsageTokensInputTokenDetails",
469
+ "kind": "struct",
470
+ "fields": [
471
+ {
472
+ "name": "text_tokens",
473
+ "type": {
474
+ "kind": "scalar",
475
+ "scalar": "integer"
476
+ },
477
+ "required": false,
478
+ "description": "Number of text tokens billed for this request."
479
+ },
480
+ {
481
+ "name": "audio_tokens",
482
+ "type": {
483
+ "kind": "scalar",
484
+ "scalar": "integer"
485
+ },
486
+ "required": false,
487
+ "description": "Number of audio tokens billed for this request."
488
+ }
489
+ ],
490
+ "description": "Details about the input tokens billed for this request."
491
+ },
492
+ {
493
+ "name": "TranscriptTextUsageDuration",
494
+ "kind": "struct",
495
+ "fields": [
496
+ {
497
+ "name": "type",
498
+ "type": {
499
+ "kind": "scalar",
500
+ "scalar": "string",
501
+ "const": "duration"
502
+ },
503
+ "required": true,
504
+ "description": "The type of the usage object. Always `duration` for this variant."
505
+ },
506
+ {
507
+ "name": "seconds",
508
+ "type": {
509
+ "kind": "scalar",
510
+ "scalar": "number",
511
+ "format": "double"
512
+ },
513
+ "required": true,
514
+ "description": "Duration of the input audio in seconds."
515
+ }
516
+ ],
517
+ "description": "Usage statistics for models billed by audio input duration."
518
+ },
519
+ {
520
+ "name": "CreateTranscriptionResponseDiarizedJson",
521
+ "kind": "struct",
522
+ "fields": [
523
+ {
524
+ "name": "task",
525
+ "type": {
526
+ "kind": "scalar",
527
+ "scalar": "string",
528
+ "const": "transcribe"
529
+ },
530
+ "required": true,
531
+ "description": "The type of task that was run. Always `transcribe`."
532
+ },
533
+ {
534
+ "name": "duration",
535
+ "type": {
536
+ "kind": "scalar",
537
+ "scalar": "number",
538
+ "format": "double"
539
+ },
540
+ "required": true,
541
+ "description": "Duration of the input audio in seconds."
542
+ },
543
+ {
544
+ "name": "text",
545
+ "type": {
546
+ "kind": "scalar",
547
+ "scalar": "string"
548
+ },
549
+ "required": true,
550
+ "description": "The concatenated transcript text for the entire audio input."
551
+ },
552
+ {
553
+ "name": "segments",
554
+ "type": {
555
+ "kind": "array",
556
+ "items": {
557
+ "kind": "ref",
558
+ "name": "TranscriptionDiarizedSegment"
559
+ }
560
+ },
561
+ "required": true,
562
+ "description": "Segments of the transcript annotated with timestamps and speaker labels."
563
+ },
564
+ {
565
+ "name": "usage",
566
+ "type": {
567
+ "kind": "ref",
568
+ "name": "CreateTranscriptionResponseDiarizedJsonUsage"
569
+ },
570
+ "required": false,
571
+ "description": "Token or duration usage statistics for the request."
572
+ }
573
+ ],
574
+ "description": "Represents a diarized transcription response returned by the model, including the combined transcript and speaker-segment annotations.\n"
575
+ },
576
+ {
577
+ "name": "TranscriptionDiarizedSegment",
578
+ "kind": "struct",
579
+ "fields": [
580
+ {
581
+ "name": "type",
582
+ "type": {
583
+ "kind": "scalar",
584
+ "scalar": "string",
585
+ "const": "transcript.text.segment"
586
+ },
587
+ "required": true,
588
+ "description": "The type of the segment. Always `transcript.text.segment`.\n"
589
+ },
590
+ {
591
+ "name": "id",
592
+ "type": {
593
+ "kind": "scalar",
594
+ "scalar": "string"
595
+ },
596
+ "required": true,
597
+ "description": "Unique identifier for the segment."
598
+ },
599
+ {
600
+ "name": "start",
601
+ "type": {
602
+ "kind": "scalar",
603
+ "scalar": "number",
604
+ "format": "double"
605
+ },
606
+ "required": true,
607
+ "description": "Start timestamp of the segment in seconds."
608
+ },
609
+ {
610
+ "name": "end",
611
+ "type": {
612
+ "kind": "scalar",
613
+ "scalar": "number",
614
+ "format": "double"
615
+ },
616
+ "required": true,
617
+ "description": "End timestamp of the segment in seconds."
618
+ },
619
+ {
620
+ "name": "text",
621
+ "type": {
622
+ "kind": "scalar",
623
+ "scalar": "string"
624
+ },
625
+ "required": true,
626
+ "description": "Transcript text for this segment."
627
+ },
628
+ {
629
+ "name": "speaker",
630
+ "type": {
631
+ "kind": "scalar",
632
+ "scalar": "string"
633
+ },
634
+ "required": true,
635
+ "description": "Speaker label for this segment. When known speakers are provided, the label matches `known_speaker_names[]`. Otherwise speakers are labeled sequentially using capital letters (`A`, `B`, ...).\n"
636
+ }
637
+ ],
638
+ "description": "A segment of diarized transcript text with speaker metadata."
639
+ },
640
+ {
641
+ "name": "CreateTranscriptionResponseDiarizedJsonUsage",
642
+ "kind": "union",
643
+ "semantics": "oneOf",
644
+ "variants": [
645
+ {
646
+ "kind": "ref",
647
+ "name": "TranscriptTextUsageTokens"
648
+ },
649
+ {
650
+ "kind": "ref",
651
+ "name": "TranscriptTextUsageDuration"
652
+ }
653
+ ],
654
+ "discriminator": {
655
+ "propertyName": "type",
656
+ "mapping": {
657
+ "tokens": "TranscriptTextUsageTokens",
658
+ "duration": "TranscriptTextUsageDuration"
659
+ }
660
+ },
661
+ "description": "Token or duration usage statistics for the request."
662
+ },
663
+ {
664
+ "name": "CreateTranscriptionResponseVerboseJson",
665
+ "kind": "struct",
666
+ "fields": [
667
+ {
668
+ "name": "language",
669
+ "type": {
670
+ "kind": "scalar",
671
+ "scalar": "string"
672
+ },
673
+ "required": true,
674
+ "description": "The language of the input audio."
675
+ },
676
+ {
677
+ "name": "duration",
678
+ "type": {
679
+ "kind": "scalar",
680
+ "scalar": "number",
681
+ "format": "double"
682
+ },
683
+ "required": true,
684
+ "description": "The duration of the input audio."
685
+ },
686
+ {
687
+ "name": "text",
688
+ "type": {
689
+ "kind": "scalar",
690
+ "scalar": "string"
691
+ },
692
+ "required": true,
693
+ "description": "The transcribed text."
694
+ },
695
+ {
696
+ "name": "words",
697
+ "type": {
698
+ "kind": "array",
699
+ "items": {
700
+ "kind": "ref",
701
+ "name": "TranscriptionWord"
702
+ }
703
+ },
704
+ "required": false,
705
+ "description": "Extracted words and their corresponding timestamps."
706
+ },
707
+ {
708
+ "name": "segments",
709
+ "type": {
710
+ "kind": "array",
711
+ "items": {
712
+ "kind": "ref",
713
+ "name": "TranscriptionSegment"
714
+ }
715
+ },
716
+ "required": false,
717
+ "description": "Segments of the transcribed text and their corresponding details."
718
+ },
719
+ {
720
+ "name": "usage",
721
+ "type": {
722
+ "kind": "ref",
723
+ "name": "TranscriptTextUsageDuration"
724
+ },
725
+ "required": false
726
+ }
727
+ ],
728
+ "description": "Represents a verbose json transcription response returned by model, based on the provided input."
729
+ },
730
+ {
731
+ "name": "TranscriptionWord",
732
+ "kind": "struct",
733
+ "fields": [
734
+ {
735
+ "name": "word",
736
+ "type": {
737
+ "kind": "scalar",
738
+ "scalar": "string"
739
+ },
740
+ "required": true,
741
+ "description": "The text content of the word."
742
+ },
743
+ {
744
+ "name": "start",
745
+ "type": {
746
+ "kind": "scalar",
747
+ "scalar": "number",
748
+ "format": "double"
749
+ },
750
+ "required": true,
751
+ "description": "Start time of the word in seconds."
752
+ },
753
+ {
754
+ "name": "end",
755
+ "type": {
756
+ "kind": "scalar",
757
+ "scalar": "number",
758
+ "format": "double"
759
+ },
760
+ "required": true,
761
+ "description": "End time of the word in seconds."
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ "name": "TranscriptionSegment",
767
+ "kind": "struct",
768
+ "fields": [
769
+ {
770
+ "name": "id",
771
+ "type": {
772
+ "kind": "scalar",
773
+ "scalar": "integer"
774
+ },
775
+ "required": true,
776
+ "description": "Unique identifier of the segment."
777
+ },
778
+ {
779
+ "name": "seek",
780
+ "type": {
781
+ "kind": "scalar",
782
+ "scalar": "integer"
783
+ },
784
+ "required": true,
785
+ "description": "Seek offset of the segment."
786
+ },
787
+ {
788
+ "name": "start",
789
+ "type": {
790
+ "kind": "scalar",
791
+ "scalar": "number",
792
+ "format": "double"
793
+ },
794
+ "required": true,
795
+ "description": "Start time of the segment in seconds."
796
+ },
797
+ {
798
+ "name": "end",
799
+ "type": {
800
+ "kind": "scalar",
801
+ "scalar": "number",
802
+ "format": "double"
803
+ },
804
+ "required": true,
805
+ "description": "End time of the segment in seconds."
806
+ },
807
+ {
808
+ "name": "text",
809
+ "type": {
810
+ "kind": "scalar",
811
+ "scalar": "string"
812
+ },
813
+ "required": true,
814
+ "description": "Text content of the segment."
815
+ },
816
+ {
817
+ "name": "tokens",
818
+ "type": {
819
+ "kind": "array",
820
+ "items": {
821
+ "kind": "scalar",
822
+ "scalar": "integer"
823
+ }
824
+ },
825
+ "required": true,
826
+ "description": "Array of token IDs for the text content."
827
+ },
828
+ {
829
+ "name": "temperature",
830
+ "type": {
831
+ "kind": "scalar",
832
+ "scalar": "number",
833
+ "format": "float"
834
+ },
835
+ "required": true,
836
+ "description": "Temperature parameter used for generating the segment."
837
+ },
838
+ {
839
+ "name": "avg_logprob",
840
+ "type": {
841
+ "kind": "scalar",
842
+ "scalar": "number",
843
+ "format": "float"
844
+ },
845
+ "required": true,
846
+ "description": "Average logprob of the segment. If the value is lower than -1, consider the logprobs failed."
847
+ },
848
+ {
849
+ "name": "compression_ratio",
850
+ "type": {
851
+ "kind": "scalar",
852
+ "scalar": "number",
853
+ "format": "float"
854
+ },
855
+ "required": true,
856
+ "description": "Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed."
857
+ },
858
+ {
859
+ "name": "no_speech_prob",
860
+ "type": {
861
+ "kind": "scalar",
862
+ "scalar": "number",
863
+ "format": "float"
864
+ },
865
+ "required": true,
866
+ "description": "Probability of no speech in the segment. If the value is higher than 1.0 and the `avg_logprob` is below -1, consider this segment silent."
867
+ }
868
+ ]
869
+ }
870
+ ],
871
+ "resources": [
872
+ {
873
+ "name": "audio",
874
+ "resources": [
875
+ {
876
+ "name": "transcriptions",
877
+ "methods": [
878
+ {
879
+ "action": "create",
880
+ "httpMethod": "post",
881
+ "path": "/audio/transcriptions",
882
+ "operationId": "createTranscription",
883
+ "description": "Transcribes audio into the input language.\n\nReturns a transcription object in `json`, `diarized_json`, or `verbose_json`\nformat, or a stream of transcript events.\n",
884
+ "requestBody": {
885
+ "contentType": "multipart/form-data",
886
+ "type": {
887
+ "kind": "ref",
888
+ "name": "CreateTranscriptionRequest"
889
+ },
890
+ "required": true,
891
+ "encoding": "multipart"
892
+ },
893
+ "responses": [
894
+ {
895
+ "status": "200",
896
+ "description": "OK",
897
+ "contentType": "application/json",
898
+ "type": {
899
+ "kind": "ref",
900
+ "name": "AudioTranscriptionsCreateResponse"
901
+ }
902
+ }
903
+ ],
904
+ "primaryResponse": {
905
+ "kind": "ref",
906
+ "name": "AudioTranscriptionsCreateResponse"
907
+ }
908
+ }
909
+ ]
910
+ }
911
+ ]
912
+ }
913
+ ],
914
+ "sdk": {
915
+ "retry": {
916
+ "maxRetries": 2,
917
+ "retryableStatusCodes": [
918
+ 408,
919
+ 429,
920
+ 500,
921
+ 502,
922
+ 503,
923
+ 504
924
+ ],
925
+ "retryConnectionErrors": true,
926
+ "honorRetryAfterHeader": true,
927
+ "backoff": {
928
+ "initialDelayMs": 500,
929
+ "maxDelayMs": 8000,
930
+ "multiplier": 2,
931
+ "jitter": 0.25
932
+ }
933
+ },
934
+ "timeout": {
935
+ "defaultTimeoutMs": 60000
936
+ },
937
+ "errors": {
938
+ "statusCodeMap": {
939
+ "400": "BadRequest",
940
+ "401": "Unauthorized",
941
+ "403": "PermissionDenied",
942
+ "404": "NotFound",
943
+ "409": "Conflict",
944
+ "422": "UnprocessableEntity",
945
+ "429": "RateLimited"
946
+ },
947
+ "clientErrorKind": "API",
948
+ "serverErrorKind": "Internal"
949
+ },
950
+ "userAgent": {
951
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
952
+ "includeRuntimeVersion": false,
953
+ "aiAgentEnvVars": {
954
+ "CLAUDE_CODE": "claude-code",
955
+ "CURSOR_AGENT": "cursor",
956
+ "CLINE_ACTIVE": "cline",
957
+ "WINDSURF_ACTIVE": "windsurf",
958
+ "COPILOT_AGENT": "copilot"
959
+ }
960
+ },
961
+ "telemetry": {
962
+ "requestIdHeader": "X-Request-ID",
963
+ "headerName": "X-Client-Telemetry",
964
+ "enabledByDefault": false
965
+ },
966
+ "logging": {
967
+ "events": [
968
+ "request.start",
969
+ "request.success",
970
+ "request.retry",
971
+ "request.rate_limited",
972
+ "request.error",
973
+ "request.connection_error"
974
+ ]
975
+ },
976
+ "idempotency": {
977
+ "headerName": "Idempotency-Key",
978
+ "autoGenerateForPost": true
979
+ },
980
+ "pagination": {
981
+ "autoPageDelayMs": 0
982
+ },
983
+ "requestGuard": {
984
+ "optionKeys": [
985
+ "api_key",
986
+ "apiKey",
987
+ "idempotency_key",
988
+ "idempotencyKey",
989
+ "extra_headers",
990
+ "extraHeaders",
991
+ "max_retries",
992
+ "maxRetries",
993
+ "base_url",
994
+ "baseUrl",
995
+ "timeout"
996
+ ]
997
+ }
998
+ }
999
+ }