@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,1251 @@
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": "EvalsListOrder",
29
+ "kind": "enum",
30
+ "base": "string",
31
+ "values": [
32
+ {
33
+ "value": "asc"
34
+ },
35
+ {
36
+ "value": "desc"
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "name": "EvalsListOrderBy",
42
+ "kind": "enum",
43
+ "base": "string",
44
+ "values": [
45
+ {
46
+ "value": "created_at"
47
+ },
48
+ {
49
+ "value": "updated_at"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "name": "EvalList",
55
+ "kind": "struct",
56
+ "fields": [
57
+ {
58
+ "name": "object",
59
+ "type": {
60
+ "kind": "scalar",
61
+ "scalar": "string",
62
+ "const": "list"
63
+ },
64
+ "required": true,
65
+ "default": "list",
66
+ "description": "The type of this object. It is always set to \"list\".\n"
67
+ },
68
+ {
69
+ "name": "data",
70
+ "type": {
71
+ "kind": "array",
72
+ "items": {
73
+ "kind": "ref",
74
+ "name": "Eval"
75
+ }
76
+ },
77
+ "required": true,
78
+ "description": "An array of eval objects.\n"
79
+ },
80
+ {
81
+ "name": "first_id",
82
+ "type": {
83
+ "kind": "scalar",
84
+ "scalar": "string"
85
+ },
86
+ "required": true,
87
+ "description": "The identifier of the first eval in the data array."
88
+ },
89
+ {
90
+ "name": "last_id",
91
+ "type": {
92
+ "kind": "scalar",
93
+ "scalar": "string"
94
+ },
95
+ "required": true,
96
+ "description": "The identifier of the last eval in the data array."
97
+ },
98
+ {
99
+ "name": "has_more",
100
+ "type": {
101
+ "kind": "scalar",
102
+ "scalar": "boolean"
103
+ },
104
+ "required": true,
105
+ "description": "Indicates whether there are more evals available."
106
+ }
107
+ ],
108
+ "description": "An object representing a list of evals.\n"
109
+ },
110
+ {
111
+ "name": "Eval",
112
+ "kind": "struct",
113
+ "fields": [
114
+ {
115
+ "name": "object",
116
+ "type": {
117
+ "kind": "scalar",
118
+ "scalar": "string",
119
+ "const": "eval"
120
+ },
121
+ "required": true,
122
+ "default": "eval",
123
+ "description": "The object type."
124
+ },
125
+ {
126
+ "name": "id",
127
+ "type": {
128
+ "kind": "scalar",
129
+ "scalar": "string"
130
+ },
131
+ "required": true,
132
+ "description": "Unique identifier for the evaluation."
133
+ },
134
+ {
135
+ "name": "name",
136
+ "type": {
137
+ "kind": "scalar",
138
+ "scalar": "string"
139
+ },
140
+ "required": true,
141
+ "description": "The name of the evaluation."
142
+ },
143
+ {
144
+ "name": "data_source_config",
145
+ "type": {
146
+ "kind": "ref",
147
+ "name": "EvalDataSourceConfig"
148
+ },
149
+ "required": true,
150
+ "description": "Configuration of data sources used in runs of the evaluation."
151
+ },
152
+ {
153
+ "name": "testing_criteria",
154
+ "type": {
155
+ "kind": "array",
156
+ "items": {
157
+ "kind": "ref",
158
+ "name": "EvalTestingCriteriaItem"
159
+ }
160
+ },
161
+ "required": true,
162
+ "default": "eval",
163
+ "description": "A list of testing criteria."
164
+ },
165
+ {
166
+ "name": "created_at",
167
+ "type": {
168
+ "kind": "scalar",
169
+ "scalar": "integer",
170
+ "format": "unixtime"
171
+ },
172
+ "required": true,
173
+ "description": "The Unix timestamp (in seconds) for when the eval was created."
174
+ },
175
+ {
176
+ "name": "metadata",
177
+ "type": {
178
+ "kind": "ref",
179
+ "name": "Metadata"
180
+ },
181
+ "required": true
182
+ }
183
+ ],
184
+ "description": "An Eval object with a data source config and testing criteria.\nAn Eval represents a task to be done for your LLM integration.\nLike:\n - Improve the quality of my chatbot\n - See how well my chatbot handles customer support\n - Check if o4-mini is better at my usecase than gpt-4o\n"
185
+ },
186
+ {
187
+ "name": "EvalDataSourceConfig",
188
+ "kind": "union",
189
+ "semantics": "oneOf",
190
+ "variants": [
191
+ {
192
+ "kind": "ref",
193
+ "name": "EvalCustomDataSourceConfig"
194
+ },
195
+ {
196
+ "kind": "ref",
197
+ "name": "EvalLogsDataSourceConfig"
198
+ },
199
+ {
200
+ "kind": "ref",
201
+ "name": "EvalStoredCompletionsDataSourceConfig"
202
+ }
203
+ ],
204
+ "description": "Configuration of data sources used in runs of the evaluation."
205
+ },
206
+ {
207
+ "name": "EvalCustomDataSourceConfig",
208
+ "kind": "struct",
209
+ "fields": [
210
+ {
211
+ "name": "type",
212
+ "type": {
213
+ "kind": "scalar",
214
+ "scalar": "string",
215
+ "const": "custom"
216
+ },
217
+ "required": true,
218
+ "default": "custom",
219
+ "description": "The type of data source. Always `custom`."
220
+ },
221
+ {
222
+ "name": "schema",
223
+ "type": {
224
+ "kind": "map",
225
+ "values": {
226
+ "kind": "any"
227
+ }
228
+ },
229
+ "required": true,
230
+ "description": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n"
231
+ }
232
+ ],
233
+ "description": "A CustomDataSourceConfig which specifies the schema of your `item` and optionally `sample` namespaces.\nThe response schema defines the shape of the data that will be:\n- Used to define your testing criteria and\n- What data is required when creating a run\n"
234
+ },
235
+ {
236
+ "name": "EvalLogsDataSourceConfig",
237
+ "kind": "struct",
238
+ "fields": [
239
+ {
240
+ "name": "type",
241
+ "type": {
242
+ "kind": "scalar",
243
+ "scalar": "string",
244
+ "const": "logs"
245
+ },
246
+ "required": true,
247
+ "default": "logs",
248
+ "description": "The type of data source. Always `logs`."
249
+ },
250
+ {
251
+ "name": "metadata",
252
+ "type": {
253
+ "kind": "ref",
254
+ "name": "Metadata"
255
+ },
256
+ "required": false
257
+ },
258
+ {
259
+ "name": "schema",
260
+ "type": {
261
+ "kind": "map",
262
+ "values": {
263
+ "kind": "any"
264
+ }
265
+ },
266
+ "required": true,
267
+ "description": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n"
268
+ }
269
+ ],
270
+ "description": "A LogsDataSourceConfig which specifies the metadata property of your logs query.\nThis is usually metadata like `usecase=chatbot` or `prompt-version=v2`, etc.\nThe schema returned by this data source config is used to defined what variables are available in your evals.\n`item` and `sample` are both defined when using this data source config.\n"
271
+ },
272
+ {
273
+ "name": "Metadata",
274
+ "kind": "alias",
275
+ "of": {
276
+ "kind": "map",
277
+ "values": {
278
+ "kind": "scalar",
279
+ "scalar": "string"
280
+ },
281
+ "nullable": true
282
+ }
283
+ },
284
+ {
285
+ "name": "EvalStoredCompletionsDataSourceConfig",
286
+ "kind": "struct",
287
+ "fields": [
288
+ {
289
+ "name": "type",
290
+ "type": {
291
+ "kind": "scalar",
292
+ "scalar": "string",
293
+ "const": "stored_completions"
294
+ },
295
+ "required": true,
296
+ "default": "stored_completions",
297
+ "description": "The type of data source. Always `stored_completions`."
298
+ },
299
+ {
300
+ "name": "metadata",
301
+ "type": {
302
+ "kind": "ref",
303
+ "name": "Metadata"
304
+ },
305
+ "required": false
306
+ },
307
+ {
308
+ "name": "schema",
309
+ "type": {
310
+ "kind": "map",
311
+ "values": {
312
+ "kind": "any"
313
+ }
314
+ },
315
+ "required": true,
316
+ "description": "The json schema for the run data source items.\nLearn how to build JSON schemas [here](https://json-schema.org/).\n"
317
+ }
318
+ ],
319
+ "description": "Deprecated in favor of LogsDataSourceConfig.\n"
320
+ },
321
+ {
322
+ "name": "EvalTestingCriteriaItem",
323
+ "kind": "union",
324
+ "semantics": "oneOf",
325
+ "variants": [
326
+ {
327
+ "kind": "ref",
328
+ "name": "EvalGraderLabelModel"
329
+ },
330
+ {
331
+ "kind": "ref",
332
+ "name": "EvalGraderStringCheck"
333
+ },
334
+ {
335
+ "kind": "ref",
336
+ "name": "EvalGraderTextSimilarity"
337
+ },
338
+ {
339
+ "kind": "ref",
340
+ "name": "EvalGraderPython"
341
+ },
342
+ {
343
+ "kind": "ref",
344
+ "name": "EvalGraderScoreModel"
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ "name": "EvalGraderLabelModel",
350
+ "kind": "alias",
351
+ "of": {
352
+ "kind": "ref",
353
+ "name": "GraderLabelModel"
354
+ }
355
+ },
356
+ {
357
+ "name": "GraderLabelModel",
358
+ "kind": "struct",
359
+ "fields": [
360
+ {
361
+ "name": "type",
362
+ "type": {
363
+ "kind": "scalar",
364
+ "scalar": "string",
365
+ "const": "label_model"
366
+ },
367
+ "required": true,
368
+ "description": "The object type, which is always `label_model`."
369
+ },
370
+ {
371
+ "name": "name",
372
+ "type": {
373
+ "kind": "scalar",
374
+ "scalar": "string"
375
+ },
376
+ "required": true,
377
+ "description": "The name of the grader."
378
+ },
379
+ {
380
+ "name": "model",
381
+ "type": {
382
+ "kind": "scalar",
383
+ "scalar": "string"
384
+ },
385
+ "required": true,
386
+ "description": "The model to use for the evaluation. Must support structured outputs."
387
+ },
388
+ {
389
+ "name": "input",
390
+ "type": {
391
+ "kind": "array",
392
+ "items": {
393
+ "kind": "ref",
394
+ "name": "EvalItem"
395
+ }
396
+ },
397
+ "required": true
398
+ },
399
+ {
400
+ "name": "labels",
401
+ "type": {
402
+ "kind": "array",
403
+ "items": {
404
+ "kind": "scalar",
405
+ "scalar": "string"
406
+ }
407
+ },
408
+ "required": true,
409
+ "description": "The labels to assign to each item in the evaluation."
410
+ },
411
+ {
412
+ "name": "passing_labels",
413
+ "type": {
414
+ "kind": "array",
415
+ "items": {
416
+ "kind": "scalar",
417
+ "scalar": "string"
418
+ }
419
+ },
420
+ "required": true,
421
+ "description": "The labels that indicate a passing result. Must be a subset of labels."
422
+ }
423
+ ],
424
+ "description": "A LabelModelGrader object which uses a model to assign labels to each item\nin the evaluation.\n"
425
+ },
426
+ {
427
+ "name": "EvalItem",
428
+ "kind": "struct",
429
+ "fields": [
430
+ {
431
+ "name": "role",
432
+ "type": {
433
+ "kind": "ref",
434
+ "name": "EvalItemRole"
435
+ },
436
+ "required": true,
437
+ "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n"
438
+ },
439
+ {
440
+ "name": "content",
441
+ "type": {
442
+ "kind": "ref",
443
+ "name": "EvalItemContent"
444
+ },
445
+ "required": true
446
+ },
447
+ {
448
+ "name": "type",
449
+ "type": {
450
+ "kind": "scalar",
451
+ "scalar": "string",
452
+ "const": "message"
453
+ },
454
+ "required": false,
455
+ "description": "The type of the message input. Always `message`.\n"
456
+ }
457
+ ],
458
+ "description": "A message input to the model with a role indicating instruction following\nhierarchy. Instructions given with the `developer` or `system` role take\nprecedence over instructions given with the `user` role. Messages with the\n`assistant` role are presumed to have been generated by the model in previous\ninteractions.\n"
459
+ },
460
+ {
461
+ "name": "EvalItemRole",
462
+ "kind": "enum",
463
+ "base": "string",
464
+ "values": [
465
+ {
466
+ "value": "user"
467
+ },
468
+ {
469
+ "value": "assistant"
470
+ },
471
+ {
472
+ "value": "system"
473
+ },
474
+ {
475
+ "value": "developer"
476
+ }
477
+ ],
478
+ "description": "The role of the message input. One of `user`, `assistant`, `system`, or\n`developer`.\n"
479
+ },
480
+ {
481
+ "name": "EvalItemContent",
482
+ "kind": "union",
483
+ "semantics": "oneOf",
484
+ "variants": [
485
+ {
486
+ "kind": "ref",
487
+ "name": "EvalItemContentItem"
488
+ },
489
+ {
490
+ "kind": "ref",
491
+ "name": "EvalItemContentArray"
492
+ }
493
+ ],
494
+ "description": "Inputs to the model - can contain template strings. Supports text, output text, input images, and input audio, either as a single item or an array of items.\n"
495
+ },
496
+ {
497
+ "name": "EvalItemContentItem",
498
+ "kind": "union",
499
+ "semantics": "oneOf",
500
+ "variants": [
501
+ {
502
+ "kind": "ref",
503
+ "name": "EvalItemContentText"
504
+ },
505
+ {
506
+ "kind": "ref",
507
+ "name": "InputTextContent"
508
+ },
509
+ {
510
+ "kind": "ref",
511
+ "name": "EvalItemContentOutputText"
512
+ },
513
+ {
514
+ "kind": "ref",
515
+ "name": "EvalItemInputImage"
516
+ },
517
+ {
518
+ "kind": "ref",
519
+ "name": "InputAudio"
520
+ }
521
+ ],
522
+ "description": "A single content item: input text, output text, input image, or input audio.\n"
523
+ },
524
+ {
525
+ "name": "EvalItemContentText",
526
+ "kind": "alias",
527
+ "of": {
528
+ "kind": "scalar",
529
+ "scalar": "string"
530
+ }
531
+ },
532
+ {
533
+ "name": "InputTextContent",
534
+ "kind": "struct",
535
+ "fields": [
536
+ {
537
+ "name": "type",
538
+ "type": {
539
+ "kind": "scalar",
540
+ "scalar": "string",
541
+ "const": "input_text"
542
+ },
543
+ "required": true,
544
+ "default": "input_text",
545
+ "description": "The type of the input item. Always `input_text`."
546
+ },
547
+ {
548
+ "name": "text",
549
+ "type": {
550
+ "kind": "scalar",
551
+ "scalar": "string"
552
+ },
553
+ "required": true,
554
+ "description": "The text input to the model."
555
+ }
556
+ ],
557
+ "description": "A text input to the model."
558
+ },
559
+ {
560
+ "name": "EvalItemContentOutputText",
561
+ "kind": "struct",
562
+ "fields": [
563
+ {
564
+ "name": "type",
565
+ "type": {
566
+ "kind": "scalar",
567
+ "scalar": "string",
568
+ "const": "output_text"
569
+ },
570
+ "required": true,
571
+ "description": "The type of the output text. Always `output_text`.\n"
572
+ },
573
+ {
574
+ "name": "text",
575
+ "type": {
576
+ "kind": "scalar",
577
+ "scalar": "string"
578
+ },
579
+ "required": true,
580
+ "description": "The text output from the model.\n"
581
+ }
582
+ ],
583
+ "description": "A text output from the model.\n"
584
+ },
585
+ {
586
+ "name": "EvalItemInputImage",
587
+ "kind": "struct",
588
+ "fields": [
589
+ {
590
+ "name": "type",
591
+ "type": {
592
+ "kind": "scalar",
593
+ "scalar": "string",
594
+ "const": "input_image"
595
+ },
596
+ "required": true,
597
+ "description": "The type of the image input. Always `input_image`.\n"
598
+ },
599
+ {
600
+ "name": "image_url",
601
+ "type": {
602
+ "kind": "scalar",
603
+ "scalar": "string",
604
+ "format": "uri"
605
+ },
606
+ "required": true,
607
+ "description": "The URL of the image input.\n"
608
+ },
609
+ {
610
+ "name": "detail",
611
+ "type": {
612
+ "kind": "scalar",
613
+ "scalar": "string"
614
+ },
615
+ "required": false,
616
+ "description": "The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.\n"
617
+ }
618
+ ],
619
+ "description": "An image input block used within EvalItem content arrays."
620
+ },
621
+ {
622
+ "name": "InputAudio",
623
+ "kind": "struct",
624
+ "fields": [
625
+ {
626
+ "name": "type",
627
+ "type": {
628
+ "kind": "scalar",
629
+ "scalar": "string",
630
+ "const": "input_audio"
631
+ },
632
+ "required": true,
633
+ "description": "The type of the input item. Always `input_audio`.\n"
634
+ },
635
+ {
636
+ "name": "input_audio",
637
+ "type": {
638
+ "kind": "ref",
639
+ "name": "InputAudioInputAudio"
640
+ },
641
+ "required": true
642
+ }
643
+ ],
644
+ "description": "An audio input to the model.\n"
645
+ },
646
+ {
647
+ "name": "InputAudioInputAudio",
648
+ "kind": "struct",
649
+ "fields": [
650
+ {
651
+ "name": "data",
652
+ "type": {
653
+ "kind": "scalar",
654
+ "scalar": "string"
655
+ },
656
+ "required": true,
657
+ "description": "Base64-encoded audio data.\n"
658
+ },
659
+ {
660
+ "name": "format",
661
+ "type": {
662
+ "kind": "ref",
663
+ "name": "InputAudioInputAudioFormat"
664
+ },
665
+ "required": true,
666
+ "description": "The format of the audio data. Currently supported formats are `mp3` and\n`wav`.\n"
667
+ }
668
+ ]
669
+ },
670
+ {
671
+ "name": "InputAudioInputAudioFormat",
672
+ "kind": "enum",
673
+ "base": "string",
674
+ "values": [
675
+ {
676
+ "value": "mp3"
677
+ },
678
+ {
679
+ "value": "wav"
680
+ }
681
+ ],
682
+ "description": "The format of the audio data. Currently supported formats are `mp3` and\n`wav`.\n"
683
+ },
684
+ {
685
+ "name": "EvalItemContentArray",
686
+ "kind": "alias",
687
+ "of": {
688
+ "kind": "array",
689
+ "items": {
690
+ "kind": "ref",
691
+ "name": "EvalItemContentItem"
692
+ }
693
+ }
694
+ },
695
+ {
696
+ "name": "EvalGraderStringCheck",
697
+ "kind": "alias",
698
+ "of": {
699
+ "kind": "ref",
700
+ "name": "GraderStringCheck"
701
+ }
702
+ },
703
+ {
704
+ "name": "GraderStringCheck",
705
+ "kind": "struct",
706
+ "fields": [
707
+ {
708
+ "name": "type",
709
+ "type": {
710
+ "kind": "scalar",
711
+ "scalar": "string",
712
+ "const": "string_check"
713
+ },
714
+ "required": true,
715
+ "description": "The object type, which is always `string_check`."
716
+ },
717
+ {
718
+ "name": "name",
719
+ "type": {
720
+ "kind": "scalar",
721
+ "scalar": "string"
722
+ },
723
+ "required": true,
724
+ "description": "The name of the grader."
725
+ },
726
+ {
727
+ "name": "input",
728
+ "type": {
729
+ "kind": "scalar",
730
+ "scalar": "string"
731
+ },
732
+ "required": true,
733
+ "description": "The input text. This may include template strings."
734
+ },
735
+ {
736
+ "name": "reference",
737
+ "type": {
738
+ "kind": "scalar",
739
+ "scalar": "string"
740
+ },
741
+ "required": true,
742
+ "description": "The reference text. This may include template strings."
743
+ },
744
+ {
745
+ "name": "operation",
746
+ "type": {
747
+ "kind": "ref",
748
+ "name": "GraderStringCheckOperation"
749
+ },
750
+ "required": true,
751
+ "description": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`."
752
+ }
753
+ ],
754
+ "description": "A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.\n"
755
+ },
756
+ {
757
+ "name": "GraderStringCheckOperation",
758
+ "kind": "enum",
759
+ "base": "string",
760
+ "values": [
761
+ {
762
+ "value": "eq"
763
+ },
764
+ {
765
+ "value": "ne"
766
+ },
767
+ {
768
+ "value": "like"
769
+ },
770
+ {
771
+ "value": "ilike"
772
+ }
773
+ ],
774
+ "description": "The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`."
775
+ },
776
+ {
777
+ "name": "EvalGraderTextSimilarity",
778
+ "kind": "struct",
779
+ "fields": [
780
+ {
781
+ "name": "type",
782
+ "type": {
783
+ "kind": "scalar",
784
+ "scalar": "string",
785
+ "const": "text_similarity"
786
+ },
787
+ "required": true,
788
+ "default": "text_similarity",
789
+ "description": "The type of grader."
790
+ },
791
+ {
792
+ "name": "name",
793
+ "type": {
794
+ "kind": "scalar",
795
+ "scalar": "string"
796
+ },
797
+ "required": true,
798
+ "description": "The name of the grader."
799
+ },
800
+ {
801
+ "name": "input",
802
+ "type": {
803
+ "kind": "scalar",
804
+ "scalar": "string"
805
+ },
806
+ "required": true,
807
+ "description": "The text being graded."
808
+ },
809
+ {
810
+ "name": "reference",
811
+ "type": {
812
+ "kind": "scalar",
813
+ "scalar": "string"
814
+ },
815
+ "required": true,
816
+ "description": "The text being graded against."
817
+ },
818
+ {
819
+ "name": "evaluation_metric",
820
+ "type": {
821
+ "kind": "ref",
822
+ "name": "EvalGraderTextSimilarityEvaluationMetric"
823
+ },
824
+ "required": true,
825
+ "description": "The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, \n`gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, \nor `rouge_l`.\n"
826
+ },
827
+ {
828
+ "name": "pass_threshold",
829
+ "type": {
830
+ "kind": "scalar",
831
+ "scalar": "number"
832
+ },
833
+ "required": true,
834
+ "description": "The threshold for the score."
835
+ }
836
+ ]
837
+ },
838
+ {
839
+ "name": "EvalGraderTextSimilarityEvaluationMetric",
840
+ "kind": "enum",
841
+ "base": "string",
842
+ "values": [
843
+ {
844
+ "value": "cosine"
845
+ },
846
+ {
847
+ "value": "fuzzy_match"
848
+ },
849
+ {
850
+ "value": "bleu"
851
+ },
852
+ {
853
+ "value": "gleu"
854
+ },
855
+ {
856
+ "value": "meteor"
857
+ },
858
+ {
859
+ "value": "rouge_1"
860
+ },
861
+ {
862
+ "value": "rouge_2"
863
+ },
864
+ {
865
+ "value": "rouge_3"
866
+ },
867
+ {
868
+ "value": "rouge_4"
869
+ },
870
+ {
871
+ "value": "rouge_5"
872
+ },
873
+ {
874
+ "value": "rouge_l"
875
+ }
876
+ ],
877
+ "description": "The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, \n`gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, \nor `rouge_l`.\n"
878
+ },
879
+ {
880
+ "name": "EvalGraderPython",
881
+ "kind": "struct",
882
+ "fields": [
883
+ {
884
+ "name": "type",
885
+ "type": {
886
+ "kind": "scalar",
887
+ "scalar": "string",
888
+ "const": "python"
889
+ },
890
+ "required": true,
891
+ "description": "The object type, which is always `python`."
892
+ },
893
+ {
894
+ "name": "name",
895
+ "type": {
896
+ "kind": "scalar",
897
+ "scalar": "string"
898
+ },
899
+ "required": true,
900
+ "description": "The name of the grader."
901
+ },
902
+ {
903
+ "name": "source",
904
+ "type": {
905
+ "kind": "scalar",
906
+ "scalar": "string"
907
+ },
908
+ "required": true,
909
+ "description": "The source code of the python script."
910
+ },
911
+ {
912
+ "name": "image_tag",
913
+ "type": {
914
+ "kind": "scalar",
915
+ "scalar": "string"
916
+ },
917
+ "required": false,
918
+ "description": "The image tag to use for the python script."
919
+ },
920
+ {
921
+ "name": "pass_threshold",
922
+ "type": {
923
+ "kind": "scalar",
924
+ "scalar": "number"
925
+ },
926
+ "required": false,
927
+ "description": "The threshold for the score."
928
+ }
929
+ ]
930
+ },
931
+ {
932
+ "name": "EvalGraderScoreModel",
933
+ "kind": "struct",
934
+ "fields": [
935
+ {
936
+ "name": "type",
937
+ "type": {
938
+ "kind": "scalar",
939
+ "scalar": "string",
940
+ "const": "score_model"
941
+ },
942
+ "required": true,
943
+ "description": "The object type, which is always `score_model`."
944
+ },
945
+ {
946
+ "name": "name",
947
+ "type": {
948
+ "kind": "scalar",
949
+ "scalar": "string"
950
+ },
951
+ "required": true,
952
+ "description": "The name of the grader."
953
+ },
954
+ {
955
+ "name": "model",
956
+ "type": {
957
+ "kind": "scalar",
958
+ "scalar": "string"
959
+ },
960
+ "required": true,
961
+ "description": "The model to use for the evaluation."
962
+ },
963
+ {
964
+ "name": "sampling_params",
965
+ "type": {
966
+ "kind": "ref",
967
+ "name": "EvalGraderScoreModelSamplingParams"
968
+ },
969
+ "required": false,
970
+ "description": "The sampling parameters for the model."
971
+ },
972
+ {
973
+ "name": "input",
974
+ "type": {
975
+ "kind": "array",
976
+ "items": {
977
+ "kind": "ref",
978
+ "name": "EvalItem"
979
+ }
980
+ },
981
+ "required": true,
982
+ "description": "The input messages evaluated by the grader. Supports text, output text, input image, and input audio content blocks, and may include template strings.\n"
983
+ },
984
+ {
985
+ "name": "range",
986
+ "type": {
987
+ "kind": "array",
988
+ "items": {
989
+ "kind": "scalar",
990
+ "scalar": "number"
991
+ }
992
+ },
993
+ "required": false,
994
+ "description": "The range of the score. Defaults to `[0, 1]`."
995
+ },
996
+ {
997
+ "name": "pass_threshold",
998
+ "type": {
999
+ "kind": "scalar",
1000
+ "scalar": "number"
1001
+ },
1002
+ "required": false,
1003
+ "description": "The threshold for the score."
1004
+ }
1005
+ ]
1006
+ },
1007
+ {
1008
+ "name": "EvalGraderScoreModelSamplingParams",
1009
+ "kind": "struct",
1010
+ "fields": [
1011
+ {
1012
+ "name": "seed",
1013
+ "type": {
1014
+ "kind": "scalar",
1015
+ "scalar": "integer",
1016
+ "nullable": true
1017
+ },
1018
+ "required": false
1019
+ },
1020
+ {
1021
+ "name": "top_p",
1022
+ "type": {
1023
+ "kind": "scalar",
1024
+ "scalar": "number",
1025
+ "nullable": true
1026
+ },
1027
+ "required": false
1028
+ },
1029
+ {
1030
+ "name": "temperature",
1031
+ "type": {
1032
+ "kind": "scalar",
1033
+ "scalar": "number",
1034
+ "nullable": true
1035
+ },
1036
+ "required": false
1037
+ },
1038
+ {
1039
+ "name": "max_completions_tokens",
1040
+ "type": {
1041
+ "kind": "scalar",
1042
+ "scalar": "integer",
1043
+ "nullable": true
1044
+ },
1045
+ "required": false
1046
+ },
1047
+ {
1048
+ "name": "reasoning_effort",
1049
+ "type": {
1050
+ "kind": "ref",
1051
+ "name": "ReasoningEffort"
1052
+ },
1053
+ "required": false
1054
+ }
1055
+ ],
1056
+ "description": "The sampling parameters for the model."
1057
+ },
1058
+ {
1059
+ "name": "ReasoningEffort",
1060
+ "kind": "enum",
1061
+ "base": "string",
1062
+ "values": [
1063
+ {
1064
+ "value": "none"
1065
+ },
1066
+ {
1067
+ "value": "minimal"
1068
+ },
1069
+ {
1070
+ "value": "low"
1071
+ },
1072
+ {
1073
+ "value": "medium"
1074
+ },
1075
+ {
1076
+ "value": "high"
1077
+ },
1078
+ {
1079
+ "value": "xhigh"
1080
+ }
1081
+ ],
1082
+ "description": "Constrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n\n- `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.\n- All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.\n- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.\n- `xhigh` is supported for all models after `gpt-5.1-codex-max`.\n"
1083
+ }
1084
+ ],
1085
+ "resources": [
1086
+ {
1087
+ "name": "evals",
1088
+ "methods": [
1089
+ {
1090
+ "action": "list",
1091
+ "httpMethod": "get",
1092
+ "path": "/evals",
1093
+ "operationId": "listEvals",
1094
+ "description": "List evaluations for a project.\n",
1095
+ "queryParams": [
1096
+ {
1097
+ "name": "after",
1098
+ "type": {
1099
+ "kind": "scalar",
1100
+ "scalar": "string"
1101
+ },
1102
+ "required": false,
1103
+ "description": "Identifier for the last eval from the previous pagination request."
1104
+ },
1105
+ {
1106
+ "name": "limit",
1107
+ "type": {
1108
+ "kind": "scalar",
1109
+ "scalar": "integer"
1110
+ },
1111
+ "required": false,
1112
+ "description": "Number of evals to retrieve.",
1113
+ "default": 20
1114
+ },
1115
+ {
1116
+ "name": "order",
1117
+ "type": {
1118
+ "kind": "ref",
1119
+ "name": "EvalsListOrder"
1120
+ },
1121
+ "required": false,
1122
+ "description": "Sort order for evals by timestamp. Use `asc` for ascending order or `desc` for descending order.",
1123
+ "default": "asc"
1124
+ },
1125
+ {
1126
+ "name": "order_by",
1127
+ "type": {
1128
+ "kind": "ref",
1129
+ "name": "EvalsListOrderBy"
1130
+ },
1131
+ "required": false,
1132
+ "description": "Evals can be ordered by creation time or last updated time. Use\n`created_at` for creation time or `updated_at` for last updated time.\n",
1133
+ "default": "created_at"
1134
+ }
1135
+ ],
1136
+ "responses": [
1137
+ {
1138
+ "status": "200",
1139
+ "description": "A list of evals",
1140
+ "contentType": "application/json",
1141
+ "type": {
1142
+ "kind": "ref",
1143
+ "name": "EvalList"
1144
+ }
1145
+ }
1146
+ ],
1147
+ "primaryResponse": {
1148
+ "kind": "ref",
1149
+ "name": "EvalList"
1150
+ },
1151
+ "pagination": {
1152
+ "style": "cursor",
1153
+ "itemsField": "data",
1154
+ "nextField": "has_more",
1155
+ "itemType": {
1156
+ "kind": "ref",
1157
+ "name": "Eval"
1158
+ },
1159
+ "cursorParam": "after",
1160
+ "limitParam": "limit"
1161
+ }
1162
+ }
1163
+ ]
1164
+ }
1165
+ ],
1166
+ "sdk": {
1167
+ "retry": {
1168
+ "maxRetries": 2,
1169
+ "retryableStatusCodes": [
1170
+ 408,
1171
+ 429,
1172
+ 500,
1173
+ 502,
1174
+ 503,
1175
+ 504
1176
+ ],
1177
+ "retryConnectionErrors": true,
1178
+ "honorRetryAfterHeader": true,
1179
+ "backoff": {
1180
+ "initialDelayMs": 500,
1181
+ "maxDelayMs": 8000,
1182
+ "multiplier": 2,
1183
+ "jitter": 0.25
1184
+ }
1185
+ },
1186
+ "timeout": {
1187
+ "defaultTimeoutMs": 60000
1188
+ },
1189
+ "errors": {
1190
+ "statusCodeMap": {
1191
+ "400": "BadRequest",
1192
+ "401": "Unauthorized",
1193
+ "403": "PermissionDenied",
1194
+ "404": "NotFound",
1195
+ "409": "Conflict",
1196
+ "422": "UnprocessableEntity",
1197
+ "429": "RateLimited"
1198
+ },
1199
+ "clientErrorKind": "API",
1200
+ "serverErrorKind": "Internal"
1201
+ },
1202
+ "userAgent": {
1203
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1204
+ "includeRuntimeVersion": false,
1205
+ "aiAgentEnvVars": {
1206
+ "CLAUDE_CODE": "claude-code",
1207
+ "CURSOR_AGENT": "cursor",
1208
+ "CLINE_ACTIVE": "cline",
1209
+ "WINDSURF_ACTIVE": "windsurf",
1210
+ "COPILOT_AGENT": "copilot"
1211
+ }
1212
+ },
1213
+ "telemetry": {
1214
+ "requestIdHeader": "X-Request-ID",
1215
+ "headerName": "X-Client-Telemetry",
1216
+ "enabledByDefault": false
1217
+ },
1218
+ "logging": {
1219
+ "events": [
1220
+ "request.start",
1221
+ "request.success",
1222
+ "request.retry",
1223
+ "request.rate_limited",
1224
+ "request.error",
1225
+ "request.connection_error"
1226
+ ]
1227
+ },
1228
+ "idempotency": {
1229
+ "headerName": "Idempotency-Key",
1230
+ "autoGenerateForPost": true
1231
+ },
1232
+ "pagination": {
1233
+ "autoPageDelayMs": 0
1234
+ },
1235
+ "requestGuard": {
1236
+ "optionKeys": [
1237
+ "api_key",
1238
+ "apiKey",
1239
+ "idempotency_key",
1240
+ "idempotencyKey",
1241
+ "extra_headers",
1242
+ "extraHeaders",
1243
+ "max_retries",
1244
+ "maxRetries",
1245
+ "base_url",
1246
+ "baseUrl",
1247
+ "timeout"
1248
+ ]
1249
+ }
1250
+ }
1251
+ }