@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,368 @@
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
+
15
+ import * as runtime from '../runtime';
16
+ import {
17
+ type ErrorEnvelope,
18
+ ErrorEnvelopeFromJSON,
19
+ ErrorEnvelopeToJSON,
20
+ } from '../models/ErrorEnvelope';
21
+ import {
22
+ type MatchEnvelope,
23
+ MatchEnvelopeFromJSON,
24
+ MatchEnvelopeToJSON,
25
+ } from '../models/MatchEnvelope';
26
+ import {
27
+ type MatchPreviewEnvelope,
28
+ MatchPreviewEnvelopeFromJSON,
29
+ MatchPreviewEnvelopeToJSON,
30
+ } from '../models/MatchPreviewEnvelope';
31
+ import {
32
+ type MatchesListResponse,
33
+ MatchesListResponseFromJSON,
34
+ MatchesListResponseToJSON,
35
+ } from '../models/MatchesListResponse';
36
+
37
+ export interface MatchesGetRequest {
38
+ id: string;
39
+ }
40
+
41
+ export interface MatchesListRequest {
42
+ cursor?: string;
43
+ limit?: number;
44
+ bulk?: boolean;
45
+ game?: string;
46
+ status?: MatchesListStatusEnum;
47
+ leagueId?: number;
48
+ seriesId?: number;
49
+ tournamentId?: number;
50
+ from?: Date;
51
+ to?: Date;
52
+ }
53
+
54
+ export interface MatchesPreviewRequest {
55
+ id: string;
56
+ }
57
+
58
+ /**
59
+ * MatchesApi - interface
60
+ *
61
+ * @export
62
+ * @interface MatchesApiInterface
63
+ */
64
+ export interface MatchesApiInterface {
65
+ /**
66
+ * Creates request options for matchesGet without sending the request
67
+ * @param {string} id
68
+ * @throws {RequiredError}
69
+ * @memberof MatchesApiInterface
70
+ */
71
+ matchesGetRequestOpts(requestParameters: MatchesGetRequest): Promise<runtime.RequestOpts>;
72
+
73
+ /**
74
+ *
75
+ * @summary Get a single match
76
+ * @param {string} id
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ * @memberof MatchesApiInterface
80
+ */
81
+ matchesGetRaw(requestParameters: MatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchEnvelope>>;
82
+
83
+ /**
84
+ * Get a single match
85
+ */
86
+ matchesGet(requestParameters: MatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchEnvelope>;
87
+
88
+ /**
89
+ * Creates request options for matchesList without sending the request
90
+ * @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.
91
+ * @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;.)
92
+ * @param {boolean} [bulk] Pro+ only. Returns up to 10k matches per page instead of the cursor-default 50. Free/Hobbyist callers get 402.
93
+ * @param {string} [game]
94
+ * @param {'scheduled' | 'live' | 'completed' | 'cancelled' | 'postponed'} [status]
95
+ * @param {number} [leagueId]
96
+ * @param {number} [seriesId]
97
+ * @param {number} [tournamentId]
98
+ * @param {Date} [from]
99
+ * @param {Date} [to]
100
+ * @throws {RequiredError}
101
+ * @memberof MatchesApiInterface
102
+ */
103
+ matchesListRequestOpts(requestParameters: MatchesListRequest): Promise<runtime.RequestOpts>;
104
+
105
+ /**
106
+ * Returns matches with denormalized league/series/tournament summaries. Stats (per-player KDA / per-map team aggregates) are gated to Hobbyist+ via the `match_stats` capability — Free-tier sees scores + status only. Bulk export (`?bulk=true`) is Pro+ via `bulk_export` capability and allows up to 10k matches per page.
107
+ * @summary List matches
108
+ * @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.
109
+ * @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;.)
110
+ * @param {boolean} [bulk] Pro+ only. Returns up to 10k matches per page instead of the cursor-default 50. Free/Hobbyist callers get 402.
111
+ * @param {string} [game]
112
+ * @param {'scheduled' | 'live' | 'completed' | 'cancelled' | 'postponed'} [status]
113
+ * @param {number} [leagueId]
114
+ * @param {number} [seriesId]
115
+ * @param {number} [tournamentId]
116
+ * @param {Date} [from]
117
+ * @param {Date} [to]
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ * @memberof MatchesApiInterface
121
+ */
122
+ matchesListRaw(requestParameters: MatchesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchesListResponse>>;
123
+
124
+ /**
125
+ * Returns matches with denormalized league/series/tournament summaries. Stats (per-player KDA / per-map team aggregates) are gated to Hobbyist+ via the `match_stats` capability — Free-tier sees scores + status only. Bulk export (`?bulk=true`) is Pro+ via `bulk_export` capability and allows up to 10k matches per page.
126
+ * List matches
127
+ */
128
+ matchesList(requestParameters: MatchesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchesListResponse>;
129
+
130
+ /**
131
+ * Creates request options for matchesPreview without sending the request
132
+ * @param {string} id
133
+ * @throws {RequiredError}
134
+ * @memberof MatchesApiInterface
135
+ */
136
+ matchesPreviewRequestOpts(requestParameters: MatchesPreviewRequest): Promise<runtime.RequestOpts>;
137
+
138
+ /**
139
+ * Pre-match form (last-N results, 30-day wins/losses), head-to-head record, and last-5 matches per team. CS2 matches additionally carry `cs2_specific` with map veto history when the upstream bo3.gg source exposed it. Pro+ via `match_preview` capability. Derived from completed matches in our match-history corpus — Liquipedia-derived attribution is included in `meta.sources` when applicable. Client may cache via `Cache-Control: max-age=120`.
140
+ * @summary Get pre-match analytics preview
141
+ * @param {string} id
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ * @memberof MatchesApiInterface
145
+ */
146
+ matchesPreviewRaw(requestParameters: MatchesPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchPreviewEnvelope>>;
147
+
148
+ /**
149
+ * Pre-match form (last-N results, 30-day wins/losses), head-to-head record, and last-5 matches per team. CS2 matches additionally carry `cs2_specific` with map veto history when the upstream bo3.gg source exposed it. Pro+ via `match_preview` capability. Derived from completed matches in our match-history corpus — Liquipedia-derived attribution is included in `meta.sources` when applicable. Client may cache via `Cache-Control: max-age=120`.
150
+ * Get pre-match analytics preview
151
+ */
152
+ matchesPreview(requestParameters: MatchesPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchPreviewEnvelope>;
153
+
154
+ }
155
+
156
+ /**
157
+ *
158
+ */
159
+ export class MatchesApi extends runtime.BaseAPI implements MatchesApiInterface {
160
+
161
+ /**
162
+ * Creates request options for matchesGet without sending the request
163
+ */
164
+ async matchesGetRequestOpts(requestParameters: MatchesGetRequest): Promise<runtime.RequestOpts> {
165
+ if (requestParameters['id'] == null) {
166
+ throw new runtime.RequiredError(
167
+ 'id',
168
+ 'Required parameter "id" was null or undefined when calling matchesGet().'
169
+ );
170
+ }
171
+
172
+ const queryParameters: any = {};
173
+
174
+ const headerParameters: runtime.HTTPHeaders = {};
175
+
176
+ if (this.configuration && this.configuration.accessToken) {
177
+ const token = this.configuration.accessToken;
178
+ const tokenString = await token("apiKey", []);
179
+
180
+ if (tokenString) {
181
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
182
+ }
183
+ }
184
+
185
+ let urlPath = `/v1/matches/{id}`;
186
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
187
+
188
+ return {
189
+ path: urlPath,
190
+ method: 'GET',
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ };
194
+ }
195
+
196
+ /**
197
+ * Get a single match
198
+ */
199
+ async matchesGetRaw(requestParameters: MatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchEnvelope>> {
200
+ const requestOptions = await this.matchesGetRequestOpts(requestParameters);
201
+ const response = await this.request(requestOptions, initOverrides);
202
+
203
+ return new runtime.JSONApiResponse(response, (jsonValue) => MatchEnvelopeFromJSON(jsonValue));
204
+ }
205
+
206
+ /**
207
+ * Get a single match
208
+ */
209
+ async matchesGet(requestParameters: MatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchEnvelope> {
210
+ const response = await this.matchesGetRaw(requestParameters, initOverrides);
211
+ return await response.value();
212
+ }
213
+
214
+ /**
215
+ * Creates request options for matchesList without sending the request
216
+ */
217
+ async matchesListRequestOpts(requestParameters: MatchesListRequest): Promise<runtime.RequestOpts> {
218
+ const queryParameters: any = {};
219
+
220
+ if (requestParameters['cursor'] != null) {
221
+ queryParameters['cursor'] = requestParameters['cursor'];
222
+ }
223
+
224
+ if (requestParameters['limit'] != null) {
225
+ queryParameters['limit'] = requestParameters['limit'];
226
+ }
227
+
228
+ if (requestParameters['bulk'] != null) {
229
+ queryParameters['bulk'] = requestParameters['bulk'];
230
+ }
231
+
232
+ if (requestParameters['game'] != null) {
233
+ queryParameters['game'] = requestParameters['game'];
234
+ }
235
+
236
+ if (requestParameters['status'] != null) {
237
+ queryParameters['status'] = requestParameters['status'];
238
+ }
239
+
240
+ if (requestParameters['leagueId'] != null) {
241
+ queryParameters['league_id'] = requestParameters['leagueId'];
242
+ }
243
+
244
+ if (requestParameters['seriesId'] != null) {
245
+ queryParameters['series_id'] = requestParameters['seriesId'];
246
+ }
247
+
248
+ if (requestParameters['tournamentId'] != null) {
249
+ queryParameters['tournament_id'] = requestParameters['tournamentId'];
250
+ }
251
+
252
+ if (requestParameters['from'] != null) {
253
+ queryParameters['from'] = (requestParameters['from'] as any).toISOString().substring(0,10);
254
+ }
255
+
256
+ if (requestParameters['to'] != null) {
257
+ queryParameters['to'] = (requestParameters['to'] as any).toISOString().substring(0,10);
258
+ }
259
+
260
+ const headerParameters: runtime.HTTPHeaders = {};
261
+
262
+ if (this.configuration && this.configuration.accessToken) {
263
+ const token = this.configuration.accessToken;
264
+ const tokenString = await token("apiKey", []);
265
+
266
+ if (tokenString) {
267
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
268
+ }
269
+ }
270
+
271
+ let urlPath = `/v1/matches`;
272
+
273
+ return {
274
+ path: urlPath,
275
+ method: 'GET',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ };
279
+ }
280
+
281
+ /**
282
+ * Returns matches with denormalized league/series/tournament summaries. Stats (per-player KDA / per-map team aggregates) are gated to Hobbyist+ via the `match_stats` capability — Free-tier sees scores + status only. Bulk export (`?bulk=true`) is Pro+ via `bulk_export` capability and allows up to 10k matches per page.
283
+ * List matches
284
+ */
285
+ async matchesListRaw(requestParameters: MatchesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchesListResponse>> {
286
+ const requestOptions = await this.matchesListRequestOpts(requestParameters);
287
+ const response = await this.request(requestOptions, initOverrides);
288
+
289
+ return new runtime.JSONApiResponse(response, (jsonValue) => MatchesListResponseFromJSON(jsonValue));
290
+ }
291
+
292
+ /**
293
+ * Returns matches with denormalized league/series/tournament summaries. Stats (per-player KDA / per-map team aggregates) are gated to Hobbyist+ via the `match_stats` capability — Free-tier sees scores + status only. Bulk export (`?bulk=true`) is Pro+ via `bulk_export` capability and allows up to 10k matches per page.
294
+ * List matches
295
+ */
296
+ async matchesList(requestParameters: MatchesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchesListResponse> {
297
+ const response = await this.matchesListRaw(requestParameters, initOverrides);
298
+ return await response.value();
299
+ }
300
+
301
+ /**
302
+ * Creates request options for matchesPreview without sending the request
303
+ */
304
+ async matchesPreviewRequestOpts(requestParameters: MatchesPreviewRequest): Promise<runtime.RequestOpts> {
305
+ if (requestParameters['id'] == null) {
306
+ throw new runtime.RequiredError(
307
+ 'id',
308
+ 'Required parameter "id" was null or undefined when calling matchesPreview().'
309
+ );
310
+ }
311
+
312
+ const queryParameters: any = {};
313
+
314
+ const headerParameters: runtime.HTTPHeaders = {};
315
+
316
+ if (this.configuration && this.configuration.accessToken) {
317
+ const token = this.configuration.accessToken;
318
+ const tokenString = await token("apiKey", []);
319
+
320
+ if (tokenString) {
321
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
322
+ }
323
+ }
324
+
325
+ let urlPath = `/v1/matches/{id}/preview`;
326
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
327
+
328
+ return {
329
+ path: urlPath,
330
+ method: 'GET',
331
+ headers: headerParameters,
332
+ query: queryParameters,
333
+ };
334
+ }
335
+
336
+ /**
337
+ * Pre-match form (last-N results, 30-day wins/losses), head-to-head record, and last-5 matches per team. CS2 matches additionally carry `cs2_specific` with map veto history when the upstream bo3.gg source exposed it. Pro+ via `match_preview` capability. Derived from completed matches in our match-history corpus — Liquipedia-derived attribution is included in `meta.sources` when applicable. Client may cache via `Cache-Control: max-age=120`.
338
+ * Get pre-match analytics preview
339
+ */
340
+ async matchesPreviewRaw(requestParameters: MatchesPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MatchPreviewEnvelope>> {
341
+ const requestOptions = await this.matchesPreviewRequestOpts(requestParameters);
342
+ const response = await this.request(requestOptions, initOverrides);
343
+
344
+ return new runtime.JSONApiResponse(response, (jsonValue) => MatchPreviewEnvelopeFromJSON(jsonValue));
345
+ }
346
+
347
+ /**
348
+ * Pre-match form (last-N results, 30-day wins/losses), head-to-head record, and last-5 matches per team. CS2 matches additionally carry `cs2_specific` with map veto history when the upstream bo3.gg source exposed it. Pro+ via `match_preview` capability. Derived from completed matches in our match-history corpus — Liquipedia-derived attribution is included in `meta.sources` when applicable. Client may cache via `Cache-Control: max-age=120`.
349
+ * Get pre-match analytics preview
350
+ */
351
+ async matchesPreview(requestParameters: MatchesPreviewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MatchPreviewEnvelope> {
352
+ const response = await this.matchesPreviewRaw(requestParameters, initOverrides);
353
+ return await response.value();
354
+ }
355
+
356
+ }
357
+
358
+ /**
359
+ * @export
360
+ */
361
+ export const MatchesListStatusEnum = {
362
+ Scheduled: 'scheduled',
363
+ Live: 'live',
364
+ Completed: 'completed',
365
+ Cancelled: 'cancelled',
366
+ Postponed: 'postponed'
367
+ } as const;
368
+ export type MatchesListStatusEnum = typeof MatchesListStatusEnum[keyof typeof MatchesListStatusEnum];
@@ -0,0 +1,289 @@
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
+
15
+ import * as runtime from '../runtime';
16
+ import {
17
+ type Healthz200Response,
18
+ Healthz200ResponseFromJSON,
19
+ Healthz200ResponseToJSON,
20
+ } from '../models/Healthz200Response';
21
+ import {
22
+ type RootVersion200Response,
23
+ RootVersion200ResponseFromJSON,
24
+ RootVersion200ResponseToJSON,
25
+ } from '../models/RootVersion200Response';
26
+
27
+ /**
28
+ * MetaApi - interface
29
+ *
30
+ * @export
31
+ * @interface MetaApiInterface
32
+ */
33
+ export interface MetaApiInterface {
34
+ /**
35
+ * Creates request options for healthz without sending the request
36
+ * @throws {RequiredError}
37
+ * @memberof MetaApiInterface
38
+ */
39
+ healthzRequestOpts(): Promise<runtime.RequestOpts>;
40
+
41
+ /**
42
+ * Returns `{\"status\":\"ok\"}` — Kubernetes-style probe path. Does not carry the standard envelope; clients should NOT depend on the body shape.
43
+ * @summary Liveness probe
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ * @memberof MetaApiInterface
47
+ */
48
+ healthzRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Healthz200Response>>;
49
+
50
+ /**
51
+ * Returns `{\"status\":\"ok\"}` — Kubernetes-style probe path. Does not carry the standard envelope; clients should NOT depend on the body shape.
52
+ * Liveness probe
53
+ */
54
+ healthz(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Healthz200Response>;
55
+
56
+ /**
57
+ * Creates request options for openapiJson without sending the request
58
+ * @throws {RequiredError}
59
+ * @memberof MetaApiInterface
60
+ */
61
+ openapiJsonRequestOpts(): Promise<runtime.RequestOpts>;
62
+
63
+ /**
64
+ * JSON-flavoured copy of the spec for tooling that prefers JSON.
65
+ * @summary Fetch this OpenAPI document (JSON)
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ * @memberof MetaApiInterface
69
+ */
70
+ openapiJsonRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
71
+
72
+ /**
73
+ * JSON-flavoured copy of the spec for tooling that prefers JSON.
74
+ * Fetch this OpenAPI document (JSON)
75
+ */
76
+ openapiJson(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
77
+
78
+ /**
79
+ * Creates request options for openapiYaml without sending the request
80
+ * @throws {RequiredError}
81
+ * @memberof MetaApiInterface
82
+ */
83
+ openapiYamlRequestOpts(): Promise<runtime.RequestOpts>;
84
+
85
+ /**
86
+ * The same YAML you\'re reading, served at runtime. Use this endpoint to detect spec changes without redeploying SDKs.
87
+ * @summary Fetch this OpenAPI document (YAML)
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ * @memberof MetaApiInterface
91
+ */
92
+ openapiYamlRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
93
+
94
+ /**
95
+ * The same YAML you\'re reading, served at runtime. Use this endpoint to detect spec changes without redeploying SDKs.
96
+ * Fetch this OpenAPI document (YAML)
97
+ */
98
+ openapiYaml(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
99
+
100
+ /**
101
+ * Creates request options for rootVersion without sending the request
102
+ * @throws {RequiredError}
103
+ * @memberof MetaApiInterface
104
+ */
105
+ rootVersionRequestOpts(): Promise<runtime.RequestOpts>;
106
+
107
+ /**
108
+ * Returns a static metadata object identifying the API version + docs link.
109
+ * @summary Root version stub
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ * @memberof MetaApiInterface
113
+ */
114
+ rootVersionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RootVersion200Response>>;
115
+
116
+ /**
117
+ * Returns a static metadata object identifying the API version + docs link.
118
+ * Root version stub
119
+ */
120
+ rootVersion(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RootVersion200Response>;
121
+
122
+ }
123
+
124
+ /**
125
+ *
126
+ */
127
+ export class MetaApi extends runtime.BaseAPI implements MetaApiInterface {
128
+
129
+ /**
130
+ * Creates request options for healthz without sending the request
131
+ */
132
+ async healthzRequestOpts(): Promise<runtime.RequestOpts> {
133
+ const queryParameters: any = {};
134
+
135
+ const headerParameters: runtime.HTTPHeaders = {};
136
+
137
+
138
+ let urlPath = `/healthz`;
139
+
140
+ return {
141
+ path: urlPath,
142
+ method: 'GET',
143
+ headers: headerParameters,
144
+ query: queryParameters,
145
+ };
146
+ }
147
+
148
+ /**
149
+ * Returns `{\"status\":\"ok\"}` — Kubernetes-style probe path. Does not carry the standard envelope; clients should NOT depend on the body shape.
150
+ * Liveness probe
151
+ */
152
+ async healthzRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Healthz200Response>> {
153
+ const requestOptions = await this.healthzRequestOpts();
154
+ const response = await this.request(requestOptions, initOverrides);
155
+
156
+ return new runtime.JSONApiResponse(response, (jsonValue) => Healthz200ResponseFromJSON(jsonValue));
157
+ }
158
+
159
+ /**
160
+ * Returns `{\"status\":\"ok\"}` — Kubernetes-style probe path. Does not carry the standard envelope; clients should NOT depend on the body shape.
161
+ * Liveness probe
162
+ */
163
+ async healthz(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Healthz200Response> {
164
+ const response = await this.healthzRaw(initOverrides);
165
+ return await response.value();
166
+ }
167
+
168
+ /**
169
+ * Creates request options for openapiJson without sending the request
170
+ */
171
+ async openapiJsonRequestOpts(): Promise<runtime.RequestOpts> {
172
+ const queryParameters: any = {};
173
+
174
+ const headerParameters: runtime.HTTPHeaders = {};
175
+
176
+
177
+ let urlPath = `/v1/openapi.json`;
178
+
179
+ return {
180
+ path: urlPath,
181
+ method: 'GET',
182
+ headers: headerParameters,
183
+ query: queryParameters,
184
+ };
185
+ }
186
+
187
+ /**
188
+ * JSON-flavoured copy of the spec for tooling that prefers JSON.
189
+ * Fetch this OpenAPI document (JSON)
190
+ */
191
+ async openapiJsonRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
192
+ const requestOptions = await this.openapiJsonRequestOpts();
193
+ const response = await this.request(requestOptions, initOverrides);
194
+
195
+ return new runtime.JSONApiResponse<any>(response);
196
+ }
197
+
198
+ /**
199
+ * JSON-flavoured copy of the spec for tooling that prefers JSON.
200
+ * Fetch this OpenAPI document (JSON)
201
+ */
202
+ async openapiJson(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
203
+ const response = await this.openapiJsonRaw(initOverrides);
204
+ return await response.value();
205
+ }
206
+
207
+ /**
208
+ * Creates request options for openapiYaml without sending the request
209
+ */
210
+ async openapiYamlRequestOpts(): Promise<runtime.RequestOpts> {
211
+ const queryParameters: any = {};
212
+
213
+ const headerParameters: runtime.HTTPHeaders = {};
214
+
215
+
216
+ let urlPath = `/v1/openapi.yaml`;
217
+
218
+ return {
219
+ path: urlPath,
220
+ method: 'GET',
221
+ headers: headerParameters,
222
+ query: queryParameters,
223
+ };
224
+ }
225
+
226
+ /**
227
+ * The same YAML you\'re reading, served at runtime. Use this endpoint to detect spec changes without redeploying SDKs.
228
+ * Fetch this OpenAPI document (YAML)
229
+ */
230
+ async openapiYamlRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
231
+ const requestOptions = await this.openapiYamlRequestOpts();
232
+ const response = await this.request(requestOptions, initOverrides);
233
+
234
+ if (this.isJsonMime(response.headers.get('content-type'))) {
235
+ return new runtime.JSONApiResponse<string>(response);
236
+ } else {
237
+ return new runtime.TextApiResponse(response) as any;
238
+ }
239
+ }
240
+
241
+ /**
242
+ * The same YAML you\'re reading, served at runtime. Use this endpoint to detect spec changes without redeploying SDKs.
243
+ * Fetch this OpenAPI document (YAML)
244
+ */
245
+ async openapiYaml(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
246
+ const response = await this.openapiYamlRaw(initOverrides);
247
+ return await response.value();
248
+ }
249
+
250
+ /**
251
+ * Creates request options for rootVersion without sending the request
252
+ */
253
+ async rootVersionRequestOpts(): Promise<runtime.RequestOpts> {
254
+ const queryParameters: any = {};
255
+
256
+ const headerParameters: runtime.HTTPHeaders = {};
257
+
258
+
259
+ let urlPath = `/v1`;
260
+
261
+ return {
262
+ path: urlPath,
263
+ method: 'GET',
264
+ headers: headerParameters,
265
+ query: queryParameters,
266
+ };
267
+ }
268
+
269
+ /**
270
+ * Returns a static metadata object identifying the API version + docs link.
271
+ * Root version stub
272
+ */
273
+ async rootVersionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RootVersion200Response>> {
274
+ const requestOptions = await this.rootVersionRequestOpts();
275
+ const response = await this.request(requestOptions, initOverrides);
276
+
277
+ return new runtime.JSONApiResponse(response, (jsonValue) => RootVersion200ResponseFromJSON(jsonValue));
278
+ }
279
+
280
+ /**
281
+ * Returns a static metadata object identifying the API version + docs link.
282
+ * Root version stub
283
+ */
284
+ async rootVersion(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RootVersion200Response> {
285
+ const response = await this.rootVersionRaw(initOverrides);
286
+ return await response.value();
287
+ }
288
+
289
+ }