@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,68 @@
1
+ // Hand-written extension module — survives openapi-generator
2
+ // regeneration (listed in clients/typescript/.openapi-generator-ignore).
3
+ //
4
+ // Provides a `fromEnv()` convenience factory that wraps the generated
5
+ // `Configuration` with environment-variable defaults. Customer code
6
+ // typically calls `fromEnv()` once and feeds the result into every
7
+ // API class constructor.
8
+
9
+ import { Configuration, ConfigurationParameters } from './runtime';
10
+
11
+ export const DEFAULT_BASE_URL = 'https://api.stadar.net';
12
+ export const API_KEY_ENV = 'STADAR_API_KEY';
13
+ export const BASE_URL_ENV = 'STADAR_API_URL';
14
+
15
+ /**
16
+ * Build a {@link Configuration} from environment variables.
17
+ *
18
+ * Reads `STADAR_API_KEY` (required) and `STADAR_API_URL` (optional).
19
+ * Throws if the key is unset. Sandbox keys (`esp_test_`-prefixed)
20
+ * auto-route to the fixture schema server-side — no client-side
21
+ * change needed.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * import { fromEnv } from '@stadar/sdk';
26
+ * import { MatchesApi } from '@stadar/sdk';
27
+ * const cfg = fromEnv();
28
+ * const live = await new MatchesApi(cfg).matchesList({ game: 'cs2', status: 'live' });
29
+ * ```
30
+ */
31
+ export function fromEnv(overrides: Partial<ConfigurationParameters> = {}): Configuration {
32
+ const env = readEnv();
33
+ const apiKey = env[API_KEY_ENV];
34
+ if (!apiKey) {
35
+ throw new Error(
36
+ `${API_KEY_ENV} is required (mint at https://stadar.net/dashboard)`
37
+ );
38
+ }
39
+ const basePath = env[BASE_URL_ENV] || DEFAULT_BASE_URL;
40
+ return new Configuration({
41
+ basePath,
42
+ apiKey,
43
+ ...overrides
44
+ });
45
+ }
46
+
47
+ // Declared so this module compiles without @types/node in the
48
+ // browser-bundled build. Real Node consumers get the proper type
49
+ // from @types/node; runtime feature-test (`typeof process`) guards
50
+ // the access either way.
51
+ declare const process:
52
+ | { env: Record<string, string | undefined> }
53
+ | undefined;
54
+
55
+ function readEnv(): Record<string, string | undefined> {
56
+ if (typeof process !== 'undefined' && process && process.env) {
57
+ return process.env;
58
+ }
59
+ // Browser / Vite / Webpack 5 ESM context.
60
+ try {
61
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
62
+ const meta = new Function('return import.meta')() as any;
63
+ if (meta?.env) return meta.env as Record<string, string | undefined>;
64
+ } catch {
65
+ // fall through; no env exposed in this runtime
66
+ }
67
+ return {};
68
+ }
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,101 @@
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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface APIKeySummary
20
+ */
21
+ export interface APIKeySummary {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof APIKeySummary
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof APIKeySummary
32
+ */
33
+ name: string;
34
+ /**
35
+ * First 8 chars of the raw key (display hint only).
36
+ * @type {string}
37
+ * @memberof APIKeySummary
38
+ */
39
+ prefix: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof APIKeySummary
44
+ */
45
+ createdAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof APIKeySummary
50
+ */
51
+ lastUsedAt?: Date;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the APIKeySummary interface.
56
+ */
57
+ export function instanceOfAPIKeySummary(value: object): value is APIKeySummary {
58
+ if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('name' in value) || value['name'] === undefined) return false;
60
+ if (!('prefix' in value) || value['prefix'] === undefined) return false;
61
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function APIKeySummaryFromJSON(json: any): APIKeySummary {
66
+ return APIKeySummaryFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function APIKeySummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): APIKeySummary {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'id': json['id'],
76
+ 'name': json['name'],
77
+ 'prefix': json['prefix'],
78
+ 'createdAt': (new Date(json['created_at'])),
79
+ 'lastUsedAt': json['last_used_at'] == null ? undefined : (new Date(json['last_used_at'])),
80
+ };
81
+ }
82
+
83
+ export function APIKeySummaryToJSON(json: any): APIKeySummary {
84
+ return APIKeySummaryToJSONTyped(json, false);
85
+ }
86
+
87
+ export function APIKeySummaryToJSONTyped(value?: APIKeySummary | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'id': value['id'],
95
+ 'name': value['name'],
96
+ 'prefix': value['prefix'],
97
+ 'created_at': value['createdAt'].toISOString(),
98
+ 'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
99
+ };
100
+ }
101
+
@@ -0,0 +1,128 @@
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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountCreateKey201Response
20
+ */
21
+ export interface AccountCreateKey201Response {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AccountCreateKey201Response
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AccountCreateKey201Response
32
+ */
33
+ name: string;
34
+ /**
35
+ * First 8 chars of the raw key (display hint only).
36
+ * @type {string}
37
+ * @memberof AccountCreateKey201Response
38
+ */
39
+ prefix: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof AccountCreateKey201Response
44
+ */
45
+ createdAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof AccountCreateKey201Response
50
+ */
51
+ lastUsedAt?: Date;
52
+ /**
53
+ * The full secret. Shown ONCE.
54
+ * @type {string}
55
+ * @memberof AccountCreateKey201Response
56
+ */
57
+ rawKey?: string;
58
+ /**
59
+ *
60
+ * @type {AccountCreateKey201ResponseModeEnum}
61
+ * @memberof AccountCreateKey201Response
62
+ */
63
+ mode?: AccountCreateKey201ResponseModeEnum;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const AccountCreateKey201ResponseModeEnum = {
71
+ Live: 'live',
72
+ Sandbox: 'sandbox'
73
+ } as const;
74
+ export type AccountCreateKey201ResponseModeEnum = typeof AccountCreateKey201ResponseModeEnum[keyof typeof AccountCreateKey201ResponseModeEnum];
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the AccountCreateKey201Response interface.
79
+ */
80
+ export function instanceOfAccountCreateKey201Response(value: object): value is AccountCreateKey201Response {
81
+ if (!('id' in value) || value['id'] === undefined) return false;
82
+ if (!('name' in value) || value['name'] === undefined) return false;
83
+ if (!('prefix' in value) || value['prefix'] === undefined) return false;
84
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
85
+ return true;
86
+ }
87
+
88
+ export function AccountCreateKey201ResponseFromJSON(json: any): AccountCreateKey201Response {
89
+ return AccountCreateKey201ResponseFromJSONTyped(json, false);
90
+ }
91
+
92
+ export function AccountCreateKey201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountCreateKey201Response {
93
+ if (json == null) {
94
+ return json;
95
+ }
96
+ return {
97
+
98
+ 'id': json['id'],
99
+ 'name': json['name'],
100
+ 'prefix': json['prefix'],
101
+ 'createdAt': (new Date(json['created_at'])),
102
+ 'lastUsedAt': json['last_used_at'] == null ? undefined : (new Date(json['last_used_at'])),
103
+ 'rawKey': json['raw_key'] == null ? undefined : json['raw_key'],
104
+ 'mode': json['mode'] == null ? undefined : json['mode'],
105
+ };
106
+ }
107
+
108
+ export function AccountCreateKey201ResponseToJSON(json: any): AccountCreateKey201Response {
109
+ return AccountCreateKey201ResponseToJSONTyped(json, false);
110
+ }
111
+
112
+ export function AccountCreateKey201ResponseToJSONTyped(value?: AccountCreateKey201Response | null, ignoreDiscriminator: boolean = false): any {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'name': value['name'],
121
+ 'prefix': value['prefix'],
122
+ 'created_at': value['createdAt'].toISOString(),
123
+ 'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
124
+ 'raw_key': value['rawKey'],
125
+ 'mode': value['mode'],
126
+ };
127
+ }
128
+
@@ -0,0 +1,66 @@
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 { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountCreateKeyRequest
20
+ */
21
+ export interface AccountCreateKeyRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountCreateKeyRequest
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AccountCreateKeyRequest interface.
32
+ */
33
+ export function instanceOfAccountCreateKeyRequest(value: object): value is AccountCreateKeyRequest {
34
+ if (!('name' in value) || value['name'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AccountCreateKeyRequestFromJSON(json: any): AccountCreateKeyRequest {
39
+ return AccountCreateKeyRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AccountCreateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountCreateKeyRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'name': json['name'],
49
+ };
50
+ }
51
+
52
+ export function AccountCreateKeyRequestToJSON(json: any): AccountCreateKeyRequest {
53
+ return AccountCreateKeyRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AccountCreateKeyRequestToJSONTyped(value?: AccountCreateKeyRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'name': value['name'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,73 @@
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 { mapValues } from '../runtime';
16
+ import type { APIKeySummary } from './APIKeySummary';
17
+ import {
18
+ APIKeySummaryFromJSON,
19
+ APIKeySummaryFromJSONTyped,
20
+ APIKeySummaryToJSON,
21
+ APIKeySummaryToJSONTyped,
22
+ } from './APIKeySummary';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountListKeys200Response
28
+ */
29
+ export interface AccountListKeys200Response {
30
+ /**
31
+ *
32
+ * @type {Array<APIKeySummary>}
33
+ * @memberof AccountListKeys200Response
34
+ */
35
+ data?: Array<APIKeySummary>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AccountListKeys200Response interface.
40
+ */
41
+ export function instanceOfAccountListKeys200Response(value: object): value is AccountListKeys200Response {
42
+ return true;
43
+ }
44
+
45
+ export function AccountListKeys200ResponseFromJSON(json: any): AccountListKeys200Response {
46
+ return AccountListKeys200ResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AccountListKeys200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountListKeys200Response {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(APIKeySummaryFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function AccountListKeys200ResponseToJSON(json: any): AccountListKeys200Response {
60
+ return AccountListKeys200ResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AccountListKeys200ResponseToJSONTyped(value?: AccountListKeys200Response | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(APIKeySummaryToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,88 @@
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 { mapValues } from '../runtime';
16
+ import type { Meta } from './Meta';
17
+ import {
18
+ MetaFromJSON,
19
+ MetaFromJSONTyped,
20
+ MetaToJSON,
21
+ MetaToJSONTyped,
22
+ } from './Meta';
23
+ import type { CapabilitySet } from './CapabilitySet';
24
+ import {
25
+ CapabilitySetFromJSON,
26
+ CapabilitySetFromJSONTyped,
27
+ CapabilitySetToJSON,
28
+ CapabilitySetToJSONTyped,
29
+ } from './CapabilitySet';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AccountMeCapabilities200Response
35
+ */
36
+ export interface AccountMeCapabilities200Response {
37
+ /**
38
+ *
39
+ * @type {CapabilitySet}
40
+ * @memberof AccountMeCapabilities200Response
41
+ */
42
+ data?: CapabilitySet;
43
+ /**
44
+ *
45
+ * @type {Meta}
46
+ * @memberof AccountMeCapabilities200Response
47
+ */
48
+ meta?: Meta;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the AccountMeCapabilities200Response interface.
53
+ */
54
+ export function instanceOfAccountMeCapabilities200Response(value: object): value is AccountMeCapabilities200Response {
55
+ return true;
56
+ }
57
+
58
+ export function AccountMeCapabilities200ResponseFromJSON(json: any): AccountMeCapabilities200Response {
59
+ return AccountMeCapabilities200ResponseFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function AccountMeCapabilities200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMeCapabilities200Response {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'data': json['data'] == null ? undefined : CapabilitySetFromJSON(json['data']),
69
+ 'meta': json['meta'] == null ? undefined : MetaFromJSON(json['meta']),
70
+ };
71
+ }
72
+
73
+ export function AccountMeCapabilities200ResponseToJSON(json: any): AccountMeCapabilities200Response {
74
+ return AccountMeCapabilities200ResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function AccountMeCapabilities200ResponseToJSONTyped(value?: AccountMeCapabilities200Response | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'data': CapabilitySetToJSON(value['data']),
85
+ 'meta': MetaToJSON(value['meta']),
86
+ };
87
+ }
88
+
@@ -0,0 +1,73 @@
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 { mapValues } from '../runtime';
16
+ import type { UsageRow } from './UsageRow';
17
+ import {
18
+ UsageRowFromJSON,
19
+ UsageRowFromJSONTyped,
20
+ UsageRowToJSON,
21
+ UsageRowToJSONTyped,
22
+ } from './UsageRow';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountUsageRecent200Response
28
+ */
29
+ export interface AccountUsageRecent200Response {
30
+ /**
31
+ *
32
+ * @type {Array<UsageRow>}
33
+ * @memberof AccountUsageRecent200Response
34
+ */
35
+ data?: Array<UsageRow>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AccountUsageRecent200Response interface.
40
+ */
41
+ export function instanceOfAccountUsageRecent200Response(value: object): value is AccountUsageRecent200Response {
42
+ return true;
43
+ }
44
+
45
+ export function AccountUsageRecent200ResponseFromJSON(json: any): AccountUsageRecent200Response {
46
+ return AccountUsageRecent200ResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AccountUsageRecent200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountUsageRecent200Response {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(UsageRowFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function AccountUsageRecent200ResponseToJSON(json: any): AccountUsageRecent200Response {
60
+ return AccountUsageRecent200ResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function AccountUsageRecent200ResponseToJSONTyped(value?: AccountUsageRecent200Response | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(UsageRowToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,88 @@
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 { mapValues } from '../runtime';
16
+ import type { Meta } from './Meta';
17
+ import {
18
+ MetaFromJSON,
19
+ MetaFromJSONTyped,
20
+ MetaToJSON,
21
+ MetaToJSONTyped,
22
+ } from './Meta';
23
+ import type { AuthMeResponseData } from './AuthMeResponseData';
24
+ import {
25
+ AuthMeResponseDataFromJSON,
26
+ AuthMeResponseDataFromJSONTyped,
27
+ AuthMeResponseDataToJSON,
28
+ AuthMeResponseDataToJSONTyped,
29
+ } from './AuthMeResponseData';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AuthMeResponse
35
+ */
36
+ export interface AuthMeResponse {
37
+ /**
38
+ *
39
+ * @type {AuthMeResponseData}
40
+ * @memberof AuthMeResponse
41
+ */
42
+ data?: AuthMeResponseData;
43
+ /**
44
+ *
45
+ * @type {Meta}
46
+ * @memberof AuthMeResponse
47
+ */
48
+ meta?: Meta;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the AuthMeResponse interface.
53
+ */
54
+ export function instanceOfAuthMeResponse(value: object): value is AuthMeResponse {
55
+ return true;
56
+ }
57
+
58
+ export function AuthMeResponseFromJSON(json: any): AuthMeResponse {
59
+ return AuthMeResponseFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function AuthMeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthMeResponse {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'data': json['data'] == null ? undefined : AuthMeResponseDataFromJSON(json['data']),
69
+ 'meta': json['meta'] == null ? undefined : MetaFromJSON(json['meta']),
70
+ };
71
+ }
72
+
73
+ export function AuthMeResponseToJSON(json: any): AuthMeResponse {
74
+ return AuthMeResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function AuthMeResponseToJSONTyped(value?: AuthMeResponse | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'data': AuthMeResponseDataToJSON(value['data']),
85
+ 'meta': MetaToJSON(value['meta']),
86
+ };
87
+ }
88
+