@hedra/sdk 4.0.0 → 5.0.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 (380) hide show
  1. package/dist/cjs/BaseClient.d.ts +2 -2
  2. package/dist/cjs/BaseClient.js +3 -3
  3. package/dist/cjs/api/resources/billing/client/Client.d.ts +22 -0
  4. package/dist/cjs/api/resources/billing/client/Client.js +78 -2
  5. package/dist/cjs/api/resources/billing/client/requests/BillingListTransactionsRequest.d.ts +10 -0
  6. package/dist/cjs/api/resources/billing/client/requests/BillingListTransactionsRequest.js +3 -0
  7. package/dist/cjs/api/resources/billing/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/files/client/Client.js +1 -1
  9. package/dist/cjs/api/resources/jobs/client/Client.d.ts +121 -72
  10. package/dist/cjs/api/resources/jobs/client/Client.js +320 -167
  11. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.d.ts +17 -0
  12. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.js +3 -0
  13. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGptImage2.d.ts +1 -2
  14. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.d.ts +18 -0
  15. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.js +3 -0
  16. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyHidreamO1Image.d.ts +1 -2
  17. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyIdeogramV4.d.ts +1 -2
  18. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingAiAvatarV2.d.ts +1 -2
  19. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.ts +1 -2
  20. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.ts +1 -2
  21. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyLtx23.d.ts +1 -2
  22. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyLumaRay32.d.ts +1 -1
  23. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMaiImage25.d.ts +1 -2
  24. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxH3.d.ts +1 -1
  25. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo02.d.ts +1 -2
  26. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo23.d.ts +1 -2
  27. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyNanoBanana2.d.ts +2 -2
  28. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyNanoBananaPro.d.ts +1 -1
  29. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyQwenImage2.d.ts +1 -2
  30. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodySeedance20.d.ts +1 -2
  31. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeo3.d.ts +1 -2
  32. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyVeo31.d.ts +1 -2
  33. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyViduQ3.d.ts +1 -2
  34. package/dist/cjs/api/resources/jobs/client/requests/SubmitBodyWan30.d.ts +1 -2
  35. package/dist/cjs/api/resources/jobs/client/requests/index.d.ts +2 -0
  36. package/dist/cjs/api/resources/keys/client/Client.js +4 -4
  37. package/dist/cjs/api/resources/logDrains/client/Client.js +6 -6
  38. package/dist/cjs/api/resources/models/client/Client.d.ts +23 -0
  39. package/dist/cjs/api/resources/models/client/Client.js +85 -6
  40. package/dist/cjs/api/resources/models/client/requests/ModelsSearchVoicesRequest.d.ts +17 -0
  41. package/dist/cjs/api/resources/models/client/requests/ModelsSearchVoicesRequest.js +3 -0
  42. package/dist/cjs/api/resources/models/client/requests/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/tokens/client/Client.js +1 -1
  44. package/dist/cjs/api/resources/webhooks/client/Client.js +7 -7
  45. package/dist/cjs/api/types/InputElevenlabsMusic.d.ts +13 -0
  46. package/dist/cjs/api/types/InputElevenlabsMusic.js +3 -0
  47. package/dist/cjs/api/types/InputFlux3.d.ts +2 -2
  48. package/dist/cjs/api/types/InputFlux3EndImage.d.ts +1 -1
  49. package/dist/cjs/api/types/InputFlux3StartImage.d.ts +1 -1
  50. package/dist/cjs/api/types/InputGeminiOmniFlash.d.ts +2 -2
  51. package/dist/cjs/api/types/InputGeminiOmniFlashSourceVideo.d.ts +1 -1
  52. package/dist/cjs/api/types/InputGeminiOmniFlashStartImage.d.ts +1 -1
  53. package/dist/cjs/api/types/InputGptImage2.d.ts +3 -3
  54. package/dist/cjs/api/types/InputGptImage2.js +1 -1
  55. package/dist/cjs/api/types/InputGrokImagine.d.ts +32 -3
  56. package/dist/cjs/api/types/InputGrokImagine.js +22 -1
  57. package/dist/cjs/api/types/InputGrokImagine20.d.ts +52 -0
  58. package/dist/cjs/api/types/InputGrokImagine20.js +34 -0
  59. package/dist/cjs/api/types/InputGrokImagine20ImagesItem.d.ts +20 -0
  60. package/dist/cjs/api/types/InputGrokImagine20ImagesItem.js +3 -0
  61. package/dist/cjs/api/types/InputGrokVideo.d.ts +1 -1
  62. package/dist/cjs/api/types/InputGrokVideoStartImage.d.ts +1 -1
  63. package/dist/cjs/api/types/InputHappyHorse.d.ts +1 -1
  64. package/dist/cjs/api/types/InputHappyHorseStartImage.d.ts +1 -1
  65. package/dist/cjs/api/types/InputHedraAvatar.d.ts +1 -1
  66. package/dist/cjs/api/types/InputHedraAvatarStartImage.d.ts +1 -1
  67. package/dist/cjs/api/types/InputHedraCharacter3.d.ts +1 -1
  68. package/dist/cjs/api/types/InputHedraCharacter3StartImage.d.ts +1 -1
  69. package/dist/cjs/api/types/InputHidreamO1Image.d.ts +3 -3
  70. package/dist/cjs/api/types/InputHidreamO1Image.js +1 -1
  71. package/dist/cjs/api/types/InputIdeogramV4.d.ts +3 -3
  72. package/dist/cjs/api/types/InputIdeogramV4.js +1 -1
  73. package/dist/cjs/api/types/InputKling16.d.ts +1 -1
  74. package/dist/cjs/api/types/InputKling16StartImage.d.ts +1 -1
  75. package/dist/cjs/api/types/InputKling21Master.d.ts +1 -1
  76. package/dist/cjs/api/types/InputKling21MasterStartImage.d.ts +1 -1
  77. package/dist/cjs/api/types/InputKling25Turbo.d.ts +1 -1
  78. package/dist/cjs/api/types/InputKling25TurboStartImage.d.ts +1 -1
  79. package/dist/cjs/api/types/InputKling26MotionControl.d.ts +2 -2
  80. package/dist/cjs/api/types/InputKling26MotionControlSourceVideo.d.ts +1 -1
  81. package/dist/cjs/api/types/InputKling26MotionControlStartImage.d.ts +1 -1
  82. package/dist/cjs/api/types/InputKling26Pro.d.ts +1 -1
  83. package/dist/cjs/api/types/InputKling26ProStartImage.d.ts +1 -1
  84. package/dist/cjs/api/types/InputKlingAiAvatarV2.d.ts +4 -4
  85. package/dist/cjs/api/types/InputKlingAiAvatarV2.js +1 -1
  86. package/dist/cjs/api/types/InputKlingAiAvatarV2StartImage.d.ts +1 -1
  87. package/dist/cjs/api/types/InputKlingO1.d.ts +2 -2
  88. package/dist/cjs/api/types/InputKlingO1EndImage.d.ts +1 -1
  89. package/dist/cjs/api/types/InputKlingO1StartImage.d.ts +1 -1
  90. package/dist/cjs/api/types/InputKlingO3.d.ts +5 -5
  91. package/dist/cjs/api/types/InputKlingO3.js +1 -1
  92. package/dist/cjs/api/types/InputKlingO3Edit.d.ts +1 -1
  93. package/dist/cjs/api/types/InputKlingO3EditSourceVideo.d.ts +1 -1
  94. package/dist/cjs/api/types/InputKlingO3EndImage.d.ts +1 -1
  95. package/dist/cjs/api/types/InputKlingO3Reference.d.ts +1 -1
  96. package/dist/cjs/api/types/InputKlingO3ReferenceSourceVideo.d.ts +1 -1
  97. package/dist/cjs/api/types/InputKlingO3StartImage.d.ts +1 -1
  98. package/dist/cjs/api/types/InputKlingV3.d.ts +5 -5
  99. package/dist/cjs/api/types/InputKlingV3.js +1 -1
  100. package/dist/cjs/api/types/InputKlingV3EndImage.d.ts +1 -1
  101. package/dist/cjs/api/types/InputKlingV3MotionControl.d.ts +2 -2
  102. package/dist/cjs/api/types/InputKlingV3MotionControlSourceVideo.d.ts +1 -1
  103. package/dist/cjs/api/types/InputKlingV3MotionControlStartImage.d.ts +1 -1
  104. package/dist/cjs/api/types/InputKlingV3StartImage.d.ts +1 -1
  105. package/dist/cjs/api/types/InputLtx23.d.ts +5 -5
  106. package/dist/cjs/api/types/InputLtx23.js +1 -1
  107. package/dist/cjs/api/types/InputLtx23EndImage.d.ts +1 -1
  108. package/dist/cjs/api/types/InputLtx23StartImage.d.ts +1 -1
  109. package/dist/cjs/api/types/InputLumaRay32.d.ts +2 -2
  110. package/dist/cjs/api/types/InputLumaRay32.js +2 -2
  111. package/dist/cjs/api/types/InputMaiImage25.d.ts +3 -3
  112. package/dist/cjs/api/types/InputMaiImage25.js +1 -1
  113. package/dist/cjs/api/types/InputMinimaxH3.d.ts +3 -2
  114. package/dist/cjs/api/types/InputMinimaxH3.js +1 -0
  115. package/dist/cjs/api/types/InputMinimaxH3EndImage.d.ts +1 -1
  116. package/dist/cjs/api/types/InputMinimaxH3StartImage.d.ts +1 -1
  117. package/dist/cjs/api/types/InputMinimaxHailuo02.d.ts +5 -5
  118. package/dist/cjs/api/types/InputMinimaxHailuo02.js +1 -1
  119. package/dist/cjs/api/types/InputMinimaxHailuo02EndImage.d.ts +1 -1
  120. package/dist/cjs/api/types/InputMinimaxHailuo02StartImage.d.ts +1 -1
  121. package/dist/cjs/api/types/InputMinimaxHailuo23.d.ts +4 -4
  122. package/dist/cjs/api/types/InputMinimaxHailuo23.js +1 -1
  123. package/dist/cjs/api/types/InputMinimaxHailuo23StartImage.d.ts +1 -1
  124. package/dist/cjs/api/types/InputNanoBanana.d.ts +2 -2
  125. package/dist/cjs/api/types/InputNanoBanana.js +1 -1
  126. package/dist/cjs/api/types/InputNanoBanana2.d.ts +20 -2
  127. package/dist/cjs/api/types/InputNanoBanana2.js +12 -1
  128. package/dist/cjs/api/types/InputNanoBananaPro.d.ts +5 -2
  129. package/dist/cjs/api/types/InputNanoBananaPro.js +2 -1
  130. package/dist/cjs/api/types/InputOmnihuman15.d.ts +1 -1
  131. package/dist/cjs/api/types/InputOmnihuman15StartImage.d.ts +1 -1
  132. package/dist/cjs/api/types/InputPixverseV6.d.ts +1 -1
  133. package/dist/cjs/api/types/InputPixverseV6StartImage.d.ts +1 -1
  134. package/dist/cjs/api/types/InputQwenImage2.d.ts +3 -3
  135. package/dist/cjs/api/types/InputQwenImage2.js +1 -1
  136. package/dist/cjs/api/types/InputSeedance15Pro.d.ts +3 -2
  137. package/dist/cjs/api/types/InputSeedance15Pro.js +1 -0
  138. package/dist/cjs/api/types/InputSeedance15ProEndImage.d.ts +1 -1
  139. package/dist/cjs/api/types/InputSeedance15ProStartImage.d.ts +1 -1
  140. package/dist/cjs/api/types/InputSeedance20.d.ts +6 -5
  141. package/dist/cjs/api/types/InputSeedance20.js +2 -1
  142. package/dist/cjs/api/types/InputSeedance20EndImage.d.ts +1 -1
  143. package/dist/cjs/api/types/InputSeedance20Mini.d.ts +3 -2
  144. package/dist/cjs/api/types/InputSeedance20Mini.js +1 -0
  145. package/dist/cjs/api/types/InputSeedance20MiniEndImage.d.ts +1 -1
  146. package/dist/cjs/api/types/InputSeedance20MiniStartImage.d.ts +1 -1
  147. package/dist/cjs/api/types/InputSeedance20StartImage.d.ts +1 -1
  148. package/dist/cjs/api/types/InputSeedance25.d.ts +2 -2
  149. package/dist/cjs/api/types/InputSeedance25EndImage.d.ts +1 -1
  150. package/dist/cjs/api/types/InputSeedance25StartImage.d.ts +1 -1
  151. package/dist/cjs/api/types/InputSeedream50Lite.d.ts +8 -0
  152. package/dist/cjs/api/types/InputSeedream50Lite.js +5 -0
  153. package/dist/cjs/api/types/InputSeedream50Pro.d.ts +8 -0
  154. package/dist/cjs/api/types/InputSeedream50Pro.js +5 -0
  155. package/dist/cjs/api/types/InputSora2Pro.d.ts +1 -1
  156. package/dist/cjs/api/types/InputSora2ProStartImage.d.ts +1 -1
  157. package/dist/cjs/api/types/InputVeedFabric10.d.ts +1 -1
  158. package/dist/cjs/api/types/InputVeedFabric10StartImage.d.ts +1 -1
  159. package/dist/cjs/api/types/InputVeo2.d.ts +1 -1
  160. package/dist/cjs/api/types/InputVeo2StartImage.d.ts +1 -1
  161. package/dist/cjs/api/types/InputVeo3.d.ts +4 -4
  162. package/dist/cjs/api/types/InputVeo3.js +1 -1
  163. package/dist/cjs/api/types/InputVeo31.d.ts +6 -6
  164. package/dist/cjs/api/types/InputVeo31.js +1 -1
  165. package/dist/cjs/api/types/InputVeo31EndImage.d.ts +1 -1
  166. package/dist/cjs/api/types/InputVeo31SourceVideo.d.ts +1 -1
  167. package/dist/cjs/api/types/InputVeo31StartImage.d.ts +1 -1
  168. package/dist/cjs/api/types/InputVeo3StartImage.d.ts +1 -1
  169. package/dist/cjs/api/types/InputViduQ3.d.ts +5 -5
  170. package/dist/cjs/api/types/InputViduQ3.js +1 -1
  171. package/dist/cjs/api/types/InputViduQ3EndImage.d.ts +1 -1
  172. package/dist/cjs/api/types/InputViduQ3StartImage.d.ts +1 -1
  173. package/dist/cjs/api/types/InputWan27.d.ts +2 -2
  174. package/dist/cjs/api/types/InputWan27EndImage.d.ts +1 -1
  175. package/dist/cjs/api/types/InputWan27StartImage.d.ts +1 -1
  176. package/dist/cjs/api/types/InputWan30.d.ts +5 -5
  177. package/dist/cjs/api/types/InputWan30.js +1 -1
  178. package/dist/cjs/api/types/InputWan30EndImage.d.ts +1 -1
  179. package/dist/cjs/api/types/InputWan30StartImage.d.ts +1 -1
  180. package/dist/cjs/api/types/TransactionListResponse.d.ts +7 -0
  181. package/dist/cjs/api/types/TransactionListResponse.js +3 -0
  182. package/dist/cjs/api/types/TransactionRecord.d.ts +15 -0
  183. package/dist/cjs/api/types/TransactionRecord.js +3 -0
  184. package/dist/cjs/api/types/VoiceGender.d.ts +12 -0
  185. package/dist/cjs/api/types/VoiceGender.js +15 -0
  186. package/dist/cjs/api/types/index.d.ts +6 -0
  187. package/dist/cjs/api/types/index.js +6 -0
  188. package/dist/cjs/version.d.ts +1 -1
  189. package/dist/cjs/version.js +1 -1
  190. package/dist/esm/BaseClient.d.mts +2 -2
  191. package/dist/esm/BaseClient.mjs +3 -3
  192. package/dist/esm/api/resources/billing/client/Client.d.mts +22 -0
  193. package/dist/esm/api/resources/billing/client/Client.mjs +78 -2
  194. package/dist/esm/api/resources/billing/client/requests/BillingListTransactionsRequest.d.mts +10 -0
  195. package/dist/esm/api/resources/billing/client/requests/BillingListTransactionsRequest.mjs +2 -0
  196. package/dist/esm/api/resources/billing/client/requests/index.d.mts +1 -0
  197. package/dist/esm/api/resources/files/client/Client.mjs +1 -1
  198. package/dist/esm/api/resources/jobs/client/Client.d.mts +121 -72
  199. package/dist/esm/api/resources/jobs/client/Client.mjs +320 -167
  200. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.d.mts +17 -0
  201. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyElevenlabsMusic.mjs +2 -0
  202. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGptImage2.d.mts +1 -2
  203. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.d.mts +18 -0
  204. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyGrokImagine20.mjs +2 -0
  205. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyHidreamO1Image.d.mts +1 -2
  206. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyIdeogramV4.d.mts +1 -2
  207. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingAiAvatarV2.d.mts +1 -2
  208. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingO3.d.mts +1 -2
  209. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyKlingV3.d.mts +1 -2
  210. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyLtx23.d.mts +1 -2
  211. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyLumaRay32.d.mts +1 -1
  212. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMaiImage25.d.mts +1 -2
  213. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxH3.d.mts +1 -1
  214. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo02.d.mts +1 -2
  215. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyMinimaxHailuo23.d.mts +1 -2
  216. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyNanoBanana2.d.mts +2 -2
  217. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyNanoBananaPro.d.mts +1 -1
  218. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyQwenImage2.d.mts +1 -2
  219. package/dist/esm/api/resources/jobs/client/requests/SubmitBodySeedance20.d.mts +1 -2
  220. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeo3.d.mts +1 -2
  221. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyVeo31.d.mts +1 -2
  222. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyViduQ3.d.mts +1 -2
  223. package/dist/esm/api/resources/jobs/client/requests/SubmitBodyWan30.d.mts +1 -2
  224. package/dist/esm/api/resources/jobs/client/requests/index.d.mts +2 -0
  225. package/dist/esm/api/resources/keys/client/Client.mjs +4 -4
  226. package/dist/esm/api/resources/logDrains/client/Client.mjs +6 -6
  227. package/dist/esm/api/resources/models/client/Client.d.mts +23 -0
  228. package/dist/esm/api/resources/models/client/Client.mjs +85 -6
  229. package/dist/esm/api/resources/models/client/requests/ModelsSearchVoicesRequest.d.mts +17 -0
  230. package/dist/esm/api/resources/models/client/requests/ModelsSearchVoicesRequest.mjs +2 -0
  231. package/dist/esm/api/resources/models/client/requests/index.d.mts +1 -0
  232. package/dist/esm/api/resources/tokens/client/Client.mjs +1 -1
  233. package/dist/esm/api/resources/webhooks/client/Client.mjs +7 -7
  234. package/dist/esm/api/types/InputElevenlabsMusic.d.mts +13 -0
  235. package/dist/esm/api/types/InputElevenlabsMusic.mjs +2 -0
  236. package/dist/esm/api/types/InputFlux3.d.mts +2 -2
  237. package/dist/esm/api/types/InputFlux3EndImage.d.mts +1 -1
  238. package/dist/esm/api/types/InputFlux3StartImage.d.mts +1 -1
  239. package/dist/esm/api/types/InputGeminiOmniFlash.d.mts +2 -2
  240. package/dist/esm/api/types/InputGeminiOmniFlashSourceVideo.d.mts +1 -1
  241. package/dist/esm/api/types/InputGeminiOmniFlashStartImage.d.mts +1 -1
  242. package/dist/esm/api/types/InputGptImage2.d.mts +3 -3
  243. package/dist/esm/api/types/InputGptImage2.mjs +1 -1
  244. package/dist/esm/api/types/InputGrokImagine.d.mts +32 -3
  245. package/dist/esm/api/types/InputGrokImagine.mjs +22 -1
  246. package/dist/esm/api/types/InputGrokImagine20.d.mts +52 -0
  247. package/dist/esm/api/types/InputGrokImagine20.mjs +31 -0
  248. package/dist/esm/api/types/InputGrokImagine20ImagesItem.d.mts +20 -0
  249. package/dist/esm/api/types/InputGrokImagine20ImagesItem.mjs +2 -0
  250. package/dist/esm/api/types/InputGrokVideo.d.mts +1 -1
  251. package/dist/esm/api/types/InputGrokVideoStartImage.d.mts +1 -1
  252. package/dist/esm/api/types/InputHappyHorse.d.mts +1 -1
  253. package/dist/esm/api/types/InputHappyHorseStartImage.d.mts +1 -1
  254. package/dist/esm/api/types/InputHedraAvatar.d.mts +1 -1
  255. package/dist/esm/api/types/InputHedraAvatarStartImage.d.mts +1 -1
  256. package/dist/esm/api/types/InputHedraCharacter3.d.mts +1 -1
  257. package/dist/esm/api/types/InputHedraCharacter3StartImage.d.mts +1 -1
  258. package/dist/esm/api/types/InputHidreamO1Image.d.mts +3 -3
  259. package/dist/esm/api/types/InputHidreamO1Image.mjs +1 -1
  260. package/dist/esm/api/types/InputIdeogramV4.d.mts +3 -3
  261. package/dist/esm/api/types/InputIdeogramV4.mjs +1 -1
  262. package/dist/esm/api/types/InputKling16.d.mts +1 -1
  263. package/dist/esm/api/types/InputKling16StartImage.d.mts +1 -1
  264. package/dist/esm/api/types/InputKling21Master.d.mts +1 -1
  265. package/dist/esm/api/types/InputKling21MasterStartImage.d.mts +1 -1
  266. package/dist/esm/api/types/InputKling25Turbo.d.mts +1 -1
  267. package/dist/esm/api/types/InputKling25TurboStartImage.d.mts +1 -1
  268. package/dist/esm/api/types/InputKling26MotionControl.d.mts +2 -2
  269. package/dist/esm/api/types/InputKling26MotionControlSourceVideo.d.mts +1 -1
  270. package/dist/esm/api/types/InputKling26MotionControlStartImage.d.mts +1 -1
  271. package/dist/esm/api/types/InputKling26Pro.d.mts +1 -1
  272. package/dist/esm/api/types/InputKling26ProStartImage.d.mts +1 -1
  273. package/dist/esm/api/types/InputKlingAiAvatarV2.d.mts +4 -4
  274. package/dist/esm/api/types/InputKlingAiAvatarV2.mjs +1 -1
  275. package/dist/esm/api/types/InputKlingAiAvatarV2StartImage.d.mts +1 -1
  276. package/dist/esm/api/types/InputKlingO1.d.mts +2 -2
  277. package/dist/esm/api/types/InputKlingO1EndImage.d.mts +1 -1
  278. package/dist/esm/api/types/InputKlingO1StartImage.d.mts +1 -1
  279. package/dist/esm/api/types/InputKlingO3.d.mts +5 -5
  280. package/dist/esm/api/types/InputKlingO3.mjs +1 -1
  281. package/dist/esm/api/types/InputKlingO3Edit.d.mts +1 -1
  282. package/dist/esm/api/types/InputKlingO3EditSourceVideo.d.mts +1 -1
  283. package/dist/esm/api/types/InputKlingO3EndImage.d.mts +1 -1
  284. package/dist/esm/api/types/InputKlingO3Reference.d.mts +1 -1
  285. package/dist/esm/api/types/InputKlingO3ReferenceSourceVideo.d.mts +1 -1
  286. package/dist/esm/api/types/InputKlingO3StartImage.d.mts +1 -1
  287. package/dist/esm/api/types/InputKlingV3.d.mts +5 -5
  288. package/dist/esm/api/types/InputKlingV3.mjs +1 -1
  289. package/dist/esm/api/types/InputKlingV3EndImage.d.mts +1 -1
  290. package/dist/esm/api/types/InputKlingV3MotionControl.d.mts +2 -2
  291. package/dist/esm/api/types/InputKlingV3MotionControlSourceVideo.d.mts +1 -1
  292. package/dist/esm/api/types/InputKlingV3MotionControlStartImage.d.mts +1 -1
  293. package/dist/esm/api/types/InputKlingV3StartImage.d.mts +1 -1
  294. package/dist/esm/api/types/InputLtx23.d.mts +5 -5
  295. package/dist/esm/api/types/InputLtx23.mjs +1 -1
  296. package/dist/esm/api/types/InputLtx23EndImage.d.mts +1 -1
  297. package/dist/esm/api/types/InputLtx23StartImage.d.mts +1 -1
  298. package/dist/esm/api/types/InputLumaRay32.d.mts +2 -2
  299. package/dist/esm/api/types/InputLumaRay32.mjs +2 -2
  300. package/dist/esm/api/types/InputMaiImage25.d.mts +3 -3
  301. package/dist/esm/api/types/InputMaiImage25.mjs +1 -1
  302. package/dist/esm/api/types/InputMinimaxH3.d.mts +3 -2
  303. package/dist/esm/api/types/InputMinimaxH3.mjs +1 -0
  304. package/dist/esm/api/types/InputMinimaxH3EndImage.d.mts +1 -1
  305. package/dist/esm/api/types/InputMinimaxH3StartImage.d.mts +1 -1
  306. package/dist/esm/api/types/InputMinimaxHailuo02.d.mts +5 -5
  307. package/dist/esm/api/types/InputMinimaxHailuo02.mjs +1 -1
  308. package/dist/esm/api/types/InputMinimaxHailuo02EndImage.d.mts +1 -1
  309. package/dist/esm/api/types/InputMinimaxHailuo02StartImage.d.mts +1 -1
  310. package/dist/esm/api/types/InputMinimaxHailuo23.d.mts +4 -4
  311. package/dist/esm/api/types/InputMinimaxHailuo23.mjs +1 -1
  312. package/dist/esm/api/types/InputMinimaxHailuo23StartImage.d.mts +1 -1
  313. package/dist/esm/api/types/InputNanoBanana.d.mts +2 -2
  314. package/dist/esm/api/types/InputNanoBanana.mjs +1 -1
  315. package/dist/esm/api/types/InputNanoBanana2.d.mts +20 -2
  316. package/dist/esm/api/types/InputNanoBanana2.mjs +12 -1
  317. package/dist/esm/api/types/InputNanoBananaPro.d.mts +5 -2
  318. package/dist/esm/api/types/InputNanoBananaPro.mjs +2 -1
  319. package/dist/esm/api/types/InputOmnihuman15.d.mts +1 -1
  320. package/dist/esm/api/types/InputOmnihuman15StartImage.d.mts +1 -1
  321. package/dist/esm/api/types/InputPixverseV6.d.mts +1 -1
  322. package/dist/esm/api/types/InputPixverseV6StartImage.d.mts +1 -1
  323. package/dist/esm/api/types/InputQwenImage2.d.mts +3 -3
  324. package/dist/esm/api/types/InputQwenImage2.mjs +1 -1
  325. package/dist/esm/api/types/InputSeedance15Pro.d.mts +3 -2
  326. package/dist/esm/api/types/InputSeedance15Pro.mjs +1 -0
  327. package/dist/esm/api/types/InputSeedance15ProEndImage.d.mts +1 -1
  328. package/dist/esm/api/types/InputSeedance15ProStartImage.d.mts +1 -1
  329. package/dist/esm/api/types/InputSeedance20.d.mts +6 -5
  330. package/dist/esm/api/types/InputSeedance20.mjs +2 -1
  331. package/dist/esm/api/types/InputSeedance20EndImage.d.mts +1 -1
  332. package/dist/esm/api/types/InputSeedance20Mini.d.mts +3 -2
  333. package/dist/esm/api/types/InputSeedance20Mini.mjs +1 -0
  334. package/dist/esm/api/types/InputSeedance20MiniEndImage.d.mts +1 -1
  335. package/dist/esm/api/types/InputSeedance20MiniStartImage.d.mts +1 -1
  336. package/dist/esm/api/types/InputSeedance20StartImage.d.mts +1 -1
  337. package/dist/esm/api/types/InputSeedance25.d.mts +2 -2
  338. package/dist/esm/api/types/InputSeedance25EndImage.d.mts +1 -1
  339. package/dist/esm/api/types/InputSeedance25StartImage.d.mts +1 -1
  340. package/dist/esm/api/types/InputSeedream50Lite.d.mts +8 -0
  341. package/dist/esm/api/types/InputSeedream50Lite.mjs +5 -0
  342. package/dist/esm/api/types/InputSeedream50Pro.d.mts +8 -0
  343. package/dist/esm/api/types/InputSeedream50Pro.mjs +5 -0
  344. package/dist/esm/api/types/InputSora2Pro.d.mts +1 -1
  345. package/dist/esm/api/types/InputSora2ProStartImage.d.mts +1 -1
  346. package/dist/esm/api/types/InputVeedFabric10.d.mts +1 -1
  347. package/dist/esm/api/types/InputVeedFabric10StartImage.d.mts +1 -1
  348. package/dist/esm/api/types/InputVeo2.d.mts +1 -1
  349. package/dist/esm/api/types/InputVeo2StartImage.d.mts +1 -1
  350. package/dist/esm/api/types/InputVeo3.d.mts +4 -4
  351. package/dist/esm/api/types/InputVeo3.mjs +1 -1
  352. package/dist/esm/api/types/InputVeo31.d.mts +6 -6
  353. package/dist/esm/api/types/InputVeo31.mjs +1 -1
  354. package/dist/esm/api/types/InputVeo31EndImage.d.mts +1 -1
  355. package/dist/esm/api/types/InputVeo31SourceVideo.d.mts +1 -1
  356. package/dist/esm/api/types/InputVeo31StartImage.d.mts +1 -1
  357. package/dist/esm/api/types/InputVeo3StartImage.d.mts +1 -1
  358. package/dist/esm/api/types/InputViduQ3.d.mts +5 -5
  359. package/dist/esm/api/types/InputViduQ3.mjs +1 -1
  360. package/dist/esm/api/types/InputViduQ3EndImage.d.mts +1 -1
  361. package/dist/esm/api/types/InputViduQ3StartImage.d.mts +1 -1
  362. package/dist/esm/api/types/InputWan27.d.mts +2 -2
  363. package/dist/esm/api/types/InputWan27EndImage.d.mts +1 -1
  364. package/dist/esm/api/types/InputWan27StartImage.d.mts +1 -1
  365. package/dist/esm/api/types/InputWan30.d.mts +5 -5
  366. package/dist/esm/api/types/InputWan30.mjs +1 -1
  367. package/dist/esm/api/types/InputWan30EndImage.d.mts +1 -1
  368. package/dist/esm/api/types/InputWan30StartImage.d.mts +1 -1
  369. package/dist/esm/api/types/TransactionListResponse.d.mts +7 -0
  370. package/dist/esm/api/types/TransactionListResponse.mjs +2 -0
  371. package/dist/esm/api/types/TransactionRecord.d.mts +15 -0
  372. package/dist/esm/api/types/TransactionRecord.mjs +2 -0
  373. package/dist/esm/api/types/VoiceGender.d.mts +12 -0
  374. package/dist/esm/api/types/VoiceGender.mjs +12 -0
  375. package/dist/esm/api/types/index.d.mts +6 -0
  376. package/dist/esm/api/types/index.mjs +6 -0
  377. package/dist/esm/version.d.mts +1 -1
  378. package/dist/esm/version.mjs +1 -1
  379. package/package.json +2 -2
  380. package/reference.md +341 -72
