@stadar/sdk 0.1.7

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 (357) hide show
  1. package/README.md +62 -0
  2. package/dist/apis/AccountApi.d.ts +248 -0
  3. package/dist/apis/AccountApi.d.ts.map +1 -0
  4. package/dist/apis/AccountApi.js +228 -0
  5. package/dist/apis/AccountApi.js.map +1 -0
  6. package/dist/apis/AuthApi.d.ts +232 -0
  7. package/dist/apis/AuthApi.d.ts.map +1 -0
  8. package/dist/apis/AuthApi.js +213 -0
  9. package/dist/apis/AuthApi.js.map +1 -0
  10. package/dist/apis/BillingApi.d.ts +103 -0
  11. package/dist/apis/BillingApi.d.ts.map +1 -0
  12. package/dist/apis/BillingApi.js +92 -0
  13. package/dist/apis/BillingApi.js.map +1 -0
  14. package/dist/apis/GamesApi.d.ts +96 -0
  15. package/dist/apis/GamesApi.d.ts.map +1 -0
  16. package/dist/apis/GamesApi.js +100 -0
  17. package/dist/apis/GamesApi.js.map +1 -0
  18. package/dist/apis/LeaguesApi.d.ts +214 -0
  19. package/dist/apis/LeaguesApi.d.ts.map +1 -0
  20. package/dist/apis/LeaguesApi.js +225 -0
  21. package/dist/apis/LeaguesApi.js.map +1 -0
  22. package/dist/apis/MatchesApi.d.ts +178 -0
  23. package/dist/apis/MatchesApi.d.ts.map +1 -0
  24. package/dist/apis/MatchesApi.js +183 -0
  25. package/dist/apis/MatchesApi.js.map +1 -0
  26. package/dist/apis/MetaApi.d.ts +160 -0
  27. package/dist/apis/MetaApi.d.ts.map +1 -0
  28. package/dist/apis/MetaApi.js +151 -0
  29. package/dist/apis/MetaApi.js.map +1 -0
  30. package/dist/apis/SeriesApi.d.ts +211 -0
  31. package/dist/apis/SeriesApi.d.ts.map +1 -0
  32. package/dist/apis/SeriesApi.js +223 -0
  33. package/dist/apis/SeriesApi.js.map +1 -0
  34. package/dist/apis/TournamentsApi.d.ts +149 -0
  35. package/dist/apis/TournamentsApi.d.ts.map +1 -0
  36. package/dist/apis/TournamentsApi.js +149 -0
  37. package/dist/apis/TournamentsApi.js.map +1 -0
  38. package/dist/apis/WebhooksApi.d.ts +173 -0
  39. package/dist/apis/WebhooksApi.d.ts.map +1 -0
  40. package/dist/apis/WebhooksApi.js +157 -0
  41. package/dist/apis/WebhooksApi.js.map +1 -0
  42. package/dist/apis/index.d.ts +11 -0
  43. package/dist/apis/index.d.ts.map +1 -0
  44. package/dist/apis/index.js +13 -0
  45. package/dist/apis/index.js.map +1 -0
  46. package/dist/from_env.d.ts +22 -0
  47. package/dist/from_env.d.ts.map +1 -0
  48. package/dist/from_env.js +57 -0
  49. package/dist/from_env.js.map +1 -0
  50. package/dist/index.d.ts +4 -0
  51. package/dist/index.d.ts.map +1 -0
  52. package/dist/index.js +6 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/models/APIKeySummary.d.ts +57 -0
  55. package/dist/models/APIKeySummary.d.ts.map +1 -0
  56. package/dist/models/APIKeySummary.js +58 -0
  57. package/dist/models/APIKeySummary.js.map +1 -0
  58. package/dist/models/AccountCreateKey201Response.d.ts +77 -0
  59. package/dist/models/AccountCreateKey201Response.d.ts.map +1 -0
  60. package/dist/models/AccountCreateKey201Response.js +69 -0
  61. package/dist/models/AccountCreateKey201Response.js.map +1 -0
  62. package/dist/models/AccountCreateKeyRequest.d.ts +33 -0
  63. package/dist/models/AccountCreateKeyRequest.d.ts.map +1 -0
  64. package/dist/models/AccountCreateKeyRequest.js +44 -0
  65. package/dist/models/AccountCreateKeyRequest.js.map +1 -0
  66. package/dist/models/AccountListKeys200Response.d.ts +34 -0
  67. package/dist/models/AccountListKeys200Response.d.ts.map +1 -0
  68. package/dist/models/AccountListKeys200Response.js +43 -0
  69. package/dist/models/AccountListKeys200Response.js.map +1 -0
  70. package/dist/models/AccountMeCapabilities200Response.d.ts +41 -0
  71. package/dist/models/AccountMeCapabilities200Response.d.ts.map +1 -0
  72. package/dist/models/AccountMeCapabilities200Response.js +46 -0
  73. package/dist/models/AccountMeCapabilities200Response.js.map +1 -0
  74. package/dist/models/AccountUsageRecent200Response.d.ts +34 -0
  75. package/dist/models/AccountUsageRecent200Response.d.ts.map +1 -0
  76. package/dist/models/AccountUsageRecent200Response.js +43 -0
  77. package/dist/models/AccountUsageRecent200Response.js.map +1 -0
  78. package/dist/models/AuthMeResponse.d.ts +41 -0
  79. package/dist/models/AuthMeResponse.d.ts.map +1 -0
  80. package/dist/models/AuthMeResponse.js +46 -0
  81. package/dist/models/AuthMeResponse.js.map +1 -0
  82. package/dist/models/AuthMeResponseData.d.ts +45 -0
  83. package/dist/models/AuthMeResponseData.d.ts.map +1 -0
  84. package/dist/models/AuthMeResponseData.js +46 -0
  85. package/dist/models/AuthMeResponseData.js.map +1 -0
  86. package/dist/models/CS2PreviewExtras.d.ts +44 -0
  87. package/dist/models/CS2PreviewExtras.d.ts.map +1 -0
  88. package/dist/models/CS2PreviewExtras.js +47 -0
  89. package/dist/models/CS2PreviewExtras.js.map +1 -0
  90. package/dist/models/CS2PreviewExtrasMapVetoHistory.d.ts +51 -0
  91. package/dist/models/CS2PreviewExtrasMapVetoHistory.d.ts.map +1 -0
  92. package/dist/models/CS2PreviewExtrasMapVetoHistory.js +48 -0
  93. package/dist/models/CS2PreviewExtrasMapVetoHistory.js.map +1 -0
  94. package/dist/models/CS2PreviewExtrasMapWinRateValue.d.ts +39 -0
  95. package/dist/models/CS2PreviewExtrasMapWinRateValue.d.ts.map +1 -0
  96. package/dist/models/CS2PreviewExtrasMapWinRateValue.js +44 -0
  97. package/dist/models/CS2PreviewExtrasMapWinRateValue.js.map +1 -0
  98. package/dist/models/CapabilitySet.d.ts +72 -0
  99. package/dist/models/CapabilitySet.d.ts.map +1 -0
  100. package/dist/models/CapabilitySet.js +75 -0
  101. package/dist/models/CapabilitySet.js.map +1 -0
  102. package/dist/models/ErrorBody.d.ts +53 -0
  103. package/dist/models/ErrorBody.d.ts.map +1 -0
  104. package/dist/models/ErrorBody.js +52 -0
  105. package/dist/models/ErrorBody.js.map +1 -0
  106. package/dist/models/ErrorEnvelope.d.ts +34 -0
  107. package/dist/models/ErrorEnvelope.d.ts.map +1 -0
  108. package/dist/models/ErrorEnvelope.js +45 -0
  109. package/dist/models/ErrorEnvelope.js.map +1 -0
  110. package/dist/models/Game.d.ts +78 -0
  111. package/dist/models/Game.d.ts.map +1 -0
  112. package/dist/models/Game.js +62 -0
  113. package/dist/models/Game.js.map +1 -0
  114. package/dist/models/GameEnvelope.d.ts +41 -0
  115. package/dist/models/GameEnvelope.d.ts.map +1 -0
  116. package/dist/models/GameEnvelope.js +46 -0
  117. package/dist/models/GameEnvelope.js.map +1 -0
  118. package/dist/models/GamesListResponse.d.ts +41 -0
  119. package/dist/models/GamesListResponse.d.ts.map +1 -0
  120. package/dist/models/GamesListResponse.js +46 -0
  121. package/dist/models/GamesListResponse.js.map +1 -0
  122. package/dist/models/HeadToHead.d.ts +51 -0
  123. package/dist/models/HeadToHead.d.ts.map +1 -0
  124. package/dist/models/HeadToHead.js +54 -0
  125. package/dist/models/HeadToHead.js.map +1 -0
  126. package/dist/models/Healthz200Response.d.ts +40 -0
  127. package/dist/models/Healthz200Response.d.ts.map +1 -0
  128. package/dist/models/Healthz200Response.js +48 -0
  129. package/dist/models/Healthz200Response.js.map +1 -0
  130. package/dist/models/Last5Result.d.ts +65 -0
  131. package/dist/models/Last5Result.d.ts.map +1 -0
  132. package/dist/models/Last5Result.js +67 -0
  133. package/dist/models/Last5Result.js.map +1 -0
  134. package/dist/models/League.d.ts +81 -0
  135. package/dist/models/League.d.ts.map +1 -0
  136. package/dist/models/League.js +58 -0
  137. package/dist/models/League.js.map +1 -0
  138. package/dist/models/LeagueEnvelope.d.ts +41 -0
  139. package/dist/models/LeagueEnvelope.d.ts.map +1 -0
  140. package/dist/models/LeagueEnvelope.js +46 -0
  141. package/dist/models/LeagueEnvelope.js.map +1 -0
  142. package/dist/models/LeagueSummary.d.ts +45 -0
  143. package/dist/models/LeagueSummary.d.ts.map +1 -0
  144. package/dist/models/LeagueSummary.js +46 -0
  145. package/dist/models/LeagueSummary.js.map +1 -0
  146. package/dist/models/LeaguesListResponse.d.ts +41 -0
  147. package/dist/models/LeaguesListResponse.d.ts.map +1 -0
  148. package/dist/models/LeaguesListResponse.js +46 -0
  149. package/dist/models/LeaguesListResponse.js.map +1 -0
  150. package/dist/models/Match.d.ts +145 -0
  151. package/dist/models/Match.d.ts.map +1 -0
  152. package/dist/models/Match.js +89 -0
  153. package/dist/models/Match.js.map +1 -0
  154. package/dist/models/MatchEnvelope.d.ts +41 -0
  155. package/dist/models/MatchEnvelope.d.ts.map +1 -0
  156. package/dist/models/MatchEnvelope.js +46 -0
  157. package/dist/models/MatchEnvelope.js.map +1 -0
  158. package/dist/models/MatchParticipant.d.ts +57 -0
  159. package/dist/models/MatchParticipant.d.ts.map +1 -0
  160. package/dist/models/MatchParticipant.js +50 -0
  161. package/dist/models/MatchParticipant.js.map +1 -0
  162. package/dist/models/MatchPreview.d.ts +62 -0
  163. package/dist/models/MatchPreview.d.ts.map +1 -0
  164. package/dist/models/MatchPreview.js +63 -0
  165. package/dist/models/MatchPreview.js.map +1 -0
  166. package/dist/models/MatchPreviewEnvelope.d.ts +41 -0
  167. package/dist/models/MatchPreviewEnvelope.d.ts.map +1 -0
  168. package/dist/models/MatchPreviewEnvelope.js +46 -0
  169. package/dist/models/MatchPreviewEnvelope.js.map +1 -0
  170. package/dist/models/MatchPreviewForm.d.ts +40 -0
  171. package/dist/models/MatchPreviewForm.d.ts.map +1 -0
  172. package/dist/models/MatchPreviewForm.js +49 -0
  173. package/dist/models/MatchPreviewForm.js.map +1 -0
  174. package/dist/models/MatchPreviewLast5.d.ts +40 -0
  175. package/dist/models/MatchPreviewLast5.d.ts.map +1 -0
  176. package/dist/models/MatchPreviewLast5.js +49 -0
  177. package/dist/models/MatchPreviewLast5.js.map +1 -0
  178. package/dist/models/MatchesListResponse.d.ts +41 -0
  179. package/dist/models/MatchesListResponse.d.ts.map +1 -0
  180. package/dist/models/MatchesListResponse.js +46 -0
  181. package/dist/models/MatchesListResponse.js.map +1 -0
  182. package/dist/models/Meta.d.ts +59 -0
  183. package/dist/models/Meta.d.ts.map +1 -0
  184. package/dist/models/Meta.js +52 -0
  185. package/dist/models/Meta.js.map +1 -0
  186. package/dist/models/Paging.d.ts +45 -0
  187. package/dist/models/Paging.d.ts.map +1 -0
  188. package/dist/models/Paging.js +46 -0
  189. package/dist/models/Paging.js.map +1 -0
  190. package/dist/models/RootVersion200Response.d.ts +45 -0
  191. package/dist/models/RootVersion200Response.d.ts.map +1 -0
  192. package/dist/models/RootVersion200Response.js +46 -0
  193. package/dist/models/RootVersion200Response.js.map +1 -0
  194. package/dist/models/Series.d.ts +89 -0
  195. package/dist/models/Series.d.ts.map +1 -0
  196. package/dist/models/Series.js +62 -0
  197. package/dist/models/Series.js.map +1 -0
  198. package/dist/models/SeriesEnvelope.d.ts +41 -0
  199. package/dist/models/SeriesEnvelope.d.ts.map +1 -0
  200. package/dist/models/SeriesEnvelope.js +46 -0
  201. package/dist/models/SeriesEnvelope.js.map +1 -0
  202. package/dist/models/SeriesListResponse.d.ts +41 -0
  203. package/dist/models/SeriesListResponse.d.ts.map +1 -0
  204. package/dist/models/SeriesListResponse.js +46 -0
  205. package/dist/models/SeriesListResponse.js.map +1 -0
  206. package/dist/models/SeriesSummary.d.ts +45 -0
  207. package/dist/models/SeriesSummary.d.ts.map +1 -0
  208. package/dist/models/SeriesSummary.js +46 -0
  209. package/dist/models/SeriesSummary.js.map +1 -0
  210. package/dist/models/SeriesWinner.d.ts +39 -0
  211. package/dist/models/SeriesWinner.d.ts.map +1 -0
  212. package/dist/models/SeriesWinner.js +44 -0
  213. package/dist/models/SeriesWinner.js.map +1 -0
  214. package/dist/models/SignupRequest.d.ts +39 -0
  215. package/dist/models/SignupRequest.d.ts.map +1 -0
  216. package/dist/models/SignupRequest.js +48 -0
  217. package/dist/models/SignupRequest.js.map +1 -0
  218. package/dist/models/SourceCredit.d.ts +45 -0
  219. package/dist/models/SourceCredit.d.ts.map +1 -0
  220. package/dist/models/SourceCredit.js +52 -0
  221. package/dist/models/SourceCredit.js.map +1 -0
  222. package/dist/models/Stream.d.ts +57 -0
  223. package/dist/models/Stream.d.ts.map +1 -0
  224. package/dist/models/Stream.js +50 -0
  225. package/dist/models/Stream.js.map +1 -0
  226. package/dist/models/TeamForm.d.ts +59 -0
  227. package/dist/models/TeamForm.d.ts.map +1 -0
  228. package/dist/models/TeamForm.js +63 -0
  229. package/dist/models/TeamForm.js.map +1 -0
  230. package/dist/models/Tournament.d.ts +148 -0
  231. package/dist/models/Tournament.d.ts.map +1 -0
  232. package/dist/models/Tournament.js +88 -0
  233. package/dist/models/Tournament.js.map +1 -0
  234. package/dist/models/TournamentEnvelope.d.ts +41 -0
  235. package/dist/models/TournamentEnvelope.d.ts.map +1 -0
  236. package/dist/models/TournamentEnvelope.js +46 -0
  237. package/dist/models/TournamentEnvelope.js.map +1 -0
  238. package/dist/models/TournamentPrizePool.d.ts +39 -0
  239. package/dist/models/TournamentPrizePool.d.ts.map +1 -0
  240. package/dist/models/TournamentPrizePool.js +44 -0
  241. package/dist/models/TournamentPrizePool.js.map +1 -0
  242. package/dist/models/TournamentSummary.d.ts +57 -0
  243. package/dist/models/TournamentSummary.d.ts.map +1 -0
  244. package/dist/models/TournamentSummary.js +50 -0
  245. package/dist/models/TournamentSummary.js.map +1 -0
  246. package/dist/models/TournamentsListResponse.d.ts +41 -0
  247. package/dist/models/TournamentsListResponse.d.ts.map +1 -0
  248. package/dist/models/TournamentsListResponse.js +46 -0
  249. package/dist/models/TournamentsListResponse.js.map +1 -0
  250. package/dist/models/UsageRow.d.ts +63 -0
  251. package/dist/models/UsageRow.d.ts.map +1 -0
  252. package/dist/models/UsageRow.js +52 -0
  253. package/dist/models/UsageRow.js.map +1 -0
  254. package/dist/models/UsageToday.d.ts +57 -0
  255. package/dist/models/UsageToday.d.ts.map +1 -0
  256. package/dist/models/UsageToday.js +50 -0
  257. package/dist/models/UsageToday.js.map +1 -0
  258. package/dist/models/WebhookSubscription.d.ts +81 -0
  259. package/dist/models/WebhookSubscription.d.ts.map +1 -0
  260. package/dist/models/WebhookSubscription.js +66 -0
  261. package/dist/models/WebhookSubscription.js.map +1 -0
  262. package/dist/models/WebhookSubscriptionRequest.d.ts +67 -0
  263. package/dist/models/WebhookSubscriptionRequest.d.ts.map +1 -0
  264. package/dist/models/WebhookSubscriptionRequest.js +63 -0
  265. package/dist/models/WebhookSubscriptionRequest.js.map +1 -0
  266. package/dist/models/WebhooksCreate201Response.d.ts +87 -0
  267. package/dist/models/WebhooksCreate201Response.d.ts.map +1 -0
  268. package/dist/models/WebhooksCreate201Response.js +68 -0
  269. package/dist/models/WebhooksCreate201Response.js.map +1 -0
  270. package/dist/models/WebhooksList200Response.d.ts +34 -0
  271. package/dist/models/WebhooksList200Response.d.ts.map +1 -0
  272. package/dist/models/WebhooksList200Response.js +43 -0
  273. package/dist/models/WebhooksList200Response.js.map +1 -0
  274. package/dist/models/index.d.ts +56 -0
  275. package/dist/models/index.d.ts.map +1 -0
  276. package/dist/models/index.js +58 -0
  277. package/dist/models/index.js.map +1 -0
  278. package/dist/runtime.d.ts +185 -0
  279. package/dist/runtime.d.ts.map +1 -0
  280. package/dist/runtime.js +338 -0
  281. package/dist/runtime.js.map +1 -0
  282. package/dist/webhooks.d.ts +29 -0
  283. package/dist/webhooks.d.ts.map +1 -0
  284. package/dist/webhooks.js +77 -0
  285. package/dist/webhooks.js.map +1 -0
  286. package/package.json +60 -0
  287. package/src/apis/AccountApi.ts +474 -0
  288. package/src/apis/AuthApi.ts +446 -0
  289. package/src/apis/BillingApi.ts +180 -0
  290. package/src/apis/GamesApi.ts +195 -0
  291. package/src/apis/LeaguesApi.ts +457 -0
  292. package/src/apis/MatchesApi.ts +368 -0
  293. package/src/apis/MetaApi.ts +289 -0
  294. package/src/apis/SeriesApi.ts +454 -0
  295. package/src/apis/TournamentsApi.ts +290 -0
  296. package/src/apis/WebhooksApi.ts +336 -0
  297. package/src/apis/index.ts +12 -0
  298. package/src/from_env.ts +68 -0
  299. package/src/index.ts +5 -0
  300. package/src/models/APIKeySummary.ts +101 -0
  301. package/src/models/AccountCreateKey201Response.ts +128 -0
  302. package/src/models/AccountCreateKeyRequest.ts +66 -0
  303. package/src/models/AccountListKeys200Response.ts +73 -0
  304. package/src/models/AccountMeCapabilities200Response.ts +88 -0
  305. package/src/models/AccountUsageRecent200Response.ts +73 -0
  306. package/src/models/AuthMeResponse.ts +88 -0
  307. package/src/models/AuthMeResponseData.ts +81 -0
  308. package/src/models/CS2PreviewExtras.ts +89 -0
  309. package/src/models/CS2PreviewExtrasMapVetoHistory.ts +89 -0
  310. package/src/models/CS2PreviewExtrasMapWinRateValue.ts +73 -0
  311. package/src/models/CapabilitySet.ts +114 -0
  312. package/src/models/ErrorBody.ts +91 -0
  313. package/src/models/ErrorEnvelope.ts +74 -0
  314. package/src/models/Game.ts +125 -0
  315. package/src/models/GameEnvelope.ts +88 -0
  316. package/src/models/GamesListResponse.ts +88 -0
  317. package/src/models/HeadToHead.ts +92 -0
  318. package/src/models/Healthz200Response.ts +75 -0
  319. package/src/models/Last5Result.ts +113 -0
  320. package/src/models/League.ts +129 -0
  321. package/src/models/LeagueEnvelope.ts +88 -0
  322. package/src/models/LeagueSummary.ts +81 -0
  323. package/src/models/LeaguesListResponse.ts +88 -0
  324. package/src/models/Match.ts +243 -0
  325. package/src/models/MatchEnvelope.ts +88 -0
  326. package/src/models/MatchParticipant.ts +97 -0
  327. package/src/models/MatchPreview.ts +137 -0
  328. package/src/models/MatchPreviewEnvelope.ts +88 -0
  329. package/src/models/MatchPreviewForm.ts +83 -0
  330. package/src/models/MatchPreviewLast5.ts +83 -0
  331. package/src/models/MatchesListResponse.ts +88 -0
  332. package/src/models/Meta.ts +112 -0
  333. package/src/models/Paging.ts +81 -0
  334. package/src/models/RootVersion200Response.ts +81 -0
  335. package/src/models/Series.ts +152 -0
  336. package/src/models/SeriesEnvelope.ts +88 -0
  337. package/src/models/SeriesListResponse.ts +88 -0
  338. package/src/models/SeriesSummary.ts +81 -0
  339. package/src/models/SeriesWinner.ts +73 -0
  340. package/src/models/SignupRequest.ts +75 -0
  341. package/src/models/SourceCredit.ts +84 -0
  342. package/src/models/Stream.ts +97 -0
  343. package/src/models/TeamForm.ts +104 -0
  344. package/src/models/Tournament.ts +236 -0
  345. package/src/models/TournamentEnvelope.ts +88 -0
  346. package/src/models/TournamentPrizePool.ts +73 -0
  347. package/src/models/TournamentSummary.ts +97 -0
  348. package/src/models/TournamentsListResponse.ts +88 -0
  349. package/src/models/UsageRow.ts +105 -0
  350. package/src/models/UsageToday.ts +97 -0
  351. package/src/models/WebhookSubscription.ts +133 -0
  352. package/src/models/WebhookSubscriptionRequest.ts +112 -0
  353. package/src/models/WebhooksCreate201Response.ts +141 -0
  354. package/src/models/WebhooksList200Response.ts +73 -0
  355. package/src/models/index.ts +57 -0
  356. package/src/runtime.ts +449 -0
  357. package/src/webhooks.ts +91 -0
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # @stadar/sdk — TypeScript SDK for the Stadar esports API
2
+
3
+ Official TypeScript client. npm-installable. Browser + Node.
4
+ Generated from the public OpenAPI 3.1 spec — see
5
+ [stadar.net/docs/api](https://stadar.net/docs/api) for the full
6
+ reference and `clients/README.md` in the
7
+ [monorepo](https://github.com/macgraver/esports-api) for the codegen
8
+ posture.
9
+
10
+ ```bash
11
+ npm install @stadar/sdk
12
+ # or: pnpm add @stadar/sdk
13
+ ```
14
+
15
+ ## Quick start
16
+
17
+ ```ts
18
+ import { Configuration, MatchesApi } from '@stadar/sdk';
19
+
20
+ const config = new Configuration({
21
+ basePath: 'https://api.stadar.net',
22
+ apiKey: process.env.STADAR_API_KEY,
23
+ });
24
+
25
+ const matches = new MatchesApi(config);
26
+ const live = await matches.matchesList({ game: 'cs2', status: 'live' });
27
+ for (const m of live.data ?? []) {
28
+ console.log(m.id, m.teamA?.slug, 'vs', m.teamB?.slug);
29
+ }
30
+ ```
31
+
32
+ ## Sandbox
33
+
34
+ ```ts
35
+ // `esp_test_`-prefixed keys auto-route to the sandbox fixture set.
36
+ // `meta.sandbox: true` flags every response from the sandbox.
37
+ const config = new Configuration({ apiKey: 'esp_test_...' });
38
+ ```
39
+
40
+ ## Webhooks
41
+
42
+ ```ts
43
+ import { verifySignature } from '@stadar/sdk/webhooks';
44
+
45
+ app.post('/stadar-webhook', async (req, res) => {
46
+ const body = await readRawBody(req);
47
+ const signature = req.headers['x-stadar-signature'] as string;
48
+ if (!(await verifySignature(body, signature, 'your-webhook-secret'))) {
49
+ return res.status(401).end();
50
+ }
51
+ const event = JSON.parse(body.toString('utf8'));
52
+ // ... handle event
53
+ });
54
+ ```
55
+
56
+ See [stadar.net/docs/webhooks](https://stadar.net/docs/webhooks) for
57
+ the signature verification recipe.
58
+
59
+ ## License
60
+
61
+ MIT. Source of truth is the OpenAPI spec; regeneration is part of
62
+ every spec change.
@@ -0,0 +1,248 @@
1
+ /**
2
+ * Stadar Esports Data API
3
+ * Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ * Contact: api@stadar.net
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type AccountCreateKey201Response } from '../models/AccountCreateKey201Response';
14
+ import { type AccountCreateKeyRequest } from '../models/AccountCreateKeyRequest';
15
+ import { type AccountListKeys200Response } from '../models/AccountListKeys200Response';
16
+ import { type AccountMeCapabilities200Response } from '../models/AccountMeCapabilities200Response';
17
+ import { type AccountUsageRecent200Response } from '../models/AccountUsageRecent200Response';
18
+ import { type UsageToday } from '../models/UsageToday';
19
+ export interface AccountCreateKeyOperationRequest {
20
+ accountCreateKeyRequest: AccountCreateKeyRequest;
21
+ mode?: AccountCreateKeyOperationModeEnum;
22
+ }
23
+ export interface AccountDeleteKeyRequest {
24
+ id: number;
25
+ }
26
+ /**
27
+ * AccountApi - interface
28
+ *
29
+ * @export
30
+ * @interface AccountApiInterface
31
+ */
32
+ export interface AccountApiInterface {
33
+ /**
34
+ * Creates request options for accountCreateKey without sending the request
35
+ * @param {AccountCreateKeyRequest} accountCreateKeyRequest
36
+ * @param {'live' | 'sandbox'} [mode] `live` (default) returns a production `esp_live_<22>` key. `sandbox` returns an `esp_test_<22>` key. Sandbox keys hit the fixture-only schema and never burn production quota.
37
+ * @throws {RequiredError}
38
+ * @memberof AccountApiInterface
39
+ */
40
+ accountCreateKeyRequestOpts(requestParameters: AccountCreateKeyOperationRequest): Promise<runtime.RequestOpts>;
41
+ /**
42
+ * Generates a new key. The raw key is returned in the response EXACTLY ONCE — save it; subsequent calls only return the non-secret summary. Sandbox keys (`?mode=sandbox`) mint with prefix `esp_test_` and route to the curated fixture set (`esports_sandbox` schema, separate quota counter).
43
+ * @summary Mint a new API key
44
+ * @param {AccountCreateKeyRequest} accountCreateKeyRequest
45
+ * @param {'live' | 'sandbox'} [mode] &#x60;live&#x60; (default) returns a production &#x60;esp_live_&lt;22&gt;&#x60; key. &#x60;sandbox&#x60; returns an &#x60;esp_test_&lt;22&gt;&#x60; key. Sandbox keys hit the fixture-only schema and never burn production quota.
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ * @memberof AccountApiInterface
49
+ */
50
+ accountCreateKeyRaw(requestParameters: AccountCreateKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreateKey201Response>>;
51
+ /**
52
+ * Generates a new key. The raw key is returned in the response EXACTLY ONCE — save it; subsequent calls only return the non-secret summary. Sandbox keys (`?mode=sandbox`) mint with prefix `esp_test_` and route to the curated fixture set (`esports_sandbox` schema, separate quota counter).
53
+ * Mint a new API key
54
+ */
55
+ accountCreateKey(requestParameters: AccountCreateKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreateKey201Response>;
56
+ /**
57
+ * Creates request options for accountDeleteKey without sending the request
58
+ * @param {number} id
59
+ * @throws {RequiredError}
60
+ * @memberof AccountApiInterface
61
+ */
62
+ accountDeleteKeyRequestOpts(requestParameters: AccountDeleteKeyRequest): Promise<runtime.RequestOpts>;
63
+ /**
64
+ *
65
+ * @summary Revoke an API key
66
+ * @param {number} id
67
+ * @param {*} [options] Override http request option.
68
+ * @throws {RequiredError}
69
+ * @memberof AccountApiInterface
70
+ */
71
+ accountDeleteKeyRaw(requestParameters: AccountDeleteKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
72
+ /**
73
+ * Revoke an API key
74
+ */
75
+ accountDeleteKey(requestParameters: AccountDeleteKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
76
+ /**
77
+ * Creates request options for accountListKeys without sending the request
78
+ * @throws {RequiredError}
79
+ * @memberof AccountApiInterface
80
+ */
81
+ accountListKeysRequestOpts(): Promise<runtime.RequestOpts>;
82
+ /**
83
+ * Returns the non-secret summary of every active key (id, name, prefix, created_at, last_used_at). Revoked keys are excluded.
84
+ * @summary List API keys
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ * @memberof AccountApiInterface
88
+ */
89
+ accountListKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountListKeys200Response>>;
90
+ /**
91
+ * Returns the non-secret summary of every active key (id, name, prefix, created_at, last_used_at). Revoked keys are excluded.
92
+ * List API keys
93
+ */
94
+ accountListKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountListKeys200Response>;
95
+ /**
96
+ * Creates request options for accountMeCapabilities without sending the request
97
+ * @throws {RequiredError}
98
+ * @memberof AccountApiInterface
99
+ */
100
+ accountMeCapabilitiesRequestOpts(): Promise<runtime.RequestOpts>;
101
+ /**
102
+ * Returns the calling user\'s current tier and the list of capability tokens unlocked. SDK consumers call this to surface \"why am I getting a 402\" without guessing — the envelope\'s `data.capabilities` is authoritative.
103
+ * @summary Effective capabilities for the calling user
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ * @memberof AccountApiInterface
107
+ */
108
+ accountMeCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountMeCapabilities200Response>>;
109
+ /**
110
+ * Returns the calling user\'s current tier and the list of capability tokens unlocked. SDK consumers call this to surface \"why am I getting a 402\" without guessing — the envelope\'s `data.capabilities` is authoritative.
111
+ * Effective capabilities for the calling user
112
+ */
113
+ accountMeCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountMeCapabilities200Response>;
114
+ /**
115
+ * Creates request options for accountUsageRecent without sending the request
116
+ * @throws {RequiredError}
117
+ * @memberof AccountApiInterface
118
+ */
119
+ accountUsageRecentRequestOpts(): Promise<runtime.RequestOpts>;
120
+ /**
121
+ * Returns the last 50 logged requests for the calling user\'s API keys. Content-negotiates: `Accept: text/event-stream` upgrades to SSE; default JSON.
122
+ * @summary Recent request log
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ * @memberof AccountApiInterface
126
+ */
127
+ accountUsageRecentRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountUsageRecent200Response>>;
128
+ /**
129
+ * Returns the last 50 logged requests for the calling user\'s API keys. Content-negotiates: `Accept: text/event-stream` upgrades to SSE; default JSON.
130
+ * Recent request log
131
+ */
132
+ accountUsageRecent(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountUsageRecent200Response>;
133
+ /**
134
+ * Creates request options for accountUsageToday without sending the request
135
+ * @throws {RequiredError}
136
+ * @memberof AccountApiInterface
137
+ */
138
+ accountUsageTodayRequestOpts(): Promise<runtime.RequestOpts>;
139
+ /**
140
+ * Returns `{count, quota, pct, tier, resets_at_utc}` for the current UTC day. Reads the Redis counter the Quota middleware writes — same source of truth as the rate limiter.
141
+ * @summary Today\'s quota counter
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ * @memberof AccountApiInterface
145
+ */
146
+ accountUsageTodayRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsageToday>>;
147
+ /**
148
+ * Returns `{count, quota, pct, tier, resets_at_utc}` for the current UTC day. Reads the Redis counter the Quota middleware writes — same source of truth as the rate limiter.
149
+ * Today\'s quota counter
150
+ */
151
+ accountUsageToday(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsageToday>;
152
+ }
153
+ /**
154
+ *
155
+ */
156
+ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
157
+ /**
158
+ * Creates request options for accountCreateKey without sending the request
159
+ */
160
+ accountCreateKeyRequestOpts(requestParameters: AccountCreateKeyOperationRequest): Promise<runtime.RequestOpts>;
161
+ /**
162
+ * Generates a new key. The raw key is returned in the response EXACTLY ONCE — save it; subsequent calls only return the non-secret summary. Sandbox keys (`?mode=sandbox`) mint with prefix `esp_test_` and route to the curated fixture set (`esports_sandbox` schema, separate quota counter).
163
+ * Mint a new API key
164
+ */
165
+ accountCreateKeyRaw(requestParameters: AccountCreateKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreateKey201Response>>;
166
+ /**
167
+ * Generates a new key. The raw key is returned in the response EXACTLY ONCE — save it; subsequent calls only return the non-secret summary. Sandbox keys (`?mode=sandbox`) mint with prefix `esp_test_` and route to the curated fixture set (`esports_sandbox` schema, separate quota counter).
168
+ * Mint a new API key
169
+ */
170
+ accountCreateKey(requestParameters: AccountCreateKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreateKey201Response>;
171
+ /**
172
+ * Creates request options for accountDeleteKey without sending the request
173
+ */
174
+ accountDeleteKeyRequestOpts(requestParameters: AccountDeleteKeyRequest): Promise<runtime.RequestOpts>;
175
+ /**
176
+ * Revoke an API key
177
+ */
178
+ accountDeleteKeyRaw(requestParameters: AccountDeleteKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
179
+ /**
180
+ * Revoke an API key
181
+ */
182
+ accountDeleteKey(requestParameters: AccountDeleteKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
183
+ /**
184
+ * Creates request options for accountListKeys without sending the request
185
+ */
186
+ accountListKeysRequestOpts(): Promise<runtime.RequestOpts>;
187
+ /**
188
+ * Returns the non-secret summary of every active key (id, name, prefix, created_at, last_used_at). Revoked keys are excluded.
189
+ * List API keys
190
+ */
191
+ accountListKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountListKeys200Response>>;
192
+ /**
193
+ * Returns the non-secret summary of every active key (id, name, prefix, created_at, last_used_at). Revoked keys are excluded.
194
+ * List API keys
195
+ */
196
+ accountListKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountListKeys200Response>;
197
+ /**
198
+ * Creates request options for accountMeCapabilities without sending the request
199
+ */
200
+ accountMeCapabilitiesRequestOpts(): Promise<runtime.RequestOpts>;
201
+ /**
202
+ * Returns the calling user\'s current tier and the list of capability tokens unlocked. SDK consumers call this to surface \"why am I getting a 402\" without guessing — the envelope\'s `data.capabilities` is authoritative.
203
+ * Effective capabilities for the calling user
204
+ */
205
+ accountMeCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountMeCapabilities200Response>>;
206
+ /**
207
+ * Returns the calling user\'s current tier and the list of capability tokens unlocked. SDK consumers call this to surface \"why am I getting a 402\" without guessing — the envelope\'s `data.capabilities` is authoritative.
208
+ * Effective capabilities for the calling user
209
+ */
210
+ accountMeCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountMeCapabilities200Response>;
211
+ /**
212
+ * Creates request options for accountUsageRecent without sending the request
213
+ */
214
+ accountUsageRecentRequestOpts(): Promise<runtime.RequestOpts>;
215
+ /**
216
+ * Returns the last 50 logged requests for the calling user\'s API keys. Content-negotiates: `Accept: text/event-stream` upgrades to SSE; default JSON.
217
+ * Recent request log
218
+ */
219
+ accountUsageRecentRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountUsageRecent200Response>>;
220
+ /**
221
+ * Returns the last 50 logged requests for the calling user\'s API keys. Content-negotiates: `Accept: text/event-stream` upgrades to SSE; default JSON.
222
+ * Recent request log
223
+ */
224
+ accountUsageRecent(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountUsageRecent200Response>;
225
+ /**
226
+ * Creates request options for accountUsageToday without sending the request
227
+ */
228
+ accountUsageTodayRequestOpts(): Promise<runtime.RequestOpts>;
229
+ /**
230
+ * Returns `{count, quota, pct, tier, resets_at_utc}` for the current UTC day. Reads the Redis counter the Quota middleware writes — same source of truth as the rate limiter.
231
+ * Today\'s quota counter
232
+ */
233
+ accountUsageTodayRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsageToday>>;
234
+ /**
235
+ * Returns `{count, quota, pct, tier, resets_at_utc}` for the current UTC day. Reads the Redis counter the Quota middleware writes — same source of truth as the rate limiter.
236
+ * Today\'s quota counter
237
+ */
238
+ accountUsageToday(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsageToday>;
239
+ }
240
+ /**
241
+ * @export
242
+ */
243
+ export declare const AccountCreateKeyOperationModeEnum: {
244
+ readonly Live: "live";
245
+ readonly Sandbox: "sandbox";
246
+ };
247
+ export type AccountCreateKeyOperationModeEnum = typeof AccountCreateKeyOperationModeEnum[keyof typeof AccountCreateKeyOperationModeEnum];
248
+ //# sourceMappingURL=AccountApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountApi.d.ts","sourceRoot":"","sources":["../../src/apis/AccountApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,EACH,KAAK,2BAA2B,EAGnC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACH,KAAK,uBAAuB,EAG/B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,KAAK,0BAA0B,EAGlC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,KAAK,gCAAgC,EAGxC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACH,KAAK,6BAA6B,EAGrC,MAAM,yCAAyC,CAAC;AAMjD,OAAO,EACH,KAAK,UAAU,EAGlB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,gCAAgC;IAC7C,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,IAAI,CAAC,EAAE,iCAAiC,CAAC;CAC5C;AAED,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;OAMG;IACH,2BAA2B,CAAC,iBAAiB,EAAE,gCAAgC,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/G;;;;;;;;OAQG;IACH,mBAAmB,CAAC,iBAAiB,EAAE,gCAAgC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC;IAEhM;;;OAGG;IACH,gBAAgB,CAAC,iBAAiB,EAAE,gCAAgC,EAAE,aAAa,CAAC,E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AG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAOpJ;;;OAGG;IACG,kBAAkB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,6BAA6B,CAAC;IAK5H;;OAEG;IACG,4BAA4B,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;IAgBlE;;;OAGG;IACG,oBAAoB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAOhI;;;OAGG;IACG,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAK3G;AAED;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;CAGpC,CAAC;AACX,MAAM,MAAM,iCAAiC,GAAG,OAAO,iCAAiC,CAAC,MAAM,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,228 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Stadar Esports Data API
5
+ * Read-only, betting-friendly esports data across all major competitive titles. Flat-tier pricing (no per-game gates), Polar- billed subscriptions (Merchant of Record), sandbox keys for evaluation. See https://stadar.net for tier pricing. All endpoints under `/v1/...`. The version in `info.version` matches the URL prefix; non-breaking field additions ship in `/v1`, breaking changes get a `/v2`. We commit to 24 months of `/v1` support after `/v2` ships. Times are UTC end-to-end (RFC 3339). Localization is the client\'s problem. Cursors are opaque base64 strings; treat them as such.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ * Contact: api@stadar.net
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import * as runtime from '../runtime';
15
+ import { AccountCreateKey201ResponseFromJSON, } from '../models/AccountCreateKey201Response';
16
+ import { AccountCreateKeyRequestToJSON, } from '../models/AccountCreateKeyRequest';
17
+ import { AccountListKeys200ResponseFromJSON, } from '../models/AccountListKeys200Response';
18
+ import { AccountMeCapabilities200ResponseFromJSON, } from '../models/AccountMeCapabilities200Response';
19
+ import { AccountUsageRecent200ResponseFromJSON, } from '../models/AccountUsageRecent200Response';
20
+ import { UsageTodayFromJSON, } from '../models/UsageToday';
21
+ /**
22
+ *
23
+ */
24
+ export class AccountApi extends runtime.BaseAPI {
25
+ /**
26
+ * Creates request options for accountCreateKey without sending the request
27
+ */
28
+ async accountCreateKeyRequestOpts(requestParameters) {
29
+ if (requestParameters['accountCreateKeyRequest'] == null) {
30
+ throw new runtime.RequiredError('accountCreateKeyRequest', 'Required parameter "accountCreateKeyRequest" was null or undefined when calling accountCreateKey().');
31
+ }
32
+ const queryParameters = {};
33
+ if (requestParameters['mode'] != null) {
34
+ queryParameters['mode'] = requestParameters['mode'];
35
+ }
36
+ const headerParameters = {};
37
+ headerParameters['Content-Type'] = 'application/json';
38
+ let urlPath = `/v1/account/keys`;
39
+ return {
40
+ path: urlPath,
41
+ method: 'POST',
42
+ headers: headerParameters,
43
+ query: queryParameters,
44
+ body: AccountCreateKeyRequestToJSON(requestParameters['accountCreateKeyRequest']),
45
+ };
46
+ }
47
+ /**
48
+ * Generates a new key. The raw key is returned in the response EXACTLY ONCE — save it; subsequent calls only return the non-secret summary. Sandbox keys (`?mode=sandbox`) mint with prefix `esp_test_` and route to the curated fixture set (`esports_sandbox` schema, separate quota counter).
49
+ * Mint a new API key
50
+ */
51
+ async accountCreateKeyRaw(requestParameters, initOverrides) {
52
+ const requestOptions = await this.accountCreateKeyRequestOpts(requestParameters);
53
+ const response = await this.request(requestOptions, initOverrides);
54
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreateKey201ResponseFromJSON(jsonValue));
55
+ }
56
+ /**
57
+ * Generates a new key. The raw key is returned in the response EXACTLY ONCE — save it; subsequent calls only return the non-secret summary. Sandbox keys (`?mode=sandbox`) mint with prefix `esp_test_` and route to the curated fixture set (`esports_sandbox` schema, separate quota counter).
58
+ * Mint a new API key
59
+ */
60
+ async accountCreateKey(requestParameters, initOverrides) {
61
+ const response = await this.accountCreateKeyRaw(requestParameters, initOverrides);
62
+ return await response.value();
63
+ }
64
+ /**
65
+ * Creates request options for accountDeleteKey without sending the request
66
+ */
67
+ async accountDeleteKeyRequestOpts(requestParameters) {
68
+ if (requestParameters['id'] == null) {
69
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling accountDeleteKey().');
70
+ }
71
+ const queryParameters = {};
72
+ const headerParameters = {};
73
+ let urlPath = `/v1/account/keys/{id}`;
74
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
75
+ return {
76
+ path: urlPath,
77
+ method: 'DELETE',
78
+ headers: headerParameters,
79
+ query: queryParameters,
80
+ };
81
+ }
82
+ /**
83
+ * Revoke an API key
84
+ */
85
+ async accountDeleteKeyRaw(requestParameters, initOverrides) {
86
+ const requestOptions = await this.accountDeleteKeyRequestOpts(requestParameters);
87
+ const response = await this.request(requestOptions, initOverrides);
88
+ return new runtime.VoidApiResponse(response);
89
+ }
90
+ /**
91
+ * Revoke an API key
92
+ */
93
+ async accountDeleteKey(requestParameters, initOverrides) {
94
+ await this.accountDeleteKeyRaw(requestParameters, initOverrides);
95
+ }
96
+ /**
97
+ * Creates request options for accountListKeys without sending the request
98
+ */
99
+ async accountListKeysRequestOpts() {
100
+ const queryParameters = {};
101
+ const headerParameters = {};
102
+ let urlPath = `/v1/account/keys`;
103
+ return {
104
+ path: urlPath,
105
+ method: 'GET',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ };
109
+ }
110
+ /**
111
+ * Returns the non-secret summary of every active key (id, name, prefix, created_at, last_used_at). Revoked keys are excluded.
112
+ * List API keys
113
+ */
114
+ async accountListKeysRaw(initOverrides) {
115
+ const requestOptions = await this.accountListKeysRequestOpts();
116
+ const response = await this.request(requestOptions, initOverrides);
117
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountListKeys200ResponseFromJSON(jsonValue));
118
+ }
119
+ /**
120
+ * Returns the non-secret summary of every active key (id, name, prefix, created_at, last_used_at). Revoked keys are excluded.
121
+ * List API keys
122
+ */
123
+ async accountListKeys(initOverrides) {
124
+ const response = await this.accountListKeysRaw(initOverrides);
125
+ return await response.value();
126
+ }
127
+ /**
128
+ * Creates request options for accountMeCapabilities without sending the request
129
+ */
130
+ async accountMeCapabilitiesRequestOpts() {
131
+ const queryParameters = {};
132
+ const headerParameters = {};
133
+ let urlPath = `/v1/account/me/capabilities`;
134
+ return {
135
+ path: urlPath,
136
+ method: 'GET',
137
+ headers: headerParameters,
138
+ query: queryParameters,
139
+ };
140
+ }
141
+ /**
142
+ * Returns the calling user\'s current tier and the list of capability tokens unlocked. SDK consumers call this to surface \"why am I getting a 402\" without guessing — the envelope\'s `data.capabilities` is authoritative.
143
+ * Effective capabilities for the calling user
144
+ */
145
+ async accountMeCapabilitiesRaw(initOverrides) {
146
+ const requestOptions = await this.accountMeCapabilitiesRequestOpts();
147
+ const response = await this.request(requestOptions, initOverrides);
148
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountMeCapabilities200ResponseFromJSON(jsonValue));
149
+ }
150
+ /**
151
+ * Returns the calling user\'s current tier and the list of capability tokens unlocked. SDK consumers call this to surface \"why am I getting a 402\" without guessing — the envelope\'s `data.capabilities` is authoritative.
152
+ * Effective capabilities for the calling user
153
+ */
154
+ async accountMeCapabilities(initOverrides) {
155
+ const response = await this.accountMeCapabilitiesRaw(initOverrides);
156
+ return await response.value();
157
+ }
158
+ /**
159
+ * Creates request options for accountUsageRecent without sending the request
160
+ */
161
+ async accountUsageRecentRequestOpts() {
162
+ const queryParameters = {};
163
+ const headerParameters = {};
164
+ let urlPath = `/v1/account/usage/recent`;
165
+ return {
166
+ path: urlPath,
167
+ method: 'GET',
168
+ headers: headerParameters,
169
+ query: queryParameters,
170
+ };
171
+ }
172
+ /**
173
+ * Returns the last 50 logged requests for the calling user\'s API keys. Content-negotiates: `Accept: text/event-stream` upgrades to SSE; default JSON.
174
+ * Recent request log
175
+ */
176
+ async accountUsageRecentRaw(initOverrides) {
177
+ const requestOptions = await this.accountUsageRecentRequestOpts();
178
+ const response = await this.request(requestOptions, initOverrides);
179
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountUsageRecent200ResponseFromJSON(jsonValue));
180
+ }
181
+ /**
182
+ * Returns the last 50 logged requests for the calling user\'s API keys. Content-negotiates: `Accept: text/event-stream` upgrades to SSE; default JSON.
183
+ * Recent request log
184
+ */
185
+ async accountUsageRecent(initOverrides) {
186
+ const response = await this.accountUsageRecentRaw(initOverrides);
187
+ return await response.value();
188
+ }
189
+ /**
190
+ * Creates request options for accountUsageToday without sending the request
191
+ */
192
+ async accountUsageTodayRequestOpts() {
193
+ const queryParameters = {};
194
+ const headerParameters = {};
195
+ let urlPath = `/v1/account/usage/today`;
196
+ return {
197
+ path: urlPath,
198
+ method: 'GET',
199
+ headers: headerParameters,
200
+ query: queryParameters,
201
+ };
202
+ }
203
+ /**
204
+ * Returns `{count, quota, pct, tier, resets_at_utc}` for the current UTC day. Reads the Redis counter the Quota middleware writes — same source of truth as the rate limiter.
205
+ * Today\'s quota counter
206
+ */
207
+ async accountUsageTodayRaw(initOverrides) {
208
+ const requestOptions = await this.accountUsageTodayRequestOpts();
209
+ const response = await this.request(requestOptions, initOverrides);
210
+ return new runtime.JSONApiResponse(response, (jsonValue) => UsageTodayFromJSON(jsonValue));
211
+ }
212
+ /**
213
+ * Returns `{count, quota, pct, tier, resets_at_utc}` for the current UTC day. Reads the Redis counter the Quota middleware writes — same source of truth as the rate limiter.
214
+ * Today\'s quota counter
215
+ */
216
+ async accountUsageToday(initOverrides) {
217
+ const response = await this.accountUsageTodayRaw(initOverrides);
218
+ return await response.value();
219
+ }
220
+ }
221
+ /**
222
+ * @export
223
+ */
224
+ export const AccountCreateKeyOperationModeEnum = {
225
+ Live: 'live',
226
+ Sandbox: 'sandbox'
227
+ };
228
+ //# sourceMappingURL=AccountApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountApi.js","sourceRoot":"","sources":["../../src/apis/AccountApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,EAEH,mCAAmC,GAEtC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGH,6BAA6B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEH,kCAAkC,GAErC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEH,wCAAwC,GAE3C,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAEH,qCAAqC,GAExC,MAAM,yCAAyC,CAAC;AAMjD,OAAO,EAEH,kBAAkB,GAErB,MAAM,sBAAsB,CAAC;AA6J9B;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;OAEG;IACH,KAAK,CAAC,2BAA2B,CAAC,iBAAmD;QACjF,IAAI,iBAAiB,CAAC,yBAAyB,CAAC,IAAI,IAAI,EAAE,CAAC;YACvD,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,yBAAyB,EACzB,qGAAqG,CACxG,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAGtD,IAAI,OAAO,GAAG,kBAAkB,CAAC;QAEjC,OAAO;YACH,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,MAAM;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