@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,1123 @@
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": "AdminOrganizationUsageCompletionsListBucketWidth",
29
+ "kind": "enum",
30
+ "base": "string",
31
+ "values": [
32
+ {
33
+ "value": "1m"
34
+ },
35
+ {
36
+ "value": "1h"
37
+ },
38
+ {
39
+ "value": "1d"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "AdminOrganizationUsageCompletionsListGroupByItem",
45
+ "kind": "enum",
46
+ "base": "string",
47
+ "values": [
48
+ {
49
+ "value": "project_id"
50
+ },
51
+ {
52
+ "value": "user_id"
53
+ },
54
+ {
55
+ "value": "api_key_id"
56
+ },
57
+ {
58
+ "value": "model"
59
+ },
60
+ {
61
+ "value": "batch"
62
+ },
63
+ {
64
+ "value": "service_tier"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "name": "UsageResponse",
70
+ "kind": "struct",
71
+ "fields": [
72
+ {
73
+ "name": "object",
74
+ "type": {
75
+ "kind": "scalar",
76
+ "scalar": "string",
77
+ "const": "page"
78
+ },
79
+ "required": true
80
+ },
81
+ {
82
+ "name": "data",
83
+ "type": {
84
+ "kind": "array",
85
+ "items": {
86
+ "kind": "ref",
87
+ "name": "UsageTimeBucket"
88
+ }
89
+ },
90
+ "required": true
91
+ },
92
+ {
93
+ "name": "has_more",
94
+ "type": {
95
+ "kind": "scalar",
96
+ "scalar": "boolean"
97
+ },
98
+ "required": true
99
+ },
100
+ {
101
+ "name": "next_page",
102
+ "type": {
103
+ "kind": "scalar",
104
+ "scalar": "string",
105
+ "nullable": true
106
+ },
107
+ "required": true
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "name": "UsageTimeBucket",
113
+ "kind": "struct",
114
+ "fields": [
115
+ {
116
+ "name": "object",
117
+ "type": {
118
+ "kind": "scalar",
119
+ "scalar": "string",
120
+ "const": "bucket"
121
+ },
122
+ "required": true
123
+ },
124
+ {
125
+ "name": "start_time",
126
+ "type": {
127
+ "kind": "scalar",
128
+ "scalar": "integer"
129
+ },
130
+ "required": true
131
+ },
132
+ {
133
+ "name": "end_time",
134
+ "type": {
135
+ "kind": "scalar",
136
+ "scalar": "integer"
137
+ },
138
+ "required": true
139
+ },
140
+ {
141
+ "name": "results",
142
+ "type": {
143
+ "kind": "array",
144
+ "items": {
145
+ "kind": "ref",
146
+ "name": "UsageTimeBucketResultsItem"
147
+ }
148
+ },
149
+ "required": true
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "name": "UsageTimeBucketResultsItem",
155
+ "kind": "union",
156
+ "semantics": "oneOf",
157
+ "variants": [
158
+ {
159
+ "kind": "ref",
160
+ "name": "UsageCompletionsResult"
161
+ },
162
+ {
163
+ "kind": "ref",
164
+ "name": "UsageEmbeddingsResult"
165
+ },
166
+ {
167
+ "kind": "ref",
168
+ "name": "UsageModerationsResult"
169
+ },
170
+ {
171
+ "kind": "ref",
172
+ "name": "UsageImagesResult"
173
+ },
174
+ {
175
+ "kind": "ref",
176
+ "name": "UsageAudioSpeechesResult"
177
+ },
178
+ {
179
+ "kind": "ref",
180
+ "name": "UsageAudioTranscriptionsResult"
181
+ },
182
+ {
183
+ "kind": "ref",
184
+ "name": "UsageVectorStoresResult"
185
+ },
186
+ {
187
+ "kind": "ref",
188
+ "name": "UsageCodeInterpreterSessionsResult"
189
+ },
190
+ {
191
+ "kind": "ref",
192
+ "name": "CostsResult"
193
+ }
194
+ ],
195
+ "discriminator": {
196
+ "propertyName": "object",
197
+ "mapping": {
198
+ "organization.usage.completions.result": "UsageCompletionsResult",
199
+ "organization.usage.embeddings.result": "UsageEmbeddingsResult",
200
+ "organization.usage.moderations.result": "UsageModerationsResult",
201
+ "organization.usage.images.result": "UsageImagesResult",
202
+ "organization.usage.audio_speeches.result": "UsageAudioSpeechesResult",
203
+ "organization.usage.audio_transcriptions.result": "UsageAudioTranscriptionsResult",
204
+ "organization.usage.vector_stores.result": "UsageVectorStoresResult",
205
+ "organization.usage.code_interpreter_sessions.result": "UsageCodeInterpreterSessionsResult",
206
+ "organization.costs.result": "CostsResult"
207
+ }
208
+ }
209
+ },
210
+ {
211
+ "name": "UsageCompletionsResult",
212
+ "kind": "struct",
213
+ "fields": [
214
+ {
215
+ "name": "object",
216
+ "type": {
217
+ "kind": "scalar",
218
+ "scalar": "string",
219
+ "const": "organization.usage.completions.result"
220
+ },
221
+ "required": true
222
+ },
223
+ {
224
+ "name": "input_tokens",
225
+ "type": {
226
+ "kind": "scalar",
227
+ "scalar": "integer"
228
+ },
229
+ "required": true,
230
+ "description": "The aggregated number of text input tokens used, including cached tokens. For customers subscribe to scale tier, this includes scale tier tokens."
231
+ },
232
+ {
233
+ "name": "input_cached_tokens",
234
+ "type": {
235
+ "kind": "scalar",
236
+ "scalar": "integer"
237
+ },
238
+ "required": false,
239
+ "description": "The aggregated number of text input tokens that has been cached from previous requests. For customers subscribe to scale tier, this includes scale tier tokens."
240
+ },
241
+ {
242
+ "name": "output_tokens",
243
+ "type": {
244
+ "kind": "scalar",
245
+ "scalar": "integer"
246
+ },
247
+ "required": true,
248
+ "description": "The aggregated number of text output tokens used. For customers subscribe to scale tier, this includes scale tier tokens."
249
+ },
250
+ {
251
+ "name": "input_audio_tokens",
252
+ "type": {
253
+ "kind": "scalar",
254
+ "scalar": "integer"
255
+ },
256
+ "required": false,
257
+ "description": "The aggregated number of audio input tokens used, including cached tokens."
258
+ },
259
+ {
260
+ "name": "output_audio_tokens",
261
+ "type": {
262
+ "kind": "scalar",
263
+ "scalar": "integer"
264
+ },
265
+ "required": false,
266
+ "description": "The aggregated number of audio output tokens used."
267
+ },
268
+ {
269
+ "name": "num_model_requests",
270
+ "type": {
271
+ "kind": "scalar",
272
+ "scalar": "integer"
273
+ },
274
+ "required": true,
275
+ "description": "The count of requests made to the model."
276
+ },
277
+ {
278
+ "name": "project_id",
279
+ "type": {
280
+ "kind": "scalar",
281
+ "scalar": "string",
282
+ "nullable": true
283
+ },
284
+ "required": false
285
+ },
286
+ {
287
+ "name": "user_id",
288
+ "type": {
289
+ "kind": "scalar",
290
+ "scalar": "string",
291
+ "nullable": true
292
+ },
293
+ "required": false
294
+ },
295
+ {
296
+ "name": "api_key_id",
297
+ "type": {
298
+ "kind": "scalar",
299
+ "scalar": "string",
300
+ "nullable": true
301
+ },
302
+ "required": false
303
+ },
304
+ {
305
+ "name": "model",
306
+ "type": {
307
+ "kind": "scalar",
308
+ "scalar": "string",
309
+ "nullable": true
310
+ },
311
+ "required": false
312
+ },
313
+ {
314
+ "name": "batch",
315
+ "type": {
316
+ "kind": "scalar",
317
+ "scalar": "boolean",
318
+ "nullable": true
319
+ },
320
+ "required": false
321
+ },
322
+ {
323
+ "name": "service_tier",
324
+ "type": {
325
+ "kind": "scalar",
326
+ "scalar": "string",
327
+ "nullable": true
328
+ },
329
+ "required": false
330
+ }
331
+ ],
332
+ "description": "The aggregated completions usage details of the specific time bucket."
333
+ },
334
+ {
335
+ "name": "UsageEmbeddingsResult",
336
+ "kind": "struct",
337
+ "fields": [
338
+ {
339
+ "name": "object",
340
+ "type": {
341
+ "kind": "scalar",
342
+ "scalar": "string",
343
+ "const": "organization.usage.embeddings.result"
344
+ },
345
+ "required": true
346
+ },
347
+ {
348
+ "name": "input_tokens",
349
+ "type": {
350
+ "kind": "scalar",
351
+ "scalar": "integer"
352
+ },
353
+ "required": true,
354
+ "description": "The aggregated number of input tokens used."
355
+ },
356
+ {
357
+ "name": "num_model_requests",
358
+ "type": {
359
+ "kind": "scalar",
360
+ "scalar": "integer"
361
+ },
362
+ "required": true,
363
+ "description": "The count of requests made to the model."
364
+ },
365
+ {
366
+ "name": "project_id",
367
+ "type": {
368
+ "kind": "scalar",
369
+ "scalar": "string",
370
+ "nullable": true
371
+ },
372
+ "required": false
373
+ },
374
+ {
375
+ "name": "user_id",
376
+ "type": {
377
+ "kind": "scalar",
378
+ "scalar": "string",
379
+ "nullable": true
380
+ },
381
+ "required": false
382
+ },
383
+ {
384
+ "name": "api_key_id",
385
+ "type": {
386
+ "kind": "scalar",
387
+ "scalar": "string",
388
+ "nullable": true
389
+ },
390
+ "required": false
391
+ },
392
+ {
393
+ "name": "model",
394
+ "type": {
395
+ "kind": "scalar",
396
+ "scalar": "string",
397
+ "nullable": true
398
+ },
399
+ "required": false
400
+ }
401
+ ],
402
+ "description": "The aggregated embeddings usage details of the specific time bucket."
403
+ },
404
+ {
405
+ "name": "UsageModerationsResult",
406
+ "kind": "struct",
407
+ "fields": [
408
+ {
409
+ "name": "object",
410
+ "type": {
411
+ "kind": "scalar",
412
+ "scalar": "string",
413
+ "const": "organization.usage.moderations.result"
414
+ },
415
+ "required": true
416
+ },
417
+ {
418
+ "name": "input_tokens",
419
+ "type": {
420
+ "kind": "scalar",
421
+ "scalar": "integer"
422
+ },
423
+ "required": true,
424
+ "description": "The aggregated number of input tokens used."
425
+ },
426
+ {
427
+ "name": "num_model_requests",
428
+ "type": {
429
+ "kind": "scalar",
430
+ "scalar": "integer"
431
+ },
432
+ "required": true,
433
+ "description": "The count of requests made to the model."
434
+ },
435
+ {
436
+ "name": "project_id",
437
+ "type": {
438
+ "kind": "scalar",
439
+ "scalar": "string",
440
+ "nullable": true
441
+ },
442
+ "required": false
443
+ },
444
+ {
445
+ "name": "user_id",
446
+ "type": {
447
+ "kind": "scalar",
448
+ "scalar": "string",
449
+ "nullable": true
450
+ },
451
+ "required": false
452
+ },
453
+ {
454
+ "name": "api_key_id",
455
+ "type": {
456
+ "kind": "scalar",
457
+ "scalar": "string",
458
+ "nullable": true
459
+ },
460
+ "required": false
461
+ },
462
+ {
463
+ "name": "model",
464
+ "type": {
465
+ "kind": "scalar",
466
+ "scalar": "string",
467
+ "nullable": true
468
+ },
469
+ "required": false
470
+ }
471
+ ],
472
+ "description": "The aggregated moderations usage details of the specific time bucket."
473
+ },
474
+ {
475
+ "name": "UsageImagesResult",
476
+ "kind": "struct",
477
+ "fields": [
478
+ {
479
+ "name": "object",
480
+ "type": {
481
+ "kind": "scalar",
482
+ "scalar": "string",
483
+ "const": "organization.usage.images.result"
484
+ },
485
+ "required": true
486
+ },
487
+ {
488
+ "name": "images",
489
+ "type": {
490
+ "kind": "scalar",
491
+ "scalar": "integer"
492
+ },
493
+ "required": true,
494
+ "description": "The number of images processed."
495
+ },
496
+ {
497
+ "name": "num_model_requests",
498
+ "type": {
499
+ "kind": "scalar",
500
+ "scalar": "integer"
501
+ },
502
+ "required": true,
503
+ "description": "The count of requests made to the model."
504
+ },
505
+ {
506
+ "name": "source",
507
+ "type": {
508
+ "kind": "scalar",
509
+ "scalar": "string",
510
+ "nullable": true
511
+ },
512
+ "required": false
513
+ },
514
+ {
515
+ "name": "size",
516
+ "type": {
517
+ "kind": "scalar",
518
+ "scalar": "string",
519
+ "nullable": true
520
+ },
521
+ "required": false
522
+ },
523
+ {
524
+ "name": "project_id",
525
+ "type": {
526
+ "kind": "scalar",
527
+ "scalar": "string",
528
+ "nullable": true
529
+ },
530
+ "required": false
531
+ },
532
+ {
533
+ "name": "user_id",
534
+ "type": {
535
+ "kind": "scalar",
536
+ "scalar": "string",
537
+ "nullable": true
538
+ },
539
+ "required": false
540
+ },
541
+ {
542
+ "name": "api_key_id",
543
+ "type": {
544
+ "kind": "scalar",
545
+ "scalar": "string",
546
+ "nullable": true
547
+ },
548
+ "required": false
549
+ },
550
+ {
551
+ "name": "model",
552
+ "type": {
553
+ "kind": "scalar",
554
+ "scalar": "string",
555
+ "nullable": true
556
+ },
557
+ "required": false
558
+ }
559
+ ],
560
+ "description": "The aggregated images usage details of the specific time bucket."
561
+ },
562
+ {
563
+ "name": "UsageAudioSpeechesResult",
564
+ "kind": "struct",
565
+ "fields": [
566
+ {
567
+ "name": "object",
568
+ "type": {
569
+ "kind": "scalar",
570
+ "scalar": "string",
571
+ "const": "organization.usage.audio_speeches.result"
572
+ },
573
+ "required": true
574
+ },
575
+ {
576
+ "name": "characters",
577
+ "type": {
578
+ "kind": "scalar",
579
+ "scalar": "integer"
580
+ },
581
+ "required": true,
582
+ "description": "The number of characters processed."
583
+ },
584
+ {
585
+ "name": "num_model_requests",
586
+ "type": {
587
+ "kind": "scalar",
588
+ "scalar": "integer"
589
+ },
590
+ "required": true,
591
+ "description": "The count of requests made to the model."
592
+ },
593
+ {
594
+ "name": "project_id",
595
+ "type": {
596
+ "kind": "scalar",
597
+ "scalar": "string",
598
+ "nullable": true
599
+ },
600
+ "required": false
601
+ },
602
+ {
603
+ "name": "user_id",
604
+ "type": {
605
+ "kind": "scalar",
606
+ "scalar": "string",
607
+ "nullable": true
608
+ },
609
+ "required": false
610
+ },
611
+ {
612
+ "name": "api_key_id",
613
+ "type": {
614
+ "kind": "scalar",
615
+ "scalar": "string",
616
+ "nullable": true
617
+ },
618
+ "required": false
619
+ },
620
+ {
621
+ "name": "model",
622
+ "type": {
623
+ "kind": "scalar",
624
+ "scalar": "string",
625
+ "nullable": true
626
+ },
627
+ "required": false
628
+ }
629
+ ],
630
+ "description": "The aggregated audio speeches usage details of the specific time bucket."
631
+ },
632
+ {
633
+ "name": "UsageAudioTranscriptionsResult",
634
+ "kind": "struct",
635
+ "fields": [
636
+ {
637
+ "name": "object",
638
+ "type": {
639
+ "kind": "scalar",
640
+ "scalar": "string",
641
+ "const": "organization.usage.audio_transcriptions.result"
642
+ },
643
+ "required": true
644
+ },
645
+ {
646
+ "name": "seconds",
647
+ "type": {
648
+ "kind": "scalar",
649
+ "scalar": "integer",
650
+ "format": "int64"
651
+ },
652
+ "required": true,
653
+ "description": "The number of seconds processed."
654
+ },
655
+ {
656
+ "name": "num_model_requests",
657
+ "type": {
658
+ "kind": "scalar",
659
+ "scalar": "integer"
660
+ },
661
+ "required": true,
662
+ "description": "The count of requests made to the model."
663
+ },
664
+ {
665
+ "name": "project_id",
666
+ "type": {
667
+ "kind": "scalar",
668
+ "scalar": "string",
669
+ "nullable": true
670
+ },
671
+ "required": false
672
+ },
673
+ {
674
+ "name": "user_id",
675
+ "type": {
676
+ "kind": "scalar",
677
+ "scalar": "string",
678
+ "nullable": true
679
+ },
680
+ "required": false
681
+ },
682
+ {
683
+ "name": "api_key_id",
684
+ "type": {
685
+ "kind": "scalar",
686
+ "scalar": "string",
687
+ "nullable": true
688
+ },
689
+ "required": false
690
+ },
691
+ {
692
+ "name": "model",
693
+ "type": {
694
+ "kind": "scalar",
695
+ "scalar": "string",
696
+ "nullable": true
697
+ },
698
+ "required": false
699
+ }
700
+ ],
701
+ "description": "The aggregated audio transcriptions usage details of the specific time bucket."
702
+ },
703
+ {
704
+ "name": "UsageVectorStoresResult",
705
+ "kind": "struct",
706
+ "fields": [
707
+ {
708
+ "name": "object",
709
+ "type": {
710
+ "kind": "scalar",
711
+ "scalar": "string",
712
+ "const": "organization.usage.vector_stores.result"
713
+ },
714
+ "required": true
715
+ },
716
+ {
717
+ "name": "usage_bytes",
718
+ "type": {
719
+ "kind": "scalar",
720
+ "scalar": "integer"
721
+ },
722
+ "required": true,
723
+ "description": "The vector stores usage in bytes."
724
+ },
725
+ {
726
+ "name": "project_id",
727
+ "type": {
728
+ "kind": "scalar",
729
+ "scalar": "string",
730
+ "nullable": true
731
+ },
732
+ "required": false
733
+ }
734
+ ],
735
+ "description": "The aggregated vector stores usage details of the specific time bucket."
736
+ },
737
+ {
738
+ "name": "UsageCodeInterpreterSessionsResult",
739
+ "kind": "struct",
740
+ "fields": [
741
+ {
742
+ "name": "object",
743
+ "type": {
744
+ "kind": "scalar",
745
+ "scalar": "string",
746
+ "const": "organization.usage.code_interpreter_sessions.result"
747
+ },
748
+ "required": true
749
+ },
750
+ {
751
+ "name": "num_sessions",
752
+ "type": {
753
+ "kind": "scalar",
754
+ "scalar": "integer"
755
+ },
756
+ "required": true,
757
+ "description": "The number of code interpreter sessions."
758
+ },
759
+ {
760
+ "name": "project_id",
761
+ "type": {
762
+ "kind": "scalar",
763
+ "scalar": "string",
764
+ "nullable": true
765
+ },
766
+ "required": false
767
+ }
768
+ ],
769
+ "description": "The aggregated code interpreter sessions usage details of the specific time bucket."
770
+ },
771
+ {
772
+ "name": "CostsResult",
773
+ "kind": "struct",
774
+ "fields": [
775
+ {
776
+ "name": "object",
777
+ "type": {
778
+ "kind": "scalar",
779
+ "scalar": "string",
780
+ "const": "organization.costs.result"
781
+ },
782
+ "required": true
783
+ },
784
+ {
785
+ "name": "amount",
786
+ "type": {
787
+ "kind": "ref",
788
+ "name": "CostsResultAmount"
789
+ },
790
+ "required": false,
791
+ "description": "The monetary value in its associated currency."
792
+ },
793
+ {
794
+ "name": "line_item",
795
+ "type": {
796
+ "kind": "scalar",
797
+ "scalar": "string",
798
+ "nullable": true
799
+ },
800
+ "required": false
801
+ },
802
+ {
803
+ "name": "project_id",
804
+ "type": {
805
+ "kind": "scalar",
806
+ "scalar": "string",
807
+ "nullable": true
808
+ },
809
+ "required": false
810
+ },
811
+ {
812
+ "name": "api_key_id",
813
+ "type": {
814
+ "kind": "scalar",
815
+ "scalar": "string",
816
+ "nullable": true
817
+ },
818
+ "required": false
819
+ },
820
+ {
821
+ "name": "quantity",
822
+ "type": {
823
+ "kind": "scalar",
824
+ "scalar": "number",
825
+ "nullable": true
826
+ },
827
+ "required": false
828
+ }
829
+ ],
830
+ "description": "The aggregated costs details of the specific time bucket."
831
+ },
832
+ {
833
+ "name": "CostsResultAmount",
834
+ "kind": "struct",
835
+ "fields": [
836
+ {
837
+ "name": "value",
838
+ "type": {
839
+ "kind": "scalar",
840
+ "scalar": "number"
841
+ },
842
+ "required": false,
843
+ "description": "The numeric value of the cost."
844
+ },
845
+ {
846
+ "name": "currency",
847
+ "type": {
848
+ "kind": "scalar",
849
+ "scalar": "string"
850
+ },
851
+ "required": false,
852
+ "description": "Lowercase ISO-4217 currency e.g. \"usd\""
853
+ }
854
+ ],
855
+ "description": "The monetary value in its associated currency."
856
+ }
857
+ ],
858
+ "resources": [
859
+ {
860
+ "name": "admin",
861
+ "resources": [
862
+ {
863
+ "name": "organization",
864
+ "resources": [
865
+ {
866
+ "name": "usage",
867
+ "resources": [
868
+ {
869
+ "name": "completions",
870
+ "methods": [
871
+ {
872
+ "action": "list",
873
+ "httpMethod": "get",
874
+ "path": "/organization/usage/completions",
875
+ "operationId": "usage-completions",
876
+ "description": "Get completions usage details for the organization.",
877
+ "queryParams": [
878
+ {
879
+ "name": "start_time",
880
+ "type": {
881
+ "kind": "scalar",
882
+ "scalar": "integer"
883
+ },
884
+ "required": true,
885
+ "description": "Start time (Unix seconds) of the query time range, inclusive."
886
+ },
887
+ {
888
+ "name": "end_time",
889
+ "type": {
890
+ "kind": "scalar",
891
+ "scalar": "integer"
892
+ },
893
+ "required": false,
894
+ "description": "End time (Unix seconds) of the query time range, exclusive."
895
+ },
896
+ {
897
+ "name": "bucket_width",
898
+ "type": {
899
+ "kind": "ref",
900
+ "name": "AdminOrganizationUsageCompletionsListBucketWidth"
901
+ },
902
+ "required": false,
903
+ "description": "Width of each time bucket in response. Currently `1m`, `1h` and `1d` are supported, default to `1d`.",
904
+ "default": "1d"
905
+ },
906
+ {
907
+ "name": "project_ids",
908
+ "type": {
909
+ "kind": "array",
910
+ "items": {
911
+ "kind": "scalar",
912
+ "scalar": "string"
913
+ }
914
+ },
915
+ "required": false,
916
+ "description": "Return only usage for these projects."
917
+ },
918
+ {
919
+ "name": "user_ids",
920
+ "type": {
921
+ "kind": "array",
922
+ "items": {
923
+ "kind": "scalar",
924
+ "scalar": "string"
925
+ }
926
+ },
927
+ "required": false,
928
+ "description": "Return only usage for these users."
929
+ },
930
+ {
931
+ "name": "api_key_ids",
932
+ "type": {
933
+ "kind": "array",
934
+ "items": {
935
+ "kind": "scalar",
936
+ "scalar": "string"
937
+ }
938
+ },
939
+ "required": false,
940
+ "description": "Return only usage for these API keys."
941
+ },
942
+ {
943
+ "name": "models",
944
+ "type": {
945
+ "kind": "array",
946
+ "items": {
947
+ "kind": "scalar",
948
+ "scalar": "string"
949
+ }
950
+ },
951
+ "required": false,
952
+ "description": "Return only usage for these models."
953
+ },
954
+ {
955
+ "name": "batch",
956
+ "type": {
957
+ "kind": "scalar",
958
+ "scalar": "boolean"
959
+ },
960
+ "required": false,
961
+ "description": "If `true`, return batch jobs only. If `false`, return non-batch jobs only. By default, return both.\n"
962
+ },
963
+ {
964
+ "name": "group_by",
965
+ "type": {
966
+ "kind": "array",
967
+ "items": {
968
+ "kind": "ref",
969
+ "name": "AdminOrganizationUsageCompletionsListGroupByItem"
970
+ }
971
+ },
972
+ "required": false,
973
+ "description": "Group the usage data by the specified fields. Support fields include `project_id`, `user_id`, `api_key_id`, `model`, `batch`, `service_tier` or any combination of them."
974
+ },
975
+ {
976
+ "name": "limit",
977
+ "type": {
978
+ "kind": "scalar",
979
+ "scalar": "integer"
980
+ },
981
+ "required": false,
982
+ "description": "Specifies the number of buckets to return.\n- `bucket_width=1d`: default: 7, max: 31\n- `bucket_width=1h`: default: 24, max: 168\n- `bucket_width=1m`: default: 60, max: 1440\n"
983
+ },
984
+ {
985
+ "name": "page",
986
+ "type": {
987
+ "kind": "scalar",
988
+ "scalar": "string"
989
+ },
990
+ "required": false,
991
+ "description": "A cursor for use in pagination. Corresponding to the `next_page` field from the previous response."
992
+ }
993
+ ],
994
+ "responses": [
995
+ {
996
+ "status": "200",
997
+ "description": "Usage data retrieved successfully.",
998
+ "contentType": "application/json",
999
+ "type": {
1000
+ "kind": "ref",
1001
+ "name": "UsageResponse"
1002
+ }
1003
+ }
1004
+ ],
1005
+ "primaryResponse": {
1006
+ "kind": "ref",
1007
+ "name": "UsageResponse"
1008
+ },
1009
+ "pagination": {
1010
+ "style": "cursor",
1011
+ "itemsField": "data",
1012
+ "nextField": "has_more",
1013
+ "itemType": {
1014
+ "kind": "ref",
1015
+ "name": "UsageTimeBucket"
1016
+ },
1017
+ "cursorParam": "page",
1018
+ "limitParam": "limit"
1019
+ },
1020
+ "security": [
1021
+ {
1022
+ "type": "http",
1023
+ "kind": "bearer",
1024
+ "schemeName": "AdminApiKeyAuth",
1025
+ "scheme": "bearer"
1026
+ }
1027
+ ]
1028
+ }
1029
+ ]
1030
+ }
1031
+ ]
1032
+ }
1033
+ ]
1034
+ }
1035
+ ]
1036
+ }
1037
+ ],
1038
+ "sdk": {
1039
+ "retry": {
1040
+ "maxRetries": 2,
1041
+ "retryableStatusCodes": [
1042
+ 408,
1043
+ 429,
1044
+ 500,
1045
+ 502,
1046
+ 503,
1047
+ 504
1048
+ ],
1049
+ "retryConnectionErrors": true,
1050
+ "honorRetryAfterHeader": true,
1051
+ "backoff": {
1052
+ "initialDelayMs": 500,
1053
+ "maxDelayMs": 8000,
1054
+ "multiplier": 2,
1055
+ "jitter": 0.25
1056
+ }
1057
+ },
1058
+ "timeout": {
1059
+ "defaultTimeoutMs": 60000
1060
+ },
1061
+ "errors": {
1062
+ "statusCodeMap": {
1063
+ "400": "BadRequest",
1064
+ "401": "Unauthorized",
1065
+ "403": "PermissionDenied",
1066
+ "404": "NotFound",
1067
+ "409": "Conflict",
1068
+ "422": "UnprocessableEntity",
1069
+ "429": "RateLimited"
1070
+ },
1071
+ "clientErrorKind": "API",
1072
+ "serverErrorKind": "Internal"
1073
+ },
1074
+ "userAgent": {
1075
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1076
+ "includeRuntimeVersion": false,
1077
+ "aiAgentEnvVars": {
1078
+ "CLAUDE_CODE": "claude-code",
1079
+ "CURSOR_AGENT": "cursor",
1080
+ "CLINE_ACTIVE": "cline",
1081
+ "WINDSURF_ACTIVE": "windsurf",
1082
+ "COPILOT_AGENT": "copilot"
1083
+ }
1084
+ },
1085
+ "telemetry": {
1086
+ "requestIdHeader": "X-Request-ID",
1087
+ "headerName": "X-Client-Telemetry",
1088
+ "enabledByDefault": false
1089
+ },
1090
+ "logging": {
1091
+ "events": [
1092
+ "request.start",
1093
+ "request.success",
1094
+ "request.retry",
1095
+ "request.rate_limited",
1096
+ "request.error",
1097
+ "request.connection_error"
1098
+ ]
1099
+ },
1100
+ "idempotency": {
1101
+ "headerName": "Idempotency-Key",
1102
+ "autoGenerateForPost": true
1103
+ },
1104
+ "pagination": {
1105
+ "autoPageDelayMs": 0
1106
+ },
1107
+ "requestGuard": {
1108
+ "optionKeys": [
1109
+ "api_key",
1110
+ "apiKey",
1111
+ "idempotency_key",
1112
+ "idempotencyKey",
1113
+ "extra_headers",
1114
+ "extraHeaders",
1115
+ "max_retries",
1116
+ "maxRetries",
1117
+ "base_url",
1118
+ "baseUrl",
1119
+ "timeout"
1120
+ ]
1121
+ }
1122
+ }
1123
+ }