@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
@@ -0,0 +1,149 @@
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 TournamentEnvelope } from '../models/TournamentEnvelope';
14
+ import { type TournamentsListResponse } from '../models/TournamentsListResponse';
15
+ export interface TournamentsGetRequest {
16
+ id: string;
17
+ }
18
+ export interface TournamentsListRequest {
19
+ cursor?: string;
20
+ limit?: number;
21
+ game?: string;
22
+ status?: TournamentsListStatusEnum;
23
+ tier?: TournamentsListTierEnum;
24
+ region?: string;
25
+ leagueId?: number;
26
+ seriesId?: number;
27
+ from?: Date;
28
+ to?: Date;
29
+ }
30
+ /**
31
+ * TournamentsApi - interface
32
+ *
33
+ * @export
34
+ * @interface TournamentsApiInterface
35
+ */
36
+ export interface TournamentsApiInterface {
37
+ /**
38
+ * Creates request options for tournamentsGet without sending the request
39
+ * @param {string} id
40
+ * @throws {RequiredError}
41
+ * @memberof TournamentsApiInterface
42
+ */
43
+ tournamentsGetRequestOpts(requestParameters: TournamentsGetRequest): Promise<runtime.RequestOpts>;
44
+ /**
45
+ *
46
+ * @summary Get a single tournament
47
+ * @param {string} id
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ * @memberof TournamentsApiInterface
51
+ */
52
+ tournamentsGetRaw(requestParameters: TournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TournamentEnvelope>>;
53
+ /**
54
+ * Get a single tournament
55
+ */
56
+ tournamentsGet(requestParameters: TournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TournamentEnvelope>;
57
+ /**
58
+ * Creates request options for tournamentsList without sending the request
59
+ * @param {string} [cursor] Opaque pagination cursor. Hand back the value from &#x60;meta.next_cursor&#x60; to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
60
+ * @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on &#x60;/v1/matches&#x60; may request up to 10k via &#x60;?bulk&#x3D;true&#x60;.)
61
+ * @param {string} [game]
62
+ * @param {'upcoming' | 'live' | 'completed' | 'cancelled'} [status]
63
+ * @param {'s' | 'a' | 'b' | 'c' | 'd'} [tier]
64
+ * @param {string} [region]
65
+ * @param {number} [leagueId]
66
+ * @param {number} [seriesId]
67
+ * @param {Date} [from]
68
+ * @param {Date} [to]
69
+ * @throws {RequiredError}
70
+ * @memberof TournamentsApiInterface
71
+ */
72
+ tournamentsListRequestOpts(requestParameters: TournamentsListRequest): Promise<runtime.RequestOpts>;
73
+ /**
74
+ * Returns tournaments with denormalized league/series summaries. Brackets (the DAG of previous-match edges) are gated to Hobbyist+ via the `brackets` capability — Free-tier callers see the tournament metadata but `brackets` field is omitted.
75
+ * @summary List tournaments
76
+ * @param {string} [cursor] Opaque pagination cursor. Hand back the value from &#x60;meta.next_cursor&#x60; to fetch the next page. Cursors are valid for at least 24 hours; treat them as opaque strings.
77
+ * @param {number} [limit] Items per page. 1-200, default 50. (Pro+ on &#x60;/v1/matches&#x60; may request up to 10k via &#x60;?bulk&#x3D;true&#x60;.)
78
+ * @param {string} [game]
79
+ * @param {'upcoming' | 'live' | 'completed' | 'cancelled'} [status]
80
+ * @param {'s' | 'a' | 'b' | 'c' | 'd'} [tier]
81
+ * @param {string} [region]
82
+ * @param {number} [leagueId]
83
+ * @param {number} [seriesId]
84
+ * @param {Date} [from]
85
+ * @param {Date} [to]
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ * @memberof TournamentsApiInterface
89
+ */
90
+ tournamentsListRaw(requestParameters: TournamentsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TournamentsListResponse>>;
91
+ /**
92
+ * Returns tournaments with denormalized league/series summaries. Brackets (the DAG of previous-match edges) are gated to Hobbyist+ via the `brackets` capability — Free-tier callers see the tournament metadata but `brackets` field is omitted.
93
+ * List tournaments
94
+ */
95
+ tournamentsList(requestParameters: TournamentsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TournamentsListResponse>;
96
+ }
97
+ /**
98
+ *
99
+ */
100
+ export declare class TournamentsApi extends runtime.BaseAPI implements TournamentsApiInterface {
101
+ /**
102
+ * Creates request options for tournamentsGet without sending the request
103
+ */
104
+ tournamentsGetRequestOpts(requestParameters: TournamentsGetRequest): Promise<runtime.RequestOpts>;
105
+ /**
106
+ * Get a single tournament
107
+ */
108
+ tournamentsGetRaw(requestParameters: TournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TournamentEnvelope>>;
109
+ /**
110
+ * Get a single tournament
111
+ */
112
+ tournamentsGet(requestParameters: TournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TournamentEnvelope>;
113
+ /**
114
+ * Creates request options for tournamentsList without sending the request
115
+ */
116
+ tournamentsListRequestOpts(requestParameters: TournamentsListRequest): Promise<runtime.RequestOpts>;
117
+ /**
118
+ * Returns tournaments with denormalized league/series summaries. Brackets (the DAG of previous-match edges) are gated to Hobbyist+ via the `brackets` capability — Free-tier callers see the tournament metadata but `brackets` field is omitted.
119
+ * List tournaments
120
+ */
121
+ tournamentsListRaw(requestParameters: TournamentsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TournamentsListResponse>>;
122
+ /**
123
+ * Returns tournaments with denormalized league/series summaries. Brackets (the DAG of previous-match edges) are gated to Hobbyist+ via the `brackets` capability — Free-tier callers see the tournament metadata but `brackets` field is omitted.
124
+ * List tournaments
125
+ */
126
+ tournamentsList(requestParameters?: TournamentsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TournamentsListResponse>;
127
+ }
128
+ /**
129
+ * @export
130
+ */
131
+ export declare const TournamentsListStatusEnum: {
132
+ readonly Upcoming: "upcoming";
133
+ readonly Live: "live";
134
+ readonly Completed: "completed";
135
+ readonly Cancelled: "cancelled";
136
+ };
137
+ export type TournamentsListStatusEnum = typeof TournamentsListStatusEnum[keyof typeof TournamentsListStatusEnum];
138
+ /**
139
+ * @export
140
+ */
141
+ export declare const TournamentsListTierEnum: {
142
+ readonly S: "s";
143
+ readonly A: "a";
144
+ readonly B: "b";
145
+ readonly C: "c";
146
+ readonly D: "d";
147
+ };
148
+ export type TournamentsListTierEnum = typeof TournamentsListTierEnum[keyof typeof TournamentsListTierEnum];
149
+ //# sourceMappingURL=TournamentsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TournamentsApi.d.ts","sourceRoot":"","sources":["../../src/apis/TournamentsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAMtC,OAAO,EACH,KAAK,kBAAkB,EAG1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACH,KAAK,uBAAuB,EAG/B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,EAAE,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;;OAKG;IACH,yBAAyB,CAAC,iBAAiB,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAElG;;;;;;;OAOG;IACH,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAE1K;;OAEG;IACH,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,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AAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;IAOtL;;;OAGG;IACG,eAAe,CAAC,iBAAiB,GAAE,sBAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAKtK;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;CAK5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AACjH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;CAM1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,149 @@
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 { TournamentEnvelopeFromJSON, } from '../models/TournamentEnvelope';
16
+ import { TournamentsListResponseFromJSON, } from '../models/TournamentsListResponse';
17
+ /**
18
+ *
19
+ */
20
+ export class TournamentsApi extends runtime.BaseAPI {
21
+ /**
22
+ * Creates request options for tournamentsGet without sending the request
23
+ */
24
+ async tournamentsGetRequestOpts(requestParameters) {
25
+ if (requestParameters['id'] == null) {
26
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling tournamentsGet().');
27
+ }
28
+ const queryParameters = {};
29
+ const headerParameters = {};
30
+ if (this.configuration && this.configuration.accessToken) {
31
+ const token = this.configuration.accessToken;
32
+ const tokenString = await token("apiKey", []);
33
+ if (tokenString) {
34
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
35
+ }
36
+ }
37
+ let urlPath = `/v1/tournaments/{id}`;
38
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
39
+ return {
40
+ path: urlPath,
41
+ method: 'GET',
42
+ headers: headerParameters,
43
+ query: queryParameters,
44
+ };
45
+ }
46
+ /**
47
+ * Get a single tournament
48
+ */
49
+ async tournamentsGetRaw(requestParameters, initOverrides) {
50
+ const requestOptions = await this.tournamentsGetRequestOpts(requestParameters);
51
+ const response = await this.request(requestOptions, initOverrides);
52
+ return new runtime.JSONApiResponse(response, (jsonValue) => TournamentEnvelopeFromJSON(jsonValue));
53
+ }
54
+ /**
55
+ * Get a single tournament
56
+ */
57
+ async tournamentsGet(requestParameters, initOverrides) {
58
+ const response = await this.tournamentsGetRaw(requestParameters, initOverrides);
59
+ return await response.value();
60
+ }
61
+ /**
62
+ * Creates request options for tournamentsList without sending the request
63
+ */
64
+ async tournamentsListRequestOpts(requestParameters) {
65
+ const queryParameters = {};
66
+ if (requestParameters['cursor'] != null) {
67
+ queryParameters['cursor'] = requestParameters['cursor'];
68
+ }
69
+ if (requestParameters['limit'] != null) {
70
+ queryParameters['limit'] = requestParameters['limit'];
71
+ }
72
+ if (requestParameters['game'] != null) {
73
+ queryParameters['game'] = requestParameters['game'];
74
+ }
75
+ if (requestParameters['status'] != null) {
76
+ queryParameters['status'] = requestParameters['status'];
77
+ }
78
+ if (requestParameters['tier'] != null) {
79
+ queryParameters['tier'] = requestParameters['tier'];
80
+ }
81
+ if (requestParameters['region'] != null) {
82
+ queryParameters['region'] = requestParameters['region'];
83
+ }
84
+ if (requestParameters['leagueId'] != null) {
85
+ queryParameters['league_id'] = requestParameters['leagueId'];
86
+ }
87
+ if (requestParameters['seriesId'] != null) {
88
+ queryParameters['series_id'] = requestParameters['seriesId'];
89
+ }
90
+ if (requestParameters['from'] != null) {
91
+ queryParameters['from'] = requestParameters['from'].toISOString().substring(0, 10);
92
+ }
93
+ if (requestParameters['to'] != null) {
94
+ queryParameters['to'] = requestParameters['to'].toISOString().substring(0, 10);
95
+ }
96
+ const headerParameters = {};
97
+ if (this.configuration && this.configuration.accessToken) {
98
+ const token = this.configuration.accessToken;
99
+ const tokenString = await token("apiKey", []);
100
+ if (tokenString) {
101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
102
+ }
103
+ }
104
+ let urlPath = `/v1/tournaments`;
105
+ return {
106
+ path: urlPath,
107
+ method: 'GET',
108
+ headers: headerParameters,
109
+ query: queryParameters,
110
+ };
111
+ }
112
+ /**
113
+ * Returns tournaments with denormalized league/series summaries. Brackets (the DAG of previous-match edges) are gated to Hobbyist+ via the `brackets` capability — Free-tier callers see the tournament metadata but `brackets` field is omitted.
114
+ * List tournaments
115
+ */
116
+ async tournamentsListRaw(requestParameters, initOverrides) {
117
+ const requestOptions = await this.tournamentsListRequestOpts(requestParameters);
118
+ const response = await this.request(requestOptions, initOverrides);
119
+ return new runtime.JSONApiResponse(response, (jsonValue) => TournamentsListResponseFromJSON(jsonValue));
120
+ }
121
+ /**
122
+ * Returns tournaments with denormalized league/series summaries. Brackets (the DAG of previous-match edges) are gated to Hobbyist+ via the `brackets` capability — Free-tier callers see the tournament metadata but `brackets` field is omitted.
123
+ * List tournaments
124
+ */
125
+ async tournamentsList(requestParameters = {}, initOverrides) {
126
+ const response = await this.tournamentsListRaw(requestParameters, initOverrides);
127
+ return await response.value();
128
+ }
129
+ }
130
+ /**
131
+ * @export
132
+ */
133
+ export const TournamentsListStatusEnum = {
134
+ Upcoming: 'upcoming',
135
+ Live: 'live',
136
+ Completed: 'completed',
137
+ Cancelled: 'cancelled'
138
+ };
139
+ /**
140
+ * @export
141
+ */
142
+ export const TournamentsListTierEnum = {
143
+ S: 's',
144
+ A: 'a',
145
+ B: 'b',
146
+ C: 'c',
147
+ D: 'd'
148
+ };
149
+ //# sourceMappingURL=TournamentsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TournamentsApi.js","sourceRoot":"","sources":["../../src/apis/TournamentsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAMtC,OAAO,EAEH,0BAA0B,GAE7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEH,+BAA+B,GAElC,MAAM,mCAAmC,CAAC;AA6F3C;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,OAAO,CAAC,OAAO;IAE/C;;OAEG;IACH,KAAK,CAAC,yBAAyB,CAAC,iBAAwC;QACpE,IAAI,iBAAiB,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YAClC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,IAAI,EACJ,8EAA8E,CACjF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;YAE9C,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QAED,IAAI,OAAO,GAAG,sBAAsB,CAA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E,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;CAChB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACA,CAAC"}
@@ -0,0 +1,173 @@
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 WebhookSubscriptionRequest } from '../models/WebhookSubscriptionRequest';
14
+ import { type WebhooksCreate201Response } from '../models/WebhooksCreate201Response';
15
+ import { type WebhooksList200Response } from '../models/WebhooksList200Response';
16
+ export interface PolarWebhookReceiveRequest {
17
+ body: object;
18
+ }
19
+ export interface WebhooksCreateRequest {
20
+ webhookSubscriptionRequest: WebhookSubscriptionRequest;
21
+ }
22
+ export interface WebhooksDeleteRequest {
23
+ id: number;
24
+ }
25
+ /**
26
+ * WebhooksApi - interface
27
+ *
28
+ * @export
29
+ * @interface WebhooksApiInterface
30
+ */
31
+ export interface WebhooksApiInterface {
32
+ /**
33
+ * Creates request options for polarWebhookReceive without sending the request
34
+ * @param {object} body
35
+ * @throws {RequiredError}
36
+ * @memberof WebhooksApiInterface
37
+ */
38
+ polarWebhookReceiveRequestOpts(requestParameters: PolarWebhookReceiveRequest): Promise<runtime.RequestOpts>;
39
+ /**
40
+ * Ingests Polar subscription events. HMAC-signed (Standard Webhooks spec). Idempotent on event_id. Customers should not call this directly; documented for completeness.
41
+ * @summary Polar.sh webhook receiver
42
+ * @param {object} body
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ * @memberof WebhooksApiInterface
46
+ */
47
+ polarWebhookReceiveRaw(requestParameters: PolarWebhookReceiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
48
+ /**
49
+ * Ingests Polar subscription events. HMAC-signed (Standard Webhooks spec). Idempotent on event_id. Customers should not call this directly; documented for completeness.
50
+ * Polar.sh webhook receiver
51
+ */
52
+ polarWebhookReceive(requestParameters: PolarWebhookReceiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
53
+ /**
54
+ * Creates request options for webhooksCreate without sending the request
55
+ * @param {WebhookSubscriptionRequest} webhookSubscriptionRequest
56
+ * @throws {RequiredError}
57
+ * @memberof WebhooksApiInterface
58
+ */
59
+ webhooksCreateRequestOpts(requestParameters: WebhooksCreateRequest): Promise<runtime.RequestOpts>;
60
+ /**
61
+ * Registers a new webhook URL. The signing secret is generated and returned EXACTLY ONCE. Optional filters narrow the events delivered (game, league, tournament). Pro tier or higher.
62
+ * @summary Create a webhook subscription
63
+ * @param {WebhookSubscriptionRequest} webhookSubscriptionRequest
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ * @memberof WebhooksApiInterface
67
+ */
68
+ webhooksCreateRaw(requestParameters: WebhooksCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksCreate201Response>>;
69
+ /**
70
+ * Registers a new webhook URL. The signing secret is generated and returned EXACTLY ONCE. Optional filters narrow the events delivered (game, league, tournament). Pro tier or higher.
71
+ * Create a webhook subscription
72
+ */
73
+ webhooksCreate(requestParameters: WebhooksCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksCreate201Response>;
74
+ /**
75
+ * Creates request options for webhooksDelete without sending the request
76
+ * @param {number} id
77
+ * @throws {RequiredError}
78
+ * @memberof WebhooksApiInterface
79
+ */
80
+ webhooksDeleteRequestOpts(requestParameters: WebhooksDeleteRequest): Promise<runtime.RequestOpts>;
81
+ /**
82
+ *
83
+ * @summary Revoke a webhook subscription
84
+ * @param {number} id
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ * @memberof WebhooksApiInterface
88
+ */
89
+ webhooksDeleteRaw(requestParameters: WebhooksDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
90
+ /**
91
+ * Revoke a webhook subscription
92
+ */
93
+ webhooksDelete(requestParameters: WebhooksDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
94
+ /**
95
+ * Creates request options for webhooksList without sending the request
96
+ * @throws {RequiredError}
97
+ * @memberof WebhooksApiInterface
98
+ */
99
+ webhooksListRequestOpts(): Promise<runtime.RequestOpts>;
100
+ /**
101
+ * Returns the calling API key\'s webhook subscriptions. Signing secrets are NEVER echoed; only the metadata.
102
+ * @summary List webhook subscriptions
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ * @memberof WebhooksApiInterface
106
+ */
107
+ webhooksListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksList200Response>>;
108
+ /**
109
+ * Returns the calling API key\'s webhook subscriptions. Signing secrets are NEVER echoed; only the metadata.
110
+ * List webhook subscriptions
111
+ */
112
+ webhooksList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksList200Response>;
113
+ }
114
+ /**
115
+ *
116
+ */
117
+ export declare class WebhooksApi extends runtime.BaseAPI implements WebhooksApiInterface {
118
+ /**
119
+ * Creates request options for polarWebhookReceive without sending the request
120
+ */
121
+ polarWebhookReceiveRequestOpts(requestParameters: PolarWebhookReceiveRequest): Promise<runtime.RequestOpts>;
122
+ /**
123
+ * Ingests Polar subscription events. HMAC-signed (Standard Webhooks spec). Idempotent on event_id. Customers should not call this directly; documented for completeness.
124
+ * Polar.sh webhook receiver
125
+ */
126
+ polarWebhookReceiveRaw(requestParameters: PolarWebhookReceiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
127
+ /**
128
+ * Ingests Polar subscription events. HMAC-signed (Standard Webhooks spec). Idempotent on event_id. Customers should not call this directly; documented for completeness.
129
+ * Polar.sh webhook receiver
130
+ */
131
+ polarWebhookReceive(requestParameters: PolarWebhookReceiveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
132
+ /**
133
+ * Creates request options for webhooksCreate without sending the request
134
+ */
135
+ webhooksCreateRequestOpts(requestParameters: WebhooksCreateRequest): Promise<runtime.RequestOpts>;
136
+ /**
137
+ * Registers a new webhook URL. The signing secret is generated and returned EXACTLY ONCE. Optional filters narrow the events delivered (game, league, tournament). Pro tier or higher.
138
+ * Create a webhook subscription
139
+ */
140
+ webhooksCreateRaw(requestParameters: WebhooksCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksCreate201Response>>;
141
+ /**
142
+ * Registers a new webhook URL. The signing secret is generated and returned EXACTLY ONCE. Optional filters narrow the events delivered (game, league, tournament). Pro tier or higher.
143
+ * Create a webhook subscription
144
+ */
145
+ webhooksCreate(requestParameters: WebhooksCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksCreate201Response>;
146
+ /**
147
+ * Creates request options for webhooksDelete without sending the request
148
+ */
149
+ webhooksDeleteRequestOpts(requestParameters: WebhooksDeleteRequest): Promise<runtime.RequestOpts>;
150
+ /**
151
+ * Revoke a webhook subscription
152
+ */
153
+ webhooksDeleteRaw(requestParameters: WebhooksDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
154
+ /**
155
+ * Revoke a webhook subscription
156
+ */
157
+ webhooksDelete(requestParameters: WebhooksDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
158
+ /**
159
+ * Creates request options for webhooksList without sending the request
160
+ */
161
+ webhooksListRequestOpts(): Promise<runtime.RequestOpts>;
162
+ /**
163
+ * Returns the calling API key\'s webhook subscriptions. Signing secrets are NEVER echoed; only the metadata.
164
+ * List webhook subscriptions
165
+ */
166
+ webhooksListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhooksList200Response>>;
167
+ /**
168
+ * Returns the calling API key\'s webhook subscriptions. Signing secrets are NEVER echoed; only the metadata.
169
+ * List webhook subscriptions
170
+ */
171
+ webhooksList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhooksList200Response>;
172
+ }
173
+ //# sourceMappingURL=WebhooksApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhooksApi.d.ts","sourceRoot":"","sources":["../../src/apis/WebhooksApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAMtC,OAAO,EACH,KAAK,0BAA0B,EAGlC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,KAAK,yBAAyB,EAGjC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACH,KAAK,uBAAuB,EAG/B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,WAAW,0BAA0B;IACvC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IAClC,0BAA0B,EAAE,0BAA0B,CAAC;CAC1D;AAED,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAo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;;;OAGG;IACG,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAK9J;;OAEG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;IAwBvG;;OAEG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAOjK;;OAEG;IACG,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzI;;OAEG;IACG,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC;IAgB7D;;;OAGG;IACG,eAAe,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC;IAOxI;;;OAGG;IACG,YAAY,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAKnH"}
@@ -0,0 +1,157 @@
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 { WebhookSubscriptionRequestToJSON, } from '../models/WebhookSubscriptionRequest';
16
+ import { WebhooksCreate201ResponseFromJSON, } from '../models/WebhooksCreate201Response';
17
+ import { WebhooksList200ResponseFromJSON, } from '../models/WebhooksList200Response';
18
+ /**
19
+ *
20
+ */
21
+ export class WebhooksApi extends runtime.BaseAPI {
22
+ /**
23
+ * Creates request options for polarWebhookReceive without sending the request
24
+ */
25
+ async polarWebhookReceiveRequestOpts(requestParameters) {
26
+ if (requestParameters['body'] == null) {
27
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling polarWebhookReceive().');
28
+ }
29
+ const queryParameters = {};
30
+ const headerParameters = {};
31
+ headerParameters['Content-Type'] = 'application/json';
32
+ let urlPath = `/v1/webhooks/polar`;
33
+ return {
34
+ path: urlPath,
35
+ method: 'POST',
36
+ headers: headerParameters,
37
+ query: queryParameters,
38
+ body: requestParameters['body'],
39
+ };
40
+ }
41
+ /**
42
+ * Ingests Polar subscription events. HMAC-signed (Standard Webhooks spec). Idempotent on event_id. Customers should not call this directly; documented for completeness.
43
+ * Polar.sh webhook receiver
44
+ */
45
+ async polarWebhookReceiveRaw(requestParameters, initOverrides) {
46
+ const requestOptions = await this.polarWebhookReceiveRequestOpts(requestParameters);
47
+ const response = await this.request(requestOptions, initOverrides);
48
+ return new runtime.VoidApiResponse(response);
49
+ }
50
+ /**
51
+ * Ingests Polar subscription events. HMAC-signed (Standard Webhooks spec). Idempotent on event_id. Customers should not call this directly; documented for completeness.
52
+ * Polar.sh webhook receiver
53
+ */
54
+ async polarWebhookReceive(requestParameters, initOverrides) {
55
+ await this.polarWebhookReceiveRaw(requestParameters, initOverrides);
56
+ }
57
+ /**
58
+ * Creates request options for webhooksCreate without sending the request
59
+ */
60
+ async webhooksCreateRequestOpts(requestParameters) {
61
+ if (requestParameters['webhookSubscriptionRequest'] == null) {
62
+ throw new runtime.RequiredError('webhookSubscriptionRequest', 'Required parameter "webhookSubscriptionRequest" was null or undefined when calling webhooksCreate().');
63
+ }
64
+ const queryParameters = {};
65
+ const headerParameters = {};
66
+ headerParameters['Content-Type'] = 'application/json';
67
+ let urlPath = `/v1/account/webhooks`;
68
+ return {
69
+ path: urlPath,
70
+ method: 'POST',
71
+ headers: headerParameters,
72
+ query: queryParameters,
73
+ body: WebhookSubscriptionRequestToJSON(requestParameters['webhookSubscriptionRequest']),
74
+ };
75
+ }
76
+ /**
77
+ * Registers a new webhook URL. The signing secret is generated and returned EXACTLY ONCE. Optional filters narrow the events delivered (game, league, tournament). Pro tier or higher.
78
+ * Create a webhook subscription
79
+ */
80
+ async webhooksCreateRaw(requestParameters, initOverrides) {
81
+ const requestOptions = await this.webhooksCreateRequestOpts(requestParameters);
82
+ const response = await this.request(requestOptions, initOverrides);
83
+ return new runtime.JSONApiResponse(response, (jsonValue) => WebhooksCreate201ResponseFromJSON(jsonValue));
84
+ }
85
+ /**
86
+ * Registers a new webhook URL. The signing secret is generated and returned EXACTLY ONCE. Optional filters narrow the events delivered (game, league, tournament). Pro tier or higher.
87
+ * Create a webhook subscription
88
+ */
89
+ async webhooksCreate(requestParameters, initOverrides) {
90
+ const response = await this.webhooksCreateRaw(requestParameters, initOverrides);
91
+ return await response.value();
92
+ }
93
+ /**
94
+ * Creates request options for webhooksDelete without sending the request
95
+ */
96
+ async webhooksDeleteRequestOpts(requestParameters) {
97
+ if (requestParameters['id'] == null) {
98
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling webhooksDelete().');
99
+ }
100
+ const queryParameters = {};
101
+ const headerParameters = {};
102
+ let urlPath = `/v1/account/webhooks/{id}`;
103
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
104
+ return {
105
+ path: urlPath,
106
+ method: 'DELETE',
107
+ headers: headerParameters,
108
+ query: queryParameters,
109
+ };
110
+ }
111
+ /**
112
+ * Revoke a webhook subscription
113
+ */
114
+ async webhooksDeleteRaw(requestParameters, initOverrides) {
115
+ const requestOptions = await this.webhooksDeleteRequestOpts(requestParameters);
116
+ const response = await this.request(requestOptions, initOverrides);
117
+ return new runtime.VoidApiResponse(response);
118
+ }
119
+ /**
120
+ * Revoke a webhook subscription
121
+ */
122
+ async webhooksDelete(requestParameters, initOverrides) {
123
+ await this.webhooksDeleteRaw(requestParameters, initOverrides);
124
+ }
125
+ /**
126
+ * Creates request options for webhooksList without sending the request
127
+ */
128
+ async webhooksListRequestOpts() {
129
+ const queryParameters = {};
130
+ const headerParameters = {};
131
+ let urlPath = `/v1/account/webhooks`;
132
+ return {
133
+ path: urlPath,
134
+ method: 'GET',
135
+ headers: headerParameters,
136
+ query: queryParameters,
137
+ };
138
+ }
139
+ /**
140
+ * Returns the calling API key\'s webhook subscriptions. Signing secrets are NEVER echoed; only the metadata.
141
+ * List webhook subscriptions
142
+ */
143
+ async webhooksListRaw(initOverrides) {
144
+ const requestOptions = await this.webhooksListRequestOpts();
145
+ const response = await this.request(requestOptions, initOverrides);
146
+ return new runtime.JSONApiResponse(response, (jsonValue) => WebhooksList200ResponseFromJSON(jsonValue));
147
+ }
148
+ /**
149
+ * Returns the calling API key\'s webhook subscriptions. Signing secrets are NEVER echoed; only the metadata.
150
+ * List webhook subscriptions
151
+ */
152
+ async webhooksList(initOverrides) {
153
+ const response = await this.webhooksListRaw(initOverrides);
154
+ return await response.value();
155
+ }
156
+ }
157
+ //# sourceMappingURL=WebhooksApi.js.map