@xyd-js/opencli2go 0.1.0-build.0

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 (658) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__create/input.json +73 -0
  4. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__create/output.go +51 -0
  5. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__create/recorded.json +19 -0
  6. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__delete/input.json +61 -0
  7. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__delete/output.go +37 -0
  8. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__delete/recorded.json +15 -0
  9. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__list/input.json +97 -0
  10. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__list/output.go +59 -0
  11. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__list/recorded.json +14 -0
  12. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__retrieve/input.json +97 -0
  13. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__retrieve/output.go +59 -0
  14. package/__fixtures__/-2.complex.openai/admin__organization__admin-api-keys__retrieve/recorded.json +14 -0
  15. package/__fixtures__/-2.complex.openai/admin__organization__audit-logs__list/input.json +254 -0
  16. package/__fixtures__/-2.complex.openai/admin__organization__audit-logs__list/output.go +104 -0
  17. package/__fixtures__/-2.complex.openai/admin__organization__audit-logs__list/recorded.json +14 -0
  18. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate/input.json +90 -0
  19. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate/output.go +59 -0
  20. package/__fixtures__/-2.complex.openai/admin__organization__certificates__activate/recorded.json +19 -0
  21. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/input.json +90 -0
  22. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/output.go +59 -0
  23. package/__fixtures__/-2.complex.openai/admin__organization__certificates__create/recorded.json +19 -0
  24. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate/input.json +90 -0
  25. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate/output.go +59 -0
  26. package/__fixtures__/-2.complex.openai/admin__organization__certificates__deactivate/recorded.json +19 -0
  27. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/input.json +62 -0
  28. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/output.go +37 -0
  29. package/__fixtures__/-2.complex.openai/admin__organization__certificates__delete/recorded.json +15 -0
  30. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/input.json +100 -0
  31. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/output.go +62 -0
  32. package/__fixtures__/-2.complex.openai/admin__organization__certificates__list/recorded.json +14 -0
  33. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/input.json +100 -0
  34. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/output.go +62 -0
  35. package/__fixtures__/-2.complex.openai/admin__organization__certificates__retrieve/recorded.json +14 -0
  36. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/input.json +90 -0
  37. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/output.go +59 -0
  38. package/__fixtures__/-2.complex.openai/admin__organization__certificates__update/recorded.json +19 -0
  39. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/input.json +74 -0
  40. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/output.go +52 -0
  41. package/__fixtures__/-2.complex.openai/admin__organization__groups__create/recorded.json +19 -0
  42. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/input.json +62 -0
  43. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/output.go +37 -0
  44. package/__fixtures__/-2.complex.openai/admin__organization__groups__delete/recorded.json +15 -0
  45. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/input.json +100 -0
  46. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/output.go +62 -0
  47. package/__fixtures__/-2.complex.openai/admin__organization__groups__list/recorded.json +14 -0
  48. package/__fixtures__/-2.complex.openai/admin__organization__groups__retrieve/input.json +100 -0
  49. package/__fixtures__/-2.complex.openai/admin__organization__groups__retrieve/output.go +62 -0
  50. package/__fixtures__/-2.complex.openai/admin__organization__groups__retrieve/recorded.json +14 -0
  51. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/input.json +94 -0
  52. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/output.go +59 -0
  53. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__create/recorded.json +21 -0
  54. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/input.json +78 -0
  55. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/output.go +43 -0
  56. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__delete/recorded.json +17 -0
  57. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/input.json +118 -0
  58. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/output.go +68 -0
  59. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__list/recorded.json +16 -0
  60. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__retrieve/input.json +118 -0
  61. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__retrieve/output.go +68 -0
  62. package/__fixtures__/-2.complex.openai/admin__organization__groups__roles__retrieve/recorded.json +16 -0
  63. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/input.json +74 -0
  64. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/output.go +52 -0
  65. package/__fixtures__/-2.complex.openai/admin__organization__groups__update/recorded.json +19 -0
  66. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/input.json +94 -0
  67. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/output.go +59 -0
  68. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__create/recorded.json +21 -0
  69. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/input.json +78 -0
  70. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/output.go +43 -0
  71. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__delete/recorded.json +17 -0
  72. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/input.json +118 -0
  73. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/output.go +68 -0
  74. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__list/recorded.json +16 -0
  75. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__retrieve/input.json +118 -0
  76. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__retrieve/output.go +68 -0
  77. package/__fixtures__/-2.complex.openai/admin__organization__groups__users__retrieve/recorded.json +16 -0
  78. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/input.json +115 -0
  79. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/output.go +67 -0
  80. package/__fixtures__/-2.complex.openai/admin__organization__invites__create/recorded.json +22 -0
  81. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/input.json +62 -0
  82. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/output.go +37 -0
  83. package/__fixtures__/-2.complex.openai/admin__organization__invites__delete/recorded.json +15 -0
  84. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/input.json +81 -0
  85. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/output.go +55 -0
  86. package/__fixtures__/-2.complex.openai/admin__organization__invites__list/recorded.json +14 -0
  87. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/input.json +81 -0
  88. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/output.go +55 -0
  89. package/__fixtures__/-2.complex.openai/admin__organization__invites__retrieve/recorded.json +14 -0
  90. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__delete/input.json +78 -0
  91. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__delete/output.go +43 -0
  92. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__delete/recorded.json +17 -0
  93. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__list/input.json +99 -0
  94. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__list/output.go +61 -0
  95. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__list/recorded.json +16 -0
  96. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__retrieve/input.json +99 -0
  97. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__retrieve/output.go +61 -0
  98. package/__fixtures__/-2.complex.openai/admin__organization__projects__api-keys__retrieve/recorded.json +16 -0
  99. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/input.json +106 -0
  100. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/output.go +76 -0
  101. package/__fixtures__/-2.complex.openai/admin__organization__projects__archive/recorded.json +19 -0
  102. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/input.json +118 -0
  103. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/output.go +68 -0
  104. package/__fixtures__/-2.complex.openai/admin__organization__projects__certificates__list/recorded.json +16 -0
  105. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/input.json +106 -0
  106. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/output.go +76 -0
  107. package/__fixtures__/-2.complex.openai/admin__organization__projects__create/recorded.json +19 -0
  108. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/input.json +112 -0
  109. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/output.go +67 -0
  110. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__create/recorded.json +24 -0
  111. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/input.json +78 -0
  112. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/output.go +43 -0
  113. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__delete/recorded.json +17 -0
  114. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/input.json +118 -0
  115. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/output.go +68 -0
  116. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__list/recorded.json +16 -0
  117. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__retrieve/input.json +118 -0
  118. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__retrieve/output.go +68 -0
  119. package/__fixtures__/-2.complex.openai/admin__organization__projects__groups__retrieve/recorded.json +16 -0
  120. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/input.json +91 -0
  121. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/output.go +62 -0
  122. package/__fixtures__/-2.complex.openai/admin__organization__projects__list/recorded.json +14 -0
  123. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate-limits__list-rate-limits/input.json +114 -0
  124. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate-limits__list-rate-limits/output.go +68 -0
  125. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate-limits__list-rate-limits/recorded.json +16 -0
  126. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate-limits__update-rate-limit/input.json +183 -0
  127. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate-limits__update-rate-limit/output.go +94 -0
  128. package/__fixtures__/-2.complex.openai/admin__organization__projects__rate-limits__update-rate-limit/recorded.json +18 -0
  129. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/input.json +91 -0
  130. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/output.go +62 -0
  131. package/__fixtures__/-2.complex.openai/admin__organization__projects__retrieve/recorded.json +14 -0
  132. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__create/input.json +94 -0
  133. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__create/output.go +59 -0
  134. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__create/recorded.json +21 -0
  135. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__delete/input.json +78 -0
  136. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__delete/output.go +43 -0
  137. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__delete/recorded.json +17 -0
  138. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__list/input.json +99 -0
  139. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__list/output.go +61 -0
  140. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__list/recorded.json +16 -0
  141. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__retrieve/input.json +99 -0
  142. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__retrieve/output.go +61 -0
  143. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__retrieve/recorded.json +16 -0
  144. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__update/input.json +94 -0
  145. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__update/output.go +59 -0
  146. package/__fixtures__/-2.complex.openai/admin__organization__projects__service-accounts__update/recorded.json +21 -0
  147. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/input.json +106 -0
  148. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/output.go +76 -0
  149. package/__fixtures__/-2.complex.openai/admin__organization__projects__update/recorded.json +19 -0
  150. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/input.json +126 -0
  151. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/output.go +83 -0
  152. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__create/recorded.json +21 -0
  153. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/input.json +78 -0
  154. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/output.go +43 -0
  155. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__delete/recorded.json +17 -0
  156. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/input.json +99 -0
  157. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/output.go +61 -0
  158. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__list/recorded.json +16 -0
  159. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/input.json +99 -0
  160. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/output.go +61 -0
  161. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__retrieve/recorded.json +16 -0
  162. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/input.json +126 -0
  163. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/output.go +83 -0
  164. package/__fixtures__/-2.complex.openai/admin__organization__projects__users__update/recorded.json +21 -0
  165. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/input.json +111 -0
  166. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/output.go +72 -0
  167. package/__fixtures__/-2.complex.openai/admin__organization__roles__create/recorded.json +22 -0
  168. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/input.json +62 -0
  169. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/output.go +37 -0
  170. package/__fixtures__/-2.complex.openai/admin__organization__roles__delete/recorded.json +15 -0
  171. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/input.json +100 -0
  172. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/output.go +62 -0
  173. package/__fixtures__/-2.complex.openai/admin__organization__roles__list/recorded.json +14 -0
  174. package/__fixtures__/-2.complex.openai/admin__organization__roles__retrieve/input.json +100 -0
  175. package/__fixtures__/-2.complex.openai/admin__organization__roles__retrieve/output.go +62 -0
  176. package/__fixtures__/-2.complex.openai/admin__organization__roles__retrieve/recorded.json +14 -0
  177. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/input.json +111 -0
  178. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/output.go +72 -0
  179. package/__fixtures__/-2.complex.openai/admin__organization__roles__update/recorded.json +22 -0
  180. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/input.json +62 -0
  181. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/output.go +37 -0
  182. package/__fixtures__/-2.complex.openai/admin__organization__users__delete/recorded.json +15 -0
  183. package/__fixtures__/-2.complex.openai/admin__organization__users__list/input.json +99 -0
  184. package/__fixtures__/-2.complex.openai/admin__organization__users__list/output.go +62 -0
  185. package/__fixtures__/-2.complex.openai/admin__organization__users__list/recorded.json +14 -0
  186. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/input.json +99 -0
  187. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/output.go +62 -0
  188. package/__fixtures__/-2.complex.openai/admin__organization__users__retrieve/recorded.json +14 -0
  189. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/input.json +94 -0
  190. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/output.go +59 -0
  191. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__create/recorded.json +21 -0
  192. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/input.json +78 -0
  193. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/output.go +43 -0
  194. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__delete/recorded.json +17 -0
  195. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/input.json +118 -0
  196. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/output.go +68 -0
  197. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__list/recorded.json +16 -0
  198. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__retrieve/input.json +118 -0
  199. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__retrieve/output.go +68 -0
  200. package/__fixtures__/-2.complex.openai/admin__organization__users__roles__retrieve/recorded.json +16 -0
  201. package/__fixtures__/-2.complex.openai/admin__organization__users__update/input.json +135 -0
  202. package/__fixtures__/-2.complex.openai/admin__organization__users__update/output.go +94 -0
  203. package/__fixtures__/-2.complex.openai/admin__organization__users__update/recorded.json +16 -0
  204. package/__fixtures__/-2.complex.openai/audio__speech__create/input.json +186 -0
  205. package/__fixtures__/-2.complex.openai/audio__speech__create/output.go +106 -0
  206. package/__fixtures__/-2.complex.openai/audio__speech__create/recorded.json +25 -0
  207. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/input.json +277 -0
  208. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/output.go +143 -0
  209. package/__fixtures__/-2.complex.openai/audio__transcriptions__create/recorded.json +22 -0
  210. package/__fixtures__/-2.complex.openai/audio__translations__create/input.json +147 -0
  211. package/__fixtures__/-2.complex.openai/audio__translations__create/output.go +86 -0
  212. package/__fixtures__/-2.complex.openai/audio__translations__create/recorded.json +22 -0
  213. package/__fixtures__/-2.complex.openai/batches__cancel/input.json +149 -0
  214. package/__fixtures__/-2.complex.openai/batches__cancel/output.go +86 -0
  215. package/__fixtures__/-2.complex.openai/batches__cancel/recorded.json +24 -0
  216. package/__fixtures__/-2.complex.openai/batches__create/input.json +149 -0
  217. package/__fixtures__/-2.complex.openai/batches__create/output.go +86 -0
  218. package/__fixtures__/-2.complex.openai/batches__create/recorded.json +24 -0
  219. package/__fixtures__/-2.complex.openai/batches__list/input.json +76 -0
  220. package/__fixtures__/-2.complex.openai/batches__list/output.go +50 -0
  221. package/__fixtures__/-2.complex.openai/batches__list/recorded.json +13 -0
  222. package/__fixtures__/-2.complex.openai/batches__retrieve/input.json +76 -0
  223. package/__fixtures__/-2.complex.openai/batches__retrieve/output.go +50 -0
  224. package/__fixtures__/-2.complex.openai/batches__retrieve/recorded.json +13 -0
  225. package/__fixtures__/-2.complex.openai/beta__assistants__create/input.json +223 -0
  226. package/__fixtures__/-2.complex.openai/beta__assistants__create/output.go +158 -0
  227. package/__fixtures__/-2.complex.openai/beta__assistants__create/recorded.json +18 -0
  228. package/__fixtures__/-2.complex.openai/beta__assistants__delete/input.json +57 -0
  229. package/__fixtures__/-2.complex.openai/beta__assistants__delete/output.go +32 -0
  230. package/__fixtures__/-2.complex.openai/beta__assistants__delete/recorded.json +14 -0
  231. package/__fixtures__/-2.complex.openai/beta__assistants__list/input.json +110 -0
  232. package/__fixtures__/-2.complex.openai/beta__assistants__list/output.go +64 -0
  233. package/__fixtures__/-2.complex.openai/beta__assistants__list/recorded.json +13 -0
  234. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/input.json +110 -0
  235. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/output.go +64 -0
  236. package/__fixtures__/-2.complex.openai/beta__assistants__retrieve/recorded.json +13 -0
  237. package/__fixtures__/-2.complex.openai/beta__assistants__update/input.json +223 -0
  238. package/__fixtures__/-2.complex.openai/beta__assistants__update/output.go +158 -0
  239. package/__fixtures__/-2.complex.openai/beta__assistants__update/recorded.json +18 -0
  240. package/__fixtures__/-2.complex.openai/beta__chatkit__sessions__cancel/input.json +140 -0
  241. package/__fixtures__/-2.complex.openai/beta__chatkit__sessions__cancel/output.go +101 -0
  242. package/__fixtures__/-2.complex.openai/beta__chatkit__sessions__cancel/recorded.json +22 -0
  243. package/__fixtures__/-2.complex.openai/beta__chatkit__sessions__create/input.json +140 -0
  244. package/__fixtures__/-2.complex.openai/beta__chatkit__sessions__create/output.go +101 -0
  245. package/__fixtures__/-2.complex.openai/beta__chatkit__sessions__create/recorded.json +22 -0
  246. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__delete/input.json +62 -0
  247. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__delete/output.go +37 -0
  248. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__delete/recorded.json +15 -0
  249. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__list/input.json +65 -0
  250. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__list/output.go +40 -0
  251. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__list/recorded.json +15 -0
  252. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__list-items/input.json +65 -0
  253. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__list-items/output.go +40 -0
  254. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__list-items/recorded.json +15 -0
  255. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__retrieve/input.json +65 -0
  256. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__retrieve/output.go +40 -0
  257. package/__fixtures__/-2.complex.openai/beta__chatkit__threads__retrieve/recorded.json +15 -0
  258. package/__fixtures__/-2.complex.openai/beta__threads__create/input.json +100 -0
  259. package/__fixtures__/-2.complex.openai/beta__threads__create/output.go +68 -0
  260. package/__fixtures__/-2.complex.openai/beta__threads__create/recorded.json +14 -0
  261. package/__fixtures__/-2.complex.openai/beta__threads__create-and-run/input.json +100 -0
  262. package/__fixtures__/-2.complex.openai/beta__threads__create-and-run/output.go +68 -0
  263. package/__fixtures__/-2.complex.openai/beta__threads__create-and-run/recorded.json +14 -0
  264. package/__fixtures__/-2.complex.openai/beta__threads__delete/input.json +57 -0
  265. package/__fixtures__/-2.complex.openai/beta__threads__delete/output.go +32 -0
  266. package/__fixtures__/-2.complex.openai/beta__threads__delete/recorded.json +14 -0
  267. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/input.json +140 -0
  268. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/output.go +88 -0
  269. package/__fixtures__/-2.complex.openai/beta__threads__messages__create/recorded.json +23 -0
  270. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/input.json +73 -0
  271. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/output.go +38 -0
  272. package/__fixtures__/-2.complex.openai/beta__threads__messages__delete/recorded.json +16 -0
  273. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/input.json +143 -0
  274. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/output.go +77 -0
  275. package/__fixtures__/-2.complex.openai/beta__threads__messages__list/recorded.json +15 -0
  276. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/input.json +143 -0
  277. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/output.go +77 -0
  278. package/__fixtures__/-2.complex.openai/beta__threads__messages__retrieve/recorded.json +15 -0
  279. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/input.json +140 -0
  280. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/output.go +88 -0
  281. package/__fixtures__/-2.complex.openai/beta__threads__messages__update/recorded.json +23 -0
  282. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/input.json +60 -0
  283. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/output.go +35 -0
  284. package/__fixtures__/-2.complex.openai/beta__threads__retrieve/recorded.json +14 -0
  285. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/input.json +304 -0
  286. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/output.go +189 -0
  287. package/__fixtures__/-2.complex.openai/beta__threads__runs__cancel/recorded.json +19 -0
  288. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/input.json +304 -0
  289. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/output.go +189 -0
  290. package/__fixtures__/-2.complex.openai/beta__threads__runs__create/recorded.json +19 -0
  291. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/input.json +128 -0
  292. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/output.go +70 -0
  293. package/__fixtures__/-2.complex.openai/beta__threads__runs__list/recorded.json +15 -0
  294. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/input.json +128 -0
  295. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/output.go +70 -0
  296. package/__fixtures__/-2.complex.openai/beta__threads__runs__retrieve/recorded.json +15 -0
  297. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/input.json +165 -0
  298. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/output.go +83 -0
  299. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__list/recorded.json +17 -0
  300. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/input.json +165 -0
  301. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/output.go +83 -0
  302. package/__fixtures__/-2.complex.openai/beta__threads__runs__steps__retrieve/recorded.json +17 -0
  303. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit-tool-outputs/input.json +304 -0
  304. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit-tool-outputs/output.go +189 -0
  305. package/__fixtures__/-2.complex.openai/beta__threads__runs__submit-tool-outputs/recorded.json +19 -0
  306. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/input.json +304 -0
  307. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/output.go +189 -0
  308. package/__fixtures__/-2.complex.openai/beta__threads__runs__update/recorded.json +19 -0
  309. package/__fixtures__/-2.complex.openai/beta__threads__update/input.json +100 -0
  310. package/__fixtures__/-2.complex.openai/beta__threads__update/output.go +68 -0
  311. package/__fixtures__/-2.complex.openai/beta__threads__update/recorded.json +14 -0
  312. package/__fixtures__/-2.complex.openai/chat__completions__create/input.json +600 -0
  313. package/__fixtures__/-2.complex.openai/chat__completions__create/output.go +372 -0
  314. package/__fixtures__/-2.complex.openai/chat__completions__create/recorded.json +22 -0
  315. package/__fixtures__/-2.complex.openai/chat__completions__delete/input.json +62 -0
  316. package/__fixtures__/-2.complex.openai/chat__completions__delete/output.go +37 -0
  317. package/__fixtures__/-2.complex.openai/chat__completions__delete/recorded.json +15 -0
  318. package/__fixtures__/-2.complex.openai/chat__completions__list/input.json +130 -0
  319. package/__fixtures__/-2.complex.openai/chat__completions__list/output.go +76 -0
  320. package/__fixtures__/-2.complex.openai/chat__completions__list/recorded.json +14 -0
  321. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/input.json +118 -0
  322. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/output.go +68 -0
  323. package/__fixtures__/-2.complex.openai/chat__completions__messages__list/recorded.json +16 -0
  324. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/input.json +130 -0
  325. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/output.go +76 -0
  326. package/__fixtures__/-2.complex.openai/chat__completions__retrieve/recorded.json +14 -0
  327. package/__fixtures__/-2.complex.openai/chat__completions__update/input.json +600 -0
  328. package/__fixtures__/-2.complex.openai/chat__completions__update/output.go +372 -0
  329. package/__fixtures__/-2.complex.openai/chat__completions__update/recorded.json +22 -0
  330. package/__fixtures__/-2.complex.openai/completions__create/input.json +332 -0
  331. package/__fixtures__/-2.complex.openai/completions__create/output.go +191 -0
  332. package/__fixtures__/-2.complex.openai/completions__create/recorded.json +21 -0
  333. package/__fixtures__/-2.complex.openai/containers__create/input.json +161 -0
  334. package/__fixtures__/-2.complex.openai/containers__create/output.go +92 -0
  335. package/__fixtures__/-2.complex.openai/containers__create/recorded.json +18 -0
  336. package/__fixtures__/-2.complex.openai/containers__delete/input.json +57 -0
  337. package/__fixtures__/-2.complex.openai/containers__delete/output.go +32 -0
  338. package/__fixtures__/-2.complex.openai/containers__delete/recorded.json +14 -0
  339. package/__fixtures__/-2.complex.openai/containers__files__content__retrieve/input.json +76 -0
  340. package/__fixtures__/-2.complex.openai/containers__files__content__retrieve/output.go +43 -0
  341. package/__fixtures__/-2.complex.openai/containers__files__content__retrieve/recorded.json +17 -0
  342. package/__fixtures__/-2.complex.openai/containers__files__create/input.json +102 -0
  343. package/__fixtures__/-2.complex.openai/containers__files__create/output.go +60 -0
  344. package/__fixtures__/-2.complex.openai/containers__files__create/recorded.json +16 -0
  345. package/__fixtures__/-2.complex.openai/containers__files__delete/input.json +71 -0
  346. package/__fixtures__/-2.complex.openai/containers__files__delete/output.go +38 -0
  347. package/__fixtures__/-2.complex.openai/containers__files__delete/recorded.json +16 -0
  348. package/__fixtures__/-2.complex.openai/containers__files__list/input.json +112 -0
  349. package/__fixtures__/-2.complex.openai/containers__files__list/output.go +63 -0
  350. package/__fixtures__/-2.complex.openai/containers__files__list/recorded.json +15 -0
  351. package/__fixtures__/-2.complex.openai/containers__files__retrieve/input.json +112 -0
  352. package/__fixtures__/-2.complex.openai/containers__files__retrieve/output.go +63 -0
  353. package/__fixtures__/-2.complex.openai/containers__files__retrieve/recorded.json +15 -0
  354. package/__fixtures__/-2.complex.openai/containers__list/input.json +110 -0
  355. package/__fixtures__/-2.complex.openai/containers__list/output.go +64 -0
  356. package/__fixtures__/-2.complex.openai/containers__list/recorded.json +13 -0
  357. package/__fixtures__/-2.complex.openai/containers__retrieve/input.json +110 -0
  358. package/__fixtures__/-2.complex.openai/containers__retrieve/output.go +64 -0
  359. package/__fixtures__/-2.complex.openai/containers__retrieve/recorded.json +13 -0
  360. package/__fixtures__/-2.complex.openai/conversations__create/input.json +81 -0
  361. package/__fixtures__/-2.complex.openai/conversations__create/output.go +61 -0
  362. package/__fixtures__/-2.complex.openai/conversations__create/recorded.json +14 -0
  363. package/__fixtures__/-2.complex.openai/conversations__delete/input.json +57 -0
  364. package/__fixtures__/-2.complex.openai/conversations__delete/output.go +32 -0
  365. package/__fixtures__/-2.complex.openai/conversations__delete/recorded.json +14 -0
  366. package/__fixtures__/-2.complex.openai/conversations__items__create/input.json +120 -0
  367. package/__fixtures__/-2.complex.openai/conversations__items__create/output.go +64 -0
  368. package/__fixtures__/-2.complex.openai/conversations__items__create/recorded.json +20 -0
  369. package/__fixtures__/-2.complex.openai/conversations__items__delete/input.json +73 -0
  370. package/__fixtures__/-2.complex.openai/conversations__items__delete/output.go +38 -0
  371. package/__fixtures__/-2.complex.openai/conversations__items__delete/recorded.json +16 -0
  372. package/__fixtures__/-2.complex.openai/conversations__items__list/input.json +141 -0
  373. package/__fixtures__/-2.complex.openai/conversations__items__list/output.go +70 -0
  374. package/__fixtures__/-2.complex.openai/conversations__items__list/recorded.json +15 -0
  375. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/input.json +141 -0
  376. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/output.go +70 -0
  377. package/__fixtures__/-2.complex.openai/conversations__items__retrieve/recorded.json +15 -0
  378. package/__fixtures__/-2.complex.openai/conversations__retrieve/input.json +60 -0
  379. package/__fixtures__/-2.complex.openai/conversations__retrieve/output.go +35 -0
  380. package/__fixtures__/-2.complex.openai/conversations__retrieve/recorded.json +14 -0
  381. package/__fixtures__/-2.complex.openai/conversations__update/input.json +81 -0
  382. package/__fixtures__/-2.complex.openai/conversations__update/output.go +61 -0
  383. package/__fixtures__/-2.complex.openai/conversations__update/recorded.json +14 -0
  384. package/__fixtures__/-2.complex.openai/embeddings__create/input.json +139 -0
  385. package/__fixtures__/-2.complex.openai/embeddings__create/output.go +86 -0
  386. package/__fixtures__/-2.complex.openai/embeddings__create/recorded.json +21 -0
  387. package/__fixtures__/-2.complex.openai/files__content/input.json +110 -0
  388. package/__fixtures__/-2.complex.openai/files__content/output.go +64 -0
  389. package/__fixtures__/-2.complex.openai/files__content/recorded.json +13 -0
  390. package/__fixtures__/-2.complex.openai/files__create/input.json +111 -0
  391. package/__fixtures__/-2.complex.openai/files__create/output.go +67 -0
  392. package/__fixtures__/-2.complex.openai/files__create/recorded.json +21 -0
  393. package/__fixtures__/-2.complex.openai/files__delete/input.json +57 -0
  394. package/__fixtures__/-2.complex.openai/files__delete/output.go +32 -0
  395. package/__fixtures__/-2.complex.openai/files__delete/recorded.json +14 -0
  396. package/__fixtures__/-2.complex.openai/files__list/input.json +110 -0
  397. package/__fixtures__/-2.complex.openai/files__list/output.go +64 -0
  398. package/__fixtures__/-2.complex.openai/files__list/recorded.json +13 -0
  399. package/__fixtures__/-2.complex.openai/files__retrieve/input.json +110 -0
  400. package/__fixtures__/-2.complex.openai/files__retrieve/output.go +64 -0
  401. package/__fixtures__/-2.complex.openai/files__retrieve/recorded.json +13 -0
  402. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__create/input.json +97 -0
  403. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__create/output.go +59 -0
  404. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__create/recorded.json +21 -0
  405. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__delete/input.json +78 -0
  406. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__delete/output.go +43 -0
  407. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__delete/recorded.json +17 -0
  408. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__retrieve/input.json +133 -0
  409. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__retrieve/output.go +75 -0
  410. package/__fixtures__/-2.complex.openai/fine-tuning__checkpoints__permissions__retrieve/recorded.json +16 -0
  411. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__cancel/input.json +206 -0
  412. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__cancel/output.go +128 -0
  413. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__cancel/recorded.json +22 -0
  414. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__checkpoints__list/input.json +99 -0
  415. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__checkpoints__list/output.go +61 -0
  416. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__checkpoints__list/recorded.json +16 -0
  417. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__create/input.json +206 -0
  418. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__create/output.go +128 -0
  419. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__create/recorded.json +22 -0
  420. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__list/input.json +98 -0
  421. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__list/output.go +62 -0
  422. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__list/recorded.json +14 -0
  423. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__list-events/input.json +98 -0
  424. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__list-events/output.go +62 -0
  425. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__list-events/recorded.json +14 -0
  426. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__pause/input.json +206 -0
  427. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__pause/output.go +128 -0
  428. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__pause/recorded.json +22 -0
  429. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__resume/input.json +206 -0
  430. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__resume/output.go +128 -0
  431. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__resume/recorded.json +22 -0
  432. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__retrieve/input.json +98 -0
  433. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__retrieve/output.go +62 -0
  434. package/__fixtures__/-2.complex.openai/fine-tuning__jobs__retrieve/recorded.json +14 -0
  435. package/__fixtures__/-2.complex.openai/models__delete/input.json +57 -0
  436. package/__fixtures__/-2.complex.openai/models__delete/output.go +32 -0
  437. package/__fixtures__/-2.complex.openai/models__delete/recorded.json +14 -0
  438. package/__fixtures__/-2.complex.openai/models__list/input.json +42 -0
  439. package/__fixtures__/-2.complex.openai/models__list/output.go +30 -0
  440. package/__fixtures__/-2.complex.openai/models__list/recorded.json +13 -0
  441. package/__fixtures__/-2.complex.openai/models__retrieve/input.json +42 -0
  442. package/__fixtures__/-2.complex.openai/models__retrieve/output.go +30 -0
  443. package/__fixtures__/-2.complex.openai/models__retrieve/recorded.json +13 -0
  444. package/__fixtures__/-2.complex.openai/moderations__create/input.json +85 -0
  445. package/__fixtures__/-2.complex.openai/moderations__create/output.go +64 -0
  446. package/__fixtures__/-2.complex.openai/moderations__create/recorded.json +18 -0
  447. package/__fixtures__/-2.complex.openai/realtime__calls__accept/input.json +90 -0
  448. package/__fixtures__/-2.complex.openai/realtime__calls__accept/output.go +64 -0
  449. package/__fixtures__/-2.complex.openai/realtime__calls__accept/recorded.json +19 -0
  450. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/input.json +90 -0
  451. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/output.go +64 -0
  452. package/__fixtures__/-2.complex.openai/realtime__calls__hangup/recorded.json +19 -0
  453. package/__fixtures__/-2.complex.openai/realtime__calls__refer/input.json +90 -0
  454. package/__fixtures__/-2.complex.openai/realtime__calls__refer/output.go +64 -0
  455. package/__fixtures__/-2.complex.openai/realtime__calls__refer/recorded.json +19 -0
  456. package/__fixtures__/-2.complex.openai/realtime__calls__reject/input.json +90 -0
  457. package/__fixtures__/-2.complex.openai/realtime__calls__reject/output.go +64 -0
  458. package/__fixtures__/-2.complex.openai/realtime__calls__reject/recorded.json +19 -0
  459. package/__fixtures__/-2.complex.openai/realtime__client-secrets__create/input.json +88 -0
  460. package/__fixtures__/-2.complex.openai/realtime__client-secrets__create/output.go +68 -0
  461. package/__fixtures__/-2.complex.openai/realtime__client-secrets__create/recorded.json +15 -0
  462. package/__fixtures__/-2.complex.openai/responses__cancel/input.json +498 -0
  463. package/__fixtures__/-2.complex.openai/responses__cancel/output.go +342 -0
  464. package/__fixtures__/-2.complex.openai/responses__cancel/recorded.json +14 -0
  465. package/__fixtures__/-2.complex.openai/responses__compact/input.json +498 -0
  466. package/__fixtures__/-2.complex.openai/responses__compact/output.go +342 -0
  467. package/__fixtures__/-2.complex.openai/responses__compact/recorded.json +14 -0
  468. package/__fixtures__/-2.complex.openai/responses__create/input.json +498 -0
  469. package/__fixtures__/-2.complex.openai/responses__create/output.go +342 -0
  470. package/__fixtures__/-2.complex.openai/responses__create/recorded.json +14 -0
  471. package/__fixtures__/-2.complex.openai/responses__delete/input.json +57 -0
  472. package/__fixtures__/-2.complex.openai/responses__delete/output.go +32 -0
  473. package/__fixtures__/-2.complex.openai/responses__delete/recorded.json +14 -0
  474. package/__fixtures__/-2.complex.openai/responses__input-items__list/input.json +141 -0
  475. package/__fixtures__/-2.complex.openai/responses__input-items__list/output.go +70 -0
  476. package/__fixtures__/-2.complex.openai/responses__input-items__list/recorded.json +15 -0
  477. package/__fixtures__/-2.complex.openai/responses__input-tokens__count/input.json +226 -0
  478. package/__fixtures__/-2.complex.openai/responses__input-tokens__count/output.go +161 -0
  479. package/__fixtures__/-2.complex.openai/responses__input-tokens__count/recorded.json +15 -0
  480. package/__fixtures__/-2.complex.openai/responses__retrieve/input.json +125 -0
  481. package/__fixtures__/-2.complex.openai/responses__retrieve/output.go +68 -0
  482. package/__fixtures__/-2.complex.openai/responses__retrieve/recorded.json +14 -0
  483. package/__fixtures__/-2.complex.openai/skills__content__retrieve/input.json +62 -0
  484. package/__fixtures__/-2.complex.openai/skills__content__retrieve/output.go +37 -0
  485. package/__fixtures__/-2.complex.openai/skills__content__retrieve/recorded.json +15 -0
  486. package/__fixtures__/-2.complex.openai/skills__create/input.json +68 -0
  487. package/__fixtures__/-2.complex.openai/skills__create/output.go +51 -0
  488. package/__fixtures__/-2.complex.openai/skills__create/recorded.json +18 -0
  489. package/__fixtures__/-2.complex.openai/skills__delete/input.json +57 -0
  490. package/__fixtures__/-2.complex.openai/skills__delete/output.go +32 -0
  491. package/__fixtures__/-2.complex.openai/skills__delete/recorded.json +14 -0
  492. package/__fixtures__/-2.complex.openai/skills__list/input.json +95 -0
  493. package/__fixtures__/-2.complex.openai/skills__list/output.go +57 -0
  494. package/__fixtures__/-2.complex.openai/skills__list/recorded.json +13 -0
  495. package/__fixtures__/-2.complex.openai/skills__retrieve/input.json +95 -0
  496. package/__fixtures__/-2.complex.openai/skills__retrieve/output.go +57 -0
  497. package/__fixtures__/-2.complex.openai/skills__retrieve/recorded.json +13 -0
  498. package/__fixtures__/-2.complex.openai/skills__update/input.json +68 -0
  499. package/__fixtures__/-2.complex.openai/skills__update/output.go +51 -0
  500. package/__fixtures__/-2.complex.openai/skills__update/recorded.json +18 -0
  501. package/__fixtures__/-2.complex.openai/skills__versions__content__retrieve/input.json +78 -0
  502. package/__fixtures__/-2.complex.openai/skills__versions__content__retrieve/output.go +43 -0
  503. package/__fixtures__/-2.complex.openai/skills__versions__content__retrieve/recorded.json +17 -0
  504. package/__fixtures__/-2.complex.openai/skills__versions__create/input.json +99 -0
  505. package/__fixtures__/-2.complex.openai/skills__versions__create/output.go +65 -0
  506. package/__fixtures__/-2.complex.openai/skills__versions__create/recorded.json +20 -0
  507. package/__fixtures__/-2.complex.openai/skills__versions__delete/input.json +73 -0
  508. package/__fixtures__/-2.complex.openai/skills__versions__delete/output.go +38 -0
  509. package/__fixtures__/-2.complex.openai/skills__versions__delete/recorded.json +16 -0
  510. package/__fixtures__/-2.complex.openai/skills__versions__list/input.json +113 -0
  511. package/__fixtures__/-2.complex.openai/skills__versions__list/output.go +63 -0
  512. package/__fixtures__/-2.complex.openai/skills__versions__list/recorded.json +15 -0
  513. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/input.json +113 -0
  514. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/output.go +63 -0
  515. package/__fixtures__/-2.complex.openai/skills__versions__retrieve/recorded.json +15 -0
  516. package/__fixtures__/-2.complex.openai/uploads__cancel/input.json +145 -0
  517. package/__fixtures__/-2.complex.openai/uploads__cancel/output.go +83 -0
  518. package/__fixtures__/-2.complex.openai/uploads__cancel/recorded.json +27 -0
  519. package/__fixtures__/-2.complex.openai/uploads__complete/input.json +145 -0
  520. package/__fixtures__/-2.complex.openai/uploads__complete/output.go +83 -0
  521. package/__fixtures__/-2.complex.openai/uploads__complete/recorded.json +27 -0
  522. package/__fixtures__/-2.complex.openai/uploads__create/input.json +145 -0
  523. package/__fixtures__/-2.complex.openai/uploads__create/output.go +83 -0
  524. package/__fixtures__/-2.complex.openai/uploads__create/recorded.json +27 -0
  525. package/__fixtures__/-2.complex.openai/uploads__parts__create/input.json +89 -0
  526. package/__fixtures__/-2.complex.openai/uploads__parts__create/output.go +54 -0
  527. package/__fixtures__/-2.complex.openai/uploads__parts__create/recorded.json +20 -0
  528. package/__fixtures__/-2.complex.openai/vector-stores__create/input.json +149 -0
  529. package/__fixtures__/-2.complex.openai/vector-stores__create/output.go +95 -0
  530. package/__fixtures__/-2.complex.openai/vector-stores__create/recorded.json +14 -0
  531. package/__fixtures__/-2.complex.openai/vector-stores__delete/input.json +57 -0
  532. package/__fixtures__/-2.complex.openai/vector-stores__delete/output.go +32 -0
  533. package/__fixtures__/-2.complex.openai/vector-stores__delete/recorded.json +14 -0
  534. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__cancel/input.json +140 -0
  535. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__cancel/output.go +83 -0
  536. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__cancel/recorded.json +16 -0
  537. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__create/input.json +140 -0
  538. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__create/output.go +83 -0
  539. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__create/recorded.json +16 -0
  540. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__list-files/input.json +76 -0
  541. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__list-files/output.go +41 -0
  542. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__list-files/recorded.json +16 -0
  543. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__retrieve/input.json +76 -0
  544. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__retrieve/output.go +41 -0
  545. package/__fixtures__/-2.complex.openai/vector-stores__file-batches__retrieve/recorded.json +16 -0
  546. package/__fixtures__/-2.complex.openai/vector-stores__files__content/input.json +149 -0
  547. package/__fixtures__/-2.complex.openai/vector-stores__files__content/output.go +77 -0
  548. package/__fixtures__/-2.complex.openai/vector-stores__files__content/recorded.json +15 -0
  549. package/__fixtures__/-2.complex.openai/vector-stores__files__create/input.json +120 -0
  550. package/__fixtures__/-2.complex.openai/vector-stores__files__create/output.go +77 -0
  551. package/__fixtures__/-2.complex.openai/vector-stores__files__create/recorded.json +20 -0
  552. package/__fixtures__/-2.complex.openai/vector-stores__files__delete/input.json +73 -0
  553. package/__fixtures__/-2.complex.openai/vector-stores__files__delete/output.go +38 -0
  554. package/__fixtures__/-2.complex.openai/vector-stores__files__delete/recorded.json +16 -0
  555. package/__fixtures__/-2.complex.openai/vector-stores__files__list/input.json +149 -0
  556. package/__fixtures__/-2.complex.openai/vector-stores__files__list/output.go +77 -0
  557. package/__fixtures__/-2.complex.openai/vector-stores__files__list/recorded.json +15 -0
  558. package/__fixtures__/-2.complex.openai/vector-stores__files__retrieve/input.json +149 -0
  559. package/__fixtures__/-2.complex.openai/vector-stores__files__retrieve/output.go +77 -0
  560. package/__fixtures__/-2.complex.openai/vector-stores__files__retrieve/recorded.json +15 -0
  561. package/__fixtures__/-2.complex.openai/vector-stores__files__update/input.json +120 -0
  562. package/__fixtures__/-2.complex.openai/vector-stores__files__update/output.go +77 -0
  563. package/__fixtures__/-2.complex.openai/vector-stores__files__update/recorded.json +20 -0
  564. package/__fixtures__/-2.complex.openai/vector-stores__list/input.json +110 -0
  565. package/__fixtures__/-2.complex.openai/vector-stores__list/output.go +64 -0
  566. package/__fixtures__/-2.complex.openai/vector-stores__list/recorded.json +13 -0
  567. package/__fixtures__/-2.complex.openai/vector-stores__retrieve/input.json +110 -0
  568. package/__fixtures__/-2.complex.openai/vector-stores__retrieve/output.go +64 -0
  569. package/__fixtures__/-2.complex.openai/vector-stores__retrieve/recorded.json +13 -0
  570. package/__fixtures__/-2.complex.openai/vector-stores__search/input.json +149 -0
  571. package/__fixtures__/-2.complex.openai/vector-stores__search/output.go +95 -0
  572. package/__fixtures__/-2.complex.openai/vector-stores__search/recorded.json +14 -0
  573. package/__fixtures__/-2.complex.openai/vector-stores__update/input.json +149 -0
  574. package/__fixtures__/-2.complex.openai/vector-stores__update/output.go +95 -0
  575. package/__fixtures__/-2.complex.openai/vector-stores__update/recorded.json +14 -0
  576. package/__fixtures__/-2.complex.openai/videos__create/input.json +144 -0
  577. package/__fixtures__/-2.complex.openai/videos__create/output.go +85 -0
  578. package/__fixtures__/-2.complex.openai/videos__create/recorded.json +18 -0
  579. package/__fixtures__/-2.complex.openai/videos__create-character/input.json +144 -0
  580. package/__fixtures__/-2.complex.openai/videos__create-character/output.go +85 -0
  581. package/__fixtures__/-2.complex.openai/videos__create-character/recorded.json +18 -0
  582. package/__fixtures__/-2.complex.openai/videos__delete/input.json +57 -0
  583. package/__fixtures__/-2.complex.openai/videos__delete/output.go +32 -0
  584. package/__fixtures__/-2.complex.openai/videos__delete/recorded.json +14 -0
  585. package/__fixtures__/-2.complex.openai/videos__download-content/input.json +95 -0
  586. package/__fixtures__/-2.complex.openai/videos__download-content/output.go +57 -0
  587. package/__fixtures__/-2.complex.openai/videos__download-content/recorded.json +13 -0
  588. package/__fixtures__/-2.complex.openai/videos__edit/input.json +144 -0
  589. package/__fixtures__/-2.complex.openai/videos__edit/output.go +85 -0
  590. package/__fixtures__/-2.complex.openai/videos__edit/recorded.json +18 -0
  591. package/__fixtures__/-2.complex.openai/videos__extend/input.json +144 -0
  592. package/__fixtures__/-2.complex.openai/videos__extend/output.go +85 -0
  593. package/__fixtures__/-2.complex.openai/videos__extend/recorded.json +18 -0
  594. package/__fixtures__/-2.complex.openai/videos__get-character/input.json +95 -0
  595. package/__fixtures__/-2.complex.openai/videos__get-character/output.go +57 -0
  596. package/__fixtures__/-2.complex.openai/videos__get-character/recorded.json +13 -0
  597. package/__fixtures__/-2.complex.openai/videos__list/input.json +95 -0
  598. package/__fixtures__/-2.complex.openai/videos__list/output.go +57 -0
  599. package/__fixtures__/-2.complex.openai/videos__list/recorded.json +13 -0
  600. package/__fixtures__/-2.complex.openai/videos__remix/input.json +144 -0
  601. package/__fixtures__/-2.complex.openai/videos__remix/output.go +85 -0
  602. package/__fixtures__/-2.complex.openai/videos__remix/recorded.json +18 -0
  603. package/__fixtures__/-2.complex.openai/videos__retrieve/input.json +95 -0
  604. package/__fixtures__/-2.complex.openai/videos__retrieve/output.go +57 -0
  605. package/__fixtures__/-2.complex.openai/videos__retrieve/recorded.json +13 -0
  606. package/__fixtures__/1.basic/input.json +74 -0
  607. package/__fixtures__/1.basic/output/cmd/sample-api/main.go +24 -0
  608. package/__fixtures__/1.basic/output/go.mod +3 -0
  609. package/__fixtures__/1.basic/output/internal/runtime/config.go +23 -0
  610. package/__fixtures__/1.basic/output/internal/runtime/runtime.go +64 -0
  611. package/__fixtures__/1.basic/output/pkg/cmd/models.go +49 -0
  612. package/__fixtures__/2.crud/input.json +281 -0
  613. package/__fixtures__/2.crud/output/cmd/widgets-api/main.go +23 -0
  614. package/__fixtures__/2.crud/output/go.mod +3 -0
  615. package/__fixtures__/2.crud/output/internal/runtime/config.go +23 -0
  616. package/__fixtures__/2.crud/output/internal/runtime/runtime.go +64 -0
  617. package/__fixtures__/2.crud/output/pkg/cmd/widgets.go +178 -0
  618. package/__fixtures__/3.nested/input.json +196 -0
  619. package/__fixtures__/3.nested/output/cmd/stores-api/main.go +23 -0
  620. package/__fixtures__/3.nested/output/go.mod +3 -0
  621. package/__fixtures__/3.nested/output/internal/runtime/config.go +19 -0
  622. package/__fixtures__/3.nested/output/internal/runtime/runtime.go +64 -0
  623. package/__fixtures__/3.nested/output/pkg/cmd/stores.go +120 -0
  624. package/__fixtures__/4.body-flatten/input.json +153 -0
  625. package/__fixtures__/4.body-flatten/output/cmd/chat-api/main.go +23 -0
  626. package/__fixtures__/4.body-flatten/output/go.mod +3 -0
  627. package/__fixtures__/4.body-flatten/output/internal/runtime/config.go +23 -0
  628. package/__fixtures__/4.body-flatten/output/internal/runtime/runtime.go +64 -0
  629. package/__fixtures__/4.body-flatten/output/pkg/cmd/chat.go +90 -0
  630. package/__tests__/docs.test.ts +109 -0
  631. package/__tests__/e2e/harness.ts +304 -0
  632. package/__tests__/e2e/openai.test.ts +11 -0
  633. package/__tests__/opencli2go.test.ts +27 -0
  634. package/__tests__/utils.ts +80 -0
  635. package/biome.json +25 -0
  636. package/dist/index.cjs +630 -0
  637. package/dist/index.cjs.map +1 -0
  638. package/dist/index.d.cts +26 -0
  639. package/dist/index.d.ts +26 -0
  640. package/dist/index.js +592 -0
  641. package/dist/index.js.map +1 -0
  642. package/index.ts +1 -0
  643. package/package.json +27 -0
  644. package/src/command.ts +58 -0
  645. package/src/flags.ts +26 -0
  646. package/src/golit.ts +81 -0
  647. package/src/handler.ts +151 -0
  648. package/src/index.ts +3 -0
  649. package/src/main.ts +30 -0
  650. package/src/model.ts +147 -0
  651. package/src/naming.ts +44 -0
  652. package/src/project.ts +36 -0
  653. package/src/runtime.ts +134 -0
  654. package/src/types.ts +13 -0
  655. package/src/write.ts +10 -0
  656. package/tsconfig.json +18 -0
  657. package/tsup.config.ts +19 -0
  658. package/vitest.config.ts +8 -0