@@ -7,7 +7,7 @@ export type BaseClientOptions = {
7
7
  /** Specify a custom URL to connect the client to. */
8
8
  baseUrl?: core.Supplier<string>;
9
9
  /** Override the X-Hedra-Spec-Version header */
10
- specVersion?: "3.13.3";
10
+ specVersion?: "3.16.0";
11
11
  /** Additional headers to include in requests. */
12
12
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
13
13
  /** The default maximum time to wait for a response in seconds. */
@@ -34,7 +34,7 @@ export interface BaseRequestOptions {
34
34
  /** A hook to abort the request. */
35
35
  abortSignal?: AbortSignal;
36
36
  /** Override the X-Hedra-Spec-Version header */
37
- specVersion?: "3.13.3";
37
+ specVersion?: "3.16.0";
38
38
  /** Additional query string parameters to include in the request. */
39
39
  queryParams?: Record<string, unknown>;
40
40
  /** A dictionary containing additional parameters to spread into the request's body. */
@@ -44,11 +44,11 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_js_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "@hedra/sdk",
47
- "X-Fern-SDK-Version": "4.0.0",
48
- "User-Agent": "@hedra/sdk/4.0.0",
47
+ "X-Fern-SDK-Version": "5.0.0",
48
+ "User-Agent": "hedra-node/5.0.0",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
- "X-Hedra-Spec-Version": (_a = options === null || options === void 0 ? void 0 : options.specVersion) !== null && _a !== void 0 ? _a : "3.13.3",
51
+ "X-Hedra-Spec-Version": (_a = options === null || options === void 0 ? void 0 : options.specVersion) !== null && _a !== void 0 ? _a : "3.16.0",
52
52
  }, options === null || options === void 0 ? void 0 : options.headers);
