@space-cow-media/spellbook-client 7.0.5 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/apis/CardListFromTextApi.d.ts +1 -1
  2. package/dist/apis/CardListFromTextApi.js +1 -1
  3. package/dist/apis/CardListFromUrlApi.d.ts +1 -1
  4. package/dist/apis/CardListFromUrlApi.js +1 -1
  5. package/dist/apis/CardsApi.d.ts +1 -1
  6. package/dist/apis/CardsApi.js +1 -1
  7. package/dist/apis/DefaultApi.d.ts +1 -1
  8. package/dist/apis/DefaultApi.js +1 -1
  9. package/dist/apis/EstimateBracketApi.d.ts +1 -1
  10. package/dist/apis/EstimateBracketApi.js +1 -1
  11. package/dist/apis/ExplainQueryApi.d.ts +1 -1
  12. package/dist/apis/ExplainQueryApi.js +1 -1
  13. package/dist/apis/FeaturesApi.d.ts +1 -1
  14. package/dist/apis/FeaturesApi.js +1 -1
  15. package/dist/apis/FindMyCombosApi.d.ts +1 -1
  16. package/dist/apis/FindMyCombosApi.js +1 -1
  17. package/dist/apis/PropertiesApi.d.ts +1 -1
  18. package/dist/apis/PropertiesApi.js +1 -1
  19. package/dist/apis/SaltVotesApi.d.ts +127 -0
  20. package/dist/apis/SaltVotesApi.js +289 -0
  21. package/dist/apis/SaltVotesApi.js.map +1 -0
  22. package/dist/apis/TemplatesApi.d.ts +1 -1
  23. package/dist/apis/TemplatesApi.js +1 -1
  24. package/dist/apis/TokenApi.d.ts +1 -1
  25. package/dist/apis/TokenApi.js +1 -1
  26. package/dist/apis/UsersApi.d.ts +1 -1
  27. package/dist/apis/UsersApi.js +1 -1
  28. package/dist/apis/VariantAliasesApi.d.ts +1 -1
  29. package/dist/apis/VariantAliasesApi.js +1 -1
  30. package/dist/apis/VariantSuggestionsApi.d.ts +1 -1
  31. package/dist/apis/VariantSuggestionsApi.js +1 -1
  32. package/dist/apis/VariantUpdateSuggestionsApi.d.ts +1 -1
  33. package/dist/apis/VariantUpdateSuggestionsApi.js +1 -1
  34. package/dist/apis/VariantsApi.d.ts +1 -1
  35. package/dist/apis/VariantsApi.js +1 -1
  36. package/dist/apis/index.d.ts +1 -0
  37. package/dist/apis/index.js +1 -0
  38. package/dist/apis/index.js.map +1 -1
  39. package/dist/models/BattlefieldStartingCardState.d.ts +1 -1
  40. package/dist/models/BattlefieldStartingCardState.js +1 -1
  41. package/dist/models/BracketTagEnum.d.ts +1 -1
  42. package/dist/models/BracketTagEnum.js +1 -1
  43. package/dist/models/Card.d.ts +1 -1
  44. package/dist/models/Card.js +1 -1
  45. package/dist/models/CardDetail.d.ts +1 -1
  46. package/dist/models/CardDetail.js +1 -1
  47. package/dist/models/CardInDeck.d.ts +1 -1
  48. package/dist/models/CardInDeck.js +1 -1
  49. package/dist/models/CardInDeckRequest.d.ts +1 -1
  50. package/dist/models/CardInDeckRequest.js +1 -1
  51. package/dist/models/CardInVariant.d.ts +1 -1
  52. package/dist/models/CardInVariant.js +1 -1
  53. package/dist/models/CardLegalities.d.ts +1 -1
  54. package/dist/models/CardLegalities.js +1 -1
  55. package/dist/models/CardPrices.d.ts +1 -1
  56. package/dist/models/CardPrices.js +1 -1
  57. package/dist/models/CardUsedInVariantSuggestion.d.ts +1 -1
  58. package/dist/models/CardUsedInVariantSuggestion.js +1 -1
  59. package/dist/models/CardUsedInVariantSuggestionRequest.d.ts +1 -1
  60. package/dist/models/CardUsedInVariantSuggestionRequest.js +1 -1
  61. package/dist/models/ClassifiedCard.d.ts +1 -1
  62. package/dist/models/ClassifiedCard.js +1 -1
  63. package/dist/models/ClassifiedVariant.d.ts +1 -1
  64. package/dist/models/ClassifiedVariant.js +1 -1
  65. package/dist/models/ColorEnum.d.ts +1 -1
  66. package/dist/models/ColorEnum.js +1 -1
  67. package/dist/models/Combo.d.ts +1 -1
  68. package/dist/models/Combo.js +1 -1
  69. package/dist/models/Deck.d.ts +1 -1
  70. package/dist/models/Deck.js +1 -1
  71. package/dist/models/DeckRequest.d.ts +1 -1
  72. package/dist/models/DeckRequest.js +1 -1
  73. package/dist/models/EstimateBracketResult.d.ts +1 -1
  74. package/dist/models/EstimateBracketResult.js +1 -1
  75. package/dist/models/ExileStartingCardState.d.ts +1 -1
  76. package/dist/models/ExileStartingCardState.js +1 -1
  77. package/dist/models/Feature.d.ts +1 -1
  78. package/dist/models/Feature.js +1 -1
  79. package/dist/models/FeatureOfCard.d.ts +1 -1
  80. package/dist/models/FeatureOfCard.js +1 -1
  81. package/dist/models/FeatureProducedByVariant.d.ts +1 -1
  82. package/dist/models/FeatureProducedByVariant.js +1 -1
  83. package/dist/models/FeatureProducedInVariantSuggestion.d.ts +1 -1
  84. package/dist/models/FeatureProducedInVariantSuggestion.js +1 -1
  85. package/dist/models/FeatureProducedInVariantSuggestionRequest.d.ts +1 -1
  86. package/dist/models/FeatureProducedInVariantSuggestionRequest.js +1 -1
  87. package/dist/models/FeatureStatusEnum.d.ts +1 -1
  88. package/dist/models/FeatureStatusEnum.js +1 -1
  89. package/dist/models/FindMyCombosResponse.d.ts +1 -1
  90. package/dist/models/FindMyCombosResponse.js +1 -1
  91. package/dist/models/GraveyardStartingCardState.d.ts +1 -1
  92. package/dist/models/GraveyardStartingCardState.js +1 -1
  93. package/dist/models/ImageURIOfTheBackOfTheCardArtCrop.d.ts +1 -1
  94. package/dist/models/ImageURIOfTheBackOfTheCardArtCrop.js +1 -1
  95. package/dist/models/ImageURIOfTheBackOfTheCardInLargeFormat.d.ts +1 -1
  96. package/dist/models/ImageURIOfTheBackOfTheCardInLargeFormat.js +1 -1
  97. package/dist/models/ImageURIOfTheBackOfTheCardInNormalFormat.d.ts +1 -1
  98. package/dist/models/ImageURIOfTheBackOfTheCardInNormalFormat.js +1 -1
  99. package/dist/models/ImageURIOfTheBackOfTheCardInPNGFormat.d.ts +1 -1
  100. package/dist/models/ImageURIOfTheBackOfTheCardInPNGFormat.js +1 -1
  101. package/dist/models/ImageURIOfTheBackOfTheCardInSmallFormat.d.ts +1 -1
  102. package/dist/models/ImageURIOfTheBackOfTheCardInSmallFormat.js +1 -1
  103. package/dist/models/ImageURIOfTheCardArtCrop.d.ts +1 -1
  104. package/dist/models/ImageURIOfTheCardArtCrop.js +1 -1
  105. package/dist/models/ImageURIOfTheFrontOfTheCardInLargeFormat.d.ts +1 -1
  106. package/dist/models/ImageURIOfTheFrontOfTheCardInLargeFormat.js +1 -1
  107. package/dist/models/ImageURIOfTheFrontOfTheCardInNormalFormat.d.ts +1 -1
  108. package/dist/models/ImageURIOfTheFrontOfTheCardInNormalFormat.js +1 -1
  109. package/dist/models/ImageURIOfTheFrontOfTheCardInPNGFormat.d.ts +1 -1
  110. package/dist/models/ImageURIOfTheFrontOfTheCardInPNGFormat.js +1 -1
  111. package/dist/models/ImageURIOfTheFrontOfTheCardInSmallFormat.d.ts +1 -1
  112. package/dist/models/ImageURIOfTheFrontOfTheCardInSmallFormat.js +1 -1
  113. package/dist/models/InvalidUrlResponse.d.ts +1 -1
  114. package/dist/models/InvalidUrlResponse.js +1 -1
  115. package/dist/models/KindEnum.d.ts +1 -1
  116. package/dist/models/KindEnum.js +1 -1
  117. package/dist/models/LayoutRotationEnum.d.ts +1 -1
  118. package/dist/models/LayoutRotationEnum.js +1 -1
  119. package/dist/models/LibraryStartingCardState.d.ts +1 -1
  120. package/dist/models/LibraryStartingCardState.js +1 -1
  121. package/dist/models/PaginatedCardDetailList.d.ts +1 -1
  122. package/dist/models/PaginatedCardDetailList.js +1 -1
  123. package/dist/models/PaginatedFeatureList.d.ts +1 -1
  124. package/dist/models/PaginatedFeatureList.js +1 -1
  125. package/dist/models/PaginatedFindMyCombosResponseList.d.ts +1 -1
  126. package/dist/models/PaginatedFindMyCombosResponseList.js +1 -1
  127. package/dist/models/PaginatedFindMyCombosResponseListResults.d.ts +1 -1
  128. package/dist/models/PaginatedFindMyCombosResponseListResults.js +1 -1
  129. package/dist/models/PaginatedSaltVoteList.d.ts +43 -0
  130. package/dist/models/PaginatedSaltVoteList.js +57 -0
  131. package/dist/models/PaginatedSaltVoteList.js.map +1 -0
  132. package/dist/models/PaginatedTemplateList.d.ts +1 -1
  133. package/dist/models/PaginatedTemplateList.js +1 -1
  134. package/dist/models/PaginatedUserDetailList.d.ts +1 -1
  135. package/dist/models/PaginatedUserDetailList.js +1 -1
  136. package/dist/models/PaginatedVariantAliasList.d.ts +1 -1
  137. package/dist/models/PaginatedVariantAliasList.js +1 -1
  138. package/dist/models/PaginatedVariantList.d.ts +1 -1
  139. package/dist/models/PaginatedVariantList.js +1 -1
  140. package/dist/models/PaginatedVariantSuggestionList.d.ts +1 -1
  141. package/dist/models/PaginatedVariantSuggestionList.js +1 -1
  142. package/dist/models/PaginatedVariantUpdateSuggestionList.d.ts +1 -1
  143. package/dist/models/PaginatedVariantUpdateSuggestionList.js +1 -1
  144. package/dist/models/PaginatedWebsitePropertyList.d.ts +1 -1
  145. package/dist/models/PaginatedWebsitePropertyList.js +1 -1
  146. package/dist/models/PatchedUserDetailRequest.d.ts +1 -1
  147. package/dist/models/PatchedUserDetailRequest.js +1 -1
  148. package/dist/models/PatchedVariantSuggestionRequest.d.ts +1 -1
  149. package/dist/models/PatchedVariantSuggestionRequest.js +1 -1
  150. package/dist/models/PatchedVariantSuggestionRequestComment.d.ts +1 -1
  151. package/dist/models/PatchedVariantSuggestionRequestComment.js +1 -1
  152. package/dist/models/PatchedVariantSuggestionRequestEasyPrerequisites.d.ts +1 -1
  153. package/dist/models/PatchedVariantSuggestionRequestEasyPrerequisites.js +1 -1
  154. package/dist/models/PatchedVariantSuggestionRequestManaNeeded.d.ts +1 -1
  155. package/dist/models/PatchedVariantSuggestionRequestManaNeeded.js +1 -1
  156. package/dist/models/PatchedVariantSuggestionRequestNotablePrerequisites.d.ts +1 -1
  157. package/dist/models/PatchedVariantSuggestionRequestNotablePrerequisites.js +1 -1
  158. package/dist/models/PatchedVariantUpdateSuggestionRequest.d.ts +1 -1
  159. package/dist/models/PatchedVariantUpdateSuggestionRequest.js +1 -1
  160. package/dist/models/PatchedVariantUpdateSuggestionRequestSolution.d.ts +1 -1
  161. package/dist/models/PatchedVariantUpdateSuggestionRequestSolution.js +1 -1
  162. package/dist/models/ProducedManaEnum.d.ts +1 -1
  163. package/dist/models/ProducedManaEnum.js +1 -1
  164. package/dist/models/QueryExplanation.d.ts +1 -1
  165. package/dist/models/QueryExplanation.js +1 -1
  166. package/dist/models/QueryExplanationValidationError.d.ts +1 -1
  167. package/dist/models/QueryExplanationValidationError.js +1 -1
  168. package/dist/models/SaltVote.d.ts +50 -0
  169. package/dist/models/SaltVote.js +60 -0
  170. package/dist/models/SaltVote.js.map +1 -0
  171. package/dist/models/SaltVoteRequest.d.ts +30 -0
  172. package/dist/models/SaltVoteRequest.js +44 -0
  173. package/dist/models/SaltVoteRequest.js.map +1 -0
  174. package/dist/models/SuggestionStatusEnum.d.ts +1 -1
  175. package/dist/models/SuggestionStatusEnum.js +1 -1
  176. package/dist/models/Template.d.ts +1 -1
  177. package/dist/models/Template.js +1 -1
  178. package/dist/models/TemplateInVariant.d.ts +1 -1
  179. package/dist/models/TemplateInVariant.js +1 -1
  180. package/dist/models/TemplateRequiredInVariantSuggestion.d.ts +1 -1
  181. package/dist/models/TemplateRequiredInVariantSuggestion.js +1 -1
  182. package/dist/models/TemplateRequiredInVariantSuggestionRequest.d.ts +1 -1
  183. package/dist/models/TemplateRequiredInVariantSuggestionRequest.js +1 -1
  184. package/dist/models/TokenObtainPair.d.ts +1 -1
  185. package/dist/models/TokenObtainPair.js +1 -1
  186. package/dist/models/TokenObtainPairRequest.d.ts +1 -1
  187. package/dist/models/TokenObtainPairRequest.js +1 -1
  188. package/dist/models/TokenRefresh.d.ts +1 -1
  189. package/dist/models/TokenRefresh.js +1 -1
  190. package/dist/models/TokenRefreshRequest.d.ts +1 -1
  191. package/dist/models/TokenRefreshRequest.js +1 -1
  192. package/dist/models/TokenVerifyRequest.d.ts +1 -1
  193. package/dist/models/TokenVerifyRequest.js +1 -1
  194. package/dist/models/User.d.ts +1 -1
  195. package/dist/models/User.js +1 -1
  196. package/dist/models/UserDetail.d.ts +1 -1
  197. package/dist/models/UserDetail.js +1 -1
  198. package/dist/models/UserDetailRequest.d.ts +1 -1
  199. package/dist/models/UserDetailRequest.js +1 -1
  200. package/dist/models/UserRequest.d.ts +1 -1
  201. package/dist/models/UserRequest.js +1 -1
  202. package/dist/models/Variant.d.ts +10 -2
  203. package/dist/models/Variant.js +7 -1
  204. package/dist/models/Variant.js.map +1 -1
  205. package/dist/models/VariantAlias.d.ts +1 -1
  206. package/dist/models/VariantAlias.js +1 -1
  207. package/dist/models/VariantInVariantUpdateSuggestion.d.ts +1 -1
  208. package/dist/models/VariantInVariantUpdateSuggestion.js +1 -1
  209. package/dist/models/VariantInVariantUpdateSuggestionIssue.d.ts +1 -1
  210. package/dist/models/VariantInVariantUpdateSuggestionIssue.js +1 -1
  211. package/dist/models/VariantInVariantUpdateSuggestionRequest.d.ts +1 -1
  212. package/dist/models/VariantInVariantUpdateSuggestionRequest.js +1 -1
  213. package/dist/models/VariantLegalities.d.ts +1 -1
  214. package/dist/models/VariantLegalities.js +1 -1
  215. package/dist/models/VariantPrices.d.ts +1 -1
  216. package/dist/models/VariantPrices.js +1 -1
  217. package/dist/models/VariantStatusEnum.d.ts +1 -1
  218. package/dist/models/VariantStatusEnum.js +1 -1
  219. package/dist/models/VariantSuggestion.d.ts +1 -1
  220. package/dist/models/VariantSuggestion.js +1 -1
  221. package/dist/models/VariantSuggestionRequest.d.ts +1 -1
  222. package/dist/models/VariantSuggestionRequest.js +1 -1
  223. package/dist/models/VariantUpdateSuggestion.d.ts +1 -1
  224. package/dist/models/VariantUpdateSuggestion.js +1 -1
  225. package/dist/models/VariantUpdateSuggestionRequest.d.ts +1 -1
  226. package/dist/models/VariantUpdateSuggestionRequest.js +1 -1
  227. package/dist/models/VariantsQueryValidationError.d.ts +1 -1
  228. package/dist/models/VariantsQueryValidationError.js +1 -1
  229. package/dist/models/WebsiteProperty.d.ts +1 -1
  230. package/dist/models/WebsiteProperty.js +1 -1
  231. package/dist/models/WebsitePropertyValue.d.ts +1 -1
  232. package/dist/models/WebsitePropertyValue.js +1 -1
  233. package/dist/models/ZoneLocationsEnum.d.ts +1 -1
  234. package/dist/models/ZoneLocationsEnum.js +1 -1
  235. package/dist/models/index.d.ts +3 -0
  236. package/dist/models/index.js +3 -0
  237. package/dist/models/index.js.map +1 -1
  238. package/dist/runtime.d.ts +1 -1
  239. package/dist/runtime.js +1 -1
  240. package/package.json +1 -1
  241. package/spellbook-client/apis/CardListFromTextApi.ts +1 -1
  242. package/spellbook-client/apis/CardListFromUrlApi.ts +1 -1
  243. package/spellbook-client/apis/CardsApi.ts +1 -1
  244. package/spellbook-client/apis/DefaultApi.ts +1 -1
  245. package/spellbook-client/apis/EstimateBracketApi.ts +1 -1
  246. package/spellbook-client/apis/ExplainQueryApi.ts +1 -1
  247. package/spellbook-client/apis/FeaturesApi.ts +1 -1
  248. package/spellbook-client/apis/FindMyCombosApi.ts +1 -1
  249. package/spellbook-client/apis/PropertiesApi.ts +1 -1
  250. package/spellbook-client/apis/SaltVotesApi.ts +386 -0
  251. package/spellbook-client/apis/TemplatesApi.ts +1 -1
  252. package/spellbook-client/apis/TokenApi.ts +1 -1
  253. package/spellbook-client/apis/UsersApi.ts +1 -1
  254. package/spellbook-client/apis/VariantAliasesApi.ts +1 -1
  255. package/spellbook-client/apis/VariantSuggestionsApi.ts +1 -1
  256. package/spellbook-client/apis/VariantUpdateSuggestionsApi.ts +1 -1
  257. package/spellbook-client/apis/VariantsApi.ts +1 -1
  258. package/spellbook-client/apis/index.ts +1 -0
  259. package/spellbook-client/docs/PaginatedSaltVoteList.md +40 -0
  260. package/spellbook-client/docs/SaltVote.md +44 -0
  261. package/spellbook-client/docs/SaltVoteRequest.md +34 -0
  262. package/spellbook-client/docs/SaltVotesApi.md +406 -0
  263. package/spellbook-client/docs/Variant.md +4 -0
  264. package/spellbook-client/models/BattlefieldStartingCardState.ts +1 -1
  265. package/spellbook-client/models/BracketTagEnum.ts +1 -1
  266. package/spellbook-client/models/Card.ts +1 -1
  267. package/spellbook-client/models/CardDetail.ts +1 -1
  268. package/spellbook-client/models/CardInDeck.ts +1 -1
  269. package/spellbook-client/models/CardInDeckRequest.ts +1 -1
  270. package/spellbook-client/models/CardInVariant.ts +1 -1
  271. package/spellbook-client/models/CardLegalities.ts +1 -1
  272. package/spellbook-client/models/CardPrices.ts +1 -1
  273. package/spellbook-client/models/CardUsedInVariantSuggestion.ts +1 -1
  274. package/spellbook-client/models/CardUsedInVariantSuggestionRequest.ts +1 -1
  275. package/spellbook-client/models/ClassifiedCard.ts +1 -1
  276. package/spellbook-client/models/ClassifiedVariant.ts +1 -1
  277. package/spellbook-client/models/ColorEnum.ts +1 -1
  278. package/spellbook-client/models/Combo.ts +1 -1
  279. package/spellbook-client/models/Deck.ts +1 -1
  280. package/spellbook-client/models/DeckRequest.ts +1 -1
  281. package/spellbook-client/models/EstimateBracketResult.ts +1 -1
  282. package/spellbook-client/models/ExileStartingCardState.ts +1 -1
  283. package/spellbook-client/models/Feature.ts +1 -1
  284. package/spellbook-client/models/FeatureOfCard.ts +1 -1
  285. package/spellbook-client/models/FeatureProducedByVariant.ts +1 -1
  286. package/spellbook-client/models/FeatureProducedInVariantSuggestion.ts +1 -1
  287. package/spellbook-client/models/FeatureProducedInVariantSuggestionRequest.ts +1 -1
  288. package/spellbook-client/models/FeatureStatusEnum.ts +1 -1
  289. package/spellbook-client/models/FindMyCombosResponse.ts +1 -1
  290. package/spellbook-client/models/GraveyardStartingCardState.ts +1 -1
  291. package/spellbook-client/models/ImageURIOfTheBackOfTheCardArtCrop.ts +1 -1
  292. package/spellbook-client/models/ImageURIOfTheBackOfTheCardInLargeFormat.ts +1 -1
  293. package/spellbook-client/models/ImageURIOfTheBackOfTheCardInNormalFormat.ts +1 -1
  294. package/spellbook-client/models/ImageURIOfTheBackOfTheCardInPNGFormat.ts +1 -1
  295. package/spellbook-client/models/ImageURIOfTheBackOfTheCardInSmallFormat.ts +1 -1
  296. package/spellbook-client/models/ImageURIOfTheCardArtCrop.ts +1 -1
  297. package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInLargeFormat.ts +1 -1
  298. package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInNormalFormat.ts +1 -1
  299. package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInPNGFormat.ts +1 -1
  300. package/spellbook-client/models/ImageURIOfTheFrontOfTheCardInSmallFormat.ts +1 -1
  301. package/spellbook-client/models/InvalidUrlResponse.ts +1 -1
  302. package/spellbook-client/models/KindEnum.ts +1 -1
  303. package/spellbook-client/models/LayoutRotationEnum.ts +1 -1
  304. package/spellbook-client/models/LibraryStartingCardState.ts +1 -1
  305. package/spellbook-client/models/PaginatedCardDetailList.ts +1 -1
  306. package/spellbook-client/models/PaginatedFeatureList.ts +1 -1
  307. package/spellbook-client/models/PaginatedFindMyCombosResponseList.ts +1 -1
  308. package/spellbook-client/models/PaginatedFindMyCombosResponseListResults.ts +1 -1
  309. package/spellbook-client/models/PaginatedSaltVoteList.ts +93 -0
  310. package/spellbook-client/models/PaginatedTemplateList.ts +1 -1
  311. package/spellbook-client/models/PaginatedUserDetailList.ts +1 -1
  312. package/spellbook-client/models/PaginatedVariantAliasList.ts +1 -1
  313. package/spellbook-client/models/PaginatedVariantList.ts +1 -1
  314. package/spellbook-client/models/PaginatedVariantSuggestionList.ts +1 -1
  315. package/spellbook-client/models/PaginatedVariantUpdateSuggestionList.ts +1 -1
  316. package/spellbook-client/models/PaginatedWebsitePropertyList.ts +1 -1
  317. package/spellbook-client/models/PatchedUserDetailRequest.ts +1 -1
  318. package/spellbook-client/models/PatchedVariantSuggestionRequest.ts +1 -1
  319. package/spellbook-client/models/PatchedVariantSuggestionRequestComment.ts +1 -1
  320. package/spellbook-client/models/PatchedVariantSuggestionRequestEasyPrerequisites.ts +1 -1
  321. package/spellbook-client/models/PatchedVariantSuggestionRequestManaNeeded.ts +1 -1
  322. package/spellbook-client/models/PatchedVariantSuggestionRequestNotablePrerequisites.ts +1 -1
  323. package/spellbook-client/models/PatchedVariantUpdateSuggestionRequest.ts +1 -1
  324. package/spellbook-client/models/PatchedVariantUpdateSuggestionRequestSolution.ts +1 -1
  325. package/spellbook-client/models/ProducedManaEnum.ts +1 -1
  326. package/spellbook-client/models/QueryExplanation.ts +1 -1
  327. package/spellbook-client/models/QueryExplanationValidationError.ts +1 -1
  328. package/spellbook-client/models/SaltVote.ts +94 -0
  329. package/spellbook-client/models/SaltVoteRequest.ts +64 -0
  330. package/spellbook-client/models/SuggestionStatusEnum.ts +1 -1
  331. package/spellbook-client/models/Template.ts +1 -1
  332. package/spellbook-client/models/TemplateInVariant.ts +1 -1
  333. package/spellbook-client/models/TemplateRequiredInVariantSuggestion.ts +1 -1
  334. package/spellbook-client/models/TemplateRequiredInVariantSuggestionRequest.ts +1 -1
  335. package/spellbook-client/models/TokenObtainPair.ts +1 -1
  336. package/spellbook-client/models/TokenObtainPairRequest.ts +1 -1
  337. package/spellbook-client/models/TokenRefresh.ts +1 -1
  338. package/spellbook-client/models/TokenRefreshRequest.ts +1 -1
  339. package/spellbook-client/models/TokenVerifyRequest.ts +1 -1
  340. package/spellbook-client/models/User.ts +1 -1
  341. package/spellbook-client/models/UserDetail.ts +1 -1
  342. package/spellbook-client/models/UserDetailRequest.ts +1 -1
  343. package/spellbook-client/models/UserRequest.ts +1 -1
  344. package/spellbook-client/models/Variant.ts +14 -2
  345. package/spellbook-client/models/VariantAlias.ts +1 -1
  346. package/spellbook-client/models/VariantInVariantUpdateSuggestion.ts +1 -1
  347. package/spellbook-client/models/VariantInVariantUpdateSuggestionIssue.ts +1 -1
  348. package/spellbook-client/models/VariantInVariantUpdateSuggestionRequest.ts +1 -1
  349. package/spellbook-client/models/VariantLegalities.ts +1 -1
  350. package/spellbook-client/models/VariantPrices.ts +1 -1
  351. package/spellbook-client/models/VariantStatusEnum.ts +1 -1
  352. package/spellbook-client/models/VariantSuggestion.ts +1 -1
  353. package/spellbook-client/models/VariantSuggestionRequest.ts +1 -1
  354. package/spellbook-client/models/VariantUpdateSuggestion.ts +1 -1
  355. package/spellbook-client/models/VariantUpdateSuggestionRequest.ts +1 -1
  356. package/spellbook-client/models/VariantsQueryValidationError.ts +1 -1
  357. package/spellbook-client/models/WebsiteProperty.ts +1 -1
  358. package/spellbook-client/models/WebsitePropertyValue.ts +1 -1
  359. package/spellbook-client/models/ZoneLocationsEnum.ts +1 -1
  360. package/spellbook-client/models/index.ts +3 -0
  361. package/spellbook-client/runtime.ts +1 -1