@@ -0,0 +1,100 @@
1
+ {
2
+ "opencli": "1.0.0",
3
+ "info": {
4
+ "title": "openai",
5
+ "version": "2.3.0"
6
+ },
7
+ "x-openapi": {
8
+ "servers": [
9
+ "https://api.openai.com/v1"
10
+ ],
11
+ "security": [
12
+ {
13
+ "type": "http",
14
+ "kind": "bearer",
15
+ "envVar": "OPENAI_API_KEY",
16
+ "scheme": "bearer"
17
+ },
18
+ {
19
+ "type": "http",
20
+ "kind": "bearer",
21
+ "envVar": "OPENAI_API_KEY",
22
+ "scheme": "bearer"
23
+ }
24
+ ]
25
+ },
26
+ "commands": [
27
+ {
28
+ "name": "organization",
29
+ "commands": [
30
+ {
31
+ "name": "groups",
32
+ "commands": [
33
+ {
34
+ "name": "list",
35
+ "description": "Lists all groups in the organization.",
36
+ "options": [
37
+ {
38
+ "name": "limit",
39
+ "description": "A limit on the number of groups to be returned. Limit can range between 0 and 1000, and the default is 100.\n",
40
+ "group": "query",
41
+ "arguments": [
42
+ {
43
+ "name": "integer"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "name": "after",
49
+ "description": "A cursor for use in pagination. `after` is a group ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with group_abc, your subsequent call can include `after=group_abc` in order to fetch the next page of the list.\n",
50
+ "group": "query",
51
+ "arguments": [
52
+ {
53
+ "name": "string"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "name": "order",
59
+ "description": "Specifies the sort order of the returned groups.",
60
+ "group": "query",
61
+ "arguments": [
62
+ {
63
+ "name": "string",
64
+ "acceptedValues": [
65
+ "asc",
66
+ "desc"
67
+ ]
68
+ }
69
+ ]
70
+ }
71
+ ],
72
+ "x-openapi": {
73
+ "method": "get",
74
+ "path": "/organization/groups",
75
+ "operationId": "list-groups",
76
+ "params": [
77
+ {
78
+ "in": "query",
79
+ "name": "limit",
80
+ "from": "option:limit"
81
+ },
82
+ {
83
+ "in": "query",
84
+ "name": "after",
85
+ "from": "option:after"
86
+ },
87
+ {
88
+ "in": "query",
89
+ "name": "order",
90
+ "from": "option:order"
91
+ }
92
+ ]
93
+ }
94
+ }
95
+ ]
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }
@@ -0,0 +1,62 @@
1
+ package cmd
2
+
3
+ import (
4
+ "context"
5
+ "fmt"
6
+ "net/url"
7
+
8
+ "example.com/openai/internal/runtime"
9
+ "github.com/urfave/cli/v3"
10
+ )
11
+
12
+ func NewOrganizationCommand() *cli.Command {
13
+ return &cli.Command{
14
+ Name: "organization",
15
+ Commands: []*cli.Command{
16
+ &cli.Command{
17
+ Name: "groups",
18
+ Commands: []*cli.Command{
19
+ &cli.Command{
20
+ Name: "list",
21
+ Usage: "Lists all groups in the organization.",
22
+ Flags: []cli.Flag{
23
+ &cli.IntFlag{
24
+ Name: "limit",
25
+ Usage: "A limit on the number of groups to be returned. Limit can range between 0 and 1000, and the default is 100.\n",
26
+ },
27
+ &cli.StringFlag{
28
+ Name: "after",
29
+ Usage: "A cursor for use in pagination. `after` is a group ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with group_abc, your subsequent call can include `after=group_abc` in order to fetch the next page of the list.\n",
30
+ },
31
+ &cli.StringFlag{
32
+ Name: "order",
33
+ Usage: "Specifies the sort order of the returned groups.",
34
+ },
35
+ },
36
+ Action: handleOrganizationGroupsList,
37
+ },
38
+ },
39
+ },
40
+ },
41
+ }
42
+ }
43
+
44
+ func handleOrganizationGroupsList(ctx context.Context, cmd *cli.Command) error {
45
+ path := "/organization/groups"
46
+ query := url.Values{}
47
+ if cmd.IsSet("limit") {
48
+ query.Set("limit", fmt.Sprint(cmd.Int("limit")))
49
+ }
50
+ if cmd.IsSet("after") {
51
+ query.Set("after", cmd.String("after"))
52
+ }
53
+ if cmd.IsSet("order") {
54
+ query.Set("order", cmd.String("order"))
55
+ }
56
+ req := runtime.Request{
57
+ Method: "GET",
58
+ Path: path,
59
+ Query: query,
60
+ }
61
+ return runtime.Do(ctx, req)
62
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "args": [
3
+ "organization",
4
+ "groups",
5
+ "list"
6
+ ],
7
+ "request": {
8
+ "method": "get",
9
+ "path": "/organization/groups",
10
+ "query": [],
11
+ "bodyFields": [],
12
+ "auth": "bearer"
13
+ }
14
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "opencli": "1.0.0",
3
+ "info": {
4
+ "title": "openai",
5
+ "version": "2.3.0"
6
+ },
7
+ "x-openapi": {
8
+ "servers": [
9
+ "https://api.openai.com/v1"
10
+ ],
11
+ "security": [
12
+ {
13
+ "type": "http",
14
+ "kind": "bearer",
15
+ "envVar": "OPENAI_API_KEY",
16
+ "scheme": "bearer"
17
+ },
18
+ {
19
+ "type": "http",
20
+ "kind": "bearer",
21
+ "envVar": "OPENAI_API_KEY",
22
+ "scheme": "bearer"
23
+ }
24
+ ]
25
+ },
26
+ "commands": [
27
+ {
28
+ "name": "organization",
29
+ "commands": [
30
+ {
31
+ "name": "groups",
32
+ "commands": [
33
+ {
34
+ "name": "roles",
35
+ "commands": [
36
+ {
37
+ "name": "create",
38
+ "description": "Assigns an organization role to a group within the organization.",
39
+ "arguments": [
40
+ {
41
+ "name": "group-id",
42
+ "required": true,
43
+ "description": "The ID of the group that should receive the organization role."
44
+ }
45
+ ],
46
+ "options": [
47
+ {
48
+ "name": "role-id",
49
+ "group": "body",
50
+ "required": true,
51
+ "description": "Identifier of the role to assign.",
52
+ "arguments": [
53
+ {
54
+ "name": "string"
55
+ }
56
+ ]
57
+ }
58
+ ],
59
+ "x-openapi": {
60
+ "method": "post",
61
+ "path": "/organization/groups/{group_id}/roles",
62
+ "operationId": "assign-group-role",
63
+ "contentType": "application/json",
64
+ "params": [
65
+ {
66
+ "in": "path",
67
+ "name": "group_id",
68
+ "from": "argument:group-id",
69
+ "required": true
70
+ }
71
+ ],
72
+ "body": {
73
+ "style": "flatten",
74
+ "contentType": "application/json",
75
+ "properties": [
76
+ {
77
+ "name": "role_id",
78
+ "from": "option:role-id",
79
+ "jsonPath": "role_id",
80
+ "encoding": "string",
81
+ "required": true
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ }
87
+ ]
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ }
93
+ ]
94
+ }
@@ -0,0 +1,59 @@
1
+ package cmd
2
+
3
+ import (
4
+ "context"
5
+ "encoding/json"
6
+ "net/url"
7
+
8
+ "example.com/openai/internal/runtime"
9
+ "github.com/urfave/cli/v3"
10
+ )
11
+
12
+ func NewOrganizationCommand() *cli.Command {
13
+ return &cli.Command{
14
+ Name: "organization",
15
+ Commands: []*cli.Command{
16
+ &cli.Command{
17
+ Name: "groups",
18
+ Commands: []*cli.Command{
19
+ &cli.Command{
20
+ Name: "roles",
21
+ Commands: []*cli.Command{
22
+ &cli.Command{
23
+ Name: "create",
24
+ Usage: "Assigns an organization role to a group within the organization.",
25
+ Flags: []cli.Flag{
26
+ &cli.StringFlag{
27
+ Name: "role-id",
28
+ Usage: "Identifier of the role to assign.",
29
+ Required: true,
30
+ },
31
+ },
32
+ Action: handleOrganizationGroupsRolesCreate,
33
+ },
34
+ },
35
+ },
36
+ },
37
+ },
38
+ },
39
+ }
40
+ }
41
+
42
+ func handleOrganizationGroupsRolesCreate(ctx context.Context, cmd *cli.Command) error {
43
+ groupID := cmd.Args().Get(0)
44
+ path := "/organization/groups/" + url.PathEscape(groupID) + "/roles"
45
+ body := map[string]any{}
46
+ if cmd.IsSet("role-id") {
47
+ body["role_id"] = cmd.String("role-id")
48
+ }
49
+ bodyBytes, err := json.Marshal(body)
50
+ if err != nil {
51
+ return err
52
+ }
53
+ req := runtime.Request{
54
+ Method: "POST",
55
+ Path: path,
56
+ Body: bodyBytes,
57
+ }
58
+ return runtime.Do(ctx, req)
59
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "args": [
3
+ "organization",
4
+ "groups",
5
+ "roles",
6
+ "create",
7
+ "EXAMPLE",
8
+ "--role-id",
9
+ "EXAMPLE"
10
+ ],
11
+ "request": {
12
+ "method": "post",
13
+ "path": "/organization/groups/{group_id}/roles",
14
+ "query": [],
15
+ "bodyFields": [
16
+ "role_id"
17
+ ],
18
+ "auth": "bearer",
19
+ "contentType": "application/json"
20
+ }
21
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "opencli": "1.0.0",
3
+ "info": {
4
+ "title": "openai",
5
+ "version": "2.3.0"
6
+ },
7
+ "x-openapi": {
8
+ "servers": [
9
+ "https://api.openai.com/v1"
10
+ ],
11
+ "security": [
12
+ {
13
+ "type": "http",
14
+ "kind": "bearer",
15
+ "envVar": "OPENAI_API_KEY",
16
+ "scheme": "bearer"
17
+ },
18
+ {
19
+ "type": "http",
20
+ "kind": "bearer",
21
+ "envVar": "OPENAI_API_KEY",
22
+ "scheme": "bearer"
23
+ }
24
+ ]
25
+ },
26
+ "commands": [
27
+ {
28
+ "name": "organization",
29
+ "commands": [
30
+ {
31
+ "name": "groups",
32
+ "commands": [
33
+ {
34
+ "name": "roles",
35
+ "commands": [
36
+ {
37
+ "name": "delete",
38
+ "description": "Unassigns an organization role from a group within the organization.",
39
+ "arguments": [
40
+ {
41
+ "name": "group-id",
42
+ "required": true,
43
+ "description": "The ID of the group to modify."
44
+ },
45
+ {
46
+ "name": "role-id",
47
+ "required": true,
48
+ "description": "The ID of the organization role to remove from the group."
49
+ }
50
+ ],
51
+ "x-openapi": {
52
+ "method": "delete",
53
+ "path": "/organization/groups/{group_id}/roles/{role_id}",
54
+ "operationId": "unassign-group-role",
55
+ "params": [
56
+ {
57
+ "in": "path",
58
+ "name": "group_id",
59
+ "from": "argument:group-id",
60
+ "required": true
61
+ },
62
+ {
63
+ "in": "path",
64
+ "name": "role_id",
65
+ "from": "argument:role-id",
66
+ "required": true
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ }
75
+ ]
76
+ }
77
+ ]
78
+ }
@@ -0,0 +1,43 @@
1
+ package cmd
2
+
3
+ import (
4
+ "context"
5
+ "net/url"
6
+
7
+ "example.com/openai/internal/runtime"
8
+ "github.com/urfave/cli/v3"
9
+ )
10
+
11
+ func NewOrganizationCommand() *cli.Command {
12
+ return &cli.Command{
13
+ Name: "organization",
14
+ Commands: []*cli.Command{
15
+ &cli.Command{
16
+ Name: "groups",
17
+ Commands: []*cli.Command{
18
+ &cli.Command{
19
+ Name: "roles",
20
+ Commands: []*cli.Command{
21
+ &cli.Command{
22
+ Name: "delete",
23
+ Usage: "Unassigns an organization role from a group within the organization.",
24
+ Action: handleOrganizationGroupsRolesDelete,
25
+ },
26
+ },
27
+ },
28
+ },
29
+ },
30
+ },
31
+ }
32
+ }
33
+
34
+ func handleOrganizationGroupsRolesDelete(ctx context.Context, cmd *cli.Command) error {
35
+ groupID := cmd.Args().Get(0)
36
+ roleID := cmd.Args().Get(1)
37
+ path := "/organization/groups/" + url.PathEscape(groupID) + "/roles/" + url.PathEscape(roleID)
38
+ req := runtime.Request{
39
+ Method: "DELETE",
40
+ Path: path,
41
+ }
42
+ return runtime.Do(ctx, req)
43
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "args": [
3
+ "organization",
4
+ "groups",
5
+ "roles",
6
+ "delete",
7
+ "EXAMPLE",
8
+ "EXAMPLE"
9
+ ],
10
+ "request": {
11
+ "method": "delete",
12
+ "path": "/organization/groups/{group_id}/roles/{role_id}",
13
+ "query": [],
14
+ "bodyFields": [],
15
+ "auth": "bearer"
16
+ }
17
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "opencli": "1.0.0",
3
+ "info": {
4
+ "title": "openai",
5
+ "version": "2.3.0"
6
+ },
7
+ "x-openapi": {
8
+ "servers": [
9
+ "https://api.openai.com/v1"
10
+ ],
11
+ "security": [
12
+ {
13
+ "type": "http",
14
+ "kind": "bearer",
15
+ "envVar": "OPENAI_API_KEY",
16
+ "scheme": "bearer"
17
+ },
18
+ {
19
+ "type": "http",
20
+ "kind": "bearer",
21
+ "envVar": "OPENAI_API_KEY",
22
+ "scheme": "bearer"
23
+ }
24
+ ]
25
+ },
26
+ "commands": [
27
+ {
28
+ "name": "organization",
29
+ "commands": [
30
+ {
31
+ "name": "groups",
32
+ "commands": [
33
+ {
34
+ "name": "roles",
35
+ "commands": [
36
+ {
37
+ "name": "list",
38
+ "description": "Lists the organization roles assigned to a group within the organization.",
39
+ "arguments": [
40
+ {
41
+ "name": "group-id",
42
+ "required": true,
43
+ "description": "The ID of the group whose organization role assignments you want to list."
44
+ }
45
+ ],
46
+ "options": [
47
+ {
48
+ "name": "limit",
49
+ "description": "A limit on the number of organization role assignments to return.",
50
+ "group": "query",
51
+ "arguments": [
52
+ {
53
+ "name": "integer"
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ "name": "after",
59
+ "description": "Cursor for pagination. Provide the value from the previous response's `next` field to continue listing organization roles.",
60
+ "group": "query",
61
+ "arguments": [
62
+ {
63
+ "name": "string"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "name": "order",
69
+ "description": "Sort order for the returned organization roles.",
70
+ "group": "query",
71
+ "arguments": [
72
+ {
73
+ "name": "string",
74
+ "acceptedValues": [
75
+ "asc",
76
+ "desc"
77
+ ]
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "x-openapi": {
83
+ "method": "get",
84
+ "path": "/organization/groups/{group_id}/roles",
85
+ "operationId": "list-group-role-assignments",
86
+ "params": [
87
+ {
88
+ "in": "path",
89
+ "name": "group_id",
90
+ "from": "argument:group-id",
91
+ "required": true
92
+ },
93
+ {
94
+ "in": "query",
95
+ "name": "limit",
96
+ "from": "option:limit"
97
+ },
98
+ {
99
+ "in": "query",
100
+ "name": "after",
101
+ "from": "option:after"
102
+ },
103
+ {
104
+ "in": "query",
105
+ "name": "order",
106
+ "from": "option:order"
107
+ }
108
+ ]
109
+ }
110
+ }
111
+ ]
112
+ }
113
+ ]
114
+ }
115
+ ]
116
+ }
117
+ ]
118
+ }
@@ -0,0 +1,68 @@
1
+ package cmd
2
+
3
+ import (
4
+ "context"
5
+ "fmt"
6
+ "net/url"
7
+
8
+ "example.com/openai/internal/runtime"
9
+ "github.com/urfave/cli/v3"
10
+ )
11
+
12
+ func NewOrganizationCommand() *cli.Command {
13
+ return &cli.Command{
14
+ Name: "organization",
15
+ Commands: []*cli.Command{
16
+ &cli.Command{
17
+ Name: "groups",
18
+ Commands: []*cli.Command{
19
+ &cli.Command{
20
+ Name: "roles",
21
+ Commands: []*cli.Command{
22
+ &cli.Command{
23
+ Name: "list",
24
+ Usage: "Lists the organization roles assigned to a group within the organization.",
25
+ Flags: []cli.Flag{
26
+ &cli.IntFlag{
27
+ Name: "limit",
28
+ Usage: "A limit on the number of organization role assignments to return.",
29
+ },
30
+ &cli.StringFlag{
31
+ Name: "after",
32
+ Usage: "Cursor for pagination. Provide the value from the previous response's `next` field to continue listing organization roles.",
33
+ },
34
+ &cli.StringFlag{
35
+ Name: "order",
36
+ Usage: "Sort order for the returned organization roles.",
37
+ },
38
+ },
39
+ Action: handleOrganizationGroupsRolesList,
40
+ },
41
+ },
42
+ },
43
+ },
44
+ },
45
+ },
46
+ }
47
+ }
48
+
49
+ func handleOrganizationGroupsRolesList(ctx context.Context, cmd *cli.Command) error {
50
+ groupID := cmd.Args().Get(0)
51
+ path := "/organization/groups/" + url.PathEscape(groupID) + "/roles"
52
+ query := url.Values{}
53
+ if cmd.IsSet("limit") {
54
+ query.Set("limit", fmt.Sprint(cmd.Int("limit")))
55
+ }
56
+ if cmd.IsSet("after") {
57
+ query.Set("after", cmd.String("after"))
58
+ }
59
+ if cmd.IsSet("order") {
60
+ query.Set("order", cmd.String("order"))
61
+ }
62
+ req := runtime.Request{
63
+ Method: "GET",
64
+ Path: path,
65
+ Query: query,
66
+ }
67
+ return runtime.Do(ctx, req)
68
+ }