53
53
  return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
54
54
  }
@@ -48,4 +48,26 @@ export declare class BillingClient {
48
48
  */
49
49
  getUsage(request?: Hedra.BillingGetUsageRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Hedra.UsageResponse>;
50
50
  private __getUsage;
51
+ /**
52
+ * Every movement of the API wallet's balance, newest first: funds added,
53
+ * jobs charged, charges refunded, and corrections. Scoped to the workspace
54
+ * the credential bills, the same one `GET /v3/balance` reports.
55
+ *
56
+ * @param {Hedra.BillingListTransactionsRequest} request
57
+ * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
58
+ *
59
+ * @throws {@link Hedra.BadRequestError}
60
+ * @throws {@link Hedra.UnauthorizedError}
61
+ * @throws {@link Hedra.ForbiddenError}
62
+ * @throws {@link Hedra.NotFoundError}
63
+ * @throws {@link Hedra.TooManyRequestsError}
64
+ * @throws {@link Hedra.InternalServerError}
65
+ * @throws {@link errors.HedraError}
66
+ * @throws {@link errors.HedraTimeoutError}
67
+ *
68
+ * @example
69
+ * await client.billing.listTransactions()
70
+ */
71
+ listTransactions(request?: Hedra.BillingListTransactionsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Hedra.TransactionListResponse>;
72
+ private __listTransactions;
51
73
  }
@@ -80,7 +80,7 @@ class BillingClient {
80
80
  return __awaiter(this, void 0, void 0, function* () {
81
81
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
82
82
  const _authRequest = yield this._options.authProvider.getAuthRequest();
83
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
83
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
84
84
  const _response = yield core.fetcher({
85
85
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "balance"),
86
86
  method: "GET",
@@ -149,7 +149,7 @@ class BillingClient {
149
149
  group_by: groupBy != null ? groupBy : undefined,
150
150
  };
151
151
  const _authRequest = yield this._options.authProvider.getAuthRequest();
152
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
153
153
  const _response = yield core.fetcher({
154
154
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "usage"),
155
155
  method: "GET",
@@ -193,5 +193,81 @@ class BillingClient {
193
193
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/usage");
194
194
  });
195
195
  }
196
+ /**
197
+ * Every movement of the API wallet's balance, newest first: funds added,
198
+ * jobs charged, charges refunded, and corrections. Scoped to the workspace
199
+ * the credential bills, the same one `GET /v3/balance` reports.
200
+ *
201
+ * @param {Hedra.BillingListTransactionsRequest} request
202
+ * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
203
+ *
204
+ * @throws {@link Hedra.BadRequestError}
205
+ * @throws {@link Hedra.UnauthorizedError}
206
+ * @throws {@link Hedra.ForbiddenError}
207
+ * @throws {@link Hedra.NotFoundError}
208
+ * @throws {@link Hedra.TooManyRequestsError}
209
+ * @throws {@link Hedra.InternalServerError}
210
+ * @throws {@link errors.HedraError}
211
+ * @throws {@link errors.HedraTimeoutError}
212
+ *
213
+ * @example
214
+ * await client.billing.listTransactions()
215
+ */
216
+ listTransactions(request = {}, requestOptions) {
217
+ return core.HttpResponsePromise.fromPromise(this.__listTransactions(request, requestOptions));
218
+ }
219
+ __listTransactions() {
220
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
221
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
222
+ const { limit, cursor } = request;
223
+ const _queryParams = {
224
+ limit,
225
+ cursor,
226
+ };
227
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
228
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
229
+ const _response = yield core.fetcher({
230
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "transactions"),
231
+ method: "GET",
232
+ headers: _headers,
233
+ queryString: core.url
234
+ .queryBuilder()
235
+ .addMany(_queryParams)
236
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
237
+ .build(),
238
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
239
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
240
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
241
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
242
+ logging: this._options.logging,
243
+ });
244
+ if (_response.ok) {
245
+ return { data: _response.body, rawResponse: _response.rawResponse };
246
+ }
247
+ if (_response.error.reason === "status-code") {
248
+ switch (_response.error.statusCode) {
249
+ case 400:
250
+ throw new Hedra.BadRequestError(_response.error.body, _response.rawResponse);
251
+ case 401:
252
+ throw new Hedra.UnauthorizedError(_response.error.body, _response.rawResponse);
253
+ case 403:
254
+ throw new Hedra.ForbiddenError(_response.error.body, _response.rawResponse);
255
+ case 404:
256
+ throw new Hedra.NotFoundError(_response.error.body, _response.rawResponse);
257
+ case 429:
258
+ throw new Hedra.TooManyRequestsError(_response.error.body, _response.rawResponse);
259
+ case 500:
260
+ throw new Hedra.InternalServerError(_response.error.body, _response.rawResponse);
261
+ default:
262
+ throw new errors.HedraError({
263
+ statusCode: _response.error.statusCode,
264
+ body: _response.error.body,
265
+ rawResponse: _response.rawResponse,
266
+ });
267
+ }
268
+ }
269
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/transactions");
270
+ });
271
+ }
196
272
  }
197
273
  exports.BillingClient = BillingClient;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface BillingListTransactionsRequest {
6
+ /** Maximum items per page. */
7
+ limit?: number;
8
+ /** Opaque cursor from the previous page's `next_cursor`; omit for the first page. */
9
+ cursor?: string | null;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export type { BillingGetUsageRequest } from "./BillingGetUsageRequest.js";
2
+ export type { BillingListTransactionsRequest } from "./BillingListTransactionsRequest.js";
@@ -90,7 +90,7 @@ class FilesClient {
90
90
  yield _body.appendFile("file", request.file);
91
91
  const _maybeEncodedRequest = yield _body.getRequest();
92
92
  const _authRequest = yield this._options.authProvider.getAuthRequest();
93
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.13.3" }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
93
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ "X-Hedra-Spec-Version": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.specVersion) !== null && _b !== void 0 ? _b : "3.16.0" }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
94
94
  const _response = yield core.fetcher({
95
95
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HedraEnvironment.Production, "files"),
96
96
  method: "POST",