@@ -0,0 +1,386 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Commander Spellbook API
5
+ * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
+ *
7
+ * The version of the OpenAPI document: 7.1.0
8
+ *
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.js';
16
+ import {
17
+ type PaginatedSaltVoteList,
18
+ PaginatedSaltVoteListFromJSON,
19
+ PaginatedSaltVoteListToJSON,
20
+ } from '../models/PaginatedSaltVoteList.js';
21
+ import {
22
+ type SaltVote,
23
+ SaltVoteFromJSON,
24
+ SaltVoteToJSON,
25
+ } from '../models/SaltVote.js';
26
+ import {
27
+ type SaltVoteRequest,
28
+ SaltVoteRequestFromJSON,
29
+ SaltVoteRequestToJSON,
30
+ } from '../models/SaltVoteRequest.js';
31
+ import {
32
+ type Variant,
33
+ VariantFromJSON,
34
+ VariantToJSON,
35
+ } from '../models/Variant.js';
36
+
37
+ export interface SaltVotesDestroyRequest {
38
+ /**
39
+ *
40
+ */
41
+ variant: string;
42
+ }
43
+
44
+ export interface SaltVotesListRequest {
45
+ /**
46
+ * Set to true to enable count query. If false, count will be omitted.
47
+ */
48
+ count?: boolean;
49
+ /**
50
+ * Number of results to return per page.
51
+ */
52
+ limit?: number;
53
+ /**
54
+ * The initial index from which to return the results.
55
+ */
56
+ offset?: number;
57
+ /**
58
+ * Filters for the vote on the variant with the given id.
59
+ */
60
+ variant?: string;
61
+ }
62
+
63
+ export interface SaltVotesQueueListRequest {
64
+ /**
65
+ * Number of variants to return.
66
+ */
67
+ limit?: number;
68
+ }
69
+
70
+ export interface SaltVotesRetrieveRequest {
71
+ /**
72
+ *
73
+ */
74
+ variant: string;
75
+ }
76
+
77
+ export interface SaltVotesUpdateRequest {
78
+ /**
79
+ *
80
+ */
81
+ variant: string;
82
+ /**
83
+ *
84
+ */
85
+ saltVoteRequest: SaltVoteRequest;
86
+ }
87
+
88
+ /**
89
+ *
90
+ */
91
+ export class SaltVotesApi extends runtime.BaseAPI {
92
+
93
+ /**
94
+ * Creates request options for saltVotesDestroy without sending the request
95
+ */
96
+ async saltVotesDestroyRequestOpts(requestParameters: SaltVotesDestroyRequest): Promise<runtime.RequestOpts> {
97
+ if (requestParameters['variant'] == null) {
98
+ throw new runtime.RequiredError(
99
+ 'variant',
100
+ 'Required parameter "variant" was null or undefined when calling saltVotesDestroy().'
101
+ );
102
+ }
103
+
104
+ const queryParameters: any = {};
105
+
106
+ const headerParameters: runtime.HTTPHeaders = {};
107
+
108
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
109
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
110
+ }
111
+ if (this.configuration && this.configuration.accessToken) {
112
+ const token = this.configuration.accessToken;
113
+ const tokenString = await token("jwtAuth", []);
114
+
115
+ if (tokenString) {
116
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
117
+ }
118
+ }
119
+
120
+ let urlPath = `/salt-votes/{variant}/`;
121
+ urlPath = urlPath.replace('{variant}', encodeURIComponent(String(requestParameters['variant'])));
122
+
123
+ return {
124
+ path: urlPath,
125
+ method: 'DELETE',
126
+ headers: headerParameters,
127
+ query: queryParameters,
128
+ };
129
+ }
130
+
131
+ /**
132
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
133
+ */
134
+ async saltVotesDestroyRaw(requestParameters: SaltVotesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
135
+ const requestOptions = await this.saltVotesDestroyRequestOpts(requestParameters);
136
+ const response = await this.request(requestOptions, initOverrides);
137
+
138
+ return new runtime.VoidApiResponse(response);
139
+ }
140
+
141
+ /**
142
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
143
+ */
144
+ async saltVotesDestroy(requestParameters: SaltVotesDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
145
+ await this.saltVotesDestroyRaw(requestParameters, initOverrides);
146
+ }
147
+
148
+ /**
149
+ * Creates request options for saltVotesList without sending the request
150
+ */
151
+ async saltVotesListRequestOpts(requestParameters: SaltVotesListRequest): Promise<runtime.RequestOpts> {
152
+ const queryParameters: any = {};
153
+
154
+ if (requestParameters['count'] != null) {
155
+ queryParameters['count'] = requestParameters['count'];
156
+ }
157
+
158
+ if (requestParameters['limit'] != null) {
159
+ queryParameters['limit'] = requestParameters['limit'];
160
+ }
161
+
162
+ if (requestParameters['offset'] != null) {
163
+ queryParameters['offset'] = requestParameters['offset'];
164
+ }
165
+
166
+ if (requestParameters['variant'] != null) {
167
+ queryParameters['variant'] = requestParameters['variant'];
168
+ }
169
+
170
+ const headerParameters: runtime.HTTPHeaders = {};
171
+
172
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
173
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
174
+ }
175
+ if (this.configuration && this.configuration.accessToken) {
176
+ const token = this.configuration.accessToken;
177
+ const tokenString = await token("jwtAuth", []);
178
+
179
+ if (tokenString) {
180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
181
+ }
182
+ }
183
+
184
+ let urlPath = `/salt-votes/`;
185
+
186
+ return {
187
+ path: urlPath,
188
+ method: 'GET',
189
+ headers: headerParameters,
190
+ query: queryParameters,
191
+ };
192
+ }
193
+
194
+ /**
195
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
196
+ */
197
+ async saltVotesListRaw(requestParameters: SaltVotesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSaltVoteList>> {
198
+ const requestOptions = await this.saltVotesListRequestOpts(requestParameters);
199
+ const response = await this.request(requestOptions, initOverrides);
200
+
201
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSaltVoteListFromJSON(jsonValue));
202
+ }
203
+
204
+ /**
205
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
206
+ */
207
+ async saltVotesList(requestParameters: SaltVotesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSaltVoteList> {
208
+ const response = await this.saltVotesListRaw(requestParameters, initOverrides);
209
+ return await response.value();
210
+ }
211
+
212
+ /**
213
+ * Creates request options for saltVotesQueueList without sending the request
214
+ */
215
+ async saltVotesQueueListRequestOpts(requestParameters: SaltVotesQueueListRequest): Promise<runtime.RequestOpts> {
216
+ const queryParameters: any = {};
217
+
218
+ if (requestParameters['limit'] != null) {
219
+ queryParameters['limit'] = requestParameters['limit'];
220
+ }
221
+
222
+ const headerParameters: runtime.HTTPHeaders = {};
223
+
224
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
225
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
226
+ }
227
+ if (this.configuration && this.configuration.accessToken) {
228
+ const token = this.configuration.accessToken;
229
+ const tokenString = await token("jwtAuth", []);
230
+
231
+ if (tokenString) {
232
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
233
+ }
234
+ }
235
+
236
+ let urlPath = `/salt-votes/queue/`;
237
+
238
+ return {
239
+ path: urlPath,
240
+ method: 'GET',
241
+ headers: headerParameters,
242
+ query: queryParameters,
243
+ };
244
+ }
245
+
246
+ /**
247
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
248
+ */
249
+ async saltVotesQueueListRaw(requestParameters: SaltVotesQueueListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Variant>>> {
250
+ const requestOptions = await this.saltVotesQueueListRequestOpts(requestParameters);
251
+ const response = await this.request(requestOptions, initOverrides);
252
+
253
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(VariantFromJSON));
254
+ }
255
+
256
+ /**
257
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
258
+ */
259
+ async saltVotesQueueList(requestParameters: SaltVotesQueueListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Variant>> {
260
+ const response = await this.saltVotesQueueListRaw(requestParameters, initOverrides);
261
+ return await response.value();
262
+ }
263
+
264
+ /**
265
+ * Creates request options for saltVotesRetrieve without sending the request
266
+ */
267
+ async saltVotesRetrieveRequestOpts(requestParameters: SaltVotesRetrieveRequest): Promise<runtime.RequestOpts> {
268
+ if (requestParameters['variant'] == null) {
269
+ throw new runtime.RequiredError(
270
+ 'variant',
271
+ 'Required parameter "variant" was null or undefined when calling saltVotesRetrieve().'
272
+ );
273
+ }
274
+
275
+ const queryParameters: any = {};
276
+
277
+ const headerParameters: runtime.HTTPHeaders = {};
278
+
279
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
280
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
281
+ }
282
+ if (this.configuration && this.configuration.accessToken) {
283
+ const token = this.configuration.accessToken;
284
+ const tokenString = await token("jwtAuth", []);
285
+
286
+ if (tokenString) {
287
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
288
+ }
289
+ }
290
+
291
+ let urlPath = `/salt-votes/{variant}/`;
292
+ urlPath = urlPath.replace('{variant}', encodeURIComponent(String(requestParameters['variant'])));
293
+
294
+ return {
295
+ path: urlPath,
296
+ method: 'GET',
297
+ headers: headerParameters,
298
+ query: queryParameters,
299
+ };
300
+ }
301
+
302
+ /**
303
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
304
+ */
305
+ async saltVotesRetrieveRaw(requestParameters: SaltVotesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaltVote>> {
306
+ const requestOptions = await this.saltVotesRetrieveRequestOpts(requestParameters);
307
+ const response = await this.request(requestOptions, initOverrides);
308
+
309
+ return new runtime.JSONApiResponse(response, (jsonValue) => SaltVoteFromJSON(jsonValue));
310
+ }
311
+
312
+ /**
313
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
314
+ */
315
+ async saltVotesRetrieve(requestParameters: SaltVotesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaltVote> {
316
+ const response = await this.saltVotesRetrieveRaw(requestParameters, initOverrides);
317
+ return await response.value();
318
+ }
319
+
320
+ /**
321
+ * Creates request options for saltVotesUpdate without sending the request
322
+ */
323
+ async saltVotesUpdateRequestOpts(requestParameters: SaltVotesUpdateRequest): Promise<runtime.RequestOpts> {
324
+ if (requestParameters['variant'] == null) {
325
+ throw new runtime.RequiredError(
326
+ 'variant',
327
+ 'Required parameter "variant" was null or undefined when calling saltVotesUpdate().'
328
+ );
329
+ }
330
+
331
+ if (requestParameters['saltVoteRequest'] == null) {
332
+ throw new runtime.RequiredError(
333
+ 'saltVoteRequest',
334
+ 'Required parameter "saltVoteRequest" was null or undefined when calling saltVotesUpdate().'
335
+ );
336
+ }
337
+
338
+ const queryParameters: any = {};
339
+
340
+ const headerParameters: runtime.HTTPHeaders = {};
341
+
342
+ headerParameters['Content-Type'] = 'application/json';
343
+
344
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
345
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
346
+ }
347
+ if (this.configuration && this.configuration.accessToken) {
348
+ const token = this.configuration.accessToken;
349
+ const tokenString = await token("jwtAuth", []);
350
+
351
+ if (tokenString) {
352
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
353
+ }
354
+ }
355
+
356
+ let urlPath = `/salt-votes/{variant}/`;
357
+ urlPath = urlPath.replace('{variant}', encodeURIComponent(String(requestParameters['variant'])));
358
+
359
+ return {
360
+ path: urlPath,
361
+ method: 'PUT',
362
+ headers: headerParameters,
363
+ query: queryParameters,
364
+ body: SaltVoteRequestToJSON(requestParameters['saltVoteRequest']),
365
+ };
366
+ }
367
+
368
+ /**
369
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
370
+ */
371
+ async saltVotesUpdateRaw(requestParameters: SaltVotesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SaltVote>> {
372
+ const requestOptions = await this.saltVotesUpdateRequestOpts(requestParameters);
373
+ const response = await this.request(requestOptions, initOverrides);
374
+
375
+ return new runtime.JSONApiResponse(response, (jsonValue) => SaltVoteFromJSON(jsonValue));
376
+ }
377
+
378
+ /**
379
+ * Votes on how salty a combo is, that is how unfun it is to play against, from 0 (not at all) to 4 (the most). Voting requires logging in. Each user has a single vote per variant, addressed by the variant id: `PUT` casts or changes it, `DELETE` retracts it, and nobody but its author can read it. A vote comes back with the live average and count of the recent votes on its variant. Only the votes cast or changed in the last year are recent. Every variant shows the average of its recent votes as `salt`, once they are at least five, and their number as `saltVoteCount`, both refreshed every couple of hours: order the variants by `salt`, or search them with terms like `salt>2.5`, to find the saltiest combos. `queue` serves variants to vote on, drawn at random with a preference for popular ones still short of a hundred recent votes, leaving out those the user already voted on recently.
380
+ */
381
+ async saltVotesUpdate(requestParameters: SaltVotesUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SaltVote> {
382
+ const response = await this.saltVotesUpdateRaw(requestParameters, initOverrides);
383
+ return await response.value();
384
+ }
385
+
386
+ }
@@ -4,7 +4,7 @@
4
4
  * Commander Spellbook API
5
5
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
6
  *
7
- * The version of the OpenAPI document: 7.0.5
7
+ * The version of the OpenAPI document: 7.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Commander Spellbook API
5
5
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
6
  *
7
- * The version of the OpenAPI document: 7.0.5
7
+ * The version of the OpenAPI document: 7.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Commander Spellbook API
5
5
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
6
  *
7
- * The version of the OpenAPI document: 7.0.5
7
+ * The version of the OpenAPI document: 7.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Commander Spellbook API
5
5
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
6
  *
7
- * The version of the OpenAPI document: 7.0.5
7
+ * The version of the OpenAPI document: 7.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Commander Spellbook API
5
5
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
6
  *
7
- * The version of the OpenAPI document: 7.0.5
7
+ * The version of the OpenAPI document: 7.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Commander Spellbook API
5
5
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
6
  *
7
- * The version of the OpenAPI document: 7.0.5
7
+ * The version of the OpenAPI document: 7.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Commander Spellbook API
5
5
  * API for Commander Spellbook, the combo database engine for Magic: The Gathering. ## Bulk data Please do not use this API to export the whole dataset: consuming hundreds of result pages every time costs you time and us a ton of resources. Every variant, together with the variant aliases, is published as a single JSON document, refreshed periodically: * [/variants.json.gz](/variants.json.gz) — gzipped, prefer this one * [/variants.json](/variants.json) — uncompressed The document holds the `timestamp` it was built at, the `version` that built it, and the `variants` and `aliases` arrays, whose items have the very same shape as the `/variants/` and `/variant-aliases/` responses. Fetch it on a schedule of your own and read it locally. ## Using this API Make sparse, unauthenticated requests, with the general guideline of a few HTTP calls per user interaction with your tool. * Name your service, optionally with a version, in the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/User-Agent#library_and_net_tool_ua_strings) header. * You may be rate limited: 80 requests per minute should be a safe rate, and clients should always handle `429 Too Many Requests` responses. * Responses use camelCase keys. * A TypeScript client is published on npm as [`@space-cow-media/spellbook-client`](https://www.npmjs.com/package/@space-cow-media/spellbook-client). Please credit us, and link back to []() where applicable. Thanks!
6
6
  *
7
- * The version of the OpenAPI document: 7.0.5
7
+ * The version of the OpenAPI document: 7.1.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -9,6 +9,7 @@ export * from './ExplainQueryApi.js';
9
9
  export * from './FeaturesApi.js';
10
10
  export * from './FindMyCombosApi.js';
11
11
  export * from './PropertiesApi.js';
12
+ export * from './SaltVotesApi.js';
12
13
  export * from './TemplatesApi.js';
13
14
  export * from './TokenApi.js';
14
15
  export * from './UsersApi.js';
@@ -0,0 +1,40 @@
1
+
2
+ # PaginatedSaltVoteList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `count` | number
10
+ `next` | string
11
+ `previous` | string
12
+ `results` | [Array&lt;SaltVote&gt;](SaltVote.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PaginatedSaltVoteList } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "count": 123,
22
+ "next": http://api.example.org/accounts/?offset=400&limit=100,
23
+ "previous": http://api.example.org/accounts/?offset=200&limit=100,
24
+ "results": null,
25
+ } satisfies PaginatedSaltVoteList
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedSaltVoteList
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,44 @@
1
+
2
+ # SaltVote
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `variant` | string
10
+ `score` | number
11
+ `created` | Date
12
+ `updated` | Date
13
+ `average` | number
14
+ `voteCount` | number
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { SaltVote } from ''
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "variant": null,
24
+ "score": null,
25
+ "created": null,
26
+ "updated": null,
27
+ "average": null,
28
+ "voteCount": null,
29
+ } satisfies SaltVote
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as SaltVote
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # SaltVoteRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `score` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { SaltVoteRequest } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "score": null,
19
+ } satisfies SaltVoteRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as SaltVoteRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+