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