@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,1218 @@
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": "OrderEnum",
29
+ "kind": "enum",
30
+ "base": "string",
31
+ "values": [
32
+ {
33
+ "value": "asc"
34
+ },
35
+ {
36
+ "value": "desc"
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "name": "ThreadItemListResource",
42
+ "kind": "struct",
43
+ "fields": [
44
+ {
45
+ "name": "object",
46
+ "type": {
47
+ "kind": "scalar",
48
+ "scalar": "string",
49
+ "const": "list"
50
+ },
51
+ "required": true,
52
+ "default": "list",
53
+ "description": "The type of object returned, must be `list`."
54
+ },
55
+ {
56
+ "name": "data",
57
+ "type": {
58
+ "kind": "array",
59
+ "items": {
60
+ "kind": "ref",
61
+ "name": "ThreadItem"
62
+ }
63
+ },
64
+ "required": true,
65
+ "description": "A list of items"
66
+ },
67
+ {
68
+ "name": "first_id",
69
+ "type": {
70
+ "kind": "scalar",
71
+ "scalar": "string",
72
+ "nullable": true
73
+ },
74
+ "required": true
75
+ },
76
+ {
77
+ "name": "last_id",
78
+ "type": {
79
+ "kind": "scalar",
80
+ "scalar": "string",
81
+ "nullable": true
82
+ },
83
+ "required": true
84
+ },
85
+ {
86
+ "name": "has_more",
87
+ "type": {
88
+ "kind": "scalar",
89
+ "scalar": "boolean"
90
+ },
91
+ "required": true,
92
+ "description": "Whether there are more items available."
93
+ }
94
+ ],
95
+ "description": "A paginated list of thread items rendered for the ChatKit API."
96
+ },
97
+ {
98
+ "name": "ThreadItem",
99
+ "kind": "union",
100
+ "semantics": "oneOf",
101
+ "variants": [
102
+ {
103
+ "kind": "ref",
104
+ "name": "UserMessageItem"
105
+ },
106
+ {
107
+ "kind": "ref",
108
+ "name": "AssistantMessageItem"
109
+ },
110
+ {
111
+ "kind": "ref",
112
+ "name": "WidgetMessageItem"
113
+ },
114
+ {
115
+ "kind": "ref",
116
+ "name": "ClientToolCallItem"
117
+ },
118
+ {
119
+ "kind": "ref",
120
+ "name": "TaskItem"
121
+ },
122
+ {
123
+ "kind": "ref",
124
+ "name": "TaskGroupItem"
125
+ }
126
+ ],
127
+ "discriminator": {
128
+ "propertyName": "type",
129
+ "mapping": {
130
+ "chatkit.user_message": "UserMessageItem",
131
+ "chatkit.assistant_message": "AssistantMessageItem",
132
+ "chatkit.widget": "WidgetMessageItem",
133
+ "chatkit.client_tool_call": "ClientToolCallItem",
134
+ "chatkit.task": "TaskItem",
135
+ "chatkit.task_group": "TaskGroupItem"
136
+ }
137
+ }
138
+ },
139
+ {
140
+ "name": "UserMessageItem",
141
+ "kind": "struct",
142
+ "fields": [
143
+ {
144
+ "name": "id",
145
+ "type": {
146
+ "kind": "scalar",
147
+ "scalar": "string"
148
+ },
149
+ "required": true,
150
+ "description": "Identifier of the thread item."
151
+ },
152
+ {
153
+ "name": "object",
154
+ "type": {
155
+ "kind": "scalar",
156
+ "scalar": "string",
157
+ "const": "chatkit.thread_item"
158
+ },
159
+ "required": true,
160
+ "default": "chatkit.thread_item",
161
+ "description": "Type discriminator that is always `chatkit.thread_item`."
162
+ },
163
+ {
164
+ "name": "created_at",
165
+ "type": {
166
+ "kind": "scalar",
167
+ "scalar": "integer",
168
+ "format": "unixtime"
169
+ },
170
+ "required": true,
171
+ "description": "Unix timestamp (in seconds) for when the item was created."
172
+ },
173
+ {
174
+ "name": "thread_id",
175
+ "type": {
176
+ "kind": "scalar",
177
+ "scalar": "string"
178
+ },
179
+ "required": true,
180
+ "description": "Identifier of the parent thread."
181
+ },
182
+ {
183
+ "name": "type",
184
+ "type": {
185
+ "kind": "scalar",
186
+ "scalar": "string",
187
+ "const": "chatkit.user_message"
188
+ },
189
+ "required": true,
190
+ "default": "chatkit.user_message"
191
+ },
192
+ {
193
+ "name": "content",
194
+ "type": {
195
+ "kind": "array",
196
+ "items": {
197
+ "kind": "ref",
198
+ "name": "UserMessageItemContentItem"
199
+ }
200
+ },
201
+ "required": true,
202
+ "description": "Ordered content elements supplied by the user."
203
+ },
204
+ {
205
+ "name": "attachments",
206
+ "type": {
207
+ "kind": "array",
208
+ "items": {
209
+ "kind": "ref",
210
+ "name": "Attachment"
211
+ }
212
+ },
213
+ "required": true,
214
+ "description": "Attachments associated with the user message. Defaults to an empty list."
215
+ },
216
+ {
217
+ "name": "inference_options",
218
+ "type": {
219
+ "kind": "ref",
220
+ "name": "InferenceOptions",
221
+ "nullable": true
222
+ },
223
+ "required": true
224
+ }
225
+ ],
226
+ "description": "User-authored messages within a thread."
227
+ },
228
+ {
229
+ "name": "UserMessageItemContentItem",
230
+ "kind": "union",
231
+ "semantics": "oneOf",
232
+ "variants": [
233
+ {
234
+ "kind": "ref",
235
+ "name": "UserMessageInputText"
236
+ },
237
+ {
238
+ "kind": "ref",
239
+ "name": "UserMessageQuotedText"
240
+ }
241
+ ],
242
+ "discriminator": {
243
+ "propertyName": "type",
244
+ "mapping": {
245
+ "input_text": "UserMessageInputText",
246
+ "quoted_text": "UserMessageQuotedText"
247
+ }
248
+ },
249
+ "description": "Content blocks that comprise a user message."
250
+ },
251
+ {
252
+ "name": "UserMessageInputText",
253
+ "kind": "struct",
254
+ "fields": [
255
+ {
256
+ "name": "type",
257
+ "type": {
258
+ "kind": "scalar",
259
+ "scalar": "string",
260
+ "const": "input_text"
261
+ },
262
+ "required": true,
263
+ "default": "input_text",
264
+ "description": "Type discriminator that is always `input_text`."
265
+ },
266
+ {
267
+ "name": "text",
268
+ "type": {
269
+ "kind": "scalar",
270
+ "scalar": "string"
271
+ },
272
+ "required": true,
273
+ "description": "Plain-text content supplied by the user."
274
+ }
275
+ ],
276
+ "description": "Text block that a user contributed to the thread."
277
+ },
278
+ {
279
+ "name": "UserMessageQuotedText",
280
+ "kind": "struct",
281
+ "fields": [
282
+ {
283
+ "name": "type",
284
+ "type": {
285
+ "kind": "scalar",
286
+ "scalar": "string",
287
+ "const": "quoted_text"
288
+ },
289
+ "required": true,
290
+ "default": "quoted_text",
291
+ "description": "Type discriminator that is always `quoted_text`."
292
+ },
293
+ {
294
+ "name": "text",
295
+ "type": {
296
+ "kind": "scalar",
297
+ "scalar": "string"
298
+ },
299
+ "required": true,
300
+ "description": "Quoted text content."
301
+ }
302
+ ],
303
+ "description": "Quoted snippet that the user referenced in their message."
304
+ },
305
+ {
306
+ "name": "Attachment",
307
+ "kind": "struct",
308
+ "fields": [
309
+ {
310
+ "name": "type",
311
+ "type": {
312
+ "kind": "ref",
313
+ "name": "AttachmentType"
314
+ },
315
+ "required": true
316
+ },
317
+ {
318
+ "name": "id",
319
+ "type": {
320
+ "kind": "scalar",
321
+ "scalar": "string"
322
+ },
323
+ "required": true,
324
+ "description": "Identifier for the attachment."
325
+ },
326
+ {
327
+ "name": "name",
328
+ "type": {
329
+ "kind": "scalar",
330
+ "scalar": "string"
331
+ },
332
+ "required": true,
333
+ "description": "Original display name for the attachment."
334
+ },
335
+ {
336
+ "name": "mime_type",
337
+ "type": {
338
+ "kind": "scalar",
339
+ "scalar": "string"
340
+ },
341
+ "required": true,
342
+ "description": "MIME type of the attachment."
343
+ },
344
+ {
345
+ "name": "preview_url",
346
+ "type": {
347
+ "kind": "scalar",
348
+ "scalar": "string",
349
+ "format": "uri",
350
+ "nullable": true
351
+ },
352
+ "required": true
353
+ }
354
+ ],
355
+ "description": "Attachment metadata included on thread items."
356
+ },
357
+ {
358
+ "name": "AttachmentType",
359
+ "kind": "enum",
360
+ "base": "string",
361
+ "values": [
362
+ {
363
+ "value": "image"
364
+ },
365
+ {
366
+ "value": "file"
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "name": "InferenceOptions",
372
+ "kind": "struct",
373
+ "fields": [
374
+ {
375
+ "name": "tool_choice",
376
+ "type": {
377
+ "kind": "ref",
378
+ "name": "ToolChoice",
379
+ "nullable": true
380
+ },
381
+ "required": true
382
+ },
383
+ {
384
+ "name": "model",
385
+ "type": {
386
+ "kind": "scalar",
387
+ "scalar": "string",
388
+ "nullable": true
389
+ },
390
+ "required": true
391
+ }
392
+ ],
393
+ "description": "Model and tool overrides applied when generating the assistant response."
394
+ },
395
+ {
396
+ "name": "ToolChoice",
397
+ "kind": "struct",
398
+ "fields": [
399
+ {
400
+ "name": "id",
401
+ "type": {
402
+ "kind": "scalar",
403
+ "scalar": "string"
404
+ },
405
+ "required": true,
406
+ "description": "Identifier of the requested tool."
407
+ }
408
+ ],
409
+ "description": "Tool selection that the assistant should honor when executing the item."
410
+ },
411
+ {
412
+ "name": "AssistantMessageItem",
413
+ "kind": "struct",
414
+ "fields": [
415
+ {
416
+ "name": "id",
417
+ "type": {
418
+ "kind": "scalar",
419
+ "scalar": "string"
420
+ },
421
+ "required": true,
422
+ "description": "Identifier of the thread item."
423
+ },
424
+ {
425
+ "name": "object",
426
+ "type": {
427
+ "kind": "scalar",
428
+ "scalar": "string",
429
+ "const": "chatkit.thread_item"
430
+ },
431
+ "required": true,
432
+ "default": "chatkit.thread_item",
433
+ "description": "Type discriminator that is always `chatkit.thread_item`."
434
+ },
435
+ {
436
+ "name": "created_at",
437
+ "type": {
438
+ "kind": "scalar",
439
+ "scalar": "integer",
440
+ "format": "unixtime"
441
+ },
442
+ "required": true,
443
+ "description": "Unix timestamp (in seconds) for when the item was created."
444
+ },
445
+ {
446
+ "name": "thread_id",
447
+ "type": {
448
+ "kind": "scalar",
449
+ "scalar": "string"
450
+ },
451
+ "required": true,
452
+ "description": "Identifier of the parent thread."
453
+ },
454
+ {
455
+ "name": "type",
456
+ "type": {
457
+ "kind": "scalar",
458
+ "scalar": "string",
459
+ "const": "chatkit.assistant_message"
460
+ },
461
+ "required": true,
462
+ "default": "chatkit.assistant_message",
463
+ "description": "Type discriminator that is always `chatkit.assistant_message`."
464
+ },
465
+ {
466
+ "name": "content",
467
+ "type": {
468
+ "kind": "array",
469
+ "items": {
470
+ "kind": "ref",
471
+ "name": "ResponseOutputText"
472
+ }
473
+ },
474
+ "required": true,
475
+ "description": "Ordered assistant response segments."
476
+ }
477
+ ],
478
+ "description": "Assistant-authored message within a thread."
479
+ },
480
+ {
481
+ "name": "ResponseOutputText",
482
+ "kind": "struct",
483
+ "fields": [
484
+ {
485
+ "name": "type",
486
+ "type": {
487
+ "kind": "scalar",
488
+ "scalar": "string",
489
+ "const": "output_text"
490
+ },
491
+ "required": true,
492
+ "default": "output_text",
493
+ "description": "Type discriminator that is always `output_text`."
494
+ },
495
+ {
496
+ "name": "text",
497
+ "type": {
498
+ "kind": "scalar",
499
+ "scalar": "string"
500
+ },
501
+ "required": true,
502
+ "description": "Assistant generated text."
503
+ },
504
+ {
505
+ "name": "annotations",
506
+ "type": {
507
+ "kind": "array",
508
+ "items": {
509
+ "kind": "ref",
510
+ "name": "ResponseOutputTextAnnotationsItem"
511
+ }
512
+ },
513
+ "required": true,
514
+ "description": "Ordered list of annotations attached to the response text."
515
+ }
516
+ ],
517
+ "description": "Assistant response text accompanied by optional annotations."
518
+ },
519
+ {
520
+ "name": "ResponseOutputTextAnnotationsItem",
521
+ "kind": "union",
522
+ "semantics": "oneOf",
523
+ "variants": [
524
+ {
525
+ "kind": "ref",
526
+ "name": "FileAnnotation"
527
+ },
528
+ {
529
+ "kind": "ref",
530
+ "name": "UrlAnnotation"
531
+ }
532
+ ],
533
+ "discriminator": {
534
+ "propertyName": "type",
535
+ "mapping": {
536
+ "file": "FileAnnotation",
537
+ "url": "UrlAnnotation"
538
+ }
539
+ },
540
+ "description": "Annotation object describing a cited source."
541
+ },
542
+ {
543
+ "name": "FileAnnotation",
544
+ "kind": "struct",
545
+ "fields": [
546
+ {
547
+ "name": "type",
548
+ "type": {
549
+ "kind": "scalar",
550
+ "scalar": "string",
551
+ "const": "file"
552
+ },
553
+ "required": true,
554
+ "default": "file",
555
+ "description": "Type discriminator that is always `file` for this annotation."
556
+ },
557
+ {
558
+ "name": "source",
559
+ "type": {
560
+ "kind": "ref",
561
+ "name": "FileAnnotationSource"
562
+ },
563
+ "required": true
564
+ }
565
+ ],
566
+ "description": "Annotation that references an uploaded file."
567
+ },
568
+ {
569
+ "name": "FileAnnotationSource",
570
+ "kind": "struct",
571
+ "fields": [
572
+ {
573
+ "name": "type",
574
+ "type": {
575
+ "kind": "scalar",
576
+ "scalar": "string",
577
+ "const": "file"
578
+ },
579
+ "required": true,
580
+ "default": "file",
581
+ "description": "Type discriminator that is always `file`."
582
+ },
583
+ {
584
+ "name": "filename",
585
+ "type": {
586
+ "kind": "scalar",
587
+ "scalar": "string"
588
+ },
589
+ "required": true,
590
+ "description": "Filename referenced by the annotation."
591
+ }
592
+ ],
593
+ "description": "Attachment source referenced by an annotation."
594
+ },
595
+ {
596
+ "name": "UrlAnnotation",
597
+ "kind": "struct",
598
+ "fields": [
599
+ {
600
+ "name": "type",
601
+ "type": {
602
+ "kind": "scalar",
603
+ "scalar": "string",
604
+ "const": "url"
605
+ },
606
+ "required": true,
607
+ "default": "url",
608
+ "description": "Type discriminator that is always `url` for this annotation."
609
+ },
610
+ {
611
+ "name": "source",
612
+ "type": {
613
+ "kind": "ref",
614
+ "name": "UrlAnnotationSource"
615
+ },
616
+ "required": true
617
+ }
618
+ ],
619
+ "description": "Annotation that references a URL."
620
+ },
621
+ {
622
+ "name": "UrlAnnotationSource",
623
+ "kind": "struct",
624
+ "fields": [
625
+ {
626
+ "name": "type",
627
+ "type": {
628
+ "kind": "scalar",
629
+ "scalar": "string",
630
+ "const": "url"
631
+ },
632
+ "required": true,
633
+ "default": "url",
634
+ "description": "Type discriminator that is always `url`."
635
+ },
636
+ {
637
+ "name": "url",
638
+ "type": {
639
+ "kind": "scalar",
640
+ "scalar": "string",
641
+ "format": "uri"
642
+ },
643
+ "required": true,
644
+ "description": "URL referenced by the annotation."
645
+ }
646
+ ],
647
+ "description": "URL backing an annotation entry."
648
+ },
649
+ {
650
+ "name": "WidgetMessageItem",
651
+ "kind": "struct",
652
+ "fields": [
653
+ {
654
+ "name": "id",
655
+ "type": {
656
+ "kind": "scalar",
657
+ "scalar": "string"
658
+ },
659
+ "required": true,
660
+ "description": "Identifier of the thread item."
661
+ },
662
+ {
663
+ "name": "object",
664
+ "type": {
665
+ "kind": "scalar",
666
+ "scalar": "string",
667
+ "const": "chatkit.thread_item"
668
+ },
669
+ "required": true,
670
+ "default": "chatkit.thread_item",
671
+ "description": "Type discriminator that is always `chatkit.thread_item`."
672
+ },
673
+ {
674
+ "name": "created_at",
675
+ "type": {
676
+ "kind": "scalar",
677
+ "scalar": "integer",
678
+ "format": "unixtime"
679
+ },
680
+ "required": true,
681
+ "description": "Unix timestamp (in seconds) for when the item was created."
682
+ },
683
+ {
684
+ "name": "thread_id",
685
+ "type": {
686
+ "kind": "scalar",
687
+ "scalar": "string"
688
+ },
689
+ "required": true,
690
+ "description": "Identifier of the parent thread."
691
+ },
692
+ {
693
+ "name": "type",
694
+ "type": {
695
+ "kind": "scalar",
696
+ "scalar": "string",
697
+ "const": "chatkit.widget"
698
+ },
699
+ "required": true,
700
+ "default": "chatkit.widget",
701
+ "description": "Type discriminator that is always `chatkit.widget`."
702
+ },
703
+ {
704
+ "name": "widget",
705
+ "type": {
706
+ "kind": "scalar",
707
+ "scalar": "string"
708
+ },
709
+ "required": true,
710
+ "description": "Serialized widget payload rendered in the UI."
711
+ }
712
+ ],
713
+ "description": "Thread item that renders a widget payload."
714
+ },
715
+ {
716
+ "name": "ClientToolCallItem",
717
+ "kind": "struct",
718
+ "fields": [
719
+ {
720
+ "name": "id",
721
+ "type": {
722
+ "kind": "scalar",
723
+ "scalar": "string"
724
+ },
725
+ "required": true,
726
+ "description": "Identifier of the thread item."
727
+ },
728
+ {
729
+ "name": "object",
730
+ "type": {
731
+ "kind": "scalar",
732
+ "scalar": "string",
733
+ "const": "chatkit.thread_item"
734
+ },
735
+ "required": true,
736
+ "default": "chatkit.thread_item",
737
+ "description": "Type discriminator that is always `chatkit.thread_item`."
738
+ },
739
+ {
740
+ "name": "created_at",
741
+ "type": {
742
+ "kind": "scalar",
743
+ "scalar": "integer",
744
+ "format": "unixtime"
745
+ },
746
+ "required": true,
747
+ "description": "Unix timestamp (in seconds) for when the item was created."
748
+ },
749
+ {
750
+ "name": "thread_id",
751
+ "type": {
752
+ "kind": "scalar",
753
+ "scalar": "string"
754
+ },
755
+ "required": true,
756
+ "description": "Identifier of the parent thread."
757
+ },
758
+ {
759
+ "name": "type",
760
+ "type": {
761
+ "kind": "scalar",
762
+ "scalar": "string",
763
+ "const": "chatkit.client_tool_call"
764
+ },
765
+ "required": true,
766
+ "default": "chatkit.client_tool_call",
767
+ "description": "Type discriminator that is always `chatkit.client_tool_call`."
768
+ },
769
+ {
770
+ "name": "status",
771
+ "type": {
772
+ "kind": "ref",
773
+ "name": "ClientToolCallStatus"
774
+ },
775
+ "required": true
776
+ },
777
+ {
778
+ "name": "call_id",
779
+ "type": {
780
+ "kind": "scalar",
781
+ "scalar": "string"
782
+ },
783
+ "required": true,
784
+ "description": "Identifier for the client tool call."
785
+ },
786
+ {
787
+ "name": "name",
788
+ "type": {
789
+ "kind": "scalar",
790
+ "scalar": "string"
791
+ },
792
+ "required": true,
793
+ "description": "Tool name that was invoked."
794
+ },
795
+ {
796
+ "name": "arguments",
797
+ "type": {
798
+ "kind": "scalar",
799
+ "scalar": "string"
800
+ },
801
+ "required": true,
802
+ "description": "JSON-encoded arguments that were sent to the tool."
803
+ },
804
+ {
805
+ "name": "output",
806
+ "type": {
807
+ "kind": "scalar",
808
+ "scalar": "string",
809
+ "nullable": true
810
+ },
811
+ "required": true
812
+ }
813
+ ],
814
+ "description": "Record of a client side tool invocation initiated by the assistant."
815
+ },
816
+ {
817
+ "name": "ClientToolCallStatus",
818
+ "kind": "enum",
819
+ "base": "string",
820
+ "values": [
821
+ {
822
+ "value": "in_progress"
823
+ },
824
+ {
825
+ "value": "completed"
826
+ }
827
+ ]
828
+ },
829
+ {
830
+ "name": "TaskItem",
831
+ "kind": "struct",
832
+ "fields": [
833
+ {
834
+ "name": "id",
835
+ "type": {
836
+ "kind": "scalar",
837
+ "scalar": "string"
838
+ },
839
+ "required": true,
840
+ "description": "Identifier of the thread item."
841
+ },
842
+ {
843
+ "name": "object",
844
+ "type": {
845
+ "kind": "scalar",
846
+ "scalar": "string",
847
+ "const": "chatkit.thread_item"
848
+ },
849
+ "required": true,
850
+ "default": "chatkit.thread_item",
851
+ "description": "Type discriminator that is always `chatkit.thread_item`."
852
+ },
853
+ {
854
+ "name": "created_at",
855
+ "type": {
856
+ "kind": "scalar",
857
+ "scalar": "integer",
858
+ "format": "unixtime"
859
+ },
860
+ "required": true,
861
+ "description": "Unix timestamp (in seconds) for when the item was created."
862
+ },
863
+ {
864
+ "name": "thread_id",
865
+ "type": {
866
+ "kind": "scalar",
867
+ "scalar": "string"
868
+ },
869
+ "required": true,
870
+ "description": "Identifier of the parent thread."
871
+ },
872
+ {
873
+ "name": "type",
874
+ "type": {
875
+ "kind": "scalar",
876
+ "scalar": "string",
877
+ "const": "chatkit.task"
878
+ },
879
+ "required": true,
880
+ "default": "chatkit.task",
881
+ "description": "Type discriminator that is always `chatkit.task`."
882
+ },
883
+ {
884
+ "name": "task_type",
885
+ "type": {
886
+ "kind": "ref",
887
+ "name": "TaskType"
888
+ },
889
+ "required": true
890
+ },
891
+ {
892
+ "name": "heading",
893
+ "type": {
894
+ "kind": "scalar",
895
+ "scalar": "string",
896
+ "nullable": true
897
+ },
898
+ "required": true
899
+ },
900
+ {
901
+ "name": "summary",
902
+ "type": {
903
+ "kind": "scalar",
904
+ "scalar": "string",
905
+ "nullable": true
906
+ },
907
+ "required": true
908
+ }
909
+ ],
910
+ "description": "Task emitted by the workflow to show progress and status updates."
911
+ },
912
+ {
913
+ "name": "TaskType",
914
+ "kind": "enum",
915
+ "base": "string",
916
+ "values": [
917
+ {
918
+ "value": "custom"
919
+ },
920
+ {
921
+ "value": "thought"
922
+ }
923
+ ]
924
+ },
925
+ {
926
+ "name": "TaskGroupItem",
927
+ "kind": "struct",
928
+ "fields": [
929
+ {
930
+ "name": "id",
931
+ "type": {
932
+ "kind": "scalar",
933
+ "scalar": "string"
934
+ },
935
+ "required": true,
936
+ "description": "Identifier of the thread item."
937
+ },
938
+ {
939
+ "name": "object",
940
+ "type": {
941
+ "kind": "scalar",
942
+ "scalar": "string",
943
+ "const": "chatkit.thread_item"
944
+ },
945
+ "required": true,
946
+ "default": "chatkit.thread_item",
947
+ "description": "Type discriminator that is always `chatkit.thread_item`."
948
+ },
949
+ {
950
+ "name": "created_at",
951
+ "type": {
952
+ "kind": "scalar",
953
+ "scalar": "integer",
954
+ "format": "unixtime"
955
+ },
956
+ "required": true,
957
+ "description": "Unix timestamp (in seconds) for when the item was created."
958
+ },
959
+ {
960
+ "name": "thread_id",
961
+ "type": {
962
+ "kind": "scalar",
963
+ "scalar": "string"
964
+ },
965
+ "required": true,
966
+ "description": "Identifier of the parent thread."
967
+ },
968
+ {
969
+ "name": "type",
970
+ "type": {
971
+ "kind": "scalar",
972
+ "scalar": "string",
973
+ "const": "chatkit.task_group"
974
+ },
975
+ "required": true,
976
+ "default": "chatkit.task_group",
977
+ "description": "Type discriminator that is always `chatkit.task_group`."
978
+ },
979
+ {
980
+ "name": "tasks",
981
+ "type": {
982
+ "kind": "array",
983
+ "items": {
984
+ "kind": "ref",
985
+ "name": "TaskGroupTask"
986
+ }
987
+ },
988
+ "required": true,
989
+ "description": "Tasks included in the group."
990
+ }
991
+ ],
992
+ "description": "Collection of workflow tasks grouped together in the thread."
993
+ },
994
+ {
995
+ "name": "TaskGroupTask",
996
+ "kind": "struct",
997
+ "fields": [
998
+ {
999
+ "name": "type",
1000
+ "type": {
1001
+ "kind": "ref",
1002
+ "name": "TaskType"
1003
+ },
1004
+ "required": true
1005
+ },
1006
+ {
1007
+ "name": "heading",
1008
+ "type": {
1009
+ "kind": "scalar",
1010
+ "scalar": "string",
1011
+ "nullable": true
1012
+ },
1013
+ "required": true
1014
+ },
1015
+ {
1016
+ "name": "summary",
1017
+ "type": {
1018
+ "kind": "scalar",
1019
+ "scalar": "string",
1020
+ "nullable": true
1021
+ },
1022
+ "required": true
1023
+ }
1024
+ ],
1025
+ "description": "Task entry that appears within a TaskGroup."
1026
+ }
1027
+ ],
1028
+ "resources": [
1029
+ {
1030
+ "name": "beta",
1031
+ "resources": [
1032
+ {
1033
+ "name": "chat-kit",
1034
+ "resources": [
1035
+ {
1036
+ "name": "threads",
1037
+ "resources": [
1038
+ {
1039
+ "name": "items",
1040
+ "methods": [
1041
+ {
1042
+ "action": "list",
1043
+ "httpMethod": "get",
1044
+ "path": "/chatkit/threads/{thread_id}/items",
1045
+ "operationId": "ListThreadItemsMethod",
1046
+ "description": "List items that belong to a ChatKit thread.",
1047
+ "pathParams": [
1048
+ {
1049
+ "name": "thread_id",
1050
+ "type": {
1051
+ "kind": "scalar",
1052
+ "scalar": "string"
1053
+ },
1054
+ "required": true,
1055
+ "description": "Identifier of the ChatKit thread whose items are requested.",
1056
+ "example": "cthr_123"
1057
+ }
1058
+ ],
1059
+ "queryParams": [
1060
+ {
1061
+ "name": "limit",
1062
+ "type": {
1063
+ "kind": "scalar",
1064
+ "scalar": "integer"
1065
+ },
1066
+ "required": false,
1067
+ "description": "Maximum number of thread items to return. Defaults to 20."
1068
+ },
1069
+ {
1070
+ "name": "order",
1071
+ "type": {
1072
+ "kind": "ref",
1073
+ "name": "OrderEnum"
1074
+ },
1075
+ "required": false,
1076
+ "description": "Sort order for results by creation time. Defaults to `desc`."
1077
+ },
1078
+ {
1079
+ "name": "after",
1080
+ "type": {
1081
+ "kind": "scalar",
1082
+ "scalar": "string"
1083
+ },
1084
+ "required": false,
1085
+ "description": "List items created after this thread item ID. Defaults to null for the first page."
1086
+ },
1087
+ {
1088
+ "name": "before",
1089
+ "type": {
1090
+ "kind": "scalar",
1091
+ "scalar": "string"
1092
+ },
1093
+ "required": false,
1094
+ "description": "List items created before this thread item ID. Defaults to null for the newest results."
1095
+ }
1096
+ ],
1097
+ "responses": [
1098
+ {
1099
+ "status": "200",
1100
+ "description": "Success",
1101
+ "contentType": "application/json",
1102
+ "type": {
1103
+ "kind": "ref",
1104
+ "name": "ThreadItemListResource"
1105
+ }
1106
+ }
1107
+ ],
1108
+ "primaryResponse": {
1109
+ "kind": "ref",
1110
+ "name": "ThreadItemListResource"
1111
+ },
1112
+ "pagination": {
1113
+ "style": "cursor",
1114
+ "itemsField": "data",
1115
+ "nextField": "has_more",
1116
+ "itemType": {
1117
+ "kind": "ref",
1118
+ "name": "ThreadItem"
1119
+ },
1120
+ "cursorParam": "after",
1121
+ "limitParam": "limit"
1122
+ }
1123
+ }
1124
+ ]
1125
+ }
1126
+ ]
1127
+ }
1128
+ ]
1129
+ }
1130
+ ]
1131
+ }
1132
+ ],
1133
+ "sdk": {
1134
+ "retry": {
1135
+ "maxRetries": 2,
1136
+ "retryableStatusCodes": [
1137
+ 408,
1138
+ 429,
1139
+ 500,
1140
+ 502,
1141
+ 503,
1142
+ 504
1143
+ ],
1144
+ "retryConnectionErrors": true,
1145
+ "honorRetryAfterHeader": true,
1146
+ "backoff": {
1147
+ "initialDelayMs": 500,
1148
+ "maxDelayMs": 8000,
1149
+ "multiplier": 2,
1150
+ "jitter": 0.25
1151
+ }
1152
+ },
1153
+ "timeout": {
1154
+ "defaultTimeoutMs": 60000
1155
+ },
1156
+ "errors": {
1157
+ "statusCodeMap": {
1158
+ "400": "BadRequest",
1159
+ "401": "Unauthorized",
1160
+ "403": "PermissionDenied",
1161
+ "404": "NotFound",
1162
+ "409": "Conflict",
1163
+ "422": "UnprocessableEntity",
1164
+ "429": "RateLimited"
1165
+ },
1166
+ "clientErrorKind": "API",
1167
+ "serverErrorKind": "Internal"
1168
+ },
1169
+ "userAgent": {
1170
+ "sdkIdentifierTemplate": "{package}-{language}/{version}",
1171
+ "includeRuntimeVersion": false,
1172
+ "aiAgentEnvVars": {
1173
+ "CLAUDE_CODE": "claude-code",
1174
+ "CURSOR_AGENT": "cursor",
1175
+ "CLINE_ACTIVE": "cline",
1176
+ "WINDSURF_ACTIVE": "windsurf",
1177
+ "COPILOT_AGENT": "copilot"
1178
+ }
1179
+ },
1180
+ "telemetry": {
1181
+ "requestIdHeader": "X-Request-ID",
1182
+ "headerName": "X-Client-Telemetry",
1183
+ "enabledByDefault": false
1184
+ },
1185
+ "logging": {
1186
+ "events": [
1187
+ "request.start",
1188
+ "request.success",
1189
+ "request.retry",
1190
+ "request.rate_limited",
1191
+ "request.error",
1192
+ "request.connection_error"
1193
+ ]
1194
+ },
1195
+ "idempotency": {
1196
+ "headerName": "Idempotency-Key",
1197
+ "autoGenerateForPost": true
1198
+ },
1199
+ "pagination": {
1200
+ "autoPageDelayMs": 0
1201
+ },
1202
+ "requestGuard": {
1203
+ "optionKeys": [
1204
+ "api_key",
1205
+ "apiKey",
1206
+ "idempotency_key",
1207
+ "idempotencyKey",
1208
+ "extra_headers",
1209
+ "extraHeaders",
1210
+ "max_retries",
1211
+ "maxRetries",
1212
+ "base_url",
1213
+ "baseUrl",
1214
+ "timeout"
1215
+ ]
1216
+ }
1217
+ }
1218
+ }